Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing new WebARKitLib Trackers #1

Open
kalwalt opened this issue Nov 23, 2020 · 4 comments
Open

Testing new WebARKitLib Trackers #1

kalwalt opened this issue Nov 23, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@kalwalt
Copy link
Member

kalwalt commented Nov 23, 2020

@ThorstenBux @EdwardLu2018 i'm testing a new class that i created inside WebARKitLib see here in my testing branch feature-webarkittrackers . You can see the WebARKitOrbTracker.cpp that implement the necessary functions for initializing and to track.
WebARKitOrbTracker is a class, but i think we should implement a base class that may serve as base class for all future trackers. I also created a WebARKitUtils.h file to store functions that can be shared by trackers. For example we could store the im_gray(uchar data[], size_t cols, size_t rows) and maybe other functions.
There is also an example, but it only provide a test to verify the setup. It is just a beginning, a lot of work must be done! 😄
At least i can say the project may be built without errors, from emscripten....

@kalwalt kalwalt added the enhancement New feature or request label Nov 23, 2020
@ThorstenBux
Copy link
Member

ThorstenBux commented Nov 23, 2020 via email

@kalwalt
Copy link
Member Author

kalwalt commented Nov 23, 2020

Hi Walter,

Thank you that is great work.

In artoolkitX we have something like that. Have a look here https://github.com/artoolkitx/artoolkitx/blob/master/Source/ARX/include/ARX/ARTracker.h the idea was to have it as interface which all other Trackers like Tracker2D are implementing.

In our case that coulde be WebARKitOrbTracker and the interface we can name WebARKitTracker.h?

Thank you @ThorstenBux ! yes i think that class is what we need. I will implement it.

@kalwalt kalwalt self-assigned this Nov 23, 2020
@kalwalt
Copy link
Member Author

kalwalt commented Nov 24, 2020

i implemented initTracking() https://github.com/kalwalt/webarkit-testing/blob/7034e6d9e05cefc3b98010bde4ecd707fdc68f40/emscripten/WebARKitJS.cpp#L12-L16

setting the allow_raw_pointers() directive:
https://github.com/kalwalt/webarkit-testing/blob/7034e6d9e05cefc3b98010bde4ecd707fdc68f40/emscripten/bindings.cpp#L7

the code compille but won't work... i think i have overcomplicated the code, better to load the image inside initTracking with the Jpeg lib and pass the raw data internally, as is implemented in ArtoolkitX.js and jsartoolkit5 (See ltrackables oaders)

@kalwalt
Copy link
Member Author

kalwalt commented Dec 2, 2020

@ThorstenBux i did some nice progresses, i hope that in the next days i can present a working example. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants