sumedhakini/predicting_blood_group_using_fingerprints
๐ง Prediction of Blood Group Using Fingerprints
This web application uses deep learning models (VGG16 & MobileNetV2) to predict a person's blood group based on a fingerprint image.
Built using Gradio, the app provides an interactive and user-friendly interface for quick predictions.
๐ Features
- ๐ Predicts one of 8 blood groups:
A+,A-,B+,B-,AB+,AB-,O+,O- - ๐ Uses two different models to ensure accuracy and compare predictions
- ๐ก Shows confidence scores and agreement status between models
- ๐ Fully accessible through Hugging Face Spaces โ no installation required
- ๐ผ Includes a sample dataset to try the app easily
๐ง Models Used
Both models were trained using TensorFlow and saved as .h5 files. Each model independently predicts the blood group based on the fingerprint image.
๐ Sample Dataset
A folder named sample_dataset is included in this Space, containing example fingerprint images for each blood group.
Each subfolder corresponds to a blood type:
sample_dataset/ โโโ A+/ โโโ A-/ โโโ B+/ โโโ B-/ โโโ AB+/ โโโ AB-/ โโโ O+/ โโโ O-/
You can try out the app by uploading any image from this dataset!
๐ผ Sample Usage
- Upload a fingerprint image (JPG/PNG)
- The app preprocesses the image automatically
- Both models make predictions
- You receive:
- Predicted blood group from both models
- Their confidence scores
- Whether the models agree or disagree
๐ File Structure
predicting-blood-group-using-fingerprints โ โโโ app.py # Gradio app logic โโโ VGG16.h5 # Trained VGG16 model โโโ MobileNetV2.h5 # Trained MobileNetV2 model โโโ requirements.txt # Project dependencies โโโ sample_dataset/ # Example fingerprint images โ โโโ [A+, A-, ..., O-]/ # One folder per blood group โโโ README.md # Project overview (this file) โโโ .gitattributes # Git LFS tracking (auto-created)
๐ Run Locally (Optional)
To run this app on your own machine:
1. Clone the repo:
git clone https://huggingface.co/spaces/your-username/predicting-blood-group-using-fingerprints
cd predicting-blood-group-using-fingerprints
### 2. Install Dependencies:
pip install -r requirements.txt
### 3. Launch App:
python app.py
Then visit: http://127.0.0.1:7860
---
Feel free to customize the README as needed.