Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Different detection result between opencv and tensorflow api

  • OpenCV =3.4.3(C++)
    • Operating System / Platform = Windows10 64 Bit/Ubuntu 16.04
    • Compiler = Visual Studio 2017
    • tensorflow = 1.8.0

I have trained SSD_mobilenet_v1 model in tensorflow(num_classes:3), and i follow this web guide use tf_text_graph_ssd.py

and generate a config file,but the result of opencv is different from the tensorflow api, tensorflow detection result is accurate but opencv is not this is my config filelink and some parameters of input

net.setInput(blobFromImage(image, 2./255, Size(300, 300), Scalar(127.5, 127.5, 127.5), true,true));

In fact, I use config file( opencv provideconfig) and get the better result, but it is not rflow api result

Different detection result between opencv and tensorflow api

  • OpenCV =3.4.3(C++)
      =3.4.3(C++)
    • Operating System / Platform = Windows10 64 Bit/Ubuntu 16.04
    • Compiler = Visual Studio 2017
    • tensorflow = 1.8.0

I have trained SSD_mobilenet_v1 model in tensorflow(num_classes:3), and i follow this web guide use tf_text_graph_ssd.py

and generate a config file,but the result of opencv is different from the tensorflow api, tensorflow detection result is accurate but opencv is not this is my config filelink and some parameters of input

net.setInput(blobFromImage(image, 2./255, Size(300, 300), Scalar(127.5, 127.5, 127.5), true,true));

In fact, I use config file( opencv provideconfig) and get the better result, but it is not like rflow tensorflow api result