Skip to main content

Posts

Showing posts from April, 2018

Real time object detection raspberry pi

Real time https://github.com/C-Aniruddh/realtime_object_recognition https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=62364 need to go $ sudo apt-get install autoconf gettext libtool libjpeg62-dev $ git clone https://github.com/Distrotech/v4l-utils/tree/distrotech-v4l-utils $ cd v4l-utils $ autoreconf -vfi $ ./configure $ make $ sudo make install $ sudo modprobe bcm2835-v4l2 $ cd cd realtime_object_recognition sudo python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel --source webcam

Drone Mavlink connection

MAV LINK http://ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html sudo -s mavproxy.py --master=/dev/ttyACM0 --baudrate 57600 --aircraft MyCopter mavproxy.py --master=/dev/ttyACM0 --baudrate 115200 --aircraft MyCopter vehicle = connect('127.0.0.1:14550', wait_ready=True) vehicle = connect('/dev/ttyUSB0', wait_ready=True) vehicle = connect('mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600', wait_ready=True) from dronekit import connect # Connect to the Vehicle (in this case a UDP endpoint) vehicle = connect('/dev/ttyAMA0', wait_ready=True)

OpenCV run with pip3 example

23/11/2017 Image recognition has become a part of our daily lives, and the technology behind it is advancing at a steady pace. We thought it'd be cool to use the increasing speed and tiny size of lightweight computers like the Raspberry Pi, as well as the efficiency and portability of machine learning libraries such as Tensorflow, to create a standalone, handheld object detector. The first step is to find out whether running live object detection on a small device such as the Raspberry Pi is viable; until recently the technology to detect multiple objects at the speed we require just wasn’t there. Luckily for us, the folks at Google Brain were kind enough to open-source their object detection API, which does just this. The use cases for a portable object detector are many and varied - there are places where having a full PC set-up isn't viable, and where an internet connection may not be available for outsourcing the detection to the cloud. The Raspberry Pi i...

OpenCV Docker Image and use

Open CV Install docker mage run $ docker ps $ docker start 0c5f0bc9b04c $ docker ps -a We need to go Self terminal not SSH terminal $ gksudo open a bog and type lxterminal Python and OpenCV. Alright, now we can finally start writing some code! Open up a new file, name it   test_image . py  , and insert the following code: Accessing the Raspberry Pi Camera with OpenCV and Python Python 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # import the necessary packages from picamera . array import PiRGBArray from picamera import PiCamera import time import cv2   # initialize the camera and grab a reference to the raw camera capture camera = PiCamera ( ) rawCapture = PiRGBArray ( camera )   # allow the camera to warmup time . sleep ( 0.1 )   # grab an image from the camera camera . capture ( rawCapture , format = "bgr" ) image = rawC...