Hello everyone.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Options
Locatable Camera
Hi all,
I was wondering if anyone with some more OpenCV experience could assist me with something? I'm working on a way to get the location of an IR led in Unity World space, and I'm struggling with the camera transforms and LED identification.
Does anyone know more about locatable camera (https://developer.microsoft.com/en-us/windows/holographic/locatable_camera) or OpenCV?
Any help greatly appreciated!
-Andrew
0
Best Answer
-
OptionsLeweyGeselowitz mod
You can use the PhotoCapture Unity API to take photos ( https://developer.microsoft.com/en-us/windows/holographic/locatable_camera_in_unity ) and also get the CameraToWorld and CameraProjection matrices for the given photo. The steps for IR markers would probably be:
- Take locatable photo
- Use OpenCV to find the marker locations in pixel space
- Unproject that pixel location into a world-space ray
- Get the user to move a bit then repeat
- Find the intersection of the two rays
5
Answers
You can use the PhotoCapture Unity API to take photos ( https://developer.microsoft.com/en-us/windows/holographic/locatable_camera_in_unity ) and also get the CameraToWorld and CameraProjection matrices for the given photo. The steps for IR markers would probably be: