tradersnero.blogg.se

Raspberry pi device tomighty
Raspberry pi device tomighty











raspberry pi device tomighty
  1. #RASPBERRY PI DEVICE TOMIGHTY INSTALL#
  2. #RASPBERRY PI DEVICE TOMIGHTY CODE#

  • Unpack the filw by issuing the command : tar -xzvf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz.
  • Finally download the SSDlite MobileNet model and unpack it by issuing: wget.
  • Followed by : protoc object_detection/protos/*.proto -python_out=.
  • raspberry pi device tomighty

    Issue: cd home/pi/tensorflow1/models/research Execute the command from the research directrory.We need to use Protoc to compile the protocol Buffer files.bashrc file : export PYTHONPATH=$PYTHONPATH:/home/pi/tensorflow1/models/research:/home/pi/tensorflow1/models/research/slim Then issue the command as follows to modify.Open it by issuing : sudo nano ~/.bashrc.Now we need to modify the pythonpath variable to point at some directories inside the tensorflow repository which we have just downloaded.

    #RASPBERRY PI DEVICE TOMIGHTY INSTALL#

    Now we need to install tensorflow repository which is available on github.As we have installed all the packages, now we need to set up the directory which you can name anything and I named it as "tensorflow1".Now openCV is installed in our Raspberry Pi.And finally now we can install openCV by issuing the command: sudo pip3 install opencv-python.qt4 is used for developing graphical user interface.and atlast issue : sudo apt-get install qt4-dev-tools libatlas-base-dev.libx264 is used for reading MPEG and AVC formats.libxvidcore is used for compression and storage of videos.

    raspberry pi device tomighty

    After this issue the command: sudo apt-get install libxvidcore-dev libx264-dev.

    #RASPBERRY PI DEVICE TOMIGHTY CODE#

  • libv4l is used to support videos without writing seperate code for variety of devices.
  • libavformat is used to recoerd, convert and stream audio and videos.
  • libavcodec is used for encoding and decoding video and audio data.
  • Then issue : sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev.
  • libpng12 is used for reading and writing images in png format.
  • libjasper is used for coding and manipulation of images.
  • libtiff is used for storing image data in TIFF format.
  • libjpeg is used for reading and writing JPEG images.
  • Issue the command: sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev.
  • These Device Trees may include DT parameters that provide a degree of control over some onboard features.
  • Before installing OpenCV we need to install some dependencies. Device Trees, Overlays, and Parameters Raspberry Pi kernels and firmware use a Device Tree (DT) to describe the hardware present in the Raspberry Pi.
  • Object detection is usually done using matplotlib to display images but I prefer OpenCV because it is easier to work with and probability of getting error is very less.












  • Raspberry pi device tomighty