ncnn-android-yolov8 icon indicating copy to clipboard operation
ncnn-android-yolov8 copied to clipboard

Question: using YUV directly without converting ?

Open brianm-sra opened this issue 1 year ago • 0 comments

I am trying a version of your code. Got it to work on an Android phone. But curious if it is possible to skip the steps of converting colorspace from YUV420 to RGB and to BGR. Can the extraction be done directly from YUV image data?

I saw that extractor.input(name, input) needs a ncnn::Mat type as input and I saw that methods ncnn::Mat::from_pixels(...) and ncnn::Mat::from_pixels_resize(...) require a "type" parameter, but the available types defined in enum PixelType in ncnn/mat.h only include RGB, BGR, GRAY, RGBA, BGRA.

brianm-sra avatar Apr 20 '23 23:04 brianm-sra