Comments (5)
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:
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.
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.
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.
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.
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)
- Can I use this in Unity HOT 1
- How can I get world space ray from pv frame ? HOT 2
- TOF short_throw recording FPS not stable
- new Mat() access denied
- Access to raw eye tracking data
- HoloLensForCV.SensorFrameStreamer.Enable() - unauthorised access exception HOT 2
- FrameToOrigin
- OpenCV lib corrupt HOT 1
- Errors while building the project
- wrong url in readme HOT 1
- Can we use this for making an app for commercial use?
- Access to active brightness buffer (clean IR reading)?
- Cannot build ArUco Marker Tracker
- Applying mask on live stream
- nullptr_ service socket when trying to access Short Throw ToF Reflectivity sensor
- This repo is missing important files HOT 2
- Real world pixel size/spacing
- How to unproject a 2D point in an captured image back to its accurate location in the physical world?
- cant catch the Exception in the Concurrency Runtime HOT 1
- Can I use the Hololense2 to capture the depth RGB images? for the purpose of deep learning training.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hololensforcv.