Not TestedTesting not done, may not work properly

Deskew Image

Detect image rotation angle using computer vision and automatically align horizontal text lines.

Hough Angle Detection
Advertisement

Select or drag & drop a crooked image

Supports PNG, JPG, WEBP, BMP

How OpenCV Deskewing Works

Hough Lines Detection

Uses `HoughLinesP` to locate dominant horizontal and vertical text lines and edge vectors in the document image.

Median Angle Calculation

Computes the precise median angle of deviation to accurately filter out outliers and isolate actual document tilt.

Affine Rotation Warp

Applies `getRotationMatrix2D` and `warpAffine` interpolation to straighten text lines horizontally without clipping margins.

Sponsored Content