基于Android的智能視頻監(jiān)控系統(tǒng)設(shè)計(jì)
發(fā)布時(shí)間:2018-08-29 17:08
【摘要】:隨著科學(xué)技術(shù)和經(jīng)濟(jì)的快速發(fā)展,人們生活水平不斷地提高,人們開始追求更加舒適、便捷、安全的生活,智能家居的出現(xiàn)滿足了人們的這種要求,視頻監(jiān)控技術(shù)作為智能家居的核心技術(shù)之一,它的應(yīng)用使人們的人身和財(cái)產(chǎn)安全得到了更好的保證。但是傳統(tǒng)的監(jiān)控系統(tǒng)始終存在著不靈活、低效率、維護(hù)成本高等問(wèn)題,無(wú)法很好地應(yīng)用到大眾化的智能家居產(chǎn)品中。因此,市場(chǎng)急需一種靈活性強(qiáng)、性能穩(wěn)定、維護(hù)成本低、能主動(dòng)分析并預(yù)警的視頻監(jiān)控系統(tǒng),智能化的視頻監(jiān)控系統(tǒng)是視頻監(jiān)控系統(tǒng)未來(lái)發(fā)展的一個(gè)趨勢(shì),從市場(chǎng)的需求情況來(lái)看,智能化的視頻監(jiān)控系統(tǒng)逐漸引起越來(lái)越多的關(guān)注,需求量持續(xù)上升。從技術(shù)角度來(lái)看,智能化的視頻監(jiān)控將向著適應(yīng)更為復(fù)雜多變的場(chǎng)景、分析和識(shí)別更多異常行為的方向發(fā)展。智能視頻監(jiān)控技術(shù)是一種具有前瞻性的科研領(lǐng)域,不僅蘊(yùn)含著巨大的科研價(jià)值也包含著巨大的商業(yè)價(jià)值。在智能移動(dòng)終端方面,Google開發(fā)的Android平臺(tái)極大地推動(dòng)了智能移動(dòng)終端的發(fā)展,由于它的源碼具有開放性,對(duì)基于智能手機(jī)的智能視頻監(jiān)控系統(tǒng)的普及帶來(lái)了契機(jī)。目前,在智能移動(dòng)終端市場(chǎng)中,Android系統(tǒng)具有很大的市場(chǎng)占有率,在人們的生活中也占有了重要地位。因此,設(shè)計(jì)與開發(fā)一款基于Android平臺(tái)的智能視頻監(jiān)控系統(tǒng)具有現(xiàn)實(shí)意義與實(shí)用價(jià)值。本論文的主要內(nèi)容包括基于Android的智能視頻監(jiān)控系統(tǒng)的總體規(guī)劃和設(shè)計(jì),系統(tǒng)軟件的設(shè)計(jì)與實(shí)現(xiàn),以及在不同網(wǎng)絡(luò)應(yīng)用環(huán)境下對(duì)系統(tǒng)進(jìn)行測(cè)試。系統(tǒng)采用C/S設(shè)計(jì)模式,將系統(tǒng)分為服務(wù)器和客戶端兩個(gè)部分。服務(wù)器軟件開發(fā)和調(diào)試使用Visual Studio 2012軟件,客戶端軟件則是使用軟件Eclipse開發(fā)并使用Android虛擬機(jī)調(diào)試。服務(wù)器端主要實(shí)現(xiàn)視頻采集、視頻編碼、流媒體傳輸、智能處理和網(wǎng)絡(luò)傳輸,將服務(wù)器軟件進(jìn)行模塊化的設(shè)計(jì),視頻采集模塊使用OpenCV開源庫(kù)的攝像頭接口函數(shù),通過(guò)攝像頭編號(hào)打開攝像頭獲取碼流;視頻編碼模塊實(shí)現(xiàn)H.264編碼,使用X.264開源庫(kù)中H.264編碼器將YUV顏色空間視頻源進(jìn)行編碼;流媒體傳輸模塊完成對(duì)經(jīng)過(guò)H.264編碼的碼流進(jìn)行RTP/RTCP協(xié)議封包和發(fā)送;智能處理模塊是利用OpenCV開源庫(kù)函數(shù)設(shè)計(jì)和實(shí)現(xiàn)目標(biāo)檢測(cè);最后網(wǎng)絡(luò)傳輸模塊則是進(jìn)行socket編程實(shí)現(xiàn)與客戶端基于UDP的socket通信?蛻舳塑浖瑯訉(duì)每個(gè)模塊進(jìn)行設(shè)計(jì)與實(shí)現(xiàn),客戶端主要分為UI界面模塊、視頻接收模塊、視頻解碼模塊、視頻播放模塊和網(wǎng)絡(luò)傳輸模塊。UI界面模塊使用Android SDK提供的多樣的組件進(jìn)行設(shè)計(jì),完成界面展示以及實(shí)現(xiàn)與用戶交互;視頻接收模塊則是使用c語(yǔ)言編寫RTP包的解析和拆包程序,再使用JNI技術(shù)在JAVA程序中調(diào)用該程序?qū)崿F(xiàn)視頻的接收;視頻解碼模塊則是利用Android NDK在Android系統(tǒng)中移植FFmpeg開源庫(kù)實(shí)現(xiàn)H.264解碼;視頻播放模塊使用Android SDK的surfaceview組件,將Canvas畫布鎖定到surfaceview組件上并在畫布上一幀幀地繪制圖像實(shí)現(xiàn)視頻播放;網(wǎng)絡(luò)傳輸模塊使用socket網(wǎng)絡(luò)編程實(shí)現(xiàn)與服務(wù)器端的socket通信。最后對(duì)服務(wù)器軟件和客戶端軟件進(jìn)行聯(lián)合調(diào)試和測(cè)試,測(cè)試的網(wǎng)絡(luò)應(yīng)用環(huán)境利用了校園網(wǎng)WiFi和實(shí)驗(yàn)室環(huán)境下的4G(TD-LTE)網(wǎng)絡(luò),測(cè)試結(jié)果表明在以上網(wǎng)絡(luò)環(huán)境下,系統(tǒng)的功能和性能達(dá)到了預(yù)期的設(shè)計(jì)。通過(guò)以上工作,成功實(shí)現(xiàn)了基于Android平臺(tái)的智能視頻監(jiān)控系統(tǒng)的開發(fā),經(jīng)過(guò)測(cè)試系統(tǒng)運(yùn)行穩(wěn)定,畫面清晰,延時(shí)在控制范圍內(nèi)。該系統(tǒng)擺脫了傳統(tǒng)視頻監(jiān)控需要人員值守的限制,全天24小時(shí)智能監(jiān)控,當(dāng)發(fā)現(xiàn)可疑目標(biāo)及時(shí)通知用戶查看視頻監(jiān)控。未發(fā)現(xiàn)入侵的情況下視頻數(shù)據(jù)不進(jìn)行存儲(chǔ),因此極大地降低了視頻存儲(chǔ)的壓力,用戶不需要支付額外的勞動(dòng)成本和視頻存儲(chǔ)空間成本。本設(shè)計(jì)實(shí)現(xiàn)的基于Android的智能視頻監(jiān)控系統(tǒng)具有網(wǎng)絡(luò)適應(yīng)性強(qiáng),安裝維護(hù)成本低,系統(tǒng)運(yùn)行穩(wěn)定的特點(diǎn),能夠?yàn)橹悄芗揖又兄悄芤曨l監(jiān)控的應(yīng)用提供一個(gè)設(shè)計(jì)思路和解決方案。
[Abstract]:With the rapid development of science and technology and economy, people's living standards are constantly improving. People begin to pursue a more comfortable, convenient and safe life. The emergence of smart home meets this requirement. As one of the core technologies of smart home, video surveillance technology makes people's personal and property security better. However, the traditional monitoring system has always been inflexible, inefficient, high maintenance costs, and can not be well applied to the popular smart home products. Therefore, the market urgently needs a flexible, stable performance, low maintenance costs, active analysis and early warning of the video monitoring system, intelligent video monitoring system. Intelligent video surveillance system has attracted more and more attention from the market demand. The demand for intelligent video surveillance system is increasing. From the technical point of view, intelligent video surveillance system will adapt to more complex and changeable scenes and analyze and identify more abnormal behaviors. Intelligent video surveillance technology is a forward-looking scientific research field, not only contains huge scientific research value, but also contains huge commercial value. In the aspect of intelligent mobile terminal, the Android platform developed by Google has greatly promoted the development of intelligent mobile terminal, because of its open source, it is based on Intelligent hand. At present, Android system has a large market share in the smart mobile terminal market, and also occupies an important position in people's lives. Therefore, the design and development of an intelligent video surveillance system based on Android platform has practical significance and practical value. The main contents of this paper include the overall plan and design of the intelligent video surveillance system based on Android, the design and implementation of the system software, and the test of the system under different network application environment. The system adopts C/S design pattern, and divides the system into two parts: server and client. The development and debugging of the server software use Visual S. Tudio 2012 software, client software is developed using Eclipse software and debugged using Android virtual machine. Server mainly realizes video capture, video coding, streaming media transmission, intelligent processing and network transmission, modular design of the server software, video capture module using OpenCV open source library camera interface function, through. Video encoding module implements H.264 encoding, and uses H.264 encoder in X.264 open source library to encode YUV color space video source; Streaming media transmission module completes RTP/RTCP protocol packet and transmission of H.264 encoded video stream; Intelligent processing module uses OpenCV open source library. The client software also designs and implements each module. The client is divided into UI interface module, video receiving module, video decoding module, video playing module and network transmission module. UI interface module uses various components provided by Android SDK to design, display and interact with users; Video receiving module uses C language to write RTP packet parsing and unpacking program, and then uses JNI technology to call the program in JAVA program to achieve video reception; Video decoding module uses Androi to achieve video reception. D NDK transplants FFmpeg open source library to realize H.264 decoding in Android system; video playback module uses Android SDK's surfaceview component to lock Canvas canvas to surfaceview component and draw pictures frame by frame on the canvas to realize video playback; network transmission module uses socket network programming to realize socket with server side. Finally, the server software and client software are debugged and tested jointly. The network application environment tested uses the campus network WiFi and the 4G (TD-LTE) network in the laboratory environment. The test results show that the function and performance of the system have reached the expected design under the network environment. Through the above work, the system is successfully implemented based on the above work. Android platform intelligent video surveillance system development, after the test system runs stable, clear screen, delay within the control range. The system gets rid of the traditional video surveillance needs personnel on duty, 24 hours a day intelligent surveillance, when the detection of suspicious targets promptly notify users to view video surveillance. Frequency data is not stored, so the pressure of video storage is greatly reduced. Users do not need to pay extra labor costs and video storage space costs. The intelligent video surveillance system based on Android has the characteristics of strong network adaptability, low installation and maintenance costs, stable system operation, and can be used in smart home. The application of intelligent video surveillance provides a design idea and solution.
【學(xué)位授予單位】:成都理工大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類號(hào)】:TN948.6
本文編號(hào):2211855
[Abstract]:With the rapid development of science and technology and economy, people's living standards are constantly improving. People begin to pursue a more comfortable, convenient and safe life. The emergence of smart home meets this requirement. As one of the core technologies of smart home, video surveillance technology makes people's personal and property security better. However, the traditional monitoring system has always been inflexible, inefficient, high maintenance costs, and can not be well applied to the popular smart home products. Therefore, the market urgently needs a flexible, stable performance, low maintenance costs, active analysis and early warning of the video monitoring system, intelligent video monitoring system. Intelligent video surveillance system has attracted more and more attention from the market demand. The demand for intelligent video surveillance system is increasing. From the technical point of view, intelligent video surveillance system will adapt to more complex and changeable scenes and analyze and identify more abnormal behaviors. Intelligent video surveillance technology is a forward-looking scientific research field, not only contains huge scientific research value, but also contains huge commercial value. In the aspect of intelligent mobile terminal, the Android platform developed by Google has greatly promoted the development of intelligent mobile terminal, because of its open source, it is based on Intelligent hand. At present, Android system has a large market share in the smart mobile terminal market, and also occupies an important position in people's lives. Therefore, the design and development of an intelligent video surveillance system based on Android platform has practical significance and practical value. The main contents of this paper include the overall plan and design of the intelligent video surveillance system based on Android, the design and implementation of the system software, and the test of the system under different network application environment. The system adopts C/S design pattern, and divides the system into two parts: server and client. The development and debugging of the server software use Visual S. Tudio 2012 software, client software is developed using Eclipse software and debugged using Android virtual machine. Server mainly realizes video capture, video coding, streaming media transmission, intelligent processing and network transmission, modular design of the server software, video capture module using OpenCV open source library camera interface function, through. Video encoding module implements H.264 encoding, and uses H.264 encoder in X.264 open source library to encode YUV color space video source; Streaming media transmission module completes RTP/RTCP protocol packet and transmission of H.264 encoded video stream; Intelligent processing module uses OpenCV open source library. The client software also designs and implements each module. The client is divided into UI interface module, video receiving module, video decoding module, video playing module and network transmission module. UI interface module uses various components provided by Android SDK to design, display and interact with users; Video receiving module uses C language to write RTP packet parsing and unpacking program, and then uses JNI technology to call the program in JAVA program to achieve video reception; Video decoding module uses Androi to achieve video reception. D NDK transplants FFmpeg open source library to realize H.264 decoding in Android system; video playback module uses Android SDK's surfaceview component to lock Canvas canvas to surfaceview component and draw pictures frame by frame on the canvas to realize video playback; network transmission module uses socket network programming to realize socket with server side. Finally, the server software and client software are debugged and tested jointly. The network application environment tested uses the campus network WiFi and the 4G (TD-LTE) network in the laboratory environment. The test results show that the function and performance of the system have reached the expected design under the network environment. Through the above work, the system is successfully implemented based on the above work. Android platform intelligent video surveillance system development, after the test system runs stable, clear screen, delay within the control range. The system gets rid of the traditional video surveillance needs personnel on duty, 24 hours a day intelligent surveillance, when the detection of suspicious targets promptly notify users to view video surveillance. Frequency data is not stored, so the pressure of video storage is greatly reduced. Users do not need to pay extra labor costs and video storage space costs. The intelligent video surveillance system based on Android has the characteristics of strong network adaptability, low installation and maintenance costs, stable system operation, and can be used in smart home. The application of intelligent video surveillance provides a design idea and solution.
【學(xué)位授予單位】:成都理工大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類號(hào)】:TN948.6
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 馬資道;張正炳;;基于ARM-Linux的網(wǎng)絡(luò)視頻監(jiān)控終端的軟件實(shí)現(xiàn)[J];計(jì)算機(jī)測(cè)量與控制;2011年02期
,本文編號(hào):2211855
本文鏈接:http://sikaile.net/kejilunwen/wltx/2211855.html
最近更新
教材專著