Giter Site home page Giter Site logo

qian256 / hololenscamcalib Goto Github PK

View Code? Open in Web Editor NEW
50.0 1.0 21.0 107.18 MB

Programs to calibrate HoloLens front-facing camera, supporting HL1 and HL2

License: GNU Lesser General Public License v3.0

Python 6.07% C++ 6.51% C 72.66% Objective-C 4.38% C# 10.38%
hololens camera-calibration

hololenscamcalib's People

Contributors

qian256 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hololenscamcalib's Issues

Question about "The intrinsics of HoloLens front-facing camera"

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!!!

Setup details

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.

Output error when running script

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!

Calibration patterns

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!

CalibrationFileGenerator Crashes if you try to run it in Windows with installed ARToolkit5

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.

Calibration files for 1280x720

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

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.