Safemotion Lib
Loading...
Searching...
No Matches
Variables
det_demo Namespace Reference

Variables

list sys_path = ['/workspace/smlab', '/workspace']
 
str cfg_path = '/workspace/smlab/smdetect/configs/yolo/yolov8.py'
 
str image_path = '/workspace/smlab/smdetect/demo/sample.bmp'
 
str save_path = '/workspace/smlab/smdetect/demo/det_demo.jpg'
 
 det_model = smrunner.build_model(cfg_path)
 
 image = cv2.imread(image_path)
 
 result = det_model.run_detector(image)
 
 vis_img = image.copy()
 

Variable Documentation

◆ cfg_path

str det_demo.cfg_path = '/workspace/smlab/smdetect/configs/yolo/yolov8.py'

Definition at line 15 of file det_demo.py.

◆ det_model

det_demo.det_model = smrunner.build_model(cfg_path)

Definition at line 20 of file det_demo.py.

◆ image

det_demo.image = cv2.imread(image_path)

Definition at line 23 of file det_demo.py.

◆ image_path

str det_demo.image_path = '/workspace/smlab/smdetect/demo/sample.bmp'

Definition at line 16 of file det_demo.py.

◆ result

det_demo.result = det_model.run_detector(image)

Definition at line 26 of file det_demo.py.

◆ save_path

str det_demo.save_path = '/workspace/smlab/smdetect/demo/det_demo.jpg'

Definition at line 17 of file det_demo.py.

◆ sys_path

list det_demo.sys_path = ['/workspace/smlab', '/workspace']

Definition at line 3 of file det_demo.py.

◆ vis_img

det_demo.vis_img = image.copy()

Definition at line 29 of file det_demo.py.