Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems like a bug about this project #183

Open
futureflsl opened this issue Sep 13, 2021 · 0 comments
Open

It seems like a bug about this project #183

futureflsl opened this issue Sep 13, 2021 · 0 comments

Comments

@futureflsl
Copy link

futureflsl commented 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!

@futureflsl futureflsl changed the title It seem like a bug about this project It seems like a bug about this project Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant