{"id":21812224,"url":"https://github.com/jolibrain/godd","last_synced_at":"2025-06-17T08:36:40.799Z","repository":{"id":45893923,"uuid":"153882412","full_name":"jolibrain/godd","owner":"jolibrain","description":"🧠 DeepDetect package for easy integration in any Go project","archived":false,"fork":false,"pushed_at":"2021-11-29T07:26:08.000Z","size":52,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-15T04:11:44.286Z","etag":null,"topics":["api","artificial-intelligence","client","deepdetect","go","golang","machine-learning","neural-network","package"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jolibrain.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}},"created_at":"2018-10-20T07:48:33.000Z","updated_at":"2023-07-25T14:20:48.000Z","dependencies_parsed_at":"2022-09-26T19:13:37.958Z","dependency_job_id":null,"html_url":"https://github.com/jolibrain/godd","commit_stats":null,"previous_names":["corentinb/godd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jolibrain/godd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolibrain%2Fgodd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolibrain%2Fgodd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolibrain%2Fgodd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolibrain%2Fgodd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jolibrain","download_url":"https://codeload.github.com/jolibrain/godd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jolibrain%2Fgodd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260323564,"owners_count":22992026,"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":["api","artificial-intelligence","client","deepdetect","go","golang","machine-learning","neural-network","package"],"created_at":"2024-11-27T14:15:07.991Z","updated_at":"2025-06-17T08:36:40.775Z","avatar_url":"https://github.com/jolibrain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)[![forthebadge](https://forthebadge.com/images/badges/made-with-go.svg)](https://forthebadge.com)\n\n[![Build Status](https://travis-ci.com/jolibrain/godd.svg?token=RUPYCGKsp5yMHL2ydcwd\u0026branch=master)](https://travis-ci.com/jolibrain/godd) [![Go Report Card](https://goreportcard.com/badge/github.com/jolibrain/godd)](https://goreportcard.com/report/github.com/jolibrain/godd) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/0d3f90ca8f7146248520913e89e37c9e)](https://www.codacy.com/app/jolibrain/godd?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=jolibrain/godd\u0026amp;utm_campaign=Badge_Grade) [![GoDoc](https://godoc.org/github.com/jolibrain/godd?status.svg)](https://godoc.org/github.com/jolibrain/godd)\n\n# GoDD\n🧠 [DeepDetect](https://github.com/jolibrain/deepdetect) package for easy integration in any Go project\n\nGoDD offer a simple way to use [DeepDetect](https://github.com/jolibrain/deepdetect) in your Go software, by providing a simple interface to communicate with the different API endpoints supported by DeepDetect.\n\n**GoDD currrently only support prediction, not training.**\n\n# Install\n\n`go get -u github.com/jolibrain/godd`\n\n# Examples\n\n[DeepDetect](https://github.com/jolibrain/deepdetect) quickstart with Docker:\n\n`docker pull beniz/deepdetect_cpu`\n\n`docker run -d -p 8080:8080 -v $HOME/deepdetect-models:/opt/my-models beniz/deepdetect_cpu`\n\n`wget https://deepdetect.com/models/voc0712_dd.tar.gz`\n\n`sudo mkdir -p $HOME/deepdetect-models/voc0712 \u0026\u0026 sudo tar -xvf voc0712_dd.tar.gz -C $HOME/deepdetect-models/voc0712`\n\n---\n\nGet informations on a DeepDetect instance:\n\n```go\n// Set DeepDetect host informations\nconst myDD = \"127.0.0.1:8080\"\n\n// Retrieve informations\ninfo, err := godd.GetInfo(myDD)\nif err != nil {\n\tfmt.Println(err.Error())\n\tos.Exit(1)\n}\n\n// Display informations\nfmt.Println(info)\n\n// Display only the services field\nfmt.Println(info.Head.Services)\n```\n\n---\n\nCreate a service:\n\n```go\n// Create a service request structure\nvar service godd.ServiceRequest\n\n// Specify values for your service creation\nservice.Name = \"imageserv\"\nservice.Description = \"object detection service\"\nservice.Type = \"supervised\"\nservice.Mllib = \"caffe\"\nservice.Parameters.Input.Connector = \"image\"\nservice.Parameters.Input.Width = 300\nservice.Parameters.Input.Height = 300\nservice.Parameters.Mllib.Nclasses = 21\nservice.Model.Repository = \"/opt/my-models/voc0712/\"\n\n// Send the service creation request\ncreationResult, err := godd.CreateService(myDD, \u0026service)\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// Check if the service is created\nif creationResult.Status.Code == 200 {\n\tfmt.Println(\"Service creation: \" + creationResult.Status.Msg)\n} else {\n\tfmt.Println(\"Service creation: \" + creationResult.Status.Msg)\n}\n```\n\n---\n\nPredict:\n\n```go\n// Create predict structure for request parameters\nvar predict godd.PredictRequest\n\n// Specify values for your prediction\npredict.Service = \"imageserv\"\npredict.Data = append(predict.Data, \"https://t2.ea.ltmcdn.com/fr/images/9/0/0/les_bienfaits_d_avoir_un_chien_1009_600.jpg\")\npredict.Parameters.Output.Bbox = true\npredict.Parameters.Output.ConfidenceThreshold = 0.1\n\n// Execute the prediction\npredictResult, err := godd.Predict(myDD, \u0026predict)\nif err != nil {\n\tlog.Fatal(err)\n}\n\n// Print data of the first object detected\nif predictResult.Status.Code == 200 {\n\t// Print the complete JSON result:\n\t// fmt.Println(string(predictResult))\n\tfmt.Println(\"Category: \" + predictResult.Body.Predictions[0].Classes[0.Cat)\n\tfmt.Println(\"Probability: \" + strconv.FormatFloa(predictResult.Body.Predictions[0].Classes[0].Prob, 'f', 6, 64))\n\tvar bbox, _ = json.Marshal(predictResult.Body.Predictions[0].Classes[0.Bbox)\n\tfmt.Println(\"Bbox: \" + string(bbox))\n} else {\n\tfmt.Println(\"Prediction failed: \" + predictResult.Status.Msg)\n}\n```\n\n---\n\nDelete a service:\n\n```go\n// Delete service\nserviceDeleteStatus, err := godd.DeleteService(myDD, \"imageserv\")\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Println(\"Service deletion:\")\nfmt.Println(serviceDeleteStatus)\n```\n\n**You can see the full examples in the [examples](https://github.com/jolibrain/godd/tree/master/examples) folder.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolibrain%2Fgodd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjolibrain%2Fgodd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjolibrain%2Fgodd/lists"}