Respond to appsink CONTEXT queries

On GStreamer 1.14 we get different GL context in the two tee branches
which is one reason why the inference branch sees solid black frames
(i.e. all zeroes). Since CONTEXT queries now aren't propagated from
one tee branch to others they never reach glimagesink so it can't
share its context. We thus respond with said context when the query
reaches the appsink, so that only one GL context is shared between
all GL elements. If multiple contexts are used there will be texture
id mismatch between the tee branches.

Change-Id: I7261e1cd480cb8811c3c106bf7b9e2dd557fe48c
3 files changed
tree: 27bfcf5cb6561d77c1cb06e7151d11cfbf3f5341
  1. debian/
  2. edgetpuvision/
  3. .gitignore
  4. MANIFEST.in
  5. README.md
  6. setup.py
  7. stdeb.cfg
README.md

edgetpuvision

Python API to run inference on image data coming from the camera.

Build

python3 setup.py sdist python3 setup.py bdist python3 setup.py sdist_wheel

Debian pacakge

Install stdeb package by running apt-get install python3-stdeb or pip3 install stdeb. Then to generate debian folder run:

python3 setup.py --command-packages=stdeb.command debianize

To build debian pacakge run:

dpkg-buildpackage -b -rfakeroot -us -uc -tc