mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 08:44:11 +08:00

* 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>
13 lines
255 B
Python
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")
|