Skip to content

Commit 4f04360

Browse files
committed
Initial commit
0 parents  commit 4f04360

10 files changed

+302
-0
lines changed

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Shih-Wei Guo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# charuco-pose-estimation
2+
ChArUco pose estimation using OpenCV
3+
4+
1. [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/tony2guo/charuco-pose-estimation/blob/master/charuco-pose-estimation.ipynb)
5+
1. Print out [charuco_board.png](charuco_board.png) and take a picture of it, name the picture [image.png](image.png)
6+
1. Measure the actual square length and marker length of the printout, and change it in the code respectively
7+
1. Create [intrinsic.txt](intrinsic.txt) with camera intrinsic matrix
8+
1. Upload [image.png](image.png) and [intrinsic.txt](intrinsic.txt) to the current directory at the "Files" bar on the left
9+
1. Click "Runtime" and "Run all" and see the output file [charuco_tf.txt](charuco_tf.txt) and [camera_tf.txt](camera_tf.txt) in the current directory
10+
11+
12+
Create ChArUco
13+
![charuco_board](charuco_board.png)
14+
15+
Detect markers
16+
![markers](markers.png)
17+
18+
Detect ChArUco
19+
![charuco](charuco.png)

Diff for: camera_tf.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
9.548303226711444269e-01 -7.304111379096009382e-02 -2.880348079727425570e-01 3.200425958557832073e-01
2+
-4.228740456786817675e-02 -9.928541636642976842e-01 1.115902554409721192e-01 3.878645380298661322e-02
3+
-2.941272349216102477e-01 -9.436951515528724244e-02 -9.510959805859364735e-01 4.542719319467897754e-01
4+
0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00

Diff for: charuco-pose-estimation.ipynb

+251
Large diffs are not rendered by default.

Diff for: charuco.png

2.21 MB
Loading

Diff for: charuco_board.png

72.3 KB
Loading

Diff for: charuco_tf.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
9.548303226711444269e-01 -4.228740456786817675e-02 -2.941272349216102477e-01 -1.703324493597610512e-01
2+
-7.304111379096009382e-02 -9.928541636642976842e-01 -9.436951515528724244e-02 1.047549817803988814e-01
3+
-2.880348079727425570e-01 1.115902554409721192e-01 -9.510959805859364735e-01 5.199114259204935529e-01
4+
0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00

Diff for: image.png

2.21 MB
Loading

Diff for: intrinsic.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1.363386230468750000e+03 0.000000000000000000e+00 9.487056884765625000e+02
2+
0.000000000000000000e+00 1.361707641601562500e+03 5.192871704101562500e+02
3+
0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00

Diff for: markers.png

2.2 MB
Loading

0 commit comments

Comments
 (0)