Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Using OCR with an image captured with a USB camera

Hello all. I am working on a LabVIEW project for university that consists of a Tic Tac Toe game (I'm sure you're tired of those requests). Anyway, I am required to use the USB camera for a creative function.

 

I decided to use the OCR function to determine starting player (X or O). Basically, I designed my VI as such in the attached file, but I keep getting this error "Error -1074395989 occurred at IMAQ OCR Read File
  Unable to read data."

 

The lab assistants won't help us and as such I'm unaware of what I should be doing. Everything I did is based on the NI Zone information. Please help me solve this problem as my grade could use the boost! The sooner the better!

Download All
0 Kudos
Message 1 of 3
(4,020 Views)

Ok I've managed to fix the error. Apparently I used the read character set file instead of read string command.

 

 

Now the OCR won't identify any characters even though they might be printed or very legible. I'm attaching the VI now. Any ideas what I may be missing?

 

 

0 Kudos
Message 2 of 3
(4,014 Views)

Hi,

 

I have checked your example code and thing that I am missing is place where you read OCR character set! Did you create one?

You should use application called "OCR training" to do that!

 

In the attachment I send simple example that shows how simple application should look like!

 

I hope this helps you!

Regards

 

Franjo Tonkovic

0 Kudos
Message 3 of 3
(3,978 Views)