Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
week11/calibration/__pycache__/intrinsic_calibrator.cpython-310.pyc
week11/calibration/__pycache__/stereo_calibrator.cpython-310.pyc
44 changes: 44 additions & 0 deletions calibration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Calibration

## Intrinsic Calibration

❗️**LEFT: 1, RIGHT: 0**❗️

왼쪽 카메라 Intrinsic Calibration
```bash
python3 intrinsic_capture.py --cam_id 1 # Left
```
![](./week11/calibration/asset/Intrinsic.png)

`C`를 누르면 캡쳐가 되고, `Q`를 누르면 종료 및 캘리브레이션 실행
다양한 거리, 각도로 캡쳐하여 최소 20장의 사진을 취득하세요.

완료 되었으면, 반대쪽도 마찬가지로 캘리브레이션을 수행하세요.
```bash
python3 intrinsic_capture.py --cam_id 0 # Right
```

## Extrinsic Calibration

아래 명령어를 실행하여 extrinsic calibration을 완료하세요.
```bash
python3 stereo_capture.py
```
![](./week11/calibration/asset/Extrinsic.png)


## Rectification

캘리브레이션이 성공적으로 완료되었는지 확인하세요.
아래 명령어로, rectify된 이미지를 실시간으로 확인할 수 있습니다.
```bash
python3 stereo_preview.py
```

아래 명령어로 이미 저장된 이미지를 rectify할 수 있습니다.
파일을 열어 이미지가 있는 경로를 수정하세요.

```bash
python3 rectify_images.py
```
![](./week11/calibration/asset/Rectify.png)
Binary file added week11/calibration/asset/Extrinsic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week11/calibration/asset/Intrinsic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added week11/calibration/asset/Rectify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
344 changes: 344 additions & 0 deletions week11/calibration/intrinsic_calibrator.py

Large diffs are not rendered by default.

403 changes: 403 additions & 0 deletions week11/calibration/intrinsic_capture.py

Large diffs are not rendered by default.

338 changes: 338 additions & 0 deletions week11/calibration/rectify_images.py

Large diffs are not rendered by default.

525 changes: 525 additions & 0 deletions week11/calibration/stereo_calibrator.py

Large diffs are not rendered by default.

415 changes: 415 additions & 0 deletions week11/calibration/stereo_capture.py

Large diffs are not rendered by default.

605 changes: 605 additions & 0 deletions week11/calibration/stereo_preview.py

Large diffs are not rendered by default.