Abnormal event detection method, apparatus, device, vehicle, and storage medium

By marking virtual warning lines in the video frames of external vehicle cameras and combining the position and movement of the target object, potential infringement events can be accurately detected. This solves the problem that existing technologies cannot distinguish between normal and threatening scenarios, and reduces unnecessary alarms and video recordings.

CN116778371BActive Publication Date: 2026-11-20SHANGHAI SENSETIME LINGANG INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310240303.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2026-11-20
Estimated Expiration
2043-03-13

AI Technical Summary

Technical Problem

Existing technologies, when using external vehicle cameras for monitoring, cannot accurately distinguish between normal and potentially threatening scenarios, resulting in a large amount of redundant alarm information and unnecessary video recording, leading to a waste of storage resources.

Method used

By pre-marking virtual warning lines in video frames captured by cameras, the system determines whether an abnormal event has occurred based on the relative positional relationship between the target object and the warning lines. Combined with factors such as the target object's movement state and duration of stay, the system can accurately detect potential harm.

Benefits of technology

It enables accurate detection of potential vehicle damage incidents, reduces unnecessary video recording and alarm information, and improves storage resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116778371B_ABST
    Figure CN116778371B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an anomaly detection method and device, a detection apparatus, a vehicle and a storage medium. For each camera arranged outside the vehicle, a warning line can be calibrated in advance in the video frame collected by the camera, then a target object is identified from the video frame collected by the camera, a target point corresponding to the target object in the video frame is determined, and whether the target object enters the area between the vehicle and the warning line is determined according to the relative position relationship between the target point of the target object in the video frame and the warning line, and whether an anomaly event that may infringe the vehicle occurs is determined. In this way, some events that may infringe the vehicle can be detected more accurately, and unnecessary videos are avoided from being recorded too much, and redundant prompt information is avoided from being sent to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and in particular to an abnormal event detection method, apparatus, equipment, vehicle, and storage medium. Background Technology

[0002] When vehicles are parked in designated parking areas, they are vulnerable to various forms of harm from the outside world, especially in areas without camera surveillance. For example, individuals might attempt to steal valuables from inside the car, or the vehicle could be scratched by other vehicles or damaged by impacts from external objects. These incidents often cause significant losses to car owners. With the increasing prevalence of smart vehicles, more and more vehicles are equipped with one or more cameras for driver assistance. Therefore, in parking scenarios, these external cameras can be effectively utilized to monitor the vehicle's surroundings, detect abnormal events in a timely manner, and take appropriate action. Summary of the Invention

[0003] This disclosure provides an abnormal event detection method, apparatus, equipment, vehicle, and storage medium.

[0004] According to a first aspect of the present disclosure, an abnormal event detection method is provided, the method comprising:

[0005] When the vehicle is parked, acquire video footage captured by a camera located on the exterior of the vehicle;

[0006] For any current video frame in the video, a target point corresponding to the target object is determined from the current video frame, wherein the target point is the point closest to the vehicle among the contact points between the target object and the parking ground, or the target point is the point closest to the vehicle among the projection points of the target object on the parking ground;

[0007] Based on the relative position of the target point and the warning line pre-marked in the video frame captured by the camera, it is determined whether an abnormal event has occurred.

[0008] In some embodiments, the warning line is defined in the following manner:

[0009] In response to a user's command to activate the warning line calibration mode, the system acquires an image captured by the camera, identifies ground markings from the image, and uses the position of the markings in the image as the position of the warning line in the video frame captured by the camera; or

[0010] In response to a user's command to activate the warning line calibration mode, the image captured by the camera is displayed on the user interface, and the position of the warning line in the video frame captured by the camera is determined based on the user's marking operation on the image; or

[0011] In response to the user's command to activate the warning line calibration mode, the camera captures multiple frames of images of the user, identifies the contact point between the user's foot and the ground in each frame of the multiple frames, fits a connecting line based on the contact point, and uses the position of the connecting line in any frame of the multiple frames as the position of the warning line in the video frame captured by the camera.

[0012] In some embodiments, determining whether an abnormal event has occurred based on the relative positional relationship between the target point and a warning line pre-marked in the video frame captured by the camera includes:

[0013] If it is determined that the target point is located on the side of the warning line closer to the vehicle, an abnormal event is determined to have occurred, and multiple video frames captured by the camera before capturing the current video frame and multiple video frames captured by the camera after capturing the current video frame are saved as evidence videos of the abnormal event.

[0014] In some embodiments, the method further includes:

[0015] Add category tags to the evidence collection videos, and store the evidence collection videos according to the category tags, wherein the category tags are used to indicate one or more of the following information: the danger level of the abnormal event, the type of the target object in the abnormal event.

[0016] In some embodiments, after determining that an abnormal event has occurred, the method further includes:

[0017] The danger level of the abnormal event is determined, wherein the danger level is determined based on one or more of the following information: the distance between the target point and the warning line, the duration of the target object's stay on the side of the warning line closer to the vehicle, the type of the target object, and the movement state of the target object;

[0018] If the danger level is higher than the preset level, the vehicle will be controlled to issue an alarm and / or send a notification message to the vehicle owner.

[0019] In some embodiments, after determining that an abnormal event has occurred, the method further includes:

[0020] If the current video frame does not contain key identification information, acquire multiple video frames captured by the camera before capturing the current video frame;

[0021] The target object is tracked to determine its position in the plurality of video frames, and video frames including the key identification information are identified from the plurality of video frames and stored therein. The key identification information can be used to identify the identity of the target object, or the key identification information can be used to identify the identity of the operator who manipulates the target object.

[0022] In some embodiments, where the target object is a vehicle other than the vehicle itself, the method further includes, upon determining that an abnormal event has occurred:

[0023] If, in any video frame acquired after the current video frame, the distance between the target point of the other vehicle and the warning line is not less than the target distance, it is determined that the other vehicle and the vehicle have collided. The target distance is the distance between the warning line and the vehicle.

[0024] The system identifies the license plate information of other vehicles from the video frames captured by the camera, retrieves the contact information of the vehicle owners based on the license plate information, and sends the contact information to the vehicle owners.

[0025] In some embodiments, where the target object is a person, the camera includes multiple cameras positioned in the front, rear, left, and right directions of the vehicle, and after determining that an abnormal event has occurred, the method further includes:

[0026] The target object is tracked based on video frames captured by the multiple cameras. If the tracking results indicate that the target object is moving back and forth around the vehicle, the vehicle is controlled to issue an alarm and / or send a notification message to the vehicle owner.

[0027] In some embodiments, determining that the vehicle is in a parked state includes:

[0028] If the vehicle is detected to be locked, then the vehicle is determined to be parked; or

[0029] If the vehicle is detected to be unlocked and the interior image captured by the camera inside the vehicle confirms that no one is inside, the vehicle is determined to be parked.

[0030] According to a second aspect of the present disclosure, an event detection apparatus is provided, the apparatus comprising:

[0031] The acquisition module is used to acquire video captured by a camera located on the outside of the vehicle when the vehicle is parked.

[0032] The detection module is used to determine the target point corresponding to the target object from any current video frame in the video, wherein the target point is the point closest to the vehicle among the contact points between the target object and the parking ground, or the target point is the point closest to the vehicle among the projection points of the target object on the parking ground;

[0033] The determination module is used to determine whether an abnormal event has occurred based on the relative positional relationship between the target point and the warning line pre-marked in the video frame captured by the camera.

[0034] According to a third aspect of the present disclosure, a detection device is provided, the detection device including a processor, a memory, and computer instructions stored in the memory that are executable by the processor, wherein when the processor executes the computer instructions, it can implement the method mentioned in the first aspect above.

[0035] According to a fourth aspect of the present disclosure, a vehicle is provided, wherein one or more cameras are disposed on the exterior of the vehicle, and the vehicle is further provided with the detection device mentioned in the third aspect above, wherein the detection device is communicatively connected to the cameras.

[0036] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, the storage medium storing computer instructions that, when executed, implement the method mentioned in the first aspect above.

[0037] In this embodiment, for each camera installed on the exterior of the vehicle, a warning line can be pre-marked in the video frames captured by the camera. Then, the target object is identified from the video frames, the target point of the target object in the video frame is determined, and based on the relative positional relationship between the target point of the target object in the video frame and the warning line, it can be determined whether the target object has entered the area between the vehicle and the warning line, and thus whether an abnormal event that may harm the vehicle has occurred. In this way, events that may harm the vehicle can be detected more accurately, avoiding the recording of excessive amounts of unnecessary video and the sending of redundant prompts to the user.

[0038] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to illustrate the technical solutions of this disclosure.

[0040] Figure 1This is a schematic diagram of a vehicle with multiple cameras installed on its exterior, according to an embodiment of this disclosure.

[0041] Figure 2 This is a flowchart of an abnormal event detection method according to an embodiment of the present disclosure.

[0042] Figure 3(a) is a schematic diagram of a virtual warning line according to an embodiment of the present disclosure.

[0043] Figure 3(b) is a schematic diagram of a virtual warning line according to an embodiment of the present disclosure.

[0044] Figure 4(a) is a schematic diagram of a target point of a target object in contact with the ground according to an embodiment of the present disclosure.

[0045] Figure 4(b) is a schematic diagram of a target point of a target object that does not contact the ground, according to an embodiment of the present disclosure.

[0046] Figure 5(a) is a schematic diagram of a user marking a warning line through an interactive interface according to an embodiment of the present disclosure.

[0047] Figure 5(b) is a schematic diagram of a user marking a warning line by body movements according to an embodiment of the present disclosure.

[0048] Figure 6 This is a schematic diagram of the logical structure of an abnormal event detection device according to an embodiment of the present disclosure.

[0049] Figure 7 This is a schematic diagram of the logical structure of a detection device according to an embodiment of the present disclosure. Detailed Implementation

[0050] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0051] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items. Additionally, the term “at least one” herein means any combination of at least two of any one or more of a plurality.

[0052] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0053] To enable those skilled in the art to better understand the technical solutions in the embodiments of this disclosure, and to make the above-mentioned objectives, features and advantages of the embodiments of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be further described in detail below with reference to the accompanying drawings.

[0054] When vehicles are parked in designated parking areas, they are vulnerable to various forms of damage from the outside world, especially in areas without surveillance cameras. For example, some people may try to take valuables from inside the car, or the vehicle may be scratched by other vehicles or hit by external objects, resulting in damage. These incidents usually cause significant losses to car owners.

[0055] With the popularization of intelligent vehicles, such as Figure 1 As shown, many vehicles currently have one or more external cameras installed to assist driving. Therefore, in parking scenarios, these external cameras can be used to monitor the surroundings of the vehicle. If any abnormal events are detected, the driver can be promptly alerted, and relevant videos can be recorded for subsequent investigation, evidence collection, and accountability.

[0056] In related technologies, when using external cameras to monitor the vehicle's surroundings in parking scenarios, alerts and recordings are typically based on changes in the video footage captured by the cameras. For example, if the content of two consecutive video frames captured by the camera differs significantly, it indicates that a person or object may be approaching the vehicle. Therefore, the camera will save the video footage from that period and send an alert to the user. Current detection methods cannot distinguish between normal scenarios and scenarios that may pose a threat to the vehicle, resulting in users receiving numerous unnecessary alerts and a large amount of unnecessary video recording, leading to a waste of storage resources.

[0057] Based on this, this application provides an abnormal event detection method in a parking scenario. For cameras installed outside the vehicle, warning lines can be pre-marked in the video frames captured by the cameras. These warning lines are lines composed of a group of pixels at fixed pixel positions within the video frames captured by the cameras. These warning lines can correspond to a virtual warning line located on the parking surface in a real 3D scene at a preset distance from the vehicle. Then, based on the relative position of the target object in the video frames captured by the cameras and the warning line, it can be determined whether the target object has entered the area between the vehicle and the warning line, thereby determining whether an abnormal event that may harm the vehicle has occurred. In this way, events that may harm the vehicle can be detected more accurately, avoiding the recording of excessive amounts of unnecessary video and the sending of redundant notifications to the user.

[0058] The abnormal event detection method provided in this application can be executed by various devices equipped with this abnormal event detection function, which are communicatively connected to a camera installed on the exterior of the vehicle. In some scenarios, the device can be an in-vehicle device installed on the vehicle, which can be wired or wirelessly connected to the camera installed on the exterior of the vehicle to acquire video of the surrounding scene captured by the camera, and then perform abnormal event detection. In some scenarios, the device can also be a cloud server, whereby the video of the surrounding scene captured by the camera installed on the exterior of the vehicle can be sent to the cloud server, and the cloud server executes the abnormal event detection method.

[0059] like Figure 2 As shown, this abnormal event detection method may specifically include the following steps:

[0060] S202. When the vehicle is parked, acquire video footage captured by a camera located outside the vehicle.

[0061] like Figure 1As shown, one or more cameras can be installed on the exterior of the vehicle. For example, one or more cameras can be installed on any one or more of the front, rear, left, and right sides of the vehicle. When the vehicle is parked, these cameras can capture video of the surrounding scene for real-time monitoring. Since the shooting angles of the cameras installed on the exterior of the vehicle are mostly fixed, as shown in Figure 3(a), a warning line can be pre-marked in the video frame captured by the camera. The warning line in the video frame can correspond to a virtual warning line on the parking ground in the three-dimensional scene. The distance between the virtual warning line and the vehicle can be a pre-set safe distance. When other people or objects are farther away from the vehicle than this safe distance, it is considered that they will not cause harm to the vehicle. The safe distance can be set based on the actual parking scene, for example, it can be set to 10cm, 30cm, etc. Since the field of view of the camera is fixed, the position of the virtual warning line in the video frame (i.e., the warning line in the video frame) is fixed. The virtual warning line can be a straight line, a curve, or a closed line, such as a closed curve around the vehicle. As shown in Figure 3(b).

[0062] In step S202, when the vehicle is detected to be parked, the surrounding environment can be monitored in real time using external cameras. Video footage captured by each external camera can be acquired.

[0063] S204. For any current video frame in the video, determine the target point corresponding to the target object from the current video frame, wherein the target point is the point closest to the vehicle among the contact points between the target object and the parking ground, or the target point is the point closest to the vehicle among the projection points of the target object on the parking ground.

[0064] In step S204, for any current video frame captured by the camera, the target object can be identified from the current video frame. The target object can be any object that may cause damage to the vehicle. Since stationary objects usually do not cause damage to the vehicle, the target object is generally a moving object. For example, the target object can be a person, other types of vehicles, or some moving objects, such as a cart, a moving basketball, or a thrown object.

[0065] When identifying a target object in the current video frame, one approach is to directly use a target detection algorithm to detect the target object within the current video frame and determine its position. Alternatively, one can track the target object after it first appears within the camera's field of view, and then determine its position in the current video frame based on the position of the target object identified in the previous frame.

[0066] After identifying the target object in the current video frame, it can be determined whether the target object has crossed the pre-set warning line in the video frame. If the target object has crossed the warning line, it indicates that the target object may pose a threat to the vehicle. To more accurately determine whether the target object has crossed the warning line, the target point corresponding to the target object can be identified in the current video frame. By analyzing the relative positional relationship between the target point and the warning line, it can be determined whether the target object has crossed the warning line.

[0067] There are two possible scenarios for the movement of the target object. One scenario is that the target object moves on the parking surface, meaning it is in contact with the parking surface, such as a person or vehicle moving on the parking surface. In this case, the target point can be the point closest to the vehicle among the contact points between the target object and the parking surface, as shown in Figure 4(a) where the person's foot is close to the vehicle and in contact with the ground. The other scenario is that the target object moves in the air and is not in contact with the parking surface, such as a basketball thrown in the air or other projected objects. In this case, the target point can be the point closest to the vehicle among the projection points of the target object on the parking surface, such as the basketball moving in the air as shown in Figure 4(b). We can first determine the projection area of ​​the basketball on the parking surface, and then determine the projection point within the projection area that is closest to the vehicle as the target point.

[0068] S206. Based on the relative positional relationship between the target point and the warning line pre-marked in the video frame captured by the camera, determine whether an abnormal event has occurred.

[0069] In step S206, after determining the target point corresponding to the target object, it is possible to determine whether an abnormal event has occurred based on the relative position of the target point and the warning line pre-marked in the video frame captured by the camera. Once the target point is determined, it can be judged whether the target point has crossed the warning line, i.e., whether the target point is located on the side of the warning line closer to the vehicle. If so, it indicates that the target object has crossed the warning line. Figure 4(a) and 4(b) As shown, if the target object is very close to the vehicle, the likelihood of the target object causing damage to the vehicle is high; therefore, an abnormal event can be considered to have occurred. Otherwise, if the target object is far from the vehicle, the likelihood of it causing damage is low; therefore, no abnormal event can be considered to have occurred.

[0070] Of course, in actual judgment of whether an abnormal event has occurred, in addition to the relative position of the target point and the warning line, other factors can also be combined, such as the duration of the target object's stay near the vehicle, the target object's actions, the target object's movement state, etc., so as to more accurately distinguish abnormal events that may cause damage to the vehicle.

[0071] The method provided in this application embodiment can more accurately detect abnormal events that may harm vehicles and take appropriate action, thereby reducing false alarms.

[0072] In some embodiments, the warning line can be fitted from a marking line drawn by the user on the parking surface. For example, the warning line can be pre-marked before the vehicle leaves the factory, or it can be marked by the user after the vehicle leaves the factory. For example, a warning line marking mode can be set for the device performing the method, which the user can activate when they want to mark the warning line. For example, if the warning line is marked before the vehicle leaves the factory, the vehicle can be driven to a pre-set marked area with marking lines, such as a ground marked with a rectangle. If the user marks the warning line after the vehicle leaves the factory, the user can mark the marking line on the parking surface after parking. For example, the marking line can be a line drawn by the user on the ground next to the vehicle, a closed line drawn by the user around the vehicle, or a circle of tape applied by the user. After receiving the user's instruction to activate the warning line marking mode, an image captured by the camera can be acquired. Then, the marking line marked on the ground can be identified from the image, and the pixel point corresponding to the marking line in the image can be determined. The pixel position of the pixel point corresponding to the marking line is used as the position of the warning line in the video frame captured by the camera. Because the camera's position and field of view are fixed, once calibrated, subsequent video or images can be used to determine whether the target object has crossed the warning line.

[0073] In some embodiments, to facilitate easier marking of warning lines, a user interface for marking warning lines can be provided. After parking, the user can use this interface to mark the warning lines. For example, as shown in Figure 5(a), the user can install an app with this function on their mobile phone, and then the user interface for marking warning lines can be displayed to the user via the phone. After receiving the user's instruction to activate the warning line marking mode, the image captured by the current camera can be displayed on the user interface, allowing the user to make marking operations on the image. The position of the warning line in the video frame captured by the camera can then be determined based on the user's marking operations on the image. For example, the user can draw a line on the image as a warning line. To facilitate marking the warning line in the image, the distance between the virtual warning line drawn by the user in the image and the vehicle in three-dimensional space can also be displayed on the interface, allowing the user to adjust the position of the drawn warning line based on this distance. In this way, users can set appropriate warning lines based on the current parking environment each time they park, adjusting the distance between the warning line and the vehicle. For example, if the available space around the vehicle in the parking lot is small, the distance between the warning line and the vehicle can be smaller; otherwise, it can be larger. By dynamically setting warning lines based on the surrounding environment of the parking lot, the identification of abnormal events based on the warning lines will be more accurate.

[0074] In some embodiments, to facilitate user operation when calibrating warning lines, users can directly draw a warning line around the vehicle by touching the ground with their feet after parking. For example, as shown in Figure 5(b), users can activate the warning line calibration mode and then directly use their feet to mark points or draw lines on the ground. After receiving the user's instruction to activate the warning line calibration mode, the device executing this method can continuously acquire multiple frames of images of the user through the camera, then identify the contact points between the user's feet and the ground in each frame of these multiple frames, and fit the contact points between the user's feet and the ground in these multiple frames to obtain a connecting line. The fitted connecting line is then used as the warning line, and the position of the connecting line in the image is used as the position of the warning line in the video frame acquired by the camera. By directly calibrating the warning line using the user's body movements, it is convenient for users to set appropriate warning lines based on the actual parking environment, making it easier to grasp the distance between the warning line and the vehicle. It also facilitates user operation, making the calibration of the warning line faster.

[0075] In some embodiments, when determining whether an abnormal event occurs based on the relative positional relationship between the target point and the preset warning line, it may be determined that an abnormal event occurs when it is determined that the target point is located on the side of the warning line close to the vehicle. That is, when the target point appears on the side of the warning line close to the vehicle, it is considered that the target object has crossed the warning line. At this time, it is considered that the target object may cause damage to the vehicle, thus it is determined that an abnormal event occurs. In some scenarios, when determining whether the target point is located on the side of the warning line close to the vehicle, the image edge on the side close to the vehicle may be determined in the current video frame, then the distance L0 between the warning line and the image edge, and the distance L1 between the target point and the image edge are calculated. If L1 < L0, it is considered that the target point is located on the side of the warning line close to the vehicle. Certainly, the above is only an exemplary method, and other manners may also be adopted for determination.

[0076] In some embodiments, since the distance between the target object and the vehicle is very close after the target object crosses the warning line, the camera disposed outside the vehicle may not capture the complete target object, and only a part of the target object is captured. For example, when it is detected that a person crosses the warning line, at this time, only the lower half of the person may be captured, and the face of the person cannot be captured. To facilitate the subsequent investigation and evidence collection of the abnormal event by the vehicle owner, after it is determined that the abnormal event occurs, multiple video frames collected by the camera before collecting the current video frame may be saved, and multiple video frames collected by the camera after collecting the current video frame may be saved, which are used as the evidence collection video for the abnormal event. For example, when it is detected in the current video frame that a person crosses the warning line, the video collected by the camera in 1 minute before the current video frame is collected, and the video collected by the camera in 3 minutes after the current video frame is collected may be saved. Since the video in the 4 minutes before and after can basically record the entire process of the target object approaching the vehicle, and at the same time can capture the complete target object, this segment of video can facilitate the vehicle owner to conduct subsequent investigation and evidence collection. In this way, it is possible to avoid saving a large number of unnecessary videos, and ensure that a complete video is available for subsequent investigation and evidence collection for abnormal events. Certainly, the specific duration of the saved video may be flexibly set based on actual scenarios, and is not limited to the above embodiments.

[0077] In some embodiments, after an abnormal event is identified, its danger level can be further determined. For example, the danger level of the abnormal event can be comprehensively determined by combining information such as the distance between the target point and the warning line, the duration of the target object's stay on the side of the warning line closer to the vehicle, the type of the target object, and the movement state of the target object. For example, once the target point crosses the warning line, the farther the target point is from the warning line, the closer the target object is to the vehicle. In this case, the greater the possibility that the target object will cause harm to the vehicle, i.e., the higher the danger level. The longer the target object stays on the side of the warning line closer to the vehicle, for example, the longer a person stays near the vehicle, the greater the possibility that they have malicious intent, and therefore the higher the danger level. If the target object is a large, highly destructive object, the greater the possibility of it causing harm to the vehicle when it is close to it. For example, if a basketball is thrown at a vehicle at high speed, the damage it will cause to the vehicle will inevitably be greater, and therefore the danger level is high. If a ping-pong ball or a plastic bag flies towards the vehicle, the damage it will cause to the vehicle will inevitably be smaller, and therefore the danger level is low. Furthermore, the movement of the target can also be used to determine whether the target will pose a threat to the vehicle. For example, other vehicles traveling at high speed towards the vehicle may cause a more serious impact, thus posing a higher risk level. Similarly, if the target is a person, and they are detected walking around the vehicle, they are likely checking for valuables inside, suggesting a higher probability of malicious intent, and therefore, a higher risk level.

[0078] After determining the danger level of an abnormal event, an alarm can be triggered based on that level. For example, if the danger level is higher than a preset level, it indicates a higher probability that the event will cause significant damage to the vehicle. Therefore, one or more actions can be taken, such as controlling the vehicle to issue an alarm or sending a notification message to the owner. For instance, if someone is found crossing the warning line and lingering within it for an extended period, it suggests possible malicious intent. In this case, the vehicle's central control screen can flash, the hazard lights can be activated, or the horn can be sounded to scare away the intruder. Alternatively, a notification message can be sent to the owner so they can review recorded video footage upon returning to confirm whether any items are missing from the vehicle or if the vehicle has been damaged.

[0079] In some embodiments, when saving evidence videos, to facilitate subsequent video retrieval by vehicle owners, category tags can be added to the videos, allowing them to be stored according to these tags. Specifically, evidence videos can be categorized based on the hazard level of the abnormal events within them; for example, they can be categorized as high, medium, and low hazard levels for easy video retrieval by users. Alternatively, they can be categorized based on the type of target object in the abnormal event. For instance, videos targeting people can be categorized in one group, and videos targeting vehicles in another, allowing users to later search for videos based on the type of target object.

[0080] In some scenarios, if a target causes damage to a vehicle, the owner needs to review the evidence video to identify the target or the person controlling it, facilitating subsequent accountability and evidence collection. For example, if items are found to have been taken from the vehicle, the owner needs to find video frames clearly showing the face of the person who took them; if the vehicle has been collided or scratched, the owner needs to find video frames identifying the license plate number; if the car window is damaged by a thrown object, the owner needs to find video frames showing the face of the person who threw the object. To facilitate subsequent accountability, the owner can pre-select and save video frames containing key identifying information about the target from the camera footage.

[0081] Therefore, in some embodiments, after determining that an abnormal event has occurred, it is possible to further identify whether the current video frame includes key identification information of the target object. If not, multiple video frames captured by the camera before capturing the current video frame can be acquired, and then the target object can be tracked to determine its position in the previously captured video frames. It is also possible to determine whether the previously captured video frames include the target object's identification information, thereby identifying and storing the key video frame containing the key identification information. This key identification information can be various types of information used to identify the target object. For example, if the target object is a person, the key identification information could be a face; if the target object is a vehicle, the key identification information could be a license plate number. Of course, the key identification information can also be information that can be used to identify the person controlling the target object. For example, the target object might be a shopping cart pushed by someone, which collided with a vehicle. Therefore, by tracking the shopping cart, a video frame in which the face of the person pushing the shopping cart can be identified can be found and saved as a key video frame. Alternatively, the target object might be a basketball thrown by someone. Therefore, the basketball can be tracked to find video frames that identify the face of the person who threw it, and these frames can be saved as key video frames. By filtering out and storing key video frames containing crucial identifying information, it is easier to hold the vehicle owner accountable later.

[0082] In some scenarios, if a vehicle is scratched or bumped by another vehicle, it is usually necessary to find the owner of the other vehicle to claim compensation. Therefore, based on video footage captured by a camera, it is possible to automatically determine whether another vehicle has collided with the vehicle in question. If a collision has occurred, the license plate information of the other vehicle can be automatically determined, and the contact information of the owner corresponding to that license plate can be obtained based on big data and sent to the owner of that vehicle.

[0083] Therefore, in some embodiments, if the target object is a vehicle other than the vehicle in question, after determining that an abnormal event has occurred, the video frames captured after the current video frame can continue to be detected. If, in any subsequent video frame, the distance between the target point of the other vehicle and the warning line is not less than the target distance, it is determined that the other vehicle has collided with the vehicle in question; where the target distance is the pixel distance between the warning line and the vehicle. Then, the license plate information of the other vehicle can be identified from the current video frame or video frames captured before the current video frame, and the contact information of the other vehicle owner can be determined based on the license plate information and sent to the owner.

[0084] Typically, thieves intending to steal from a car will walk around the vehicle to observe the interior. Therefore, in scenarios where cameras are installed on all four sides of the vehicle's exterior, the movement of a person can be tracked based on the video footage captured by these cameras. If someone is found crossing the perimeter in this manner, the probability of theft increases significantly, triggering an alarm on the vehicle. In some embodiments, the target can be a person, and the cameras include multiple cameras positioned in the front, rear, left, and right directions of the vehicle. After an abnormal event is detected, the target can be tracked based on the video frames captured by these multiple cameras. By combining the tracking results from the multiple camera frames, the target's movement pattern can be determined. If the target is determined to be walking back and forth around the vehicle, an alarm is triggered. For example, the vehicle's central control screen can flash, the hazard lights can be activated, or the horn can sound an alarm, thus deterring potential intruders.

[0085] In some embodiments, the mode of monitoring the vehicle's surroundings using an external camera is activated when the vehicle is detected to be parked. Typically, after parking in a designated area, a user locks the vehicle and leaves. Therefore, detecting a locked vehicle indicates it is parked. However, in some scenarios, a user might forget to lock the car before leaving. Therefore, if the vehicle is detected to be unlocked, and the interior image captured by the vehicle's internal camera confirms that no one is inside, the vehicle is also determined to be parked, and the mode of monitoring the vehicle's surroundings using an external camera is activated.

[0086] Of course, in some embodiments, if the user parks the vehicle in a relatively safe place, such as their own garage, it is not necessary to activate the above monitoring mode. Therefore, the above abnormal event detection method can also be executed only after receiving a user's instruction.

[0087] In some embodiments, there may be scenarios where users linger near their cars after parking. If the above-described abnormal event detection method is used, frequent alarms may occur, interfering with the user. To avoid this problem, when a person is detected crossing the warning line, video frames can be tracked to identify the video frame containing the face of the person crossing the line. A partial facial image can then be extracted from this video frame and compared with a pre-stored facial image of the user. This pre-stored facial image can be the face of the car owner or a family member. If the comparison matches, it indicates that the detected person crossing the warning line is the car owner or a family member; therefore, it is not necessary to determine it as an abnormal event or issue an alarm.

[0088] It is easy to understand that the solutions described in the above embodiments can be combined when there is no conflict. Due to space limitations, these solutions will not be listed one by one in this disclosure.

[0089] Accordingly, this disclosure also provides an abnormal event detection device, such as... Figure 6 As shown, the device includes:

[0090] The acquisition module 61 is used to acquire video captured by a camera set on the outside of the vehicle when the vehicle is parked.

[0091] The detection module 62 is used to determine the target point corresponding to the target object from any current video frame in the video, wherein the target point is the point closest to the vehicle among the contact points between the target object and the parking ground, or the target point is the point closest to the vehicle among the projection points of the target object on the parking ground.

[0092] The determination module 63 is used to determine whether an abnormal event has occurred based on the relative positional relationship between the target point and the warning line pre-marked in the video frame captured by the camera.

[0093] In some embodiments, the warning line is defined in the following manner:

[0094] In response to a user's command to activate the warning line calibration mode, the system acquires an image captured by the camera, identifies ground markings from the image, and uses the position of the markings in the image as the position of the warning line in the video frame captured by the camera; or

[0095] In response to a user's command to activate the warning line calibration mode, the image captured by the camera is displayed on the user interface, and the position of the warning line in the video frame captured by the camera is determined based on the user's marking operation on the image; or

[0096] In response to the user's command to activate the warning line calibration mode, the camera captures multiple frames of images of the user, identifies the contact point between the user's foot and the ground in each frame of the multiple frames, fits a connecting line based on the contact point, and uses the position of the connecting line in any frame of the multiple frames as the position of the warning line in the video frame captured by the camera.

[0097] In some embodiments, the determination module is used to determine whether an abnormal event has occurred based on the relative positional relationship between the target point and a warning line pre-marked in the video frame captured by the camera, specifically for:

[0098] If it is determined that the target point is located on the side of the warning line closer to the vehicle, an abnormal event is determined to have occurred, and multiple video frames captured by the camera before capturing the current video frame and multiple video frames captured by the camera after capturing the current video frame are saved as evidence videos of the abnormal event.

[0099] In some embodiments, the device is further configured to:

[0100] Add category tags to the evidence collection videos, and store the evidence collection videos according to the category tags, wherein the category tags are used to indicate one or more of the following information: the danger level of the abnormal event, the type of the target object in the abnormal event.

[0101] In some embodiments, after determining that an abnormal event has occurred, the device is further configured to:

[0102] The danger level of the abnormal event is determined, wherein the danger level is determined based on one or more of the following information: the distance between the target point and the warning line, the duration of the target object's stay on the side of the warning line closer to the vehicle, the type of the target object, and the movement state of the target object;

[0103] If the danger level is higher than the preset level, the vehicle will be controlled to issue an alarm and / or send a notification message to the vehicle owner.

[0104] In some embodiments, after determining that an abnormal event has occurred, the device is further configured to:

[0105] If the current video frame does not contain key identification information, acquire multiple video frames captured by the camera before capturing the current video frame;

[0106] The target object is tracked to determine its position in the plurality of video frames, and video frames including the key identification information are identified from the plurality of video frames and stored therein. The key identification information can be used to identify the identity of the target object, or the key identification information can be used to identify the identity of the operator who manipulates the target object.

[0107] In some embodiments, where the target object is a vehicle other than the vehicle itself, the device is further configured to:

[0108] If, in any video frame acquired after the current video frame, the distance between the target point of the other vehicle and the warning line is not less than the target distance, it is determined that the other vehicle and the vehicle have collided. The target distance is the distance between the warning line and the vehicle.

[0109] The system identifies the license plate information of other vehicles from the video frames captured by the camera, retrieves the contact information of the vehicle owners based on the license plate information, and sends the contact information to the vehicle owners.

[0110] In some embodiments, where the target object is a person, the camera includes multiple cameras disposed in the four directions of the vehicle (front, rear, left, and right), and after determining that an abnormal event has occurred, the device is further configured to:

[0111] The target object is tracked based on video frames captured by the multiple cameras. If the tracking results indicate that the target object is moving back and forth around the vehicle, the vehicle is controlled to issue an alarm and / or send a notification message to the vehicle owner.

[0112] In some embodiments, determining that the vehicle is in a parked state includes:

[0113] If the vehicle is detected to be locked, then the vehicle is determined to be parked; or

[0114] If the vehicle is detected to be unlocked and the interior image captured by the camera inside the vehicle confirms that no one is inside, the vehicle is determined to be parked.

[0115] The specific steps of the above-mentioned device in performing the abnormal event detection method can be referred to the description in the above method embodiments, and will not be repeated here.

[0116] Furthermore, embodiments of this disclosure also provide a detection device, such as... Figure 7 As shown, the detection device includes a processor 71, a memory 72, and computer instructions stored in the memory 72 that can be executed by the processor 71. When the processor 71 executes the computer instructions, it implements the method described in any of the above embodiments.

[0117] Furthermore, this disclosure also provides a vehicle, wherein one or more cameras are installed on the exterior of the vehicle, and the vehicle is also equipped with the detection device mentioned in the above embodiments, wherein the detection device is communicatively connected to the cameras.

[0118] The specific steps of the abnormal event detection method performed by the aforementioned detection equipment can be referred to the description in the above method embodiments, and will not be repeated here. This disclosure also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in any of the foregoing embodiments.

[0119] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0120] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that the embodiments of this disclosure can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions of the embodiments of this disclosure, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this disclosure.

[0121] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, or any combination of these devices.

[0122] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. When implementing the embodiments of this disclosure, the functions of each module can be implemented in one or more software and / or hardware. Alternatively, some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0123] The above description is merely a specific implementation of the embodiments of this disclosure. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the embodiments of this disclosure, and these improvements and modifications should also be considered within the protection scope of the embodiments of this disclosure.

Claims

1. An abnormal event detection method, the method comprising: When the vehicle is parked, acquire video footage captured by a camera located on the exterior of the vehicle; For any current video frame in the video, a target point corresponding to the target object is determined from the current video frame. If the target object is moving on the parking ground, the target point is the point closest to the vehicle among the contact points between the target object and the parking ground. If the target object is moving in the air, the target point is the point closest to the vehicle among the projection points of the target object on the parking ground. If it is determined that the target point is located on the side of the vehicle near the warning line pre-marked in the video frame captured by the camera, an abnormal event is determined to have occurred. The warning line is a line composed of a group of pixels located at a fixed pixel position in the video frame captured by the camera. The warning line corresponds to a virtual warning line located on the parking ground in the real three-dimensional scene and at a preset distance from the vehicle. After determining that an abnormal event has occurred, if the current video frame does not contain key identification information, acquire multiple video frames captured by the camera before capturing the current video frame. The target object is tracked to determine its position in the plurality of video frames, and video frames including the key identification information are identified from the plurality of video frames and stored therein. The key identification information can be used to identify the identity of the target object, or the key identification information can be used to identify the identity of the operator who manipulates the target object.

2. The method according to claim 1, wherein, The warning line is defined in the following way: In response to the user's command to enable the warning line calibration mode, the image captured by the camera is acquired, the marking line on the ground is identified from the image, and the position of the marking line in the image is used as the position of the warning line in the video frame captured by the camera. or In response to the user's command to enable the warning line calibration mode, the image captured by the camera is displayed on the user interface, and the position of the warning line in the video frame captured by the camera is determined based on the user's marking operation on the image. or In response to the user's command to activate the warning line calibration mode, the camera captures multiple frames of images of the user, identifies the contact point between the user's foot and the ground in each frame of the multiple frames, fits a connecting line based on the contact point, and uses the position of the connecting line in any frame of the multiple frames as the position of the warning line in the video frame captured by the camera.

3. The method according to claim 1, wherein, After determining that an abnormal event has occurred, the method further includes: Save multiple video frames captured by the camera before capturing the current video frame, and save multiple video frames captured by the camera after capturing the current video frame, as evidence videos of the abnormal event.

4. The method according to claim 3, wherein, The method further includes: Add category tags to the evidence collection videos, and store the evidence collection videos according to the category tags, wherein the category tags are used to indicate one or more of the following information: the danger level of the abnormal event, the type of the target object in the abnormal event.

5. The method according to any one of claims 1-4, wherein, After determining that an abnormal event has occurred, the method further includes: The danger level of the abnormal event is determined, wherein the danger level is determined based on one or more of the following information: the distance between the target point and the warning line, the duration of the target object's stay on the side of the warning line closer to the vehicle, the type of the target object, and the movement state of the target object; If the danger level is higher than a preset level, the vehicle will be controlled to issue an alarm and / or send a notification message to the vehicle owner.

6. The method according to any one of claims 1-4, wherein, The target object is any vehicle other than the vehicle mentioned above. In the event that an abnormal event is determined to have occurred, the method further includes: If, in any video frame acquired after the current video frame, the distance between the target point of the other vehicle and the warning line is not less than the target distance, it is determined that the other vehicle and the vehicle have collided. The target distance is the distance between the warning line and the vehicle. The system identifies the license plate information of other vehicles from the video frames captured by the camera, retrieves the contact information of the vehicle owners based on the license plate information, and sends the contact information to the vehicle owners.

7. The method according to any one of claims 1-4, wherein, The target object is a person, and the camera includes multiple cameras positioned in the front, rear, left, and right directions of the vehicle. After determining that an abnormal event has occurred, the method further includes: The target object is tracked based on video frames captured by the multiple cameras. If the tracking results indicate that the target object is moving back and forth around the vehicle, the vehicle is controlled to issue an alarm and / or send a notification message to the vehicle owner.

8. The method according to any one of claims 1-4, wherein, Determining that the vehicle is in a parked state includes: If the vehicle is detected to be locked, then the vehicle is determined to be parked; or If the vehicle is detected to be unlocked and the interior image captured by the camera inside the vehicle confirms that no one is inside, the vehicle is determined to be parked.

9. An abnormal event detection device, the device comprising: The acquisition module is used to acquire video captured by a camera located on the outside of the vehicle when the vehicle is parked. The detection module is used to determine the target point corresponding to the target object from any current video frame in the video. If the target object is moving on the parking ground, the target point is the point closest to the vehicle among the contact points between the target object and the parking ground. If the target object is moving in the air, the target point is the point closest to the vehicle among the projection points of the target object on the parking ground. The determination module is configured to: determine if an abnormal event has occurred when the target point is located on the side of the vehicle closer to a warning line pre-marked in a video frame captured by the camera; wherein the warning line is a line composed of a group of pixels at a fixed pixel position in the video frame captured by the camera, and the warning line corresponds to a virtual warning line located on the parking ground in a real 3D scene at a preset distance from the vehicle; and after determining that an abnormal event has occurred, if the current video frame does not contain key identification information, acquire multiple video frames captured by the camera before capturing the current video frame; track the target object, determine the position of the target object in the multiple video frames, identify and store video frames including the key identification information from the multiple video frames, wherein the key identification information can be used to determine the identity of the target object, or the key identification information can be used to determine the identity of the operator controlling the target object.

10. A detection device, the detection device comprising a processor, a memory, and computer instructions stored in the memory executable by the processor, wherein the processor executes the computer instructions to implement the method as described in any one of claims 1-8.

11. A vehicle, wherein one or more cameras are disposed on the exterior of the vehicle, and the vehicle is further provided with a detection device as described in claim 10, the detection device being communicatively connected to the cameras.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Convenience Apparatus For Vehicle And Vehicle

    CN107054245A

  • Automobile collision detection method and system based on deep learning

    CN107657237A

  • Vehicle and method for monitoring a vehicle in a parked state

    DE102019203834A1