python图像处理与numpy和scipy

时间:2021-04-17 09:01:44

I'm new to python image processing

我是python图像处理的新手

how can I write a code to read and display an image ?

如何编写代码来读取和显示图像?

where the image should be saved in my pc in order to be displayed ?

图像应保存在我的电脑中以便显示?

1 个解决方案

#1


It is a very basic question. Simple google search will give codes in almost any language. If you are starting with image processing I would suggest look at Open CV. This library provides all the functionality you need to perform image processing

这是一个非常基本的问题。简单的谷歌搜索将提供几乎任何语言的代码。如果您从图像处理开始,我建议您查看Open CV。该库提供执行图像处理所需的所有功能

A sample code of opencv would be

opencv的示例代码是

import cv2


img = cv2.imread('/path/to/file/on/system')

cv2.imshow('window name', img)

cv2.waitKey(0)

cv2.destroyWindow('window name')

Python also has a scikit-Image library you can look for codes there.

Python还有一个scikit-Image库,你可以在那里查找代码。

For learning OpenCV with python refer here

有关使用python学习OpenCV的信息,请参阅此处

#1


It is a very basic question. Simple google search will give codes in almost any language. If you are starting with image processing I would suggest look at Open CV. This library provides all the functionality you need to perform image processing

这是一个非常基本的问题。简单的谷歌搜索将提供几乎任何语言的代码。如果您从图像处理开始,我建议您查看Open CV。该库提供执行图像处理所需的所有功能

A sample code of opencv would be

opencv的示例代码是

import cv2


img = cv2.imread('/path/to/file/on/system')

cv2.imshow('window name', img)

cv2.waitKey(0)

cv2.destroyWindow('window name')

Python also has a scikit-Image library you can look for codes there.

Python还有一个scikit-Image库,你可以在那里查找代码。

For learning OpenCV with python refer here

有关使用python学习OpenCV的信息,请参阅此处