티스토리 뷰
[map merging] 파노라마 stitiching
원래 난 opencv 3.xx 몇이였는지 기억이 안나는데 아무튼 3이었다.
그래서 stitchig 함수가 제대로 먹히지 않아
새롭게 opencv 4.2.0으로 깔았ㄷㅏ.
하루종일 opencv만 깔았다.
안깔려서
이게 컴퓨터가 안좋으니까
인터넷 창을 켜두니까 계속 오류가 났던건지
아님 몇번의 시도 끝에 된거지 아직 모르겠다
아무튼 화가난다.
import numpy as np
import cv2
import os
import sys
img_names = ['lab.pgm', 'lab2.pgm']
imgs = []
for name in img_names:
img = cv2.imread(name)
if img is None:
print('Image load failed!')
sys.exit()
imgs.append(img)
stitcher = cv2.Stitcher_create()
status, dst = stitcher.stitch(imgs)
if status != cv2.Stitcher_OK:
print('Stitch failed!')
sys.exit()
cv2.imwrite('output.jpg', dst)
cv2.namedWindow('dst', cv2.WINDOW_NORMAL)
cv2.imshow('dst', dst)
cv2.waitKey()
cv2.destroyAllWindows()
기본적인 파노라마 하는 법
https://deep-learning-study.tistory.com/266
참고해서 진행
'robot' 카테고리의 다른 글
[map merging] 맵 합치기 (0) | 2021.07.21 |
---|---|
[map merging] OpenCv - feature matching (0) | 2021.07.14 |
[gmapping map size] 맵 사이즈 변경 (0) | 2021.07.12 |
[kobuki] 내비게이션 파라미터 조정 (0) | 2021.07.05 |
[꼬부기/kobuki] navigation (0) | 2021.06.25 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- c#
- 재생목록
- 네트워크 구성도
- 내 몸에서
- WPF
- 빈 txt
- add button
- 백준
- diagrams.net
- 어이구 두야
- rosbag
- 10869
- 2588
- 꺼저
- 버튼에 메뉴만들기
- 2163번
- #전기버스
- 텐서플로우 #tensorflow # tensor #텐서 #flow #플로우
- 으에엑
- 6204
- 버튼 클릭 시 메뉴
- lwip
- SWEA
- cartographer
- 파일 올리기
- gmapping
- 티스토리 코드블럭
- wpf 재생목록
- 표처럼 코드가 나와요
- 4831
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함