Merge pull request #20431 from lukasalexanderweber:debug-stitching_detailed.py

pull/20445/head
Alexander Alekhin 3 years ago
commit 755f4f324b
  1. 3
      samples/python/stitching_detailed.py

@ -450,7 +450,8 @@ def main():
cameras[i].focal *= compose_work_aspect
cameras[i].ppx *= compose_work_aspect
cameras[i].ppy *= compose_work_aspect
sz = (full_img_sizes[i][0] * compose_scale, full_img_sizes[i][1] * compose_scale)
sz = (int(round(full_img_sizes[i][0] * compose_scale)),
int(round(full_img_sizes[i][1] * compose_scale)))
K = cameras[i].K().astype(np.float32)
roi = warper.warpRoi(sz, K, cameras[i].R)
corners.append(roi[0:2])

Loading…
Cancel
Save