Python library for various computer vision problems with a focus on easy usage
Project description
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_TASKSfor 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
imageparameter.
$ 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
MODELSatceevee/__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
Project details
Release history Release notifications | RSS feed
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 ceevee-0.0.1.tar.gz.
File metadata
- Download URL: ceevee-0.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68bfcd589bb1a67afd3f29a2158837597c39d61808ccaa25c5e67a7a79aecc23
|
|
| MD5 |
eb506f0475ea1f2560b33a74db74fd35
|
|
| BLAKE2b-256 |
414e3aa1b32cc4591cbc03e82ef64331618b779a6b79ecd82de99f11b4a77c59
|
File details
Details for the file ceevee-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: ceevee-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c320f2159b3d2d3bd54c1ec9c1962d4e349d07d35e4e32923dddfa402627583
|
|
| MD5 |
53f6fd45dfc1c6636a031b053e001dd5
|
|
| BLAKE2b-256 |
17fac3f205fa0296003a14f14ea264db377677dc2b40d260f10710f422c0f32f
|