首页 > 解决方案 > NAOqi 版本中缺少 getDirectRawImageRemote()。2.8.6.23

问题描述

从NAOqi版本移植后。2.8.5.10 到 2.8.6.23 我发现:

std::string ALVideoDeviceProxy::subscribe()

丢失,这不是那么可疑,因为它已经被弃用并且可以替换为:

std::string ALVideoDeviceProxy::subscribeCamera()

但是也:

AL::ALValue ALVideoDeviceProxy::getDirectRawImageRemote()

丢失,必须替换为:

AL::ALValue ALVideoDeviceProxy::getImageRemote()

它是否正确,是否对性能有任何影响?

标签: nao-robot

解决方案


一些 API 已被删除,文档将相应更新。

是的,您可以使用getImageRemote而不是getDirectRawImageRemote. 如果只有一个订阅者或多个订阅者使用本机支持的相同分辨率和色彩空间 ( kYUV422ColorSpace),则不会影响性能。在这种情况下,没有调整大小或颜色空间转换。


推荐阅读