tensorflowiOS icon indicating copy to clipboard operation
tensorflowiOS copied to clipboard

No detection box

Open dahwang22 opened this issue 7 years ago • 5 comments

Hi, I had success run the swift project on my device, but there is no any detection box even I move my 6s around, can you help me fix it?

dahwang22 avatar Feb 03 '18 01:02 dahwang22

It is possible the graph failed to load. Do you see any errors in the console?

csharpseattle avatar Feb 03 '18 03:02 csharpseattle

There is no any error message in the console

dahwang22 avatar Feb 03 '18 03:02 dahwang22

If everything is running okay you should periodically see something like this in the console: Avg. prediction time: 0.184770

To track down the problem you can try different lighting and use different phone orientations. The list of objects it should recognize is in the file mscoco_label_map.txt . Also, I recommend building with ssd_mobilenet_v1 (the default). The processing time on faster_rcnn and inception_v2 can be much longer.

csharpseattle avatar Feb 03 '18 03:02 csharpseattle

ok, thank you for your recommend, i will try it soon.

dahwang22 avatar Feb 03 '18 04:02 dahwang22

Ok, let me know how it goes. Another thing you can try is to set the PredictionThreshold lower at the top of TensorflowGraph.mm. Bounding boxes are only drawn for percentages greater than this amount.

csharpseattle avatar Feb 03 '18 05:02 csharpseattle