
The entire algorithm for object detection and tracking is a base on image processing. Experimental setup of this system is shown in Fig.
#Matlab r2013a arduino serial
USB to RS232 TTL Converter Adapter Module PL2303HX is used for the serial communication between Arduino board and computer. State of LEDs connected to digital output pin of ATmega 8 microcintroller shows the position of that detected object. Accordingly, control signal is generated and sent through serial communication to Arduino board. Position of the object is tracked by refering its axis values which has been defined in the MATLAB program. This program detects the object in real time. An algorithm for object detection and tracking is written in MATLAB envirnment. Computer captures the video from the camera. Here, a hardware set up is required which can be used as an image acquisition hardware such as camera. Monitiring the motion of an object can be done by identifying and tracking distinct feature of the moving object such as color of that object.
#Matlab r2013a arduino software
Software includes MATLAB and Arduino IDE software whereas hardware includes Camera, Arduino board withįig 1. Prototype system contains both software and hardware tools. The aim of this paper is to propose a prototype model which both detects and tracks an object with distinct features and generates and sends a control signal to the hardware according to the position of the object. Major advantage of using MATLAB as an image processing algorithm development environment is its built in image processing functions and its compatibility with hardware such as cameras, Arduino Raspberry Pie and many more. The best platform on which many image processing algorithms have been developed so far is MATLAB. The constant revolution in the field of digital image processing opens up a multitude of application in various areas, in which innovative technologies could have been developed.

Image processing transforms various sets of characteristics of image parameters into output as control signals. Such signal processing is named as image processing. The revolutionized computers open up the chances of using images and video frames as an input signals of the signal processing. KeywordsMATLAB, Arduino board, ATmega 8, Digital Image processing, Serial data communication, Thresholding.ĭetection of Horizontal and Vertical axis of an object Generated by real time object detection and tracking. Working of the proposed prototype system can be understood by the following flowchart shown in fig.

The color of an object is a subject of its lightning condition. So, rather using the segmentation by shape, the color of an object has been taken into consideration. Here, using approach based on objects shape is very difficult and less efficient with the system in real time constraints. The most challenging issue raised while developing the object detection algorithm is that of selecting the feature to use for segmenting the object. The goal of this work is to visually detect and track an object in a region and send the data to the Arduino board to glow LEDs connected with the microcontrollers digital output port. Arduino programming provides an interfacing of a hardware prototype with control signalsĪTmega 8 microcontroller and USB to RS232 TTL Converter Adapter Module PL2303HX. MATLAB programming develops a computer vision system in the real time for object detection and tracking using camera as an image acquisition hardware. The variation in vertical and horizontal axis of detected object is moderated by serial communication port and using serial data communication, the state of Arduino board pin has been controlled.

Various features of an object such as the shape, size and color can be used to detect and track the object. Using the theory of Image Acquisition and Fundamentals of Digital Image Processing, the object has been detected in real time. The object detection algorithm has been developed on MATLAB platform by the combination of several image processing algorithms.

Interfacing of MATLAB with Arduino for Object Detection Algorithm Implementation using Serial CommunicationĮlectronics and Communication Engineering Shankersinh Vaghela Bapu Institute of Technology Gandhinagar, IndiaĪbstract The paper explains proposed algorithm for object detection using image processing and manipulation of the output pin state of Arduino board with ATmega 8 controller by tracking the motion of the detected object.
