We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
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?
No response
The text was updated successfully, but these errors were encountered:
@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!
Sorry, something went wrong.
@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!
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: