ncnn-android-yolov8
ncnn-android-yolov8 copied to clipboard
Question: using YUV directly without converting ?
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.