python 令人大爱的想必是其简单的语法 方便快捷的开发速度及大量 精美好用的第三方包。
今天我们来谈谈 python 对除文本之外的数据的处理方式
1.对图片的处理
对图片的处理 不得不提 opencv 和 PIL,
opencv-python
PIL
face_recognition
pylab
bokeh
matplotlib
2.对声音的处理
librosa
http://librosa.github.io/librosa/
brew install portaudio
pip install pyaudio
pyaudio
http://people.csail.mit.edu/hubert/pyaudio/
https://www.ptorch.com/news/84.html
wave
https://docs.python.org/3/library/wave.html
pyAudioAnalysis
https://github.com/tyiannak/pyAudioAnalysis
http://files.cnblogs.com/files/xingshansi/python_pyAudioAnalysis.pdf
https://github.com/hmmlearn/hmmlearn
https://ffmpeg.zeranoe.com/builds/
pyhub
https://github.com/jiaaro/pydub
pydub需要依赖 libav或者ffmpeg 二选一
brew install libav --with-libvorbis --with-sdl --with-theora
pip install pyhub
brew install libav --with-libvorbis --with-sdl --with-theora
将所有依赖都安装上~~
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis--with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-fdk-aac --with-freetype --with-ffplay --with-ffplay --with-freetype --with-frei0r --with-libass --with-libbluray --with-libcaca --with-libquvi --with-libvidstab --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools --with-x265
https://blog.csdn.net/skywalkervvv/article/details/41685687?utm_source=tuicool
https://www.cnblogs.com/lotusto/p/5812684.html
听歌识曲
https://blog.csdn.net/reeky127/article/details/50163857
https://blog.csdn.net/Marksinoberg/article/details/71577704
https://www.cnblogs.com/chuxiuhong/p/6063602.html
https://stackoverflow.com/questions/10733903/pyaudio-input-overflowed
data = stream.read(chunk, exception_on_overflow = False)
3.对 影像的处理
youtube-dl
https://github.com/rg3/youtube-dl
常用的包 pyvideo
https://github.com/pyvideo/pyvideo
moviepy
https://github.com/Zulko/moviepy
[DeepVideoAnalytics]
https://github.com/AKSHAYUBHAT/DeepVideoAnalytics