Some simple applications

As a concluding paragraph of the code provisioning, we demonstrate just three simple scripts leveraging the three different sources used by our project: files, videos, webcam.

Our first testing script aims at annotating and visualizing three images after importing the class DetectionObj from the local directory (In cases where you operate from another directory, the import won't work unless you add the project directory to the Python path).

In order to add a directory to the Python path in your script, you just have to put sys.path.insert command before the part of the script that needs access to that directory: import sys sys.path.insert(0,'/path/to/directory')

Then we activate the class, declaring it using the ...

Get TensorFlow Deep Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.