{"id":39069843,"url":"https://github.com/monocongo/annotate_images","last_synced_at":"2026-01-17T18:19:45.680Z","repository":{"id":97692609,"uuid":"229325053","full_name":"monocongo/annotate_images","owner":"monocongo","description":"Utilization of a pre-trained object detection model for annotating images ","archived":false,"fork":false,"pushed_at":"2019-12-21T00:58:07.000Z","size":11,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-11T19:51:29.709Z","etag":null,"topics":[],"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/monocongo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-20T19:34:18.000Z","updated_at":"2019-12-21T00:58:09.000Z","dependencies_parsed_at":"2023-04-19T21:03:25.239Z","dependency_job_id":null,"html_url":"https://github.com/monocongo/annotate_images","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"74194de0a8a7d5c2f36d8d30209e4f3d7151d6ce"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monocongo/annotate_images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monocongo%2Fannotate_images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monocongo%2Fannotate_images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monocongo%2Fannotate_images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monocongo%2Fannotate_images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monocongo","download_url":"https://codeload.github.com/monocongo/annotate_images/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monocongo%2Fannotate_images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28515295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-17T18:19:45.025Z","updated_at":"2026-01-17T18:19:45.664Z","avatar_url":"https://github.com/monocongo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# annotate_images\nThis repository contains a script to perform annotation of images using pre-trained object detection model(s). \n\n1. Obtain pre-trained model from the [TensorFlow detection model zoo](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md). \nFor this example we'll use a [Faster-RCNN model with a ResNet50 backbone trained on COCO dataset](http://download.tensorflow.org/models/object_detection/faster_rcnn_resnet50_coco_2018_01_28.tar.gz).\nOnce we've downloaded the compressed file we'll extract the frozen inference graph \nprotobuf file which is the pre-trained model we'll use with our script.\n```bash\n$ wget http://download.tensorflow.org/models/object_detection/faster_rcnn_resnet50_coco_2018_01_28.tar.gz\n$ tar -xzf faster_rcnn_nas_coco_2018_01_28.tar.gz faster_rcnn_nas_coco_2018_01_28/frozen_inference_graph.pb\n$ export MODEL=`pwd`/faster_rcnn_nas_coco_2018_01_28/frozen_inference_graph.pb\n```\n2. Clone the TensorFlow object detection models API from GitHub:\n```bash\n$ git clone git@github.com:tensorflow/models.git\n$ cd models\n$ export TFOD=`pwd`\n```\n3. Run the script, specifying the model file, the COCO labels prototext file (located \nin the TensorFlow models API), the images directory containing the images, and the \ndirectory where annotations should be written. \n```bash\n$ python annotate_images.py --model ${MODEL} \\\n\u003e --labels ${TFOD}/research/object_detection/data/mscoco_label_map.pbtxt \\\n\u003e --images_dir /data/imgs/fedex/images \\\n\u003e --annotations_dir /data/imgs/fedex/kitti\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonocongo%2Fannotate_images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonocongo%2Fannotate_images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonocongo%2Fannotate_images/lists"}