viz_sample_01.py 255 B

123456789101112
  1. import numpy as np
  2. import cv2 as cv
  3. v = cv.viz.Viz3d_create("Viz Demo")
  4. print("First event loop is over")
  5. v.spin()
  6. print("Second event loop is over")
  7. v.spinOnce(1, True)
  8. while not v.wasStopped():
  9. v.spinOnce(1, True)
  10. print("Last event loop is over")