#what type of messages we print to the terminal VN_config.set_string('logging', 'print_level', 'debug, general') #what type of messages we log to a file VN_config.set_string('logging', 'log_level', 'aircraft , algorithm, general') VN_config.set_string('logging', 'display_level', 'raw, gui') #what type of images we record VN_config.set_string('logging', 'record_level', 'raw') #######CAMERA###### # get which camera we will use VN_config.set_integer('camera', 'index', 0) # get image resolution VN_config.set_integer('camera', 'width', 640) VN_config.set_integer('camera', 'height', 480) # define field of view VN_config.set_float('camera', 'horizontal-fov', 70.42) VN_config.set_float('camera', 'vertical-fov', 43.3) #get camera distortion matrix and intrinsics. Defaults: logitech c920 mtx = np.array([[614.01269552, 0, 315.00073982], [0, 614.43556296, 237.14926858], [0, 0, 1.0]]) dist = np.array([0.12269303, -0.26618881, 0.00129035, 0.00081791, 0.17005303]) VN_config.set_array('camera', 'matrix', mtx) VN_config.set_array('camera', 'distortion', dist) VN_config.save()
#######CAMERA###### # get which camera we will use VN_config.set_integer('camera','index',0) # get image resolution VN_config.set_integer('camera','width',640) VN_config.set_integer('camera','height',480) # define field of view VN_config.set_float('camera','horizontal-fov',70.42) VN_config.set_float('camera','vertical-fov',43.3) #get camera distortion matrix and intrinsics. Defaults: logitech c920 mtx = np.array([[ 614.01269552,0,315.00073982], [0,614.43556296,237.14926858], [0,0,1.0]]) dist = np.array([0.12269303, -0.26618881,0.00129035, 0.00081791,0.17005303]) VN_config.set_array('camera','matrix', mtx) VN_config.set_array('camera', 'distortion', dist) VN_config.save()