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

Help wanted for AR Foundation integration #10

Closed
elvis75k opened this issue Nov 5, 2021 · 7 comments
Closed

Help wanted for AR Foundation integration #10

elvis75k opened this issue Nov 5, 2021 · 7 comments
Assignees
Labels
question Further information is requested

Comments

@elvis75k
Copy link

elvis75k commented Nov 5, 2021

I would like a to integrate this amazing tool into AR Foundation.
How can I use the AR camera stream to track the tags; being able to trace images in a unity scene instead of a webcam would probably also be a useful advance/hint,

thank you.

@keijiro keijiro self-assigned this Nov 5, 2021
@keijiro keijiro added the question Further information is requested label Nov 5, 2021
@keijiro
Copy link
Owner

keijiro commented Nov 5, 2021

The tag detector processes an image, not a webcam. The webcam support is implemented in the sample program.

So, I think you can do it in the current implementation.

@keijiro
Copy link
Owner

keijiro commented Nov 5, 2021

I'm closing this issue now. Please feel free to reopen it for further problems.

@keijiro keijiro closed this as completed Nov 5, 2021
@elvis75k
Copy link
Author

elvis75k commented Nov 5, 2021

I'm not so smart yet and i have not found any solution to modify and take advantage of the webcam sample to work with an image or a render texture instead. I tried to set up Render Texture or a Texture2D instead of the WebCamTexture but this doesn't make sense. Could you help me to implement this?

thank you.

@elvis75k
Copy link
Author

elvis75k commented Nov 5, 2021

I have managed to crash unity instantly with this :) PictureTest.cs

@keijiro
Copy link
Owner

keijiro commented Nov 6, 2021

Is the dimensions of sourceImage correct? My wild guess is that the texture importer changed the dimensions to a power-of-two square.

@elvis75k
Copy link
Author

elvis75k commented Nov 6, 2021

After changing the read/write parameter = true and set the Non-Power of 2 to none in the sourceImage importer it just works!

Thank you.

Screenshot 2021-11-06 at 11 22 22

@elvis75k
Copy link
Author

elvis75k commented Nov 6, 2021

Thanks Keijiro for pointing me in the right direction, i have learned a lot...

Screen.Recording.2021-11-06.at.16.11.41.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants