Beispiel #1
0
def main():
    img = cv2.imread('signs_vehicles_xygrad.png')
    pipeline = Pipeline()
    pipeline.setSource(img)

    # pipeline.addStep(combining_thresholds.mag_thresh)
    pipeline.addStep(combining_thresholds.dir_threshold)

    pipeline.execute()
Beispiel #2
0
def main():
    img = cv2.imread(sys.argv[1])
    
    pipeline = Pipeline()
    pipeline.setSource(img)
    # pipeline.setVideoSource('challenge_video.mp4')

    pipeline.addStep(combining_thresholds.combined_threshold2)
    # pipeline.addStep(combining_thresholds.dir_threshold)

    app = QtGui.QApplication(sys.argv)
    myapp = MainWindow(pipeline)
    myapp.showMaximized()

    sys.exit(app.exec_())
Beispiel #3
0
def main():
	pileline = Pipeline()
	step1 = Step(page2sections, "Extract sections from the page")
	pileline.addStep(step1)
	pileline.addStep(Step(extractSourceFragments, "Extract source fragments from the sections into separate files"))
	pileline.addStep(Step(page2tex, "Generate final tex for the page"))

	doc = pileline.execute(wikidata)
	f = open(OUTPUT_BASE+'macros.tex', 'w')
	f.write(toTex(doc))
	f.close()
Beispiel #4
0
def main():
    pileline = Pipeline()
    step1 = Step(page2sections, "Extract sections from the page")
    pileline.addStep(step1)
    pileline.addStep(
        Step(extractSourceFragments,
             "Extract source fragments from the sections into separate files"))
    pileline.addStep(Step(page2tex, "Generate final tex for the page"))

    doc = pileline.execute(wikidata)
    f = open(OUTPUT_BASE + 'macros.tex', 'w')
    f.write(toTex(doc))
    f.close()