Git Product home page Git Product logo

tennis-detection-with-shape-and-color's Introduction

[TOC]

网球检测

1. Description

1.1 基于轮廓检测

HoughCircles

若使用霍夫圆检测,在main函数中设置

bool HOUGH = true

DRAWBACKS: 霍夫圆检测的精确度和灵敏度很难在同一个参数下保证

FitEllipse

若使用椭圆拟合,在fitellipse.h中设置

const bool fitEllipseQ = true;
const bool fitEllipseAMSQ = false;
const bool fitEllipseDirectQ = false;

分别对应

* 1: OpenCV's original method fitEllipse which implements Fitzgibbon 1995 method.

* 2: The Approximate Mean Square (AMS) method fitEllipseAMS proposed by Taubin 1991

* 3: The Direct least square (Direct) method fitEllipseDirect proposed by Fitzgibbon1999.

DRAWBACKS: 对小圆的检测灵敏度不如houghcircles

1.2 基于颜色检测

BGR with SVM

若使用SVM,在main函数中设置

bool SVM = true;

DRAWBACKS: windows上的预测每帧1s左右

因为目前后续检测都是基于轮廓的,所以颜色分离后再检测效果挺不理想的诶。。。

HSV

若使用HSV模型

我还没写好......

1.3 串口通信协议

发送的字符共10位

前四位:距离:个位、小数点后一位、......

第5~8位:角度:符号位、十位、个位

其中符号位0负1正,以逆时针方向为正方向

后两位:‘\0’ '\r'

2. Usage

Compile

$ mkdir build
$ cd build
$ cmake ..
$ make

Launch

$ ./bin/tennisbyCYQ

tennis-detection-with-shape-and-color's People

Contributors

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