Log in or register to post comments

User defined target persistence?

February 11, 2014 - 2:47am #1

Hallo everyone,

 

I am currently looking into user defined targets. I would like to enable some sort of "One-time setup" for my app in which the user chooses a target for himself to use for future tracking.

So I need some level of persistence when dealing with UDT. How is this achieveable? Documentation about this is rather sparse and from studying the sample project and the source code, I tend to believe that there is currently no way of doing that. The whole sample boils down to calling BuildNewTarget () on the "UserDefinedTargetBuildingBehaviour" * , which itself is just a dummy implementation of an inaccessible abstract class. So that's a dead end.

I am a bit at a loss now. As long as there is no easy way to save the camera image and later override the camera stream and recreate the target (basically the smoke and mirrors approach), I can't see how it could be done.

Has anyone successfully implemented such a feature? Does anyone know where to start?

 

*(Why oh why isn't this solved with a 3 lines of OnGUI()? Instead we need to strip out a whole GUI framework just to get to the core functionality of this rather cool feature). I get that you want to provide functional examples that also serve as a fully working implementation, but it would be better for developers if you could just drop in these samples instead of having to cut down all the fat first.

User defined target persistence?

February 26, 2019 - 3:07am #6

Hey, will you able to achieve this? I am also trying to do a similar thing but hasn't found anything yet.

 

User defined target persistence?

February 11, 2014 - 5:03am #5

Will do. Thank you for your input

User defined target persistence?

February 11, 2014 - 4:50am #4

What about the suggested smoke-and-mirrors method? Is there a way to override the video stream with a still image for a couple of frames and then create a UDT?

Not to my knowledge, though if it was it would most likely be platform and device specific, which is something you may wish to investigate.

 

N

User defined target persistence?

February 11, 2014 - 4:45am #3

Thinking about it, it probably comes down to a feature that's already been suggested in the wish list: Creating UDT from arbitrary image files.

 

I mean, it could be nice to save the actual generated target somehow, but allowing developers to save the camera image and recreating a target from it would probably the more general approach (and this would also leave the implementation details to the devolpers, which is nice if you want to talk to a server or something). Saving the current frame should be possible right now, so what's needed is a way to create  a new UDT from it.

 

What about the suggested smoke-and-mirrors method? Is there a way to override the video stream with a still image for a couple of frames and then create a UDT?

User defined target persistence?

February 11, 2014 - 4:05am #2

Sorry, but there is no mechanism of persistence offered at present.

However, feel free to add this to the wish list.

 

N

Log in or register to post comments