This algorithm processes an image to extract answers from a form. It compares the extracted answers with the correct answers to determine the number of correct and incorrect responses.
- Ensure you have Python installed.
- Install the required libraries using
pip install opencv-python numpy
. - Place the image file named
imagem.jpeg
in the same directory. - Run the
mainWebcan.py
script.
mainWebcan.py
: Contains the main algorithm for processing the image.extrairGabarito.py
: Contains functions for extracting the main content from an image.
resp.pkl
: Contains saved options.campos.pkl
: Contains field coordinates.
The correct answers are stored in the respostasCorretas
list.
The algorithm displays the processed images with markings and the number of correct answers.