Git Product home page Git Product logo

Comments (5)

evermeer avatar evermeer commented on June 28, 2024

I think thats easy to do by changing the line:

camera --> exposure  --> highlightShadow  --> saturation --> contrast --> adaptiveThreshold --> renderView

into

camera --> exposure  --> highlightShadow  --> saturation --> contrast --> adaptiveThreshold
camera --> renderView

from passportscanner.

evermeer avatar evermeer commented on June 28, 2024

so you will live the filters in tact but don't send it to the renderview.
instead you will set the camera directly to the renderview
You will be missing some feedback about the quality of the lightning.
maybe you should change the adaptiveThreshold to a fixed threshold

from passportscanner.

punto2018 avatar punto2018 commented on June 28, 2024

Thanks, for your reply. Using your code the resulting image is not sent to the OCR engine. I've changed it in:
camera --> exposure --> highlightShadow --> saturation --> contrast --> adaptiveThreshold
camera --> crop --> renderView
and now it works but OCR is returning very bad results.

I've implemented a similar filter chain using the preprocessedImage method obtaining very good results.
I would like to switch the post processing mode with a boolean property in order to meet the initial requisite: have the camera preview free from filters.

If you like I can push the code for the community pleasure.

VF

from passportscanner.

evermeer avatar evermeer commented on June 28, 2024

Improvements are always welcome. It would be nice if you could create a pull request for this!

from passportscanner.

evermeer avatar evermeer commented on June 28, 2024

This is now optional after PR merge and publish as version 4.0.0

from passportscanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.