Add python version of panorama_stitching_rotating_camera and perspect…#16366
Add python version of panorama_stitching_rotating_camera and perspect…#16366alalek merged 10 commits intoopencv:3.4from
Conversation
samples/python/tutorial_code/features2D/Homography/perspective_correction.py
Outdated
Show resolved
Hide resolved
samples/python/tutorial_code/features2D/Homography/perspective_correction.py
Show resolved
Hide resolved
|
@themechanicalcoder, can you add corresponding snippets to the tutorial https://docs.opencv.org/master/d9/dab/tutorial_homography.html? |
samples/python/tutorial_code/features2D/Homography/panorama_stitching_rotating_camera.py
Show resolved
Hide resolved
|
@dkurt when I am making changes to this branch only doc builds are being carried out due to which the PR does not show green tick how to enable builds for all the platforms? |
PR is on WIP stage with frequent updates, so there is reason to run large validation cycle. |
samples/java/tutorial_code/features2D/Homography/PanoramaStitchingRotatingCamera.java
Outdated
Show resolved
Hide resolved
| c1Mo = np.array([[0.9659258723258972, 0.2588190734386444, 0.0, 1.5529145002365112], | ||
| [ 0.08852133899927139, -0.3303661346435547, -0.9396926164627075, -0.10281121730804443], | ||
| [-0.24321036040782928, 0.9076734185218811, -0.342020183801651, 6.130080699920654], | ||
| [0, 0, 0, 1]],dtype=np.float64) |
There was a problem hiding this comment.
Please fix indentation here too.
| @@ -0,0 +1,66 @@ | |||
| import cv2 as cv | |||
| import numpy as np | |||
There was a problem hiding this comment.
numpy should go first (as dependency of opencv - we have reports about that):
Use this header:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2 as cv
| @end_toggle | ||
|
|
||
| @add_toggle_python | ||
| @snippet samples/python/tutorial_code/features2D/Homography/perspective_correction.py warp-chessboard |
There was a problem hiding this comment.
avoid unnecessary double space after @snippet.
This pull request adds python version of panorama_stitching_rotating_camera and perspective_correction