WebCamera icon indicating copy to clipboard operation
WebCamera copied to clipboard

docScanner : processed image quality/resolution

Open amtam0 opened this issue 5 years ago • 3 comments

Thank you for this great project !

The image processed by the docScanner has lower resolution compared to the standard document scanners

Do you think if we tweak the Opencv functions would enhance the quality of the processed image ?

amtam0 avatar Feb 07 '20 11:02 amtam0

We are doing the processing on canvas, so that is a constraint for the quality of the stream. Maybe if we could change the videoConstraint a better resolution can be achieved. Happy to hear if there's a better processing algorithm possible without dnn.

riju avatar Feb 07 '20 11:02 riju

I think that the Opencv image Thesholding works fine on documents. I will check if we can do something to get a better resolution of the perspective image. All suggestions are welcome

amtam0 avatar Feb 10 '20 17:02 amtam0

I asked around in the #javascript channel on IRC specifically about this resolution issue with this project and was told that we should be able to increase the internal resolution for the canvas while still keeping the canvas rectangle size appropriate for a phone screen. That should get around the low resolution problem shouldn't it?

arduino-man avatar Jul 25 '22 16:07 arduino-man