Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

license plate

Hello, I'm trying to cut the region of the license plate number in some pictures. I've tried doing this using the imaq detect rectangles vi. It's working only on some images. I'm attaching the code. 

I guess it only needs a small modification in order for it to work on most images, but i've already treid in a few ways and didn't succed.

Thanks in advance!

0 Kudos
Message 1 of 4
(3,230 Views)

Hi s_virg,

 

I looked over your code and I have a few questions.  Can you describe in more detail exactly what you're trying to accomplish?  What is your eventual goal?  Are you trying to isolate a particular kind of rectangle on a license plate?  What is the motivation behind needing to extract that rectangle? 

Michael B.
Applications Engineer
0 Kudos
Message 2 of 4
(3,209 Views)

It's a school project. The task is to isolate the license plate. This was the method I've chosen: to find the license plate by finding the rectangules in the pictures. Sometimes it sees the license plate like a rectangule sometimes it doesn't. I've made small modifications (in the Curve Parameters) and it works better now, but of course, only on good pictures (straight lines and probably a good enough contrast). I've moved to another method, I'm trying to use Line profile to find the number. And now it's a math problem: to see if I can find out how often the pixel values change only by using the 4 values returned by the function: std deviation, max, min and average. Here's the code if you are still interested in helping me.    

0 Kudos
Message 3 of 4
(3,200 Views)

Hi s_virg,

 

To clarify, you're trying to isolate the whole license plate, not chop a single plate into pieces.  Is that correct?  Are you interested in reading the license plate number?  What is your eventual goal?

Michael B.
Applications Engineer
0 Kudos
Message 4 of 4
(3,194 Views)