Does detect.py grayscale or B/W? #5411
-
Hello Glenn! Does detect.py grayscale or B/W preprocessing before pass the data from the webcam, to the model for inference? In case it does not, is it possible to add it? Which is the variable name, and at what point should I pick it up to add this preprocessing stage if possible? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
glenn-jocher
Nov 1, 2021
Replies: 1 comment 1 reply
-
@danielsoy detect.py YOLOv5 dataloaders use cv2.imread() which will automatically convert 1ch greyscale to 3ch greyscale prior to inference. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
danielsoy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@danielsoy detect.py YOLOv5 dataloaders use cv2.imread() which will automatically convert 1ch greyscale to 3ch greyscale prior to inference.