STeven,
I am trying to create a program in VB Script that adds up the cumulative total of money that passes in front of a webcam. For example, a 5 dollar bill is passed in front of camera then the balance=5, 10 dollar bill is passed in front of the camera then the balance=15 etc.
I have no problems with the object recognition and variable input but I can not figure out how to add the variable only once. For example, I have a balance of 0 then when I put a 5 dollar bill in front of the camera, it adds 5 a zillion times, and the balance increases by about 20 a second as opposed to just increasing by 5.
Any help would be appreciated,
Ben
|
|