{"id":22552828,"url":"https://github.com/rosesonfire/objectdetection","last_synced_at":"2025-04-10T04:15:02.294Z","repository":{"id":51299265,"uuid":"111281409","full_name":"rosesonfire/objectDetection","owner":"rosesonfire","description":"Detect single objects in small, background-blurred and close-focused images","archived":false,"fork":false,"pushed_at":"2017-11-22T14:10:03.000Z","size":684,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T04:14:55.183Z","etag":null,"topics":["api","blurred-background","close-focused","image-editting","image-processing","nodejs","object-detection"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rosesonfire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-19T09:27:36.000Z","updated_at":"2022-11-20T10:29:51.000Z","dependencies_parsed_at":"2022-09-18T08:52:05.359Z","dependency_job_id":null,"html_url":"https://github.com/rosesonfire/objectDetection","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/rosesonfire%2FobjectDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosesonfire%2FobjectDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosesonfire%2FobjectDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosesonfire%2FobjectDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosesonfire","download_url":"https://codeload.github.com/rosesonfire/objectDetection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154994,"owners_count":21056543,"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","blurred-background","close-focused","image-editting","image-processing","nodejs","object-detection"],"created_at":"2024-12-07T18:07:41.035Z","updated_at":"2025-04-10T04:15:02.276Z","avatar_url":"https://github.com/rosesonfire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Detect single objects in small, background-blurred and close-focused images.\u003cbr /\u003e\u003cbr /\u003e\nNPM link: [object-detection](https://www.npmjs.com/package/object-detection)\n# Installation\n`npm install object-detection`\n# Usage\n```\n\nvar detectObject = require('object-detection')\n\n// Tweak the Sensitivity and the Tolerance for optimal result\n\nvar config = {\n  imageName: 'path-to-image', // preferrably in JPG format and less than 100 kB\n  sensitivity: 50, // ranges from 1 to 100\n  tolerance: 50, // ranges from 1 to 100\n}\n\ndetectObject(config).then(function(response) {\n\n  var base64Img = response.base64Img\n\n  // use base64Img in html image tag ...\n  imageElement.setAttribute('src', 'data:image/jpeg;base64,' + base64Img)\n\n  // save base64Img as image file ...\n  fs.writeFile('object.jpg', base64Img, { encoding: 'base64' }, function() {\n  \tconsole.log('Saved object image')\n  })\n  \n})\n\n```\n# Caution\n- Use small images, preferably in JPG format and less than 100 kB\n- Currently works for single object.\n- Behaviour is not strongly defined for multi-objects.\n- Contiguous objects are considered as single object.\n- Optimizer is not well tuned yet.\n# Web console\n[object-detection-console](https://github.com/rosesonfire/objectDetectionConsole) is a simple web console for the object-detection package.\n# Examples\nName|Image|Object|Sensitivity|Tolerance\n-|-|-|-|-\nBaseball|\u003cimg src=\"./examples/images/baseball.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/baseball.jpg\" width=\"200\"\u003e|87|50\nBirb|\u003cimg src=\"./examples/images/birb.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/birb.jpg\" width=\"200\"\u003e|94|57\nCherry|\u003cimg src=\"./examples/images/cherry.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/cherry.jpg\" width=\"200\"\u003e|86|21\nMic|\u003cimg src=\"./examples/images/mic.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/mic.jpg\" width=\"200\"\u003e|87|20\nSunflower|\u003cimg src=\"./examples/images/sunflower.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/sunflower.jpg\" width=\"200\"\u003e|94|22\nFlower|\u003cimg src=\"./examples/images/flower.jpg\" width=\"200\" /\u003e|\u003cimg src=\"./examples/objects/flower.jpg\" width=\"200\"\u003e|80|17","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosesonfire%2Fobjectdetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosesonfire%2Fobjectdetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosesonfire%2Fobjectdetection/lists"}