infer_image
Run structured inference on a single image.
Inputs
checkpointimage_pathimgsz,conf,iou,devicesave_imageoutput_path
Outputs
- detections
- counts by class
- optional rendered image path
Examples
{"checkpoint":"run_demo","image_path":"~/samples/frame.jpg"}
{"checkpoint":"~/models/retail.pt","image_path":"~/samples/shelf.png","save_image":true}
{"checkpoint":"~/models/factory.pt","image_path":"~/samples/cam01.jpg","conf":0.15}
Common Errors
- missing checkpoint
- unreadable image
Related Tools
infer_rtsp, benchmark_latency