Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
85e5de67
Commit
85e5de67
authored
Jan 27, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added help on Kinect usage to user guide
parent
891e2ff3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
0 deletions
+93
-0
opencv_user.pdf
doc/opencv_user.pdf
+0
-0
opencv_guide_body.tex
doc/user_guide/opencv_guide_body.tex
+5
-0
user_highgui.tex
doc/user_guide/user_highgui.tex
+88
-0
No files found.
doc/opencv_user.pdf
View file @
85e5de67
No preview for this file type
doc/user_guide/opencv_guide_body.tex
View file @
85e5de67
...
...
@@ -2,6 +2,11 @@
\chapter
{
cv::Mat. Operations with images.
}
\renewcommand
{
\curModule
}{
cv::Mat. Operations with images.
}
\input
{
user
_
guide/user
_
mat
}
\chapter
{
Features2d.
}
\renewcommand
{
\curModule
}{
Features2d
}
\input
{
user
_
guide/user
_
features2d
}
\chapter
{
Highgui.
}
\renewcommand
{
\curModule
}{
Highgui.
}
\input
{
user
_
guide/user
_
highgui
}
doc/user_guide/user_highgui.tex
0 → 100644
View file @
85e5de67
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% C++ %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifCpp
\section
{
Using Kinect sensor.
}
To get Kinect data there is support in VideoCapture class. So the user can retrieve depth map,
rgb image and some other formats of Kinect output by using familiar interface of
\texttt
{
VideoCapture
}
.
\par
To use existing support of Kinect sensor the user should do the following preliminary steps:
\newline
1.) Install OpenNI library and PrimeSensor Module for OpenNI from here
\url
{
http://www.openni.
org/downloadfiles
}
. The installation should be made in default folders listed in install instrac-
tions of these products:
\begin{lstlisting}
OpenNI:
Linux
&
MacOSX:
Libs into: /usr/lib
Includes into: /usr/include/ni
Windows:
Libs into: c:/Program Files/OpenNI/Lib
Includes into: c:/Program Files/OpenNI/Include
PrimeSensor Module:
Linux
&
MacOSX:
Libs into: /usr/lib
Bins into: /usr/bin
Windows:
Libs into: c:/Program Files/Prime Sense/Sensor/Lib
Bins into: c:/Program Files/Prime Sense/Sensor/Bin
\end{lstlisting}
2.) Configure OpenCV with OpenNI support by setting
\texttt
{
WITH
\_
OPENNI
}
flag in CMake. If OpenNI
is found in default install folders OpenCV will be built with OpenNI library regardless of whether
PrimeSensor Module is found or not. If PrimeSensor Module was not found the user get warning
about this in CMake log. OpenCV is compiled with OpenNI library even though PrimeSensor
Module was not detected, but
\texttt
{
VideoCapture
}
object can not grab the data from Kinect sensor in
such case. Build OpenCV.
\par
VideoCapture provides retrieving the following Kinect data:
\begin{lstlisting}
a.) data given from depth generator:
OPENNI
_
DEPTH
_
MAP - depth values in mm (CV
_
16UC1)
OPENNI
_
POINT
_
CLOUD
_
MAP - XYZ in meters (CV
_
32FC3)
OPENNI
_
DISPARITY
_
MAP - disparity in pixels (CV
_
8UC1)
OPENNI
_
DISPARITY
_
MAP
_
32F - disparity in pixels (CV
_
32FC1)
OPENNI
_
VALID
_
DEPTH
_
MASK - mask of valid pixels (not ocluded,
not shaded etc.) (CV
_
8UC1)
b.) data given from RGB image generator:
OPENNI
_
BGR
_
IMAGE - color image (CV
_
8UC3)
OPENNI
_
GRAY
_
IMAGE - gray image (CV
_
8UC1)
\end{lstlisting}
To get depth map from Kinect the user can use
\texttt
{
VideoCapture::operator >>
}
, e. g.
\begin{lstlisting}
VideoCapture capture(0); // or CV
_
CAP
_
OPENNI
for(;;)
{
Mat depthMap;
capture >> depthMap;
if( waitKey( 30 ) >= 0 )
break;
}
\end{lstlisting}
To get several Kinect maps the user should use
\texttt
{
VideoCapture::grab + VideoCapture::retrieve
}
,
e. g.
\begin{lstlisting}
VideoCapture capture(0); // or CV
_
CAP
_
OPENNI
for(;;)
{
Mat depthMap;
Mat rgbImage
capture.grab();
capture.retrieve( depthMap, OPENNI
_
DEPTH
_
MAP );
capture.retrieve( bgrImage, OPENNI
_
BGR
_
IMAGE );
if( waitKey( 30 ) >= 0 )
break;
}
\end{lstlisting}
For more information see example kinect maps.cpp in sample folder.
\fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment