Comments (5)
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.
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.
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.
Improvements are always welcome. It would be nice if you could create a pull request for this!
from passportscanner.
This is now optional after PR merge and publish as version 4.0.0
from passportscanner.
Related Issues (20)
- Open just white view
- Tesseract crashed: Failed loading language 'eng' HOT 3
- How to validate 3-lines MRZ? HOT 4
- Objective C Code HOT 1
- Xamarin iOS HOT 3
- could not build the project HOT 13
- Camera freeze in white screen HOT 4
- CGImageCreate: invalid image HOT 2
- Not an issue.. but a request.. HOT 1
- Issue cropping the image HOT 2
- DOB Format HOT 12
- Reduce Tesseract delay? HOT 5
- 'Camera' cannot be constructed because it has no accessible initializers HOT 5
- Possible memory leak or normal behavior HOT 3
- I want to read MZR form USA passport how can I do it HOT 7
- Taking too much time to load first. HOT 3
- Swift 5 - It doesn't compile HOT 2
- How can I add in Objective-C Project HOT 2
- When scanning a real passport, it has a hard time to scan the MRZ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passportscanner.