Skip to main content

Rating system using computer vision

Introduction

RateMe is a neural network that allows you to recognize gestures of thumb up and thumb down. The algorithm can be embedded in your project and automate the process of evaluation of something or someone.

For example, using Rate Me you can:

  • Rate music on the YouTube Music service, when you are uncomfortable with clicking buttons

  • Count the votes in a beauty contest to determine the winner

  • Rate drinks and meals during their tasting

Technical part

Dependencies

opencv-contrib-python, numpy

matplotlib, jupyter for jupyter-notebook

pip3 install opencv-contrib-python numpy

Usage

Open Test_RateMe.ipynb to test RateMe on example images (for that you need to start jupyter-notebook, it will open window in your browser, where you need to select Test_RateMe.ipynb).

For example of realtime detection run detect_on_webcam.py.

Minimal working example:

import cv2
from RateMe.utils import RateMe

img = cv2.imread('test_imgs/like.jpg')
label = net.decode(img)

Description

RateMe is based on tiny-YOLOv3 architecture.

It's accuracy of thumb up/down gesture recognition is calculated as mean average precision (mAP@0.25) = 0.851941, or 85.19%; average IoU = 73.89%

The neural network has been trained on ~3K images (taken from different angles photos of people showing their thumbs or not). Images were labeled using the labelImg program.

Class labels: 0 -- "Like (thumb up)", 1 -- "Dislike (thumb down)"

Speed

Full pipeline speed is 6-7 FPS on Intel(R) Core(TM) i5-4300M CPU @ 2.60GHz.

~100ms on frame grabbing

~100ms on neural network inference

Metadata

Release files for rateme 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rateme 0.1.0
File Interpreter ABI Platform
rateme-0.1.0-cp3-none-any.whl CPython 3 none any Details

Release files / rateme-0.1.0-cp3-none-any.whl

Download URL rateme-0.1.0-cp3-none-any.whl
Size 32.2 MB
Tags CPython 3
SHA-256 checksum
How to use checksums
85e43c8328d3f0cc5784353c8e412047a4cf471deef79bddfeca555f3488af86
BLAKE2b-256 checksum
How to use checksums
6d6d1dda63022e0dae87615b7a1af5172f0c0c3547948de4769d977064143891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page