Skip to main content

out-of-the-box computer vision

Project description


Computer vision models OOB (out-of-the-bottle).
   ___        .+'. '+.
   )_(       /:;/ _.+'\
   + +       +:._   .++
 .+'+'+.  _  |:._     |
/+::_..+_[_]_+:._CV   |
)_     /_   _\:._     |
+;:    )_``'_(:._     +
Step into the cellar and select a bottle of computer visions.
  • Face detection & localization
  • Face classification
    • age
    • gender
  • Object tracking
  • Object classification w/o localization


  • v0.1.0 - improve asset loading
    • annotations for face/object detection
  • v0.2.0 - reduce and combine models to save space
  • v0.3.0 - implement basic models to support classification
    • face detection
    • generic object detection & localization
    • style transfer
    • face recognition


Object Detection

# Get a PIL image from somewhere:
_image = ...

# Use PIL image as input:
import huasca

detector = huasca.detect.ObjectDetector()
annotated,classes,scores,boxes = detector.detect(_image)'test.png')
  • annotated: the input image with annotated boxes and labels drawn on it
  • classes: the labels of detected objects
  • scores: confidence score for each detected object
  • boxes: (x1,y1,x2,y2) coordinates for each box
    • top-left corner is (0,0) and offsets go down/right (physics indexing)

Object Tracking

import tracking

data = json.load(json_data)
object_log = tracking.track_objects(data)
output_json = [obj.to_json() for obj in object_log]

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 huasca, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size huasca-0.1.0.tar.gz (49.1 MB) File type Source Python version None Upload date Hashes View
Filename, size huasca-0.1.0-py3-none-any.whl (49.1 MB) File type Wheel Python version py3 Upload date Hashes View

Supported by

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