Items with no label
3338 Discussões

D435 : Non-blocking image capture

MAbdo2
Novo colaborador I
1.714 Visualizações

Does the SDK support a (native) non-blocking API for capturing images? Basically, I want to be able to call the (non-blocking) API to start the capture process, and return the control to the calling thread. Once a new image is captured and available to be read, I would like the SDK to automatically invoke a callback.

 

Thanks,

 

MoA

0 Kudos
1 Solução
MartyG
Colaborador honorário III
530 Visualizações

I would recommend taking a look at the 'Software Support Model' section of the RealSense SDK 2,0 documentation.

 

https://github.com/IntelRealSense/librealsense/blob/master/doc/rs400_support.md

 

The documentation describes a low-latency alternative to blocking.

 

// Configure direct callback for new frames:

dev.start([](rs2::frame frame){

  auto pixels = frame.get_data(); // pointer to frame data

});

// The application will be notified as soon as new frames become available.

 

Ver solução na publicação original

1 Responder
MartyG
Colaborador honorário III
531 Visualizações

I would recommend taking a look at the 'Software Support Model' section of the RealSense SDK 2,0 documentation.

 

https://github.com/IntelRealSense/librealsense/blob/master/doc/rs400_support.md

 

The documentation describes a low-latency alternative to blocking.

 

// Configure direct callback for new frames:

dev.start([](rs2::frame frame){

  auto pixels = frame.get_data(); // pointer to frame data

});

// The application will be notified as soon as new frames become available.

 

Responder