tensorflow / models

Models and examples built with TensorFlow
Other
76.97k stars 45.79k forks source link

Tensorflow lite object detection andriod examples app run on my phone but nothing detection #9389

Open mingx9527 opened 3 years ago

mingx9527 commented 3 years ago

Prerequisites

Please answer the following question for yourself before submitting an issue.

1. The entire URL of the file you are using

https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android

2. Describe the feature you request

build the android app and run on my phone "xiaomi mi 6x" (android 11) build is OK run is OK but nothing detection object WeChat Image_20201016154631

3. Additional context

image

4. Are you willing to contribute it? (Yes or No)

Yes

srjoglekar246 commented 3 years ago

@lintian06 , could you take a look?

lintian06 commented 3 years ago

Hi @mingx9527, just want to make sure no error is occurred: Can you check Android Studio's console to debug whether there is any error message?

Another question: Is your detect.tflite model downloaded with gradle or created by your own?

Thank you!

lu-wang-g commented 3 years ago

@mingx9527 Looks like you customized the reference app, because "Crop" and "Inference Time" are both 640x480. The original "Crop" value should be 300. Can you please provide code examples of how you modified the app?