--- license: agpl-3.0 pipeline_tag: object-detection tags: - ultralytics - yolo - yolov8 - tracking - image-classification - obb - object-detection language: - hy --- # YOLOv8 Handwritten Text Detection Welcome to the Hugging Face repository for the YOLOv8 model specifically fine-tuned for handwritten text detection! This repository, hosted by armvectores, features a state-of-the-art object detection architecture that has been meticulously adapted to recognize and localize handwritten text in images and documents. ## Model Description YOLOv8 is the eighth version of the You Only Look Once (YOLO) object detection algorithm. It excels in speed and accuracy, making it an ideal choice for real-time applications. The YOLOv8 model provided here has been fine-tuned on a diverse dataset of handwritten texts to improve its specificity in detecting handwritten content as opposed to typed or printed materials. ## Features - High Accuracy: Achieves impressive accuracy for detecting various styles of handwriting across different backgrounds and conditions. - Fast Inference: Suitable for real-time applications due to its quick processing time. - Easy Integration: Provides an accessible API for straightforward integration with Python applications. ## Usage To utilize this model for detecting handwritten text in your images, follow the instructions below: ### Environment Setup Ensure you have Python 3.6 or later installed. Then install the required packages: ``` pip install ultralytics ``` ### How to use You can detect handwritten text with the following code snippet: ``` import ultralytics from ultralytics import YOLO from huggingface_hub import hf_hub_download # Load the weights from our repository model_path = hf_hub_download(local_dir=".", repo_id="armvectores/yolov5_handwritten_text_detection", filename="best.pt") model = YOLO(model_path) # Load test blank test_blank_path = hf_hub_download(local_dir=".", repo_id="armvectores/yolov5_handwritten_text_detection", filename="test_blank.png") # Do the predictions model.predict(source=test_blank, save=True, show=True, show_labels=False, show_conf=False, conf=0.3) ``` ## Tests Here the examples of model work: