gpt4 book ai didi

python - PIL 到 pyvision 的转换

转载 作者:太空宇宙 更新时间:2023-11-03 19:37:24 25 4
gpt4 key购买 nike

如何将 PIL 图像转换为 Pyvision 图像?

最佳答案

根据文档,http://sourceforge.net/apps/mediawiki/pyvision/index.php?title=Quick_Start_1 ,Pvvision图像本身就是PIL图像。

The Image constructor accepts filenames as an argument and will then load that file from the disk as a PIL image. The Image constructor will also accept other python image objects. For example, if you pass a numpy matrix, PIL image, or an OpenCV image to the constructor it will crate a pyvision image based on that data.

关于python - PIL 到 pyvision 的转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2835200/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com