This project is a web application that analyzes an image of a urine strip and returns the RGB values of each segment on the strip. It is built using Django, HTML, CSS, JavaScript, NumPy, and OpenCV.
The Frontend is build with Vanilla Javascript and HTML and CSS with GoogleFonts
The Backend is built with the help of Django.
The main methodology that has been used can be divided into 2 parts :-
- Cropping - to get the useful part of the image.
- PreProcessing - A billinear extrapolator is used to replace value of each pixel with the average value of the row to remove artifacts like granular noise and dark patches
- Segmentation - small segments of 10x10 are used to get the average RGB value of each segment.
-
Clone this repository using
git clone https://github.com/pnaskardev/urine_strip_analyser.git
-
Navigate to the project folder,install the required dependencies and start the webserver on port 8000
cd urine_strip_analyser pip install virtualenv
-
create a virtual environment(For Windows OS users)
python -m venv venv venv\Scripts\activate
-
create a virtual environment(For Linux/MacOS users)
virtualenv venv source venv/bin/activate
-
Install all the dependencies
pip install -r requirements.txt
-
Start the server
python manage.py makemigrations python manage.py migrate python manage.py runserver
-
Navigate to for testing
http://localhost:8000/analyse/
Clone the project
git clone https://github.com/pnaskardev/urine_strip_analyser.git
Go to the project directory
cd urine_strip_analyser
Start Docker
docker-compose up
Navigate to the given link for testing
http://localhost:8000/analyse/