• 大小: 1.38MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: 其他
  • 标签:

资源简介

程序能跑,对于学习手势识别的童鞋是不错的资源

资源截图

代码片段和文件信息

// @Author:onezeros@yahoo.cn
// @Date:10/8/2010

//abstract features:width/height white pixels ratio
#include 
#include 
#include 

#include 
#include 
#include 
#include 
#include 
#include 
using namespace std;

void featrue(IplImage* imgfloat& widHeiRatiofloat& whitePixelRatio)
{
assert(img->nChannels==1);
unsigned long whitePixelNum=0;

int top=img->height;
int bottom=-1;
int right=0;
for (int w=0;wwidth;w++){
bool isBlack=true;
int b=-1;
int t=-1;
unsigned char* pline=(unsigned char*)(img->imageData);
for (int h=0;hheight;h++pline+=img->widthStep){
if (*(pline+w)>100){
isBlack=false;
whitePixelNum++;
if (t<0){
t=h;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4376  2010-10-08 21:19  StoneScissorsCloth\StoneScissorsCloth.vcproj

     文件       3200  2010-10-08 15:44  StoneScissorsCloth\feature-widthHeight.txt

     文件        901  2010-09-30 18:51  StoneScissorsCloth\StoneScissorsCloth.sln

    ..A..H.     25600  2010-10-09 22:00  StoneScissorsCloth\StoneScissorsCloth.suo

     文件       1423  2010-10-09 22:00  StoneScissorsCloth\StoneScissorsCloth.vcproj.FOOLPP-REGION.Administrator.user

     文件       2069  2010-10-08 19:35  StoneScissorsCloth\StoneScissorsCloth_feature.cpp

     文件       3200  2010-10-08 15:44  StoneScissorsCloth\feature-whiteRatio.txt

     文件       8933  2010-10-08 19:35  StoneScissorsCloth\StoneScissorsCloth_recognation_test.cpp

     文件         30  2010-10-08 14:52  StoneScissorsCloth\questions.txt

     文件        103  2010-10-08 15:51  StoneScissorsCloth\test-result.txt

     文件       1270  2006-07-22 10:17  StoneScissorsCloth\bitmap1.bmp

     文件     113312  2010-10-08 20:57  StoneScissorsCloth\stone1.jpg

     文件        103  2010-10-08 15:45  StoneScissorsCloth\test-result-normal-distance.txt

     文件       7508  2010-10-09 21:40  StoneScissorsCloth\StoneScissorsCloth_recognize.cpp

     文件       4631  2010-10-08 19:35  StoneScissorsCloth\StoneScissorsCloth_sample.cpp

     文件       1964  2010-10-08 21:19  StoneScissorsCloth\StoneScissorsCloth.rc

     文件      34568  2010-10-08 21:19  StoneScissorsCloth\StoneScissorsCloth.aps

     文件     180054  2010-10-09 21:18  StoneScissorsCloth\stone.bmp

     文件     180054  2010-10-09 21:11  StoneScissorsCloth\scissors.bmp

     文件        461  2010-10-08 21:19  StoneScissorsCloth\resource.h

     文件       6558  2010-10-09 13:49  StoneScissorsCloth\复件 StoneScissorsCloth_recognize.cpp

     文件     180054  2010-10-09 21:20  StoneScissorsCloth\cloth.bmp

     文件      15836  2010-10-09 21:25  StoneScissorsCloth\game.jpg

     文件     823548  2010-10-10 08:22  StoneScissorsCloth\StoneScissorsCloth-images.zip

     文件        304  2010-10-08 10:21  StoneScissorsCloth\ideas.txt

     目录          0  2012-03-17 23:31  StoneScissorsCloth

     文件       1270  2006-07-22 10:17  StoneScissorsCloth\StoneScissorsCloth\bitmap1.bmp

     文件     180054  2010-10-09 21:20  StoneScissorsCloth\StoneScissorsCloth\cloth.bmp

     文件       3200  2010-10-08 15:44  StoneScissorsCloth\StoneScissorsCloth\feature-whiteRatio.txt

     文件       3200  2010-10-08 15:44  StoneScissorsCloth\StoneScissorsCloth\feature-widthHeight.txt

............此处省略25个文件信息

评论

共有 条评论

相关资源