How to specify different models in the object anchor program

EE NTU 96 Reputation points
2022-08-22T16:11:24.127+00:00

I have one question:
I have switched two fan models, how do I specify which entity object(electric fan) is fan 1 or fan 2?

233631-image.png

Azure Object Anchors
Azure Object Anchors
An Azure mixed reality service that automatically aligns and anchors three-dimensional content to objects in the physical world.
16 questions
{count} vote

Accepted answer
  1. Nathan Manis - MSFT 476 Reputation points Microsoft Employee
    2022-08-23T19:06:16.143+00:00

    Thank you for the clarification. At this time, we can get the modelID from the object but name is not exposed directly. The modelID can be retrieved here in the object model:
    https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.objectanchors.objectinstance.modelid?view=object-anchors-dotnet

    From there, one could do a client side mapping to some name you want to associate.

    Thanks,
    Nathan Manis


1 additional answer

Sort by: Most helpful
  1. Nathan Manis - MSFT 476 Reputation points Microsoft Employee
    2022-08-23T17:51:46.167+00:00

    Hi @EE NTU ,

    From reviewing the above model id's in the image, they appear to be different models uploaded but same geometry being found.

    Colors are not considered if thinking about doing that to detect difference from docs here. https://learn.microsoft.com/en-us/azure/object-anchors/faq

       Q: Can you differentiate between the same model in different colors?  
      
       A: Since our algorithms are geometry based, different colors of the same model won't behave differently during detection.  
    

    Offhand, AOA does support detecting the same model multiple times too if looking to just have one model uploaded. https://learn.microsoft.com/en-us/azure/object-anchors/faq

          Q: Can Object Anchors detect multiple instances of the same object model?  
          
          A: Yes, we support detecting up to three instances of the same model type to ensure the best user experience, but we don't enforce a limit. You can detect one object instance per search area. By calling ObjectQuery.SearchAreas.Add, you can add more search areas to a query to detect more instances. You can call ObjectObserver.DetectAsync with multiple queries to detect multiple models.  
    

    Can you advise more what you are looking for in the samples?

    Thanks,
    Nathan