Fix cv2.imwrite on non-ASCII paths (#7139)
* Fix imwrite on non-ASCII paths * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update general.py * Update __init__.py * Update __init__.py * Update datasets.py * Update hubconf.py * Update detect.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update general.py Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
5 files changed
+21
-14
No files matched your search
+2
-1
@@ -127,10 +127,11 @@ if __name__ == '__main__':
|
||||
# Verify inference
|
||||
from pathlib import Path
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
from utils.general import cv2
|
||||
|
||||
imgs = ['data/images/zidane.jpg', # filename
|
||||
Path('data/images/zidane.jpg'), # Path
|
||||
'https://ultralytics.com/images/zidane.jpg', # URI
|
||||
|
||||
Reference in new issue
Block a user