Items with no label
3335 Discussions

Any function or way, via code, to get the serial number of an Intel RealSense camera?

KChow4
Beginner
3,068 Views

Hi, 

I'm using C++ with Visual Studio using the RealSense D415 camera and I am wondering:

 

Is there any code function (or any way via code) to get the device's serial number?

 

Thanks in advance!

0 Kudos
1 Reply
MartyG
Honored Contributor III
1,914 Views

There is a console application called rs-enumerate-devices that can be built from source code and can display serial numbers.

 

https://github.com/IntelRealSense/librealsense/tree/master/tools/enumerate-devices

 

Also, here is a link to a tutorial for creating a script to get the camera's information, including serial number. The instruction for getting the serial number is get_info(RS2_CAMERA_INFO_SERIAL_NUMBER)

 

https://www.codeproject.com/Articles/1233892/FluentRealSense-The-First-Steps-to-a-Simpler-RealS

 

 

0 Kudos
Reply