Skip to content

Kazuhito00/cv-picture-in-picture-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cv-picture-in-picture-window

OpenCVでピクチャーインピクチャーのように表示するサンプルです。
bu19j-mplzq

Requirement

  • OpenCV 3.4.2 or later

Demo

デモの実行方法は以下です。

python sample.py

How to use

以下の流れで呼び出してください。
CvWPictureInPictrueWindowクラス作成時には、ウィンドウ名、スライダー上のライン色、ライン太さ、小窓の比率(元画像比)、小窓位置(X座標、Y座標それぞれの割合)を指定出来ます。
省略した場合は、それぞれ'debug'、(255, 255, 255)、1、0.4、(0.55, 0.55)になります。

from cv_picture_in_picture_window import CvWPictureInPictrueWindow

cvwindow = CvWPictureInPictrueWindow(
    window_name='debug',
    line_color=(255, 255, 255),
    line_thickness=1,
    pip_ratio=0.4,
    pip_position=(0.55, 0.55)
)

# [省略]

while True:
    cvwindow.imshow(image, pip_image)
    key = cv.waitKey(1)

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

cv-picture-in-picture-window is under MIT license.

About

OpenCVでピクチャーインピクチャーのように表示するサンプルです。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages