def find_realsense_serial_no(type):
    camera_name = ['Intel RealSense T265', 'Intel RealSense D435']
    pipe = rs.pipeline()
    devices = rs.context().devices
    for i in range(len(devices)):
        if (devices[i].get_info(rs.camera_info.name) == camera_name[type]):
            print((('Found one connected ' + camera_name[type]) + ' with serial no:'), devices[i].get_info(rs.camera_info.serial_number))
            return devices[i].get_info(rs.camera_info.serial_number)
    print((('No ' + camera_name[type]) + ' found, please check connection or input serial manually'))
    return None
def find_realsense_serial_no(type):
    camera_name = ['Intel RealSense T265', 'Intel RealSense D435']
    pipe = rs.pipeline()
    devices = rs.context().devices
    for i in range(len(devices)):
        if (devices[i].get_info(rs.camera_info.name) == camera_name[type]):
            print((('Found one connected ' + camera_name[type]) + ' with serial no:'), devices[i].get_info(rs.camera_info.serial_number))
            return devices[i].get_info(rs.camera_info.serial_number)
    print((('No ' + camera_name[type]) + ' found, please check connection or input serial manually'))
    return None