I have this script part:
image = cv2.imdecode(data, 1)
cv2.putText(image,"Hello World!", (10,10), cv2.FONT_HERSHEY_SIMPLEX, 1, 255)
cv2.imwrite("/temp/image.jpg", image)
This works fine.
But I want to encode the edited image with imencode():
result, img = cv2.imencode('.jpg', image, [1, 90])
And I get this error message: result, encimg = cv2.imencode('.jpg', image, [1, 90])
TypeError: 'bool' object is not iterable
Anyone know what's wrong with this?