필터 지우기
필터 지우기

Licence plate detection.(Removing the shear angle of plate)

조회 수: 5 (최근 30일)
Mayur
Mayur 2011년 4월 20일
Hey guys I’m doing a project on license plate recognition (lpr) . I want to remove the shearing of the number plate. I came across a pdf file on lpr . From that file I want to write matlab code for the following part.
A is transformation matrix shown below.
A= [1 -tan(angle) 0;
0 1 0;
0 0 1;];
Let P be a vector representing a certain point in image, such as P =[x, y,1] where x and y are coordinates of that point. The new coordinates Ps = [xs ys, ,1] of that point after the shearing can
be computed as:
Ps = P*A
Let the deskewed image be defined by a function fs . The function f s can be
computed in the following way:
fs (x , y) = f ( [x,y,1]*A*[1 0 0]T ,[x,y,1]*A*[0 1 0]T )
Here fs represents new image , fs(x,y) represents new co-ordinates of a point in the image and f represents original image on which transformation is carried out. Guys please help me out in converting this part into a matlab code.
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 4월 20일
You're going to get a vote for writing a license plate detection question that was not a doit4me; the first of its kind I do believe. Congratulations!

댓글을 달려면 로그인하십시오.

채택된 답변

Jarrod Rivituso
Jarrod Rivituso 2011년 4월 20일
Hi Mayur,
Have you had a look at imtransform?
It seems like it has a sheer transform that you could use, which would be significantly easier than trying to write your own code to do the same.
One of the challenges in doing that, as far as I can tell, is that images in MATLAB typically consist of matrices of evenly spaced pixel data, and your transformation might leave you with unevenly spaced data in x and y, so you'd probably have to interpolate or do something like that to make it work.
  댓글 수: 1
Mayur
Mayur 2011년 4월 20일
Hey thank you very much. I guess it has solved my problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by