takuya-takeuchi / FaceRecognitionDotNet

The world's simplest facial recognition api for .NET on Windows, MacOS and Linux
MIT License
1.27k stars 308 forks source link

Check Rgb vs Bgr data #97

Closed takuya-takeuchi closed 4 years ago

takuya-takeuchi commented 4 years ago

LossMmod and LossMetric expect RgbPixel. So we should not take care of BgrPixel default windows bitmap color order.

takuya-takeuchi commented 4 years ago

LoadImage method take IntPtr or byte[]. It means that developer must take care of color order. So should I provide method for swapping R and B?

But LoadImgeFile needs not to do.

takuya-takeuchi commented 4 years ago

Created RgbBgr example and explain document. https://github.com/takuya-takeuchi/FaceRecognitionDotNet/tree/develop/examples/RgbBgr