How to extract the classes found in a real-time capture of object detction with the APi of tensorflow?

0

Good day, what I want to achieve is to extract in real time the labels of the objects detected in the videocamera to be able to store them in a txt or xml or json.

Does anyone have an idea of how I can do it?

I'm using python 3.6 with the Tensorflow 1.8 API and open cv for real-time video capture

GREETINGS

    
asked by JuanK 10.08.2018 в 16:29
source

1 answer

0

For a simple case of images you could directly use the Object Detection model on TensorFlow.

This example makes the detection on an image. The current function works with boxes and classes , and the recommendation is to use the score of the detection to have a better experience in the result .

The model used in the implementation is ssd_mobilenet_v1_coco_2017_11_17 so you could use a more agile one if you want more speed.

For the case of videos or the stream of the cam, well here if CV is useful, I left the modification of the example with a video, simulating the stream of the cam. * here we must work the parallelism for some production

The complete project is in Colab , I'll soon include it with GitHub to keep it better.

    
answered by 14.08.2018 в 17:57