货币识别系统 [英] Currency recognation system

查看:109
本文介绍了货币识别系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于我的项目的所有细节和问题我的项目是桌面应用程序的金钱识别,网络摄像头的笔记本电脑是捕获图像,并将图像与图像数据集进行比较。我现在使用开放cv库(C ++)和SURF算法我的问题是我有10个图像(有数据集)我想要((条件))如果在数据集中找不到第一个图像返回false并尝试使用第二个图像并执行此操作直到在数据集中找到图像(任何一个)并在发送数字图像(1,2,3 .....)到cmd之后返回true,例如10,50,100,.....



这是我的代码,这是我获得此代码时的参考。



Features2D + Homography找到一个已知对象& mdash; OpenCV 2.4.13.0文档 [ ^ ]



这是我在Dropbox上下载的代码



Dropbox - 货币识别system.txt [ ^ ]



我尝试了什么:



i want((条件))如果在数据集中找不到第一张图片则返回false并尝试使用第二个图像并执行此操作直到在数据集中找到图像(任何一个)并在发送数字图像(1,2,3 .....)到cmd之后返回true,例如10,50,100,... ..

all details and problem about my project my project is money recognition by Desktop application the webcam's laptop is capture image and compare the image with data set of image. i used open cv library (C++) and SURF algorithm now my problem is i have 10 image (with data set) i want ((condition)) if first image not found in data set return false and try with second image and do this until find image(any one ) in data set and return true after that send number image (1,2,3.....) to cmd for say 10,50,100,.....

this is my code and this is reference when i get this code.

Features2D + Homography to find a known object — OpenCV 2.4.13.0 documentation[^]

this is my code on dropbox to download it

Dropbox - currency recognation system.txt[^]

What I have tried:

i want ((condition)) if first image not found in data set return false and try with second image and do this until find image(any one ) in data set and return true after that send number image (1,2,3.....) to cmd for say 10,50,100,.....

推荐答案

您可能只缺乏如何构建程序的知识。这里有一些很好的教程如何学习C



提示:



您可以声明对象数组(类的实例):



You only may lack of knowledge of how to structure a program. Here is some good tutorial how to learn C.

Some tips:

You can declare arrays of objects (instances of a class):

Currency arrayCurr[10];//holder of 10 instances
arrayCurr[0] = new Currency();//create object (you need to delete at the end)
arrayCurr[0].name = "swiss franc";//fill the object with data

//looping
for( int i = 0; i < 10; i++ ) {
//access the members and do some stuff
 if( Mycheck( arrayCurr[i] ) == true ) {
   //match found
 }
}
delete arrayCurr[0];


这篇关于货币识别系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆