description:Create a report to help us reproduce and fix the bug
labels:["bug"]
body:
- type:markdown
attributes:
value:>
#### Thank you for contributing! Before reporting a bug, please have a look at the [FAQ](https://github.com/opencv/opencv/wiki/FAQ), make sure the issue has no duplicate and hasn't been already addressed by searching through [the existing and past issues](https://github.com/opencv/opencv/issues?page=1&q=is%3Aissue+sort%3Acreated-desc).
- type:textarea
attributes:
label:System Information
description:|
Please provide the following system information to help us diagnose the bug. For example:
// example for c++ user
OpenCV version:4.6.0
Operating System / Platform:Ubuntu 20.04
Compiler & compiler version:GCC 9.3.0
// example for python user
OpenCV python version:4.6.0.66
Operating System / Platform:Ubuntu 20.04
Python version:3.9.6
validations:
required:true
- type:textarea
attributes:
label:Detailed description
description:|
Please provide a clear and concise description of what the bug is and paste the error log below. It helps improving readability if the error log is wrapped in ```` ```triple quotes blocks``` ````.
placeholder:|
A clear and concise description of what the bug is.
```
# error log
```
validations:
required:true
- type:textarea
attributes:
label:Steps to reproduce
description:|
Please provide a minimal example to help us reproduce the bug. Code should be wrapped with ```` ```triple quotes blocks``` ```` to improve readability. If the code is too long, please attach as a file or create and link a public gist:https://gist.github.com.
Related data files (images, onnx, etc) should be attached below as well. If the data files are too big, feel free to upload them to a online drive, share them and put the link below.
placeholder:|
```cpp (replace cpp with python if python code)
# sample code to reproduce the bug
```
Test data:[image](https://link/to/the/image), [model.onnx](htts://link/to/the/onnx/model)
validations:
required:true
- type:checkboxes
attributes:
label:Issue submission checklist
options:
- label:I report the issue, it's not a question
required:true
- label:I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- label:I updated to the latest OpenCV version and the issue is still there
- label:There is reproducer code and related data files (videos, images, onnx, etc)
description:Report an issue related to https://docs.opencv.org/
labels:["category: documentation"]
body:
- type:markdown
attributes:
value:>
#### Thank you for contributing! Before submitting a doc issue, please make sure it has no duplicate by searching through [the existing and past issues](https://github.com/opencv/opencv/issues?page=1&q=is%3Aissue+sort%3Acreated-desc)
- type:textarea
attributes:
label:Descripe the doc issue
description:>
Please provide a clear and concise description of what content in https://docs.opencv.org/ is an issue. Note that there are multiple active branches, such as 3.4, 4.x and 5.x, so please specify the branch with the problem.
placeholder:|
A clear and concise description of what content in https://docs.opencv.org/ is an issue.
Link to the doc:https://docs.opencv.org/4.x/d3/d63/classcv_1_1Mat.html
validations:
required:true
- type:textarea
attributes:
label:Fix suggestion
description:>
Tell us how we could improve the documentation in this regard.
description:Submit a request for a new OpenCV feature
labels:["feature"]
body:
- type:markdown
attributes:
value:>
#### Thank you for contributing! Before submitting a feature request, please make sure the request has no duplicate by searching through [the existing and past issues](https://github.com/opencv/opencv/issues?page=1&q=is%3Aissue+sort%3Acreated-desc)
- type:textarea
attributes:
label:Descripe the feature and motivation
description:|
Please provide a clear and concise proposal of the feature and outline the motivation.
validations:
required:true
- type:textarea
attributes:
label:Additional context
description:|
Add any other context, such as pseudo code, links, diagram, screenshots, to help the community better understand the feature request.
OpenCV usage with OpenVINO {#tutorial_dnn_openvino}
=====================
@prev_tutorial{tutorial_dnn_halide_scheduling}
@next_tutorial{tutorial_dnn_android}
| | |
| -: | :- |
| Original author | Aleksandr Voron |
| Compatibility | OpenCV == 4.x |
This tutorial provides OpenCV installation guidelines how to use OpenCV with OpenVINO.
Since 2021.1.1 release OpenVINO does not provide pre-built OpenCV.
The change does not affect you if you are using OpenVINO runtime directly or OpenVINO samples: it does not have a strong dependency to OpenCV.
However, if you are using Open Model Zoo demos or OpenVINO runtime as OpenCV DNN backend you need to get the OpenCV build.
There are 2 approaches how to get OpenCV:
- Install pre-built OpenCV from another sources: system repositories, pip, conda, homebrew. Generic pre-built OpenCV package may have several limitations:
- OpenCV version may be out-of-date
- OpenCV may not contain G-API module with enabled OpenVINO support (e.g. some OMZ demos use G-API functionality)
- OpenCV may not be optimized for modern hardware (default builds need to cover wide range of hardware)
- OpenCV may not support Intel TBB, Intel Media SDK
- OpenCV DNN module may not use OpenVINO as an inference backend
- Build OpenCV from source code against specific version of OpenVINO. This approach solves the limitations mentioned above.
The instruction how to follow both approaches is provided in [OpenCV wiki](https://github.com/opencv/opencv/wiki/BuildOpenCV4OpenVINO).
@ -418,10 +418,18 @@ homography from camera displacement:
The homography matrices are similar. If we compare the image 1 warped using both homography matrices:


Visually, it is hard to distinguish a difference between the result image from the homography computed from the camera displacement and the one estimated with @ref cv::findHomography function.
#### Exercise
This demo shows you how to compute the homography transformation from two camera poses. Try to perform the same operations, but by computing N inter homography this time. Instead of computing one homography to directly warp the source image to the desired camera viewpoint, perform N warping operations to see the different transformations operating.
You should get something similar to the following:

### Demo 4: Decompose the homography matrix {#tutorial_homography_Demo4}
OpenCV 3 contains the function @ref cv::decomposeHomographyMat which allows to decompose the homography matrix to a set of rotations, translations and plane normals.
Depth sensors compatible with Luxonis DepthAI library are supported through OpenCV Graph API (or G-API) module. RGB image and some other formats of output can be retrieved by using familiar interface of G-API module.
In order to use DepthAI sensor with OpenCV you should do the following preliminary steps:
-# Configure OpenCV with DepthAI library support by setting `WITH_OAK` flag in CMake. If DepthAI library is found in install folders OpenCV will be built with depthai-core (see a status `WITH_OAK` in CMake log).
-# Build OpenCV.
Source code
-----------
You can find source code how to process heterogeneous graphs in the `modules/gapi/samples/oak_basic_infer.cpp` of the OpenCV source code library.