-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4d239f1
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |