Closed Heartful-echo closed 1 year ago
@kazuya-uchida this is incorrect usage since cv2 loads in BGR and all YOLO models expect RGB. See PyTorch Hub tutorial for correct usage examples.
Good luck 🍀 and let us know if you have any other questions!
@glenn-jocher
Thank you for your advice.
@Heartful-echo you're welcome! If you have any more questions or need further assistance, feel free to ask. We're here to help!
Search before asking
Question
Hi
I want to pass the image read by opencv to the model I/F. I wrote a simple code.
cap = cv2.VideoCapture (0)
_, img= cap.read()
results = model(img)
Even if there is a person in front of the camera, it will not be detected. Is this code written correctly?
Additional
No response