Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
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,.....
Posted
Updated 9-May-16 2:49am
v3
Comments
AnvilRanger 4-May-16 9:23am    
And you have a question?
Member 12502390 4-May-16 14:40pm    
how make acondition in surf algorthim 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 idea......

How they work it?
AnvilRanger 5-May-16 8:34am    
That is not a question. All you have done is ask for code and that is not how it works on this board.

For starters, just like Richard said, no one with half a brain will download some unknown code and try to run it.

If you have a specific question then ask the question, post relevant code, not your entire project, and describe both what you are trying to do and errors you are receiving in detail.
Richard MacCutchan 4-May-16 9:38am    
No one is going to download your code and fix it for you. Please edit your question, and show some proper details.
Member 12502390 4-May-16 14:39pm    
how make acondition in surf algorthim 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 idea......
How they work it?

1 solution

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):

C++
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];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900