{"id":18793764,"url":"https://github.com/ahmetaksungur/image-recognition-api-python","last_synced_at":"2026-05-05T02:38:38.414Z","repository":{"id":158043235,"uuid":"394086202","full_name":"Ahmetaksungur/Image-Recognition-API-Python","owner":"Ahmetaksungur","description":"Python image recognition libraries process the image sent with the api and look at the object, classification, intense colors of the image and whether the image is safe or not.","archived":false,"fork":false,"pushed_at":"2021-08-08T23:39:26.000Z","size":22040,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T15:54:39.297Z","etag":null,"topics":["api-python","flask","image-classification","image-processing","image-recognition","imageai","object-detection","python","python-script"],"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/Ahmetaksungur.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":"2021-08-08T23:07:52.000Z","updated_at":"2021-08-08T23:39:58.000Z","dependencies_parsed_at":"2023-07-07T03:00:13.372Z","dependency_job_id":null,"html_url":"https://github.com/Ahmetaksungur/Image-Recognition-API-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ahmetaksungur/Image-Recognition-API-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmetaksungur%2FImage-Recognition-API-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmetaksungur%2FImage-Recognition-API-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmetaksungur%2FImage-Recognition-API-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmetaksungur%2FImage-Recognition-API-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ahmetaksungur","download_url":"https://codeload.github.com/Ahmetaksungur/Image-Recognition-API-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ahmetaksungur%2FImage-Recognition-API-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32633438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-python","flask","image-classification","image-processing","image-recognition","imageai","object-detection","python","python-script"],"created_at":"2024-11-07T21:26:30.960Z","updated_at":"2026-05-05T02:38:38.386Z","avatar_url":"https://github.com/Ahmetaksungur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Recognition API - Python\r\n#### Python image recognition libraries process the image sent with the api and look at the object, classification, intense colors of the image and whether the image is safe or not.\r\n \r\nFiles you need to upload to the home path after downloading the home folder\r\n\r\nhttps://github.com/OlafenwaMoses/ImageAI/releases/download/essentials-v5/resnet50_imagenet_tf.2.0.h5\r\nhttps://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/yolo.h5\r\n \r\n## Run\r\n\r\n```\r\npython api.py\r\n```\r\n \r\n#### /api [POST]\r\n```json\r\n{\r\n\t\"image\": \"https://github.com/OlafenwaMoses/ImageAI/blob/master/test-images/11.jpg?raw=true\"\r\n}\r\n```\r\n#### /api Return\r\n \r\n```json\r\n{\r\n  \"width\": 800,\r\n  \"height\": 534,\r\n  \"security\": {\r\n    \"nsfw\": \"0.00035329186\",\r\n    \"sfw\": \"0.99964666\"\r\n  },\r\n  \"color_palette\": [\r\n    {\r\n      \"color\": \"#ECECEB\",\r\n      \"score\": 0.56\r\n    },\r\n    {\r\n      \"color\": \"#7F7A7D\",\r\n      \"score\": 0.12\r\n    },\r\n    {\r\n      \"color\": \"#C3917D\",\r\n      \"score\": 0.11\r\n    },\r\n    {\r\n      \"color\": \"#312B29\",\r\n      \"score\": 0.09\r\n    },\r\n    {\r\n      \"color\": \"#CCB698\",\r\n      \"score\": 0.05\r\n    },\r\n    {\r\n      \"color\": \"#8E6345\",\r\n      \"score\": 0.03\r\n    },\r\n    {\r\n      \"color\": \"#704433\",\r\n      \"score\": 0.02\r\n    },\r\n    {\r\n      \"color\": \"#494D5D\",\r\n      \"score\": 0.01\r\n    }\r\n  ],\r\n  \"classification\": [\r\n    {\r\n      \"label\": \"jean\",\r\n      \"score\": 14.029912650585175\r\n    },\r\n    {\r\n      \"label\": \"notebook\",\r\n      \"score\": 11.251913011074066\r\n    },\r\n    {\r\n      \"label\": \"stretcher\",\r\n      \"score\": 8.27689915895462\r\n    },\r\n    {\r\n      \"label\": \"monitor\",\r\n      \"score\": 8.269056677818298\r\n    },\r\n    {\r\n      \"label\": \"lab_coat\",\r\n      \"score\": 6.923883408308029\r\n    }\r\n  ],\r\n  \"objectDetection\": [\r\n    {\r\n      \"label\": \"person\",\r\n      \"score\": 99.90594983100891\r\n    },\r\n    {\r\n      \"label\": \"person\",\r\n      \"score\": 99.98345375061035\r\n    },\r\n    {\r\n      \"label\": \"person\",\r\n      \"score\": 99.86221194267273\r\n    },\r\n    {\r\n      \"label\": \"person\",\r\n      \"score\": 99.63626861572266\r\n    },\r\n    {\r\n      \"label\": \"laptop\",\r\n      \"score\": 99.60939884185791\r\n    },\r\n    {\r\n      \"label\": \"dining table\",\r\n      \"score\": 41.51776731014252\r\n    },\r\n    {\r\n      \"label\": \"person\",\r\n      \"score\": 98.27415943145752\r\n    },\r\n    {\r\n      \"label\": \"cup\",\r\n      \"score\": 99.72758293151855\r\n    },\r\n    {\r\n      \"label\": \"cup\",\r\n      \"score\": 98.5138475894928\r\n    },\r\n    {\r\n      \"label\": \"cup\",\r\n      \"score\": 88.39868307113647\r\n    },\r\n    {\r\n      \"label\": \"cell phone\",\r\n      \"score\": 53.04287672042847\r\n    },\r\n    {\r\n      \"label\": \"keyboard\",\r\n      \"score\": 31.74397349357605\r\n    },\r\n    {\r\n      \"label\": \"cell phone\",\r\n      \"score\": 79.6405017375946\r\n    },\r\n    {\r\n      \"label\": \"cup\",\r\n      \"score\": 98.25559854507446\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n## License\r\n\r\nThe code is available under the [MIT License](https://github.com/Ahmetaksungur/Image-Recognition-API-Python/blob/main/LICENSE).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetaksungur%2Fimage-recognition-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetaksungur%2Fimage-recognition-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetaksungur%2Fimage-recognition-api-python/lists"}