Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected Edges: Offset from Image #17

Open
Breslov opened this issue Sep 12, 2018 · 0 comments
Open

Detected Edges: Offset from Image #17

Breslov opened this issue Sep 12, 2018 · 0 comments

Comments

@Breslov
Copy link

Breslov commented Sep 12, 2018

Hello Robert!
Thanks for a nicely-structured implementation of the Canny algorithm.

I try to utilize your code to identify the borders of an A4 page pictured over a wooden table (picture is attached).

  • I use your hardcoded defaults for GAUSSIAN_RADIUS (7) and GAUSSIAN_INTENSITY (1.5).
  • I call the JCanny.CannyEdges method passing-in the parameters used in your test code (within Tester.java), i.e. numberDeviations=1 and fract=0.2.

The result image is attached. It includes the source-image, after being gray-scaled, and on top of it - the detected edge-points, in red.

You could see that (A4) page-borders are not appropriately marked.
The detected edges are shifted a bit in relation to page's actual location.

Could you please advise - how to fix this offset? It would be much appreciated.

Source:
portrait_blank_small

Result:
result

Result - Zoom:
result_cornerzoomed

@Breslov Breslov changed the title Image of a Page over a Table: Misdetection of Page-Borders Detected Edges: Offset from Image Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant