Revolutionizing home urinalysis with AI-driven, real-time test strip analysis and comprehensive health insights.A cutting-edge platform utilizing computer vision and generative AI to analyze urine test strips, offering instant results and detailed medical interpretations for proactive health management.
Check out the live version of UrineVital.
The backend for this project is available at UrineVital Backend.
You can find the research paper related to this project here.
The image processing part of this project is implemented using OpenCV.
- Converting image to grayscale.
- Bilateral Filtering
- Applied Adaptive thresholding(changing grayscale to binary)
- Complement of binary image.
- Dilation
- Errosion
- Again Complement
- finding contours
- now selecting some specific 10 contours
- finding coordinates of center of each contour and reading rgb from original image.
To run openCV code use (change the path of image)
python imageProcessing.py
-
Analyze the image using OpenCV to extract 10 values from different chemical pads.
-
Integrated with chat bot
- Frontend: React
- Backend: Flask
- Image Processing: OpenCV
- Styling: CSS
- Version Control: Git
- Other Tools: Generative AI
- Python 3.12.4
- Git
- Clone the repository:
git clone
##Backend
- Navigate to backend directory:
cd server_flask
- Install the required packages:
pip install -r requirements.txt
- Start the backend server
python app.py
- Navigate to frontend directory:
cd ../client
- Install the required packages:
npm install
- Start the React development server:
npm start
Ensure both the backend and frontend servers are running. Open your web browser and navigate to http://localhost:3000 to access the application.
- Upload an image of a urine strip using the upload button.
- Click the submit button to analyze the image.
- View the report of the Urine analysis.
POST /upload
Parameter | Type | Description |
---|---|---|
image |
file |
Required. Image file(urine strip) |
POST /gemini
Parameter | Type | Description |
---|---|---|
prompt |
[] |
Required. Report |
POST /chat
Parameter | Type | Description |
---|---|---|
prompt |
string |
Required. pass message |
Description: Upload an image of the urine strip and receive the result of the 10 colors pads along with RGB.
Request Body: Multipart form data containing the image file.
Response: JSON object with the result values.
@VishalKumar369 @Anish-kumar7641 @Anand930singh @Avinav-kashyap