# How to get more accurate results with OpenCV

cvTermCriteria( CV_TERMCRIT_ITER | CV_TERMCRIT_EPS, 20, .3 )


How do I get more accurate results - do I need to increase the value of epsilon or decrease it?

• look at my comment . – rɑːdʒɑ May 21 '13 at 15:51
• (cv.CV_TERMCRIT_EPS, 0, 0.1) then cvterminate when epsilon reaches 0.1 – rɑːdʒɑ May 21 '13 at 16:28

This termination criteria tells the algorithm to stop when it has either done 20 iterations or when epsilon is greater than .3. You can play with these parameters for speed vs accuracy but these values work pretty well in many situations.