sawankumarbundelkhandi / edge_detection

This is a flutter plugin to detect edges in a live camera, take the picture of detected edges object, crop it, and save.
https://pub.dev/packages/edge_detection
Apache License 2.0
245 stars 245 forks source link

Edge detection is not working. #141

Open NatyCristal opened 1 year ago

NatyCristal commented 1 year ago

Instead selections capture anything that it seems a square even if the document stands alone with no other objects nearby.

https://github.com/sawankumarbundelkhandi/edge_detection/assets/32109130/f6d6b7c7-8f85-49c1-98d4-4bf8c9cbc1c2

any kind of help will be very welcome

satvikreddy commented 1 year ago

+1

wataruxun commented 1 year ago

I am also having the same problem. As a temporary workaround, I have found that placing the document in a black area improves accuracy. Light reflection also appears to affect accuracy.

espbee commented 1 year ago

I think this is a function of any image detection situation operating on a mobile device like this, that works out of the box. I mean the same is true of any machine vision scanner in this kind of context. If there are a lot of stray lines and light fluctuations, it'll have a tough time discerning what it is that you want to actually emphasize. A plain background is always better. Even financial apps that have you scan things advise that you use a plain background.

You can always adjust the corners after its done its best to outline the rectangle that you want. Also sometimes if you close and try again it guesses better.

jennifer-uitoux commented 9 months ago

Any updates on this, Also the image is not detected in certain backgrounds

anilkumar416 commented 2 months ago

I am also facing the same issue