def init(self): ret = ueye.is_InitCamera(self.h_cam, None) if ret != ueye.IS_SUCCESS: self.h_cam = None raise uEyeException(ret) return ret
def init(self): ret = ueye.is_InitCamera(self.h_cam, None) if ret != ueye.IS_SUCCESS: self.h_cam = None print("Problem connecting with the camera") raise uEyeException(ret) return ret
def init(self): ret = ueye.is_InitCamera(self.h_cam, None) if ret != ueye.IS_SUCCESS: self.h_cam = None raise uEyeException(ret) else: print('Initialising cam ', self.h_cam) ret = ueye.is_SetGainBoost(self.h_cam, ueye.IS_SET_GAINBOOST_ON) print('GAINBOOST:', ret) # ms = ueye.DOUBLE(20) # rate = ueye.DOUBLE(10) # newrate = ueye.DOUBLE() # number = ueye.UINT() # # ret = ueye.is_SetFrameRate(self.h_cam, rate, newrate); # print('FR:',ret,newrate) # ret = ueye.is_Exposure(self.h_cam, ueye.IS_EXPOSURE_CMD_GET_EXPOSURE, ms, ueye.sizeof(ms)); # print('EXP:',ret,ms) # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET_NUMBER, number, ueye.sizeof(number)) # print('PxCLK #:',ret, number) # PCrange = (ctypes.c_uint * 3)() # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET_RANGE, PCrange, 3*ueye.sizeof(number)) # print('PxCLK range:', ret, PCrange[0], PCrange[1], PCrange[2]) # list_pixel_clocks = (ctypes.c_uint * 150)() # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET_LIST, list_pixel_clocks, number*ueye.sizeof(number)) # list_np = np.frombuffer(list_pixel_clocks, int) # print('PxCLK list:', ret, list_np[0:number.value]) # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET, number, ueye.sizeof(number)) # print('PxCLK current:',ret, number) # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET_DEFAULT, number, ueye.sizeof(number)) # print('PxCLK default:',ret, number) # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_SET, ueye.UINT(20), ueye.sizeof(number)) # print('PxCLK set:',ret, number) # ret = ueye.is_PixelClock(self.h_cam, ueye.IS_PIXELCLOCK_CMD_GET, number, ueye.sizeof(number)) # print('PxCLK current:',ret, number) # # self.set_colormode(ueye.IS_CM_BGR8_PACKED) # self.set_displaymode(ueye.IS_SET_DM_DIB) # self.set_aoi(0,0, 1936, 1216) return ret