Ich hätte folgendes Anliegen:
Meine Python-App sollte ein Bild mit openCV verkleinern und dann in einer Tempfile abspeichern. Zu diesem Zweck folgender Code
Code: Alles auswählen
outfile = tempfile.NamedTemporaryFile()
cv2.imwrite(outfile.name, img_new)
PS.: ich erhalte folgenden Fehler
Liebe GrüßeOpenCV Error: Unspecified error (could not find a writer for the specified extension) in imwrite_, file /io/opencv/modules/imgcodecs/src/loadsave.cpp, line 677
...
cv2.error: /io/opencv/modules/imgcodecs/src/loadsave.cpp:677: error: (-2) could not find a writer for the specified extension in function imwrite_
JW