Jump to content
Sign in to follow this  

tyring to make an OCR

Recommended Posts


i got the code below, but it gives me alot of errors. How can i make a for loop that gives me different $slot variables? and how should i pass the $slot to the item function

with the two for loops in the item function im trying to get a area of 10x5 pixels and compare them with some given values to determine what letter it is. Is it right what im doing?

im getting confused help pls:)

Func Scan()
For $i = 2 to $totslots+1
For $i = 2 to $totslots+1

Func item($sloti,$itemcolor)
For $b = 1 to 10
For $a = 1 to 5
If $welkepixel[$b][$a]=0x000000 Then
$letterstring=$letterstring & 1
$letterstring=$letterstring & 0
Edited by cageman

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.