android - Adding ARToolkit Marker tracking into Tango -
i have been trying integrate artoolkit marker object tracking tango application.
so far have created build tango app can access , use artoolkit native library or artoolkit unity wrappers. however, both seem require exclusive access camera in default configurations.
how feed same android video feed both libraries?
- could create dummy camera device doubles out feed?
- could take tango feed normal, , resend artoolkit special videoconf
[edit]
artoolkit uses older camera1 api, takes onpreviewframe() callback , passes byte[] data it's own native library call, actual work.
along lines of second bullet point, tango provide copy of each frames raw camera data using itangovideooverlay .
(artoolkits ndk functionality seems expect nv21, can accept other formats)
if data extractable tango, believe artoolkit ndk functionality can used without owning camera.
i afraid neither of method mentioned work. tango has exclusive access camera , believe artoolkit occupies camera exclusively through camera2 api. current tangosdk, think walk-around use artoolkit camera rendering, , tango pose tracking.
however, expose problem time-stamping, tango , artoolkit has different timestamps. solution take timestamp offset @ beginning when application starts, , apply offset when querying pose tango based on timestamp.
Comments
Post a Comment