Created with primesense color_stream.read_frame(), depth_stream.read_frame() FREEZES the program

SYSTEM: Ubuntu 18.04 x86_64

  1. Created with primesense openni2 color_stream.read_frame(), depth_stream.read_frame() FREEZES the program.
  2. Im running python3 with sudo The code Im using is:

from primesense import openni2
openni2.initialize(“/home/quad/Downloads/OpenNI_2.3.0.63/Linux/OpenNI-Linux-x64-2.3.0.63/Redist”)
dev = openni2.Device.open_any()
print(dev.get_sensor_info())
Traceback (most recent call last):
File “”, line 1, in
TypeError: get_sensor_info() missing 1 required positional argument: ‘sensor_type’
#HERE Im trying to replug a Camera and get its parameters
dev = openni2.Device.open_any()
print(dev.get_sensor_info())
Traceback (most recent call last):
File “”, line 1, in
TypeError: get_sensor_info() missing 1 required positional argument: ‘sensor_type’
color_stream = dev.create_color_stream()
color_stream.start()
frame = color_stream.read_frame()
#HERE the programm frezes and not responding to ctrl+C