Vehicle monitoring method, device, system and equipment
By monitoring video streams to identify and detect the status changes of vehicles and their components in the car showroom, and calculating the attention index, it solves the problem of traditional monitoring systems being unable to analyze customers' attention to show cars in depth, provides detailed data support, and improves sales. Strategy and customer experience.
Patent Information
- Application Number
- CN202410578385.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-11
AI Technical Summary
The monitoring system of traditional car sales showrooms only focuses on the number of customers entering the store and the length of stay, and cannot conduct in-depth analysis of customers' attention to the cars on display, resulting in limitations in data analysis.
By monitoring video streams, it identifies and detects status changes of vehicles and key components (such as doors, rear tailgates, and front hoods), calculates the attention index, and provides efficient and accurate analysis data.
It achieves in-depth analysis of the key components of vehicles that customers pay attention to in the car showroom, provides more detailed data support, and improves the effectiveness of sales strategy formulation and customer experience optimization.
Smart Images

Figure CN118155143B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a vehicle monitoring method, device, system and equipment. Background Art
[0002] As competition in the automobile sales market becomes increasingly fierce, in-depth understanding of customer behavior and needs in automobile showrooms has become the key to improving automobile sales performance and optimizing customer experience.
[0003] At present, the monitoring system deployed in automobile sales showrooms has become an important tool for modern management. The system can monitor and record basic information such as the number of customers entering the store, the length of stay, and the popularity of the area, providing strong data support for the operation management and sales strategy of automobile sales showrooms.
[0004] However, traditional monitoring systems focus on customers entering the store, paying only attention to limited information such as the number of customers entering the store, the length of time customers stay in the store, and the popularity of the area. The analytical data they can provide has great limitations. Summary of the invention
[0005] The present application provides a vehicle monitoring method, device, system and equipment through multiple aspects, which can obtain analytical data related to exhibition vehicles, thereby facilitating in-depth analysis of customers' attention to some key parts of the exhibition vehicles.
[0006] In a first aspect, an embodiment of the present application provides a vehicle monitoring method, the method comprising:
[0007] Acquire a monitoring video stream, and determine a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream;
[0008] Detecting a second position frame corresponding to a target component of the monitored vehicle in the target image frame according to the first position frame;
[0009] Determining the state of the target component in the target image frame according to the second position frame; the state of the target component includes an open state and a closed state;
[0010] The number of state changes of the target component is updated according to the state changes of the target component in a plurality of consecutive target image frames.
[0011] In a possible implementation, determining, according to the monitoring video stream, a first position frame corresponding to the monitored vehicle in the target image frame includes:
[0012] Collecting a plurality of target image frames in the monitoring video stream;
[0013] Detecting whether there is a monitored vehicle in the target image frame;
[0014] When a monitored vehicle exists in the target image frame, a first position frame of the monitored vehicle in the target image frame is determined.
[0015] In a possible implementation manner, determining a first position frame of the monitored vehicle in the target image frame includes:
[0016] Determining whether the monitored vehicle is in a stationary state;
[0017] When the monitored vehicle is stationary, a first position frame in a target image frame collected by the monitored vehicle at a current moment is determined according to a reference position frame in a target image frame collected by the monitored vehicle at a reference moment.
[0018] In a possible implementation, detecting a second position frame corresponding to a target component of the monitored vehicle in the target image frame according to the first position frame includes:
[0019] According to the first position frame, intercepting a vehicle image corresponding to the monitored vehicle in the target image frame;
[0020] Identify whether the target component exists in the vehicle image; the target component includes at least one of a door, a rear tailgate, and a front hood of the monitored vehicle;
[0021] When the target component exists in the vehicle image, a second position frame of the target component in the target image frame is determined.
[0022] In a possible implementation, the method further includes:
[0023] Extracting appearance feature information of the monitored vehicle from the vehicle image;
[0024] Determining the orientation of the monitored vehicle in the target image frame according to the appearance feature information;
[0025] The name of the target component is determined according to the orientation of the monitored vehicle in the target image frame, the first position frame, and the second position frame of the target component in the target image frame.
[0026] In a possible implementation manner, determining the state of the target component in the target image frame according to the second position frame includes:
[0027] When the orientation of the monitored vehicle in the target image frame belongs to a first orientation, detecting a first outline of the monitored vehicle; the first orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the longitudinal border of the target image frame is less than a first angle threshold;
[0028] The state of the target component in the target image frame is determined according to the first contour and the second position frame.
[0029] In a possible implementation manner, determining the state of the target component in the target image frame according to the second position frame includes:
[0030] When the orientation of the monitored vehicle in the target image frame belongs to a second orientation, detecting a second contour of the target component in the target image frame; the second orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the transverse border of the target image frame is less than a second angle threshold;
[0031] The state of the target component in the target image frame is determined according to the second contour and the second position frame.
[0032] In a possible implementation, the method further includes:
[0033] Determine the attribute parameters of the monitored vehicle according to the vehicle image; the attribute parameters include at least one of the following parameters: vehicle brand, vehicle model, vehicle body color or vehicle type;
[0034] A monitoring report of the monitored vehicle within the preset time period is outputted according to the attribute parameter and the number of state changes of the target component within the preset time period.
[0035] In a second aspect, an embodiment of the present application provides a vehicle monitoring device, the device comprising:
[0036] A vehicle detection module, used to obtain a monitoring video stream and determine a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream;
[0037] a component detection module, configured to detect, in the target image frame, a second position frame corresponding to a target component of the monitored vehicle according to the first position frame;
[0038] A component state detection module, used to determine the state of the target component in the target image frame according to the second position frame; the state of the target component includes an open state and a closed state;
[0039] The data processing module is used to update the number of state changes of the target component according to the state changes of the target component in a plurality of consecutive target image frames.
[0040] In a third aspect, an embodiment of the present application provides a vehicle monitoring data processing method, the method comprising:
[0041] Obtaining the number of state changes of each target component of the monitored vehicle within a preset time period output by the vehicle monitoring device; the vehicle monitoring device is the vehicle monitoring device provided in the second aspect;
[0042] Calculating the total number of state changes of the target component of the monitored vehicle within a preset time period;
[0043] The attention index of each target component is determined according to the ratio of the number of state changes of each target component to the total number of state changes.
[0044] In a fourth aspect, an embodiment of the present application provides a vehicle monitoring system, comprising: at least one camera and a vehicle monitoring device;
[0045] The at least one camera is used to: collect images of the area where the monitored vehicle is located, and upload them to the vehicle monitoring device;
[0046] The vehicle monitoring device is the vehicle monitoring device provided by the second aspect.
[0047] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;
[0048] The memory stores computer-executable instructions;
[0049] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the vehicle monitoring method provided in the first aspect, or executes the vehicle monitoring data processing method provided in the third aspect.
[0050] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a computer, they are used to implement the vehicle monitoring method provided in the first aspect, or to implement the vehicle monitoring data processing method provided in the third aspect.
[0051] In the seventh aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is run, it enables the computer to execute the vehicle monitoring method provided in the first aspect, or execute the vehicle monitoring data processing method provided in the third aspect.
[0052] The vehicle monitoring method, device, system and equipment provided in the embodiments of the present application can use the monitoring system to detect the number of times some key components of the exhibition vehicle are turned on and off, by taking the exhibition vehicle as the monitoring focus of the monitoring system, thereby facilitating in-depth analysis of customers' attention to some key components of the exhibition vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0054] Figure 1 A schematic diagram of the structure of a vehicle monitoring system provided in an exemplary embodiment of the present application;
[0055] Figure 2 A schematic flow chart of a vehicle monitoring method provided in an exemplary embodiment of the present application;
[0056] Figure 3 Another schematic diagram of a vehicle monitoring method provided in an exemplary embodiment of the present application;
[0057] Figure 4 A schematic flow chart of a vehicle monitoring data processing method provided in an exemplary embodiment of the present application;
[0058] Figure 5 A schematic diagram of a program module of a vehicle monitoring device provided in an exemplary embodiment of the present application;
[0059] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0061] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0062] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0063] The following is an explanation of some of the terms involved in the embodiments of the present application:
[0064] 1. Deep neural networks (DNN): A machine learning model that simulates the human brain neural network. It combines low-level features to form more abstract high-level representation attribute categories or features to discover distributed feature representations of data.
[0065] 2. Object detection algorithm: A computer vision algorithm that aims to identify and locate specific target objects from images or videos and give their category and location information. Modern object detection algorithms are usually based on deep neural networks, such as Faster R-CNN (faster region-based convolutional network), SSD (single shot multibox detector), YOLO (you only look once), etc.
[0066] Traditional monitoring systems focus on customers entering the store, focusing only on limited information such as the number of customers entering the store, the length of time customers stay in the store, and the popularity of the area, and the analytical data they can provide has great limitations. If the car showroom wants to further refine the information of customers browsing the exhibition cars, such as which door customers like to open to get in the car for a test ride, the number of times customers open the rear tailgate or front hood of the vehicle, etc., to gain a deeper understanding of the customers' concerns, it is necessary to arrange staff to observe and record on-site, which is inefficient and the credibility of the recorded data is not high.
[0067] In view of the above technical problems, a vehicle monitoring method, device, system and equipment are provided in the embodiments of the present application. By taking the exhibition vehicle as the monitoring focus of the monitoring system, the monitoring system can be used to detect the number of times some key components of the exhibition vehicle are turned on and off, which helps to efficiently and accurately analyze the customer's attention to some key components of the exhibition vehicle.
[0068] It should be noted that the vehicle monitoring method, device, system and equipment provided in the embodiments of the present application can be applied not only to automobile showroom monitoring scenarios, but also to other scenarios, such as parking lots, auto repair shops and other monitoring scenarios, which are no longer listed one by one in the embodiments of the present application.
[0069] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.
[0070] Reference Figure 1 , Figure 1 1 is a schematic diagram of a vehicle monitoring system provided in an exemplary embodiment of the present application. In some embodiments, the vehicle monitoring system includes a vehicle monitoring device 101 and at least one monitoring camera.
[0071] Exemplarily, the vehicle monitoring system may include n monitoring cameras, namely monitoring camera 1, monitoring camera 2, ..., monitoring camera n; the n monitoring cameras may be connected to the vehicle monitoring device 101 respectively.
[0072] The above-mentioned monitoring cameras are responsible for capturing video images of the automobile exhibition hall site and transmitting the video stream data in real time to the vehicle monitoring device 101. By properly arranging the monitoring cameras, comprehensive coverage of the target area and monitoring without blind spots can be achieved.
[0073] For example, one surveillance camera may be arranged, which faces the front or rear of the monitored vehicle; or two surveillance cameras may be arranged, which face the left and right sides of the monitored vehicle respectively, or the two surveillance cameras face the front and rear of the monitored vehicle respectively, or one of the surveillance cameras faces the left or right side of the monitored vehicle and the other faces the front or rear of the monitored vehicle; or four surveillance cameras may be arranged, two of which face the left and right sides of the monitored vehicle respectively; and the other two surveillance cameras face the front and rear of the monitored vehicle respectively.
[0074] In some embodiments, the vehicle monitoring device 101 is responsible for receiving video stream data from various monitoring cameras and performing real-time processing and analysis on these data through built-in analysis algorithms. The device can identify the exhibition vehicle in the monitoring video and the target components (such as doors, rear tailgate, front hood, etc.) on the exhibition vehicle, and detect and record the number of times these target components are opened and closed within a specified time period.
[0075] Reference Figure 2 , Figure 2 This is a flow chart of a vehicle monitoring method provided in an exemplary embodiment of the present application. In some embodiments, the vehicle monitoring method includes:
[0076] S201, obtaining a monitoring video stream, and determining a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream.
[0077] In some embodiments, a real-time monitoring video stream may be obtained from a monitoring camera or other video source. The monitoring video stream is a series of continuous image frames arranged in chronological order and reflects the real-time dynamics of the monitored area.
[0078] In some embodiments, a specific image frame may be selected from the surveillance video stream as a target image frame for analysis. This may be achieved in a variety of ways, such as collecting a target image frame from the surveillance video stream at a fixed time interval (e.g., 1 second interval), or collecting a target image frame from the surveillance video stream at a fixed time interval (e.g., 1 second interval) when a specific event (e.g., a customer entering a surveillance area) is detected.
[0079] In some embodiments, in the selected target image frame, a vehicle detection algorithm or a target detection algorithm based on deep learning (such as YOLO, SSD, Faster R-CNN, etc.) can be used to identify whether a monitored vehicle exists in the target image frame. When a monitored vehicle exists in the target image frame, a rectangular frame (i.e., a first position frame) is generated in the target image frame, and the rectangular frame can tightly surround the overall outline of the monitored vehicle.
[0080] S202: Detect, in the target image frame, a second position frame corresponding to a target component of the monitored vehicle according to the first position frame.
[0081] In some embodiments, specific components on the monitored vehicle, such as doors, tailgates, front hoods, etc., can be further located and analyzed based on the first position frame. For each target component, its specific position in the target image frame is determined, and a corresponding second position frame is generated. These second position frames can more precisely and accurately reflect the position and shape of each target component.
[0082] Exemplarily, a trained target component detection algorithm (such as a target detection algorithm based on deep learning) can be used to detect the target component in the image area within the first position frame. These algorithms are usually able to identify the exact position of the component and output the corresponding detection result. According to the output result of the target component detection algorithm, a corresponding second position frame is generated. Each second position frame tightly surrounds the target component and can accurately reflect the position and size of the target component in the target image frame.
[0083] S203: Determine the state of the target component in the target image frame according to the second position frame.
[0084] Optionally, the state of the target component includes an open state and a closed state.
[0085] In some implementations, the second position frame may be analyzed to extract characteristic information thereof, which may include the size, shape, position of the second position frame, and the relationship with adjacent components or the entire vehicle.
[0086] Based on the extracted second position frame features, a preset state judgment logic may be applied to determine the state of the target component. Such state judgment logic may be based on methods such as threshold comparison, classification algorithm, pattern matching or machine learning model.
[0087] For example, for a scenario where the surveillance camera is facing the side of the vehicle body, a width threshold may be set, and when the width of the second position frame is smaller than the threshold, it is determined that the vehicle door is in an open state.
[0088] Exemplarily, for the door component, if the width of the second position box is larger, and its relative position relationship with other parts of the vehicle indicates that the door is closed, then the door can be judged to be in a closed state; conversely, if the width of the second position box is smaller, or its relative position relationship with other parts of the vehicle indicates that the door is open, then the door can be judged to be in an open state.
[0089] S204: Update the number of state changes of the target component according to the state changes of the target component in a number of consecutive target image frames.
[0090] In some implementations, it is possible to determine whether the state of a component has changed by comparing the state changes of the same component in adjacent target image frames. The change may be from open to closed, or from closed to open.
[0091] In some embodiments, in order to accurately determine whether the state of the target component has changed, a suitable threshold may be set. This threshold may be adjusted according to the actual application scenario and requirements. For example, a time threshold may be set, requiring that the state of the target component remains consistent within several consecutive target image frames to be considered a valid state; or a state difference threshold may be set, and only when the state difference of the target component exceeds this threshold, a state change is considered to have occurred.
[0092] In some embodiments, whenever a change in the state of a component is detected (such as from a closed state to an open state, or from an open state to a closed state), the number of state changes of the component is updated. Optionally, at least one counter may be added inside the monitoring system, each counter corresponding to a target component, and each time a change in the state of the target component is detected, the counter corresponding to the target component is incremented by 1.
[0093] In some implementations, information such as the time when the state of the target component changes may also be recorded for subsequent analysis and query.
[0094] In some implementations, the updated number of status changes may also be sent to relevant user devices, which helps users or managers to intuitively understand the number of switching times of the target component of the monitored vehicle.
[0095] The vehicle monitoring method provided in the embodiment of the present application, by taking the exhibition vehicle as the monitoring focus of the monitoring system, can use the monitoring system to detect the number of times some key components of the exhibition vehicle are turned on and off, which is helpful for in-depth analysis of customers' attention to some key components of the exhibition vehicle.
[0096] Based on the contents described in the above embodiments, in some embodiments of the present application, when determining the first position frame of the monitored vehicle in the target image frame, it can be determined first whether the monitored vehicle is in a stationary state; when the monitored vehicle is in a stationary state, the first position frame in the target image frame captured by the monitored vehicle at the current moment is determined based on the reference position frame in the target image frame captured by the monitored vehicle at the reference moment.
[0097] In some embodiments, a motion detection analysis may be performed on the continuous target image frames to confirm whether the monitored vehicle is stationary. When it is determined that the vehicle is stationary, a suitable reference time may be selected, and the vehicle position in the target image frame captured at the reference time will be used as a reference.
[0098] In some embodiments, in the image frame at the reference time, a target detection algorithm can be used to determine the position of the vehicle and generate a rectangular frame that tightly surrounds the vehicle (i.e., the reference position frame). When the position of the vehicle at any subsequent time needs to be determined, there is no need to rerun the target detection algorithm. Instead, the reference position frame is used as a starting point and fine-tuned in the image frame at the current time. Since the vehicle is stationary, this fine-tuning is usually small and can be achieved based on simple image registration or template matching technology. After fine-tuning, a new position frame (i.e., the first position frame) is generated in the target image frame at the current time.
[0099] It can be understood that, through the above method, when the vehicle is stationary, the monitoring system can determine the position of the vehicle more quickly and accurately, while reducing unnecessary computing overhead.
[0100] In some embodiments of the present application, a vehicle image corresponding to the monitored vehicle can be captured in the target image frame based on the above-mentioned first position frame, and then it can be identified whether there is a target component in the vehicle image. When the target component exists in the vehicle image, a second position frame of the target component in the target image frame is determined.
[0101] Optionally, the target component includes at least one of a door (including a left front door, a right front door, a left rear door, a right rear door), a rear tailgate, and a front hood of the monitored vehicle.
[0102] In some embodiments, a cropping operation is performed in the target image frame according to the determined first position frame, thereby separating the monitored vehicle from the background. For the extracted vehicle image, a target component recognition algorithm can be applied to detect whether a specific target component exists.
[0103] In some embodiments, the identified parts can be verified to ensure that they are indeed the target parts and not false positives, for example, by comparing the matching degree of the part features with the known part models, or filtering using a confidence threshold.
[0104] In some embodiments of the present application, appearance feature information of the monitored vehicle can also be extracted from the above-mentioned vehicle image; based on the appearance feature information, the orientation of the monitored vehicle in the target image frame is determined; based on the orientation of the monitored vehicle in the target image frame, the above-mentioned first position box, and the second position box of the target component in the target image frame, the name of the target component is determined.
[0105] Optionally, the above-mentioned appearance feature information may include information such as the vehicle's outline, lines, color distribution, texture, etc., and may also include information such as headlights, rearview mirrors, tires, exhaust pipes, air intake grilles, and tail wings, which is not limited in the embodiments of the present application.
[0106] In some embodiments, a pre-trained orientation recognition model may be used to process the extracted appearance feature information to recognize the orientation of the vehicle. The orientation recognition model may be a classifier or regressor based on machine learning.
[0107] Optionally, depending on the type of model, the vehicle's orientation can be classified into several predefined categories, such as front-to-back orientation and non-front-to-back orientation; or, a specific orientation angle can be output. The front-to-back orientation includes the front of the vehicle facing forward and the front of the vehicle facing backward; the non-front-to-back orientation includes the front of the vehicle facing left, the front of the vehicle facing right, the front of the vehicle facing the left front, the front of the vehicle facing the right front, the front of the vehicle facing the left rear, the front of the vehicle facing the right rear, etc.
[0108] In some embodiments, the name of the target component can be inferred using the known vehicle orientation, the first position box (the overall vehicle position), and the second position box (the target component position). For example, if the second position box is located on the right side of the vehicle image and the vehicle orientation is with the front of the vehicle facing right, then the component is likely to be the right front door.
[0109] In some embodiments of the present application, when the orientation of the monitored vehicle in the target image frame belongs to the first orientation, the first outline of the monitored vehicle is detected, and the state of the target component in the target image frame is determined based on the first outline and the second position frame.
[0110] Among them, the above-mentioned first direction can also be called the front and rear direction. When the angle between the longitudinal axis of the monitored vehicle and the longitudinal border of the target image frame is less than the first angle threshold (such as 15°), the direction of the monitored vehicle can be considered to be the above-mentioned first direction, that is, the front or rear of the vehicle is facing the monitoring camera.
[0111] In some embodiments, the correspondence between the first contour and the second position frame of the target component previously determined may be analyzed, including determining whether the second position frame is completely inside the first contour, partially overlapped, or completely separated. Based on the correspondence between the first contour and the second position frame, a preset state judgment logic may be applied to determine the state of the target component. For example, if the second position frame is completely inside the first contour and has a regular shape, it may indicate that the component is in a closed state; if the second position frame is significantly separated from the first contour or irregularly deformed, it may indicate that the component is in an open state.
[0112] In some embodiments of the present application, when the orientation of the monitored vehicle in the target image frame belongs to the second orientation, the second contour of the target component in the target image frame is detected, and the state of the target component in the target image frame is determined based on the second contour and the second position frame.
[0113] Among them, the second orientation can also be called the above-mentioned non-front and rear orientation. When the angle between the longitudinal axis of the monitored vehicle and the horizontal border of the target image frame is less than the second angle threshold (such as 75°), the orientation of the monitored vehicle can be considered to be the above-mentioned second orientation.
[0114] In some embodiments, the contour of the target component can be extracted by edge detection, threshold segmentation, or deep learning methods. By analyzing the correspondence between the extracted second contour and the second position frame of the target component previously determined, a preset state judgment logic can be applied to determine the state of the target component. For example, if the contour is completely contained in the position frame and has a regular shape, it may indicate that the component is in a closed state; if the contour exceeds the range of the position frame or has an irregular shape, it may indicate that the component is in an open state.
[0115] In some embodiments of the present application, the attribute parameters of the monitored vehicle can also be determined based on the above-mentioned vehicle image; based on the attribute parameters and the number of state changes of the target component within the preset time period, a monitoring report of the monitored vehicle within the preset time period is output.
[0116] In some implementations, a vehicle attribute classification algorithm (such as a recognition algorithm based on deep learning) may be used to classify the vehicle attributes of the monitored vehicle in the above vehicle image, and output attribute parameters of the monitored vehicle.
[0117] Optionally, the attribute parameters may include at least one of the following parameters: vehicle brand, vehicle model, vehicle body color or vehicle type. The monitoring report may intuitively display the number of times each target component is switched on and off within a preset time period for a vehicle of a certain brand, model, color or type.
[0118] Exemplarily, the monitoring report may be: for a black sedan of brand x and model y, the left front door was opened and closed a times, the right front door was opened and closed b times, and the tailgate was opened and closed c times within one hour.
[0119] Reference Figure 3 , Figure 3 Another flow chart of a vehicle monitoring method provided in an exemplary embodiment of the present application is shown in FIG. In some embodiments, the vehicle monitoring method includes:
[0120] S301, obtain the monitoring video stream, and detect whether there is a vehicle in the target image frame. If yes, continue to execute S302.
[0121] In some embodiments, a target image frame can be collected from a surveillance video stream based on a preset sampling frequency (e.g., 1 frame / second), and a deep learning-based target detection algorithm (e.g., yolov5, etc.) can be used to detect whether a vehicle exists in the target image frame.
[0122] S302, determine the direction of the vehicle. If the monitored vehicle is facing the front and rear direction, execute S303, if the monitored vehicle is facing neither the front and rear direction, execute S304.
[0123] In some implementations, a deep learning-based recognition algorithm (such as resnet18, etc.) may be used to determine the orientation of the vehicle.
[0124] S303: Vehicle door detection from front and rear perspectives.
[0125] In some embodiments, if the perspective is from the front or rear direction, a deep learning-based target detection algorithm (such as yolov5, etc.) is used to detect the position, type (front door or rear door) and number of the doors in the vehicle.
[0126] S304: Vehicle door detection from the side perspective.
[0127] In some embodiments, if the viewing angle is not in the front-to-back direction, i.e., six directions: left, right, left front, left rear, right front, and right rear, a deep learning-based target detection algorithm (such as yolov5, etc.) is used to determine the position of the door in the vehicle.
[0128] S305: Classify vehicle doors from a side perspective.
[0129] In some implementations, the switch status of the door may be identified based on the position of the door in the vehicle and based on a deep learning recognition algorithm (eg, resnet18, etc.).
[0130] S306: Vehicle bottom point detection.
[0131] In some implementations, the key point positions of the vehicle's downward projection perpendicular to the ground may be determined based on a key point prediction algorithm based on deep learning.
[0132] In some embodiments, from a side perspective, the specific position of the door can be determined, such as the left front door, left rear door, right front door, right rear door, etc., in combination with the vehicle's orientation, door position information, and the above-mentioned key point positions.
[0133] S307: Vehicle tailgate opening detection.
[0134] In some embodiments, the position of the open tailgate of the vehicle can be output based on a deep learning target detection algorithm (such as yolov5, etc.). If the tailgate is not opened, the output is empty.
[0135] S308: Vehicle front hood opening detection.
[0136] In some embodiments, the position of the open front hood of the vehicle can be output based on a deep learning target detection algorithm (such as yolov5, etc.). If the front hood is not opened, the output is empty.
[0137] S309: Summarize the test data.
[0138] The vehicle monitoring method provided in the embodiment of the present application uses a monitoring lens and a computer vision artificial intelligence algorithm to make a comprehensive judgment on the vehicle status information in the car showroom without human intervention, and can complete the work that traditional solutions require a lot of manual work.
[0139] The present application also provides a vehicle monitoring data processing method, referring to Figure 4 , Figure 4 This is a flow chart of a vehicle monitoring data processing method provided in an exemplary embodiment of the present application. In some embodiments, the vehicle monitoring data processing method includes:
[0140] S401, obtaining the number of state changes of each target component of the monitored vehicle within a preset time period output by the vehicle monitoring device.
[0141] Among them, the above-mentioned vehicle monitoring device can execute various technical solutions in the vehicle monitoring method described in the above-mentioned embodiment, which will not be repeated here.
[0142] S402: Calculate the total number of state changes of the target component of the monitored vehicle within a preset time period.
[0143] In some implementations, the number of state changes of all target components within a preset time period may be accumulated to obtain the total number of state changes.
[0144] S403: Determine the attention index of each target component according to the ratio of the number of state changes of each target component to the total number of state changes.
[0145] In some embodiments, for each target component, the ratio of its state change times to the total state change times is calculated, and the ratio reflects the proportion of the component in the overall vehicle activity. Based on the ratio, the attention index of each target component can be determined.
[0146] Optionally, the above attention index may be a specific numerical value or a graded label (such as high, medium, or low) to indicate the activity level or importance of a component.
[0147] In some embodiments, the determined attention index can be output in an appropriate form (such as a table, a chart, etc.) for viewing and analysis by relevant personnel. It is understandable that, according to the above attention index, relevant personnel can take corresponding marketing measures, such as strengthening the publicity of high-attention components.
[0148] Based on the contents described in the above embodiments, a vehicle monitoring device is also provided in the embodiments of the present application. Figure 5 , Figure 5 Schematic diagram of a program module of a vehicle monitoring device provided in an exemplary embodiment of the present application. In some embodiments, the vehicle monitoring device 50 includes:
[0149] The vehicle detection module 501 is used to obtain a monitoring video stream and determine a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream.
[0150] The component detection module 502 is configured to detect a second position frame corresponding to a target component of the monitored vehicle in the target image frame according to the first position frame.
[0151] The component state detection module 503 is used to determine the state of the target component in the target image frame according to the second position frame; the state of the target component includes an open state and a closed state.
[0152] The data processing module 504 is used to update the number of state changes of the target component according to the state changes of the target component in a plurality of consecutive target image frames.
[0153] In some implementations, the vehicle detection module 501 is used to:
[0154] Collecting a plurality of target image frames in the monitoring video stream;
[0155] Detecting whether there is a monitored vehicle in the target image frame;
[0156] When a monitored vehicle exists in the target image frame, a first position frame of the monitored vehicle in the target image frame is determined.
[0157] In some implementations, the vehicle detection module 501 is used to:
[0158] Determining whether the monitored vehicle is in a stationary state;
[0159] When the monitored vehicle is stationary, a first position frame in a target image frame collected by the monitored vehicle at a current moment is determined according to a reference position frame in a target image frame collected by the monitored vehicle at a reference moment.
[0160] In some implementations, the component detection module 502 is configured to:
[0161] According to the first position frame, intercepting a vehicle image corresponding to the monitored vehicle in the target image frame;
[0162] Identify whether the target component exists in the vehicle image; the target component includes at least one of a door, a rear tailgate, and a front hood of the monitored vehicle;
[0163] When the target component exists in the vehicle image, a second position frame of the target component in the target image frame is determined.
[0164] In some implementations, the component detection module 502 is further configured to:
[0165] Extracting appearance feature information of the monitored vehicle from the vehicle image;
[0166] Determining the orientation of the monitored vehicle in the target image frame according to the appearance feature information;
[0167] The name of the target component is determined according to the orientation of the monitored vehicle in the target image frame, the first position frame, and the second position frame of the target component in the target image frame.
[0168] In some implementations, the component status detection module 503 is used to:
[0169] When the orientation of the monitored vehicle in the target image frame belongs to a first orientation, detecting a first outline of the monitored vehicle; the first orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the longitudinal border of the target image frame is less than a first angle threshold;
[0170] The state of the target component in the target image frame is determined according to the first contour and the second position frame.
[0171] In some implementations, the component status detection module 503 is used to:
[0172] When the orientation of the monitored vehicle in the target image frame belongs to a second orientation, detecting a second contour of the target component in the target image frame; the second orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the transverse border of the target image frame is less than a second angle threshold;
[0173] The state of the target component in the target image frame is determined according to the second contour and the second position frame.
[0174] In some implementations, the data processing module 504 is configured to:
[0175] Determine the attribute parameters of the monitored vehicle according to the vehicle image; the attribute parameters include at least one of the following parameters: vehicle brand, vehicle model, vehicle body color or vehicle type;
[0176] A monitoring report of the monitored vehicle within the preset time period is outputted according to the attribute parameter and the number of state changes of the target component within the preset time period.
[0177] The vehicle monitoring device 50 provided in the embodiment of the present application can execute the technical solution shown in the above-mentioned vehicle monitoring method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.
[0178] Based on the contents described in the above embodiments, a vehicle monitoring data processing device is also provided in the embodiments of the present application. The vehicle monitoring data processing device includes:
[0179] The acquisition module is used to obtain the number of state changes of each target component of the monitored vehicle within a preset time period output by the vehicle monitoring device; the vehicle monitoring device is Figure 5 The vehicle monitoring device in the illustrated embodiment.
[0180] A calculation module, used for calculating the total number of state changes of the target component of the monitored vehicle within a preset time period;
[0181] The processing module is used to determine the attention index of each target component according to the ratio of the number of state changes of each target component to the total number of state changes.
[0182] The vehicle monitoring data processing device provided in the embodiment of the present application can execute the technical solution shown in the above-mentioned vehicle monitoring data processing method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0183] Based on the contents described in the above embodiments, some embodiments of the present application further provide an electronic device, see Figure 6 , Figure 6 The schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application is as follows. The electronic device 60 may include a processor 601 and a memory 602. Exemplarily, the processor 601 and the memory 602 are interconnected via a bus 603.
[0184] Memory 602 stores computer executable instructions;
[0185] The processor 601 executes the computer execution instructions stored in the memory 602, so that the processor 601 executes the relevant contents in the corresponding embodiments of the above-mentioned vehicle monitoring method, or executes the relevant contents in the corresponding embodiments of the above-mentioned vehicle monitoring data processing method, which will not be repeated here.
[0186] Correspondingly, an embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by the processor, they are used to implement the relevant contents of the above-mentioned vehicle monitoring method corresponding to each embodiment, or to implement the relevant contents of the above-mentioned vehicle monitoring data processing method corresponding to each embodiment, which will not be repeated here.
[0187] Accordingly, an embodiment of the present application may also provide a computer program product, including a computer program. When the computer program is executed by a processor, it can implement the relevant contents of the above-mentioned vehicle monitoring method corresponding to each embodiment, or implement the relevant contents of the above-mentioned vehicle monitoring data processing method corresponding to each embodiment, which will not be elaborated here.
[0188] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
[0189] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0190] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0192] In a typical configuration, a computing device includes one or more processors, input / output interfaces, network interfaces, and memory.
[0193] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0194] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0195] It should also be noted that the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method or device including the element.
[0196] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A vehicle monitoring method, characterized in that: The method comprises: Acquire a monitoring video stream, and determine a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream; Detecting a second position frame corresponding to a target component of the monitored vehicle in the target image frame according to the first position frame; Determining the state of the target component in the target image frame according to the second position frame; the state of the target component includes an open state and a closed state; According to the state change of the target component in a plurality of consecutive target image frames, updating the number of state changes of the target component; Determining the state of the target component in the target image frame according to the second position frame includes: When the orientation of the monitored vehicle in the target image frame belongs to a first orientation, detecting a first outline of the monitored vehicle; the first orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the longitudinal border of the target image frame is less than a first angle threshold; Determine the state of the target component in the target image frame according to the first contour and the second position box; determine the state of the target component in the target image frame according to the first contour and the second position box, including: if the second position box is located inside the first contour and has a regular shape, determine that the target component is in a closed state; if the second position box is separated from the first contour, determine that the target component is in an open state.
2. The method according to claim 1, characterized in that Determining a first position frame corresponding to the monitored vehicle in the target image frame according to the monitoring video stream includes: Collecting a plurality of target image frames in the monitoring video stream; Detecting whether there is a monitored vehicle in the target image frame; When a monitored vehicle exists in the target image frame, a first position frame of the monitored vehicle in the target image frame is determined.
3. The method according to claim 2, characterized in that The step of determining a first position frame of the monitored vehicle in the target image frame comprises: Determining whether the monitored vehicle is in a stationary state; When the monitored vehicle is stationary, a first position frame in a target image frame collected by the monitored vehicle at a current moment is determined according to a reference position frame in a target image frame collected by the monitored vehicle at a reference moment.
4. The method according to claim 1, characterized in that: The step of detecting, in the target image frame, a second position frame corresponding to the target component of the monitored vehicle according to the first position frame comprises: According to the first position frame, intercepting a vehicle image corresponding to the monitored vehicle in the target image frame; Identify whether the target component exists in the vehicle image; the target component includes at least one of a door, a rear tailgate, and a front hood of the monitored vehicle; When the target component exists in the vehicle image, a second position frame of the target component in the target image frame is determined.
5. The method according to claim 4, characterized in that The method further comprises: Extracting appearance feature information of the monitored vehicle from the vehicle image; Determining the orientation of the monitored vehicle in the target image frame according to the appearance feature information; The name of the target component is determined according to the orientation of the monitored vehicle in the target image frame, the first position frame, and the second position frame of the target component in the target image frame.
6. The method according to claim 5, characterized in that Determining the state of the target component in the target image frame according to the second position frame includes: When the orientation of the monitored vehicle in the target image frame belongs to a second orientation, detecting a second contour of the target component in the target image frame; the second orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the transverse border of the target image frame is less than a second angle threshold; According to the second contour and the second position box, the state of the target component in the target image frame is determined; the state of the target component in the target image frame according to the second contour and the second position box includes: if the second contour is contained in the second position box and has a regular shape, then the target component is determined to be in a closed state; if the second contour exceeds the range of the second position box, then the target component is determined to be in an open state.
7. The method according to any one of claims 4 to 6, characterized in that: The method further comprises: Determine the attribute parameters of the monitored vehicle according to the vehicle image; the attribute parameters include at least one of the following parameters: vehicle brand, vehicle model, vehicle body color or vehicle type; A monitoring report of the monitored vehicle within the preset time period is outputted according to the attribute parameter and the number of state changes of the target component within the preset time period.
8. A vehicle monitoring device, characterized in that: The device comprises: A vehicle detection module, used to obtain a monitoring video stream and determine a first position frame corresponding to a monitored vehicle in a target image frame according to the monitoring video stream; a component detection module, configured to detect, in the target image frame, a second position frame corresponding to a target component of the monitored vehicle according to the first position frame; A component state detection module, used for detecting a first contour of the monitored vehicle when the orientation of the monitored vehicle in the target image frame belongs to a first orientation; determining the state of the target component in the target image frame according to the first contour and the second position frame; the first orientation is an orientation when the angle between the longitudinal axis of the monitored vehicle and the longitudinal border of the target image frame is less than a first angle threshold; determining the state of the target component in the target image frame according to the first contour and the second position frame includes: if the second position frame is located inside the first contour and has a regular shape, determining that the target component is in a closed state; if the second position frame is separated from the first contour, determining that the target component is in an open state; The data processing module is used to update the number of state changes of the target component according to the state changes of the target component in a plurality of consecutive target image frames.
9. A vehicle monitoring data processing method, characterized in that: The method comprises: Obtaining the number of state changes of each target component of the monitored vehicle within a preset time period output by a vehicle monitoring device; the vehicle monitoring device is the vehicle monitoring device according to claim 8; Calculating the total number of state changes of the target component of the monitored vehicle within a preset time period; The attention index of each target component is determined according to the ratio of the number of state changes of each target component to the total number of state changes.
10. A vehicle monitoring system, characterized in that: include: at least one camera and vehicle monitoring device; The at least one camera is used to: collect images of the area where the monitored vehicle is located, and upload them to the vehicle monitoring device; The vehicle monitoring device is the vehicle monitoring device according to claim 8.
11. An electronic device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the vehicle monitoring method according to any one of claims 1 to 7, or executes the vehicle monitoring data processing method according to claim 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by a computer, the vehicle monitoring method according to any one of claims 1 to 7 or the vehicle monitoring data processing method according to claim 9 is implemented.
13. A computer program product, characterized in that It comprises a computer program, which, when executed, enables a computer to execute the vehicle monitoring method according to any one of claims 1 to 7, or the vehicle monitoring data processing method according to claim 9.
