Color Image Not Firing On Frame Event

Hello,

I am adapting code from the ColorReaderEvent in the cpp-api folder. Seems pretty straight forward. But the on_frame_ready function is not being called. I am calling initialize() first, starting the color stream and then calling astra_temp_update();
Is there something that I am missing?

The depth stream works properly.
I am able to view the live color stream using an app like Photo Booth

I am on OSX 10.8 and XCode 5.1.1.

Some sample code
astra::Astra::initialize(); streamset = make_unique<astra::StreamSet>(); reader = make_unique<astra::StreamReader>(streamset->create_reader()); reader->stream<astra::ColorStream>().start(); reader.addListener(listener); // listener extends astra::FrameReadyListener and implements on_frame_ready(astra::StreamReader& reader, astra::Frame& frame) override

and then calling astra_temp_update(); every frame.

Based upon your comment that you can view the live color stream in Photo Booth, I am guessing that you have an Astra Pro sensor, which exposes the color stream via UVC (like a standard webcam). This is in contrast to Astra and other OpenNI-like cameras which only expose color via an SDK.

See threads like:

for more on the UVC color camera and differences between Astra and Astra Pro.

Also, some sample code about accessing Astra Pro color:

We will be releasing an update to the Astra SDK that supports the Astra Pro color stream through the same API, but we’re trying to get a release of our skeleton tracking done first. See also: [Sticky] Astra SDK resources & updates

2 Likes

Aha! Thank you for the tips.

Hello, Orbbec friends!
The links Not Working in above description is not working.