Skip to content

It seems like a bug about this project #183

@futureflsl

Description

@futureflsl

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions