OpenVisionAPI client

Overview

OpenVisionAPI Client

🚀 Getting Started

Prerequisites

Installing

Install the dependencies

$ make setup

Usage

$ source .venv/bin/activate
$ ./ova_client.py detection /path/to/image

The available options for the cli:

./ova_client.py detection --help
Usage: ova_client.py detection [OPTIONS] IMAGE

Options:
  -s, --save       Save the output image.
  -v, --visualize  Draw bounding boxes on the detected objects.
  --help           Show this message and exit.

Demo

$ make demo

Want to use httpie ?

$ pip install --user httpie
$ http -f POST https://api.openvisionapi.com/api/v1/detection  model="yolov4" image@images/cat.jpeg

HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 128
Content-Type: application/json
Date: Sat, 08 May 2021 18:08:03 GMT
Server: nginx
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload

{
    "description": "Detected objects",
    "predictions": [
        {
            "bbox": {
                "x1": 442,
                "x2": 982,
                "y1": 199,
                "y2": 1270
            },
            "label": "cat",
            "score": "0.93"
        }
    ]
}

Configuration

The configuration can be set up using the following env variables:

DETECTION_URL : The URL to the OpenVisionAPI server. The default is https://api.openvisionapi.com/api/v1/detection

DETECTION_MODEL : The object detection model to use. The default is yolov4

RESULT_DIR : The directory where to store the result. The default is ./results

⛏️ Built Using

✍️ Author

Badr BADRI

🤝 Contributing

Your contributions are welcome !

Setting up development environment

To setup the development environment, simply run this command

$ make dev

Code-style checks

black is used for code formatting.

mypy is used for static typing.

🔧 Tests

To run the tests, simply run those commands

$ make dev
$ make test

⚖️ License

AGPLv3

Copyright © 2021 Badr BADRI @pythops

You might also like...
Python Client for Instagram API

This project is not actively maintained. Proceed at your own risk! python-instagram A Python 2/3 client for the Instagram REST and Search APIs Install

The official Python client library for the Kite Connect trading APIs

The Kite Connect API Python client - v3 The official Python client for communicating with the Kite Connect API. Kite Connect is a set of REST-like API

Official Python client for the MonkeyLearn API. Build and consume machine learning models for language processing from your Python apps.

MonkeyLearn API for Python Official Python client for the MonkeyLearn API. Build and run machine learning models for language processing from your Pyt

An API Client package to access the APIs for NBA.com

nba_api An API Client package to access the APIs for NBA.com Development Version: v1.1.9 nba_api is an API Client for www.nba.com. This package is mea

A Python Client for News API

newsapi-python A Python client for the News API. License Provided under MIT License by Matt Lisivick. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRAN

A client interface for Scrapinghub's API

Client interface for Scrapinghub API The scrapinghub is a Python library for communicating with the Scrapinghub API. Requirements Python 2.7 or above

SmartFile API Client (Python).
SmartFile API Client (Python).

A SmartFile Open Source project. Read more about how SmartFile uses and contributes to Open Source software. Summary This library includes two API cli

Python client for the Socrata Open Data API

sodapy sodapy is a python client for the Socrata Open Data API. Installation You can install with pip install sodapy. If you want to install from sour

Python client for the Echo Nest API
Python client for the Echo Nest API

Pyechonest Tap into The Echo Nest's Musical Brain for the best music search, information, recommendations and remix tools on the web. Pyechonest is an

Comments
  • API not available

    API not available

    Hi, I am trying to use this API but I am not able to connect to the endpoint. I followed the documentation and tested it using the following curl command: curl -X POST https://api.openvisionapi.com/api/v1/detection -F "model=yolov4" -F "image=@images/cat.jpeg" And then I am getting it: curl: (6) Could not resolve host: api.openvisionapi.com

    image

    Some weeks ago I was able to use this API normally. Is it still available?

    opened by sudoariel 1
  • OpenvisionAPI Server is running?

    OpenvisionAPI Server is running?

    Hello,

    Thank you by this API. Currently the api is not working isn't it? It was working normally, but now it is giving the following error HTTPSConnectionPool(host='api.openvisionapi.com', port=443): Max retries exceeded with url: /api/v1/detection (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10bf95310>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))

    Anyone can help me to solve this?

    Thank you

    opened by ricardolimaui 1
Owner
Open Vision API
Open source computer vision API based on open source models
Open Vision API
Dns-Client-Server - Dns Client Server For Python

Dns-client-server DNS Server: supporting all types of queries and replies. Shoul

Nishant Badgujar 1 Feb 15, 2022
Raphtory-client - The python client for the Raphtory project

Raphtory Client This is the python client for the Raphtory project Install via p

Raphtory 5 Apr 28, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 8, 2023
Python client for Arista eAPI

Arista eAPI Python Library The Python library for Arista's eAPI command API implementation provides a client API work using eAPI and communicating wit

Arista Networks EOS+ 124 Nov 23, 2022
Python API Client for Close

Close API A convenient Python wrapper for the Close API. API docs: http://developer.close.com Support: [email protected] Installation pip install clos

Close 56 Nov 30, 2022
Python client for CoinPayments API

pyCoinPayments - Python API client for CoinPayments Updates This library has now been converted to work with python3 This is an unofficial client for

James 27 Sep 21, 2022
DEPRECATED - Official Python Client for the Discogs API

⚠️ DEPRECATED This repository is no longer maintained. You can still use a REST client like Requests or other third-party Python library to access the

Discogs 483 Dec 31, 2022
The Foursquare API client for Python

foursquare Python client for the foursquare API. Philosophy: Map foursquare's endpoints one-to-one Clean, simple, Pythonic calls Only handle raw data,

Mike Lewis 400 Dec 19, 2022
An unofficial client library for Google Music.

gmusicapi: an unofficial API for Google Play Music gmusicapi allows control of Google Music with Python. from gmusicapi import Mobileclient api = Mob

Simon Weber 2.5k Dec 15, 2022
python3.5+ hubspot client based on hapipy, but modified to use the newer endpoints and non-legacy python

A python wrapper around HubSpot's APIs, for python 3.5+. Built initially around hapipy, but heavily modified. Check out the documentation here! (thank

Jacobi Petrucciani 140 Dec 21, 2022