Giter Club home page Giter Club logo

Comments (5)

felixvh avatar felixvh commented on May 22, 2024 1

Thanks!
Additionally, I got an answer from Windows. I'll post it, in case somebody has the same issue. They say:

"
You are correct, not all media properties are available for the research mode streams.

Here’s an example how to get from image to world coordinates:

https://github.com/Microsoft/HoloLensForCV/blob/feature/ArUcoMarkers/Samples/ArUcoMarkerTracker/AppMain.cpp

Most of relevant code is in DetectArUcoMarkers and TrackArUcoMarkers functions.

Please note that this sample is still work in progress. There is also some similar code in the Recorder tool.
"

from hololensforcv.

FracturedShader avatar FracturedShader commented on May 22, 2024

The depth cameras do not fully implement the specifications that were created largely for the Kinect (which is ridiculous), instead they store things under undocumented GUIDs in the properties object. You can see them doing this in the FrameArrived function of MediaFrameReaderContext.cpp. Line 226 (at the time of writing) specifically handles the projection transform. Keep in mind that this is not the projection matrix from screen space to camera space, but something else entirely. To get from the flat camera image out into the world you actually need the unproject map, which is much more annoying of a process since you have to cast a property to a custom made "CameraIntrinsics" object that is not the same as the CameraIntrinsics in the Microsoft documentation. They do this around line 268 (at time of writing) of the same file. They then use the MapImagePointToCameraUnitPlane function to manually generate an unproject map.

from hololensforcv.

doughtmw avatar doughtmw commented on May 22, 2024

I'm not able to find the OpenCV.HoloLens.341.0.0 Nuget package to run the feature/ArUcoMarkers branch. Has it been made publicly available?

Edit: I tried (and failed) to build UWP OpenCV binaries on my own, but found a Nuget package that worked for me to run the samples for now.

from hololensforcv.

felixvh avatar felixvh commented on May 22, 2024

The package is acutally in the github folder (see https://github.com/Microsoft/HoloLensForCV/tree/master/packages/OpenCV.HoloLens.341.0.0 )

After downloading copy it to the actual folder

from hololensforcv.

SongYx1995 avatar SongYx1995 commented on May 22, 2024

Still have no idea how to get the depth sensor's intrinsics.How did you get the parameters such as focal length of depth sensor ?Help PLS!!

from hololensforcv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.