Skip to content

Examples

Each example is a complete program. Their code lives in the examples folder of the repository, and this site shows the same files.

Before you run one

  1. Install the package. Webcam examples also need OpenCV.
  2. Export your model in Keras format.
  3. Put the files together:
my-project/
├── keras_model.h5
├── labels.txt
└── app.py        (the example code)

Run the program from this folder. In the webcam examples, click the video window and press Esc to quit.

All examples

Example What it shows
Webcam Classifier Classify camera frames and show the result on the video
Separate Drawing Classify and draw in two steps
Image File Classify a photo and act only when confident
Command-Line Webcam Choose the model and camera on the command line