353 u2014 is called by lehb function 315 graph 301 received in vs 1 function 351 may have more than 2 peaks some peaks are the result of noise on top of roi 11 eliminate peak function 353 removes unwanted peaks by comparing the unwanted peaks to the average slope value in the middle of the area when original image 14 is rotated so that it will be positioned horizontally characters 2 in it are tilted a little and as a result they have an italic shape an example of characters 2 before rotation is shown in fig5 while fig5 p illustrates tilted characters 2 after rotation for deleting the italic effect tilt function 311 is activated in the first step tilt function 311 calls find tilt line function 322 for determining the tilt value of characters 2 in the next step tilt function 311 applies a line shifting technique for restoring the original tilt of characters 2 fig5 s shows characters 2 after shifting technique was operated on characters 2 in fig5 r dashed lines 323 on fig5 q represent the tilt of characters 2 found by find tilt line function 322 during italic process 371 each horizontal line 324 is shifted as shown in fig5 s find tilt line function 322 u2014 performs lookup on tilt lines 323 shown in fig5 q the function examines several candidates for tilt lines 323 as shown in fig5 t for each candidate tilt 323 expected tilt line is moved in the direction of arrow 331 and the number of white pixels is calculated for tilt line after each movement a correct tilt candidate is found when it fits exactly between characters 2 and when the number of white points on the line is high as illustrated in fig5 vu.