{"id":22610364,"url":"https://github.com/klaxxon/imageannotator","last_synced_at":"2025-04-15T18:04:07.296Z","repository":{"id":144307036,"uuid":"155761782","full_name":"klaxxon/ImageAnnotator","owner":"klaxxon","description":"Web/PHP based image annotator that creates Darknet/YOLO txt files.","archived":false,"fork":false,"pushed_at":"2020-08-12T19:06:25.000Z","size":909,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T09:44:18.438Z","etag":null,"topics":["annotation","annotation-tool","classification","classifier","classifier-training","deep-learning","image","image-annotation","image-classifier","neural-network","neural-networks"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/klaxxon.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-01T18:57:13.000Z","updated_at":"2024-01-01T23:36:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b2aafb8-9f45-48ae-8720-37c1c10831c8","html_url":"https://github.com/klaxxon/ImageAnnotator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaxxon%2FImageAnnotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaxxon%2FImageAnnotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaxxon%2FImageAnnotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klaxxon%2FImageAnnotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klaxxon","download_url":"https://codeload.github.com/klaxxon/ImageAnnotator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112667,"owners_count":20725301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["annotation","annotation-tool","classification","classifier","classifier-training","deep-learning","image","image-annotation","image-classifier","neural-network","neural-networks"],"created_at":"2024-12-08T16:06:44.548Z","updated_at":"2025-03-28T23:13:09.957Z","avatar_url":"https://github.com/klaxxon.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Web Based Image Annotator\n![Image Annotator](https://raw.githubusercontent.com/klaxxon/ImageAnnotator/master/screenshot2.png)\n\nWeb based image annotator that creates Darknet/YOLO txt files for machine learning systems. Only two files needed!  Currently, the processing file uses PHP with the GD extension.\n\nI was looking for a very simple, web based way to take a collection of images and produce annotations from shared contributors over the web.  This is the very beginning so beware of missing features, bugs and security issues.\n\nCreates YOLO/Darknet style .txt files:\u003cbr/\u003e\n\u003cpre\u003e\n0 0.025 0.90416666666667 0.10625 0.1\n0 0.73125 0.86458333333333 0.0171875 0.03125\n3 0.353125 0.925 0.10625 0.20625\n\u003c/pre\u003e\n  \n\u003ch2\u003eFeatures\u003c/h2\u003e\nImages are shuffled before serving to the webpage.\u003cbr/\u003e\nScroll wheel zooming is supported.\u003cbr/\u003e\nSegemented parts of image are displayed and zoomed\u003cbr/\u003e\n\n\n\u003ch2\u003eTODO\u003c/h2\u003e\nAdd security\u003cbr/\u003e\nReview current annotations\u003cbr/\u003e\nWork on full resolution images\u003cbr/\u003e\n\n\n\u003ch2\u003eInstall\u003c/h2\u003e\n\nAll you need is PHP with gd image extension.\u003cbr/\u003e\n\u003cbr/\u003e\nThere are only two files that need web access: index.html and process.php.\u003cbr/\u003e\nWithin the web directory containing the two files, create a \"data\" directory.  This is the operational directory for a training set.  This way, it can simply be linked or copied out.  In the future, you will be able to select a training set to annotate.\u003cbr/\u003e\n\u003cbr/\u003e\nCreate a classes.txt file in your data directory containing a class name per line, no special characters since this name will be used as IDs in the javascript.\u003cB\u003e\u003ci\u003eAll annotations are indexes to this file.  Only add new classes to end of file, otherwise you will need to redo all annotations for the new class order.\u003c/i\u003e\u003c/b\u003e\n\u003cbr/\u003e\nPut all of your images in a data/images directory.\u003cbr/\u003e\n\u003cbr/\u003e\nThe webserver needs write access to this directory.\u003cbr/\u003e\n\u003cbr/\u003e\n\u003ch3\u003eDirectory Structure\u003c/h3\u003e\n\u003cpre\u003e\nindex.html\nprocess.php\ndata--\\\n      classes.txt\n      images--\\\n              image1.jpg\n              image2.jpg\n                   .\n                   .\n                   .\n\u003c/pre\u003e\n\n\u003ch8\u003eTo create a sequence of images from a video, you can use the following ffmpeg command:\u003cbr/\u003e\n\u003ccode\u003effmpeg -i video.mp4 -vf fps=1 image%d.png\u003c/code\u003e\u003cbr/\u003e\nWhere the fps=# is the number of images you want per second of video.\n\u003c/h8\u003e\n\nThe annotation files will be placed into the images directory with the same name as the image and a .txt extension.\n\n\u003ch2\u003eDo Over\u003c/h2\u003e\n\nTo clear out any annotations associated with an image, simply delete the associated .txt file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaxxon%2Fimageannotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklaxxon%2Fimageannotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklaxxon%2Fimageannotator/lists"}