How to produce() for FrameDisplayStage
Hi,
I'd like to visualise images outputted by a custom stage. To do that, I'm inheriting from BaseStage and now need to call produce(xxx) appropriately. I saw that the class FrameDisplayStage tries to cast the input to FrameData in the function set_consuming_callback (line 77 of frame_display_stage.h) and a FrameData is a std::pair<timestamp, FramePtr> (and a FramePtr is a SharedObjectPool<cv::Mat>::ptr_type). But calling produce(std::pair<double, cv::Mat>) is not working. What is the correct way then, to produce data for a FrameDisplayStage?
What might be helpful would be to share the implementation for frame_generation_stage.cpp, since this should contain all the details (perhaps as part of the tutorial).
Many thanks!
Information
In this Community Forum, you can discuss products, technology and applications. Only registred users can post but everyone can read. To ask a private question, enter a support ticket in My Area
https://support.prophesee.ai/portal/en/newticket