Software Archive
Read-only legacy content
17060 Discussions

How to use ColorStream in Processing

sichi2
Beginner
1,016 Views

Hi,

I want to use colormode in Processing.

I renewed the 72 - 80 line of the sample cord in $(RSSDK_DIR)/framework/Processing/FF_HandTracking.

    PXCMCapture.Sample sample = senseMgr.QueryHandSample();
    if (sample != null) {
      PXCMImage.ImageData cData = new PXCMImage.ImageData();
      sample.color.AcquireAccess(PXCMImage.Access.ACCESS_READ, PXCMImage.PixelFormat.PIXEL_FORMAT_RGB24, cData);
      imgColor = cData.ToPImage(0, imgColor); 
      sample.color.ReleaseAccess(cData);
      image(imgColor, 0, 0);
    }

However,Processing can`t find "color" and "Color" written in the following site

https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/sample_pxccapture.html

Can Processing  never use ColorStream ?

0 Kudos
2 Replies
Xusheng_L_Intel
Employee
1,016 Views

You can find such usage @C:\Program Files (x86)\Intel\RSSDK\framework\Java\DF_CameraViewer. Thanks!

0 Kudos
sichi2
Beginner
1,016 Views

thanks, I`ll try it.

0 Kudos
Reply