Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- IROS
- 융합연구
- Paper
- 리눅스
- 논문 리뷰
- 논문리뷰
- Neural Radiance Field
- panoptic segmentation
- ICCV
- panoptic nerf
- Computer Vision
- ICCV 2021
- NERF
- Python
- 경희대
- paper review
- 딥러닝
- linux
- Vae
- 2022
- Deep Learning
- CVPR2023
- CVPR
- pytorch
- 논문
- docker
- 파이토치
- NeRF paper
- Semantic Segmentation
- GAN
Archives
- Today
- Total
윤제로의 제로베이스
[Python OpenCV] src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow' 해결 방법 본문
Issue board/python
[Python OpenCV] src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow' 해결 방법
윤_제로 2023. 2. 24. 12:48mask 색상을 바꾸느라 numpy로 opencv를 좀 다뤘는데 아래와 같은 오류가 발생했다.
그래서 왜 안되지..? 똑같은 array인데 왜 imshow()를 못 하지..?!?! 하고 찾아본 결과... 단순한 dtype오류였다....
opencv에서 이미지를 띄우려면 uint8 타입이 필요하다고 한다!
오류
cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-ms668fyv/opencv/modules/highgui/src/precomp.hpp:137: error: (-215:Assertion failed) src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow'
오류 코드
해결 방법
참고 자료
[python opencv] Src_depth! = CV_32S in function 'convertToShow' 오류 해결방법
오류 내용 OpenCV(4.5.2) C:/Users/runneradmin/AppData/Local/Temp/pip-req-build-t9hleyt8/opencv/modules/highgui/src/precomp.hpp:140: error: (-215:Assertion failed) src_depth != CV_16F && src_depth != CV_32S in function 'convertToShow' 오류 코드 impor
kosb.tistory.com
'Issue board > python' 카테고리의 다른 글
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn (0) | 2023.09.25 |
---|---|
폴더 생성 및 파일 리스트 (0) | 2023.02.24 |
Anaconda 가상환경 만들기 (0) | 2023.02.20 |