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

[Bug]ARTrackedImage trackedImagesChanged value error #VisionPro #1179

Open
linlifeng1995 opened this issue May 10, 2024 · 3 comments
Open

[Bug]ARTrackedImage trackedImagesChanged value error #VisionPro #1179

linlifeng1995 opened this issue May 10, 2024 · 3 comments
Labels
bug A bug in an ARFoundation-related package

Comments

@linlifeng1995
Copy link

linlifeng1995 commented May 10, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
When recognizing images, the update information is wrong. After I recognize a picture, I hold the picture so that it does not appear in the camera, but the picture is still returned in the update.

Expected behavior
Uptate will return information that is consistent with the actual situation, or is there any way to clear the currently recognized pictures, because I found that the information returned in add is always correct.

Actual behavior
`ARTrackedImageManager m_TrackedImageManager;

void OnEnable() => m_TrackedImageManager.trackedImagesChanged += OnChanged;

void OnDisable() => m_TrackedImageManager.trackedImagesChanged -= OnChanged;

void OnChanged(ARTrackedImagesChangedEventArgs eventArgs)
{
foreach (var newImage in eventArgs.added)
{
// Handle added event
}

foreach (var updatedImage in eventArgs.updated)
{
    // Handle updated event
}

foreach (var removedImage in eventArgs.removed)
{
    // Handle removed event
}

}`
I just follow the official example for image recognition. I get the currently captured object in add and update.
Smartphone (please complete the following information):

  • Device: [VisionPro]
  • Unity version
    2022.3.26
  • ARFoundation version
    5.1.0
@linlifeng1995 linlifeng1995 added the bug A bug in an ARFoundation-related package label May 10, 2024
@linlifeng1995
Copy link
Author

Any help is appreciated :)

@esbylan
Copy link

esbylan commented May 11, 2024

我遇到了一样的问题

@camnewnham
Copy link

You could check the trackingState of the image -- does it return TrackingState.Limited instead of TrackingState.Tracking ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in an ARFoundation-related package
Projects
None yet
Development

No branches or pull requests

3 participants