All Projects → philipperemy → vision-api

philipperemy / vision-api

Licence: other
Google Vision API made easy!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to vision-api

photonvision
PhotonVision is the free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition.
Stars: ✭ 115 (+505.26%)
Mutual labels:  vision
edge-computer-vision
Edge Computer Vision Course
Stars: ✭ 41 (+115.79%)
Mutual labels:  vision
Vision
Computer Vision And Neural Network with Xamarin
Stars: ✭ 54 (+184.21%)
Mutual labels:  vision
dd-ml-segmentation-benchmark
DroneDeploy Machine Learning Segmentation Benchmark
Stars: ✭ 179 (+842.11%)
Mutual labels:  vision
SAPC-APCA
APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays.
Stars: ✭ 266 (+1300%)
Mutual labels:  vision
mediapipe plus
The purpose of this project is to apply mediapipe to more AI chips.
Stars: ✭ 38 (+100%)
Mutual labels:  vision
CustomVisionMicrosoftToCoreMLDemoApp
This app recognises 3 hand signs - fist, high five and victory hand [ rock, paper, scissors basically :) ] with live feed camera. It uses a HandSigns.mlmodel which has been trained using Custom Vision from Microsoft.
Stars: ✭ 25 (+31.58%)
Mutual labels:  vision
VidSitu
[CVPR21] Visual Semantic Role Labeling for Video Understanding (https://arxiv.org/abs/2104.00990)
Stars: ✭ 41 (+115.79%)
Mutual labels:  vision
SentimentVisionDemo
🌅 iOS11 demo application for visual sentiment prediction.
Stars: ✭ 34 (+78.95%)
Mutual labels:  vision
non-contact-sleep-apnea-detection
Gihan Jayatilaka, Harshana Weligampola, Suren Sritharan, Pankayaraj Pathmanathan, Roshan Ragel and Isuru Nawinne, "Non-contact Infant Sleep Apnea Detection," 2019 14th Conference on Industrial and Information Systems (ICIIS), Kandy, Sri Lanka, 2019, pp. 260-265, doi: 10.1109/ICIIS47346.2019.9063269.
Stars: ✭ 15 (-21.05%)
Mutual labels:  vision
Final-year-project-deep-learning-models
Deep learning for freehand sketch object recognition
Stars: ✭ 22 (+15.79%)
Mutual labels:  vision
CarLens-iOS
CarLens - Recognize and Collect Cars
Stars: ✭ 124 (+552.63%)
Mutual labels:  vision
FaceData
A macOS app to parse face landmarks from a video for GANs training
Stars: ✭ 71 (+273.68%)
Mutual labels:  vision
face age gender
Can we predict the age and gender of someone given a picture of their face ?
Stars: ✭ 40 (+110.53%)
Mutual labels:  vision
flutter-vision
iOS and Android app built with Flutter and Firebase. Includes Firebase ML Vision, Firestore, and Storage
Stars: ✭ 45 (+136.84%)
Mutual labels:  vision
res-mlp-pytorch
Implementation of ResMLP, an all MLP solution to image classification, in Pytorch
Stars: ✭ 178 (+836.84%)
Mutual labels:  vision
mlp-mixer-pytorch
An All-MLP solution for Vision, from Google AI
Stars: ✭ 771 (+3957.89%)
Mutual labels:  vision
MathSolver
⌨️Camera calculator with Vision
Stars: ✭ 70 (+268.42%)
Mutual labels:  vision
SemanticSegmentation-Libtorch
Libtorch Examples
Stars: ✭ 38 (+100%)
Mutual labels:  vision
DonkeyDrift
Open-source self-driving car based on DonkeyCar and programmable chassis
Stars: ✭ 15 (-21.05%)
Mutual labels:  vision

Google Vision API

Made easy! Cloud Vision API enables developers to understand the content of an image by encapsulating powerful machine learning models in an easy-to-use REST API. It quickly classifies images into thousands of categories (such as, “sailboat”), detects individual objects and faces within images, and reads printed words contained within images.

Get started in 2 min!

Get the API key

Run those commands to install the lib

git clone [email protected]:philipperemy/vision-api.git && cd vision-api
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

Inference

Let's run one inference on a cat's picture:

Command

export GOOGLE_API_KEY=<API_KEY>; python vision.py images/cat.jpg

Output

You should get something like:

Show details
{
    "responses": [
        {
            "labelAnnotations": [
                {
                    "mid": "/m/01yrx",
                    "description": "cat",
                    "score": 0.99459696,
                    "topicality": 0.99459696
                },
                {
                    "mid": "/m/01l7qd",
                    "description": "whiskers",
                    "score": 0.9477582,
                    "topicality": 0.9477582
                },
                {
                    "mid": "/m/04rky",
                    "description": "mammal",
                    "score": 0.92298394,
                    "topicality": 0.92298394
                },
                {
                    "mid": "/m/07k6w8",
                    "description": "small to medium sized cats",
                    "score": 0.9217613,
                    "topicality": 0.9217613
                },
                {
                    "mid": "/m/0307l",
                    "description": "cat like mammal",
                    "score": 0.89394915,
                    "topicality": 0.89394915
                },
                {
                    "mid": "/m/035qhg",
                    "description": "fauna",
                    "score": 0.89245945,
                    "topicality": 0.89245945
                },
                {
                    "mid": "/m/012c9l",
                    "description": "domestic short haired cat",
                    "score": 0.777281,
                    "topicality": 0.777281
                },
                {
                    "mid": "/m/014sv8",
                    "description": "eye",
                    "score": 0.7664183,
                    "topicality": 0.7664183
                },
                {
                    "mid": "/m/05mqq3",
                    "description": "snout",
                    "score": 0.741837,
                    "topicality": 0.741837
                },
                {
                    "mid": "/m/0cnmr",
                    "description": "fur",
                    "score": 0.6560444,
                    "topicality": 0.6560444
                }
            ],
            "safeSearchAnnotation": {
                "adult": "VERY_UNLIKELY",
                "spoof": "UNLIKELY",
                "medical": "VERY_UNLIKELY",
                "violence": "VERY_UNLIKELY",
                "racy": "VERY_UNLIKELY"
            }
        }
    ]
}

Server mode

Start the server by running this command in a terminal tab:

export GOOGLE_API_KEY=<API_KEY>; python vision_server.py

In another tab, run this command to query the server:

python query.py images/cat.jpg 0.0.0.0

The first argument is the image. The second argument is the server IP. If you run everything locally, then it's 0.0.0.0.

You can also host the server on Amazon AWS. In that case, you will have to change the IP to the one Amazon gives you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].