Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzihau authored Jul 21, 2022
0 parents commit 4d239f1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from script_code.helper import *
from script_code.function_manager import FunctionManager
from script_code.tracker import Tracker
import cv2

from function_bank.myBlur import gaussian
from function_bank.myCanny import percentage_canny
from function_bank.myFloodfill import fill_image


def run(opt):
fn_mgr = FunctionManager(opt, [gaussian,percentage_canny])#fill_image, percentage_canny])
image = cv2.imread(opt.source_file)
res = fn_mgr.script()
tracker = Tracker(image, res)
tracker.track()


if __name__ == '__main__':
path = './setting/config.yaml'
opt = get_config(path)
run(opt)

0 comments on commit 4d239f1

Please sign in to comment.