SDK 2.0
Start building your own depth applications.
// Create a Pipeline - this serves as a top-level API for streaming and processing frames
rs2::pipeline p;
// Configure and start the pipeline
p.start();
while (true)
{
// Block program until frames arrive
rs2::frameset frames = p.wait_for_frames();
// Try to get a frame of a depth image
rs2::depth_frame depth = frames.get_depth_frame();
// Get the depth frame's dimensions
float width = depth.get_width();
float height = depth.get_height();
// Query the distance from the camera to the object in the center of the image
float dist_to_center = depth.get_distance(width / 2, height / 2);
// Print the distance
std::cout << "The camera is facing an object " << dist_to_center << " meters away \r";
}
// Create face authenticator instance and connect to the device on COM9
RealSenseID::FaceAuthenticator auth {&sig_clbk};
auto connect_status = authenticator.Connect({RealSenseID::SerialType::USB, "COM9"});
// RealSenseID::SerialType::UART can be used in case UART I/F is required
// Enroll a user
const char* user_id = "John";
my_enroll_clbk enroll_clbk;
auto enroll_status = authenticator.Enroll(enroll_clbk, user_id);
// Authenticate a user
my_auth_clbk auth_clbk;
auto auth_status = authenticator.Authenticate(auth_clbk);
// Remove the user from device
bool success = authenticator.RemoveUser(user_id);
// Disconnect from the device
authenticator.Disconnect();
Firmware
Updates
Latest release 5.13.0.50
All RealSense™ camera or module firmware releases are stable releases to be used in any stage of end-user product development and production.
Major release 1.5.0.0
A production-ready firmware that is recommended and supported for production builds integrating RealSense lidar cameras.
Minor release 1.5.8.1
Development firmware releases that include new features and resolving issues between the bi-annual major releases.
Major release 2.0.10.45
A production-ready firmware that is recommended and supported for production builds integrating RealSense ID solution.