raghavkhanna / caltag Goto Github PK
View Code? Open in Web Editor NEWThis project forked from brada/caltag
Camera CALibration Tags
Home Page: http://www.cs.ubc.ca/labs/imager/tr/2010/Atcheson_VMV2010_CALTag/
License: Other
This project forked from brada/caltag
Camera CALibration Tags
Home Page: http://www.cs.ubc.ca/labs/imager/tr/2010/Atcheson_VMV2010_CALTag/
License: Other
CALTag instructions for use: ---------------------------- 0) Requirements: - MATLAB (tested with R2010a) with Image Processing toolbox. It has been reported broken in MATLAB 2014. You can work around the problem by copying the kmeans function from an earlier version of MATLAB, or uncommenting the "MATLAB 2014" lines in caltag.m - MATLAB Optimization toolbox (lsqnonlin) - MATLAB Statistics and Machine Learning toolbox (means) - Python (tested with 2.6) 1) Create pattern and datafile: Run the generate_pattern.py script and convert the ps file to pdf, e.g.: $ cd GeneratePattern $ chmod u+x generate_pattern $ ./generate_pattern -r 8 -c 4 This will produce an output.ps and output.mat file Convert the ps to pdf for easier printing: $ ps2pdf output.ps output.pdf Print the output.pdf file, mount it to a flat surface and photograph it. 2) Run CALTag: Download the photos and start Matlab. Please note that Matlab 2010a or later is required, since parts of the code make use of the new "[~,x] = func()" syntax to ignore some return values. These can be easily replaced with junk variables if you wish to run on an older version of Matlab. The one other point of incompatibility is the use of the "bwconncomp" and "regionprops" functions, which have altered their semantics in recent versions for reduced memory use. See <a href="http://blogs.mathworks.com/steve/2009/07/06/a-new-look-for-connected-component-labeling-in-r2009a/">here</a> for details. Add CALTag to your path > addpath( '/path/to/caltag' ) Load an image and run CALTag >> I = imread( 'IMG001.jpg' ); >> [wPt,iPt] = caltag( I, '/path/to/caltag/GeneratePattern/output.mat', false ); The second argument is the location of the datafile produced by generate_pattern. It contains all the parameters of your particular pattern. The third argument may be set to true if you want to see debugging information. This will return two matrices (or nulls, if no pattern is detected). World points are in wPt, image-space points are in iPt. These are both Nx2 matrices where each row corresponds to a [y,x] coordinate. Note that the image points are in Matlab-style 1-based [row,col] coordinates. There is a flag in the code you can switch if you prefer C-style 0-based [x,y] coordinates, or else you can just modify the return value. 3) Contact: This code is supported on a best-effort basis. I have no plans to make any further modifications. Email: atcheson [NOSPAM] [at] cs [dot] ubc [dot] ca
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.