Skip to content
New issue

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

Color format in detect_live function #113

Open
JingWu227 opened this issue Jun 5, 2022 · 0 comments
Open

Color format in detect_live function #113

JingWu227 opened this issue Jun 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JingWu227
Copy link

I used the detect_live function from visualize.py. It reports a blue item as a red one and reports a red item as blue.
Here use openCV to capture video from the camera and directly grab frames to predict.
video = cv2.VideoCapture(0)
ret, frame = video.read()
Since the training set is PIL format and the frames are openCV format, this function should convert the color format from BGR to RGB.

@JingWu227 JingWu227 added the bug Something isn't working label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant