728x90
반응형
내 경우엔 오픈소스 내 아래 코드에서 이슈가 생겼었는데, 이걸 다음과 같이 변경해주니 정상 동작했다.
if not (x_coord % 640 == 0 or y_coord % 640 == 0):
=> if not (x_coord % 640 == 0).any() or (y_coord % 640 == 0).any():
728x90
반응형
'사소한 Tip . 오류 해결법 > python' 카테고리의 다른 글
[streamlit] OSError: [Errno 28] inotify watch limit reached (0) | 2023.08.17 |
---|---|
[python] random.sample with ordering(랜덤 추출하면서 순서 유지) (0) | 2023.08.04 |
[cv2] contour 사용해서 이미지 내 외부 패딩 삭제 (0) | 2023.06.22 |
[Python/Google translator]구글 번역 API 파이썬 (0) | 2023.06.05 |
[python] tuple element sum / 요소 합 (0) | 2023.02.16 |