This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start GDB server | |
| openocd -f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg -c init -c "reset init" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://www.harrysmemo.com/post/152444507227/installing-opencv3-on-bash-on-windows | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential cmake | |
| sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev | |
| sudo apt-get install -y libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev | |
| sudo apt-get install -y libtbb-dev libeigen3-dev | |
| git clone https://github.com/opencv/opencv.git | |
| cd opencv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wave | |
| import pyaudio # pip install pyaudio | |
| # Initialize | |
| audio = pyaudio.PyAudio() | |
| stream = audio.open(format=pyaudio.paInt16, | |
| channels=1, | |
| rate=44100, | |
| input=True, | |
| frames_per_buffer=1024) |
NewerOlder