aperrault / DetectText

Detect text with stroke width transform.
GNU General Public License v3.0
331 stars 150 forks source link

Correct mistake when detecting candidate letters #9

Open jeroenarens opened 9 years ago

jeroenarens commented 9 years ago

I have made some adjustments to the findlegallyconnectedcomponents(rays). The if conditions when looking to the ratios should be && instead of || operators. Since you will always have a true value with ||, which is not the purpose of that statement. Now the ratio should be bounded to 3.0 like described in the algorithm.