All Projects → Hironsan → google-vision-sampler

Hironsan / google-vision-sampler

Licence: MIT license
Code examples for Google Vision API.

Projects that are alternatives of or similar to google-vision-sampler

google-cloud-vision-php
A simple php wrapper for the google cloud vision API
Stars: ✭ 16 (-65.96%)
Mutual labels:  face-detection, logo-detection, label-detection
Ios11 Visionframework
Vision Framework IOS WWDC 2017
Stars: ✭ 85 (+80.85%)
Mutual labels:  face-detection, text-detection
Face Dataset
Face related datasets
Stars: ✭ 204 (+334.04%)
Mutual labels:  face-detection
Applefacedetection
Face Detection with CoreML
Stars: ✭ 254 (+440.43%)
Mutual labels:  face-detection
Facerecognition
Nextcloud app that implement a basic facial recognition system.
Stars: ✭ 226 (+380.85%)
Mutual labels:  face-detection
S3fd.pytorch
SFD implement with pytorch
Stars: ✭ 212 (+351.06%)
Mutual labels:  face-detection
Cnn face detection
Implementation based on the paper Li et al., “A Convolutional Neural Network Cascade for Face Detection, ” 2015 CVPR
Stars: ✭ 251 (+434.04%)
Mutual labels:  face-detection
Arcface Multiplex Recognition
适用于复杂场景的人脸识别身份认证系统
Stars: ✭ 200 (+325.53%)
Mutual labels:  face-detection
facial-expression-recognition
Facial Expression Recognition Using CNN and Haar-Cascade
Stars: ✭ 44 (-6.38%)
Mutual labels:  face-detection
Retinaface
The remake of the https://github.com/biubug6/Pytorch_Retinaface
Stars: ✭ 226 (+380.85%)
Mutual labels:  face-detection
Img2pose
The official PyTorch implementation of img2pose: Face Alignment and Detection via 6DoF, Face Pose Estimation - CVPR 2021
Stars: ✭ 247 (+425.53%)
Mutual labels:  face-detection
Wear A Mask
😷 An SPA that uses only the front-end to perform deep-learning-based facial landmark detection on images and automatically adds breathing mask stickers.
Stars: ✭ 226 (+380.85%)
Mutual labels:  face-detection
Paddledetection
Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Stars: ✭ 5,799 (+12238.3%)
Mutual labels:  face-detection
Add Christmas Hat
Add Christmas hat on one's head based on OpneCV and Dlib
Stars: ✭ 251 (+434.04%)
Mutual labels:  face-detection
Face.evolve.pytorch
🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥
Stars: ✭ 2,719 (+5685.11%)
Mutual labels:  face-detection
Awesome Face recognition
papers about Face Detection; Face Alignment; Face Recognition && Face Identification && Face Verification && Face Representation; Face Reconstruction; Face Tracking; Face Super-Resolution && Face Deblurring; Face Generation && Face Synthesis; Face Transfer; Face Anti-Spoofing; Face Retrieval;
Stars: ✭ 3,220 (+6751.06%)
Mutual labels:  face-detection
Face toolbox keras
A collection of deep learning frameworks ported to Keras for face analysis.
Stars: ✭ 202 (+329.79%)
Mutual labels:  face-detection
Ownphotos
Self hosted alternative to Google Photos
Stars: ✭ 2,587 (+5404.26%)
Mutual labels:  face-detection
Facepapercollection
A collection of face related papers
Stars: ✭ 241 (+412.77%)
Mutual labels:  face-detection
assap
Anti Shoulder Surfing Attack Platform (ASSAP)
Stars: ✭ 22 (-53.19%)
Mutual labels:  face-detection

google-vision-sampler

Code examples for Google Vision API written in Python.

Description

Example codes has following features:

  • Face Detection
  • Landmark Detection
  • Logo Detection
  • Label Detection
  • Text Detection

Requirement

  • Python 3.x
  • Credentials

Setup

To install necessary library, simply use pip:

pip install google-cloud-vision

or,

pip install -r requirements.txt

Next, set up to authenticate with the Cloud Vision API using your project's service account credentials. See the Vision API Client Libraries for more information. Then, set the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to your downloaded service account credentials:

export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your/credentials-key.json

Quick Start: Running the Example

Face Detection

Face Detection demo using FACE_DETECTION feature.

Face Detection

$ python examples/face_detection.py images/face.jpg
Joy Likelihood: 1
Joy Likelihood: 5

Label Detection

Label Detection demo using LABEL_DETECTION feature.

Label Detection

$ python examples/label_detection.py images/label.jpg
Labels:
laptop
electronic device
technology
netbook
computer keyboard
personal computer
gadget

Landmark Detection

Landmark Detection demo using LANDMARK_DETECTION feature.

Landmark Detection

$ python examples/landmark_detection.py images/landmark.jpg
Found landmark: Statue of Liberty

Logo Detection

Logo Detection demo using LOGO_DETECTION feature.

Logo Detection

$ python examples/logo_detection.py images/logo.jpg
Found logo: Starbucks

Text Detection

Text Detection demo using TEXT_DETECTION feature.

Text Detection

$ python examples/text_detection.py images/text.png
The Daily News
The martians have come at last
Lorem Ipsum is simply dummy Lorem Ipsum is simply dummy
text of the printing and typesettingext of the printing and typesetting
industry. Lorem Ipsum has been industry. Lorem Ipsum has been
the industry's standard dummy the industry's standard dummy
text ever since the 1500s, when text ever since the 1500s, whern
an unknown printer took a galley an unknown printer took a galley
of type and scrambled it to make of type and scrambled it to make
a type specimen book. It has a type specimen book. It has
survived not only five centuries survived not only five centuries
, but also the leap into electronic , but also the leap into electronic
...

Image Sizing

To enable accurate image detection within the Google Cloud Vision API, images should generally be a minimum of 640 x 480 pixels (about 300k pixels). Full details for different types of Vision API Feature requests are shown below:

Vision API Feature Recommended Size Notes
FACE_DETECTION 1600 x 1200 Distance between eyes is most important
LANDMARK_DETECTION 640 x 480
LOGO_DETECTION 640 x 480
LABEL_DETECTION 640 x 480
TEXT_DETECTION 1024 x 768 OCR requires more resolution to detect characters
SAFE_SEARCH_DETECTION 640 x 480

Licence

MIT

Author

Hironsan

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].