Algorithm to detect note
To detect notes, we use a simple algorithm called slither.
Algorithm to reject a note
Rejection of a note depends on following criteria:
- Note is very near to top
- Note is very near to bottom
- Note has very few pixels.
- Note's height is more than 2 times bigger than its width.