WO2021129611A1 - Monitoring scenario detection method and apparatus, and electronic device - Google Patents

Monitoring scenario detection method and apparatus, and electronic device Download PDF

Info

Publication number
WO2021129611A1
WO2021129611A1 PCT/CN2020/138306 CN2020138306W WO2021129611A1 WO 2021129611 A1 WO2021129611 A1 WO 2021129611A1 CN 2020138306 W CN2020138306 W CN 2020138306W WO 2021129611 A1 WO2021129611 A1 WO 2021129611A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic signal
scene
monitoring
preset
state
Prior art date
Application number
PCT/CN2020/138306
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 WO2021129611A1 publication Critical patent/WO2021129611A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/58Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
    • G06V20/584Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads of vehicle lights or traffic lights

Definitions

  • This application relates to the field of intelligent transportation technology, and in particular to a monitoring scene detection method, device, and electronic equipment.
  • the monitoring system needs to obtain traffic signals in the monitoring scenario. For example, in the process of taking images of violations by electronic police, it is necessary to determine whether the vehicle violates the rules based on traffic signals.
  • manual configuration can be used to enable the monitoring system to obtain information related to traffic signals in the monitoring scene. For example, manually mark the location and type of traffic signals such as stop lines, guide lines, and zebra crossings in the monitoring image, and monitor The system determines whether the vehicle violates regulations based on the location and type of the marked traffic signal.
  • the manually configured traffic signal may not match the actual application scenario, that is, the traffic signal obtained by the monitoring system does not match the actual traffic signal, so the monitoring system cannot work normally.
  • the police may mistakenly photograph illegal and scrapped images that cannot be used as evidence of vehicle violations.
  • the purpose of the embodiments of this application is to provide a monitoring scene detection method, device, and electronic equipment to automatically detect abnormalities in the monitoring scene, so that relevant personnel can respond in time, and reduce the impact of abnormalities in the monitoring scene on the monitoring system The impact of this, thereby improving the stability of the monitoring system.
  • the specific technical solutions are as follows:
  • a monitoring scene detection method includes:
  • the scene information determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene
  • the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
  • each traffic signal indicated by the scene information determines whether there is a traffic signal with a completeness lower than a preset completeness threshold among the various traffic signals in the monitoring scene;
  • the method further includes:
  • the scene information indicates that the completeness of at least one traffic marking is lower than the preset completeness threshold, send warning information indicating that the traffic marking is stained in the monitoring scene to the preset terminal.
  • the method further includes:
  • scene information indicates that the integrity of at least one traffic sign is lower than the preset integrity threshold, sending alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed to the preset terminal.
  • the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
  • each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
  • the determining whether the state of each traffic signal indicated by the scene information is consistent with the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene includes:
  • the method also includes:
  • the determining whether each traffic signal represented by the scene information is consistent with each traffic signal represented by a traffic signal parameter preset for the monitoring scene includes:
  • the method also includes:
  • an alarm information used to indicate that the monitoring device installed in the monitoring scene is offset is sent to the preset terminal.
  • the method further includes:
  • the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
  • the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  • the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
  • the scene information determine whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold
  • the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
  • the method further includes:
  • the target traffic signal is a traffic signal that does not comply with a preset rule in the monitoring scene.
  • the method after determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene, the method also includes:
  • the monitoring equipment is monitored according to the scene information of the monitoring scene. Configure the parameters for correction.
  • the correcting the configuration parameters of the monitoring device according to the scene information of the monitoring scene includes:
  • the configuration parameter of the monitoring device is changed to the correction configuration parameter.
  • the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
  • each traffic signal indicated by the scene information determines whether there is a traffic signal located in the area where a preset abnormal event occurs in the monitoring scene;
  • a monitoring scene detection device including:
  • the image recognition module is configured to perform image recognition on the monitoring image of the monitoring scene to obtain scene information of the monitoring scene, where the scene information is used to indicate the status of each traffic signal in the monitoring scene;
  • the rule matching module is configured to determine, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene;
  • the abnormality monitoring module is configured to determine that the monitoring scene is abnormal if there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  • the rule matching module is specifically configured to determine whether there is a low integrity in each traffic signal in the monitoring scene according to the state of each traffic signal indicated by the scene information Traffic signals at a preset integrity threshold;
  • the abnormality monitoring module is further configured to determine whether there are any traffic signals in the monitoring scene based on the status of each traffic signal indicated by the scene information After the traffic signal whose integrity is lower than the preset integrity threshold, if the scene information indicates that the integrity of at least one traffic marking is lower than the preset integrity threshold, send to the preset terminal indicating the monitoring scene Warning information of traffic marking defacement.
  • the abnormality monitoring module is further configured to determine whether there are any traffic signals in the monitoring scene based on the status of each traffic signal indicated by the scene information After a traffic signal whose integrity is lower than the preset integrity threshold, if the integrity of at least one traffic sign indicated by the scene information is lower than the preset integrity threshold, send to the preset terminal a message indicating that the traffic signal is set at the preset integrity threshold.
  • the monitoring equipment in the monitoring scene sets up unreasonable alarm information.
  • the rule matching module is specifically configured to determine the status of each traffic signal represented by the scene information and the status of each traffic signal represented by the traffic signal parameters preset for the monitoring scene. Whether the status is consistent;
  • each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
  • the rule matching module is specifically configured to determine whether the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter;
  • the abnormality detection module is further configured to send to a preset terminal a traffic signal indicating the traffic signal in the monitoring scene if the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter Missing warning information, or sending warning information indicating that the traffic signal parameter setting is unreasonable to the preset terminal.
  • the rule matching module is specifically configured to determine whether the position of each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter;
  • the abnormality monitoring module is specifically configured to send to a preset terminal the monitoring set in the monitoring scene if each traffic signal indicated by the scene information has an offset relative to each traffic signal indicated by the traffic signal parameter. Alarm information that the device has shifted.
  • the device further includes a signal light state acquisition module, which is used to acquire the state information sent by the signal light detector set in the monitoring scene, and the state information is used to indicate that the signal light detector detects The status of each semaphore that arrives;
  • the rule matching module is specifically configured to determine whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information
  • the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  • the rule matching module is specifically configured to determine, according to the scene information, whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
  • the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
  • the device further includes a monitoring system management module, which is configured to prohibit capturing an event associated with a target traffic signal after the monitoring scene is determined to be abnormal, and the target traffic signal is the target traffic signal. Traffic signals that do not comply with preset rules in the monitoring scene.
  • the device further includes a parameter correction module configured to determine the state of each traffic signal represented by the scene information and the preset for the monitoring scene After the states of the various traffic signals indicated by the traffic signal parameters are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, Correct the configuration parameters of the monitoring device according to the scene information of the monitoring scene.
  • a parameter correction module configured to determine the state of each traffic signal represented by the scene information and the preset for the monitoring scene After the states of the various traffic signals indicated by the traffic signal parameters are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, Correct the configuration parameters of the monitoring device according to the scene information of the monitoring scene.
  • the parameter correction module is specifically configured to generate configuration parameters matching the scene information according to the scene information of the monitoring scene, as the correction configuration parameters;
  • the configuration parameter of the monitoring device is changed to the correction configuration parameter.
  • the rule matching module is specifically configured to determine whether there are any traffic signals located in the area where a preset abnormal event occurs in the monitoring scene according to the position of each traffic signal indicated by the scene information.
  • Traffic signal
  • an electronic device including:
  • Memory used to store computer programs
  • the processor is configured to implement the method steps in any one of the above-mentioned first aspects when executing the program stored in the memory.
  • a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium. Method steps.
  • the monitoring scene detection method, device, and electronic equipment provided by the embodiments of the application can digitize the relevant information of the monitoring scene through image recognition, so as to automatically detect abnormalities in the monitoring scene, so that relevant personnel can respond in time. Reduce the impact of abnormalities in the monitoring scene on the monitoring system, thereby improving the stability of the monitoring system.
  • any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
  • FIG. 1 is a schematic flowchart of a monitoring scene detection method provided by an embodiment of the application
  • FIG. 2 is a schematic flowchart of a method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
  • FIG. 3 is a schematic diagram of another flow chart of a method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
  • FIG. 4 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
  • FIG. 5 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
  • FIG. 6 is a schematic flowchart of another monitoring scene detection method provided by an embodiment of the application.
  • FIG. 7 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
  • FIG. 8a is a schematic structural diagram of a monitoring scene detection device provided by an embodiment of this application.
  • FIG. 8b is a schematic diagram of another structure of a monitoring scene detection device provided by an embodiment of the application.
  • FIG. 8c is a schematic diagram of another structure of a monitoring scene detection device provided by an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • Fig. 1 is a schematic diagram of a possible flow of a monitoring scene provided by an embodiment of the application.
  • This method can be used for any electronic device with a monitoring scene detection function in the monitoring system. For example, it may be Applied to the camera as the front end, it can also be applied to the server as the back end. Methods can include:
  • S101 Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
  • the scene information is used to indicate the status of each traffic signal in the monitoring scene.
  • the scene information can be obtained by image recognition of the surveillance images taken at a certain time, or it can be obtained by image recognition of the surveillance images taken at multiple different moments, for example, it can be obtained by recognizing the surveillance images taken at a certain time. Perform image recognition on multiple video frames in the surveillance video to obtain scene information.
  • the algorithm used for image recognition can be different according to different application scenarios. For example, it can be an end-to-end mapping from the surveillance image to the scene information by using a pre-trained neural network. In other possible embodiments, the image may also be recognized using a model obtained based on traditional machine learning, which is not limited in this embodiment.
  • the traffic signal may include one or more of traffic markings, traffic signs, and signal lights.
  • Traffic markings can include lane lines, stop lines, ground guidance lines, zebra crossings, and so on.
  • Traffic signals can include warning signs, prohibition signs, and instruction signs.
  • the state of the traffic signal may refer to one or more attributes of the traffic signal that can be obtained through image recognition.
  • the state of the traffic signal may include the location and/or category of the traffic signal.
  • the status of different types of traffic signals can be expressed in different ways.
  • the position and category of the traffic markings or traffic signs can be used to indicate the traffic markings or traffic signs.
  • the state, and the coordinates of the four vertices of the smallest bounding rectangle of the area where the traffic line or traffic sign is located in the surveillance image can be used to indicate the location of the traffic line or traffic sign, the traffic line or traffic sign
  • the category may be expressed in the form of a label.
  • the label “1” may indicate a lane line
  • the label “2” may indicate a stop line
  • the label “3” may indicate a ground guide line.
  • the color of the signal light may be used to indicate the state of the signal light.
  • S102 According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  • the preset rules can be set by the user according to actual needs or experience. For example, in some application scenarios, there may be certain requirements for the clarity of the traffic signal in the image, and it can be to determine whether the clarity of each traffic signal meets the requirement. If the clarity of the traffic signal does not meet the requirement, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
  • the reason why the traffic signal does not comply with the preset rules may be abnormality of the traffic signal itself, such as traffic markings and traffic signs being defaced, or the failure of the traffic signal light to prevent normal switching, or it may be set in the monitoring system.
  • the monitoring equipment of the scene is abnormal, such as the position and orientation angle of the monitoring equipment installed in the monitoring scene is offset from the installation position, and the installation position of the monitoring equipment installed in the monitoring scene is unreasonable, resulting in the captured traffic signs, The traffic marking is incomplete.
  • the traffic signals that the monitoring system recognizes from the monitoring scene may not be accurate enough. Based on the inaccurate traffic signals, the monitoring system cannot work normally. Therefore, it can be considered that the monitoring scenario in this case is abnormal.
  • Figure 2 is a schematic flow chart of a traffic signal detection method applied to an electronic police monitoring scene provided by an embodiment of the application, and the method includes:
  • S201 Identify the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
  • S202 Determine, according to the status of each traffic signal indicated by the scene information, whether there is a traffic signal with a completeness lower than a preset completeness threshold in the monitoring scene.
  • the degree of completeness may indicate how complete the shape of the traffic signal represented by the scene information is compared to the theoretical shape of the traffic signal.
  • the white solid line is theoretically a continuous and uninterrupted white line segment with a certain line width.
  • the monitoring image at that position is a continuous and uninterrupted white line segment.
  • the white line segment with a certain line width can be considered to be relatively complete. If the monitoring image at this position is a white line segment with more non-white areas (such as areas with road color), it can be considered that the completeness of the white solid line is relatively low.
  • the left turn indicator is theoretically a circular pattern with a white border and a blue background, and there is a left turn arrow in the middle of the pattern.
  • the monitor image at that position is With a white border and blue background and a circular pattern with a left turn arrow in the middle, it can be considered that the completeness of the left turn indicator is relatively high.
  • the surveillance image at this position is a semicircular pattern with a white border and a blue background, and there are some left-turn arrows in the middle, it can be considered that the completeness of the left-turn indicator is relatively low.
  • the integrity threshold can be set according to the actual needs or experience of the user. The lower the integrity threshold, the lower the probability that an abnormality in the monitoring scene is not detected. The higher the integrity threshold, the lower the possibility of erroneously determining a normal monitoring scene as abnormal. And for different traffic signals, different integrity thresholds can be set, which is not limited in this embodiment.
  • the result obtained by determining whether there is a traffic signal whose integrity is lower than the preset integrity threshold in the monitoring scene can be a binarized signal used to indicate whether there is a traffic signal whose integrity is below the preset integrity threshold in the monitoring scene Numerical value, for example, the output result of "Yes” means that there is a traffic signal whose integrity is lower than the preset integrity threshold in the monitored scene, and the output result of "No” means that there is no traffic signal whose integrity is below the preset integrity threshold in the monitored scene signal.
  • the output result can also be a collection of all traffic signals whose completeness is lower than the preset completeness threshold in the monitoring scene.
  • the output result can be ⁇ signal light, lane line ⁇ , which means that the completeness of the signal light and lane line in the monitoring scene is lower than the preset completeness threshold.
  • Set the integrity threshold The integrity of traffic signals other than the signal lights and lane lines is not lower than the preset integrity threshold. If the set is not empty, it can be considered that there is integrity in the monitoring scene below the preset integrity threshold. If the set is an empty set, it can be considered that there are no traffic signals with completeness lower than the preset completeness threshold in the monitoring scene.
  • the integrity of a traffic signal is lower than the integrity threshold, it can be considered that there is less information about the traffic signal in the surveillance image, that is, it is difficult to accurately identify the traffic signal in the surveillance image. Therefore, it is difficult to use the traffic signal as a credible criterion in the process of judging whether the vehicle is in violation of the regulations based on the monitoring image.
  • the reasons that cause the integrity of the traffic signal indicated by the scene information to be lower than the preset integrity threshold may be different.
  • the traffic markings may be defaced
  • the traffic signs may be defaced, or it may be caused by the unreasonable installation of monitoring equipment in the monitoring scene.
  • it may be due to the unreasonable erection of the monitoring equipment, which results in the part of the traffic sign being in a blind spot of the monitoring equipment.
  • FIG. 3 is a schematic diagram of another flow chart of a traffic signal detection method applied to a monitoring scene of an electronic police according to an embodiment of the application, and the method includes:
  • S301 Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
  • S302 Determine whether the state of each traffic signal indicated by the scene information is consistent with the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene.
  • the traffic signal parameters can be manually pre-configured.
  • the state of the traffic signal indicated by the scene information is inconsistent with the state of the traffic signal indicated by the traffic signal parameter, which may mean that the state of the traffic signal indicated by the scene information is missing from the state of the traffic signal indicated by the traffic signal parameter, and/ Or, the position of the traffic signal indicated by the scene information is offset from the position of the same type of traffic signal indicated by the traffic signal parameter. For example, if the scene information represents the status of 3 lanes in the monitoring scene, and the traffic signal parameter represents the status of 4 lanes in the monitoring scene, it can be considered that the status of the traffic signal represented by the scene information is relative to that represented by the traffic signal parameter.
  • the state of the traffic signal is missing (the state of a lane line is missing), so the state of the traffic signal represented by the scene information is inconsistent with the state of the traffic signal represented by the traffic signal parameters.
  • the scene information indicates that there is a left turn indicator in the surveillance scene, and the sign is located at position A
  • the traffic signal parameter indicates that there is a left turn indicator in the surveillance scene
  • the sign is located at position B
  • the positions A and B are two.
  • the state of the traffic signal represented by the scene information is different from the state of the traffic signal represented by the traffic signal parameters.
  • the state of the traffic signal indicated by the scene information is different from the state of the traffic signal indicated by the traffic signal parameter, it means that the pre-configured traffic signal parameters for the monitoring scene may be unreasonable , Working in accordance with unreasonable traffic signal parameters may cause the monitoring system to fail to work normally.
  • the state of the traffic signal indicated by the scene information is different from the state of the traffic signal indicated by the traffic signal parameter, it can be considered that the traffic signal of the monitored scene does not conform to the preset rule.
  • the configuration of the monitoring equipment can be configured according to the scene information of the monitoring scene The parameters are corrected.
  • it may be based on the scene information of the monitoring scene to generate configuration parameters matching the scene information as the correction configuration parameters. And change the configuration parameters of the monitoring equipment to correction configuration parameters. For example, assuming that the scene information of the monitoring scene indicates that the solid white line is located at position A in the monitoring scene, and the configuration parameter indicates that the solid white line is located at position B, then a configuration parameter indicating that the solid white line is located at position A is generated as a correction configuration parameter , And use the correction configuration parameter to replace the current configuration parameter.
  • FIG. 4 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application, and the method includes:
  • S401 Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
  • This step is the same as S101, and you can refer to the previous description about S101.
  • S402 Acquire status information sent by a signal light detector set in a monitoring scene.
  • the status information is used to indicate the status of each signal light detected by the signal light.
  • the signal light detector may be integrated on the camera, or it may be integrated on the signal light, or it may be independent of the camera and the signal light, which is not limited in this embodiment.
  • the signal light detector may be a device used to obtain the state of the signal light in the monitoring scene in the monitoring system, and the signal light detector may determine the state of the signal light through the electrical signal generated during the operation of the signal light.
  • S403 Determine whether the state of the signal lamp indicated by the scene information is consistent with the state of the signal lamp indicated by the state information.
  • the scene information indicates that the signal light in the monitoring scene is in a red light state
  • the status information indicates that the signal light of the monitoring scene is in a green light state
  • the state of the signal light indicated by the scene information and the state information are The states of the indicated semaphores are inconsistent.
  • the scene information indicates that the signal light in the monitoring scene is in a red light state
  • the status information indicates that the signal light of the monitoring scene is in a red light state
  • the state of the signal light represented by the scene information and the state information are The states of the indicated semaphores are the same.
  • the status of the signal light indicated by the scene information is different from the status of the signal light detected by the signal light detector, it can be considered that the status information output by the signal light detector set in the monitoring scene is incorrect.
  • Working according to incorrect status information may cause the monitoring system to fail to work normally. Therefore, if the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it can be considered that the signal lamp in the monitoring scene does not conform to the preset rule.
  • FIG. 5 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application, and the method includes:
  • S501 Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
  • This step is the same as S101, and you can refer to the previous description about S101.
  • S502 According to the scene information, determine whether the duration of the signal lamp in the monitoring scene information continuously being in the same state exceeds a preset duration threshold.
  • the length of time that the signal lamp is continuously in the same state refers to the length of time that the signal lamp elapses from entering a state to leaving the state.
  • determine the state of the semaphore in the surveillance scene in these multiple time nodes and assume that if the semaphore is at the same time on two adjacent time nodes in the time domain , The semaphore is still in the same state between these two time nodes.
  • the preset duration threshold is 25s, the duration of the signal light continuously in the green light state exceeds the preset duration threshold.
  • the signal lights alternately turn on green, yellow, and red lights according to a preset process. That is, in the time domain, the state of the signal lamp is theoretically alternately changed. Therefore, if the signal lamp is in the same state for a long time, it can be considered that the signal lamp is malfunctioning. When there is a malfunctioning signal lamp in the monitoring scene, the monitoring system may not work normally.
  • alarm information can be sent to the preset terminal.
  • the preset terminal may be a mobile terminal device of the relevant person, or a personal computer of the relevant person.
  • the method of sending the alarm information and the specific content included in the alarm information may be different according to different application scenarios. This embodiment does not limit this. For example, it may be sending a short message carrying the alarm information to the mobile phone of the relevant person, and For example, it may also be sending an email carrying alarm information to the mailbox of the relevant person.
  • the alarm information may be used to indicate the type of the abnormality in the monitoring scene. For example, if it is determined that the integrity of at least one traffic marking is lower than the preset integrity threshold according to the state of the traffic signal indicated by the scene information, it may send to the preset terminal the information indicating the pollution of the traffic marking in the monitoring scene. Alarm information.
  • the integrity of at least one traffic sign is lower than the preset integrity threshold according to the state of the traffic signal indicated by the scene information, it can be sent to the preset terminal to indicate that the monitoring equipment installed in the monitoring scene is not set up.
  • Reasonable warning information if it is determined that the integrity of at least one traffic sign is lower than the preset integrity threshold according to the state of the traffic signal indicated by the scene information, it can be sent to the preset terminal to indicate that the monitoring equipment installed in the monitoring scene is not set up.
  • the alarm information used to indicate the absence of the traffic signal in the monitoring scene can be sent to the preset terminal, or also The alarm information used to indicate that the traffic signal parameter setting is unreasonable can be sent to the preset terminal.
  • each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter, it can be sent to the preset terminal to indicate that the monitoring device installed in the monitoring scene is offset. Alarm information.
  • managers may only be interested in part of the events that occur in the monitoring scene. For example, in the process of vehicle violation detection, they may only be interested in violation events.
  • a picture is captured when there is no event of interest to the user in the monitoring scene, the user cannot obtain the information of interest by reviewing the picture, and a certain labor cost will be incurred for reviewing the picture. Therefore, in order to reduce labor costs, in related technologies, the surveillance system can detect events that occur in the surveillance scene. When a preset event occurs in the surveillance scene, the surveillance scene will be captured to obtain event-related images. The relevant personnel can capture the images. As evidence of the occurrence of a preset event in the monitoring scene for subsequent related processing.
  • the surveillance system as an electronic police as an example, it can detect whether a violation event occurs in the surveillance scene. If a violation event occurs, capture the surveillance scene and obtain the violation images. The management personnel use these images as evidence of vehicle violations. Violating vehicles shall be punished.
  • the surveillance system consumes certain resources in the process of capturing images, such as bandwidth resources and storage resources.
  • the images captured by the surveillance system may not be used as evidence of a preset event in the surveillance scene, which leads to relevant personnel It is not possible to perform follow-up related processing based on the captured image. That is, the resources occupied by the monitoring system are wasted.
  • the monitoring system as the electronic police as an example, if there is a construction road in the surveillance scene, and the compaction line of the vehicle due to construction detours, it may be captured by the electronic police, but the captured image cannot be regarded as the vehicle's violation. evidence.
  • the violation images that managers can review per unit time are limited. If there are images that cannot be used as vehicle violation evidence in the violation images, it will result in fewer images that can be used as vehicle violation evidence reviewed by the managers per unit time, that is, It reduces the work efficiency of managers and increases the labor cost of supervision.
  • FIG. 6 is a schematic flowchart of another monitoring scene detection method provided by an embodiment of this application, including:
  • S601 Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
  • This step is the same as S101, and you can refer to the previous description about S101.
  • S602 According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  • This step is the same as S102, and you can refer to the foregoing related description of S102.
  • This step is the same as S103, and you can refer to the foregoing related description of S103.
  • S604 It is forbidden to capture an event associated with the target traffic signal.
  • the target traffic signal is a traffic signal that does not meet the preset rules in the monitoring scene.
  • Prohibition of snapshots may refer to the prohibition of snapshots by equipment used to monitor the monitoring place in the surveillance system.
  • the traffic signal with a completeness lower than the preset threshold is used as the target traffic signal.
  • the missing traffic marking may be determined as the target traffic signal.
  • the signal lamp in the monitoring scene is always on or often dark, the signal lamp may be determined as the target traffic signal.
  • the signal light may be determined as the target traffic signal if the state of the signal light in the image captured by the monitoring device in the monitoring scene is inconsistent with the state information output by the signal light detection device.
  • an event is associated with a traffic signal may mean that when detecting whether the event occurs in a monitoring scene, it needs to be detected according to the state of the traffic signal.
  • the red-light-breaking event is related to the signal light. If the signal light is the target traffic signal, it is prohibited to capture the red light incident.
  • the illegal lane change event is related to the traffic marking. If the traffic marking is the target traffic signal, it is prohibited to capture the illegal lane change event.
  • the prohibition of snapping can be automatically released after a certain period of time, or it can be released after receiving the prohibition release instruction. In a possible embodiment, it is forbidden to capture an event, and it can also be cancelled after it is determined that all traffic signals associated with the event comply with a preset rule. For example, if the red-light-taking event is prohibited because the signal light is the target traffic signal, the red-light-driving event prohibition can be lifted after the signal light meets the preset rules again.
  • This embodiment can be selected according to the abnormal type of the monitoring scene, corresponding to the prohibition of capturing related events, so as to avoid the inaccuracy of event detection caused by abnormal monitoring of the scene, that is, improving the image captured by the relevant personnel. Possibility, effectively reducing the waste of labor costs.
  • the target traffic signal is a guide sign, such as a left turn sign, it can be forbidden to capture the event of driving without following the guide.
  • the target traffic signal is a traffic marking
  • the target traffic signal is a stop line, it is forbidden to capture the incident of running a red light and driving without following the guidance.
  • the target traffic signal is a semaphore, it is forbidden to capture red light or green light incidents.
  • association relationship is only the association relationship in one possible embodiment.
  • association relationship can be changed, added or deleted according to user experience or needs, which is not limited in this embodiment.
  • the traffic signals may function to indicate and/or restrict the driving of the vehicle
  • the driving of the vehicle may not comply with these traffic signals and will not violate the regulations.
  • one-way lanes may become two-way lanes.
  • the traffic signals may not function as expected to indicate and restrict the driving of the vehicle, and it can be considered that these traffic signals are abnormal.
  • FIG. 7 is a schematic flowchart of another monitoring scene detection method provided by an embodiment of the application, including:
  • S701 Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
  • This step is the same as S101, and you can refer to the previous description about S101.
  • S702 Determine, according to the location of each traffic signal indicated by the scene information, whether there is a traffic signal located in the area where a preset abnormal event occurs in the monitoring scene.
  • the preset abnormal event may be different according to different application scenarios.
  • the preset abnormal event may include one or more of construction and traffic accidents, and may also include other events in other possible embodiments. This embodiment does not apply to this. Do restrictions. Exemplarily, if a lane is under construction, the lane is the area where the preset abnormal event occurs, and it can be determined whether there is a traffic signal in the lane in the monitoring scene.
  • the traffic signal in the area where the preset abnormal event occurs can be used as the target traffic signal, and it is forbidden to capture the event associated with the target traffic signal.
  • the lane line of the lane under construction may be determined as the target traffic signal, and it is forbidden to capture events associated with the lane line.
  • Fig. 8a is a schematic structural diagram of a monitoring scene detection device provided by an embodiment of the application, which may include:
  • the image recognition module 801 is used to perform image recognition on the monitoring image of the monitoring scene to obtain scene information of the monitoring scene, and the scene information is used to indicate the status of each traffic signal in the monitoring scene;
  • the rule matching module 802 is used to determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene according to the scene information;
  • the abnormality monitoring module 803 is configured to determine that the monitoring scene is abnormal if there is a traffic signal that does not meet the preset rules in the monitoring scene.
  • the rule matching module 802 is specifically configured to determine whether there are any traffic signals in the monitoring scene whose integrity is lower than a preset integrity threshold according to the status of each traffic signal indicated by the scene information. Traffic signal
  • the abnormality monitoring module 803 is also used to determine whether the integrity of each traffic signal in the monitoring scene is lower than the preset integrity threshold according to the status of each traffic signal indicated by the scene information After the traffic signal, if the scene information indicates that the integrity of at least one traffic marking is lower than the preset integrity threshold, the alarm information used to indicate the pollution of the traffic marking in the monitoring scene is sent to the preset terminal.
  • the abnormality monitoring module 803 is also used to determine whether the integrity of each traffic signal in the monitoring scene is lower than the preset integrity threshold according to the status of each traffic signal indicated by the scene information After the traffic signal, if the integrity of at least one traffic sign indicated by the scene information is lower than the preset integrity threshold, the alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed is sent to the preset terminal.
  • the rule matching module 802 is specifically configured to determine whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene;
  • the rule matching module 802 is specifically configured to determine whether the state of the traffic signal represented by the scene information is missing relative to the state of the traffic signal represented by the traffic signal parameters;
  • the anomaly detection module 803 is further configured to send to a preset terminal a signal indicating the absence of a traffic signal in the monitoring scene if the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter. Or send to the preset terminal warning information indicating that the traffic signal parameter setting is unreasonable.
  • the rule matching module 802 is specifically used to determine whether the position of each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter;
  • the abnormality monitoring module 803 is specifically configured to send to the preset terminal information indicating that the monitoring equipment set in the monitoring scene is offset if the traffic signals indicated by the scene information are offset from the traffic signals indicated by the traffic signal parameters. Alarm information.
  • the device further includes a signal light state acquisition module, which is used to acquire the state information sent by the signal light detector set in the monitoring scene, and the state information is used to indicate the state of each signal light detected by the signal light detector;
  • the rule matching module 802 is specifically configured to determine whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
  • the rule matching module 802 is specifically configured to determine, according to the scene information, whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
  • the device further includes a monitoring system management module 804, which is used to prohibit capturing events associated with the target traffic signal after determining that the monitoring scene is abnormal, and the target traffic signal is the monitoring scene Traffic signals that do not comply with the preset rules.
  • a monitoring system management module 804 which is used to prohibit capturing events associated with the target traffic signal after determining that the monitoring scene is abnormal, and the target traffic signal is the monitoring scene Traffic signals that do not comply with the preset rules.
  • the device further includes a parameter correction module 805, which is used to determine the state of each traffic signal represented by the scene information and the traffic signal parameters preset for the monitoring scene After the indicated states of the various traffic signals are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, according to the scene information of the monitoring scene, Correct the configuration parameters of the monitoring equipment.
  • a parameter correction module 805 is used to determine the state of each traffic signal represented by the scene information and the traffic signal parameters preset for the monitoring scene After the indicated states of the various traffic signals are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, according to the scene information of the monitoring scene, Correct the configuration parameters of the monitoring equipment.
  • the parameter correction module 805 is specifically configured to generate configuration parameters matching the scene information according to the scene information of the monitoring scene, as the correction configuration parameters;
  • the rule matching module 802 is specifically configured to determine whether there is a traffic signal in the area where a preset abnormal event occurs in the monitoring scene according to the position of each traffic signal indicated by the scene information;
  • An embodiment of the present application also provides an electronic device, as shown in FIG. 9:
  • the memory 901 is used to store computer programs
  • the processor 902 is configured to implement the following steps when executing the program stored in the memory 901:
  • the scene information determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene
  • determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
  • each traffic signal indicated by the scene information determines whether there is a traffic signal with a completeness lower than a preset completeness threshold in each of the traffic signals in the monitoring scene;
  • the method further includes :
  • the alarm information used to indicate the pollution of the traffic marking in the monitoring scene is sent to the preset terminal.
  • the method further includes :
  • the alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed is sent to the preset terminal.
  • determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
  • determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene includes:
  • the method also includes:
  • determining whether each traffic signal represented by the scene information is consistent with each traffic signal represented by the traffic signal parameters preset for the monitoring scene includes:
  • Methods also include:
  • the alarm information used to indicate that the monitoring device set in the monitoring scene is offset is sent to the preset terminal.
  • the method further includes:
  • the scene information determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene, including:
  • determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
  • the scene information determine whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold
  • the method further includes:
  • the target traffic signal is a traffic signal that does not meet the preset rules in the monitoring scene.
  • the method further includes:
  • the configuration parameters of the monitoring device are corrected according to the scene information of the monitoring scene.
  • correcting the configuration parameters of the monitoring device according to the scene information of the monitoring scene includes:
  • the scene information it is determined whether there is a traffic signal that does not meet the preset rules in the monitoring scene, including:
  • each traffic signal indicated by the scene information determines whether there is a traffic signal in the area where the preset abnormal event occurs in the monitoring scene;
  • the memory mentioned in the above electronic device may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute any of the above-mentioned embodiments. Monitoring scene detection method.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Alarm Systems (AREA)
  • Traffic Control Systems (AREA)

Abstract

A monitoring scenario detection method and apparatus, and an electronic device. The method comprises: performing image recognition on a monitoring image of a monitoring scenario to obtain scenario information of the monitoring scenario (S101), the scenario information being used to indicate the status of various traffic signals in the monitoring scenario; determining, according to the scenario information, whether a traffic signal that does not conform to a preset rule exists in the monitoring scenario (S102); and if there is a traffic signal that does not conform to the preset rule in the monitoring scenario, determining that the monitoring scenario is abnormal (S103). In the described method, related information of a monitoring scenario can be digitized by means of image recognition, thus an abnormality occurring in the monitoring scenario can be detected automatically, and a related person can promptly respond to the abnormality, thereby reducing the impact that the abnormality occurring in the monitoring scenario has on a monitoring system, and further improving the stability of the monitoring system.

Description

一种监控场景检测方法、装置及电子设备Monitoring scene detection method, device and electronic equipment
本申请要求于2019年12月24日提交中国专利局、申请号为201911351212.3发明名称为“一种监控场景检测方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 24, 2019, with an application number of 201911351212.3 and an invention titled "a monitoring scene detection method, device and electronic equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及智能交通技术领域,特别是涉及一种监控场景检测方法、装置及电子设备。This application relates to the field of intelligent transportation technology, and in particular to a monitoring scene detection method, device, and electronic equipment.
背景技术Background technique
在一些应用场景中,出于实际需求,监控系统需要获取监控场景的交通信号。例如,电子警察拍摄违章图像的过程中,需要根据交通信号判断车辆是否违章。相关技术中,可以是通过人工配置的方式,使得监控系统获取监控场景的交通信号的相关信息,例如,人工在监控图像中标注出停止线、导向线、斑马线等交通信号的位置和类型,监控系统根据所标注的交通信号的位置和类型,判断车辆是否违章。In some application scenarios, out of actual needs, the monitoring system needs to obtain traffic signals in the monitoring scenario. For example, in the process of taking images of violations by electronic police, it is necessary to determine whether the vehicle violates the rules based on traffic signals. In related technologies, manual configuration can be used to enable the monitoring system to obtain information related to traffic signals in the monitoring scene. For example, manually mark the location and type of traffic signals such as stop lines, guide lines, and zebra crossings in the monitoring image, and monitor The system determines whether the vehicle violates regulations based on the location and type of the marked traffic signal.
但是,由于一些原因,如人为疏忽、缺乏保养等原因,可能造成人工配置的交通信号不符实际应用场景,即监控系统获取到的交通信号与实际交通信号不符,因此监控系统无法正常工作,以电子警察为例,则可能错误的拍摄到无法作为车辆违章证据的违章废图。However, due to some reasons, such as human negligence, lack of maintenance, etc., the manually configured traffic signal may not match the actual application scenario, that is, the traffic signal obtained by the monitoring system does not match the actual traffic signal, so the monitoring system cannot work normally. The police, for example, may mistakenly photograph illegal and scrapped images that cannot be used as evidence of vehicle violations.
发明内容Summary of the invention
本申请实施例的目的在于提供一种监控场景检测方法、装置及电子设备,以实现自动检测出监控场景中出现的异常,以使得相关人员能够及时应对,降低监控场景中出现的异常对监控系统的影响,进而提高监控系统的稳定性。具体技术方案如下:The purpose of the embodiments of this application is to provide a monitoring scene detection method, device, and electronic equipment to automatically detect abnormalities in the monitoring scene, so that relevant personnel can respond in time, and reduce the impact of abnormalities in the monitoring scene on the monitoring system The impact of this, thereby improving the stability of the monitoring system. The specific technical solutions are as follows:
在本申请的第一方面,提供了一种监控场景检测方法,所述方法包括:In the first aspect of the present application, a monitoring scene detection method is provided, and the method includes:
对监控场景的监控图像进行图像识别,得到所述监控场景的场景信息,所述场景信息用于表示所述监控场景中各个交通信号的状态;Performing image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene, where the scene information is used to indicate the status of each traffic signal in the surveillance scene;
根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号;According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene;
如果所述监控场景存在不符合预设规则的交通信号,确定所述监控场景异常。If there is a traffic signal that does not conform to a preset rule in the monitoring scene, it is determined that the monitoring scene is abnormal.
在一种可能的实现方式中,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;According to the state of each traffic signal indicated by the scene information, determine whether there is a traffic signal with a completeness lower than a preset completeness threshold among the various traffic signals in the monitoring scene;
如果存在完整度低于所述预设完整度阈值的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
在一种可能的实现方式中,在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,所述方法还包括:In a possible implementation manner, in the state of each traffic signal indicated by the scene information, it is determined whether there is a completeness degree lower than a preset completeness threshold in each of the traffic signals in the monitoring scene After the traffic signal, the method further includes:
如果所述场景信息表示至少一个交通标线的完整度低于所述预设完整度阈值,向预设终端发送用于 表示所述监控场景中交通标线污损的告警信息。If the scene information indicates that the completeness of at least one traffic marking is lower than the preset completeness threshold, send warning information indicating that the traffic marking is stained in the monitoring scene to the preset terminal.
在一种可能的实现方式中,在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,所述方法还包括:In a possible implementation manner, in the state of each traffic signal indicated by the scene information, it is determined whether there is a completeness degree lower than a preset completeness threshold in each of the traffic signals in the monitoring scene After the traffic signal, the method further includes:
如果所述场景信息表示至少一个交通标志的完整度低于所述预设完整度阈值,向预设终端发送用于表示设置于所述监控场景的监控设备架设不合理的告警信息。If the scene information indicates that the integrity of at least one traffic sign is lower than the preset integrity threshold, sending alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed to the preset terminal.
在一种可能的实现方式中,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;Determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene;
如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
在一种可能的实现方式中,所述确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致,包括:In a possible implementation manner, the determining whether the state of each traffic signal indicated by the scene information is consistent with the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene includes:
确定所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态是否存在缺失;Determining whether the state of the traffic signal represented by the scene information is missing relative to the state of the traffic signal represented by the traffic signal parameter;
所述方法还包括:The method also includes:
如果所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,向预设终端发送用于表示所述监控场景中交通信号缺失的告警信息,或向所述预设终端发送用于表示所述交通信号参数设置不合理的告警信息If the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter, send warning information indicating the absence of a traffic signal in the monitoring scene to a preset terminal, or send to the The preset terminal sends alarm information used to indicate that the traffic signal parameter setting is unreasonable
在一种可能的实现方式中,所述确定所述场景信息所表示的各个交通信号,与针对所述监控场景预设的交通信号参数所表示的各个交通信号是否一致,包括:In a possible implementation manner, the determining whether each traffic signal represented by the scene information is consistent with each traffic signal represented by a traffic signal parameter preset for the monitoring scene includes:
确定所述场景信息所表示的各个交通信号的位置相对交通信号参数所表示的各个交通信号的位置是否存在偏移;Determine whether there is an offset between the position of each traffic signal indicated by the scene information and the position of each traffic signal indicated by the traffic signal parameter;
所述方法还包括:The method also includes:
如果所述场景信息所表示的各个交通信号相对交通信号参数所表示的各个交通信号存在偏移,向预设终端发送用于表示设置于所述监控场景的监控设备发生偏移的告警信息。If each traffic signal indicated by the scene information has an offset with respect to each traffic signal indicated by the traffic signal parameter, an alarm information used to indicate that the monitoring device installed in the monitoring scene is offset is sent to the preset terminal.
在一种可能的实现方式中,所述方法还包括:In a possible implementation manner, the method further includes:
获取设置于所述监控场景中信号灯检测器发送的状态信息,所述状态信息用于表示所述信号灯检测器检测到的各个信号灯的状态;Acquiring status information sent by a signal light detector set in the monitoring scene, where the status information is used to indicate the status of each signal light detected by the signal light detector;
所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
确定所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态是否一致;Determining whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
如果所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
在一种可能的实现方式中,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
根据所述场景信息,确定所述监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;According to the scene information, determine whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
如果所述监控场景中的信号灯连续处于相同的状态的时长超过所述预设时长阈值,确定所述监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
在一种可能的实现方式中,在所述确定所述监控场景异常之后,所述方法还包括:In a possible implementation manner, after the determining that the monitoring scene is abnormal, the method further includes:
禁止抓拍与目标交通信号存在关联的事件,所述目标交通信号为所述监控场景中不符合预设规则的交通信号。It is forbidden to capture an event associated with a target traffic signal, and the target traffic signal is a traffic signal that does not comply with a preset rule in the monitoring scene.
在一种可能的实现方式中,在所述确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,所述方法还包括:In a possible implementation manner, after determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene, The method also includes:
如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正。If the status of each traffic signal represented by the scene information is inconsistent with the status of each traffic signal represented by the traffic signal parameters preset for the monitoring scene, the monitoring equipment is monitored according to the scene information of the monitoring scene. Configure the parameters for correction.
在一种可能的实现方式中,所述根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正,包括:In a possible implementation manner, the correcting the configuration parameters of the monitoring device according to the scene information of the monitoring scene includes:
根据所述监控场景的场景信息,生成与所述场景信息相匹配的配置参数,作为校正配置参数;According to the scene information of the monitoring scene, generating configuration parameters that match the scene information as correction configuration parameters;
将所述监控设备的配置参数更改为所述校正配置参数。The configuration parameter of the monitoring device is changed to the correction configuration parameter.
在一种可能的实现方式中,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, the determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
根据所述场景信息所表示的各个交通信号的位置,确定所述监控场景中是否存在位于预设异常事件发生的区域内的交通信号;According to the location of each traffic signal indicated by the scene information, determine whether there is a traffic signal located in the area where a preset abnormal event occurs in the monitoring scene;
如果存在位于预设异常事件发生的区域内的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal located in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
在本申请的第二方面,提供了一种监控场景检测装置,所述装置包括:In a second aspect of the present application, a monitoring scene detection device is provided, the device including:
图像识别模块,用于对监控场景的监控图像进行图像识别,得到所述监控场景的场景信息,所述场景信息用于表示所述监控场景中各个交通信号的状态;The image recognition module is configured to perform image recognition on the monitoring image of the monitoring scene to obtain scene information of the monitoring scene, where the scene information is used to indicate the status of each traffic signal in the monitoring scene;
规则匹配模块,用于根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号;The rule matching module is configured to determine, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene;
异常监测模块,用于如果所述监控场景存在不符合预设规则的交通信号,确定所述监控场景异常。The abnormality monitoring module is configured to determine that the monitoring scene is abnormal if there is a traffic signal that does not conform to a preset rule in the monitoring scene.
在一种可能的实现方式中,所述规则匹配模块,具体用于根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;In a possible implementation manner, the rule matching module is specifically configured to determine whether there is a low integrity in each traffic signal in the monitoring scene according to the state of each traffic signal indicated by the scene information Traffic signals at a preset integrity threshold;
如果存在完整度低于所述预设完整度阈值的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
在一种可能的实现方式中,所述异常监测模块,还用于在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果所述场景信息表示至少一个交通标线的完整度低于所述预设完整度阈值,向预设终端发送用于表示所述监控场景中交通标线污损的告警信息。In a possible implementation, the abnormality monitoring module is further configured to determine whether there are any traffic signals in the monitoring scene based on the status of each traffic signal indicated by the scene information After the traffic signal whose integrity is lower than the preset integrity threshold, if the scene information indicates that the integrity of at least one traffic marking is lower than the preset integrity threshold, send to the preset terminal indicating the monitoring scene Warning information of traffic marking defacement.
在一种可能的实现方式中,所述异常监测模块,还用于在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果所述场景信息所表示至少一个交通标志的完整度低于所述预设完整度阈值,向预设终端发送用于表示设置于所述监控场景的监控设备架设不合理的告警信息。In a possible implementation manner, the abnormality monitoring module is further configured to determine whether there are any traffic signals in the monitoring scene based on the status of each traffic signal indicated by the scene information After a traffic signal whose integrity is lower than the preset integrity threshold, if the integrity of at least one traffic sign indicated by the scene information is lower than the preset integrity threshold, send to the preset terminal a message indicating that the traffic signal is set at the preset integrity threshold. The monitoring equipment in the monitoring scene sets up unreasonable alarm information.
在一种可能的实现方式中,所述规则匹配模块,具体用于确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;In a possible implementation, the rule matching module is specifically configured to determine the status of each traffic signal represented by the scene information and the status of each traffic signal represented by the traffic signal parameters preset for the monitoring scene. Whether the status is consistent;
如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
在一种可能的实现方式中,所述规则匹配模块,具体用于确定所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态是否存在缺失;In a possible implementation manner, the rule matching module is specifically configured to determine whether the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter;
所述异常检测模块,还用于如果所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,向预设终端发送用于表示所述监控场景中交通信号缺失的告警信息,或向所述预设终端发送用于表示所述交通信号参数设置不合理的告警信息。The abnormality detection module is further configured to send to a preset terminal a traffic signal indicating the traffic signal in the monitoring scene if the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter Missing warning information, or sending warning information indicating that the traffic signal parameter setting is unreasonable to the preset terminal.
在一种可能的实现方式中,所述规则匹配模块,具体用于确定所述场景信息所表示的各个交通信号的位置相对交通信号参数所表示的各个交通信号的位置是否存在偏移;In a possible implementation, the rule matching module is specifically configured to determine whether the position of each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter;
所述异常监测模块,具体用于如果所述场景信息所表示的各个交通信号相对交通信号参数所表示的各个交通信号存在偏移,向预设终端发送用于表示设置于所述监控场景的监控设备发生偏移的告警信息。The abnormality monitoring module is specifically configured to send to a preset terminal the monitoring set in the monitoring scene if each traffic signal indicated by the scene information has an offset relative to each traffic signal indicated by the traffic signal parameter. Alarm information that the device has shifted.
在一种可能的实现方式中,所述装置还包括信号灯状态获取模块,用于获取设置于所述监控场景中信号灯检测器发送的状态信息,所述状态信息用于表示所述信号灯检测器检测到的各个信号灯的状态;In a possible implementation manner, the device further includes a signal light state acquisition module, which is used to acquire the state information sent by the signal light detector set in the monitoring scene, and the state information is used to indicate that the signal light detector detects The status of each semaphore that arrives;
所述规则匹配模块,具体用于确定所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态是否一致;The rule matching module is specifically configured to determine whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
如果所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
在一种可能的实现方式中,所述规则匹配模块,具体用于根据所述场景信息,确定所述监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;In a possible implementation manner, the rule matching module is specifically configured to determine, according to the scene information, whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
如果所述监控场景中的信号灯连续处于相同的状态的时长超过所述预设时长阈值,确定所述监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
在一种可能的实现方式中,所述装置还包括监控系统管理模块,用于在所述确定所述监控场景异常之后,禁止抓拍与目标交通信号存在关联的事件,所述目标交通信号为所述监控场景中不符合预设规则的交通信号。In a possible implementation, the device further includes a monitoring system management module, which is configured to prohibit capturing an event associated with a target traffic signal after the monitoring scene is determined to be abnormal, and the target traffic signal is the target traffic signal. Traffic signals that do not comply with preset rules in the monitoring scene.
在一种可能的实现方式中,所述装置还包括参数校正模块,所述参数校正模块用于在所述确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正。In a possible implementation manner, the device further includes a parameter correction module configured to determine the state of each traffic signal represented by the scene information and the preset for the monitoring scene After the states of the various traffic signals indicated by the traffic signal parameters are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, Correct the configuration parameters of the monitoring device according to the scene information of the monitoring scene.
在一种可能的实现方式中,所述参数校正模块,具体用于根据所述监控场景的场景信息,生成与所述场景信息相匹配的配置参数,作为校正配置参数;In a possible implementation manner, the parameter correction module is specifically configured to generate configuration parameters matching the scene information according to the scene information of the monitoring scene, as the correction configuration parameters;
将所述监控设备的配置参数更改为所述校正配置参数。The configuration parameter of the monitoring device is changed to the correction configuration parameter.
在一种可能的实现方式中,所述规则匹配模块,具体用于根据所述场景信息所表示的各个交通信号的位置,确定所述监控场景中是否存在位于预设异常事件发生的区域内的交通信号;In a possible implementation manner, the rule matching module is specifically configured to determine whether there are any traffic signals located in the area where a preset abnormal event occurs in the monitoring scene according to the position of each traffic signal indicated by the scene information. Traffic signal
如果存在位于预设异常事件发生的区域内的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal located in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
在本申请的第三方面,提供了一种电子设备,包括:In the third aspect of this application, an electronic device is provided, including:
存储器,用于存放计算机程序;Memory, used to store computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述第一方面任一所述的方法步骤。The processor is configured to implement the method steps in any one of the above-mentioned first aspects when executing the program stored in the memory.
在本申请的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面任一所述的方法步骤。In a fourth aspect of the present application, a computer-readable storage medium is provided, and a computer program is stored in the computer-readable storage medium. Method steps.
本申请实施例提供的监控场景检测方法、装置及电子设备,可以通过图像识别,将监控场景的相关信息数字化,进而可以实现自动检测出监控场景中出现的异常,以使得相关人员能够及时应对,降低监控场景中出现的异常对监控系统的影响,进而提高监控系统的稳定性。当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。The monitoring scene detection method, device, and electronic equipment provided by the embodiments of the application can digitize the relevant information of the monitoring scene through image recognition, so as to automatically detect abnormalities in the monitoring scene, so that relevant personnel can respond in time. Reduce the impact of abnormalities in the monitoring scene on the monitoring system, thereby improving the stability of the monitoring system. Of course, implementing any product or method of the present application does not necessarily need to achieve all the advantages described above at the same time.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的监控场景检测方法的一种流程示意图;FIG. 1 is a schematic flowchart of a monitoring scene detection method provided by an embodiment of the application;
图2为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的一种流程示意图;FIG. 2 is a schematic flowchart of a method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application; FIG.
图3为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的另一种流程示意图;3 is a schematic diagram of another flow chart of a method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application;
图4为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的又一种流程示意图;FIG. 4 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application; FIG.
图5为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的又一种流程示意图;FIG. 5 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application; FIG.
图6为本申请实施例提供的监控场景检测方法的另一种流程示意图;FIG. 6 is a schematic flowchart of another monitoring scene detection method provided by an embodiment of the application;
图7为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的又一种流程示意图;FIG. 7 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application; FIG.
图8a为本申请实施例提供的监控场景检测装置的一种结构示意图;FIG. 8a is a schematic structural diagram of a monitoring scene detection device provided by an embodiment of this application;
图8b为本申请实施例提供的监控场景检测装置的另一种结构示意图;FIG. 8b is a schematic diagram of another structure of a monitoring scene detection device provided by an embodiment of the application;
图8c为本申请实施例提供的监控场景检测装置的另一种结构示意图;FIG. 8c is a schematic diagram of another structure of a monitoring scene detection device provided by an embodiment of the application;
图9为本申请实施例提供的电子设备的一种结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
参见图1,图1所示为本申请实施例提供的监控场景的一种可能的流程示意图,该方法可以用于监控系统中任一具备监控场景检测功能的电子设备,示例性的,可以是应用于作为前端的摄像机,也可以是应用于作为后端的服务器。方法可以包括:Referring to Fig. 1, Fig. 1 is a schematic diagram of a possible flow of a monitoring scene provided by an embodiment of the application. This method can be used for any electronic device with a monitoring scene detection function in the monitoring system. For example, it may be Applied to the camera as the front end, it can also be applied to the server as the back end. Methods can include:
S101,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S101: Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
场景信息用于表示监控场景中各个交通信号的状态。场景信息可以是通过对某一时刻拍摄到的监控图像进行图像识别得到的,也可以是通过对拍摄于多个不同时刻的监控图像进行图像识别得到的,例如可以是通过对拍摄到监控场景的监控视频中多个视频帧进行图像识别得到场景信息。The scene information is used to indicate the status of each traffic signal in the monitoring scene. The scene information can be obtained by image recognition of the surveillance images taken at a certain time, or it can be obtained by image recognition of the surveillance images taken at multiple different moments, for example, it can be obtained by recognizing the surveillance images taken at a certain time. Perform image recognition on multiple video frames in the surveillance video to obtain scene information.
图像识别所采用的算法根据应用场景的不同可以不同,示例性的,可以是利用预先经过训练的神经网络,实现监控图像到场景信息的端到端映射。在其他可能的实施例中,也可以是利用基于传统机器学习得到的模型对图像进行识别的,本实施例对此不做限制。The algorithm used for image recognition can be different according to different application scenarios. For example, it can be an end-to-end mapping from the surveillance image to the scene information by using a pre-trained neural network. In other possible embodiments, the image may also be recognized using a model obtained based on traditional machine learning, which is not limited in this embodiment.
交通信号可以包括交通标线、交通标志以及信号灯中的一个或多个。交通标线可以包括车道线、停止线、地面导向线、斑马线等。交通信号可以包括警告标识、禁令标识、指示标识等。The traffic signal may include one or more of traffic markings, traffic signs, and signal lights. Traffic markings can include lane lines, stop lines, ground guidance lines, zebra crossings, and so on. Traffic signals can include warning signs, prohibition signs, and instruction signs.
交通信号的状态可以是指能够通过图像识别获取到的交通信号的一个或多个属性,示例性的,交通信号的状态可以包括交通信号的位置和/或类别。并且不同类型的交通信号的状态可以是以不同的方式进行表示的,例如,对于交通标线或交通标志,可以是以交通标线或交通标志所处的位置和类别表示交 通标线或交通标志所处的状态,并且可以是以监控图像中该交通标线或交通标志所在区域的最小外接矩形的四个顶点的坐标表示交通标线或交通标志所处的位置,交通标线或交通标志的类别可以是以标签(label)的形式表示的,示例性的,可以是以标签“1”表示车道线,标签“2”表示停止线,标签“3”表示地面导向线。又例如,对于信号灯,可以是以信号灯的颜色表示该信号灯所处的状态。The state of the traffic signal may refer to one or more attributes of the traffic signal that can be obtained through image recognition. For example, the state of the traffic signal may include the location and/or category of the traffic signal. And the status of different types of traffic signals can be expressed in different ways. For example, for traffic markings or traffic signs, the position and category of the traffic markings or traffic signs can be used to indicate the traffic markings or traffic signs. The state, and the coordinates of the four vertices of the smallest bounding rectangle of the area where the traffic line or traffic sign is located in the surveillance image can be used to indicate the location of the traffic line or traffic sign, the traffic line or traffic sign The category may be expressed in the form of a label. For example, the label “1” may indicate a lane line, the label “2” may indicate a stop line, and the label “3” may indicate a ground guide line. For another example, for a signal light, the color of the signal light may be used to indicate the state of the signal light.
S102,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号。S102: According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene.
预设规则可以是用户根据实际需求或者经验设置的,例如,在一些应用场景中,可能对图像中交通信号的清晰度存在一定的要求,则可以是确定各个交通信号的清晰度是否达到该要求,如果交通信号的清晰度没有达到该要求,则确定监控场景存在不符合预设规则的交通信号。The preset rules can be set by the user according to actual needs or experience. For example, in some application scenarios, there may be certain requirements for the clarity of the traffic signal in the image, and it can be to determine whether the clarity of each traffic signal meets the requirement. If the clarity of the traffic signal does not meet the requirement, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
可以理解的是,导致交通信号不符合预设规则的原因可能是交通信号自身出现异常,如交通标线、交通标志污损,又如交通信号灯出现故障导致无法正常切换,也可能是设置于监控场景的监控设备出现异常,如设置于监控场景的监控设备相对于安装时的位置和朝向角出现偏移,又如设置于监控场景的监控设备架设的位置不合理,导致拍摄到的交通标志、交通标线不完整。It is understandable that the reason why the traffic signal does not comply with the preset rules may be abnormality of the traffic signal itself, such as traffic markings and traffic signs being defaced, or the failure of the traffic signal light to prevent normal switching, or it may be set in the monitoring system. The monitoring equipment of the scene is abnormal, such as the position and orientation angle of the monitoring equipment installed in the monitoring scene is offset from the installation position, and the installation position of the monitoring equipment installed in the monitoring scene is unreasonable, resulting in the captured traffic signs, The traffic marking is incomplete.
S103,如果监控场景存在不符合预设规则的交通信号,确定监控场景异常。S103: If there is a traffic signal that does not meet the preset rule in the monitoring scene, it is determined that the monitoring scene is abnormal.
如果监控场景中存在不符合规则的交通信号,则可以认为监控系统从监控场景中识别得到的交通信号可能不够准确,基于不够准确的交通信号,监控系统无法正常工作。因此,可以认为这种情况下的监控场景异常。If there are traffic signals that do not conform to the rules in the monitoring scene, it can be considered that the traffic signals that the monitoring system recognizes from the monitoring scene may not be accurate enough. Based on the inaccurate traffic signals, the monitoring system cannot work normally. Therefore, it can be considered that the monitoring scenario in this case is abnormal.
从另一方面而言,如前述分析,监控场景存在不符合预设规则的交通信号,则可以认为监控场景中的交通信号和/或监控设备出现异常,因此可以认为监控场景异常。On the other hand, as in the foregoing analysis, if there are traffic signals that do not conform to the preset rules in the monitoring scene, it can be considered that the traffic signals and/or the monitoring equipment in the monitoring scene are abnormal, and therefore the monitoring scene can be considered abnormal.
为描述方便,下面将以电子警察的应用场景为例,对本申请实施例提供的监控场景检测方法进行说明。对于其他应用场景,原理是相同的,因此不再赘述。For the convenience of description, the following will take the application scenario of the electronic police as an example to describe the monitoring scene detection method provided in the embodiment of the present application. For other application scenarios, the principle is the same, so it will not be repeated.
可以参见图2,图2所示为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的一种流程示意图,方法包括:Refer to Figure 2. Figure 2 is a schematic flow chart of a traffic signal detection method applied to an electronic police monitoring scene provided by an embodiment of the application, and the method includes:
S201,对监控场景的监控图像进行识别,得到监控场景的场景信息。S201: Identify the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述,在此不再赘述。This step is the same as S101, and you can refer to the foregoing related description about S101, which will not be repeated here.
S202,根据场景信息所表示的各个交通信号的状态,确定监控场景中是否存在完整度低于预设完整度阈值的交通信号。S202: Determine, according to the status of each traffic signal indicated by the scene information, whether there is a traffic signal with a completeness lower than a preset completeness threshold in the monitoring scene.
完整度可以表示场景信息所表示的交通信号的形状相较于该交通信号理论上的形状的完整程度。示例性的,例如白实线理论上为一条连续不中断的具有一定线宽的白色线段,如果根据场景信息所表示的白实线的位置,监控图像中位于该位置处的为一条连续不中断的具有一定线宽的白色线段,则可以认为该白实线的完整度相对较高。如果监控图像中位于该位置处的为存在较多非白色区域(如路面颜色的区域)的白色线段,则可以认为该白实线的完整度相对较低。又例如,左转指示标志理论上为白边蓝底的圆形图案,并且图案中间存在左转箭头,如果根据场景信息所表示的左转指示标志的位置,监控图像中 位于该位置处的为白边蓝底、中间存在左转箭头的圆形图案,则可以认为该左转指示标志的完整度相对较高。如果监控图像中位于该位置处的为白边蓝底的半圆状图案,并且中间存在部分左转弯箭头,则可以认为该左转指示标志的完整度相对较低。The degree of completeness may indicate how complete the shape of the traffic signal represented by the scene information is compared to the theoretical shape of the traffic signal. Exemplarily, for example, the white solid line is theoretically a continuous and uninterrupted white line segment with a certain line width. According to the position of the white solid line indicated by the scene information, the monitoring image at that position is a continuous and uninterrupted white line segment. The white line segment with a certain line width can be considered to be relatively complete. If the monitoring image at this position is a white line segment with more non-white areas (such as areas with road color), it can be considered that the completeness of the white solid line is relatively low. For another example, the left turn indicator is theoretically a circular pattern with a white border and a blue background, and there is a left turn arrow in the middle of the pattern. According to the position of the left turn indicator indicated by the scene information, the monitor image at that position is With a white border and blue background and a circular pattern with a left turn arrow in the middle, it can be considered that the completeness of the left turn indicator is relatively high. If the surveillance image at this position is a semicircular pattern with a white border and a blue background, and there are some left-turn arrows in the middle, it can be considered that the completeness of the left-turn indicator is relatively low.
完整度阈值可以根据用户的实际需求或经验进行设置。完整度阈值越低,则没有检测出监控场景中的异常的可能性越低。完整度阈值越高,则错误地将正常的监控场景确定为异常的可能性越低。并且针对不同的交通信号,可以设置不同的完整度阈值,本实施例对此不做限制。The integrity threshold can be set according to the actual needs or experience of the user. The lower the integrity threshold, the lower the probability that an abnormality in the monitoring scene is not detected. The higher the integrity threshold, the lower the possibility of erroneously determining a normal monitoring scene as abnormal. And for different traffic signals, different integrity thresholds can be set, which is not limited in this embodiment.
确定监控场景中是否存在完整度低于预设完整度阈值的交通信号得到的结果,可以是一个用于表示监控场景中是否存在完整度低于预设完整度阈值的交通信号的二值化的数值,例如输出结果为“是”表示监控场景中存在完整度低于预设完整度阈值的交通信号,输出结果为“否”表示监控场景中不存在完整度低于预设完整度阈值的交通信号。输出结果也可以是监控场景中所有完整度低于预设完整度阈值的交通信号的集合,例如输出结果可以为{信号灯、车道线},表示监控场景中信号灯和车道线的完整度低于预设完整度阈值,除信号灯和车道线以外的其他交通信号的完整度不低于预设完整度阈值,如果该集合不为空集则可以认为监控场景中存在完整度低于预设完整度阈值的交通信号,如果该集合为空集则可以认为监控场景中不存在完整度低于预设完整度阈值的交通信号。The result obtained by determining whether there is a traffic signal whose integrity is lower than the preset integrity threshold in the monitoring scene can be a binarized signal used to indicate whether there is a traffic signal whose integrity is below the preset integrity threshold in the monitoring scene Numerical value, for example, the output result of "Yes" means that there is a traffic signal whose integrity is lower than the preset integrity threshold in the monitored scene, and the output result of "No" means that there is no traffic signal whose integrity is below the preset integrity threshold in the monitored scene signal. The output result can also be a collection of all traffic signals whose completeness is lower than the preset completeness threshold in the monitoring scene. For example, the output result can be {signal light, lane line}, which means that the completeness of the signal light and lane line in the monitoring scene is lower than the preset completeness threshold. Set the integrity threshold. The integrity of traffic signals other than the signal lights and lane lines is not lower than the preset integrity threshold. If the set is not empty, it can be considered that there is integrity in the monitoring scene below the preset integrity threshold. If the set is an empty set, it can be considered that there are no traffic signals with completeness lower than the preset completeness threshold in the monitoring scene.
S203,如果存在完整度低于预设完整度阈值的交通信号,确定监控场景存在不符合预设规则的交通信号。S203: If there is a traffic signal whose integrity is lower than a preset integrity threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
如果一个交通信号的完整度低于完整度阈值,则可以认为监控图像中关于该交通信号的信息较少,即难以准确的在监控图像中辨识出该交通信号。因此,在根据该监控图像判断车辆是否违章的过程中,难以将该交通信号作为可信的判据。If the integrity of a traffic signal is lower than the integrity threshold, it can be considered that there is less information about the traffic signal in the surveillance image, that is, it is difficult to accurately identify the traffic signal in the surveillance image. Therefore, it is difficult to use the traffic signal as a credible criterion in the process of judging whether the vehicle is in violation of the regulations based on the monitoring image.
根据应用场景的不同,导致场景信息所表示的交通信号的完整度低于预设完整度阈值的原因可能不同。例如,对于交通标线,可能是因为交通标线污损,对于交通标志,可能是因为交通标志污损,也可能是因为设置于监控场景中的监控设备架设不合理导致的。又例如,可能是由于监控设备架设不合理,导致交通标志部分处于监控设备的视觉死角。According to different application scenarios, the reasons that cause the integrity of the traffic signal indicated by the scene information to be lower than the preset integrity threshold may be different. For example, for traffic markings, the traffic markings may be defaced, and for traffic signs, the traffic signs may be defaced, or it may be caused by the unreasonable installation of monitoring equipment in the monitoring scene. For another example, it may be due to the unreasonable erection of the monitoring equipment, which results in the part of the traffic sign being in a blind spot of the monitoring equipment.
参见图3,图3所示为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的另一种流程示意图,方法包括:Referring to FIG. 3, FIG. 3 is a schematic diagram of another flow chart of a traffic signal detection method applied to a monitoring scene of an electronic police according to an embodiment of the application, and the method includes:
S301,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S301: Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述,在此不再赘述。This step is the same as S101, and you can refer to the foregoing related description about S101, which will not be repeated here.
S302,确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致。S302: Determine whether the state of each traffic signal indicated by the scene information is consistent with the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene.
交通信号参数可以是人工预先配置的,示例性的,人工在监控图像中框选斑马线所在区域,得到针对斑马线预设的交通信号参数,又例如,人工在监控图像中标注车道线所在位置,得到针对车道线预设的交通信号参数。The traffic signal parameters can be manually pre-configured. Illustratively, manually select the area where the zebra crossing is located in the surveillance image to obtain the traffic signal parameters preset for the zebra crossing. For example, manually mark the location of the lane line in the surveillance image to obtain Traffic signal parameters preset for lane lines.
场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不一致,可以是指场景 信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,和/或,场景信息所表示的交通信号的位置相对交通信号参数所表示的同一种交通信号的位置存在偏移。例如,假设场景信息表示监控场景中3个车道线的状态,而交通信号参数表示监控场景中4个车道线的状态,则可以认为场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失(缺失了一个车道线的状态),因此场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不一致。又例如,假设场景信息表示监控场景存在一个左转弯指示标志,并且该标志位于位置A,交通信号参数表示监控场景存在一个左转弯指示标志,并且该标志位于位置B,位置A与位置B为两个不同的位置,则也可以认为场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不同。The state of the traffic signal indicated by the scene information is inconsistent with the state of the traffic signal indicated by the traffic signal parameter, which may mean that the state of the traffic signal indicated by the scene information is missing from the state of the traffic signal indicated by the traffic signal parameter, and/ Or, the position of the traffic signal indicated by the scene information is offset from the position of the same type of traffic signal indicated by the traffic signal parameter. For example, if the scene information represents the status of 3 lanes in the monitoring scene, and the traffic signal parameter represents the status of 4 lanes in the monitoring scene, it can be considered that the status of the traffic signal represented by the scene information is relative to that represented by the traffic signal parameter. The state of the traffic signal is missing (the state of a lane line is missing), so the state of the traffic signal represented by the scene information is inconsistent with the state of the traffic signal represented by the traffic signal parameters. For another example, suppose that the scene information indicates that there is a left turn indicator in the surveillance scene, and the sign is located at position A, and the traffic signal parameter indicates that there is a left turn indicator in the surveillance scene, and the sign is located at position B, and the positions A and B are two. For different locations, it can also be considered that the state of the traffic signal represented by the scene information is different from the state of the traffic signal represented by the traffic signal parameters.
S303,如果场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不一致,确定监控场景存在不符合预设规则的交通信号。S303: If the state of the traffic signal indicated by the scene information is inconsistent with the state of the traffic signal indicated by the traffic signal parameter, it is determined that there is a traffic signal that does not conform to a preset rule in the monitored scene.
可以理解的是,在不考虑交通信号参数配置不合理的情况下,如果场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不同,则表示监控场景相较于配置交通信号参数时已经发生了变化,如果监控系统仍然按照所配置的交通信号参数进行工作,则可能无法正常工作。It is understandable that, regardless of the unreasonable configuration of traffic signal parameters, if the state of the traffic signal indicated by the scene information is different from the state of the traffic signal indicated by the traffic signal parameter, it means that the monitoring scene is compared with the configuration of the traffic signal. The signal parameters have changed. If the monitoring system still works according to the configured traffic signal parameters, it may not work properly.
在不考虑监控场景可能发生变化的情况下,如果场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不同,则表示针对监控场景所预先配置的交通信号参数可能不合理,按照配置不合理的交通信号参数进行工作,可能导致监控系统无法正常工作。Regardless of the possible changes in the monitoring scene, if the state of the traffic signal indicated by the scene information is different from the state of the traffic signal indicated by the traffic signal parameter, it means that the pre-configured traffic signal parameters for the monitoring scene may be unreasonable , Working in accordance with unreasonable traffic signal parameters may cause the monitoring system to fail to work normally.
综上,如果场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不同时,可以认为监控场景的交通信号不符合预设规则。In summary, if the state of the traffic signal indicated by the scene information is different from the state of the traffic signal indicated by the traffic signal parameter, it can be considered that the traffic signal of the monitored scene does not conform to the preset rule.
如前述分析,如果场景信息所表示的交通信号的状态与交通信号参数所表示的交通信号的状态不一致,可能是因为交通信号参数配置不合理,为尽快消除该情况下监控场景的异常,在一种可能的实施例中,如果场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,可以根据监控场景的场景信息对监控设备的配置参数进行校正。As in the previous analysis, if the state of the traffic signal indicated by the scene information is inconsistent with the state of the traffic signal indicated by the traffic signal parameter, it may be because the traffic signal parameter configuration is unreasonable. In order to eliminate the abnormality of the monitoring scene in this situation as soon as possible, one In a possible embodiment, if the status of each traffic signal indicated by the scene information is inconsistent with the status of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene, the configuration of the monitoring equipment can be configured according to the scene information of the monitoring scene The parameters are corrected.
示例性的,可以是根据监控场景的场景信息,生成与场景信息相匹配的配置参数,作为校正配置参数。并将监控设备的配置参数更改为校正配置参数。例如,假设监控场景的场景信息表示监控场景中白实线位于位置A,而配置参数表示该白实线位于位置B,则生成用于表示白实线位于位置A的配置参数,作为校正配置参数,并用该校正配置参数替代当前的配置参数。Exemplarily, it may be based on the scene information of the monitoring scene to generate configuration parameters matching the scene information as the correction configuration parameters. And change the configuration parameters of the monitoring equipment to correction configuration parameters. For example, assuming that the scene information of the monitoring scene indicates that the solid white line is located at position A in the monitoring scene, and the configuration parameter indicates that the solid white line is located at position B, then a configuration parameter indicating that the solid white line is located at position A is generated as a correction configuration parameter , And use the correction configuration parameter to replace the current configuration parameter.
参见图4,图4所示为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的又一种流程示意图,方法包括:Referring to FIG. 4, FIG. 4 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application, and the method includes:
S401,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S401: Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述。This step is the same as S101, and you can refer to the previous description about S101.
S402,获取设置于监控场景中信号灯检测器发送的状态信息。S402: Acquire status information sent by a signal light detector set in a monitoring scene.
状态信息用于表示信号灯检测到的各个信号灯的状态。信号灯检测器可以是集成在摄像机上的,也可以是集成在信号灯上的,还可以是独立于摄像机和信号灯的,本实施例对此不做限制。The status information is used to indicate the status of each signal light detected by the signal light. The signal light detector may be integrated on the camera, or it may be integrated on the signal light, or it may be independent of the camera and the signal light, which is not limited in this embodiment.
该信号灯检测器可以是监控系统中,用于获取监控场景中信号灯状态的装置,信号灯检测器可以通过信号灯的工作中产生的电信号确定信号灯的状态。The signal light detector may be a device used to obtain the state of the signal light in the monitoring scene in the monitoring system, and the signal light detector may determine the state of the signal light through the electrical signal generated during the operation of the signal light.
S403,确定场景信息所表示的信号灯的状态与状态信息所表示的信号灯的状态是否一致。S403: Determine whether the state of the signal lamp indicated by the scene information is consistent with the state of the signal lamp indicated by the state information.
示例性的,假设场景信息表示监控场景中的信号灯处于红灯亮起的状态,状态信息表示监控场景的信号灯处于绿灯亮起的状态,则可以认为场景信息所表示的信号灯的状态与状态信息所表示的信号灯的状态不一致。Exemplarily, assuming that the scene information indicates that the signal light in the monitoring scene is in a red light state, and the status information indicates that the signal light of the monitoring scene is in a green light state, it can be considered that the state of the signal light indicated by the scene information and the state information are The states of the indicated semaphores are inconsistent.
又例如,假设场景信息表示监控场景中的信号灯处于红灯亮起的状态,状态信息表示监控场景的信号灯处于红灯亮起的状态,则可以认为场景信息所表示的信号灯的状态与状态信息所表示的信号灯的状态一致。For another example, assuming that the scene information indicates that the signal light in the monitoring scene is in a red light state, and the status information indicates that the signal light of the monitoring scene is in a red light state, it can be considered that the state of the signal light represented by the scene information and the state information are The states of the indicated semaphores are the same.
S404,如果场景信息所表示的信号灯的状态与状态信息所表示的信号灯的状态不一致,确定监控场景存在不符合预设规则的交通信号。S404: If the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal lamp indicated by the state information, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
如果场景信息所表示的信号灯的状态与信号灯检测器检测到的信号灯的状态不同,则可以认为设置于监控场景中的信号灯检测器输出的状态信息有误。而按照有误的状态信息进行工作,可能导致监控系统无法正常工作。因此如果场景信息所表示的信号灯的状态与状态信息所表示的信号的状态不一致,可以认为监控场景中的信号灯不符合预设规则。If the status of the signal light indicated by the scene information is different from the status of the signal light detected by the signal light detector, it can be considered that the status information output by the signal light detector set in the monitoring scene is incorrect. Working according to incorrect status information may cause the monitoring system to fail to work normally. Therefore, if the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it can be considered that the signal lamp in the monitoring scene does not conform to the preset rule.
参见图5,图5所示为本申请实施例提供的应用于电子警察的监控场景中交通信号检测方法的又一种流程示意图,方法包括:Referring to FIG. 5, FIG. 5 is a schematic flow diagram of another method for detecting traffic signals in a monitoring scenario applied to an electronic police according to an embodiment of the application, and the method includes:
S501,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S501: Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述。This step is the same as S101, and you can refer to the previous description about S101.
S502,根据场景信息,确定监控场景信息中的信号灯连续处于相同的状态的时长是否超过预设时长阈值。S502: According to the scene information, determine whether the duration of the signal lamp in the monitoring scene information continuously being in the same state exceeds a preset duration threshold.
其中,信号灯连续处于相同的状态的时长,是指信号灯从进入一状态开始直至离开该状态为止所经过的时长。可以根据多个时间节点的监控图像识别得到的场景信息,确定监控场景中的信号灯在这多个时间节点中所处的状态,并且假设如果信号灯在两个时域相邻的时间节点上处于相同的状态,则该信号灯在这两个时间节点之间仍处于该相同的状态。进而根据信号灯在各个时间节点的状态,确定监控场景信息中的信号灯连续处于相同的状态的时长是否超过预设时长阈值。Among them, the length of time that the signal lamp is continuously in the same state refers to the length of time that the signal lamp elapses from entering a state to leaving the state. According to the scene information obtained by the surveillance image recognition of multiple time nodes, determine the state of the semaphore in the surveillance scene in these multiple time nodes, and assume that if the semaphore is at the same time on two adjacent time nodes in the time domain , The semaphore is still in the same state between these two time nodes. Furthermore, according to the state of the signal light at each time node, it is determined whether the duration of the signal light in the monitoring scene information continuously being in the same state exceeds the preset duration threshold.
示例性的,假设根据场景信息,信号灯在t=0s时处于绿灯亮起的状态,在t=10s时,处于绿灯亮起的状态,t=20s时处于绿灯亮起的状态,t=30s时处于红灯亮起的状态,t=40s时处于红灯亮起的状态,这可以认为该信号灯有30s保持在绿灯亮起的状态,有10s保持在红灯亮起的状态。如果预设时长阈值为25s,则该信号灯连续处于绿灯亮起的状态的时长超过预设时长阈值。Exemplarily, suppose that according to the scene information, the signal light is in the green light-on state at t=0s, the green light is on at t=10s, the green light is on at t=20s, and the green light is on at t=30s. When the red light is on, and the red light is on at t=40s, it can be considered that the signal light stays in the green light state for 30s, and the red light is on for 10s. If the preset duration threshold is 25s, the duration of the signal light continuously in the green light state exceeds the preset duration threshold.
S503,如果监控场景信息中的信号灯连续处于相同的状态的时长超过预设时长阈值,确定监控场景存在不符合预设规则的交通信号。S503: If the duration of the signal lamp in the monitoring scene information continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
可以理解的是,信号灯是按照预先设置的流程交替亮起绿灯、黄灯、红灯的。即在时域上,信号灯的状态理论上是交替变化的,因此如果信号灯长时间的处于相同的状态,则可以认为该信号灯出现故障。而当监控场景中存在出现故障的信号灯时,监控系统可能无法正常工作。It is understandable that the signal lights alternately turn on green, yellow, and red lights according to a preset process. That is, in the time domain, the state of the signal lamp is theoretically alternately changed. Therefore, if the signal lamp is in the same state for a long time, it can be considered that the signal lamp is malfunctioning. When there is a malfunctioning signal lamp in the monitoring scene, the monitoring system may not work normally.
在一些应用场景中,当确定监控场景异常时,可以生成相应的记录,以供相关人员查阅,进而发现监控场景的异常。在另一些应用场景中,为了更加便于相关人员及时发现监控场景的异常,可以向预设终端发送告警信息。预设终端可以是相关人员的移动终端设备,也可以是相关人员的个人电脑。发送告警信息的方式,以及告警信息所包括的具体内容,可以根据应用场景的不同而不同,本实施例对此不做限制,例如可以是向相关人员的手机发送携带有告警信息的短信,又例如也可以是向相关人员的邮箱发送携带有告警信息的邮件。In some application scenarios, when it is determined that the monitoring scene is abnormal, a corresponding record can be generated for relevant personnel to consult, and then discover the abnormality of the monitoring scene. In other application scenarios, in order to make it easier for relevant personnel to discover abnormalities in the monitoring scenario in time, alarm information can be sent to the preset terminal. The preset terminal may be a mobile terminal device of the relevant person, or a personal computer of the relevant person. The method of sending the alarm information and the specific content included in the alarm information may be different according to different application scenarios. This embodiment does not limit this. For example, it may be sending a short message carrying the alarm information to the mobile phone of the relevant person, and For example, it may also be sending an email carrying alarm information to the mailbox of the relevant person.
在一种可能的实施例中,为了便于相关人可以有针对性的对监控场景出现的异常进行处理,告警信息可以用于表示监控场景所发生的异常的类型。例如,如果根据场景信息所表示的交通信号的状态,确定至少一个交通标线的完整度低于预设完整度阈值,则可以向预设终端发送用于表示监控场景中交通标线污损的告警信息。In a possible embodiment, in order to facilitate the relevant persons to deal with the abnormality in the monitoring scene in a targeted manner, the alarm information may be used to indicate the type of the abnormality in the monitoring scene. For example, if it is determined that the integrity of at least one traffic marking is lower than the preset integrity threshold according to the state of the traffic signal indicated by the scene information, it may send to the preset terminal the information indicating the pollution of the traffic marking in the monitoring scene. Alarm information.
又例如,如果根据场景信息所表示的交通信号的状态,确定至少一个交通标志的完整度低于预设完整度阈值,则可以向预设终端发送用于表示设置于监控场景的监控设备架设不合理的告警信息。For another example, if it is determined that the integrity of at least one traffic sign is lower than the preset integrity threshold according to the state of the traffic signal indicated by the scene information, it can be sent to the preset terminal to indicate that the monitoring equipment installed in the monitoring scene is not set up. Reasonable warning information.
又例如,如果场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,则可以向预设终端发送用于表示监控场景中交通信号缺失的告警信息,或者,也可以向预设终端发送用于表示交通信号参数设置不合理的告警信息。For another example, if the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter, the alarm information used to indicate the absence of the traffic signal in the monitoring scene can be sent to the preset terminal, or also The alarm information used to indicate that the traffic signal parameter setting is unreasonable can be sent to the preset terminal.
又例如,如果场景信息所表示的各个交通信号的位置相对交通信号参数所表示的各个交通信号的位置存在偏移,则可以向预设终端发送用于表示设置于监控场景的监控设备发生偏移的告警信息。For another example, if the position of each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter, it can be sent to the preset terminal to indicate that the monitoring device installed in the monitoring scene is offset. Alarm information.
关于上述举例中,发送告警信息的条件的判断方式,可以参见前述图2-图4所示的实施例中的相关描述,在此不再赘述。Regarding the judgment method of the condition for sending the alarm information in the above example, refer to the related description in the embodiment shown in FIG. 2 to FIG. 4, which will not be repeated here.
在一些应用场景中,管理人员可能只对监控场景所发生的部分事件感兴趣,例如在车辆违章检测过程中,可能只对违章事件感兴趣。如果一个图片是在监控场景中没有发生用户感兴趣的事件时抓拍到的,则用户通过审阅该图片无法获取感兴趣的信息,并且会因审阅该图片产生一定的人工成本。因此,为降低人工成本,相关技术中,监控系统可以检测监控场景所发生的事件,当监控场景发生预设事件时,对监控场景进行抓拍,得到事件相关的图像,相关人员可以将抓拍到图像作为监控场景发生预设事件的证据,以进行后续相关处理。示例性的,以监控系统为电子警察为例,可以检测监控场景中是否发生违章事件,如果发生违章事件,则抓拍监控场景,得到违章图像,管理人员将这些图像作为车辆违章的证据,以对违章的车辆进行处罚。In some application scenarios, managers may only be interested in part of the events that occur in the monitoring scene. For example, in the process of vehicle violation detection, they may only be interested in violation events. If a picture is captured when there is no event of interest to the user in the monitoring scene, the user cannot obtain the information of interest by reviewing the picture, and a certain labor cost will be incurred for reviewing the picture. Therefore, in order to reduce labor costs, in related technologies, the surveillance system can detect events that occur in the surveillance scene. When a preset event occurs in the surveillance scene, the surveillance scene will be captured to obtain event-related images. The relevant personnel can capture the images. As evidence of the occurrence of a preset event in the monitoring scene for subsequent related processing. Exemplarily, taking the surveillance system as an electronic police as an example, it can detect whether a violation event occurs in the surveillance scene. If a violation event occurs, capture the surveillance scene and obtain the violation images. The management personnel use these images as evidence of vehicle violations. Violating vehicles shall be punished.
监控系统在抓拍图像的过程中会占用一定的资源,如带宽资源、存储资源,但是,出于一些原因,监控系统抓拍到的图像,可能无法作为监控场景发生预设事件的证据,导致相关人员无法根据抓拍到的图像,进行后续相关处理。即,监控系统所占用的资源被浪费。例如,以监控系统为电子警察为例,如果监控场景中存在施工的道路,车辆因施工绕道导致压实线时,可能会被电子警察抓拍到,但是抓拍到 的图像并不能作为该车辆违章的证据。另一方面,管理人员单位时间内能够审阅的违章图像有限,如果违章图像中存在不能作为车辆违章证据的图像,则会导致管理人员单位时间内审阅到的能够作为车辆违章证据的图像减少,即降低了管理人员的工作效率,增加了监管的人工成本。The surveillance system consumes certain resources in the process of capturing images, such as bandwidth resources and storage resources. However, for some reasons, the images captured by the surveillance system may not be used as evidence of a preset event in the surveillance scene, which leads to relevant personnel It is not possible to perform follow-up related processing based on the captured image. That is, the resources occupied by the monitoring system are wasted. For example, taking the monitoring system as the electronic police as an example, if there is a construction road in the surveillance scene, and the compaction line of the vehicle due to construction detours, it may be captured by the electronic police, but the captured image cannot be regarded as the vehicle's violation. evidence. On the other hand, the violation images that managers can review per unit time are limited. If there are images that cannot be used as vehicle violation evidence in the violation images, it will result in fewer images that can be used as vehicle violation evidence reviewed by the managers per unit time, that is, It reduces the work efficiency of managers and increases the labor cost of supervision.
基于此,在一种可能的实施例中可以如图6所示,图6所示为本申请实施例提供的监控场景检测方法的另一种流程示意图,包括:Based on this, in a possible embodiment, it may be as shown in FIG. 6, which is a schematic flowchart of another monitoring scene detection method provided by an embodiment of this application, including:
S601,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S601: Perform image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述。This step is the same as S101, and you can refer to the previous description about S101.
S602,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号。S602: According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene.
该步骤与S102相同,可以参见前述关于S102的相关描述。This step is the same as S102, and you can refer to the foregoing related description of S102.
S603,如果监控场景存在不符合预设规则的交通信号,确定监控场景异常。S603: If there is a traffic signal that does not meet the preset rule in the monitoring scene, it is determined that the monitoring scene is abnormal.
该步骤与S103相同,可以参见前述关于S103的相关描述。This step is the same as S103, and you can refer to the foregoing related description of S103.
S604,禁止抓拍与目标交通信号存在关联的事件。S604: It is forbidden to capture an event associated with the target traffic signal.
其中,目标交通信号为监控场景中不符合预设规则的交通信号。禁止抓拍可以是指禁止监控系统中用于监控监控场所的设备进行抓拍。Among them, the target traffic signal is a traffic signal that does not meet the preset rules in the monitoring scene. Prohibition of snapshots may refer to the prohibition of snapshots by equipment used to monitor the monitoring place in the surveillance system.
在一种可能的实施例中,如果监控场景中存在完整度低于预设完整度阈值的交通信号,则将该完整度低于预设阈值的交通信号作为目标交通信号。In a possible embodiment, if there is a traffic signal with a completeness lower than a preset completeness threshold in the monitoring scene, then the traffic signal with a completeness lower than the preset threshold is used as the target traffic signal.
在另一种可能的实施例中,如果监控场景中交通标线缺失时,则可以将缺失的交通标线确定为目标交通信号。In another possible embodiment, if the traffic marking is missing in the monitoring scene, the missing traffic marking may be determined as the target traffic signal.
在又一种可能的实施例中,如果监控场景中的信号灯常亮或者常暗,则可以将信号灯确定为目标交通信号。In yet another possible embodiment, if the signal lamp in the monitoring scene is always on or often dark, the signal lamp may be determined as the target traffic signal.
在又一种可能的实施例中,如果监控场景中监控设备拍摄到的图像中,信号灯的状态与信号灯检测装置输出的状态信息不一致,则可以将信号灯确定为目标交通信号。In another possible embodiment, if the state of the signal light in the image captured by the monitoring device in the monitoring scene is inconsistent with the state information output by the signal light detection device, the signal light may be determined as the target traffic signal.
事件与交通信号存在关联是可以是指:在检测监控场景中是否发生该事件时,需要根据该交通信号的状态进行检测。The fact that an event is associated with a traffic signal may mean that when detecting whether the event occurs in a monitoring scene, it needs to be detected according to the state of the traffic signal.
例如,在检测监控场景中是否发生闯红灯事件时,需要根据信号灯的状态进行检测,因此闯红灯事件与信号灯存在关联。如果信号灯为目标交通信号,则禁止抓拍闯红灯事件。For example, when detecting whether a red light-breaking event occurs in a monitoring scene, it needs to be detected according to the state of the signal light, so the red-light-breaking event is related to the signal light. If the signal light is the target traffic signal, it is prohibited to capture the red light incident.
又例如,在检测监控场景中是否发生违章变道事件时,需要根据交通标线的状态,因此违章变道事件与交通标线存在关联。如果交通标线为目标交通信号,则禁止抓拍违章变道事件。For another example, when detecting whether an illegal lane change event occurs in a monitoring scene, it needs to be based on the state of the traffic marking, so the illegal lane change event is related to the traffic marking. If the traffic marking is the target traffic signal, it is prohibited to capture the illegal lane change event.
禁止抓拍可以是持续一定时长后自动解除,也可以是在接收到禁止解除指令后解除。在一种可能的实施例中,禁止抓拍一事件,还可以是在确定与该事件存在关联的交通信号全部符合预设规则后解除。 例如,如果因信号灯为目标交通信号而禁止抓拍闯红灯事件,则可以在信号灯重新符合预设规则后,解除禁止抓牌闯红灯事件。The prohibition of snapping can be automatically released after a certain period of time, or it can be released after receiving the prohibition release instruction. In a possible embodiment, it is forbidden to capture an event, and it can also be cancelled after it is determined that all traffic signals associated with the event comply with a preset rule. For example, if the red-light-taking event is prohibited because the signal light is the target traffic signal, the red-light-driving event prohibition can be lifted after the signal light meets the preset rules again.
选用该实施例,可以根据监控场景的异常类型,对应禁止抓拍相关的事件,以避免因监控场景异常导致的事件检测的不准确性,即提高了抓拍到的图像是相关人员感兴趣的图像的可能性,有效降低了人工成本的浪费。This embodiment can be selected according to the abnormal type of the monitoring scene, corresponding to the prohibition of capturing related events, so as to avoid the inaccuracy of event detection caused by abnormal monitoring of the scene, that is, improving the image captured by the relevant personnel. Possibility, effectively reducing the waste of labor costs.
下面将结合具体的示例对禁止抓拍事件与目标交通信号之间的关联关系进行说明:The following will describe the association relationship between the forbidden capture event and the target traffic signal with a specific example:
例如,如果目标交通信号为导向标志,如左转弯标志,则可以禁止抓拍不按导向行驶事件。For example, if the target traffic signal is a guide sign, such as a left turn sign, it can be forbidden to capture the event of driving without following the guide.
又例如,如果目标交通信号为交通标线,则可以禁止抓拍与该交通标线对应的压线、变道事件。可以理解的是,监控场景中可能存在多个交通标线,如果其中部分交通标线不符合规则,而另一部分交通标线符合预设规则,则可以禁止抓拍与该部分交通标线对应的压线、变道事件,同时继续抓拍与该另一部分交通标线对应的压线、变道事件。也可以禁止抓拍与所有交通标线对应的压线、变道事件,本实施例对此不做限制。For another example, if the target traffic signal is a traffic marking, it may be prohibited to capture the line pressing and lane change events corresponding to the traffic marking. It is understandable that there may be multiple traffic markings in the monitoring scene. If some of the traffic markings do not comply with the rules, and the other part of the traffic markings comply with the preset rules, it is forbidden to capture the pressure corresponding to that part of the traffic markings. At the same time, continue to capture the line pressing and lane change events corresponding to the other part of the traffic marking. It is also forbidden to capture line pressing and lane change events corresponding to all traffic markings, which is not limited in this embodiment.
又例如,如果目标交通信号为停车线,则可以禁止抓拍闯红灯、不按导向驾驶事件。For another example, if the target traffic signal is a stop line, it is forbidden to capture the incident of running a red light and driving without following the guidance.
又例如,如果目标交通信号为信号灯,则可以禁止抓拍闯红灯、闯绿灯事件。For another example, if the target traffic signal is a semaphore, it is forbidden to capture red light or green light incidents.
上述关联关系仅为一种可能的实施例中的关联关系,在其他可能的实施例中,关联关系可以根据用户经验或者需求进行更改或增删,本实施例对此不做限制。The foregoing association relationship is only the association relationship in one possible embodiment. In other possible embodiments, the association relationship can be changed, added or deleted according to user experience or needs, which is not limited in this embodiment.
可以理解的是,交通信号虽然可以起到指示和/或限制车辆行驶的功能,但是在一些应用场景中,车辆行驶可以不遵守这些交通信号并且也不会违规。例如,当道路施工时,单向车道可能变为双向车道,又例如,在交通事故现场,交警人工疏散现场时,车辆可以以交警指示为准,而不必遵守信号灯。因此,在这些场景中,交通信号可能无法起到预期指示和限制车辆行驶的功能,可以认为这些交通信号存在异常。It is understandable that, although the traffic signals may function to indicate and/or restrict the driving of the vehicle, in some application scenarios, the driving of the vehicle may not comply with these traffic signals and will not violate the regulations. For example, during road construction, one-way lanes may become two-way lanes. For example, at the scene of a traffic accident, when the traffic police evacuates the scene manually, the vehicle can follow the traffic police's instructions instead of observing the signal lights. Therefore, in these scenarios, the traffic signals may not function as expected to indicate and restrict the driving of the vehicle, and it can be considered that these traffic signals are abnormal.
基于此,在一种可能的实施例中,可以如图7所示,图7所示为本申请实施例提供的监控场景检测方法的另一种流程示意图,包括:Based on this, in a possible embodiment, as shown in FIG. 7, FIG. 7 is a schematic flowchart of another monitoring scene detection method provided by an embodiment of the application, including:
S701,对监控场景的监控图像进行图像识别,得到监控场景的场景信息。S701: Perform image recognition on a surveillance image of a surveillance scene to obtain scene information of the surveillance scene.
该步骤与S101相同,可以参见前述关于S101的相关描述。This step is the same as S101, and you can refer to the previous description about S101.
S702,根据场景信息所表示的各个交通信号的位置,确定监控场景中是否存在位于预设异常事件发生的区域内的交通信号。S702: Determine, according to the location of each traffic signal indicated by the scene information, whether there is a traffic signal located in the area where a preset abnormal event occurs in the monitoring scene.
预设异常事件根据应用场景的不同可以不同,例如预设异常事件可以包括施工、交通事故中的一种或多种,在其他可能的实施例中也可以包括其他事件,本实施例对此不做限制。示例性的,如果一个车道正在施工,则该车道为预设异常事件发生的区域,可以确定监控场景中是否存在位于该车道的交通信号。The preset abnormal event may be different according to different application scenarios. For example, the preset abnormal event may include one or more of construction and traffic accidents, and may also include other events in other possible embodiments. This embodiment does not apply to this. Do restrictions. Exemplarily, if a lane is under construction, the lane is the area where the preset abnormal event occurs, and it can be determined whether there is a traffic signal in the lane in the monitoring scene.
S703,如果存在位于预设异常事件发生的区域内的交通信号,确定监控场景存在不符合预设规则的交通信号。S703: If there is a traffic signal located in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
在一种可能的实施例中,可以将预设异常事件发生的区域内的交通信号作为目标交通信号,并禁止抓拍与目标交通信号存在关联的事件。仍以前述S702中的例子为例,则可以是将正在施工的车道的车道线确定为目标交通信号,并禁止抓拍与该车道线存在关联的事件。In a possible embodiment, the traffic signal in the area where the preset abnormal event occurs can be used as the target traffic signal, and it is forbidden to capture the event associated with the target traffic signal. Still taking the example in the aforementioned S702 as an example, the lane line of the lane under construction may be determined as the target traffic signal, and it is forbidden to capture events associated with the lane line.
参见图8a,图8a所示为本申请实施例提供的监控场景检测装置的一种结构示意图,可以包括:Referring to Fig. 8a, Fig. 8a is a schematic structural diagram of a monitoring scene detection device provided by an embodiment of the application, which may include:
图像识别模块801,用于对监控场景的监控图像进行图像识别,得到监控场景的场景信息,场景信息用于表示监控场景中各个交通信号的状态;The image recognition module 801 is used to perform image recognition on the monitoring image of the monitoring scene to obtain scene information of the monitoring scene, and the scene information is used to indicate the status of each traffic signal in the monitoring scene;
规则匹配模块802,用于根据场景信息,确定监控场景是否存在不符合预设规则的交通信号;The rule matching module 802 is used to determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene according to the scene information;
异常监测模块803,用于如果监控场景存在不符合预设规则的交通信号,确定监控场景异常。The abnormality monitoring module 803 is configured to determine that the monitoring scene is abnormal if there is a traffic signal that does not meet the preset rules in the monitoring scene.
在一种可能的实现方式中,规则匹配模块802,具体用于根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;In a possible implementation, the rule matching module 802 is specifically configured to determine whether there are any traffic signals in the monitoring scene whose integrity is lower than a preset integrity threshold according to the status of each traffic signal indicated by the scene information. Traffic signal
如果存在完整度低于预设完整度阈值的交通信号,确定监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
在一种可能的实现方式中,异常监测模块803,还用于在根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果场景信息表示至少一个交通标线的完整度低于预设完整度阈值,向预设终端发送用于表示监控场景中交通标线污损的告警信息。In a possible implementation, the abnormality monitoring module 803 is also used to determine whether the integrity of each traffic signal in the monitoring scene is lower than the preset integrity threshold according to the status of each traffic signal indicated by the scene information After the traffic signal, if the scene information indicates that the integrity of at least one traffic marking is lower than the preset integrity threshold, the alarm information used to indicate the pollution of the traffic marking in the monitoring scene is sent to the preset terminal.
在一种可能的实现方式中,异常监测模块803,还用于在根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果场景信息所表示至少一个交通标志的完整度低于预设完整度阈值,向预设终端发送用于表示设置于监控场景的监控设备架设不合理的告警信息。In a possible implementation, the abnormality monitoring module 803 is also used to determine whether the integrity of each traffic signal in the monitoring scene is lower than the preset integrity threshold according to the status of each traffic signal indicated by the scene information After the traffic signal, if the integrity of at least one traffic sign indicated by the scene information is lower than the preset integrity threshold, the alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed is sent to the preset terminal.
在一种可能的实现方式中,规则匹配模块802,具体用于确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;In a possible implementation, the rule matching module 802 is specifically configured to determine whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene;
如果场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定监控场景存在不符合预设规则的交通信号。If the status of each traffic signal indicated by the scene information is inconsistent with the status of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene, it is determined that there are traffic signals in the monitoring scene that do not conform to the preset rules.
在一种可能的实现方式中,规则匹配模块802,具体用于确定场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态是否存在缺失;In a possible implementation, the rule matching module 802 is specifically configured to determine whether the state of the traffic signal represented by the scene information is missing relative to the state of the traffic signal represented by the traffic signal parameters;
异常检测模块803,还用于如果所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,向预设终端发送用于表示所述监控场景中交通信号缺失的告警信息,或向所述预设终端发送用于表示所述交通信号参数设置不合理的告警信息。The anomaly detection module 803 is further configured to send to a preset terminal a signal indicating the absence of a traffic signal in the monitoring scene if the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter. Or send to the preset terminal warning information indicating that the traffic signal parameter setting is unreasonable.
在一种可能的实现方式中,规则匹配模块802,具体用于确定场景信息所表示的各个交通信号的位 置相对交通信号参数所表示的各个交通信号的位置是否存在偏移;In a possible implementation, the rule matching module 802 is specifically used to determine whether the position of each traffic signal indicated by the scene information is offset from the position of each traffic signal indicated by the traffic signal parameter;
异常监测模块803,具体用于如果场景信息所表示的各个交通信号相对交通信号参数所表示的各个交通信号存在偏移,向预设终端发送用于表示设置于监控场景的监控设备发生偏移的告警信息。The abnormality monitoring module 803 is specifically configured to send to the preset terminal information indicating that the monitoring equipment set in the monitoring scene is offset if the traffic signals indicated by the scene information are offset from the traffic signals indicated by the traffic signal parameters. Alarm information.
在一种可能的实现方式中,装置还包括信号灯状态获取模块,用于获取设置于监控场景中信号灯检测器发送的状态信息,状态信息用于表示信号灯检测器检测到的各个信号灯的状态;In a possible implementation, the device further includes a signal light state acquisition module, which is used to acquire the state information sent by the signal light detector set in the monitoring scene, and the state information is used to indicate the state of each signal light detected by the signal light detector;
规则匹配模块802,具体用于确定场景信息所表示的信号灯的状态与状态信息所表示的信号的状态是否一致;The rule matching module 802 is specifically configured to determine whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
如果场景信息所表示的信号灯的状态与状态信息所表示的信号的状态不一致,确定监控场景存在不符合预设规则的交通信号。If the state of the signal light indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
在一种可能的实现方式中,规则匹配模块802,具体用于根据场景信息,确定监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;In a possible implementation manner, the rule matching module 802 is specifically configured to determine, according to the scene information, whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
如果监控场景中的信号灯连续处于相同的状态的时长超过预设时长阈值,确定监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there are traffic signals in the monitoring scene that do not meet the preset rules.
在一种可能的实现方式中,如图8b所示,装置还包括监控系统管理模块804,用于在确定监控场景异常之后,禁止抓拍与目标交通信号存在关联的事件,目标交通信号为监控场景中不符合预设规则的交通信号。In a possible implementation, as shown in FIG. 8b, the device further includes a monitoring system management module 804, which is used to prohibit capturing events associated with the target traffic signal after determining that the monitoring scene is abnormal, and the target traffic signal is the monitoring scene Traffic signals that do not comply with the preset rules.
在一种可能的实现方式中,如图8c所示,装置还包括参数校正模块805,参数校正模块用于在确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,如果场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据监控场景的场景信息,对监控设备的配置参数进行校正。In a possible implementation, as shown in FIG. 8c, the device further includes a parameter correction module 805, which is used to determine the state of each traffic signal represented by the scene information and the traffic signal parameters preset for the monitoring scene After the indicated states of the various traffic signals are consistent, if the states of the various traffic signals indicated by the scene information are inconsistent with the states of the various traffic signals indicated by the traffic signal parameters preset for the monitoring scene, according to the scene information of the monitoring scene, Correct the configuration parameters of the monitoring equipment.
在一种可能的实现方式中,参数校正模块805,具体用于根据监控场景的场景信息,生成与场景信息相匹配的配置参数,作为校正配置参数;In a possible implementation manner, the parameter correction module 805 is specifically configured to generate configuration parameters matching the scene information according to the scene information of the monitoring scene, as the correction configuration parameters;
将监控设备的配置参数更改为校正配置参数。Change the configuration parameters of the monitoring device to the calibration configuration parameters.
在一种可能的实现方式中,规则匹配模块802,具体用于根据场景信息所表示的各个交通信号的位置,确定监控场景中是否存在位于预设异常事件发生的区域内的交通信号;In a possible implementation manner, the rule matching module 802 is specifically configured to determine whether there is a traffic signal in the area where a preset abnormal event occurs in the monitoring scene according to the position of each traffic signal indicated by the scene information;
如果存在位于预设异常事件发生的区域内的交通信号,确定监控场景存在不符合预设规则的交通信号。If there is a traffic signal in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
本申请实施例还提供了一种电子设备,如图9所示,:An embodiment of the present application also provides an electronic device, as shown in FIG. 9:
存储器901,用于存放计算机程序;The memory 901 is used to store computer programs;
处理器902,用于执行存储器901上所存放的程序时,实现如下步骤:The processor 902 is configured to implement the following steps when executing the program stored in the memory 901:
对监控场景的监控图像进行图像识别,得到监控场景的场景信息,场景信息用于表示监控场景中各 个交通信号的状态;Perform image recognition on the surveillance images of the surveillance scene to obtain scene information of the surveillance scene, which is used to indicate the status of each traffic signal in the surveillance scene;
根据场景信息,确定监控场景是否存在不符合预设规则的交通信号;According to the scene information, determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene;
如果监控场景存在不符合预设规则的交通信号,确定监控场景异常。If there is a traffic signal that does not meet the preset rules in the monitoring scene, it is determined that the monitoring scene is abnormal.
在一种可能的实现方式中,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;According to the state of each traffic signal indicated by the scene information, determine whether there is a traffic signal with a completeness lower than a preset completeness threshold in each of the traffic signals in the monitoring scene;
如果存在完整度低于预设完整度阈值的交通信号,确定监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
在一种可能的实现方式中,在根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,方法还包括:In a possible implementation manner, after determining whether there is a traffic signal with a completeness lower than a preset completeness threshold in each traffic signal in the monitoring scene according to the state of each traffic signal indicated by the scene information, the method further includes :
如果场景信息表示至少一个交通标线的完整度低于预设完整度阈值,向预设终端发送用于表示监控场景中交通标线污损的告警信息。If the scene information indicates that the completeness of at least one traffic marking is lower than the preset completeness threshold, the alarm information used to indicate the pollution of the traffic marking in the monitoring scene is sent to the preset terminal.
在一种可能的实现方式中,在根据场景信息所表示的各个交通信号的状态,确定监控场景中的各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,方法还包括:In a possible implementation manner, after determining whether there is a traffic signal with a completeness lower than a preset completeness threshold in each traffic signal in the monitoring scene according to the state of each traffic signal indicated by the scene information, the method further includes :
如果场景信息表示至少一个交通标志的完整度低于预设完整度阈值,向预设终端发送用于表示设置于监控场景的监控设备架设不合理的告警信息。If the scene information indicates that the integrity of at least one traffic sign is lower than the preset integrity threshold, the alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed is sent to the preset terminal.
在一种可能的实现方式中,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;Determine whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene;
如果场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定监控场景存在不符合预设规则的交通信号。If the state of each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene, it is determined that there are traffic signals in the monitoring scene that do not conform to the preset rules.
在一种可能的实现方式中,确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致,包括:In a possible implementation manner, determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene includes:
具体用于确定所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态是否存在缺失;Specifically, it is used to determine whether the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter;
所述方法还包括:The method also includes:
如果所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,向预设终端发送用于表示所述监控场景中交通信号缺失的告警信息,或向所述预设终端发送用于表示所述交通信号参数设置不合理的告警信息。If the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter, send warning information indicating the absence of a traffic signal in the monitoring scene to a preset terminal, or send to the The preset terminal sends alarm information used to indicate that the traffic signal parameter setting is unreasonable.
在一种可能的实现方式中,确定场景信息所表示的各个交通信号,与针对监控场景预设的交通信号参数所表示的各个交通信号是否一致,包括:In a possible implementation manner, determining whether each traffic signal represented by the scene information is consistent with each traffic signal represented by the traffic signal parameters preset for the monitoring scene includes:
确定场景信息所表示的各个交通信号的位置相对交通信号参数所表示的各个交通信号的位置是否存在偏移;Determine whether there is an offset between the position of each traffic signal indicated by the scene information and the position of each traffic signal indicated by the traffic signal parameter;
方法还包括:Methods also include:
如果场景信息所表示的各个交通信号相对交通信号参数所表示的各个交通信号存在偏移,向预设终端发送用于表示设置于监控场景的监控设备发生偏移的告警信息。If each traffic signal indicated by the scene information has an offset with respect to each traffic signal indicated by the traffic signal parameter, the alarm information used to indicate that the monitoring device set in the monitoring scene is offset is sent to the preset terminal.
在一种可能的实现方式中,方法还包括:In a possible implementation, the method further includes:
获取设置于监控场景中信号灯检测器发送的状态信息,状态信息用于表示信号灯检测器检测到的各个信号灯的状态;Acquire the status information sent by the signal light detector set in the monitoring scene, and the status information is used to indicate the status of each signal light detected by the signal light detector;
根据场景信息,确定监控场景是否存在不符合预设规则的交通信号,包括:According to the scene information, determine whether there is a traffic signal that does not meet the preset rules in the monitoring scene, including:
确定场景信息所表示的信号灯的状态与状态信息所表示的信号的状态是否一致;Determine whether the state of the signal lamp indicated by the scene information is consistent with the state of the signal indicated by the state information;
如果场景信息所表示的信号灯的状态与状态信息所表示的信号的状态不一致,确定监控场景存在不符合预设规则的交通信号。If the state of the signal light indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
在一种可能的实现方式中,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号,包括:In a possible implementation manner, determining whether there is a traffic signal that does not comply with preset rules in the monitoring scene according to the scene information includes:
根据场景信息,确定监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;According to the scene information, determine whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold;
如果监控场景中的信号灯连续处于相同的状态的时长超过预设时长阈值,确定监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there are traffic signals in the monitoring scene that do not meet the preset rules.
在一种可能的实现方式中,在确定监控场景异常之后,方法还包括:In a possible implementation, after determining that the monitoring scenario is abnormal, the method further includes:
禁止抓拍与目标交通信号存在关联的事件,目标交通信号为监控场景中不符合预设规则的交通信号。It is forbidden to capture events related to the target traffic signal. The target traffic signal is a traffic signal that does not meet the preset rules in the monitoring scene.
在一种可能的实现方式中,在确定场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,方法还包括:In a possible implementation, after determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene, the method further includes:
如果场景信息所表示的各个交通信号的状态与针对监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据监控场景的场景信息,对监控设备的配置参数进行校正。If the status of each traffic signal indicated by the scene information is inconsistent with the status of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene, the configuration parameters of the monitoring device are corrected according to the scene information of the monitoring scene.
在一种可能的实现方式中,根据监控场景的场景信息,对监控设备的配置参数进行校正,包括:In a possible implementation, correcting the configuration parameters of the monitoring device according to the scene information of the monitoring scene includes:
根据监控场景的场景信息,生成与场景信息相匹配的配置参数,作为校正配置参数;According to the scene information of the monitoring scene, generate configuration parameters matching the scene information as correction configuration parameters;
将监控设备的配置参数更改为校正配置参数。Change the configuration parameters of the monitoring device to calibration configuration parameters.
在一种可能的实现方式中,根据场景信息,确定监控场景是否存在不符合预设规则的交通信号,包 括:In a possible implementation manner, according to the scene information, it is determined whether there is a traffic signal that does not meet the preset rules in the monitoring scene, including:
根据场景信息所表示的各个交通信号的位置,确定监控场景中是否存在位于预设异常事件发生的区域内的交通信号;According to the location of each traffic signal indicated by the scene information, determine whether there is a traffic signal in the area where the preset abnormal event occurs in the monitoring scene;
如果存在位于预设异常事件发生的区域内的交通信号,确定监控场景存在不符合预设规则的交通信号。If there is a traffic signal in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not meet the preset rules in the monitoring scene.
上述电子设备提到的存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory mentioned in the above electronic device may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located far away from the foregoing processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), a dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一监控场景检测方法。In yet another embodiment provided in this application, a computer-readable storage medium is also provided. The computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute any of the above-mentioned embodiments. Monitoring scene detection method.
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一监控场景检测方法。In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any monitoring scene detection method in the foregoing embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or equipment that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介 质以及计算机程序产品的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, electronic equipment, computer-readable storage medium, and computer program product, since they are basically similar to the method embodiments, the description is relatively simple. For related parts, please refer to the part of the description of the method embodiments. .
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of this application, and are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection of this application. Within the range.

Claims (26)

  1. 一种监控场景检测方法,其特征在于,所述方法包括:A monitoring scene detection method, characterized in that the method includes:
    对监控场景的监控图像进行图像识别,得到所述监控场景的场景信息,所述场景信息用于表示所述监控场景中各个交通信号的状态;Performing image recognition on the surveillance image of the surveillance scene to obtain scene information of the surveillance scene, where the scene information is used to indicate the status of each traffic signal in the surveillance scene;
    根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号;According to the scene information, determine whether there is a traffic signal that does not conform to a preset rule in the monitoring scene;
    如果所述监控场景存在不符合预设规则的交通信号,确定所述监控场景异常。If there is a traffic signal that does not conform to a preset rule in the monitoring scene, it is determined that the monitoring scene is abnormal.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The method according to claim 1, wherein the determining whether there is a traffic signal that does not conform to a preset rule in the monitoring scene according to the scene information comprises:
    根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;According to the state of each traffic signal indicated by the scene information, determine whether there is a traffic signal with a completeness lower than a preset completeness threshold among the various traffic signals in the monitoring scene;
    如果存在完整度低于所述预设完整度阈值的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
  3. 根据权利要求2所述的方法,其特征在于,在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,所述方法还包括:The method according to claim 2, characterized in that, in the state of each traffic signal indicated by the scene information, it is determined whether there is a completeness lower than expected in each of the traffic signals in the monitoring scene. After setting the traffic signal of the integrity threshold, the method further includes:
    如果所述场景信息表示至少一个交通标线的完整度低于所述预设完整度阈值,向预设终端发送用于表示所述监控场景中交通标线污损的告警信息。If the scene information indicates that the integrity of at least one traffic marking is lower than the preset integrity threshold, sending warning information indicating that the traffic marking is defaced in the monitoring scene is sent to the preset terminal.
  4. 根据权利要求2所述的方法,其特征在于,在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,所述方法还包括:The method according to claim 2, characterized in that, in the state of each traffic signal indicated by the scene information, it is determined whether there is a completeness lower than expected in each of the traffic signals in the monitoring scene. After setting the traffic signal of the integrity threshold, the method further includes:
    如果所述场景信息表示至少一个交通标志的完整度低于所述预设完整度阈值,向预设终端发送用于表示设置于所述监控场景的监控设备架设不合理的告警信息。If the scene information indicates that the integrity of at least one traffic sign is lower than the preset integrity threshold, sending alarm information indicating that the monitoring equipment set in the monitoring scene is not properly installed to the preset terminal.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The method according to claim 1, wherein the determining whether there is a traffic signal that does not conform to a preset rule in the monitoring scene according to the scene information comprises:
    确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;Determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene;
    如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
  6. 根据权利要求5所述的方法,其特征在于,所述确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致,包括:The method according to claim 5, wherein the determining whether the state of each traffic signal represented by the scene information is consistent with the state of each traffic signal represented by the traffic signal parameters preset for the monitoring scene ,include:
    确定所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态是否存在 缺失;Determining whether the state of the traffic signal represented by the scene information is missing relative to the state of the traffic signal represented by the traffic signal parameter;
    所述方法还包括:The method also includes:
    如果所述场景信息所表示的交通信号的状态相对交通信号参数所表示的交通信号的状态存在缺失,向预设终端发送用于表示所述监控场景中交通信号缺失的告警信息,或向所述预设终端发送用于表示所述交通信号参数设置不合理的告警信息。If the state of the traffic signal indicated by the scene information is missing relative to the state of the traffic signal indicated by the traffic signal parameter, send warning information indicating the absence of a traffic signal in the monitoring scene to a preset terminal, or send to the The preset terminal sends alarm information used to indicate that the traffic signal parameter setting is unreasonable.
  7. 根据权利要求5所述的方法,其特征在于,所述确定所述场景信息所表示的各个交通信号与针对所述监控场景预设的交通信号参数所表示的各个交通信号是否一致,包括:The method according to claim 5, wherein the determining whether each traffic signal represented by the scene information is consistent with each traffic signal represented by a traffic signal parameter preset for the monitoring scene comprises:
    确定所述场景信息所表示的各个交通信号的位置相对交通信号参数所表示的各个交通信号的位置是否存在偏移;Determine whether there is an offset between the position of each traffic signal indicated by the scene information and the position of each traffic signal indicated by the traffic signal parameter;
    所述方法还包括:The method also includes:
    如果所述场景信息所表示的各个交通信号相对交通信号参数所表示的各个交通信号存在偏移,向预设终端发送用于表示设置于所述监控场景的监控设备发生偏移的告警信息。If each traffic signal indicated by the scene information has an offset with respect to each traffic signal indicated by the traffic signal parameter, an alarm information used to indicate that the monitoring device installed in the monitoring scene is offset is sent to the preset terminal.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    获取设置于所述监控场景中信号灯检测器发送的状态信息,所述状态信息用于表示所述信号灯检测器检测到的各个信号灯的状态;Acquiring status information sent by a signal light detector set in the monitoring scene, where the status information is used to indicate the status of each signal light detected by the signal light detector;
    所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The determining, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene includes:
    确定所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态是否一致;Determining whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
    如果所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  9. 根据权利要求1所述的方法,其特征在于,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The method according to claim 1, wherein the determining whether there is a traffic signal that does not conform to a preset rule in the monitoring scene according to the scene information comprises:
    根据所述场景信息,确定所述监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;According to the scene information, determine whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
    如果所述监控场景中的信号灯连续处于相同的状态的时长超过所述预设时长阈值,确定所述监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
  10. 根据权利要求1所述的方法,其特征在于,在所述确定所述监控场景异常之后,所述方法还包括:The method according to claim 1, wherein after the determining that the monitoring scene is abnormal, the method further comprises:
    禁止抓拍与目标交通信号存在关联的事件,所述目标交通信号为所述监控场景中不符合预设规则的交通信号。It is forbidden to capture an event associated with a target traffic signal, and the target traffic signal is a traffic signal that does not comply with a preset rule in the monitoring scene.
  11. 根据权利要求5所述的方法,其特征在于,在所述确定所述场景信息所表示的各个交通信号的 状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,所述方法还包括:The method according to claim 5, characterized in that in the determining whether the state of each traffic signal indicated by the scene information is different from the state of each traffic signal indicated by the traffic signal parameters preset for the monitoring scene After the agreement, the method further includes:
    如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正。If the status of each traffic signal represented by the scene information is inconsistent with the status of each traffic signal represented by the traffic signal parameters preset for the monitoring scene, the monitoring equipment is monitored according to the scene information of the monitoring scene. Configure the parameters for correction.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正,包括:The method according to claim 11, wherein the correcting the configuration parameters of the monitoring device according to the scene information of the monitoring scene comprises:
    根据所述监控场景的场景信息,生成与所述场景信息相匹配的配置参数,作为校正配置参数;According to the scene information of the monitoring scene, generating configuration parameters that match the scene information as correction configuration parameters;
    将所述监控设备的配置参数更改为所述校正配置参数。The configuration parameter of the monitoring device is changed to the correction configuration parameter.
  13. 根据权利要求1所述的方法,其特征在于,所述根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号,包括:The method according to claim 1, wherein the determining whether there is a traffic signal that does not conform to a preset rule in the monitoring scene according to the scene information comprises:
    根据所述场景信息所表示的各个交通信号的位置,确定所述监控场景中是否存在位于预设异常事件发生的区域内的交通信号;According to the location of each traffic signal indicated by the scene information, determine whether there is a traffic signal located in the area where a preset abnormal event occurs in the monitoring scene;
    如果存在位于预设异常事件发生的区域内的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal located in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
  14. 一种监控场景检测装置,其特征在于,所述装置包括:A monitoring scene detection device, characterized in that the device includes:
    图像识别模块,用于对监控场景的监控图像进行图像识别,得到所述监控场景的场景信息,所述场景信息用于表示所述监控场景中各个交通信号的状态;The image recognition module is configured to perform image recognition on the monitoring image of the monitoring scene to obtain scene information of the monitoring scene, where the scene information is used to indicate the status of each traffic signal in the monitoring scene;
    规则匹配模块,用于根据所述场景信息,确定所述监控场景是否存在不符合预设规则的交通信号;The rule matching module is configured to determine, according to the scene information, whether there is a traffic signal that does not conform to a preset rule in the monitoring scene;
    异常监测模块,用于如果所述监控场景存在不符合预设规则的交通信号,确定所述监控场景异常。The abnormality monitoring module is configured to determine that the monitoring scene is abnormal if there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  15. 根据权利要求14所述的装置,其特征在于,所述规则匹配模块,具体用于根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号;The device according to claim 14, wherein the rule matching module is specifically configured to determine whether each traffic signal in the monitoring scene is included in the state of each traffic signal indicated by the scene information. There are traffic signals whose integrity is lower than the preset integrity threshold;
    如果存在完整度低于所述预设完整度阈值的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal whose integrity is lower than the preset integrity threshold, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
  16. 根据权利要求15所述的装置,其特征在于,所述异常监测模块,还用于在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果所述场景信息表示至少一个交通标线的完整度低于所述预设完整度阈值,向预设终端发送用于表示所述监控场景中交通标线污损的告警信息。The device according to claim 15, wherein the abnormality monitoring module is further configured to determine the state of each traffic signal in the monitoring scene according to the state of each traffic signal indicated by the scene information After whether there is a traffic signal whose integrity is lower than the preset integrity threshold in the signal, if the scene information indicates that the integrity of at least one traffic marking is below the preset integrity threshold, send to the preset terminal to indicate The warning information of traffic marking defacement in the monitoring scene.
  17. 根据权利要求15所述的装置,其特征在于,所述异常监测模块,还用于在所述根据所述场景信息所表示的各个交通信号的状态,确定所述监控场景中的所述各个交通信号中是否存在完整度低于预设完整度阈值的交通信号之后,如果所述场景信息所表示至少一个交通标志的完整度低于所述预设完整度 阈值,向预设终端发送用于表示设置于所述监控场景的监控设备架设不合理的告警信息。The device according to claim 15, wherein the abnormal monitoring module is further configured to determine the respective traffic signals in the monitoring scene according to the state of each traffic signal indicated by the scene information. After the signal has a traffic signal whose integrity is lower than the preset integrity threshold, if the integrity of at least one traffic sign indicated by the scene information is lower than the preset integrity threshold, send to the preset terminal to indicate The monitoring equipment set in the monitoring scene sets up unreasonable alarm information.
  18. 根据权利要求14所述的装置,其特征在于,所述规则匹配模块,具体用于确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致;The device according to claim 14, wherein the rule matching module is specifically configured to determine the status of each traffic signal represented by the scene information and the traffic signal parameter preset for the monitoring scene. Whether the status of each traffic signal is consistent;
    如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of each traffic signal indicated by the scene information is inconsistent with the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene, it is determined that there is a traffic signal that does not conform to the preset rule in the monitoring scene.
  19. 根据权利要求14所述的装置,其特征在于,所述装置还包括信号灯状态获取模块,用于获取设置于所述监控场景中信号灯检测器发送的状态信息,所述状态信息用于表示所述信号灯检测器检测到的各个信号灯的状态;The device according to claim 14, wherein the device further comprises a signal light state acquisition module, configured to acquire the state information sent by the signal light detector set in the monitoring scene, and the state information is used to indicate the The status of each signal light detected by the signal light detector;
    所述规则匹配模块,具体用于确定所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态是否一致;The rule matching module is specifically configured to determine whether the state of the signal light indicated by the scene information is consistent with the state of the signal indicated by the state information;
    如果所述场景信息所表示的信号灯的状态与所述状态信息所表示的信号的状态不一致,确定所述监控场景存在不符合预设规则的交通信号。If the state of the signal lamp indicated by the scene information is inconsistent with the state of the signal indicated by the state information, it is determined that there is a traffic signal that does not conform to a preset rule in the monitoring scene.
  20. 根据权利要求14所述的装置,其特征在于,所述规则匹配模块,具体用于根据所述场景信息,确定所述监控场景中的信号灯连续处于相同的状态的时长是否超过预设时长阈值;The device according to claim 14, wherein the rule matching module is specifically configured to determine, according to the scene information, whether the duration of the signal lights in the monitoring scene continuously being in the same state exceeds a preset duration threshold;
    如果所述监控场景中的信号灯连续处于相同的状态的时长超过所述预设时长阈值,确定所述监控场景存在不符合预设规则的交通信号。If the duration of the signal lights in the monitoring scene continuously being in the same state exceeds the preset duration threshold, it is determined that there is a traffic signal that does not meet the preset rule in the monitoring scene.
  21. 根据权利要求14所述的装置,其特征在于,所述装置还包括监控系统管理模块,用于在所述确定所述监控场景异常之后,禁止抓拍与目标交通信号存在关联的事件,所述目标交通信号为所述监控场景中不符合预设规则的交通信号。The device according to claim 14, wherein the device further comprises a monitoring system management module, which is configured to prohibit capturing an event associated with a target traffic signal after the determination of the monitoring scene is abnormal, and the target The traffic signal is a traffic signal that does not meet the preset rules in the monitoring scene.
  22. 根据权利要求18所述的装置,其特征在于,所述装置还包括参数校正模块,所述参数校正模块用于在所述确定所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态是否一致之后,如果所述场景信息所表示的各个交通信号的状态与针对所述监控场景预设的交通信号参数所表示的各个交通信号的状态不一致,根据所述监控场景的场景信息,对所述监控设备的配置参数进行校正。The device according to claim 18, wherein the device further comprises a parameter correction module, and the parameter correction module is used to determine the status of each traffic signal indicated by the scene information and the monitoring After the state of each traffic signal indicated by the preset traffic signal parameters of the scene is consistent, if the state of each traffic signal indicated by the scene information is different from the state of each traffic signal indicated by the traffic signal parameter preset for the monitoring scene The status of the monitoring device is inconsistent, and the configuration parameters of the monitoring device are corrected according to the scene information of the monitoring scene.
  23. 根据权利要求22所述的装置,其特征在于,所述参数校正模块,具体用于根据所述监控场景的场景信息,生成与所述场景信息相匹配的配置参数,作为校正配置参数;The device according to claim 22, wherein the parameter correction module is specifically configured to generate configuration parameters matching the scene information according to the scene information of the monitoring scene as the correction configuration parameters;
    将所述监控设备的配置参数更改为所述校正配置参数。The configuration parameter of the monitoring device is changed to the correction configuration parameter.
  24. 根据权利要求14所述的装置,其特征在于,所述规则匹配模块,具体用于根据所述场景信息所表示的各个交通信号的位置,确定所述监控场景中是否存在位于预设异常事件发生的区域内的交通信号;The device according to claim 14, wherein the rule matching module is specifically configured to determine whether a preset abnormal event occurs in the monitoring scene according to the position of each traffic signal indicated by the scene information Traffic signals in the area;
    如果存在位于预设异常事件发生的区域内的交通信号,确定所述监控场景存在不符合预设规则的交通信号。If there is a traffic signal located in the area where the preset abnormal event occurs, it is determined that there is a traffic signal that does not comply with the preset rule in the monitoring scene.
  25. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存放计算机程序;Memory, used to store computer programs;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-13任一所述的方法步骤。The processor is configured to implement the method steps described in any one of claims 1-13 when executing the program stored in the memory.
  26. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-13任一所述的方法步骤。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps according to any one of claims 1-13 are realized.
PCT/CN2020/138306 2019-12-24 2020-12-22 Monitoring scenario detection method and apparatus, and electronic device WO2021129611A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911351212.3 2019-12-24
CN201911351212.3A CN111767775B (en) 2019-12-24 2019-12-24 Monitoring scene detection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021129611A1 true WO2021129611A1 (en) 2021-07-01

Family

ID=72718445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138306 WO2021129611A1 (en) 2019-12-24 2020-12-22 Monitoring scenario detection method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN111767775B (en)
WO (1) WO2021129611A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767775B (en) * 2019-12-24 2024-03-08 上海高德威智能交通系统有限公司 Monitoring scene detection method and device and electronic equipment
CN114127814B (en) * 2021-06-25 2023-06-20 商汤国际私人有限公司 Scene detection method and device, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568242A (en) * 2012-01-17 2012-07-11 杭州海康威视系统技术有限公司 Signal lamp state detection method and system based on video processing
US20160379049A1 (en) * 2015-04-29 2016-12-29 Beijing Kuangshi Technology Co., Ltd. Video monitoring method, video monitoring system and computer program product
CN108711287A (en) * 2018-05-31 2018-10-26 吉林化工学院 A kind of Intelligent traffic information acquiring analysis process system
CN109740412A (en) * 2018-11-09 2019-05-10 浙江浩腾电子科技股份有限公司 A kind of signal lamp failure detection method based on computer vision
CN111767775A (en) * 2019-12-24 2020-10-13 上海高德威智能交通系统有限公司 Monitoring scene detection method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129779B (en) * 2010-01-13 2014-04-23 中国科学院自动化研究所 Monitoring system of safety and efficiency of traffic signal of intersection
US20160088710A1 (en) * 2014-09-22 2016-03-24 Xiaomi Inc. Method and apparatus for controlling smart light

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568242A (en) * 2012-01-17 2012-07-11 杭州海康威视系统技术有限公司 Signal lamp state detection method and system based on video processing
US20160379049A1 (en) * 2015-04-29 2016-12-29 Beijing Kuangshi Technology Co., Ltd. Video monitoring method, video monitoring system and computer program product
CN108711287A (en) * 2018-05-31 2018-10-26 吉林化工学院 A kind of Intelligent traffic information acquiring analysis process system
CN109740412A (en) * 2018-11-09 2019-05-10 浙江浩腾电子科技股份有限公司 A kind of signal lamp failure detection method based on computer vision
CN111767775A (en) * 2019-12-24 2020-10-13 上海高德威智能交通系统有限公司 Monitoring scene detection method and device and electronic equipment

Also Published As

Publication number Publication date
CN111767775B (en) 2024-03-08
CN111767775A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
WO2021129611A1 (en) Monitoring scenario detection method and apparatus, and electronic device
CN104332052B (en) Recognition method for automatic capture for pedestrian red light punishment
KR20210091074A (en) Traffic monitoring method, apparatus, device and storage medium
CN111629181B (en) Fire-fighting life passage monitoring system and method
CN112883921A (en) Garbage can overflow detection model training method and garbage can overflow detection method
CN104394361A (en) Pedestrian crossing intelligent monitoring device and detection method
JP2020170314A (en) Road abnormality detection system, road abnormality detection method, and road abnormality detection program
CN109360362A (en) A kind of railway video monitoring recognition methods, system and computer-readable medium
CN109657674A (en) A kind of vehicles identifications determine method and device
CN111028503B (en) Vehicle lane change monitoring method and device
CN113205692B (en) Automatic identification method for road side parking position abnormal change
CN103730000A (en) Method and system for automatically recording response speed for emergency
CN111369792B (en) Traffic incident analysis method and device and electronic equipment
CN111666821A (en) Personnel gathering detection method, device and equipment
CN116229688A (en) Engineering construction safety risk early warning method and system
TWI382367B (en) Event announcing system and operating method thereof
CN111768630A (en) Violation waste image detection method and device and electronic equipment
WO2024098992A1 (en) Vehicle reversing detection method and apparatus
CN113850995A (en) Event detection method, device and system based on tunnel radar vision data fusion
CN109120916B (en) Camera fault detection method and device and computer equipment
KR100444762B1 (en) Lane Violation Detection, Tracking System and the Method
CN110766949B (en) Violation snapshot method and device
CN111102987B (en) Rescue vehicle tracking method, device, server and medium
CN114283582A (en) Tunnel traffic early warning processing method and device
TWM420791U (en) Automatic detection system for vehicles driving on illegal lanes

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: 20906316

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: 20906316

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20906316

Country of ref document: EP

Kind code of ref document: A1