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

Adding QR codes support in the ImageRedactorEngine #1035

Open
vpvpvpvp opened this issue Feb 17, 2023 · 1 comment
Open

Adding QR codes support in the ImageRedactorEngine #1035

vpvpvpvp opened this issue Feb 17, 2023 · 1 comment

Comments

@vpvpvpvp
Copy link

Is your feature request related to a problem? Please describe.
QR codes usually contain PII entities. But ocr engines like tesseract can't recognize QR codes on images.

Describe the solution you'd like
Integrate into Presidio Image Redactor the ability to recognize QR codes and analyze their contents. And if the QR code contains PII, then redact it. One way to implement this functionality is to add a new QRImageAnalyzerEngine in addition to the default ImageAnalyzerEngine. And then passing QRImageAnalyzerEngine as the image_analyzer_engine parameter to ImageRedactorEngine and to ImagePiiVerifyEngine.

Additional context
An example of the input image (first image) and the desired output (second image):

qr_multi-min

qr_multi_redacted-min

@omri374
Copy link
Contributor

omri374 commented Feb 19, 2023

Thanks! we'll review the PR shortly.

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

2 participants