python opencv imwrite … can't find params

前端 未结 4 1383
梦谈多话
梦谈多话 2021-01-02 16:39

I am using opencv with python. I wanted to do an cv2.imwrte:

cv2.imwrite(\'myimage.png\', my_im)

The only problem is that opencv does not r

4条回答
  •  天命终不由人
    2021-01-02 17:29

    the compression style is automatically chosen from the file extension. see the cv2.imwrite help here.

    however you might still be interested to know all the possible flags used by all the possible functions in cv2 and cv modules.

    look for cv2.txt and cv.txt on your computer. they will be where the opencv modules are installed. at the bottom of those text files are a list of the flags used by the respective modules.

    just in case you don't find them, you can download the ones i have from here, though they are from august 2011:

    • cv2.txt
    • cv.txt

提交回复
热议问题