Skip to content

codeproject/CodeProject.AI-Server-API

 
 

Repository files navigation

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

About

A basic python SDK for CodeProject.AI Server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 98.6%
  • Python 1.4%