{"id":23093030,"url":"https://github.com/crispengari/ssi","last_synced_at":"2026-05-06T19:32:06.524Z","repository":{"id":141095045,"uuid":"575750112","full_name":"CrispenGari/SSI","owner":"CrispenGari","description":"🐍Snake Specie Indentification (SSI) is a deep learning API for classifying different 5 species of snakes from images. 🐍","archived":false,"fork":false,"pushed_at":"2023-07-29T08:55:56.000Z","size":4823,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T17:02:43.411Z","etag":null,"topics":["artificial-intelligence","deep-learning","graphene","graphql","image-classification","machine-learning","python","pytorch","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/CrispenGari.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":"2022-12-08T08:03:04.000Z","updated_at":"2022-12-16T03:40:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8925d56b-0717-4ac0-99e8-1cd1fc64484b","html_url":"https://github.com/CrispenGari/SSI","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/CrispenGari%2FSSI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2FSSI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2FSSI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrispenGari%2FSSI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrispenGari","download_url":"https://codeload.github.com/CrispenGari/SSI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061217,"owners_count":20877166,"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":["artificial-intelligence","deep-learning","graphene","graphql","image-classification","machine-learning","python","pytorch","rest-api"],"created_at":"2024-12-16T21:46:21.227Z","updated_at":"2026-05-06T19:32:06.494Z","avatar_url":"https://github.com/CrispenGari.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Snake Specie Identification (SSI)\n\n🐍Snake Specie Identification (SSI) is a deep learning API for classifying different 5 species of snakes from images. 🐍 SSI comes with `2` types of `API's` that was build using a light weight python library called `flask` which are:\n\n1. REST api\n2. GRAPHQL api\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/cover.jpg\" width=\"100%\" alt=\"cover\"/\u003e\n\u003c/p\u003e\n\n### SSI Tool\n\nSSI was also build using the graphql API for snakes species identification on mobile phones. A sub repos called `mobile` and `web` contains a `react-native` and a `qwik` application that send `graphql mutation` and a `rest-http-request` respectively to the flask server to do snake identification tasks in real-time.\n\n### mobile\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/0.jpeg\" alt=\"cover\" height=\"200\"/\u003e\n\u003cimg src=\"/3.jpeg\" alt=\"cover\" height=\"200\"/\u003e\n\u003cimg src=\"/2.jpeg\" alt=\"cover\" height=\"200\"/\u003e\n\u003cimg src=\"/1.jpeg\" alt=\"cover\" height=\"200\"/\u003e\n\u003c/p\u003e\n\n### web\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"/web02.jpg\" alt=\"cover\" width=\"100%\"/\u003e\n\u003cimg src=\"/web01.jpg\" alt=\"cover\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n### GraphQL\n\nI Expose the graphql api at `http://localhost:3001/graphql` on local computers for doing snake specie identification, here is an example of sending a graphql mutation to the server using `cURL`:\n\n```shell\ncurl http://localhost:3001/graphql  -F operations='{ \"query\": \"mutation PredictSnakeSpecie($input: PredictionInputType!) { predictSnake(input: $input) { error { field message } ok prediction {predictions {  label probability className specie { id specieName commonName } } } } }\", \"variables\": { \"input\": {\"image\": null} } }'  -F map='{ \"0\": [\"variables.input.image\"] }'  -F 0=@class-1.jpg\n```\n\nIf everything is working fine here is the expected Response from `GraphQL` api.\n\n```json\n{\n  \"data\": {\n    \"predictSnake\": {\n      \"error\": null,\n      \"ok\": true,\n      \"prediction\": {\n        \"predictions\": [\n          {\n            \"label\": 0,\n            \"probability\": 0.11999999731779099,\n            \"className\": \"class-1\",\n            \"specie\": {\n              \"id\": 0,\n              \"specieName\": \"Nerodia sipedon\",\n              \"commonName\": \"Northern Watersnake\"\n            }\n          },\n          {\n            \"label\": 1,\n            \"probability\": 0.1899999976158142,\n            \"className\": \"class-2\",\n            \"specie\": {\n              \"id\": 1,\n              \"specieName\": \"Thamnophis sirtalis\",\n              \"commonName\": \"Common Garter snake\"\n            }\n          },\n          {\n            \"label\": 2,\n            \"probability\": 0.46000000834465027,\n            \"className\": \"class-3\",\n            \"specie\": {\n              \"id\": 2,\n              \"specieName\": \"Storeria dekayi\",\n              \"commonName\": \"DeKay's Brown snake\"\n            }\n          },\n          {\n            \"label\": 3,\n            \"probability\": 0.07999999821186066,\n            \"className\": \"class-4\",\n            \"specie\": {\n              \"id\": 3,\n              \"specieName\": \"Patherophis obsoletus\",\n              \"commonName\": \"Black Rat snake\"\n            }\n          },\n          {\n            \"label\": 4,\n            \"probability\": 0.15000000596046448,\n            \"className\": \"class-5\",\n            \"specie\": {\n              \"id\": 4,\n              \"specieName\": \"Crotalus atrox\",\n              \"commonName\": \"Western Diamondback rattlesnake\"\n            }\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\n### REST\n\nI also Expose the rest api at `http://127.0.0.1:3001/api/rest/identify` endpoint on local computers for doing snake specie identification, here is an example of sending a post request to the server using `cURL`:\n\n```shell\ncurl -X POST -F image=@class-1.jpg http://127.0.0.1:3001/api/rest/identify\n```\n\nIf everything is working fine here is the expected expected Response from `REST`\n\n```json\n{\n  \"predictions\": {\n    \"predictions\": [\n      {\n        \"class_name\": \"class-1\",\n        \"label\": 0,\n        \"probability\": 0.12999999523162842,\n        \"specie\": {\n          \"class_\": \"class-1\",\n          \"common_name\": \"Northern Watersnake\",\n          \"id\": 0,\n          \"specie_name\": \"Nerodia sipedon\"\n        }\n      },\n      {\n        \"class_name\": \"class-2\",\n        \"label\": 1,\n        \"probability\": 0.17000000178813934,\n        \"specie\": {\n          \"class_\": \"class-2\",\n          \"common_name\": \"Common Garter snake\",\n          \"id\": 1,\n          \"specie_name\": \"Thamnophis sirtalis\"\n        }\n      },\n      {\n        \"class_name\": \"class-3\",\n        \"label\": 2,\n        \"probability\": 0.4399999976158142,\n        \"specie\": {\n          \"class_\": \"class-3\",\n          \"common_name\": \"DeKay's Brown snake\",\n          \"id\": 2,\n          \"specie_name\": \"Storeria dekayi\"\n        }\n      },\n      {\n        \"class_name\": \"class-4\",\n        \"label\": 3,\n        \"probability\": 0.05000000074505806,\n        \"specie\": {\n          \"class_\": \"class-4\",\n          \"common_name\": \"Black Rat snake\",\n          \"id\": 3,\n          \"specie_name\": \"Patherophis obsoletus\"\n        }\n      },\n      {\n        \"class_name\": \"class-5\",\n        \"label\": 4,\n        \"probability\": 0.20999999344348907,\n        \"specie\": {\n          \"class_\": \"class-5\",\n          \"common_name\": \"Western Diamondback rattlesnake\",\n          \"id\": 4,\n          \"specie_name\": \"Crotalus atrox\"\n        }\n      }\n    ],\n    \"top_prediction\": {\n      \"class_name\": \"class-3\",\n      \"label\": 2,\n      \"probability\": 0.4399999976158142,\n      \"specie\": {\n        \"class_\": \"class-3\",\n        \"common_name\": \"DeKay's Brown snake\",\n        \"id\": 2,\n        \"specie_name\": \"Storeria dekayi\"\n      }\n    }\n  },\n  \"success\": true\n}\n```\n\n### License\n\n```\nMIT License\n\nCopyright (c) 2022 crispengari\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrispengari%2Fssi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrispengari%2Fssi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrispengari%2Fssi/lists"}