Git Product home page Git Product logo

vietnam-eyes's Introduction

commnd push frame with fftmpge

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://18.136.104.166:1935/app-3782/73a840aa

sudo apt-get update && sudo apt-get upgrade && sudo rpi-update

Skip this step if you don't use raspberry

sudo nano /etc/dphys-swapfile #CONF_SWAPSIZE=100 CONF_SWAPSIZE=2048

Install packages

PACKAGES="build-essential cmake pkg-config libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libgtk2.0-dev libatlas-base-dev gfortran" sudo apt-get install $PACKAGES -y sudo apt-get install python3-dev sudo apt-get install python3-pip cd ~

Download opencv 3.4.5

wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.4.5.zip unzip opencv.zip

Download opencv_contrib

wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.4.5.zip unzip opencv_contrib.zip

Delete download files

sudo rm opencv.zip opencv_contrib.zip wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py sudo apt-get install python3-pip pip3 install numpy

Setup opencv

cd /opencv-3.4.1/ mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D OPENCV_EXTRA_MODULES_PATH=
/opencv_contrib-3.4.5/modules
-D BUILD_EXAMPLES=ON .. make -j4 sudo make install sudo ldconfig

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.