{"id":21130673,"url":"https://github.com/george-mountain/verifyannotations","last_synced_at":"2026-02-28T19:31:57.082Z","repository":{"id":223996307,"uuid":"762058636","full_name":"george-mountain/verifyannotations","owner":"george-mountain","description":"Verify Data Annotations in Yolo and PASCAL VOC Format","archived":false,"fork":false,"pushed_at":"2024-03-11T04:46:23.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T12:41:54.242Z","etag":null,"topics":["ai","computer-vision","computer-vision-opencv","computer-vision-tools","dataannotations","datavalidation","datavalidator","deeplearning","machine-learning","pascal-voc","yolo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/george-mountain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-23T02:07:52.000Z","updated_at":"2024-05-31T07:14:47.000Z","dependencies_parsed_at":"2024-02-23T06:46:24.439Z","dependency_job_id":null,"html_url":"https://github.com/george-mountain/verifyannotations","commit_stats":null,"previous_names":["george-mountain/verifyannotations"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/george-mountain/verifyannotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fverifyannotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fverifyannotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fverifyannotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fverifyannotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/george-mountain","download_url":"https://codeload.github.com/george-mountain/verifyannotations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/george-mountain%2Fverifyannotations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29948866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","computer-vision","computer-vision-opencv","computer-vision-tools","dataannotations","datavalidation","datavalidator","deeplearning","machine-learning","pascal-voc","yolo"],"created_at":"2024-11-20T05:36:46.406Z","updated_at":"2026-02-28T19:31:57.056Z","avatar_url":"https://github.com/george-mountain.png","language":"Python","readme":"\n# VerifyDataAnnotations\n\n## Overview\n\nVerifyannotations is a Python package specifically designed to validate and annotate image data with bounding boxes using annotations provided in both YOLO and PASCAL VOC format text files. It serves as a tool for verifying the correctness of annotations and ensuring the integrity of datasets intended for use in computer vision tasks, especially those utilizing object detection frameworks.\n\n## Features\n\n- Validates the structure of image and label directories.\n- Checks if label files contain valid annotations in YOLO or PASCAL VOC format.\n- Ensures that image files have the correct format.\n- Annotates images with bounding boxes based on YOLO or PASCAL VOC label annotations.\n- Saves annotated images to an output directory.\n\n\n\n## Installation\n\nYou can install VerifyDataAnnotations via pip:\n\n```bash\npip install verifyannotations\n```\n\n## Verifying Data Annotations in YOLO Format\n\n\n## Input Parameters\n\n- `label_folder`: Path to the directory containing label files with annotations in YOLO format.\n- `raw_image_folder`: Path to the directory containing the raw image files.\n- `output_image_folder`: Path to the directory where annotated images will be saved.\n- `image_name_list_path`: Path to the text file listing the names of all images in the dataset.\n- `class_path`: Path to the text file containing the list of classes or labels used in the dataset.\n\n## Example\n\nSuppose you have the following directory structure:\n\n```\ndataset/\n│\n├── labels/\n│   ├── image1.txt\n│   ├── image2.txt\n│   └── ...\n│\n├── images/\n│   ├── image1.bmp\n│   ├── image2.bmp\n│   └── ...\n│\n├── saved_annotations/\n│\n├── name_list.txt\n└── classes.txt\n```\n\nThe `labels` directory contains text files with annotation data in YOLO format. The `images` directory contains corresponding image files. `saved_annotations` will store the annotated images.\n\nUsing VerifyDataAnnotations:\n\n```python\nfrom verifyannotations import VerifyDataAnnotations\n\nlabel_folder = \"dataset/labels\"\nraw_image_folder = \"dataset/images\"\noutput_image_folder = \"dataset/saved_annotations\"\nimage_name_list_path = \"dataset/name_list.txt\"\nclass_path = \"dataset/classes.txt\"\n\nverifier = VerifyDataAnnotations(\n    label_folder,\n    raw_image_folder,\n    output_image_folder,\n    image_name_list_path,\n    class_path,\n)\n\nverifier.verify_annotations()\n```\n\nThis will validate the annotations, annotate the images with bounding boxes, and save the annotated images to the `saved_annotations` directory.\n\n\n## Verifying Data Annotations in PASCAL VOC format\n\n\n### CASE 1\nSuppose you have a dataset folder with the following structure:\n\n```\ndataset/\n│\n├── image1.jpg\n├── image1.xml\n├── image2.png\n├── image2.xml\n└── ...\n```\n\nThe `dataset` directory contains both the images and their corresponding annotations in PASCAL VOC format.\n\n\n## Input Parameters\n\n- `dataset_folder`: Path to the directory containing both the images and their corresponding annotations in PASCAL VOC format.\n- `output_image_folder`: Path to the directory where annotated images will be saved.\n\nUsing VerifyDataAnnotationsPascalVOC:\n\n```python\nfrom verifyannotations import VerifyDataAnnotationsPascalVOC\n\ndataset_folder = \"dataset\"\noutput_image_folder = \"dataset/saved_annotations\"\n\nverifier = VerifyDataAnnotationsPascalVOC(\n    dataset_folder,\n    output_image_folder,\n)\n\nverifier.verify_annotations()\n```\n\nThis will validate the annotations, annotate the images with bounding boxes, and save the annotated images to the `saved_annotations` directory with the same extension as the original images.\n\n\n### CASE 2\nIn case your PASCAL VOC dataset has the structure shown below,\n```\n├── annotations/\n│   ├── image1.xml\n│   ├── image2.xml\n│   └── ...\n│\n├── images/\n│   ├── image1.jpg\n│   ├── image2.jpg\n│   └── ...\n```\nYou have separate directories for images `images` and `annotations`, then you can verify the PASCAL VOC annotations like this:\n\n## Input Parameters\n\n- `image_folder`: Path to the directory containing the images.\n-  `annotation_folder` Path to the directory containing annotations in PASCAL VOC format.\n- `output_image_folder`: Path to the directory where annotated images will be saved.\n\nUsing VerifyDataAnnotationsPascalVOC:\n\n```python\nfrom verifyannotations import VerifyDataAnnotationsPascalVOCSeparatedFolders\n\nimage_folder = \"imagefolder\"\n\nannotation_folder = \"annotationfolder\"\n\n\noutput_folder = \"dataset/saved_annotations\"\n\n\nverifier = VerifyDataAnnotationsPascalVOCSeparatedFolders(image_folder, annotation_folder, output_folder)\nverifier.verify_annotations()\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorge-mountain%2Fverifyannotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorge-mountain%2Fverifyannotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorge-mountain%2Fverifyannotations/lists"}