Skip to content

anstadnik/adversarial_attack

Repository files navigation

This repository contains the implementation of the adversarial attack using genetic algorithms on the tesseract OCR.

Example

The protection of the information is one of the key priorities, according to the Mark Zuckerberg: alt text for screen readers.

Let's use an OCR on this image!

alt text for screen readers.

Using this tool, one can selectively hide the information!

alt text for screen readers.

But the human still can read the text

alt text for screen readers.

Usage

usage: main.py [-h] -i IMAGE [-a] [-p POP_SIZE] [-m MUTATION_RATE]

This program allows user to detect and recognize printed text on images, as well as get the
contents of the image as a text

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGE, --image IMAGE
                        Path to the image
  -a, --annotate        Annotate the image
  -p POP_SIZE, --pop_size POP_SIZE
                        Population size
  -m MUTATION_RATE, --mutation_rate MUTATION_RATE
                        Mutation rate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published