I don’t know if this is the right place, but I would like to explain my problem to you. I am using opencv2 to be able to do an inference as it happens in Segnet. I’m using "fnc_resnet18.onnx"as the network model (imported in
What I would like to obtain is a result similar to those returned by the following functions available among the jetson libraries:
Here is a small piece of my code:
net_onnx = cv2.dnn.readNetFromONNX(path_to_onnx)
while True: # Capture frame-by-frame ret, frame = cap.read() (h, w) = frame.shape[:2] blob = cv2.dnn.blobFromImage(frame, 0.007843, (h, w), 127.5) net_onnx.setInput(blob) detections = net_onnx.forward() ....