Items with no label
3338 討論

D435 : Non-blocking image capture

MAbdo2
新貢獻者 I
1,717 檢視

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 積分
1 解決方案
MartyG
榮譽貢獻者 III
533 檢視

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.

 

在原始文章中檢視解決方案

1 回應
MartyG
榮譽貢獻者 III
534 檢視

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.

 

回覆