0

I am collecting frames from Camera and trying to do some image processing and OCR on them. When the camera is perpendicular to the target, i have no problem with cropping and image processing. But when i try to capture the frame with angle, the target expectedly turns into a Trapezoid rather than rectangle.

I am using OpenCV for all the image processing stuff. I was wondering , what can i do to get the area that i want when its trapezoid?

For example Can i somehow transform that trapezoid image to rectangle with OpenCV?

Thanks

4

1 回答 1

2

您的问题称为梯形校正: http ://en.wikipedia.org/wiki/Keystone_effect

看看类似的问题: Executing cv::warpPerspective for a fake dekewing on a set of cv::Point

于 2013-07-30T06:15:52.600 回答