Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.54 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.54 KB

Code style: black PyPI Version

codeproject-ai-api

A simple Python SDK for working with CodeProject.AI Server. This SDK provides classes for making requests to the object detection & face detection/recognition endpoints, as well as helper functions for processing the results. See the Jupyter notebooks for usage.

This work is a direct port of Robin Cole's original deepstack-python project.

Run CodeProject.AI Server (CPU mode):

docker run --name CodeProject.AI-Server -d -p 32168:32168 ^
 --mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\data,target=/etc/codeproject/ai ^
 --mount type=bind,source=C:\ProgramData\CodeProject\AI\docker\modules,target=/app/modules ^
   codeproject/ai-server

and ensure you have an ObjectDetection module and a Face Processing module installed.

Check CodeProject.AI Server is running by opening the dashboard at http://localhost:32168

Development

  • Create venv -> python3.7 -m venv venv
  • Use venv -> source venv/bin/activate
  • pip3 install -r requirements.txt and pip3 install -r requirements-dev.txt
  • Run tests with venv/bin/pytest tests/*
  • Black format with venv/bin/black .

Jupyter

  • Docs are created using Jupyter notebooks
  • Install in venv with -> pip3 install jupyterlab
  • Run -> venv/bin/jupyter lab