Skip to main content

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
        detector.process_frame(frame, bounding_boxes)
        for detection in detector.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

objectdaddy-0.0.2.tar.gz (65.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

objectdaddy-0.0.2-py2-none-any.whl (32.9 MB view details)

Uploaded Python 2

File details

Details for the file objectdaddy-0.0.2.tar.gz.

File metadata

  • Download URL: objectdaddy-0.0.2.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

Hashes for objectdaddy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bc088e78451c610a32ef3ce5a994367e3e68e476c74d88011dcdb4486348f678
MD5 69c9ffdfa02fe0c7456dcf3819e4e4c3
BLAKE2b-256 4f16d48d80a6879feecc6d8fc956cd093cf0a383f9d5b0ab007631e444730653

See more details on using hashes here.

File details

Details for the file objectdaddy-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: objectdaddy-0.0.2-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

Hashes for objectdaddy-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 b3214e7fad2e6ab35b1ebda510578d75c74617042e9b11ce87c00f166839122c
MD5 30fdb4ba873f9cd645f06be705caa0d7
BLAKE2b-256 29ae180ff8b84c3f2086f62f415702c1f4b42432b2ec2c46822b4e390ff0ffc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page