Safemotion Lib
Loading...
Searching...
No Matches
Namespaces | Variables
det_demo.py File Reference

Go to the source code of this file.

Namespaces

namespace  det_demo
 

Variables

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