{"id":15707449,"url":"https://github.com/robmarkcole/tagbox_python","last_synced_at":"2025-03-30T16:15:50.814Z","repository":{"id":85844632,"uuid":"134516351","full_name":"robmarkcole/tagbox_python","owner":"robmarkcole","description":"A python script to teach Machinebox/Tagbox","archived":false,"fork":false,"pushed_at":"2018-05-27T09:32:07.000Z","size":1256,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T00:07:48.054Z","etag":null,"topics":["computer-vision","machinebox"],"latest_commit_sha":null,"homepage":"https://machineboxio.com/","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/robmarkcole.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-05-23T05:09:11.000Z","updated_at":"2019-02-15T05:41:32.000Z","dependencies_parsed_at":"2023-11-26T00:30:24.773Z","dependency_job_id":null,"html_url":"https://github.com/robmarkcole/tagbox_python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Ftagbox_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Ftagbox_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Ftagbox_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robmarkcole%2Ftagbox_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robmarkcole","download_url":"https://codeload.github.com/robmarkcole/tagbox_python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246342994,"owners_count":20761947,"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":["computer-vision","machinebox"],"created_at":"2024-10-03T20:40:32.787Z","updated_at":"2025-03-30T16:15:50.790Z","avatar_url":"https://github.com/robmarkcole.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tagbox_python\nA python script to teach Machinebox/Tagbox from a directory containing folders with images of tags, where the folder name is the tag to teach. The directory must contain folders of images with the structure:\n\n```bash\ntag_1/\n    img1.jpg\n    img2.jpg\n    ........\ntag_2/\n    image1.png\n    image2.png\n    ..........\ntag_3/\n    image1.jpeg\n    image2.jpeg\n    ..........    \n```\nAllowed extensions for images are: `.jpg`, `.jpeg` and `.png`.\n\n**Usage** Run `teach_tagbox.py` from the command line in the directory containing all the folders of images. The script assumes your Facebox is running on `localhost`, if this isn't the case you will need to edit `teach_api_url` and `health_api_url` in `teach_tagbox.py`.\n\n**Limits** With a free license of Tagbox you are limited to teaching 20 tags.\n\n[Run Tagbox in tag only mode with](https://machinebox.io/docs/tagbox/recognizing-images):\n```\nMB_KEY=\"INSERT-YOUR-KEY-HERE\"\nsudo docker run -p 8080:8080 -e \"MB_KEY=$MB_KEY\" -e MB_TAGBOX_ONLY_CUSTOM_TAGS=true machinebox/tagbox\n```\nYou should see a message on startup `pretrained tags are disabled, only custom tags will be returned`\n\n# Limitations and Image Selection\nOn the free plan, you can only train/tag 20 images, therefore you will probably want to limit use to binary classification, with 10 images for ON and 10 for OFF.\nExperiment with the images you use to teach tagbox, as you want to cover a range of views, magnifications, backgrounds etc. I noticed that when I taught a small number of images, that in some cases it was the background (a wooden floor) which was being identified by likely tags, not the subject!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Ftagbox_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobmarkcole%2Ftagbox_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobmarkcole%2Ftagbox_python/lists"}