Skip to content

yongzhe2160/automl-video-ondevice

This branch is 30 commits behind google/automl-video-ondevice:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f1c94ed · Aug 29, 2019

History

3 Commits
Aug 21, 2019
Aug 21, 2019
Aug 29, 2019
Aug 29, 2019
Aug 21, 2019
Aug 21, 2019
Aug 29, 2019
Aug 21, 2019
Aug 21, 2019
Aug 21, 2019
Aug 21, 2019
Aug 21, 2019
Aug 21, 2019

Repository files navigation

AutoML Video On-Device Examples

The example code that shows how to load the Google Cloud AutoML Video Object Tracking On-Device models and conduct inference on a sequence of images from a video clip.

The targeted devices are CPU and Edge TPU.

Maintainers

Building

Launch a docker shell.

make -f ondevice-examples.makefile  docker-example-shell

Enter working directory.

cd /edgetpu-ml-cpp

Build the binaries. For development, stay in the docker shell and re-run the following command to create a new build.

make -f ondevice-examples.makefile ondevice-examples

The resulting binaries will be copied to cpp_example_out/ondevice_demo_*.

The ondevice-examples command will build binaries for amd64 (desktop), arm64, and arm32.

For faster development, use a platform specific makefile rule:

make -f ondevice-examples.makefile ondevice-examples-arm64

Visualization

Running ./ondevice_demo will create .txt files with the classes, score, and bounding boxes. To visualize the output, you may run the following command while still in the docker shell:

bazel run //tools:visualizer -- --image_path=`pwd`/output/00001.bmp --result_path=`pwd`/output/00001.bmp.txt --output_path=`pwd`/00001_visualized.bmp

Note that bazel does not execute from the working directory, so the paths are prefixed with `pwd`. This is not necessary if an absolute path is given.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 70.9%
  • Shell 29.1%