Items with no label
公告
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 討論

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

KChow4
初學者
4,275 檢視

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 積分
1 回應
MartyG
榮譽貢獻者 III
3,121 檢視

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

 

 

回覆