I am new to python. I am using opencv to tranform an image.
Below are the two last lines in the script:
warped = warped.astype("uint8") * 255
cv2.imshow("Scanned", imutils.resize(warped, height = 650))
I would like to save the warped image as a jpeg file.
How do I go about it?
首先将修改后的图像保存在变量中,然后使用以下命令:
cv2.imwrite("IMAGE_NAME.png", warpedimage)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.