nihui / ncnn-android-yolov5

The YOLOv5 object detection android example
642 stars 133 forks source link

BGR or RGB #14

Open zacurr opened 3 years ago

zacurr commented 3 years ago

thank you for sharing this. I just wanna check that the different channel order of the following implementation is all true, not just a mistake. plz confirm these. Thank you

https://github.com/nihui/ncnn-android-yolov5/blob/master/app/src/main/jni/yolov5ncnn_jni.cpp#L401 PIXEL_RGB

https://github.com/nihui/ncnn-android-mobilenetssd/blob/master/app/src/main/jni/mobilenetssdncnn_jni.cpp#L144 PIXEL_BGR

https://github.com/nihui/ncnn-android-styletransfer/blob/master/app/src/main/jni/styletransferncnn_jni.cpp#L105 PIXEL_RGB