Existing example of a OpenCV, TensorFlow Android application

asked 2018-05-02 09:40:59 -0600

paatz04 gravatar image


I've been trying to find a working example of an Android application using OpenCV and TensorFlow Object Detection API on the android platform. I found lots of examples using TensorFlow directly, but I'd prefer using TensorFlow through OpenCV. I have a working application using some OpenCV features such as HAAR classifiers on android. If I can find a c++ example using TensorFlow's Object Detection API, can I just use that code? Will that run on Android - I'm having trouble finding exact literature about it. Can anyone recommend some article, that I couldn't find ? This guide: https://medium.com/mindorks/detection...

Seems overly complicated compared to how easy it was to get OpenCV running. I

Thanks a lot in advance!

edit retag flag offensive close merge delete


there is an example app for opencv's dnn here

it's currently loading a caffe model, but changes needed would be minimal.

berak gravatar imageberak ( 2018-05-02 09:49:24 -0600 )edit

Thanks @berak ! I'll be looking at that example right now

paatz04 gravatar imagepaatz04 ( 2018-05-02 10:02:27 -0600 )edit

Hi @berak , do you know if there is a way to improve performance ? I was hoping reducing classes would help. I already crop images down to 300x300, but on my OnePlus 5T it only manages to run at around 3fps. Thanks!

paatz04 gravatar imagepaatz04 ( 2018-05-25 09:54:43 -0600 )edit

reducing classes won't help that much (wrong end of a pyramid), more reducing the input size even further

berak gravatar imageberak ( 2018-05-25 10:08:19 -0600 )edit

thank you berak.

paatz04 gravatar imagepaatz04 ( 2018-07-04 06:55:04 -0600 )edit