Tools for interacting with the HuskyLens AI camera
Project description
About
huskytools provides tools for interacting with the HuskyLens AI camera.
Features
-
Low-level API for interacting with the HuskyLens camera. It's meant as a replacement for the official HuskyLens Python API. It's not a drop-in replacement but all the functionality, except for I2C-support, is there.
-
A command line interface for quick testing and debugging.[NOT IMPLEMENTED YET]
-
Helper classes for working with the HuskyLens camera, e.g. a class for working with faces. [NOT IMPLEMENTED YET]
Installation
huskytools is available on PyPI, so you can install it with pip:
pip install huskytools
Alternatively, you can install the latest development version of huskytools by cloning the repository and install it with pip:
git clone https://github.com/Andreasdahlberg/husky-tools.git
cd husky-tools
pip install .
Usage
API
This example shows how to connect to the HuskyLens.
from huskytools import huskylens
with huskylens.Interface("/dev/ttyUSB0") as lens:
if lens.knock():
print("HuskyLens connected")
else:
print("HuskyLens not found")
This example shows how to get all detected faces from the HuskyLens.
from huskytools import huskylens
with huskylens.Interface("/dev/ttyUSB0") as lens:
if lens.knock():
lens.set_algorithm(huskylens.RecognitionAlgorithm.FACE_RECOGNITION)
for block in lens.get_blocks():
print("Block ID: {}, X: {}, Y: {}".format(block.id, block.x, block.y))
Command line interface
NOT IMPLEMENTED YET
Helper classes
NOT IMPLEMENTED YET
Contributing
Contributions are welcome. Please open an issue or a pull request on GitHub.
Support
If you have any questions or problems, please open an issue on GitHub and i will be happy to help.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for huskytools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dfb49dcc2a407ac96b45a6ce501681bffb60712a1f0041d730d0df1cffc48f1 |
|
MD5 | 22beb3f4c43dc00e7d1c276e732a27a7 |
|
BLAKE2b-256 | 7407e30e7f10a63c77d5d21e111b781dd2cfccc0d789c85aa6d23ab653243747 |