A python yolov3-tiny-based object recognizer.
Project description
Object Daddy
A simple, python-based object recognizer, basically an implementation of yolo-v3-tiny. This package is used for personal projects; I don't maintain it, so use at your own risk, and feel free to fork.
Usage
Basic usage is as follows. This project is built to work with rtsparty (also on pypi).
You can get and recognize one frame using the following:
from rtsparty import Stream
from objectdaddy import Daddy
stream = Stream()
daddy = Daddy()
frame = stream.get_frame()
results, frame = daddy.process_frame(frame)
for detection in results:
detection.identify()
For continuous recognition, use the following code.
from rtsparty import Stream
from objectdaddy import Daddy
stream = Stream()
daddy = Daddy()
try:
while True:
frame = stream.get_frame()
if stream.is_frame_empty(frame):
continue
daddy.process_frame(frame)
for detection in daddy.get_current_detections():
if not detection.has_been_processed_downstream:
detection.identify()
detection.has_been_processed_downstream = True
except KeyboardInterrupt:
pass
The code makes the attempt to recognize objects across multiple frames, and keep a list of objects in memory accessed with the get_current_detections() function.
Notes
- This package supports only CPU-based inference.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file objectdaddy-0.0.5.tar.gz.
File metadata
- Download URL: objectdaddy-0.0.5.tar.gz
- Upload date:
- Size: 65.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b9c2058f1e1287d5d177178c2a75b5ee2ccfa86bde652e55e6476d979cbbb34
|
|
| MD5 |
16d4bcd2bfb0e82bd95abcae48f716b0
|
|
| BLAKE2b-256 |
ad55c97656eeda641814541b63c718d050f312f42b685367e594f4a01b5ba045
|
File details
Details for the file objectdaddy-0.0.5-py2-none-any.whl.
File metadata
- Download URL: objectdaddy-0.0.5-py2-none-any.whl
- Upload date:
- Size: 32.9 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb702f1ad0c8b9e70654ad9fecd10d9b2a6cc5b7b3ed80d5f8a349619bcb81d9
|
|
| MD5 |
b0b010bf969e3c65732f701015bd2044
|
|
| BLAKE2b-256 |
a9dfd33d3a1be70e2c67ccb014d44a52a3ccc804ef974085f0645c73a4e92c8e
|