Downloads · 30 days
0
0% of all-time downloads
foduucom/pan-card-detection
pan-card-detection is a object detection model from foduucom. Use it when you need objects located in an image.
<div align="center" <img width="640" alt="foduucom/pan-card-detection" src="https://huggingface.co/foduucom/pan-card-detection/resolve/main/PAN-Card-Detection.jpg" </div
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
22
Public
Repo size
7.3 MB
Likes
7
Public
Click a slice to open those files.
.pt6.2 MB · 86%
From the Hugging Face model README
The PANCard-Detect model is a yolov8 object detection model trained to detect and locate PAN (Permanent Account Number) cards in images. It is built upon the ultralytics library and fine-tuned using a dataset of annotated PAN card images.
The model is intended to be used for detecting details like Name,Father Name,DOB,PAN Number, on PAN cards in images. It can be incorporated into applications that require automated detection and extraction of PAN card information from images.
The model has been evaluated on a held-out test dataset and achieved the following performance metrics:
Average Precision (AP): 0.90 Precision: 0.92 Recall: 0.89 F1 Score: 0.89 Please note that the actual performance may vary based on the input data distribution and quality.
Users should be informed about the model's limitations and potential biases. Further testing and validation are advised for specific use cases to evaluate its performance accurately.
Load model and perform prediction:
To get started with the YOLOv8s object Detection model, follow these steps:
pip install ultralyticsplus==0.0.28 ultralytics==8.0.43
from ultralyticsplus import YOLO, render_result
# load model
model = YOLO('foduucom/pan-card-detection')
# set model parameters
model.overrides['conf'] = 0.25 # NMS confidence threshold
model.overrides['iou'] = 0.45 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # maximum number of detections per image
# set image
image = '/path/to/your/document/images'
# perform inference
results = model.predict(image)
# observe results
print(results[0].boxes)
render = render_result(model=model, image=image, result=results[0])
render.show()
The model was trained on a diverse dataset containing images of PAN cards from different sources, resolutions, and lighting conditions. The dataset was annotated with bounding box coordinates to indicate the location of the PAN card within the image.
Total Number of Images: 1,100 Annotation Format: Bounding box coordinates (xmin, ymin, xmax, ymax)
The model's performance is subject to variations in image quality, lighting conditions, and image resolutions. The model may struggle with detecting PAN cards in cases of extreme occlusion or overlapping objects. The model may not generalize well to non-standard PAN card formats or variations.
The model was trained and fine-tuned using a Jupyter Notebook environment.
For inquiries and contributions, please contact us at [email protected].
@ModelCard{
author = {Nehul Agrawal and
Rahul parihar},
title = {YOLOv8s pan-card Detection},
year = {2023}
}