Shafayet Ahommed
Shafayet Ahommed

Reputation: 1

A4-paper-sheet-detection-and-cropping java

To complete my project, I implemented in Java greyscale, Hough transform, perspective transform of given RGB A4 size image.

What I did in the code:

But code output will be black page. output should be

enter image description here

by inputing

enter image description here

Upvotes: -1

Views: 218

Answers (1)

queeg
queeg

Reputation: 9384

The way you describe means the image is processed in quite a number of steps to find the coordinates to be used for cropping.

Maybe use these coordinates, but do not crop the processed picture but the original one. With that you should not just get a black page and it may get easier to find if the crop edges were detected correctly.

Upvotes: 1

Related Questions