Skip to main content

Pipeline for detecting vehicles and pedestrians and extract features.

Project description

## Install

pip install -r requirements.txt

## Run

from o4 import O4

weights = “tests/wheights/yolov3.weights” names = “tests/wheights/coco.names” anchors = “tests/wheights/yolov3.cfg”

INPUT_DIR = “o4/data/input/braga.mp4” OUTPUT_DIR = “o4/data/output/output.avi”

o4 = O4(weights, names, anchors)

o4.video(INPUT_DIR, OUTPUT_DIR)

o4.add_feature(DetectionBoxes()) o4.add_feature(Counter(object_types=[“person”])

while o4.next(): ` value = counter_persons.get_value()` ` print(value)`

o4.close()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for o4, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size o4-0.5.2-py3-none-any.whl (136.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size o4-0.5.2.tar.gz (43.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page