Search code examples
google-cardboard

Cardboard QR Decode


tl;dr: Is there a way to get Cardboard's calibration data without parsing through Google's protocol buffers?
I need to access Cardboard viewer's lens data, coefficients etc. to do proper undistortion calculation. I contacted two Cardboard viewer manufactures and both had no idea what the values are and pointed me to contact google, since they used googles calibration. As discribed here you can decode the QR code by c++ parsing it through Google's protocol buffers, but I am currently not in a c++ dev enviroment and crunching through the doc to get the manufacturers calibration is very time consuming for just a bunch of coefficients. Is there a better way?


Solution

  • Someone build a Webpage (https://lisa-wolfgang.github.io/vrEmbed/tools/google_profile_decode.html) that decodes the Google Cardboard Links into JSON using googles javascript protocol buffer library. (If you use the short URL, leave out the http://)

    I used it to get out the data for a project.