Coder Social home page Coder Social logo

cloudeye's Introduction

CloudEye

简体中文 | English (coming soon)

CloudEye,一个玩具级的Python计算机视觉库。

Roadmap

  • 手势分类器
  • 颜色检测器
  • 图形检测器
  • 垃圾分类器
  • 人脸检测器
  • 人体关键点检测器
  • 手势关键点检测器
  • 面部关键点检测器

快速开始

1. 安装

pip3 install cloudeye==0.0.3

2. 识别手势

使用opencv

import cloudeye
import cv2

img = cv2.imread("test.jpg")

classification = cloudeye.gesture.classification()

classification.init(print_info=True)
hand = classification.classify(img=img, score_threshold=0.5)

if not hand == -1: 
	print("手势:", hand)
else:
    print("未知手势")

直接调用

import cloudeye

classification = cloudeye.gesture.classification()

classification.init(print_info=True)
hand = classification.classify(img="test.jpg", score_threshold=0.5)

if not hand == -1: 
	print("手势:", hand)
else:
    print("未知手势")

API接口说明

cloudeye.gesture

手势识别接口。

cloudeye.gesture.classification

cloudeye.gesture.classification()

手势分类器。

cloudeye.classification.init

cloudeye.classification.init(print_info=True)

初始化手势分类器。

  • 参数
    • print_info: 是否输出初始化时的信息

cloudeye.classification.classify

cloudeye.classification.classify(img, score_threshold=0.5)

从图片中获取手势。

  • 参数

    • img: 图片文件路径或numpy数组(HWC排列,BGR格式,opencv读取的图片默认是这种格式)。
    • score_threshold: 置信度,大于置信度的预测结果会被返回,否则认为是未知手势。
  • 返回结果

    • -1: 未知手势。
    • 0 - 9: 分别对应10种手势。
    数字 手势
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9

cloudeye's People

Contributors

cloudsir avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.