scanSerialNumber Method
- Sensor.scanSerialNumber() dict
Scan and return information of all connected sensors on the current device.
This method detects sensor devices connected to the system and returns the mapping relationship between their serial numbers and corresponding camera IDs, facilitating the subsequent creation of sensor instances via serial numbers.
- Returns:
A dictionary containing all connected sensors, where the keys are sensor serial numbers (
serial_number) and the values are corresponding camera IDs (camera_id)- Return type:
dict