-
Notifications
You must be signed in to change notification settings - Fork 133
Description
when I use yoloWrapper.Detect(string filename); this is directly using C++ API.inference a bmp file ,the result confidence is 0.6,However,I use function yoloWrapper.Detect(byte[] bytes),the same picture confidence result is 0.46!
When I use OpencvSharp
var image=Cv2.Imread("test.bmp");
yoloWrapper.Detect(image.ToBytes())
confidence result is 0.46
When I use File.Read
var bytes=File.ReadllBytes("test.bmp");
yoloWrapper.Detect(bytes)
confidence result is still 0.46
When I use Bitmap
Bitmap bmp=new Bitmap("test.bmp")
var bytes=BitmapToBytes(bmp); //this function use MemoryStream Convert Bitmap to byte array
yoloWrapper.Detect(bytes)
confidence result is still 0.46
So,What is the problem?
I also try darknet yolo_cpp_dll.dll inference,I find the same bad result.But I direct use
darknet.exe detector test obj.data yolov3.cfg yolov3.weights test.bmp
the result is 0.6!