Items with no label
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
3338 Discussions

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

KChow4
Beginner
4,270 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
3,116 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