- Open Access
- Total Downloads : 588
- Authors : M. Sunder Rao, S.Karunakar Reddy
- Paper ID : IJERTV2IS80792
- Volume & Issue : Volume 02, Issue 08 (August 2013)
- Published (First Online): 30-08-2013
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Real Time Video Monitoring System Based On OMAP3730
Real Time Video Monitoring System Based On OMAP3730
M. Sunder Rao.
(M. Tech). Embedded Systems.
Auroras Technology Research Institute.
Hyderabad.
S.Karunakar Reddy Assoc. professor. ECE,
Auroras Technology Research Institute.
Hyderabad.
Abstract:- This paper achieves the design of an embedded Web server, Linux as its operating system. This is because Linux can be reduced and transplanted. The method used to transplant Web server Boa on the embedded Linux platform is also discussed in detail, and through CGI technology functions of dynamic Web page is successfully realized. Real time video and Image monitoring system should have the characteristics of capturing, compressing and network transmission .Remote image monitoring system based on embedded Linux and OMAP3730 can achieve these functions well. It can be divided into two parts, server and browser The first component is to capture video through the analog camera, compress the image into a jpeg format and v i d e o i n t o m p 4 f o r m a t . Send the image a n d data compressed to the target pc through internet. The second component is to receive the image and data and display them on the browser. Experiments show that the v i d e o and images can be displayed clearly and smoothly.
Keywords- OMAP3730; Linux; video surveillance; embedded system.
-
NTRODUCTION:
With the development of the network technology, embedded technology and digital image processing technology, the embedded video monitoring system become a hot research. Compared with the previous system, it has many advantages, such as low power consumption, small size, and high integration and so on.
This paper designs an embedded remote video monitoring system. It is based on the Linux operating system. Using OMAP3730 as its center processor, using the analog camera to capture the images, it can capture the video, compress the image and transmit the data stably .when opening browser, java applet
will be downloaded; its role is to receive and display the video.
-
ARCHITECTURE OF EMBEDDED VIDEO MONITORING SYSTEM
The architecture of the system is shown in Figure 1. Analog camera is used to capture analog video signal this kind of signal is PAL format. In order to get digital signal, decoder circuit is needed. TI tvp5146 chip can convert PAL into UYVY; this part is put into server.
Server plays a most important role in this system. It is built on devkit8500 development board and Linux operating system, consists of web server and video server. when entering the servers IP address in the browser, web server can provide the test webpage for us, at the same time java applet embedded in this webpage would be downloaded into target pc and run, receive the image data and display. video server is in charge of controlling the camera, compressing the video images and transmitting the data.
Target pc should be installed JDK software package and internet explorer, providing java apples operating environment.
Figure 1.System block diagram.
-
TRANSPLANT WEB SERVER
There are three embedded web servers under the Linux operating system: httpd, thttpd and boa. Httpd is a static web server not supporting CGI,its function is weakest.thttpd supports CGI,but when running, it requires far greater system resources than boa. In view of this, boa is selected as the web server in this system.I had built the boa and vlc web server on Linux host system and tested the web servers.
Need to build the web server for target board. A step to build boa webserver is as follows.
Step 1: Go to http://www.boa.org and download the latest version.
Step 2: Go to the location where you downloaded the package.
cd <location of downloaded boa package>
Step 3: Unpack it by giving following command: tar -xvzf boa-0.94.tar.gz
Step 4: Copy un-packed directory to your Preferd location. Lets assume its /home for this tutorial.So path for you.
step 5: cd /home/boa-0.94/src gedit define. h
Step 6: Change the default SERVER_ROOT by setting the
#define at the top of defines .h SERVER_ROOT = /home/boa-0.94/
Step 7: Go to parent directory (/home/boa-0.94/) and create
Following files and directory: access log error log -> files
Www
Step 8: Type. /configure and then make.
. /configure
Make
Step 9: Copy boa.conf file from examples to parent directory and open it using gedit.
cp /home/boa-0.94/examples/boa.conf /home/boa- 0.94/
gedit boa.conf
Step 10: Go to src directory and give following command.
sudo ./boa
Step 11: Open your internet browser and type following in the address bar:
http://127.0.0.1 Enter
Figure 2. Process of transplanting boa.
-
BUILD VIDEO SERVER
Video server mainly achieves three functions: control the camera to capture video, compress image and transmit data.It works as shown in Figure 3.
-
Video Capture on Video4Linux2
Video4Linux is a video capture application programming for Linux. Several USB webcams, TV tuners, and other devices are supported.Video4Linux is closely integrated with the Linux kernel.Video4Linux2 is the second version of Video4Linux,it fixed some design bugs and started appearing in the 2.5.X kernels. The driver of tvp5146 chip used in this system is written in accordance to V4L2 standard.
Figure 3. Video server workflow
-
Open the video device: capture_fd=open(/dev/video0,O_RDWR)capture_f d is the file descriptor, represents the capture device.
-
Get any active input and enumerate input to get the name of the input detected:
IOCtl (capture_fd, VIDIOC_G_INPUT, &index) Ioctl (capture_fd, VIDIOC_ENUMINPUT, &input) Ioctl (capture_fd, VIDIOC_QUERYSTD, &std)
-
Detect and get the standard in the input detected: Ioctl (capture_fd, VIDIOC_QUERYSTD, &std_id) Ioctl (capture_fd, VIDIOC_G_STD,&std_id)
-
Read and set the video capture format of the current
Driver: ioctl (capture_fd, VIDIOC_G_FMT,fmt) Ioctl (capture_fd, VIDIOC_S_FMT,fmt)
-
Allocate memory and convert it into physical address:
Ioctl (capture_fd, VIDIOC_REQBUFS,&reqbuf) ioctl(capture_fd,VIDIOC_QUERYBUF,&buf)
-
Start video capture:
Ioctl (capture_fd,
VIDIOC_STREAMON,&a)
-
Put the data into the buffer queue:
Ioctl(capture_fd, VIDIOC_DQBUF,&capture_buf)
-
Remove the data from the buffer queue: Ioctl (capture_fd,VIDIOC_QBUF, &capture_buf)
-
-
JPEG Compress
Making image files smaller is a plus for transmitting files across networks.JPEG can easily provide 20:1 compression of full-color data. When network transmission is involved, the time saving from transferring a shorter file is a must for real- time. At the same time, PEG is one of the formats that java applet surpport.That is why using JPEG.
-
In order to using the functions that jpeg-6b library provide, we should transplant it into host. When compiling the program, it can be linked.
-
JPEG cannot copress the image data in UYVY format directly. Converting the data into RGB24.
R = Y + 1.14V
G = Y 0.39U 0.58V B = Y + 2.03U
int UYVY2BMP(unsigned char *pdst,unsigned char
*psrc, int width, int height)
-
Compressing the image using the functions in the jpeg-
6b library.
-
Jpeg_creat_compress (&cinfo): appl and initialize the object that JPEG is going to compress.
-
Dest_buffer
(&cinfo,buffer,size,&written):jpeg_stdio_
dest from libjpeg cannot store compressed pictures to memory instead of a file,Modifying the codes to meet this requirement.
-
Jpeg_set_defaults (&cinfo):set compression parameters
Include image width, image height and so on.
-
Jpeg_set_quality (&cinfo,70,TRUE):set the quality of
the compression.
-
Jpeg_start_compress (&cinfo):star compression.
-
Jpeg_finish_compress (&cinfo):finish compression.
-
-
-
Image Data Transmit:
-
Sockfd=socket (AF_INET,
SOCK_STREAM,0):establish
a socket communication endpoint.
-
bind
(sockfd,&server_sockaddr,sizeof(structsockaddr)):
Connect the socket communication endpoint with a particular
Logical network.
-
Listen (sockfd, BACKLOG): set the socket into passive
State.
-
accept
(sockfd,&client_sockaddr,&sin_size):handle client connection.
-
send (client_fd,buffer,n,MSG_WAITALL):send image
data to the client.
-
-
VIDEO IMAGE DISPLAY
Java applet is embedded in the web page .when users visit
the web page with the applet, it will be automatically Executed, No need to install any special application onto the Client, just open the browser. In this system, java applet is Mainly used to receive the image data and display the image. It is embedded in the web page which is stored in the web server that we have transplanted. Its workflow is shown in the Figure 4.
Figure 4. .java applet workflow
1) Socket=newSocket(192.192.192.200, 7777):Create the socket object and found the connection with the server.
-
Input Stream in stream = socket. Get Input Stream ():Create the input stream object.
-
byte[] buffer = new byte[6000]:allocate the buffer to store the image data.
-
In stream. Read (buffer, 0, buffer.length): read the data from the input stream and store them into buffer.
-
Image=ImageIO.Read (newByteArryInputStream (buffer)
:Create the buffered image object.
-
public idpaint(){g.drawImage(image,0,0,this);}:
This function is used to draw the image. 7). Instream.close (), socket.close (): close the socket and the input stream.
-
-
CONCLUSION:
-
Run boa server and video server, open the browser and enter
the URL192.192.192.200/video.html,we can see the system test result that is shown in Figure 6. Experiment shows that the system runs stably.
S.karunakar Reddy Received his B- tech and M-tech degree in Electronic &and Communication Engineering from JNTU. Hyderabad. Currently working as a Assoc. Professor in Auroras Technological & Research Institute under JNTU. Hyderabad.
S.karunakar Reddy Received his B- tech and M-tech degree in Electronic &and Communication Engineering from JNTU. Hyderabad. Currently working as a Assoc. Professor in Auroras Technological & Research Institute under JNTU. Hyderabad.
Clear and coherent image can be display. The system can meet the requirements of the remote image monitoring system.
REFERENCES:
-
Zhang Wei-wei, Zhao Ji-yin,Li Min, High Definition Real-Time Monitoring System Based on Embedded Network Streaming Media,2009 2nd International Congress on Image and signal Processing, pp.1-3, October 2009.
-
Yakun Liu,Xiaodong Cheng, Design and implementation of embedded Web server based on arm and Linux, 2010 2nd International Conference on Industrial Mechatronics and Automation,vol.2,pp.316-
319,May 2010.
-
Liu Yang, Linying Jiang, Heming Pang, Design and Implementation of the Lab Remote Monitoring System Based on Embedded Web Technology,2010 International Forum on Information Technology and Applications, vol.2, pp.172-175,July 2010.
-
Yakun Liu,Xiaodong Cheng, The study of video acquisition and compression codec system based on DaVinci, 2010 International Conference on Information Networking and Automation, vol. 2, pp.317- 321, October 2010.
M. sunder Rao received my B-tech degree in Electronics & Communication Engineering from JNTU. Hyderabad in 2011. Currently
a M-tech student in the Department of
M. sunder Rao received my B-tech degree in Electronics & Communication Engineering from JNTU. Hyderabad in 2011. Currently
a M-tech student in the Department of
Embedded
Hyderabad.
Embedded
Hyderabad.
System
System
at JNTU.
at JNTU.
-
Yong-tao Zhou,Xu-ping Wang,Chun-jiang Yao, Design of Equipment Remote Monitoring System Based on Embedded Web, 2008 International Conference on Embedded Software and System Symposia,pp.73-78, September 2008.