コード例 #1
0
ファイル: pipeline_test.py プロジェクト: n-log-n/cvSlider
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()
コード例 #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_())
コード例 #3
0
ファイル: main.py プロジェクト: GitHubTianPeng/101worker
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()
コード例 #4
0
ファイル: main.py プロジェクト: Max1412/101worker
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()