qian256 / hololenscamcalib Goto Github PK
View Code? Open in Web Editor NEWPrograms to calibrate HoloLens front-facing camera, supporting HL1 and HL2
License: GNU Lesser General Public License v3.0
Programs to calibrate HoloLens front-facing camera, supporting HL1 and HL2
License: GNU Lesser General Public License v3.0
I don’t know why I pressed the button dozens of times and I took a picture
I have dealt with this problem now, but the image taken is mirrored
Hi @qian256!
In the README file, it shows that "The intrinsics of HoloLens front-facing camera is available with Windows UWP API".
I'm new to the development of HoloLens and can't find the the intrinsics of HoloLens front-facing camera, can you leave a link or something to help me find the resource?
Thank you very much!!!
Hi,
could you provide some additional information on how to setup this project?
What versions of python/opencv/json are you using?
Is it necessary that the raw pictures are 896x504?
Thanks in advance.
Hi,
I was now running your script on my Ubuntu 16.04 and get the following error
~/HoloLensCamCalib$ python calibrate.py --square_size 0.03 --pattern_width 7 --pattern_height 5 data1/raw/*.jpg
data1/raw/20170614_064153_HoloLens.jpg
processing data1/raw/20170614_064153_HoloLens.jpg... ok
RMS: 0.248947908729
camera matrix:
[[ 624.6142862 0. 683.96168577]
[ 0. 615.58413133 381.0986102 ]
[ 0. 0. 1. ]]
distortion coefficients: [ 0.01878055 -0.06607193 0.0011638 0.00460311 0. ]
Undistorted image written to: ./output/20170614_064153_HoloLens_chess.png_undistorted.png
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
Do you know why this could be happening?
I have installed OpenCV 3.2.0 (following these instructions) and running with Python 3.5. I can see that the raw image is generated in the output folder, but there is an error with the undistorted image.
Thanks for the help!
Thanks for the great contributions for Hololens! I was now trying to use this project with my Hololens and was trying to find the "far" pattern you used online but couldnt manage. I found the "near" one though, in the artoolkit repo.
Thanks a lot for the help!
I compiled and ran the scripts/ARToolkitCalibrationFileGenerator.cpp. It crashes on this call
arParamObserv2Ideal(dist_factor, ox, oy, &ix, &iy, dist_function_version);
The problem in my installation is:
#define ARDOUBLE_IS_FLOAT
I am linking against the libs in the installed version for Windows (C:\Program Files (x86)\ARToolkit5\lib) and it crashes if you keep that define above.
So simply undefine that and change the code where it uses floats to ARdouble and it runs.
Hey,
Some really great info here! You would not happen to have the camera calibration files for 720p resolution of the HoloLens Webcam aswell?
Thanks,
Chris
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.