You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
futureflsl
changed the title
It seem like a bug about this project
It seems like a bug about this project
Sep 13, 2021
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!
The text was updated successfully, but these errors were encountered: