일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 유가 급등
- deeplearning
- DataSet
- Perceptron
- 블록체인
- img
- 브렉시트
- 세계대전
- 비트코인
- itksnap
- pyqt
- loss
- Inference
- 유로화
- terminal
- 딥러닝
- TFRecord
- Training
- keras
- 세계사
- opencv
- TensorFlow
- 퍼셉트론
- qtdesigner
- dtype
- cv2
- Python
- TF
- error
- numpy
Archives
- Today
- Total
활연개랑
[OpenCV] error: OpenCV(4.1.2) /io/opencv/modules/core/src/arithm.cpp:229: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op arr.. 본문
딥러닝
[OpenCV] error: OpenCV(4.1.2) /io/opencv/modules/core/src/arithm.cpp:229: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and type), nor 'array op scalar', nor 'scalar op arr..
승해tmdhey 2021. 10. 28. 20:55반응형
openCV에서 다음과 같은 오류는
bitwise_and 연산을 수행할 때 img와 mask의
데이터 타입이나 채널 수가 맞지 않아 생기는 오류입니다.
문제 해결 방법:
1. 이 오류의 경우 이미지가 잘못 들어갔을 가능성이 가장 큽니다.
이미지 불러오기를 확인해봅시다.
2.
img와 mask의 shape을 확인하시면
이와 같은 결과가 나올 수 있습니다.
이 결과값의 의미는
img shape이 (1404,736,3)이고,
mask shape이 (1404,736) 이라는 의미이니,
위에 함수에서 binary가 안되어 있을 것입니다.
그부분 확인해주시면되겠습니다.
'딥러닝' 카테고리의 다른 글
[deeplearning(딥러닝)] 경사하강법(gradient decent) (0) | 2021.12.26 |
---|---|
[deeplearning(딥러닝)] 손실 함수 (Loss Function)에 대하여 ( +keras 주요 손실 함수) (0) | 2021.12.26 |
[deeplearning(딥러닝)] deeplearning timeline (딥러닝 타임라인) (0) | 2021.12.23 |
[OpenCV] 오류 AttributeError: 'NoneType' object has no attribute 'shape' (0) | 2021.10.31 |
[머신러닝] 회귀(Regression) / 분류(Classification) (0) | 2021.08.20 |