Calibrate works?
This commit is contained in:
parent
26e34f7671
commit
cc711c6343
1104 changed files with 636510 additions and 75 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import gab.opencv.*;
|
||||
|
||||
PImage src;
|
||||
ArrayList<PVector> cornerPoints;
|
||||
OpenCV opencv;
|
||||
|
||||
void setup() {
|
||||
src = loadImage("checkerboard.jpg");
|
||||
src.resize(500, 0);
|
||||
size(src.width, src.height);
|
||||
|
||||
opencv = new OpenCV(this, src);
|
||||
opencv.gray();
|
||||
|
||||
cornerPoints = opencv.findChessboardCorners(9,6);
|
||||
}
|
||||
|
||||
void draw() {
|
||||
image( opencv.getOutput(), 0, 0);
|
||||
fill(255,0,0);
|
||||
noStroke();
|
||||
for(PVector p : cornerPoints){
|
||||
ellipse(p.x, p.y, 5, 5);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 115 KiB |
Loading…
Add table
Add a link
Reference in a new issue