SHARE

Read this article first: Simple PHP OCR with GD

Step 1:
Goto http://chotot.vn we can see many pictures contain telephone number. We find that these pictures that contain a maximum of 11 digits, and have the same font, same size.

We use 3 pictures contain all number from 0 to 9:
http://www.chotot.vn/pg/0Njg2ODY2AAAAAAAAAAAAAJl+piriBW+L/QY=.gif
http://www.chotot.vn/pg/0Njg3NTA0AAAAAAAAAAAAALuxb72u/MXOO9k=.gif
http://www.chotot.vn/pg/0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif

Step 2:
In this article PHP: Crop image function (part 2), we croped a picture to a piece of size 7×10 px
Now, we use 3 pictures above, we get 10 pictures below:

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=1&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=10&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=80&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA0AAAAAAAAAAAAALuxb72u%2FMXOO9k%3D.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=55&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA0AAAAAAAAAAAAALuxb72u%2FMXOO9k%3D.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=37&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA0AAAAAAAAAAAAALuxb72u%2FMXOO9k%3D.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=29&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=20&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=19&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg2ODY2AAAAAAAAAAAAAJl%2BpiriBW%2BL%2FQY%3D.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=37&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg2ODY2AAAAAAAAAAAAAJl%2BpiriBW%2BL%2FQY%3D.gif

http://www.demo.tutorialspots.com/crop/crop.php?w=7&h=10&x=10&y=0&src=http%3A%2F%2Fwww.chotot.vn%2Fpg%2F0Njg2ODY2AAAAAAAAAAAAAJl%2BpiriBW%2BL%2FQY%3D.gif

Note: we can use Photoshop to crop picture

Step 3:
Read pixel

Recent search terms:

  • chotot vn

NO COMMENTS