1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #23291 from vovka643:5.x_depricated_backends

Merge with https://github.com/opencv/opencv_contrib/pull/3446
Related issue: https://github.com/opencv/opencv/issues/11810

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
This commit is contained in:
Vladimir Ponomarev
2023-03-15 09:41:36 +03:00
committed by GitHub
parent a792252b55
commit 0c55ed0ca8
6 changed files with 3 additions and 29 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ VideoCapture can retrieve the following data:
In order to get depth map from depth sensor use VideoCapture::operator \>\>, e. g. :
@code{.cpp}
VideoCapture capture( CAP_OPENNI );
VideoCapture capture( CAP_OPENNI2 );
for(;;)
{
Mat depthMap;
@@ -70,7 +70,7 @@ In order to get depth map from depth sensor use VideoCapture::operator \>\>, e.
@endcode
For getting several data maps use VideoCapture::grab and VideoCapture::retrieve, e.g. :
@code{.cpp}
VideoCapture capture(0); // or CAP_OPENNI
VideoCapture capture(0); // or CAP_OPENNI2
for(;;)
{
Mat depthMap;
@@ -88,7 +88,7 @@ For getting several data maps use VideoCapture::grab and VideoCapture::retrieve,
For setting and getting some property of sensor\` data generators use VideoCapture::set and
VideoCapture::get methods respectively, e.g. :
@code{.cpp}
VideoCapture capture( CAP_OPENNI );
VideoCapture capture( CAP_OPENNI2 );
capture.set( CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE, CAP_OPENNI_VGA_30HZ );
cout << "FPS " << capture.get( CAP_OPENNI_IMAGE_GENERATOR+CAP_PROP_FPS ) << endl;
@endcode