Views
No views yet
intersection.mp4) and the scriptonnx_intersection_showcase.py.| Measurement | Result |
|---|---|
| End-to-end FPS | 25–30 FPS |
| Raw ONNX inference | 14–18 ms (~55–70 FPS) |
| Resolution | 640 × 640 |
| Execution Provider | CPUExecutionProvider |
1from infer_onnx import ONNX_Predict
2import cv2
3
4predict = ONNX_Predict("edge_s_640_resize.onnx",
5 providers=["CPUExecutionProvider"],
6 use_letterbox=False)
7
8frame = cv2.imread("image.jpg")
9boxes, scores, classes = predict.infer_image(frame, img_size=640)
10
11for (x1, y1, x2, y2), score, cls in zip(boxes, scores, classes):
12 print(x1, y1, x2, y2, score, cls)