Adding support for UYVY colorformat usb camer
palcode opened this issue · 2 comments
Hi ,
The usb camera which we use all are having UYVY color format
Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 1280/720 Pixel Format : 'UYVY' (UYVY 4:2:2)
The by default support YUYV as seen from copy_yuyv_image function .
Any pointers on how to add support for UYVY, which is not compute intensive.
Regards
Pallab Sarkar
Hi,
It requires OpenGLES Shader code which runs on GPU.
currently, shader code for YUYV format is ready as below.
I think you can easily modify it to support UYVY. (just change the order.)
tflite_gles_app/common/util_render2d.c
Lines 130 to 183 in 3c06adf
I've implemented to support UYVY color format.
Could you try gl2blazeface ?
(Since I don't have UYVY camera, I can't check it.)