{"id":686,"date":"2015-12-07T21:57:37","date_gmt":"2015-12-08T02:57:37","guid":{"rendered":"http:\/\/pascalnet.net\/blog\/?p=686"},"modified":"2016-02-03T13:37:28","modified_gmt":"2016-02-03T18:37:28","slug":"extracting-google-cardboard-camera-pictures-and-audio-files","status":"publish","type":"post","link":"http:\/\/pascalnet.net\/blog\/extracting-google-cardboard-camera-pictures-and-audio-files\/","title":{"rendered":"Extracting Google Cardboard Camera Picture and Audio File"},"content":{"rendered":"<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;t=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File&#038;s=100&#038;p&#091;url&#093;=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;p&#091;images&#093;&#091;0&#093;=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-content%2Fuploads%2F2015%2F12%2FIMG_9095-1-2.jpg&#038;p&#091;title&#093;=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;text=Hey%20check%20this%20out%20on%20http%3A%2F%2Fpascalnet.net\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;title=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;media=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-content%2Fuploads%2F2015%2F12%2FIMG_9095-1-2.jpg&#038;description=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686&#038;title=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-tumblr nolightbox\" data-provider=\"tumblr\" target=\"_blank\" rel=\"nofollow\" title=\"Share on tumblr\" href=\"https:\/\/tumblr.com\/share?s=&#038;v=3&#038;t=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File&#038;u=http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img alt=\"tumblr\" title=\"Share on tumblr\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/tumblr.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Extracting%20Google%20Cardboard%20Camera%20Picture%20and%20Audio%20File&#038;body=Hey%20check%20this%20out%20on%20http%3A%2F%2Fpascalnet.net:%20http%3A%2F%2Fpascalnet.net%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F686\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a><p>Last week Google launched a new app named\u00a0<a title=\"Cardboard Camera\" href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.google.vr.cyclops&amp;hl=en\" target=\"_blank\">Cardboard Camera<\/a>.<br \/>\nThe app\u00a0enables you to scan a 360 degrees panoramic image of your surroundings and then experience it in 3D with\u00a0any Google Cardboard compatible headset.<br \/>\nIt even records an audio clip while you&#8217;re taking the panoramic shot so make sure you turn the sound on when you admire the result.<\/p>\n<p>The generated file is a .vr.jpg, when opened with a text editor you can clearly see that the file is made up of Base64 encoded files.<br \/>\nData corresponding to the right eye generated image and a GAudio:Data representing the sound recorded.<br \/>\nIn OS X, In order to extract all the information from the .vr.jpg file, you will need Python,\u00a0<a href=\"https:\/\/github.com\/python-xmp-toolkit\/python-xmp-toolkit\" target=\"_blank\">Python XMP Toolkit<\/a>, <a href=\"http:\/\/brew.sh\/\" target=\"_blank\">Homebrew <\/a>and\u00a0Exempi.<br \/>\nTo install Python XMP Toolkit download it <a href=\"https:\/\/github.com\/python-xmp-toolkit\/python-xmp-toolkit\/archive\/master.zip\" target=\"_blank\">here<\/a>.<br \/>\nIn your terminal, type:<br \/>\n<strong>user$ sudo python setup.py install<br \/>\n<\/strong>To install Homebrew just use curl to download and install the script in the terminal:<br \/>\n<strong>user$ ruby -e &#8220;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)<\/strong>&#8221;<br \/>\nOnce this is done you will need to install Exempi using Homebrew:<br \/>\n<strong>user$ brew install exempi<\/strong><\/p>\n<p>Finally you can use this Python script to extract all the necessary files:<br \/>\n<a href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/cardcamextract.zip\"><strong>cardcamextract.zip<\/strong><\/a><br \/>\nTo run the script simply unzip the file and type in your terminal:<br \/>\n<strong>.\/cardcamextract.py \u00a0IMG_FILE.vr.jpg<\/strong><\/p>\n<p><div id=\"attachment_689\" style=\"width: 630px\" class=\"wp-caption alignleft\"><a  href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_.jpg\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img aria-describedby=\"caption-attachment-689\" loading=\"lazy\" class=\"wp-image-689 size-large\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_-1024x198.jpg\" alt=\"IMG_20151205_151548.vr_\" width=\"620\" height=\"120\" \/><\/a><p id=\"caption-attachment-689\" class=\"wp-caption-text\"><strong>Original Image (Left Eye)<\/strong><\/p><\/div><br \/>\n&nbsp;<br \/>\n<div id=\"attachment_689\" style=\"width: 630px\" class=\"wp-caption alignleft\"><a  href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_righteye.jpg\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img aria-describedby=\"caption-attachment-689\" loading=\"lazy\" class=\"wp-image-689 size-large\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_righteye-1024x198.jpg\" alt=\"IMG_20151205_151548.vr_righteye\" width=\"620\" height=\"120\" srcset=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_righteye-1024x198.jpg 1024w, http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_righteye-300x58.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><p id=\"caption-attachment-689\" class=\"wp-caption-text\"><strong>Transformed Image (Right Eye)<\/strong><\/p><\/div><\/p>\n<p><span style=\"text-decoration: underline;\"><strong><a href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_audio.mp4\" target=\"_blank\">Audio File<\/a><\/strong><\/span><\/p>\n<div id=\"attachment_690\" style=\"width: 630px\" class=\"wp-caption alignleft\"><a  href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_9095-1-2.jpg\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img aria-describedby=\"caption-attachment-690\" loading=\"lazy\" class=\"wp-image-690 size-large\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_9095-1-2-1024x683.jpg\" alt=\"IMG_9095-1-2\" width=\"620\" height=\"414\" srcset=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_9095-1-2.jpg 1024w, http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_9095-1-2-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><p id=\"caption-attachment-690\" class=\"wp-caption-text\"><strong>Images as seen on the phone using the Cardboard Camera app<\/strong><\/p><\/div>\n<p><a href=\"%20http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_20151205_151548.vr_audio.mp4\" target=\"_blank\"><br \/>\n<\/a><\/p>\n<div id=\"attachment_691\" style=\"width: 630px\" class=\"wp-caption alignleft\"><a  href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_8680-1.jpg\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img aria-describedby=\"caption-attachment-691\" loading=\"lazy\" class=\"wp-image-691 size-large\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_8680-1-1024x683.jpg\" alt=\"IMG_8680-1\" width=\"620\" height=\"414\" srcset=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_8680-1.jpg 1024w, http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/IMG_8680-1-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><p id=\"caption-attachment-691\" class=\"wp-caption-text\"><strong>Trying Out the Headset<\/strong><\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_693\" style=\"width: 630px\" class=\"wp-caption alignleft\"><a  href=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/Screenshot_2015-12-05-16-04-43.png\" data-rel=\"lightbox-gallery-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img aria-describedby=\"caption-attachment-693\" loading=\"lazy\" class=\"wp-image-693 size-large\" src=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/Screenshot_2015-12-05-16-04-43-1024x576.png\" alt=\"Screenshot_2015-12-05-16-04-43\" width=\"620\" height=\"349\" srcset=\"http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/Screenshot_2015-12-05-16-04-43-1024x576.png 1024w, http:\/\/pascalnet.net\/blog\/wp-content\/uploads\/2015\/12\/Screenshot_2015-12-05-16-04-43-300x169.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><p id=\"caption-attachment-693\" class=\"wp-caption-text\"><strong>Screenshot from the Cardboard Camera application (cross your eyes and bring the image together to see it\u00a03D)<\/strong><\/p><\/div>\n<p><iframe loading=\"lazy\" title=\"Cardboard Camera on LG G4\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/oXsp6OkJkEY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week Google launched a new app named\u00a0Cardboard Camera. The app\u00a0enables you to scan a 360 degrees panoramic image of your surroundings and then experience it in 3D with\u00a0any Google Cardboard compatible headset. It even records an audio clip while you&#8217;re taking the panoramic shot so make sure you turn the sound on when you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":690,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[54,51,60],"tags":[62,64,63,65,61],"_links":{"self":[{"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/posts\/686"}],"collection":[{"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/comments?post=686"}],"version-history":[{"count":18,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":713,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/posts\/686\/revisions\/713"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/media\/690"}],"wp:attachment":[{"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/media?parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/categories?post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pascalnet.net\/blog\/wp-json\/wp\/v2\/tags?post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}