datitran / object_detector_app

Real-Time Object Recognition App with Tensorflow and OpenCV
https://medium.com/towards-data-science/building-a-real-time-object-recognition-app-with-tensorflow-and-opencv-b7a2b4ebdc32
MIT License
1.3k stars 746 forks source link

Print the detected objects on console #43

Open niladri30 opened 6 years ago

niladri30 commented 6 years ago

How to print the detected objects on console on real-time. Could you please provide any code snippet. I have embedded it in my Drone and now want to print the detected objects in real time. Thanks

RaR1991 commented 6 years ago

just go to draw_boxes_and_labels function at utils/app_utils.py and add a print statement before the return

HDeBoever commented 6 years ago

I have programmed a version of the code that goes into the category_index dict to print the detected instances of items in real time. You can find the updated version of the code on my repo: https://github.com/HDeBoever/virtual-reality/blob/master/object_detection_app.py