WO2019128263A1 - Vehicle honking detection method, device, apparatus, storage medium, and system - Google Patents

Vehicle honking detection method, device, apparatus, storage medium, and system Download PDF

Info

Publication number
WO2019128263A1
WO2019128263A1 PCT/CN2018/101784 CN2018101784W WO2019128263A1 WO 2019128263 A1 WO2019128263 A1 WO 2019128263A1 CN 2018101784 W CN2018101784 W CN 2018101784W WO 2019128263 A1 WO2019128263 A1 WO 2019128263A1
Authority
WO
WIPO (PCT)
Prior art keywords
sound signal
microphone
vehicle
whistle
area
Prior art date
Application number
PCT/CN2018/101784
Other languages
French (fr)
Chinese (zh)
Inventor
何赛娟
陈扬坤
陈展
Original Assignee
杭州海康威视数字技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2019128263A1 publication Critical patent/WO2019128263A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/59Context or environment of the image inside of a vehicle, e.g. relating to seat occupancy, driver state or inner lighting conditions
    • G06V20/597Recognising the driver's state or behaviour, e.g. attention or drowsiness
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • G08G1/0175Detecting movement of traffic to be counted or controlled identifying vehicles by photographing vehicles, e.g. when violating traffic rules

Definitions

  • the present application relates to the field of security monitoring, and in particular, to a method, device, device, storage medium and system for detecting a whistle of a vehicle.
  • the present application provides a method, device, device, storage medium and system for detecting a whistle of a vehicle, which can solve the problem that the illegal whistle cannot be effectively supervised.
  • a method of detecting a whistle of a vehicle comprising:
  • the first microphone is disposed along a lane in the controlled area, the second microphone edge
  • the controlled area is disposed in a direction perpendicular to the lane;
  • the action corresponding to the image corresponding to the area where the whistle vehicle is located is recognized, and when it is recognized that there is a preset action in any of the vehicles, the whistle vehicle is positioned.
  • the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
  • the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal
  • the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
  • determining that the whistle vehicle exists in the controlled area includes:
  • the determining, according to the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, the area where the whistle vehicle is located includes:
  • determining, according to a location of the source microphone of the first sound signal and a source microphone of the second sound signal, an area where the whistle vehicle is located includes:
  • the sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
  • the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, positioning the whistle vehicle includes:
  • the motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
  • the method further includes:
  • the license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  • an apparatus for detecting a whistle of a vehicle comprising:
  • a vehicle determining module configured to determine, by the sound signal collected by the at least one first microphone and the at least one second microphone, a whistle vehicle in the controlled area; the first microphone is disposed along a lane in the controlled area, The second microphone is disposed along the vertical direction of the lane in the controlled area;
  • a region determining module configured to determine an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
  • the vehicle positioning module is configured to perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
  • the vehicle determining module is configured to:
  • the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal
  • the vehicle determining module is configured to:
  • the area determining module includes:
  • a sound signal determining unit configured to determine a first sound signal with the largest signal energy and a second sound signal with the largest signal energy
  • an area determining unit configured to determine an area where the whistle vehicle is located according to a source microphone of the first sound signal and a source microphone of the second sound signal.
  • the vehicle positioning module is configured to:
  • the motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
  • the device further includes: a reminding module, configured to:
  • the license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  • a system for detecting a whistle of a vehicle comprising:
  • At least one first microphone disposed along a lane within the controlled area
  • a device for detecting a whistle of a vehicle provided in the above implementation.
  • a computer apparatus comprising a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the processor is implemented when the computer executable instructions are executed
  • a computer readable storage medium having stored thereon instructions that are executed by a processor to perform the method of detecting a whistle of a vehicle of any of the above aspects.
  • the technical solution provided by the embodiment of the present application may include the following beneficial effects: the method of the present application provides a solution for detecting and locating a car whistle by installing a certain number of microphones in the whistle-free area, once When the vehicle violates the whistle, the approximate area of the vehicle can be detected, and then the monitoring image captured by the camera can be used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy.
  • FIG. 1 is a schematic structural diagram of a system for detecting a whistle of a vehicle according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for detecting a whistle of a vehicle according to an embodiment of the present application
  • FIG. 3 is a schematic flow chart of a method for detecting a whistle of a vehicle according to an embodiment of the present application
  • FIG. 4 is a block diagram of an apparatus for detecting a whistle of a vehicle according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present application.
  • the system includes:
  • the orientation of each microphone can be set to face the controlled area. For example, for the first microphone, the orientation of the first microphone may be horizontal to the lane within the controlled area, and for the second microphone, the orientation of the second microphone may be perpendicular to the lane within the controlled area.
  • a plurality of microphones may be set in the controlled area to detect the sound signal in the controlled area.
  • the controlled area may be set when the microphone is set.
  • the lane is provided with at least one first microphone. If there are multiple lanes in the controlled area, it can be set at the outer edge of a lane at the edge of the area.
  • At least one second microphone may be disposed along the vertical direction of the lane of the controlled area, and if there are multiple lanes in the controlled area, it may be disposed at an intersection of each lane and the edge of the controlled area.
  • the camera 103 may be an imaging device capable of monitoring the entire controlled area.
  • the monitoring area may be larger than the controlled area to avoid a dead angle.
  • the camera 103 can be a camera system composed of a plurality of cameras, so that panoramic monitoring can be performed.
  • the device 104 for detecting the whistle of the vehicle may be disposed on the monitoring device, where the monitoring device refers to any type of computer device that can monitor the area through the sound signal collected by the microphone and the image signal collected by the camera, and the monitoring device can It is located on the monitoring server or monitoring client.
  • the monitoring device can also be the camera 103.
  • FIG. 2 is a flowchart of a method for detecting a whistle of a vehicle according to an embodiment of the present application. Referring to FIG. 2, the method includes:
  • the 201 Determine, by the sound signal collected by the at least one first microphone and the at least one second microphone, that there is a whistle vehicle in the controlled area; the first microphone is disposed along a lane in the controlled area, and the second microphone edge The controlled area is disposed in a direction perpendicular to the lane.
  • a plurality of microphones may be set in the controlled area to detect the sound signal in the controlled area.
  • the controlled area may be set when the microphone is set.
  • the lane is provided with at least one first microphone. If there are multiple lanes in the controlled area, it can be set at the outer edge of a lane at the edge of the area.
  • At least one second microphone may be disposed along the vertical direction of the lane of the controlled area, and if there are multiple lanes in the controlled area, it may be disposed at an intersection of each lane and the edge of the controlled area.
  • the determination of the area where the whistle vehicle is located can be realized by the setting of a plurality of microphones.
  • the method of the present application provides a scheme for detecting the sound of a car whistle and locating a corresponding vehicle.
  • a certain number of microphones in the whisper-free area, once the vehicle violently whistle, the approximate area of the vehicle can be detected.
  • the monitoring image captured by the camera is used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy.
  • FIG. 3 is a schematic flow chart of a method for detecting a whistle of a vehicle according to an embodiment of the present application.
  • the method can be applied to the system provided in FIG. 1 to describe the device for detecting the whistle of the vehicle as an example of the monitoring device.
  • the monitoring device refers to the sound signal that can be collected by the microphone and the image signal collected by the camera. Any type of computer device that is monitored. Referring to FIG. 3, the embodiment specifically includes:
  • the monitoring device acquires at least one first sound signal collected by at least one first microphone in the controlled area, and acquires at least one second sound signal collected by at least one second microphone in the controlled area.
  • the first microphone may be disposed along a lane in the controlled area
  • the second microphone may be disposed along a vertical direction of the lane in the controlled area.
  • the microphone can be configured based on the area size and/or the shape of the area of the controlled area.
  • the controlled area is a rectangular area, and the microphone can be uniformly disposed at the edge of the controlled area to collect the environment. All the sound signals in the sound, including the wind, the voice and the car whistle.
  • the sound signals collected by the at least one first microphone and the at least one second microphone may be output to a monitoring device for subsequent analysis by the monitoring device.
  • such sound collection can be real-time acquisition, and subsequent analysis can also be real-time analysis based on real-time collected sound signals.
  • the number of microphones in the controlled area can be appropriately increased.
  • the number of first microphones is increased, and of course, the number of first microphones and second microphones can also be increased to achieve higher detection accuracy.
  • the monitoring device determines a target sound signal, where the target sound signal is a signal with the highest signal energy of the at least one first sound signal and the at least one second sound signal.
  • the monitoring device may perform energy calculation on each frame of the sound signal collected by each microphone.
  • the signal energy of the sound signal is less than a preset threshold
  • the sound signal is considered to be other noise and is not processed
  • the sound signal is When the signal energy is greater than or equal to the preset threshold, the sound signal is involved in the subsequent processing.
  • the preset threshold can be set larger.
  • the specific size can be set according to the noise level in the actual environment.
  • determining whether to perform a subsequent detection process it may further determine whether there is a sound signal whose signal energy is greater than a preset threshold, and if yes, perform the determining process in the step 302 to select a signal energy in which the signal energy is maximum.
  • the microphone performs the next step.
  • the determining process in step 302 is performed to select the microphone with the highest signal energy for the next step. Operation.
  • the pre-processing such as noise reduction processing, low-pass filtering, etc., may be performed before the energy calculation to avoid the subsequent processing due to the large noise.
  • the monitoring device transforms the target sound signal into a frequency domain to obtain a spectrum of the target sound signal.
  • the monitoring device can perform a Fourier transform on the target sound signal to convert the target sound signal from the time domain to the frequency domain to obtain its spectrum.
  • the monitoring device divides the spectrum into two frequency bands, and performs peak search on the two frequency bands based on the first preset frequency and the second preset frequency.
  • the first preset frequency is 3.2 kHz and the second preset frequency is 4.1 kHz.
  • the whistle spectrum of the most common two-tone electric horn has a value of only 3.2 kHz and 4.1 kHz and a large value, so even in a noisy real environment, at these two frequencies Peaks appear, so for fast peak search, the spectrum can be divided into two frequency bands. For example, with 3.6 kHz as the segmentation frequency, the spectrum is divided into two frequency bands of 0-3.6 kHz and 3.6 kHz. If a peak value is found to have a particularly high peak at 3.2 kHz and 4.1 kHz in the spectrum, it is considered that there is a whistling sound.
  • the frequency of the segmentation may also be any frequency between 3.2 kHz and 4.1 kHz, which is not limited in this embodiment of the present application.
  • the above method can also be used to set a plurality of preset frequencies based on the horn sound spectrum of the car horn sound. Therefore, a peak search is performed in the spectrum of the first sound signal and the second sound signal, and if a peak appears at the plurality of preset frequencies, it is considered that there is a whistle sound at this time.
  • the value of the specific preset frequency may be determined based on an actual test, which is not limited in this embodiment of the present application.
  • the frequency sweep method may be used, that is, the two frequency bands of the spectrum are respectively swept, and the scanned spectrum size is compared, if the peaks appear in 3.2 kHz in the two frequency bands respectively. Near 4.1.kHz, it is considered to be a whistle.
  • the peak search can also be performed in other ways, such as the manner in which the peak is searched by curve fitting or the manner in which the threshold is set.
  • the above-mentioned spectrum segmentation may be used for searching, and the segmentation may be performed without searching.
  • This embodiment of the present application does not limit this.
  • the monitoring device determines that there is a whistle vehicle in the controlled area.
  • the above steps 303 to 305 are to determine that a spectrum of the target sound signal has a peak in the preset whistle sound spectrum range, and then determine a possible implementation manner of the whistle vehicle in the controlled area, by acquiring the target sound signal. After the spectrum, based on the law that the whistle sound spectrum peaks at two preset frequencies, it is determined that the presence of the whistle vehicle can ensure the accuracy of the determination result.
  • the above steps 301 to 305 are to determine a possible implementation of the whistle vehicle in the controlled area by the sound signals collected by the at least one first microphone and the at least one second microphone.
  • the presence of the whistle vehicle is determined by the law of the peak of the highest energy sound signal and the whistle sound spectrum, so that the determination result is accurate and reliable. Through the above process, it can be determined that the whistle vehicle does exist in the controlled area, and then the whistle vehicle can be positioned in the next step.
  • the monitoring device determines a first sound signal with the largest signal energy and a second sound signal with the largest signal energy.
  • the second most powerful sound signal is the most powerful sound signal.
  • the monitoring device determines, according to a location of the source microphone of the first sound signal and a source microphone of the second sound signal, an area where the whistle vehicle is located.
  • the entire road surface can be divided into several areas by using a microphone, for example, as indicated by a broken line in FIG. 1, the direction along the lane and the direction perpendicular to the lane are selected.
  • the two microphones with the highest energy, the two microphones extend the intersection of the dotted lines to determine the center point of the area.
  • the following process may be adopted: determining a first extension line according to a position of the source microphone of the first sound signal; and a source microphone according to the second sound signal Position determining a second extension line; determining an intersection of the first extension line and the second extension line in the controlled area; the sub-area where the intersection is located in the controlled area is the area where the whistle vehicle is located.
  • the above steps 306 to 307 are a possible implementation manner of determining the area where the whistle vehicle is located based on the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone.
  • the source of the whistle vehicle is determined by the source microphone based on the highest energy sound signal. Since the signal energy can reflect the distance between the sound source and the microphone, the signal energy is larger, indicating that the closer the sound source is to the microphone, The method determines the accuracy and reliability of the area where the whistle vehicle is located.
  • the monitoring device acquires a monitoring image of the controlled area captured by the camera.
  • the video monitor can be combined to further determine the whistle vehicle.
  • the process of acquiring the monitoring image may be to acquire a multi-frame monitoring image within a preset time period before the current time point to identify whether a vehicle is whistling.
  • the acquired monitoring image may also be a multi-frame monitoring image in a period of time before and after the current time point.
  • the monitoring device determines an image corresponding to the area in the monitoring image.
  • the monitoring device may determine an image corresponding to the area where the whistle vehicle is located in the acquired monitoring image.
  • the monitoring device may extract the multi-frame image corresponding to the area from the multi-frame monitoring image. .
  • the driver will make some specific actions to make a whistle.
  • the preset action may be at least one tapping action on the steering wheel, if the action of the preset action is recognized in the image.
  • the feature indicates that the action corresponds to the vehicle performing a whistling operation, and therefore, the detected granularity can be implemented on the vehicle. It is worth noting that when it is identified in the image that the vehicle including the action feature is greater than one, each vehicle in the image that identifies the action feature is identified as a whistle vehicle.
  • the above steps 308 to 310 are to identify the action corresponding to the image of the area where the whistle vehicle is located.
  • a possible implementation manner of positioning the whistle vehicle is determined by determining the whistle.
  • the surveillance image captured by the camera is used to confirm the whistle motion recognition twice, thereby positioning the whistle vehicle, which can prevent false alarms and greatly improve the detection accuracy.
  • the steps 308 to 310 may be performed by the monitoring device to obtain a monitoring image and perform motion recognition on the image of the area where the whistle vehicle is located, or may be an image corresponding to the area where the whistle vehicle is located by the camera of the controlled area.
  • the whistle event may also be prompted. Specifically, at least one of the following reminding modes may be adopted:
  • the monitoring device highlights the area where the whistle vehicle is located on the monitored image of the controlled area.
  • the monitoring personnel can be notified by means of highlighting that the vehicle currently has a whistle, and the highlighting can be to circle the area with a color prompt box, so that the monitoring personnel are watching After the color prompt box, the license plate number of the vehicle can be obtained through visual observation. Further, since the monitoring image is real-time, the monitoring device can also track the position of the vehicle for the purpose of accurate prompting, and highlight the vehicle according to the movement of the vehicle to achieve the purpose of real-time prompting.
  • Another reminder method is to identify the license plate number of the whistle vehicle and output the identified license plate number.
  • the license plate number of the determined whistle vehicle can be directly identified to obtain the vehicle number, and the vehicle number can be recorded, and the vehicle can be deducted based on the record to achieve the warning. the goal of.
  • the method of the present application provides a scheme for detecting the sound of a car whistle and locating a corresponding vehicle.
  • a certain number of microphones in the whisper-free area, once the vehicle violently whistle, the approximate area of the vehicle can be detected.
  • the monitoring image captured by the camera is used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy.
  • the recognition range at the time of secondary confirmation can be greatly reduced, and the detection accuracy is improved.
  • the spectrum is segmented, thereby achieving the purpose of fast search.
  • FIG. 4 is a block diagram of an apparatus for detecting a whistle of a vehicle according to an embodiment of the present application.
  • the apparatus includes a vehicle determination module 401, an area determination module 402, and a vehicle positioning module 403.
  • the vehicle determining module 401 is configured to determine, by using a sound signal collected by the at least one first microphone and the at least one second microphone, that there is a whistle vehicle in the controlled area; the at least one first microphone is located in the controlled area a lane setting, wherein the at least one second microphone is disposed along a vertical direction of the lane in the controlled area;
  • the area determining module 402 is configured to determine, according to signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, an area where the whistle vehicle is located;
  • the vehicle positioning module 403 is configured to perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
  • the vehicle determination module 401 is configured to:
  • the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal
  • the vehicle determining module 401 is configured to:
  • the vehicle determination module 401 is configured to:
  • the area determining module 402 includes:
  • a sound signal determining unit configured to determine a first sound signal with the largest signal energy and a second sound signal with the largest signal energy
  • an area determining unit configured to determine an area where the whistle vehicle is located according to a source microphone of the first sound signal and a source microphone of the second sound signal.
  • the area determining unit is used to:
  • the sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
  • the vehicle positioning module 403 is configured to:
  • the motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
  • the device further includes a reminder module, configured to:
  • the license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  • FIG. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present disclosure.
  • the computer device 500 includes a memory 501, a processor 502, and computer executable instructions stored on the memory 501 and executable on the processor 502.
  • the processor 502 when executing the computer executable instructions, implements the following method of detecting a whistle of a vehicle:
  • the first microphone is disposed along a lane in the controlled area, and the second microphone is controlled along the second microphone Set in the area perpendicular to the lane;
  • the motion recognition is performed on the image corresponding to the area where the whistle vehicle is located, and when the preset motion is recognized in any of the vehicles, the whistle vehicle is positioned.
  • determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area includes:
  • the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal
  • determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area includes:
  • determining that the whistle vehicle exists in the controlled area includes:
  • the determining, according to the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, the area where the whistle vehicle is located includes:
  • the area in which the whistle vehicle is located is determined based on the position of the source microphone of the first sound signal and the source microphone of the second sound signal.
  • the determining, according to the location of the source microphone of the first sound signal and the source microphone of the second sound signal, the area where the whistle vehicle is located includes:
  • the sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
  • the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, the positioning whistle vehicle includes:
  • the motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles in the image, the vehicle is determined to be a whistle vehicle.
  • the processor is further configured to:
  • the license plate number of the whistle vehicle is identified, and the recognized license plate number is output.
  • the embodiment of the present application further provides a computer readable storage medium, when the instructions in the computer readable storage medium are executed by a processor of a device for detecting a whistle of a vehicle, so that the device for detecting the whistle of the vehicle can perform the above detection The method of the vehicle whistling.

Abstract

A vehicle honking detection method, a device (104), an apparatus, a storage medium, and a system. The method comprises: determining that there is a honking vehicle inside a monitored region by means of audio signals collected by at least one first microphone (101) and at least one second microphone (102); determining a region of the honking vehicle according to signal energy of the audio signals collected by the at least one first microphone (101) and the at least one second microphone (102); and performing movement identification on an image corresponding to the region of the honking vehicle, and locating the honking vehicle when any one vehicle is identified as having a pre-determined movement.

Description

检测车辆鸣笛的方法、装置、设备、存储介质以及系统Method, device, device, storage medium and system for detecting vehicle whistle
本申请要求于2017年12月29日提交中国国家知识产权局、申请号为201711478558.0、发明名称为“检测车辆鸣笛的方法、装置以及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 29, 2017, the Chinese National Intellectual Property Office, the application number is 201711478558.0, and the invention is entitled "Method, device and system for detecting vehicle whistle". Combined in this application.
技术领域Technical field
本申请涉及安防监控领域,特别涉及一种检测车辆鸣笛的方法、装置、设备、存储介质以及系统。The present application relates to the field of security monitoring, and in particular, to a method, device, device, storage medium and system for detecting a whistle of a vehicle.
背景技术Background technique
随着车辆数量的急剧增加,车辆拥堵现象越来越明显。因此,司机在驾驶过程中通常会进行鸣笛,以达到提醒前车、催促行驶等目的。然而,为了维护正常的生活秩序,在道路上经常会设置一些禁止鸣笛的区域,这些区域往往是生活区或学校区,如果发生违规鸣笛,则会对这些区域内人们的生活造成巨大的影响,因此,亟需一种检测车辆鸣笛的方法,来有效的监管违规鸣笛的行为。With the rapid increase in the number of vehicles, vehicle congestion is becoming more and more obvious. Therefore, the driver usually whistle during the driving process to achieve the purpose of reminding the preceding car and urging driving. However, in order to maintain a normal living order, there are often areas on the road that prohibit whistling. These areas are often living areas or school areas. If there is a violation of the whistle, it will cause huge impact on people’s lives in these areas. Impact, therefore, there is a need for a method of detecting vehicle whistle to effectively monitor the behavior of violating whistle.
发明内容Summary of the invention
本申请提供一种检测车辆鸣笛的方法、装置、设备、存储介质以及系统,可以解决不能有效的监管违规鸣笛的问题。The present application provides a method, device, device, storage medium and system for detecting a whistle of a vehicle, which can solve the problem that the illegal whistle cannot be effectively supervised.
一方面,提供了一种检测车辆鸣笛的方法,所述方法应用于计算机设备上,所述方法包括:In one aspect, a method of detecting a whistle of a vehicle is provided, the method being applied to a computer device, the method comprising:
通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆;所述第一麦克风沿被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置;Determining the presence of a whistle vehicle in the controlled area by a sound signal collected by the at least one first microphone and the at least one second microphone; the first microphone is disposed along a lane in the controlled area, the second microphone edge The controlled area is disposed in a direction perpendicular to the lane;
根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;Determining an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆。The action corresponding to the image corresponding to the area where the whistle vehicle is located is recognized, and when it is recognized that there is a preset action in any of the vehicles, the whistle vehicle is positioned.
在一种可能实现方式中,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:In a possible implementation manner, the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:In a possible implementation manner, the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆包括:In a possible implementation manner, when a spectrum of the target sound signal has a peak in a preset whistle sound spectrum range, determining that the whistle vehicle exists in the controlled area includes:
将所述目标声音信号变换到频域,得到所述目标声音信号的频谱;Transforming the target sound signal into a frequency domain to obtain a spectrum of the target sound signal;
将所述频谱分为两个频段,对所述两个频段基于第一预设频率和第二预设频率进行峰值搜索;Dividing the spectrum into two frequency bands, and performing peak search on the two frequency bands based on the first preset frequency and the second preset frequency;
当所述频谱在所述第一预设频率和所述第二预设频率的预设范围内出现峰值,则确定所述被控区域内存在鸣笛车辆。When a peak occurs in the frequency spectrum within a preset range of the first preset frequency and the second preset frequency, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,所述根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域包括:In a possible implementation, the determining, according to the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, the area where the whistle vehicle is located includes:
确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;Determining a first sound signal having the largest signal energy and a second sound signal having the largest signal energy;
根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。Determining an area in which the whistle vehicle is located based on a position of a source microphone of the first sound signal and a source microphone of the second sound signal.
在一种可能实现方式中,根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域包括:In a possible implementation, determining, according to a location of the source microphone of the first sound signal and a source microphone of the second sound signal, an area where the whistle vehicle is located includes:
根据所述第一声音信号的来源麦克风的位置,确定第一延长线;Determining a first extension line according to a location of a source microphone of the first sound signal;
根据所述第二声音信号的来源麦克风的位置,确定第二延长线;Determining a second extension line according to a location of the source microphone of the second sound signal;
确定所述第一延长线和所述第二延长线在所述被控区域中的交点;Determining an intersection of the first extension line and the second extension line in the controlled area;
将所述被控区域中所述交点所处的子区域作为所述鸣笛车辆所在的区域。The sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
在一种可能实现方式中,所述对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位所述鸣笛车辆包括:In a possible implementation manner, the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, positioning the whistle vehicle includes:
获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
在一种可能实现方式中,在定位到鸣笛车辆之后,所述方法还包括:In a possible implementation, after positioning the whistle vehicle, the method further includes:
在所述被控区域的监控图像上突出显示所述鸣笛车辆所在的区域;和/或,Highlighting an area where the whistle vehicle is located on a monitored image of the controlled area; and/or,
对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
一方面,提供了一种检测车辆鸣笛的装置,所述装置包括:In one aspect, an apparatus for detecting a whistle of a vehicle is provided, the apparatus comprising:
车辆确定模块,用于通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆;所述第一麦克风沿被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置;a vehicle determining module, configured to determine, by the sound signal collected by the at least one first microphone and the at least one second microphone, a whistle vehicle in the controlled area; the first microphone is disposed along a lane in the controlled area, The second microphone is disposed along the vertical direction of the lane in the controlled area;
区域确定模块,用于根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;a region determining module, configured to determine an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
车辆定位模块,用于对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆。The vehicle positioning module is configured to perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
在一种可能实现方式中,所述车辆确定模块用于:In a possible implementation manner, the vehicle determining module is configured to:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,所述车辆确定模块用于:In a possible implementation manner, the vehicle determining module is configured to:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,所述区域确定模块包括:In a possible implementation manner, the area determining module includes:
声音信号确定单元,用于确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;a sound signal determining unit, configured to determine a first sound signal with the largest signal energy and a second sound signal with the largest signal energy;
区域确定单元,用于根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。And an area determining unit, configured to determine an area where the whistle vehicle is located according to a source microphone of the first sound signal and a source microphone of the second sound signal.
在一种可能实现方式中,所述车辆定位模块用于:In a possible implementation, the vehicle positioning module is configured to:
获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
在一种可能实现方式中,所述装置还包括:提醒模块,用于:In a possible implementation, the device further includes: a reminding module, configured to:
在所述被控区域的监控图像上突出显示所述鸣笛车辆所在的区域;和/或,Highlighting an area where the whistle vehicle is located on a monitored image of the controlled area; and/or,
对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
一方面,提供了一种检测车辆鸣笛的系统,所述系统包括:In one aspect, a system for detecting a whistle of a vehicle is provided, the system comprising:
沿被控区域内的车道设置的至少一个第一麦克风;At least one first microphone disposed along a lane within the controlled area;
沿所述被控区域内与所述车道垂直方向上设置的至少一个第二麦克风;Having at least one second microphone disposed in a direction perpendicular to the lane in the controlled area;
用于监控所述被控区域的摄像头;a camera for monitoring the controlled area;
上述实现方式中所提供的检测车辆鸣笛的装置。A device for detecting a whistle of a vehicle provided in the above implementation.
一方面,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可执行指令,其特征在于,所述处理器执行所述计算机可执行指令时实 现上述任一方面的检测车辆鸣笛的方法。In one aspect, a computer apparatus is provided comprising a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the processor is implemented when the computer executable instructions are executed A method of detecting a whistle of a vehicle in any of the above aspects.
一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行以完成上述任一方面的检测车辆鸣笛的方法。In one aspect, a computer readable storage medium is provided having stored thereon instructions that are executed by a processor to perform the method of detecting a whistle of a vehicle of any of the above aspects.
本申请的实施例提供的技术方案可以包括以下有益效果:本申请方法提供了一种对汽车鸣笛声进行检测并定位相应车辆的方案,通过在禁止鸣笛区域安装一定数量的麦克风,一旦有车辆进行违规鸣笛,即可检测出车辆的大致区域,然后再借助摄像头拍摄的监控图像对鸣笛动作识别进行二次确认,防止误报,大大提高检测精度。The technical solution provided by the embodiment of the present application may include the following beneficial effects: the method of the present application provides a solution for detecting and locating a car whistle by installing a certain number of microphones in the whistle-free area, once When the vehicle violates the whistle, the approximate area of the vehicle can be detected, and then the monitoring image captured by the camera can be used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The drawings herein are incorporated in and constitute a part of the specification,
图1是本申请实施例提供的检测车辆鸣笛的系统的结构示意图;1 is a schematic structural diagram of a system for detecting a whistle of a vehicle according to an embodiment of the present application;
图2是本申请实施例提供的一种检测车辆鸣笛的方法的流程图;2 is a flowchart of a method for detecting a whistle of a vehicle according to an embodiment of the present application;
图3是本申请实施例提供的一种检测车辆鸣笛的方法的流程示意图;3 is a schematic flow chart of a method for detecting a whistle of a vehicle according to an embodiment of the present application;
图4是本申请实施例提供的一种检测车辆鸣笛的装置的框图;4 is a block diagram of an apparatus for detecting a whistle of a vehicle according to an embodiment of the present application;
图5是本申请实施例提供的一种计算机设备500的结构示意图。FIG. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with aspects of the present application as detailed in the appended claims.
在对本申请实施例进行详细的解释说明之前,先对本申请实施例涉及的检测车辆鸣笛的系统进行简单介绍,参见图1,该系统包括:Before the detailed description of the embodiments of the present application, a system for detecting a whistle of a vehicle according to an embodiment of the present application is briefly introduced. Referring to FIG. 1, the system includes:
沿被控区域内的车道设置的至少一个第一麦克风101;沿所述被控区域内与所述车道垂直方向上设置的至少一个第二麦克风102;用于监控所述被控区域的摄像头103;以及,检测车辆鸣笛的装置104,用于基于所述至少一个第一麦克风101和所述至少一个第二麦克风102所采集的声音信号,来确定所述被控区域中鸣笛车辆所在的区域,并对所述鸣笛车辆所在的区域对应的图像进行动作识别,以确定所述鸣笛车辆。为了使上述麦克风能够高效的采集被控区域内的声音,可以将各个麦克风的朝向设置为朝向该被控区域。例如,对于第一麦克风来说,该第一麦克风的朝向可以水平于该被控区域内的车道,对于第二麦克风来说,第二麦克风的朝向可以垂直于该被控区域内的车道。At least one first microphone 101 disposed along a lane in the controlled area; at least one second microphone 102 disposed in a direction perpendicular to the lane in the controlled area; a camera 103 for monitoring the controlled area And a device 104 for detecting a whistle of the vehicle, for determining, based on the sound signals collected by the at least one first microphone 101 and the at least one second microphone 102, where the whistle vehicle is located in the controlled area An area, and an action recognition of an image corresponding to the area where the whistle vehicle is located to determine the whistle vehicle. In order to enable the above microphone to efficiently collect sounds in the controlled area, the orientation of each microphone can be set to face the controlled area. For example, for the first microphone, the orientation of the first microphone may be horizontal to the lane within the controlled area, and for the second microphone, the orientation of the second microphone may be perpendicular to the lane within the controlled area.
为了实现对某个区域的检测,可以在被控区域中设置多个麦克风,用以检测被控区域内的声音信号,为了实现鸣笛车辆的定位,可以在设置麦克风时,沿着被控区域的车道设置至少一个第一麦克风,如果被控区域有多个车道,则可以在靠区域边缘的一条车道外沿设置即可,为了能够通过横向和纵向的声音信号来确定一个较准确的区域,可以沿着被控区域的车道的垂直方向设置至少一个第二麦克风,而如果被控区域有多个车道,可以在每 条车道与被控区域的边缘的交叉位置设置即可。上述摄像头103可以是能够监控整个被控区域的摄像设备,当然,其监控区域可以大于该被控区域,以避免有死角出现。且,该摄像头103可以是由多个摄像头组成的摄像头系统,从而可以进行全景监控。而检测车辆鸣笛的装置104可以设置于监控设备上,该监控设备是指可以通过麦克风所采集的声音信号和摄像头所采集的图像信号对区域实施监控的任一种计算机设备,该监控设备可以位于监控服务器或监控客户端上,当然,监控设备也可以是摄像头103。In order to realize the detection of an area, a plurality of microphones may be set in the controlled area to detect the sound signal in the controlled area. In order to realize the positioning of the whistle vehicle, the controlled area may be set when the microphone is set. The lane is provided with at least one first microphone. If there are multiple lanes in the controlled area, it can be set at the outer edge of a lane at the edge of the area. In order to determine a more accurate area through the horizontal and vertical sound signals, At least one second microphone may be disposed along the vertical direction of the lane of the controlled area, and if there are multiple lanes in the controlled area, it may be disposed at an intersection of each lane and the edge of the controlled area. The camera 103 may be an imaging device capable of monitoring the entire controlled area. Of course, the monitoring area may be larger than the controlled area to avoid a dead angle. Moreover, the camera 103 can be a camera system composed of a plurality of cameras, so that panoramic monitoring can be performed. The device 104 for detecting the whistle of the vehicle may be disposed on the monitoring device, where the monitoring device refers to any type of computer device that can monitor the area through the sound signal collected by the microphone and the image signal collected by the camera, and the monitoring device can It is located on the monitoring server or monitoring client. Of course, the monitoring device can also be the camera 103.
图2是本申请实施例提供的一种检测车辆鸣笛的方法的流程图,参见图2,所述方法包括:FIG. 2 is a flowchart of a method for detecting a whistle of a vehicle according to an embodiment of the present application. Referring to FIG. 2, the method includes:
201、通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定被控区域内存在鸣笛车辆;所述第一麦克风沿被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置。201. Determine, by the sound signal collected by the at least one first microphone and the at least one second microphone, that there is a whistle vehicle in the controlled area; the first microphone is disposed along a lane in the controlled area, and the second microphone edge The controlled area is disposed in a direction perpendicular to the lane.
为了实现对某个区域的检测,可以在被控区域中设置多个麦克风,用以检测被控区域内的声音信号,为了实现鸣笛车辆的定位,可以在设置麦克风时,沿着被控区域的车道设置至少一个第一麦克风,如果被控区域有多个车道,则可以在靠区域边缘的一条车道外沿设置即可,为了能够通过横向和纵向的声音信号来确定一个较准确的区域,可以沿着被控区域的车道的垂直方向设置至少一个第二麦克风,而如果被控区域有多个车道,可以在每条车道与被控区域的边缘的交叉位置设置即可。In order to realize the detection of an area, a plurality of microphones may be set in the controlled area to detect the sound signal in the controlled area. In order to realize the positioning of the whistle vehicle, the controlled area may be set when the microphone is set. The lane is provided with at least one first microphone. If there are multiple lanes in the controlled area, it can be set at the outer edge of a lane at the edge of the area. In order to determine a more accurate area through the horizontal and vertical sound signals, At least one second microphone may be disposed along the vertical direction of the lane of the controlled area, and if there are multiple lanes in the controlled area, it may be disposed at an intersection of each lane and the edge of the controlled area.
202、根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域。202. Determine, according to signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, an area where the whistle vehicle is located.
由于鸣笛车辆所在位置可以根据声音信号的能量来确定,因此,通过多个麦克风的设置,可以实现鸣笛车辆所在区域的确定。Since the position of the whistle vehicle can be determined according to the energy of the sound signal, the determination of the area where the whistle vehicle is located can be realized by the setting of a plurality of microphones.
203、对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆。203. Perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate a whistle vehicle when it is recognized that there is a preset motion in any of the vehicles.
本申请方法提供了一种对汽车鸣笛声进行检测并定位相应车辆的方案,通过在禁止鸣笛区域安装一定数量的麦克风,一旦有车辆进行违规鸣笛,即可检测出车辆的大致区域,然后再借助摄像头拍摄的监控图像对鸣笛动作识别进行二次确认,防止误报,大大提高检测精度。The method of the present application provides a scheme for detecting the sound of a car whistle and locating a corresponding vehicle. By installing a certain number of microphones in the whisper-free area, once the vehicle violently whistle, the approximate area of the vehicle can be detected. Then, the monitoring image captured by the camera is used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy.
图3是本申请实施例提供的一种检测车辆鸣笛的方法的流程示意图。该方法可以应用于图1所提供的系统中,以检测车辆鸣笛的装置为监控设备为例进行说明,监控设备是指可以通过麦克风所采集的声音信号和摄像头所采集的图像信号对区域实施监控的任一种计算机设备。参见图3,该实施例具体包括:FIG. 3 is a schematic flow chart of a method for detecting a whistle of a vehicle according to an embodiment of the present application. The method can be applied to the system provided in FIG. 1 to describe the device for detecting the whistle of the vehicle as an example of the monitoring device. The monitoring device refers to the sound signal that can be collected by the microphone and the image signal collected by the camera. Any type of computer device that is monitored. Referring to FIG. 3, the embodiment specifically includes:
301、监控设备获取被控区域中至少一个第一麦克风采集的至少一个第一声音信号,获取被控区域中至少一个第二麦克风采集的至少一个第二声音信号。301. The monitoring device acquires at least one first sound signal collected by at least one first microphone in the controlled area, and acquires at least one second sound signal collected by at least one second microphone in the controlled area.
其中,第一麦克风可以沿被控区域内的车道设置,第二麦克风可以沿被控区域内与车道垂直方向上设置。对于被控区域来说,可以基于该被控区域的区域大小和/或区域形状来配置麦克风,以被控区域为矩形区域为例,可以在被控区域的区域边缘均匀设置麦克风,以采集环境中的一切声音信号,包括风声、说话声和汽车鸣笛声等。该至少一个第一麦克 风和至少一个第二麦克风所采集的声音信号可以输出至监控设备,由监控设备进行后续分析。当然,这种声音采集可以是实时采集,其后续分析也可以是基于实时采集到的声音信号进行的实时分析。The first microphone may be disposed along a lane in the controlled area, and the second microphone may be disposed along a vertical direction of the lane in the controlled area. For the controlled area, the microphone can be configured based on the area size and/or the shape of the area of the controlled area. For example, the controlled area is a rectangular area, and the microphone can be uniformly disposed at the edge of the controlled area to collect the environment. All the sound signals in the sound, including the wind, the voice and the car whistle. The sound signals collected by the at least one first microphone and the at least one second microphone may be output to a monitoring device for subsequent analysis by the monitoring device. Of course, such sound collection can be real-time acquisition, and subsequent analysis can also be real-time analysis based on real-time collected sound signals.
为了增加检测精度,可适当增加被控区域中麦克风数量。例如,增加第一麦克风的数量,当然,也可以增加第一麦克风和第二麦克风的数量,以达到更高的检测精度。In order to increase the detection accuracy, the number of microphones in the controlled area can be appropriately increased. For example, the number of first microphones is increased, and of course, the number of first microphones and second microphones can also be increased to achieve higher detection accuracy.
302、监控设备确定目标声音信号,该目标声音信号是该至少一个第一声音信号和该至少一个第二声音信号中信号能量最大的信号。302. The monitoring device determines a target sound signal, where the target sound signal is a signal with the highest signal energy of the at least one first sound signal and the at least one second sound signal.
具体地,监控设备可以对每个麦克风采集到的每帧声音信号进行能量计算,当声音信号的信号能量小于预设阈值时,则认为该声音信号是其他噪声而不做处理,当声音信号的信号能量大于或等于预设阈值时,才将该声音信号参与到后续处理中。这里,考虑一般鸣笛声较大,因此可以将预设阈值设置的大一点。具体大小可根据实际环境场景中的噪声大小进行设定。Specifically, the monitoring device may perform energy calculation on each frame of the sound signal collected by each microphone. When the signal energy of the sound signal is less than a preset threshold, the sound signal is considered to be other noise and is not processed, when the sound signal is When the signal energy is greater than or equal to the preset threshold, the sound signal is involved in the subsequent processing. Here, considering that the general whistle sound is loud, the preset threshold can be set larger. The specific size can be set according to the noise level in the actual environment.
作为一种实施方式,在确定是否进行后续检测过程时,还可以判断是否存在信号能量大于预设阈值的声音信号,若存在,则执行该步骤302中的确定过程,以选择其中信号能量最大的麦克风进行下一步的操作。As an implementation manner, when determining whether to perform a subsequent detection process, it may further determine whether there is a sound signal whose signal energy is greater than a preset threshold, and if yes, perform the determining process in the step 302 to select a signal energy in which the signal energy is maximum. The microphone performs the next step.
作为一种实施方式,在确定是否进行后续检测过程时,还可以判断信号能量大于预设阈值的声音信号是否达到预设数量,当超过一定数量的麦克风的信号能量值大于预设阈值时,我们认为此时很有可能会是鸣笛声音,因此,当信号能量大于预设阈值的声音信号超过预设数量时,执行该步骤302中的确定过程,以选择其中信号能量最大的麦克风进行下一步的操作。当然,还可以采用这种判断是否达到预设数量的方式直接确定被控区域内是否存在鸣笛车辆,也即是,在通过判断确定信号能量超过预设阈值的声音信号数量达到预设数量后,直接确定被控区域内存在鸣笛车辆,并执行步骤306以及后续步骤,从而进一步定位鸣笛车辆。As an implementation manner, when determining whether to perform a subsequent detection process, it is also determined whether the sound signal whose signal energy is greater than a preset threshold reaches a preset number. When a signal energy value exceeding a certain number of microphones is greater than a preset threshold, It is considered that the whistle sound is likely to be at this time. Therefore, when the sound signal whose signal energy is greater than the preset threshold exceeds the preset number, the determining process in step 302 is performed to select the microphone with the highest signal energy for the next step. Operation. Of course, it is also possible to directly determine whether there is a whistle vehicle in the controlled area by using the method of determining whether the preset number is reached, that is, after determining that the number of sound signals whose signal energy exceeds the preset threshold reaches a preset number , directly determine the whistle vehicle in the controlled area, and perform step 306 and subsequent steps to further locate the whistle vehicle.
当然,如果检测到环境噪声大于预设噪声,则可在能量计算之前先进行预处理,如降噪处理、低通滤波等,以避免由于噪声较大而不利于后续处理。Of course, if the detected ambient noise is greater than the preset noise, the pre-processing, such as noise reduction processing, low-pass filtering, etc., may be performed before the energy calculation to avoid the subsequent processing due to the large noise.
303、监控设备将该目标声音信号变换到频域,得到该目标声音信号的频谱。303. The monitoring device transforms the target sound signal into a frequency domain to obtain a spectrum of the target sound signal.
监控设备可以对该目标声音信号进行傅里叶变换,从而将目标声音信号从时域转换为频域,以得到其频谱。The monitoring device can perform a Fourier transform on the target sound signal to convert the target sound signal from the time domain to the frequency domain to obtain its spectrum.
304、监控设备将该频谱分为两个频段,对该两个频段基于第一预设频率和第二预设频率进行峰值搜索。304. The monitoring device divides the spectrum into two frequency bands, and performs peak search on the two frequency bands based on the first preset frequency and the second preset frequency.
其中,第一预设频率为3.2kHz,第二预设频率为4.1kHz。理论情况下,对于最常见的双音电喇叭的鸣笛声频谱只在3.2kHz和4.1kHz处有值且值很大,所以即使在有噪声的实际环境中,也会在这两个频率处出现峰值,因此,为了快速的峰值搜索,可以将频谱分为两个频段,例如,以3.6kHz为分段频点,将该频谱分为0-3.6kHz和3.6kHz以上两个频段,那么,如果通过峰值搜索确定该频谱中有且仅有频率3.2kHz和4.1kHz处出现了特别高的峰值,就认为此时有鸣笛声。当然,该分段频点还可以是3.2kHz至4.1kHz之间的任一个频率,本申请实施例对此不做限定。对于其他汽车喇叭声音,一般都只会在频谱上表现为某几个频率点的值比较大,因此,也可以采用上述方式,基于汽车喇叭声音的鸣笛声频谱,来设置多个预设频率,从而在第一声音信号和第二声音信号的频谱中进行峰值搜索,如果在上 述多个预设频率处出现了峰值,则认为此时有鸣笛声。具体预设频率的数值可以基于实际测试确定,本申请实施例对此不作限定。The first preset frequency is 3.2 kHz and the second preset frequency is 4.1 kHz. In theory, the whistle spectrum of the most common two-tone electric horn has a value of only 3.2 kHz and 4.1 kHz and a large value, so even in a noisy real environment, at these two frequencies Peaks appear, so for fast peak search, the spectrum can be divided into two frequency bands. For example, with 3.6 kHz as the segmentation frequency, the spectrum is divided into two frequency bands of 0-3.6 kHz and 3.6 kHz. If a peak value is found to have a particularly high peak at 3.2 kHz and 4.1 kHz in the spectrum, it is considered that there is a whistling sound. Of course, the frequency of the segmentation may also be any frequency between 3.2 kHz and 4.1 kHz, which is not limited in this embodiment of the present application. For other car horn sounds, generally only the frequency of a certain frequency point is relatively large. Therefore, the above method can also be used to set a plurality of preset frequencies based on the horn sound spectrum of the car horn sound. Therefore, a peak search is performed in the spectrum of the first sound signal and the second sound signal, and if a peak appears at the plurality of preset frequencies, it is considered that there is a whistle sound at this time. The value of the specific preset frequency may be determined based on an actual test, which is not limited in this embodiment of the present application.
在进行峰值搜索时,可以采用扫频方式进行,也即是,分别对频谱的上述两个频段进行扫频,并比较所扫描到的频谱大小,如果在两个频段中峰值分别出现在3.2kHz和4.1.kHz附近,则认为是鸣笛声。当然,该峰值搜索还可以采用其他方式进行,例如采用曲线拟合搜索峰值的方式或者设定阈值的方式等。In the peak search, the frequency sweep method may be used, that is, the two frequency bands of the spectrum are respectively swept, and the scanned spectrum size is compared, if the peaks appear in 3.2 kHz in the two frequency bands respectively. Near 4.1.kHz, it is considered to be a whistle. Of course, the peak search can also be performed in other ways, such as the manner in which the peak is searched by curve fitting or the manner in which the threshold is set.
当然,在进行峰值搜索的时候可以采用上述的频谱分段来进行搜索,还可以不进行分段来进行搜索,本申请实施例对此不做限定。Of course, in the case of performing the peak search, the above-mentioned spectrum segmentation may be used for searching, and the segmentation may be performed without searching. This embodiment of the present application does not limit this.
305、当该频谱在该第一预设频率和该第二预设频率的预设范围内出现峰值,则监控设备确定该被控区域内存在鸣笛车辆。305. When a peak occurs in the preset range of the first preset frequency and the second preset frequency, the monitoring device determines that there is a whistle vehicle in the controlled area.
上述步骤303至305是当该目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定该被控区域内存在鸣笛车辆的一种可能实现方式,通过获取目标声音信号的频谱后,基于鸣笛声频谱在两个预设频率处出现峰值的规律,来确定存在鸣笛车辆,可以保证确定结果的准确性。The above steps 303 to 305 are to determine that a spectrum of the target sound signal has a peak in the preset whistle sound spectrum range, and then determine a possible implementation manner of the whistle vehicle in the controlled area, by acquiring the target sound signal. After the spectrum, based on the law that the whistle sound spectrum peaks at two preset frequencies, it is determined that the presence of the whistle vehicle can ensure the accuracy of the determination result.
上述步骤301至步骤305是通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定被控区域内存在鸣笛车辆的一种可能实现方式。通过根据能量最大的声音信号以及鸣笛声频谱出现峰值的规律,来确定存在鸣笛车辆,使得确定结果准确可靠。通过上述过程可以确定被控区域确实存在鸣笛车辆,则下一步可以对该鸣笛车辆进行定位。The above steps 301 to 305 are to determine a possible implementation of the whistle vehicle in the controlled area by the sound signals collected by the at least one first microphone and the at least one second microphone. The presence of the whistle vehicle is determined by the law of the peak of the highest energy sound signal and the whistle sound spectrum, so that the determination result is accurate and reliable. Through the above process, it can be determined that the whistle vehicle does exist in the controlled area, and then the whistle vehicle can be positioned in the next step.
306、监控设备确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号。306. The monitoring device determines a first sound signal with the largest signal energy and a second sound signal with the largest signal energy.
当信号能量较大时,说明发声源与该麦克风的距离越近,因此,可以从至少一个第一声音信号中确定信号能量最大的第一声音信号,并从至少一个第二声音信号中确定信号能量最大的第二声音信号。When the signal energy is large, the closer the distance between the sound source and the microphone is, so that the first sound signal with the largest signal energy can be determined from the at least one first sound signal, and the signal is determined from the at least one second sound signal. The second most powerful sound signal.
307、监控设备根据该第一声音信号的来源麦克风和该第二声音信号的来源麦克风的位置,确定该鸣笛车辆所在的区域。307. The monitoring device determines, according to a location of the source microphone of the first sound signal and a source microphone of the second sound signal, an area where the whistle vehicle is located.
当判断此时存在鸣笛声时,为确认此时鸣笛车辆所在区域,可以利用麦克风将整个路面划分成几个区域,例如图1中虚线所示,选择沿车道方向和垂直于车道方向上能量最大的两个麦克风,这两个麦克风延长虚线汇成的交点即为确定区域的中心点。也即是,在基于来源麦克风确定鸣笛车辆所在的区域时,可以采取下述过程:根据该第一声音信号的来源麦克风的位置确定第一延长线;根据该第二声音信号的来源麦克风的位置确定第二延长线;确定该第一延长线和该第二延长线在该被控区域中的交点;将该被控区域中该交点所处的子区域作为该鸣笛车辆所在的区域。When it is judged that there is a whistling sound at this time, in order to confirm the area where the whistle vehicle is located at this time, the entire road surface can be divided into several areas by using a microphone, for example, as indicated by a broken line in FIG. 1, the direction along the lane and the direction perpendicular to the lane are selected. The two microphones with the highest energy, the two microphones extend the intersection of the dotted lines to determine the center point of the area. That is, when determining the area where the whistle vehicle is located based on the source microphone, the following process may be adopted: determining a first extension line according to a position of the source microphone of the first sound signal; and a source microphone according to the second sound signal Position determining a second extension line; determining an intersection of the first extension line and the second extension line in the controlled area; the sub-area where the intersection is located in the controlled area is the area where the whistle vehicle is located.
上述步骤306至步骤307是根据至少一个第一麦克风和至少一个第二麦克风所采集的声音信号的信号能量,确定鸣笛车辆所在的区域的一种可能实现方式。通过基于能量最大的声音信号的来源麦克风确定鸣笛车辆所在的区域,由于信号能量的大小可以反映发声源与麦克风的距离远近,信号能量较大说明发声源与麦克风的距离越近,因此这种方式确定鸣笛车辆所在区域的准确性和可靠性较高。The above steps 306 to 307 are a possible implementation manner of determining the area where the whistle vehicle is located based on the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone. The source of the whistle vehicle is determined by the source microphone based on the highest energy sound signal. Since the signal energy can reflect the distance between the sound source and the microphone, the signal energy is larger, indicating that the closer the sound source is to the microphone, The method determines the accuracy and reliability of the area where the whistle vehicle is located.
308、监控设备获取该摄像头所拍摄的该被控区域的监控图像。308. The monitoring device acquires a monitoring image of the controlled area captured by the camera.
当确定了鸣笛车辆所在的区域后,为了避免误判,则可以结合视频监控来进一步确定鸣笛车辆。该获取监控图像的过程可以是获取当前时间点之前预设时间段内的多帧监控图 像,以便识别是否有车辆在鸣笛。当然,该获取的监控图像还可以是当前时间点前后一段时间段内的多帧监控图像。After determining the area where the whistle vehicle is located, in order to avoid misjudgment, the video monitor can be combined to further determine the whistle vehicle. The process of acquiring the monitoring image may be to acquire a multi-frame monitoring image within a preset time period before the current time point to identify whether a vehicle is whistling. Of course, the acquired monitoring image may also be a multi-frame monitoring image in a period of time before and after the current time point.
309、监控设备在该监控图像中,确定该区域对应的图像。309. The monitoring device determines an image corresponding to the area in the monitoring image.
基于步骤307中所确定的区域,监控设备可以在获取到的监控图像中确定鸣笛车辆所在的区域对应的图像,当然,监控设备可以从多帧监控图像中,提取该区域对应的多帧图像。Based on the area determined in step 307, the monitoring device may determine an image corresponding to the area where the whistle vehicle is located in the acquired monitoring image. Of course, the monitoring device may extract the multi-frame image corresponding to the area from the multi-frame monitoring image. .
310、基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为所述鸣笛车辆。310. Perform motion recognition on the image based on an action feature of a preset action, and determine the vehicle as the whistle vehicle when the action feature is included in an image of any of the images.
对于鸣笛车辆来说,其驾驶员会做出一些特定的动作才能进行鸣笛,例如,该预设动作可以是对方向盘的至少一次敲打动作,如果在图像中识别到该预设动作的动作特征,则说明动作对应车辆进行了鸣笛操作,因此,可以将检测的粒度落实到车辆上。值得说明的是,当该图像中识别到包括所述动作特征的车辆大于一辆时,将该图像中识别到包括所述动作特征的各车辆确定为鸣笛车辆。For a whistle car, the driver will make some specific actions to make a whistle. For example, the preset action may be at least one tapping action on the steering wheel, if the action of the preset action is recognized in the image. The feature indicates that the action corresponds to the vehicle performing a whistling operation, and therefore, the detected granularity can be implemented on the vehicle. It is worth noting that when it is identified in the image that the vehicle including the action feature is greater than one, each vehicle in the image that identifies the action feature is identified as a whistle vehicle.
上述步骤308至步骤310是对鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆的一种可能实现方式,通过在确定鸣笛车辆所在区域后,借助摄像头拍摄的监控图像对鸣笛动作识别进行二次确认,从而定位鸣笛车辆,可以防止误报,大大提高检测精度。上述步骤308至步骤310可以由监控设备获取监控图像并对所述鸣笛车辆所在区域的图像进行动作识别,也可以通过所述被控区域的摄像头对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位所述鸣笛车辆。可选地,在该定位过程之后,还可以对该鸣笛事件进行提示,具体地,可以采用下述至少一种提醒方式:The above steps 308 to 310 are to identify the action corresponding to the image of the area where the whistle vehicle is located. When it is recognized that there is a preset action in any vehicle, a possible implementation manner of positioning the whistle vehicle is determined by determining the whistle. After the vehicle is in the area, the surveillance image captured by the camera is used to confirm the whistle motion recognition twice, thereby positioning the whistle vehicle, which can prevent false alarms and greatly improve the detection accuracy. The steps 308 to 310 may be performed by the monitoring device to obtain a monitoring image and perform motion recognition on the image of the area where the whistle vehicle is located, or may be an image corresponding to the area where the whistle vehicle is located by the camera of the controlled area. Perform motion recognition to locate the whistle vehicle when it is recognized that there is a preset motion in any of the vehicles. Optionally, after the positioning process, the whistle event may also be prompted. Specifically, at least one of the following reminding modes may be adopted:
一种提醒方式、监控设备在该被控区域的监控图像上突出显示鸣笛车辆所在的区域。A reminder mode, the monitoring device highlights the area where the whistle vehicle is located on the monitored image of the controlled area.
为了对监控人员进行提示,可以在监控图像上通过突出显示的方式来告知监控人员当前有车辆进行了鸣笛,该突出显示可以是用彩色提示框将该区域圈出,从而使得监控人员在看到该彩色提示框后,可以通过视觉观察来获知车辆的车牌号码。进一步地,由于监控图像是实时的,因此,为了达到准确提示的目的,监控设备还可以对车辆位置进行跟踪,并根据该车辆的移动来对该车辆进行突出显示,以达到实时提示的目的。In order to prompt the monitoring personnel, the monitoring personnel can be notified by means of highlighting that the vehicle currently has a whistle, and the highlighting can be to circle the area with a color prompt box, so that the monitoring personnel are watching After the color prompt box, the license plate number of the vehicle can be obtained through visual observation. Further, since the monitoring image is real-time, the monitoring device can also track the position of the vehicle for the purpose of accurate prompting, and highlight the vehicle according to the movement of the vehicle to achieve the purpose of real-time prompting.
另一种提醒方式、对该鸣笛车辆的车牌号码进行识别,输出识别到的该车牌号码。Another reminder method is to identify the license plate number of the whistle vehicle and output the identified license plate number.
为了提高监控效率,降低人工介入,还可以直接对所确定的鸣笛车辆的车牌号码进行识别,以得到该车辆号码,对其进行记录,后续可以基于记录进行车辆扣分等措施,以达到警示的目的。In order to improve the monitoring efficiency and reduce the manual intervention, the license plate number of the determined whistle vehicle can be directly identified to obtain the vehicle number, and the vehicle number can be recorded, and the vehicle can be deducted based on the record to achieve the warning. the goal of.
本申请方法提供了一种对汽车鸣笛声进行检测并定位相应车辆的方案,通过在禁止鸣笛区域安装一定数量的麦克风,一旦有车辆进行违规鸣笛,即可检测出车辆的大致区域,然后再借助摄像头拍摄的监控图像对鸣笛动作识别进行二次确认,防止误报,大大提高检测精度。进一步地,利用信号能量的大小来确定鸣笛车辆的所在区域,能够大大缩小二次确认时的识别范围,提高了检测精度。进一步地,在进行峰值搜索过程中,对频谱进行了分段,从而达到了快速搜索的目的。The method of the present application provides a scheme for detecting the sound of a car whistle and locating a corresponding vehicle. By installing a certain number of microphones in the whisper-free area, once the vehicle violently whistle, the approximate area of the vehicle can be detected. Then, the monitoring image captured by the camera is used to confirm the whistle motion recognition twice to prevent false alarms and greatly improve the detection accuracy. Further, by determining the region where the whistle vehicle is located by using the magnitude of the signal energy, the recognition range at the time of secondary confirmation can be greatly reduced, and the detection accuracy is improved. Further, in the peak search process, the spectrum is segmented, thereby achieving the purpose of fast search.
图4是本申请实施例提供的一种检测车辆鸣笛的装置的框图。参照图4,该装置包括车 辆确定模块401,区域确定模块402和车辆定位模块403。FIG. 4 is a block diagram of an apparatus for detecting a whistle of a vehicle according to an embodiment of the present application. Referring to Figure 4, the apparatus includes a vehicle determination module 401, an area determination module 402, and a vehicle positioning module 403.
车辆确定模块401,用于通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆;所述至少一个第一麦克风沿被控区域内的车道设置,所述至少一个第二麦克风沿所述被控区域内与所述车道垂直方向上设置;The vehicle determining module 401 is configured to determine, by using a sound signal collected by the at least one first microphone and the at least one second microphone, that there is a whistle vehicle in the controlled area; the at least one first microphone is located in the controlled area a lane setting, wherein the at least one second microphone is disposed along a vertical direction of the lane in the controlled area;
区域确定模块402,用于根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;The area determining module 402 is configured to determine, according to signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, an area where the whistle vehicle is located;
车辆定位模块403,用于对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆。The vehicle positioning module 403 is configured to perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
在一种可能实现方式中,车辆确定模块401用于:In one possible implementation, the vehicle determination module 401 is configured to:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
进一步地,在一种可能实现方式中,车辆确定模块401用于:Further, in a possible implementation manner, the vehicle determining module 401 is configured to:
将所述目标声音信号变换到频域,得到所述目标声音信号的频谱;Transforming the target sound signal into a frequency domain to obtain a spectrum of the target sound signal;
将所述频谱分为两个频段,对所述两个频段基于第一预设频率和第二预设频率进行峰值搜索;Dividing the spectrum into two frequency bands, and performing peak search on the two frequency bands based on the first preset frequency and the second preset frequency;
当所述频谱在所述第一预设频率和所述第二预设频率的预设范围内出现峰值,则确定所述被控区域内存在鸣笛车辆。When a peak occurs in the frequency spectrum within a preset range of the first preset frequency and the second preset frequency, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,车辆确定模块401用于:In one possible implementation, the vehicle determination module 401 is configured to:
获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,区域确定模块402,包括:In a possible implementation, the area determining module 402 includes:
声音信号确定单元,用于确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;a sound signal determining unit, configured to determine a first sound signal with the largest signal energy and a second sound signal with the largest signal energy;
区域确定单元,用于根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。And an area determining unit, configured to determine an area where the whistle vehicle is located according to a source microphone of the first sound signal and a source microphone of the second sound signal.
在一种可能实现方式中,区域确定单元用于:In a possible implementation, the area determining unit is used to:
根据所述第一声音信号的来源麦克风的位置,确定第一延长线;Determining a first extension line according to a location of a source microphone of the first sound signal;
根据所述第二声音信号的来源麦克风的位置,确定第二延长线;Determining a second extension line according to a location of the source microphone of the second sound signal;
确定所述第一延长线和所述第二延长线在所述被控区域中的交点;Determining an intersection of the first extension line and the second extension line in the controlled area;
将所述被控区域中所述交点所处的子区域作为所述鸣笛车辆所在的区域。The sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
在一种可能实现方式中,车辆定位模块403,用于:In a possible implementation, the vehicle positioning module 403 is configured to:
获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
在一种可能实现方式中,该装置还包括提醒模块,用于:In a possible implementation, the device further includes a reminder module, configured to:
在所述被控区域的监控图像上突出显示鸣笛车辆所在的区域;和/或,Highlighting the area where the whistle vehicle is located on the monitored image of the controlled area; and/or,
对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图5是本申请实施例提供的一种计算机设备500的结构示意图,该计算机设备500包括存储器501、处理器502及存储在存储器501上并可在处理器502上运行的计算机可执行指令,该处理器502执行该计算机可执行指令时实现如下检测车辆鸣笛的方法:FIG. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present disclosure. The computer device 500 includes a memory 501, a processor 502, and computer executable instructions stored on the memory 501 and executable on the processor 502. The processor 502, when executing the computer executable instructions, implements the following method of detecting a whistle of a vehicle:
通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定被控区域内存在鸣笛车辆,该第一麦克风沿该被控区域内的车道设置,该第二麦克风沿该被控区域内与该车道垂直方向上设置;Determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that there is a whistle vehicle in the controlled area, the first microphone is disposed along a lane in the controlled area, and the second microphone is controlled along the second microphone Set in the area perpendicular to the lane;
根据该至少一个第一麦克风和该至少一个第二麦克风所采集的声音信号的信号能量,确定该鸣笛车辆所在的区域;Determining an area where the whistle vehicle is located according to signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone;
对该鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位该鸣笛车辆。The motion recognition is performed on the image corresponding to the area where the whistle vehicle is located, and when the preset motion is recognized in any of the vehicles, the whistle vehicle is positioned.
在一种可能实现方式中,该通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定该被控区域内存在鸣笛车辆包括:In a possible implementation manner, determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area includes:
获取该至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取该至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
确定目标声音信号,该目标声音信号是该至少一个第一声音信号和该至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
当该目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定该被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,该通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定该被控区域内存在鸣笛车辆包括:In a possible implementation manner, determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area includes:
获取该至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
获取该至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
判断该至少一个第一声音信号和该至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold exceeds a preset number;
如果达到该预设数量,则确定该被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,当该目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定该被控区域内存在鸣笛车辆包括:In a possible implementation manner, when a spectrum of the target sound signal has a peak in a preset whistle sound spectrum range, determining that the whistle vehicle exists in the controlled area includes:
将该目标声音信号变换到频域,得到该目标声音信号的频谱;Transforming the target sound signal into a frequency domain to obtain a spectrum of the target sound signal;
将该频谱分为两个频段,对该两个频段基于第一预设频率和第二预设频率进行峰值搜索;Dividing the spectrum into two frequency bands, and performing peak search on the two frequency bands based on the first preset frequency and the second preset frequency;
当该频谱在该第一预设频率和该第二预设频率的预设范围内出现峰值,则确定该被控区域内存在鸣笛车辆。When the frequency spectrum shows a peak within the preset range of the first preset frequency and the second preset frequency, it is determined that there is a whistle vehicle in the controlled area.
在一种可能实现方式中,该根据该至少一个第一麦克风和该至少一个第二麦克风所采集的声音信号的信号能量,确定该鸣笛车辆所在的区域包括:In a possible implementation, the determining, according to the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone, the area where the whistle vehicle is located includes:
确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;Determining a first sound signal having the largest signal energy and a second sound signal having the largest signal energy;
根据该第一声音信号的来源麦克风和该第二声音信号的来源麦克风的位置,确定该鸣笛车辆所在的区域。The area in which the whistle vehicle is located is determined based on the position of the source microphone of the first sound signal and the source microphone of the second sound signal.
在一种可能实现方式中,该根据该第一声音信号的来源麦克风和该第二声音信号的来源麦克风的位置,确定该鸣笛车辆所在的区域包括:In a possible implementation, the determining, according to the location of the source microphone of the first sound signal and the source microphone of the second sound signal, the area where the whistle vehicle is located includes:
根据该第一声音信号的来源麦克风的位置,确定第一延长线;Determining a first extension line according to a location of the source microphone of the first sound signal;
根据该第二声音信号的来源麦克风的位置,确定第二延长线;Determining a second extension line according to a location of the source microphone of the second sound signal;
确定该第一延长线和该第二延长线在该被控区域中的交点;Determining an intersection of the first extension line and the second extension line in the controlled area;
将该被控区域中该交点所处的子区域作为该鸣笛车辆所在的区域。The sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
在一种可能实现方式中,该对该鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆包括:In a possible implementation manner, the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, the positioning whistle vehicle includes:
获取摄像头所拍摄的该被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
在该监控图像中,确定该鸣笛车辆所在的区域对应的图像;In the monitoring image, determining an image corresponding to the area where the whistle vehicle is located;
基于预设动作的动作特征对该图像进行动作识别,当该图像中的任一车辆的图像中包括该动作特征时,将该车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles in the image, the vehicle is determined to be a whistle vehicle.
在一种可能实现方式中,在定位到鸣笛车辆之后,处理器还用于执行:In one possible implementation, after locating the whistle vehicle, the processor is further configured to:
在该被控区域的监控图像上突出显示该鸣笛车辆所在的区域;和/或,Highlighting the area where the whistle vehicle is located on the monitored image of the controlled area; and/or,
对该鸣笛车辆的车牌号码进行识别,输出识别到的该车牌号码。The license plate number of the whistle vehicle is identified, and the recognized license plate number is output.
本申请实施例还提供了一种计算机可读存储介质,当所述计算机可读存储介质中的指令由检测车辆鸣笛的装置的处理器执行时,使得检测车辆鸣笛的装置能够执行上述检测车辆鸣笛的方法。The embodiment of the present application further provides a computer readable storage medium, when the instructions in the computer readable storage medium are executed by a processor of a device for detecting a whistle of a vehicle, so that the device for detecting the whistle of the vehicle can perform the above detection The method of the vehicle whistling.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。Other embodiments of the present application will be readily apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the application, which are in accordance with the general principles of the application and include common general knowledge or common technical means in the art that are not disclosed in the disclosure. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It is to be understood that the invention is not limited to the details of the details and The scope of the present application is limited only by the accompanying claims.

Claims (24)

  1. 一种检测车辆鸣笛的方法,其特征在于,所述方法应用于计算机设备上,所述方法包括:A method of detecting a whistle of a vehicle, the method being applied to a computer device, the method comprising:
    通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定被控区域内存在鸣笛车辆,所述第一麦克风沿所述被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置;Determining the presence of a whistle vehicle in the controlled area by the sound signal collected by the at least one first microphone and the at least one second microphone, the first microphone being disposed along a lane in the controlled area, the second microphone edge The controlled area is disposed in a direction perpendicular to the lane;
    根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;Determining an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
    对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位所述鸣笛车辆。Performing motion recognition on an image corresponding to the area where the whistle vehicle is located, and positioning the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
  2. 根据权利要求1所述的方法,其特征在于,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:The method according to claim 1, wherein the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
    当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
  3. 据权利要求1所述的方法,其特征在于,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:The method of claim 1, wherein the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, the presence of the whistle vehicle in the controlled area comprises:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
    如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
  4. 根据权利要求2所述的方法,其特征在于,当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆包括:The method according to claim 2, wherein when the spectrum of the target sound signal has a peak in a predetermined whistle sound spectrum range, determining that the whistle vehicle exists in the controlled area comprises:
    将所述目标声音信号变换到频域,得到所述目标声音信号的频谱;Transforming the target sound signal into a frequency domain to obtain a spectrum of the target sound signal;
    将所述频谱分为两个频段,对所述两个频段基于第一预设频率和第二预设频率进行峰值搜索;Dividing the spectrum into two frequency bands, and performing peak search on the two frequency bands based on the first preset frequency and the second preset frequency;
    当所述频谱在所述第一预设频率和所述第二预设频率的预设范围内出现峰值,则确定所述被控区域内存在鸣笛车辆。When a peak occurs in the frequency spectrum within a preset range of the first preset frequency and the second preset frequency, it is determined that there is a whistle vehicle in the controlled area.
  5. 根据权利要求2或3所述的方法,其特征在于,所述根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域包括:The method according to claim 2 or 3, wherein the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone determines the location of the whistle vehicle The area includes:
    确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;Determining a first sound signal having the largest signal energy and a second sound signal having the largest signal energy;
    根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。Determining an area in which the whistle vehicle is located based on a position of a source microphone of the first sound signal and a source microphone of the second sound signal.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域包括:The method according to claim 5, wherein the determining, according to the location of the source microphone of the first sound signal and the source microphone of the second sound signal, the area in which the whistle vehicle is located comprises:
    根据所述第一声音信号的来源麦克风的位置,确定第一延长线;Determining a first extension line according to a location of a source microphone of the first sound signal;
    根据所述第二声音信号的来源麦克风的位置,确定第二延长线;Determining a second extension line according to a location of the source microphone of the second sound signal;
    确定所述第一延长线和所述第二延长线在所述被控区域中的交点;Determining an intersection of the first extension line and the second extension line in the controlled area;
    将所述被控区域中所述交点所处的子区域作为所述鸣笛车辆所在的区域。The sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
  7. 根据权利要求1所述的方法,其特征在于,所述对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆包括:The method according to claim 1, wherein the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, the positioning of the whistle vehicle includes:
    获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
    在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
    基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
  8. 根据权利要求1所述的方法,其特征在于,在定位到鸣笛车辆之后,所述方法还包括:The method of claim 1 wherein after the location of the whistle vehicle, the method further comprises:
    在所述被控区域的监控图像上突出显示所述鸣笛车辆所在的区域;和/或,Highlighting an area where the whistle vehicle is located on a monitored image of the controlled area; and/or,
    对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  9. 一种检测车辆鸣笛的装置,其特征在于,所述装置包括:A device for detecting a whistle of a vehicle, characterized in that the device comprises:
    车辆确定模块,用于通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆;所述第一麦克风沿被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置;a vehicle determining module, configured to determine, by the sound signal collected by the at least one first microphone and the at least one second microphone, a whistle vehicle in the controlled area; the first microphone is disposed along a lane in the controlled area, The second microphone is disposed along the vertical direction of the lane in the controlled area;
    区域确定模块,用于根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;a region determining module, configured to determine an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
    车辆定位模块,用于对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆。The vehicle positioning module is configured to perform motion recognition on an image corresponding to the area where the whistle vehicle is located, and locate the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
  10. 根据权利要求9所述的装置,其特征在于,所述车辆确定模块用于:The apparatus according to claim 9, wherein said vehicle determination module is configured to:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量最大的信号;Determining a target sound signal, wherein the target sound signal is a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
    当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
  11. 根据权利要求9所述的装置,其特征在于,所述车辆确定模块用于:The apparatus according to claim 9, wherein said vehicle determination module is configured to:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
    如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
  12. 根据权利要求10或11所述的装置,其特征在于,所述区域确定模块包括:The device according to claim 10 or 11, wherein the area determining module comprises:
    声音信号确定单元,用于确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;a sound signal determining unit, configured to determine a first sound signal with the largest signal energy and a second sound signal with the largest signal energy;
    区域确定单元,用于根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。And an area determining unit, configured to determine an area where the whistle vehicle is located according to a source microphone of the first sound signal and a source microphone of the second sound signal.
  13. 根据权利要求9所述的装置,其特征在于,所述车辆定位模块用于:The apparatus according to claim 9, wherein said vehicle positioning module is configured to:
    获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
    在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
    基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中包括所述动作特征时,将所述车辆确定为鸣笛车辆。The motion recognition of the image is performed based on the motion feature of the preset motion, and when the motion feature is included in the image of any of the vehicles, the vehicle is determined to be a whistle vehicle.
  14. 根据权利要求9所述的装置,其特征在于,所述装置还包括提醒模块,用于:The device according to claim 9, wherein the device further comprises a reminding module, configured to:
    在所述被控区域的监控图像上突出显示所述鸣笛车辆所在的区域;和/或,Highlighting an area where the whistle vehicle is located on a monitored image of the controlled area; and/or,
    对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  15. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可执行指令,其特征在于,所述处理器用于执行所述计算机可执行指令,实现如下方法:A computer device comprising a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the processor is configured to execute the computer executable instructions The following method:
    通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定被控区域内存在鸣笛车辆,所述第一麦克风沿所述被控区域内的车道设置,所述第二麦克风沿所述被控区域内与所述车道垂直方向上设置;Determining the presence of a whistle vehicle in the controlled area by the sound signal collected by the at least one first microphone and the at least one second microphone, the first microphone being disposed along a lane in the controlled area, the second microphone edge The controlled area is disposed in a direction perpendicular to the lane;
    根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域;Determining an area where the whistle vehicle is located according to signal energy of a sound signal collected by the at least one first microphone and the at least one second microphone;
    对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位所述鸣笛车辆。Performing motion recognition on an image corresponding to the area where the whistle vehicle is located, and positioning the whistle vehicle when it is recognized that there is a preset action in any of the vehicles.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:The computer device according to claim 15, wherein the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    确定目标声音信号,所述目标声音信号是所述至少一个第一声音信号和所述至少一个第 二声音信号中信号能量最大的信号;Determining a target sound signal, the target sound signal being a signal having the highest signal energy of the at least one first sound signal and the at least one second sound signal;
    当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆。When the spectrum of the target sound signal peaks in the preset whistle sound spectrum range, it is determined that there is a whistle vehicle in the controlled area.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述通过至少一个第一麦克风和至少一个第二麦克风所采集的声音信号,确定所述被控区域内存在鸣笛车辆包括:The computer device according to claim 15, wherein the determining, by the sound signal collected by the at least one first microphone and the at least one second microphone, that the whistle vehicle exists in the controlled area comprises:
    获取所述至少一个第一麦克风采集的至少一个第一声音信号;Obtaining at least one first sound signal collected by the at least one first microphone;
    获取所述至少一个第二麦克风采集的至少一个第二声音信号;Obtaining at least one second sound signal collected by the at least one second microphone;
    判断所述至少一个第一声音信号和所述至少一个第二声音信号中信号能量超过预设阈值的声音信号数量是否达到预设数量;Determining whether the number of sound signals of the at least one first sound signal and the at least one second sound signal exceeding a preset threshold reaches a preset number;
    如果达到所述预设数量,则确定所述被控区域内存在鸣笛车辆。If the preset number is reached, it is determined that there is a whistle vehicle in the controlled area.
  18. 根据权利要求16所述的计算机设备,其特征在于,当所述目标声音信号的频谱在预设的鸣笛声频谱范围中出现峰值,则确定所述被控区域内存在鸣笛车辆包括:The computer device according to claim 16, wherein when the spectrum of the target sound signal has a peak in a predetermined whistle sound spectrum range, determining that the whistle vehicle exists in the controlled area comprises:
    将所述目标声音信号变换到频域,得到所述目标声音信号的频谱;Transforming the target sound signal into a frequency domain to obtain a spectrum of the target sound signal;
    将所述频谱分为两个频段,对所述两个频段基于第一预设频率和第二预设频率进行峰值搜索;Dividing the spectrum into two frequency bands, and performing peak search on the two frequency bands based on the first preset frequency and the second preset frequency;
    当所述频谱在所述第一预设频率和所述第二预设频率的预设范围内出现峰值,则确定所述被控区域内存在鸣笛车辆。When a peak occurs in the frequency spectrum within a preset range of the first preset frequency and the second preset frequency, it is determined that there is a whistle vehicle in the controlled area.
  19. 根据权利要求16或17所述的计算机设备,其特征在于,所述根据所述至少一个第一麦克风和所述至少一个第二麦克风所采集的声音信号的信号能量,确定所述鸣笛车辆所在的区域包括:The computer device according to claim 16 or 17, wherein the signal energy of the sound signal collected by the at least one first microphone and the at least one second microphone determines that the whistle vehicle is located The areas include:
    确定信号能量最大的第一声音信号以及信号能量最大的第二声音信号;Determining a first sound signal having the largest signal energy and a second sound signal having the largest signal energy;
    根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域。Determining an area in which the whistle vehicle is located based on a position of a source microphone of the first sound signal and a source microphone of the second sound signal.
  20. 根据权利要求19所述的计算机设备,其特征在于,所述根据所述第一声音信号的来源麦克风和所述第二声音信号的来源麦克风的位置,确定所述鸣笛车辆所在的区域包括:The computer device according to claim 19, wherein the determining, according to the location of the source microphone of the first sound signal and the source microphone of the second sound signal, the area in which the whistle vehicle is located comprises:
    根据所述第一声音信号的来源麦克风的位置,确定第一延长线;Determining a first extension line according to a location of a source microphone of the first sound signal;
    根据所述第二声音信号的来源麦克风的位置,确定第二延长线;Determining a second extension line according to a location of the source microphone of the second sound signal;
    确定所述第一延长线和所述第二延长线在所述被控区域中的交点;Determining an intersection of the first extension line and the second extension line in the controlled area;
    将所述被控区域中所述交点所处的子区域作为所述鸣笛车辆所在的区域。The sub-area in which the intersection is located in the controlled area is used as the area where the whistle vehicle is located.
  21. 根据权利要求15所述的计算机设备,其特征在于,所述对所述鸣笛车辆所在的区域对应的图像进行动作识别,当识别到任一车辆内有预设动作时,定位鸣笛车辆包括:The computer device according to claim 15, wherein the image corresponding to the area where the whistle vehicle is located is motion-recognized, and when it is recognized that there is a preset action in any of the vehicles, the positioning of the whistle vehicle includes :
    获取摄像头所拍摄的所述被控区域的监控图像;Obtaining a monitoring image of the controlled area captured by the camera;
    在所述监控图像中,确定所述鸣笛车辆所在的区域对应的图像;Determining, in the monitoring image, an image corresponding to an area where the whistle vehicle is located;
    基于预设动作的动作特征对所述图像进行动作识别,当所述图像中的任一车辆的图像中 包括所述动作特征时,将所述车辆确定为鸣笛车辆。The image is motion-recognized based on the action feature of the preset action, and when the action feature is included in the image of any of the images, the vehicle is determined to be a whistle vehicle.
  22. 根据权利要求15所述的计算机设备,其特征在于,在定位到鸣笛车辆之后,所述处理器还用于执行:The computer apparatus according to claim 15, wherein said processor is further configured to: after positioning the whistle vehicle:
    在所述被控区域的监控图像上突出显示所述鸣笛车辆所在的区域;和/或,Highlighting an area where the whistle vehicle is located on a monitored image of the controlled area; and/or,
    对所述鸣笛车辆的车牌号码进行识别,输出识别到的所述车牌号码。The license plate number of the whistle vehicle is identified, and the identified license plate number is output.
  23. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有指令,所述指令被处理器执行以完成权利要求1-8任一项所述的检测车辆鸣笛的方法。A computer readable storage medium, wherein the computer readable storage medium stores instructions, the instructions being executed by a processor to perform the method of detecting a whistle of a vehicle according to any one of claims 1-8 .
  24. 一种检测车辆鸣笛的系统,其特征在于,所述系统包括:A system for detecting a whistle of a vehicle, characterized in that the system comprises:
    沿被控区域内的车道设置的至少一个第一麦克风;At least one first microphone disposed along a lane within the controlled area;
    沿所述被控区域内与所述车道垂直方向上设置的至少一个第二麦克风;Having at least one second microphone disposed in a direction perpendicular to the lane in the controlled area;
    用于监控所述被控区域的摄像头;a camera for monitoring the controlled area;
    如权利要求15至权利要求22任一项所述的计算机设备。A computer device as claimed in any one of claims 15 to 22.
PCT/CN2018/101784 2017-12-29 2018-08-22 Vehicle honking detection method, device, apparatus, storage medium, and system WO2019128263A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711478558.0A CN109993977A (en) 2017-12-29 2017-12-29 Detect the method, apparatus and system of vehicle whistle
CN201711478558.0 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019128263A1 true WO2019128263A1 (en) 2019-07-04

Family

ID=67065033

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101784 WO2019128263A1 (en) 2017-12-29 2018-08-22 Vehicle honking detection method, device, apparatus, storage medium, and system

Country Status (2)

Country Link
CN (1) CN109993977A (en)
WO (1) WO2019128263A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915918A (en) * 2020-06-19 2020-11-10 中国计量大学 System and method for calibrating automobile whistling snapshot device on site based on dynamic characteristics
CN112649788A (en) * 2020-12-30 2021-04-13 华东理工大学 Distributed automobile whistling sound source real-time rapid positioning method, system, device, processor and storage medium suitable for motion sound source
CN113591725A (en) * 2021-08-03 2021-11-02 世邦通信股份有限公司 Whistling vehicle extraction method, device, equipment and medium
CN115117476A (en) * 2022-05-18 2022-09-27 东莞市伟思特智能科技有限公司 New energy automobile lithium battery buckle voiceprint testing method and detection device thereof
CN115643547A (en) * 2022-08-25 2023-01-24 广州汽车集团股份有限公司 Whistling prompting method and device, vehicle and storage medium
CN116990754A (en) * 2023-09-22 2023-11-03 海宁市微纳感知计算技术有限公司 Method and device for positioning whistle sound source, electronic equipment and readable storage medium
WO2024077366A1 (en) * 2022-10-11 2024-04-18 Perkons S/A System and method for detecting motor vehicle noise and corresponding computer-readable memory

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111815958B (en) * 2020-06-18 2022-11-29 安徽超清科技股份有限公司 Traffic electronic police snapshot control device and method
CN114384472B (en) * 2021-10-15 2022-09-30 北京能源集团有限责任公司 Mobile robot sound source positioning method, robot and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030323A (en) * 2007-04-23 2007-09-05 凌子龙 Automatic evidence collecting device on crossroad for vehicle horning against traffic regulation
JP5664078B2 (en) * 2010-09-27 2015-02-04 富士通株式会社 Imaging apparatus, image evaluation method, and focus adjustment control program
CN205028459U (en) * 2015-08-06 2016-02-10 杭州智诚惠通科技有限公司 Detection device that whistles breaks law in city
CN106355893A (en) * 2016-10-28 2017-01-25 东方智测(北京)科技有限公司 Method and system for real-time positioning of whistling motor vehicle

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8818806B2 (en) * 2010-11-30 2014-08-26 JVC Kenwood Corporation Speech processing apparatus and speech processing method
CN102722983B (en) * 2012-06-13 2014-03-12 浙江大学 Audio and video based detection system and method for horn blowing of motor vehicle in violation of regulations
US9424743B2 (en) * 2012-10-12 2016-08-23 Tata Consultancy Services Limited Real-time traffic detection
CN104794894B (en) * 2015-01-29 2018-02-27 青岛智能产业技术研究院 A kind of vehicle whistle noise monitoring arrangement, system and method
CN104867492B (en) * 2015-05-07 2019-09-03 科大讯飞股份有限公司 Intelligent interactive system and method
CN105096606A (en) * 2015-08-31 2015-11-25 成都众孚理想科技有限公司 Automobile whistling and red light running snapshot system
CN106448183A (en) * 2016-11-19 2017-02-22 郑州玄机器人有限公司 An automobile horn-blowing monitor system, apparatus and method
CN106682601B (en) * 2016-12-16 2019-11-15 华南理工大学 A kind of driver's violation call detection method based on multidimensional information Fusion Features

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030323A (en) * 2007-04-23 2007-09-05 凌子龙 Automatic evidence collecting device on crossroad for vehicle horning against traffic regulation
JP5664078B2 (en) * 2010-09-27 2015-02-04 富士通株式会社 Imaging apparatus, image evaluation method, and focus adjustment control program
CN205028459U (en) * 2015-08-06 2016-02-10 杭州智诚惠通科技有限公司 Detection device that whistles breaks law in city
CN106355893A (en) * 2016-10-28 2017-01-25 东方智测(北京)科技有限公司 Method and system for real-time positioning of whistling motor vehicle

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915918A (en) * 2020-06-19 2020-11-10 中国计量大学 System and method for calibrating automobile whistling snapshot device on site based on dynamic characteristics
CN112649788A (en) * 2020-12-30 2021-04-13 华东理工大学 Distributed automobile whistling sound source real-time rapid positioning method, system, device, processor and storage medium suitable for motion sound source
CN112649788B (en) * 2020-12-30 2023-11-17 华东理工大学 Distributed automobile whistle sound source real-time rapid positioning method capable of adapting to moving sound source
CN113591725A (en) * 2021-08-03 2021-11-02 世邦通信股份有限公司 Whistling vehicle extraction method, device, equipment and medium
CN113591725B (en) * 2021-08-03 2023-08-22 世邦通信股份有限公司 Method, device, equipment and medium for extracting whistle vehicle
CN115117476A (en) * 2022-05-18 2022-09-27 东莞市伟思特智能科技有限公司 New energy automobile lithium battery buckle voiceprint testing method and detection device thereof
CN115643547A (en) * 2022-08-25 2023-01-24 广州汽车集团股份有限公司 Whistling prompting method and device, vehicle and storage medium
WO2024077366A1 (en) * 2022-10-11 2024-04-18 Perkons S/A System and method for detecting motor vehicle noise and corresponding computer-readable memory
CN116990754A (en) * 2023-09-22 2023-11-03 海宁市微纳感知计算技术有限公司 Method and device for positioning whistle sound source, electronic equipment and readable storage medium
CN116990754B (en) * 2023-09-22 2023-12-22 海宁市微纳感知计算技术有限公司 Method and device for positioning whistle sound source, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN109993977A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
WO2019128263A1 (en) Vehicle honking detection method, device, apparatus, storage medium, and system
US10977917B2 (en) Surveillance camera system and surveillance method
US11354907B1 (en) Sonic sensing
CN104519318B (en) Frequency image monitoring system and surveillance camera
WO2018223955A1 (en) Target monitoring method, target monitoring device, camera and computer readable medium
JP4569190B2 (en) Suspicious person countermeasure system and suspicious person detection device
WO2019127274A1 (en) Alarm method and device for criminal activity, storage medium and server
GB2542686A (en) Video data analyzing method and apparatus and parking lot monitoring system
US9185456B2 (en) Hybrid active and passive people metering for audience measurement
CN110889351B (en) Video detection method, device, terminal equipment and readable storage medium
US20170309149A1 (en) A portable alerting system and a method thereof
CN110580808B (en) Information processing method and device, electronic equipment and intelligent traffic system
TWI507661B (en) Image surveillance system and method thereof
CN108162858B (en) Vehicle-mounted monitoring device and method thereof
CN106897655A (en) The detection means on parking stall, method and image processing equipment
KR101384781B1 (en) Apparatus and method for detecting unusual sound
WO2018210192A1 (en) Unmanned aerial vehicle monitoring method and audio/video linkage apparatus
KR101107120B1 (en) Device for sound source tracing and object recognition and method for sound source tracing and object recognition
CN105139481A (en) Vehicle speaker recognition system
TWI476735B (en) Abnormal classification detection method for a video camera and a monitering host with video image abnormal detection
JP2017091381A (en) Security device and security system
CN110310387A (en) A kind of intelligent travelling crane recorder, system and vehicle based on the identification of YOLO image
KR101951900B1 (en) Method and Apparatus for Detecting Object in an Image
CN115880634A (en) Vehicle monitoring method, apparatus and computer-readable storage medium
CN110633653B (en) Doubling auxiliary system based on streaming media inside rearview mirror

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18897473

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18897473

Country of ref document: EP

Kind code of ref document: A1