Deskew Image

Post your Android related questions here.
Post Reply
yigit
Posts: 2
Joined: Sun May 21, 2017 8:26 am

Deskew Image

Post by yigit » Sun May 21, 2017 8:27 am

Hello,

I'm using Xamarin Forms and I want to use Emgu CV for deskew uploaded image.
Do you have any code sample? or method?

Best Regards

canming
Site Admin
Posts: 1011
Joined: Thu Feb 28, 2008 4:16 pm

Re: Deskew Image

Post by canming » Tue May 23, 2017 9:04 am

If you found the four corners of the object you want to de-skew, and wanted to de-skew it to a new Image of certain size. You can recover the perspective transformation by calling CvInvoke.GetPerspectiveTransform, passing the four corner of the object in the original image, and the four corners of the new image. Once you have the perspective transformation matrix, you can use CvInvoke.WrapPerspective to de-skew the object to the new Image.

yigit
Posts: 2
Joined: Sun May 21, 2017 8:26 am

Re: Deskew Image

Post by yigit » Sun Jun 04, 2017 8:10 am

Hello,

Ho can I found four corners?

canming
Site Admin
Posts: 1011
Joined: Thu Feb 28, 2008 4:16 pm

Re: Deskew Image

Post by canming » Mon Jun 05, 2017 9:44 am


Post Reply