{"id":20360822,"url":"https://github.com/masadcv/opencvkinect","last_synced_at":"2025-04-12T03:54:00.481Z","repository":{"id":12712944,"uuid":"15385499","full_name":"masadcv/OpenCVKinect","owner":"masadcv","description":"Provides method to access Kinect Color and Depth Stream in OpenCV Mat format.","archived":false,"fork":false,"pushed_at":"2016-08-25T16:19:30.000Z","size":232444,"stargazers_count":18,"open_issues_count":0,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T03:53:46.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masadcv.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":"2013-12-23T01:50:00.000Z","updated_at":"2025-03-17T22:17:18.000Z","dependencies_parsed_at":"2022-09-05T17:31:19.701Z","dependency_job_id":null,"html_url":"https://github.com/masadcv/OpenCVKinect","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masadcv%2FOpenCVKinect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masadcv%2FOpenCVKinect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masadcv%2FOpenCVKinect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masadcv%2FOpenCVKinect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masadcv","download_url":"https://codeload.github.com/masadcv/OpenCVKinect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514205,"owners_count":21116899,"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":[],"created_at":"2024-11-14T23:43:06.294Z","updated_at":"2025-04-12T03:54:00.461Z","avatar_url":"https://github.com/masadcv.png","language":"C++","readme":"\nOpenCVKinect: Provides method to access Kinect Color and Depth Stream\n              in OpenCV Mat format.\n\nOpenCVKinect\n============\n\nCode for acquiring Depth and Color streams from Kinect sensor in OpenCV Mat format. \n\nPre-requisites\n==============\n\n- Kinect 1.x SDK\n- OpenNI 2.x SDK\n- OpenCV 2.x\n- Kinect Sensor\n\nUpdate 16/04/2016 - The project now includes OpenNI and OpenCV libraries and include files and has been tested on Windows 8.1. This enables it to run with only requiring Kinect 1.8 SDK installation as a pre-requisite. \n\nUsage\n=====\n\nInclude the source file in your project and create a class object where data streams are required.\n\nTo set up the object call following function in the same order.\n\nsetMode(flag) - for specifying the data streams which will be returned\n\n                Possible flag modes for data stream acquisition\n                - C_MODE_DEPTH\n                - C_MODE_COLOR\n                - C_MODE_DEPTH | C_MODE_COLOR\n                - C_MODE_DEPTH | C_MODE_COLOR | C_MODE_ALIGNED\n\ninit() - initializing the data streams and device drivers\n\ngetData() - to get a vector of OpenCV Mat giving Depth and Color streams\n\ngetColor() - get Color stream\n\ngetDepth() - get Depth stream\n\n\n          Return a cv::vector \u003ccv::Mat\u003e which can be accessed with index flags\n          - C_DEPTH_STREAM\n          - C_COLOR_STREAM\n          \n          example: accessing depth and color stream from cv::vector \u003ccv::Mat\u003e myDataStreams\n          - cv::Mat depth = myDataStreams[C_DEPTH_STREAM];\n          - cv::Mat color = myDataStreams[C_COLOR_STREAM];\n\nThis code includes a sample which demonstrates the functionality of the class.\n\nUpdate\n======\nThe example code now includes an example to visualize depth map using colormaps similar to matlab figures. \n\nThe update also fixes the following:\n- Fix no stream when selecting color or depth stream alone\n- Added example for colorizing depth map for better visualization.\n- Added OpenCV and OpenNI libraries and include folder - making the project work out-of-the-box only requiring installation of Kinect SDK 1.8.\n- Sample data collected using Kinect - includes examples of different visualizations of depth map\n\nExamples\n========\n\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/color/colorAGif.gif\" alt=\"Color Image\" width=\"400\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/colorizedDepthAGif.gif\" alt=\"Colorized Depth\" width=\"400\"/\u003e\n\n\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/color/b/color_00123.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00123.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00126.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00129.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00132.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00134.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00137.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00140.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00143.png\" alt=\"Color Image\" width=\"200\"/\u003e\n\u003cimg src=\"https://github.com/devkicks/OpenCVKinect/blob/master/CollectedSampleData/colorizedDepth/b/colorizedDepth_00146.png\" alt=\"Color Image\" width=\"200\"/\u003e\n \n\n\nCopyright (C) 2013  Muhammad Asad\n- Webpage: http://seevisionc.blogspot.co.uk/p/about.html\n- Contact: masadcv@gmail.com\n\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasadcv%2Fopencvkinect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasadcv%2Fopencvkinect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasadcv%2Fopencvkinect/lists"}