擅长:python、mysql、java
<p>您可以使用<a href="http://opencv.org/" rel="nofollow noreferrer">OpenCV</a>,这是一个健壮的图像获取和操作工具。在</p>
<p>OpenCV接受不同的语言,python就是其中之一,因此您只需导入模块并创建一个函数,该函数获取图片并以变量形式返回图像(或者您可以将图片存储在文件中,稍后再读取)。在</p>
<p>看看这个链接,了解如何使用opencv2(和python2.7)获取图像或视频</p>
<p><a href="https://codeplasma.com/2012/11/02/getting-webcam-images-with-python-and-opencv/" rel="nofollow noreferrer">https://codeplasma.com/2012/11/02/getting-webcam-images-with-python-and-opencv/</a></p>
<p>或者,如果您想使用openCV的最新3.0测试版:</p>
<p><a href="http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html" rel="nofollow noreferrer">http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html</a></p>
<p><strong>编辑:</strong></p>
<p>要在Mac上安装OpenCV,请访问以下链接:</p>
<p><a href="http://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation" rel="nofollow noreferrer">http://docs.opencv.org/2.4/doc/tutorials/introduction/ios_install/ios_install.html#ios-installation</a></p>
<p>PD:你也可以在Mac上安装Linux并加入开源社区:)</p>