{"id":18603735,"url":"https://github.com/abdullahselek/visionary","last_synced_at":"2025-04-11T05:33:57.209Z","repository":{"id":71933466,"uuid":"93521025","full_name":"abdullahselek/visionary","owner":"abdullahselek","description":"Various types of detection and tracking implementations with OpenCV and C++","archived":false,"fork":false,"pushed_at":"2017-11-12T20:35:15.000Z","size":3046,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:34:34.859Z","etag":null,"topics":["camera","eye-detection","face-detection","image","motion-detection","opencv","tracking","video"],"latest_commit_sha":null,"homepage":"","language":"C++","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/abdullahselek.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":"2017-06-06T13:22:40.000Z","updated_at":"2024-03-06T05:58:49.000Z","dependencies_parsed_at":"2023-05-29T08:30:08.581Z","dependency_job_id":null,"html_url":"https://github.com/abdullahselek/visionary","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/abdullahselek%2Fvisionary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fvisionary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fvisionary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2Fvisionary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/visionary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248347900,"owners_count":21088767,"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":["camera","eye-detection","face-detection","image","motion-detection","opencv","tracking","video"],"created_at":"2024-11-07T02:15:22.337Z","updated_at":"2025-04-11T05:33:57.197Z","avatar_url":"https://github.com/abdullahselek.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# visionary\n\n[![Build Status](https://travis-ci.org/abdullahselek/visionary.svg?branch=master)](https://travis-ci.org/abdullahselek/visionary)\n\nVarious types of detection implementations with OpenCV and C++.\n\n## Building Repository\n\nTo build the repository you need CMake. You can download from [here](https://cmake.org/download/).\nYou can create a shortcut ```cmake``` command for macOS as below\n\n```\nsudo mkdir -p /usr/local/bin\nsudo /Applications/CMake.app/Contents/bin/cmake-gui --install=/usr/local/bin\n```\n\nAfter cloning repository to your own local machine go to project root folder and run\n\n```\ncmake .\n```\n\nand then\n\n```\ncmake --build .\n```\n\nto run unit tests for UNIX machines\n\n```\ncd test\n./visionary-test --gtest_color=yes\n```\n\n## Sample Usage\n\n### Motion-Detection\n\nTo detect motions from camera\n\n```\nMotionDetector motionDetector;\nmotionDetector.setCeil(15);\nmotionDetector.openCamera();\nmotionDetector.run();\n```\n\nTo detect motions from given local video\n\n```\nMotionDetector motionDetector;\nmotionDetector.setCeil(15);\nmotionDetector.setVideoPath(\"YOUR_VIDEO_PATH\");\nmotionDetector.openCamera();\nmotionDetector.run();\n```\n\n### Face-Detection\n\nTo detect face from camera\n\n```\nFaceDetector faceDetector(\"YOUR_CASCADE_PATH\",\n                          source::type::camera,\n                          nullptr);\nfaceDetector.run();\n```\n\nTo detect face from given local video\n\n```\nFaceDetector faceDetector(\"YOUR_CASCADE_PATH\",\n                          source::type::video,\n                          \"YOUR_VIDEO_PATH\");\nfaceDetector.run();\n```\n\nTo detect face from given image\n\n```\nFaceDetector faceDetector(\"YOUR_CASCADE_PATH\",\n                          source::type::image,\n                          \"YOUR_IMAGE_PATH\");\nfaceDetector.run();\n```\n\n### Face \u0026 Eye Detection\n\nTo detect eye and face from given image\n\n```\nEyeDetector eyeDetector;\neyeDetector.setEyeCascadePath(\"YOUR_EYE_CASCADE_PATH\");\neyeDetector.setFaceCascadePath(\"YOUR_FACE_CASCADE_PATH\");\neyeDetector.setSourcePath(\"YOUR_IMAGE_PATH\");\neyeDetector.setSourceType(source::type::image);\neyeDetector.run();\n```\n\nTo detect eye and face from camera\n\n```\nEyeDetector eyeDetector(\"YOUR_EYE_CASCADE_PATH\",\n                        \"YOUR_FACE_CASCADE_PATH\",\n                        source::type::camera,\n                        nullptr);\neyeDetector.run();\n```\n\nTo detect eye and face from given local video\n\n```\nEyeDetector eyeDetector(\"YOUR_EYE_CASCADE_PATH\",\n                        \"YOUR_FACE_CASCADE_PATH\",\n                        source::type::video,\n                        \"YOUR_VIDEO_PATH\");\neyeDetector.run();\n```\n\n### Object Tracking\n\nObject tracking from camera\n\n```\nObjectTracker objectTracker(tracker::type::mil,\n                            source::type::camera,\n                            nullptr);\ncv::Rect2d boundingBox(x, y, width, height);\nobjectTracker.run(boundingBox);\n```\n\nObject tracking from given local video\n```\nObjectTracker objectTracker(tracker::type::mil,\n                            source::type::video,\n                            \"YOUR_VIDEO_PATH\");\ncv::Rect2d boundingBox(x, y, width, height);\nobjectTracker.run(boundingBox);\n```\n\n## Sample Videos \u0026 Images\n\n### Videos\n\n[Motion Detection](https://youtu.be/xgXo35C3IQE)\u003cbr /\u003e\n[Face Detection](https://youtu.be/bf5NtpbNbYg)\u003cbr /\u003e\n[Face \u0026 Eyes Detection](https://youtu.be/GFfjjkKZwhs)\u003cbr /\u003e\n\n### Images\n\n![Face Detection](/samples/face_detection.png)\u003cbr /\u003e\n![Face \u0026 Eyes Detection](/samples/face_eye_detection.png)\n\n### NOTE\n\nOpenCV should be installed to your computer before running, take a look at [.travis.yml](https://github.com/abdullahselek/visionary/blob/master/.travis.yml) file for sample installation for macOS and Linux.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fvisionary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2Fvisionary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2Fvisionary/lists"}