Project tango Never called the OnXYZijAvailable Callback

倾然丶 夕夏残阳落幕 提交于 2019-12-12 01:28:50

问题


My Project tango has some problems.

1st. The OnXYZijAvailable callback is never called. So sample code(point cloud) from github is not worked. (Point count always zero)

2nd. The back camera(RGB-IR) is seems always gray scale. How can I see color mode?

I guess back camera is broken or something wrong. Right??


回答1:


Try the following:

  1. restart the device. Google tango core is still very unstable.
  2. make sure that the samples you're working with are aligned to the tango core version(check it on the samples your using Tags tab on github).
  3. make sure that when you're configure the Tango object you're adding the depth perception like this:

    config.putBoolean(TangoConfig.KEY_BOOLEAN_DEPTH, true); // for getting point cloud
    mTango.connect(config);
    
  4. about your grey-scale camera(which is very strange behaviour). Make sure you're adding color camera configuration like this:

    config.putBoolean(TangoConfig.KEY_BOOLEAN_COLORCAMERA, true);
    
  5. make sure to add the dependency on the tango core also in the Manifest inside the application node(I totally missed it):

     <uses-library
        android:name="com.projecttango.libtango_device"
        android:required="true" />
    


来源:https://stackoverflow.com/questions/31981756/project-tango-never-called-the-onxyzijavailable-callback

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!