VisionLib Unity Tutorials - Camera Calibration (1/2) on Mac/PC

VisionLib Unity Tutorials – Camera Calibration (1/2) on Mac/PC

Views:438|Rating:5.00|View Time:4:56Minutes|Likes:5|Dislikes:0

camera calibration is an essential topic for mental reality compare the following cases although tracking works fine in both cases not the miss fitting augmentation on the left caused by improper calibration vision lip notifies when a camera calibration is missing vision abuses integrated device calibration of the existing and comes with the database for major popular devices for sparsely used devices or custom hardware you can use the Unity SDK to do a calibration on your own in part one of the tutorial we will look at camera calibration on Mac and PC let's start go to visit comm log in and download the camera calibration pattern from resources at the customer area printed at 100% scale and put it next to your computer open unity 3d and import the visually plugin into your project open the guided camera calibration example from the scenes folder enter play mode and follow the wizard it will guide you for the process if the britta'd calibration written next to you and your camera attached and ready select it from the list then proceed now take your camera and move it around and point the camera at the print of Quetta move the camera in such a way to match the color corners you see in the editor the pattern is used to calculate and measure what is called intrinsic softer camera lens once done Visnjic will process the data and create a calibration check the quality if it's fine go ahead and save it a JSON file is now stored on your users home directory that's the place where you will find the JSON file with play mode and let's have a look at that file open your file browser go to that folder and open the file in a text editor the results of the calibration are stored inside the file calibration JSON vision it will automatically try to acquire install camera details like ID and camera name it possible fine we have calibrated our camera now if you keep path and filename we can quickly use it during development switch from the camera calibration to your projects in and select the vision that camera prefab in the hierarchy in the calibration data field set path and file name of our calibration as long as we work locally in our computer we can keep the users home directory use the scheme to address it if you calibrate more than one camera with nipple manage and collect all information in one file and add the data to the JSON file automatically you can also store calibration separately by using particular names for the JSON file switch from the camera collaboration to your project scene and select the region of camera in the hierarchy in the calibration data field set the custom file name and path again use the scheme to address your home directory and add your Jason's custom file name to it enter play mode and test the scene either way you work and address the files we don't get a missing calibration notice now now if we want to deploy our project we need to copy the calibration to it first switch to the original folder and set streaming assets and drag the JSON file into it in the hierarchy select the vision aid camera prefab and update the path and the calibration data feel again use a scheme to address it but it's a different one than before it points to the folder where we dragged the JSON file which is where we keep the config files for which nib to enter play mode and test the scene once again if we still don't get the canoe bration notice we are set and prepared for deployment big words so we are done with part 1

Leave a Reply

Your email address will not be published. Required fields are marked *