This Streamlit application counts the number of sheets in a stack from an uploaded image using computer vision techniques.
Upload an image of a sheet stack. Count the number of sheets in the stack. Display the original image, detected lines, and edges.
Python 3.6 or higher
streamlit
opencv-python-headless
pillow
numpy
tensorflow
matplotlib
Clone the repository:
https://github.com/ArnabNath1/CountStack.git
cd CountStack
conda create -p venvs python==3.11 -y
conda activate venvs/
Put the packages you need to install mentioned above in the requirements.txt file.
Install the packages using the command:
pip install -r requirements.txt
Run the Streamlit app:
streamlit run app.py
- Open your browser and go to http://localhost:8501.
- Upload an image of a stack using the file uploader.
- Click the "Count Sheets" button to count the number of sheets detected.
- requirements.txt: Contains all the dependencies to be downloaded.
- app.py: Main script to run the Streamlit app.
- README.md: This file.