Õª Òª
ÖÇÄܽ»Í¨ÏµÍ³(ITS)ÊÇÄ¿Ç°ÊÀ½ç½»Í¨ÔËÊäÁìÓòÕýÔÚÑо¿ºÍ¹ã·º¹Ø×¢µÄ¿ÎÌâ¡£ ½üÄêÀ´£¬ÖÇÄܽ»Í¨ÏµÍ³µÄÓ¦Óøø½»Í¨ÔËÊäÒµ´øÀ´Á˾޴óµÄ¾¼ÃЧÒ棬¶ÔÓÚµÀ·Éè ¼Æ¡¢Á÷Á¿¼à¿ØºÍ¸ßËÙ¹«Â·¹ÜÀíÆðµ½ÁËÔ½À´Ô½ÖØÒªµÄ×÷Óá£ÂÛÎÄËùÑо¿µÄÊÓƵ³µÁ¾ ¼ì²â¼¼ÊõÔÚITSÖÐÕ¼ÓкÜÖØÒªµÄµØ룬Ó봫ͳµÄ³µÁ¾¼ì²â·½·¨Ïà±È£¬ÊÓƵ³µÁ¾¼ì²â¼¼Êõ²»½ö¾ßÓа²×°Î¬»¤±ã½ÝÇÒ·ÑÓýϵ͡¢¿É¼àÊÓ·¶Î§¹ãµÈÖî¶àÓŵ㣬ͬʱ¿É¶ÔµÀ·ÏÖ³¡Í¼Ïñ½øÐÐÖÇÄÜ»¯·ÖÎöºÍ´¦Àí¡£
±¾ÎÄÀûÓÃOpenCVÖжÔÔ˶¯ÎïÌå¼ì²âµÄÊý¾Ý½á¹¹¡¢º¯Êý¿â£¬½¨Á¢ÁËÒ»¸öÊÓƵ³µÁ¾·ÖÎöϵͳ£¬ÓÃÓÚµÀ·ÉϳµÁ¾µÄ¼ì²â¡£¼ì²â¹ý³ÌÊÇÊ×ÏȶÔÊÓƵͼÏñ½øÐÐÔ¤´¦Àí£¬±ÈÈç¶þÖµ»¯¡¢È¥ÔëµÈ£»È»ºó½øÐб³¾°µÄÌáÈ¡¼°¸üУ¬ÓÉÓÚ±³¾°²î·Ö·¨ÊÇͨ¹ýµ±Ç°Ö¡ºÍ±³¾°Ö¡Ïà¼õÀ´ÌáÈ¡Ô˶¯Ä¿±ê£¬ËùÒÔʵʱµÄ±³¾°¸üÐÂÓÈΪÖØÒª£¬±¾ÎIJÉÓöàÖ¡Çóƽ¾ùµÄ·½·¨À´¸üб³¾°£¬±ÜÃâÁ˹âÕÕÌõ¼þºÍÆøºò»·¾³µÈ´øÀ´µÄ²»ÀûÓ°Ï죻×îºóÀûÓñ³¾°²î·Ö·¨¼ì²â³öÔ˶¯³µÁ¾¡£¾¹ýʵÑéÑéÖ¤£¬¸Ã·½·¨¿ÉÒÔ½Ï׼ȷµØ¼ì²â³ö³µÁ¾Ä¿±ê£¬¼ì²âµÄ³É¹¦ÂÊ¿É´ïµ½90%ÒÔÉÏ¡£
¹Ø¼ü×Ö£º ÊÓƵ´¦Àí ³µÁ¾¼ì²â OpenCV
ABSTRACT
Intelligent Transportation Systems (ITS) is the subject of study and attention in the world's transportation sector.In recent years, the application of intelligent transportation systems has brought enormous economic benefits to the transportation industry,and it has played an increasingly important role in the road located design, traffic monitoring and highway management.The video vehicle detection technology in this thesis study plays an important role in ITS.Compared with the traditional method of vehicle detection, video vehicle detection technology has easy installation and maintenance,low cost, wide range that can be monitored and many other advantages , while it can do intelligently analysis and processing to the image of the road scene.
This thesis sets up a video vehicle analysis system for detecting vehicles on the road by the moving object detection data structure and function library in OpenCV. Detection processes include:First,video image pre-processes,such as binary,removing noise;Next,background extraction and update, as background subtraction is based on that subtract the current frame from background frame to extract moving target,real-time background update is particularly important, we use multi-frame averaging method to update the background,which avoids the the adverse impact of light conditions and climatic and environmental;Finally, the detection of moving vehicles by background subtraction.Experimental results show that this method can accurately detect the vehicle target, the success rate of detecting is up to 90%.
Key words: Video Processing Vehicle Detection OpenCV
Ŀ ¼
µÚÒ»Õ Ð÷ÂÛ ????????????????????????????1 1.1 ¿ÎÌâ±³¾°ºÍÑо¿ÒâÒå???????????????????????1 1.2 ¹úÄÚÍâÑо¿ÏÖ×´?????????????????????????1 1.3 OpenCV¸ÅÊö?????????????????????????2 1.4 ±¾ÎÄÑо¿ÄÚÈÝ??????????????????????????4 1.5 ±¾ÎÄÕ½ڸÅÀ¨??????????????????????????5 1.6 ±¾ÕÂС½á????????????????????????????5 µÚ¶þÕ »ùÓÚÊÓƵµÄ³µÁ¾¼ì²â¼¼Êõ¸ÅÊö?????????????????6 2.1 ÒýÑÔ??????????????????????????????6 2.2 ÊÓƵ³µÁ¾¼ì²â¼¼ÊõʵÀý·¢Õ¹Àú³Ì??????????????????6 2.3 ÊÓƵ³µÁ¾¼ì²â¼¼ÊõδÀ´Ç÷ÊÆ????????????????????7 2.4 ±¾ÕÂС½á????????????????????????????7 µÚÈýÕ ³µÁ¾¼ì²âËã·¨Éè¼Æ??????????????????????9 3.1 ÒýÑÔ??????????????????????????????9 3.2 ³µÁ¾¼ì²âËã·¨Á÷³Ìͼ???????????????????????9 3.3 ͼÏñÔ¤´¦Àí??????????????????????????10
3.3.1 É趨¸ÐÐËȤÇøÓò?????????????????????10 3.3.2 ¸ß˹µÍͨÂ˲¨´¦Àí????????????????????10 3.3.3 ¶þÖµ»¯ãÐÖµ·Ö¸î?????????????????????10 3.4 ±³¾°³õʼ»¯Óë¸üÐÂ???????????????????????11 3.5 ÌáÈ¡Ç°¾°Ô˶¯Ä¿±ê???????????????????????11 3.6 ±¾ÕÂС½á???????????????????????????12 µÚËÄÕ ʵÑé½á¹ûÓë·ÖÎö??????????????????????13 4.1 ÒýÑÔ?????????????????????????????13 4.2 ʵÑéÅäÖÃ???????????????????????????13 4.3 ʵÑé½á¹ûÓë·ÖÎö????????????????????????13 4.4 ±¾ÕÂС½á???????????????????????????16 µÚÎåÕ ×ܽáÓëÕ¹Íû????????????????????????17 5.1 ±¾ÎÄ×ܽá???????????????????????????17 5.2 ¹¤×÷Õ¹Íû???????????????????????????17 л´Ç???????????????????????????????19
²Î¿¼ÎÄÏ×?????????????????????????????20 ¸½Â¼??????????????????????????????21