Clone Project from repository:
git clone https://github.com/HoDoTenHuy/Document-Scanner.git
Create env using Conda:
conda create --name env_name python==3.8
Activate env:
conda activate env_name
To install the packages/modules, run the command:
python -m pip3 install -r requirements.txt
Run app:
python app.py --image path/to/image
Creating a document scanner with OpenCV is a straightforward process that involves three simple steps:
Utilize OpenCV to detect edges in the image.
Use the detected edges to find the contour (outline) representing the piece of paper being scanned.
Apply a perspective transform to obtain the top-down view of the document.
Follow these steps to implement your document scanner using OpenCV and enhance your document processing capabilities.