Skip to main content

Build status

ceevee

ceevee (read like CV, i.e. computer vision) is a Python library for various computer vision problems with a focus on easy usage.

ceevee aims to be a bridge between deep learning practitioners training accurate models and product-oriented software engineers who just want to process their images instead of diving into the deep learning ecosystem.

Python 3.6+ is supported.

Install

From PyPI - not available yet

From source

python setup.py bdist_wheel
pip install -U ceevee-0.0.1-py3-none-any.whl

Tasks

Usage

All tasks shares the same API

CLI API

python -m ceevee.cli task /path/to/img1.jpg /path/to/img2.jpg ... /path/to/imgN.jpg > result.json

HTTP API

HTTP API is based on Falcon, so it can be used with any WSGI server, such as uWSGI or Gunicorn.

  • install your favourite WSGI server (e.g. pip install gunicorn)
  • set env variable CEEVEE_TASKS for your tasks, multiple comma separated tasks are supported, e.g. CEEVEE_TASKS=task1,task2
  • run a server CEEVEE_TASKS=dummy gunicorn ceevee.cv_http;
  • send a POST request with image parameter.
$ http -f POST localhost:8000/dummy image@/tmp/img.jpg
HTTP/1.1 200 OK
Connection: close
Date: Sat, 14 Sep 2019 13:47:39 GMT
Server: gunicorn/19.9.0
content-length: 37
content-type: application/json

{
    "result": [
        500,
        500,
        3
    ],
    "success": true
}

Python API

from ceevee.utils import read_img
from ceevee.dummy import DummyPredictor
baseline = DummyPredictor()
img = read_img('/path/to/img.jpg')
result = baseline(img)

Contributions

Yes, you can add a new model!

Checklist:

  • create a GitHub issue with your suggested model;
  • create a new Baseline class (see ceevee.dummy.DummyBaseline) and implement three methods (preprocess, process, postprocess);
  • add your model to MODELS at ceevee/__init__.py
  • add tests to tests/;
  • once CI is green, create a pull request!

ToDo:

  • infrastructure:
    • packaging, pip
  • APIs:
    • http: tests, error handling
  • models:
    • face detection
    • face emotion
    • face keypoints
    • car detection
    • crowd density estimation

Metadata

Release files for ceevee 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ceevee 0.0.1
File Size Uploaded
ceevee-0.0.1.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ceevee 0.0.1
File Interpreter ABI Platform
ceevee-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 10.7 kB

Release files / ceevee-0.0.1.tar.gz

Download URL ceevee-0.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68bfcd589bb1a67afd3f29a2158837597c39d61808ccaa25c5e67a7a79aecc23
BLAKE2b-256 checksum
How to use checksums
414e3aa1b32cc4591cbc03e82ef64331618b779a6b79ecd82de99f11b4a77c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.6

Release files / ceevee-0.0.1-py2.py3-none-any.whl

Download URL ceevee-0.0.1-py2.py3-none-any.whl
Size 5.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1c320f2159b3d2d3bd54c1ec9c1962d4e349d07d35e4e32923dddfa402627583
BLAKE2b-256 checksum
How to use checksums
17fac3f205fa0296003a14f14ea264db377677dc2b40d260f10710f422c0f32f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page