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
- 오류
- C
- mysql
- VS Code
- nvidia-smi
- windows forms
- Numpy
- Python
- Linux
- pip
- error
- Docker
- C++
- OpenCV
- pandas
- Visual Studio
- YOLO
- 기타 연주
- C#
- Selenium
- 프로그래머스
- JSON
- 핑거스타일
- pytorch
- ubuntu
- SSH
- label
- paramiko
- 채보
- 컨테이너
Archives
- Today
- Total
기계는 거짓말하지 않는다
Python OpenCV Error Sequence item with index 0 has a wrong type 본문
Python
Python OpenCV Error Sequence item with index 0 has a wrong type
KillinTime 2021. 7. 31. 15:39Python의 openCV를 사용할 때, 원, 사각형 등 이미지에 무엇인가를 나타내면 이런 오류를 보는 경우가 있다.
OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function 'rectangle'
> Overload resolution failed:
> - Can't parse 'pt1'. Sequence item with index 0 has a wrong type
...

point는 정수가 되어야 하고 이럴 경우 매개변수에 float 형식이 들어갈 수 있으므로 타입을 꼭 확인한다.
'Python' 카테고리의 다른 글
| Python ValueError: invalid literal for int() with base 10 (0) | 2021.08.02 |
|---|---|
| Python OpenCV 웹캠 실시간 읽기 (0) | 2021.07.31 |
| Python glob module (0) | 2021.07.29 |
| Python os module (0) | 2021.07.29 |
| Python zip 함수 (0) | 2021.07.25 |
Comments
