1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 08:44:11 +08:00
Files
opencv_contrib/modules/viz/samples/viz_sample_01.py
LaurentBerger 5e0ff400fc Merge pull request #2882 from LaurentBerger:python_viz
* python binding for viz

tutorial widget pose

reset

test_tutorial 2 & 3

sample py

9 test sur 22

test PyWCloudNormal

16 sur 22

end?

python test

* oops

* bug

* comment but( this is not solved https://github.com/opencv/opencv_contrib/pull/2882#discussion_r591659839

* review 2

* oversight

* oversight oops

* viz: move out Py* classes from public C++ headers

* viz: recover PyColor

Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-04-02 10:21:37 +00:00

13 lines
255 B
Python

import numpy as np
import cv2 as cv
v = cv.viz.Viz3d_create("Viz Demo")
print("First event loop is over")
v.spin()
print("Second event loop is over")
v.spinOnce(1, True)
while not v.wasStopped():
v.spinOnce(1, True)
print("Last event loop is over")