Search

CN-115359252-B - Vehicle entry and exit safety management method, device, system and storage medium

CN115359252BCN 115359252 BCN115359252 BCN 115359252BCN-115359252-B

Abstract

The application relates to a method, a device, a system and a storage medium for vehicle entrance and exit safety management, wherein the method for vehicle entrance and exit safety management comprises the steps of acquiring a real-time image of a garage entrance and exit area, analyzing the real-time image by utilizing a preset trained detection model, dividing the outline of a vehicle, calculating the distance between an outline point of the vehicle and a target object according to the outline of the vehicle, and sending out collision early warning when the distance is smaller than or equal to a set threshold value, and marking the collision early warning point on the real-time image.

Inventors

  • Yang Xuexun
  • SUN ZHILIANG

Assignees

  • 浙江大华技术股份有限公司
  • 浙江大华技术股份有限公司

Dates

Publication Date
20260421
Application Date
20220708
Priority Date
20220708

Claims (7)

  1. 1. A vehicle entry and exit security management method, the method comprising: acquiring a real-time image of an entrance area of a garage; analyzing the real-time image by using a preset trained detection model, and dividing the outline of the vehicle to obtain an outline point set of the vehicle; sending the contour point set and a preset marking line segment into a functional model, wherein the functional model calculates the pixel distance between the contour point and the marking line segment, and the method comprises the following steps: Setting end point coordinates of a mark line segment, traversing a contour point set of the vehicle, and sending coordinates of contour points, of which the ordinate is between the end point ordinates of the mark line segment, in the contour point set of the vehicle into a functional model to obtain pixel distances between the contour points and the mark line segment; Traversing a contour point set of the vehicle, wherein the traversing of the contour point set comprises selecting to traverse part of contour points in the contour point set according to the position relation between the set marking line segment and the coordinates of the central point of the vehicle in the image; The traversing of the contour points in the contour point set comprises the steps of dividing the contour point set into a left contour point set and a right contour point set, taking the intersection point of a straight line of the center point parallel to a horizontal axis and a straight line of the marking line segment, traversing the right contour point set if the intersection point abscissa is greater than or equal to the center point abscissa of the vehicle in the image, otherwise traversing the left contour point set, wherein the abscissa of the contour point in the left contour point set is smaller than the center point abscissa of the vehicle in the image, and the abscissa value of the contour point in the right contour point set is greater than or equal to the center point abscissa of the vehicle in the image; when the pixel distance is smaller than or equal to a set threshold value, collision early warning is sent out, and meanwhile collision early warning points are marked on the real-time image; And transmitting the real-time image.
  2. 2. The method of claim 1, wherein analyzing the real-time image with a preset trained detection model to segment the contour of the vehicle and obtain the contour point set of the vehicle comprises: And sending the acquired real-time image of the vehicle into a target detection model to obtain a vehicle region image of the vehicle, and sending the vehicle region image into a segmentation model to obtain a contour point set of the vehicle, wherein the vehicle region image comprises the vehicle.
  3. 3. The method of claim 1, comprising determining a vertical distance from each contour point to the marking line segment and the set threshold, and sending out collision warning when the vertical distance is less than or equal to the set threshold, and simultaneously displaying the contour point on the real-time image in a marked manner.
  4. 4. A vehicle entry and exit security management apparatus, the apparatus comprising: The acquisition module acquires a real-time image of the garage entrance area; the calculation module is used for analyzing the real-time image by using a preset trained detection model and dividing the outline of the vehicle to obtain an outline point set of the vehicle; sending the contour point set and a preset marking line segment into a functional model, and calculating the pixel distance between the contour point and the marking line segment by the functional model; The calculation module is further used for setting end point coordinates of the marked line segment, traversing the contour point set of the vehicle, and sending coordinates of contour points, of which the ordinate is between the end point ordinate of the marked line segment, in the contour point set of the vehicle to the functional model to obtain pixel distances from the contour points to the marked line segment; the calculation module is further used for selecting and traversing part of contour points in the contour point set according to the position relation between the set marking line segment and the coordinates of the central point of the vehicle in the image; The calculation module is further used for dividing the contour point set into a left contour point set and a right contour point set, taking the intersection point of a straight line of which the central point is parallel to a horizontal axis and a straight line of which the marking line segment is positioned, traversing the right contour point set if the intersection point abscissa is greater than or equal to the central point abscissa of the vehicle in the image, otherwise traversing the left contour point set, wherein the abscissa of the contour point in the left contour point set is smaller than the central point abscissa of the vehicle in the image, and the abscissa of the contour point in the right contour point set is greater than or equal to the central point abscissa of the vehicle in the image; The early warning module is used for sending out collision early warning when the pixel distance is smaller than or equal to a set threshold value, and marking collision early warning points on the real-time image; and the sending module is used for sending the real-time image.
  5. 5. The vehicle in-and-out safety management system is characterized by comprising video acquisition equipment, processing equipment and image display equipment, wherein the video acquisition equipment is connected with the image display equipment through the processing equipment; the video acquisition equipment is used for acquiring videos of the vehicle entering and exiting warehouse; the image display device is used for displaying the real-time image sent by the processing device; The processing apparatus is configured to execute the vehicle entry-exit security management method according to any one of claims 1 to 3.
  6. 6. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the vehicle ingress and egress safety management method of any one of claims 1 to 3.
  7. 7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the vehicle entry-exit security management method of any one of claims 1 to 3.

Description

Vehicle entry and exit safety management method, device, system and storage medium Technical Field The application relates to the field of artificial intelligent monitoring, in particular to a method, a device, a system and a storage medium for vehicle input and output safety management. Background With the development of society, automobiles enter into thousands of households, a plurality of district garage entrances and parking lot entrances are provided with banisters, walls or cement table tops are arranged on two sides of each banister, and garage entrance roads are generally narrow, so that the vehicles often scratch the cement table tops and the walls when passing through the passageway gates, even the banister is collided to cause damage of the banister, especially new hands are more frequent, and in order to avoid the loss of vehicles and public facilities, the provision of collision early warning is an important means for preventing the vehicles from scratching and colliding when passing through the passageway gates. In the related art, a sensor is mainly arranged in a garage, the distance is sensed by the sensor, so that a driver is reminded of entering and exiting the garage, but the arrangement of a sensor device is different according to different environments, the installation design is complex, when the window of a vehicle is closed, the driver is difficult to hear the alarm sound, so that the collision occurs, the early warning mode is not visual, video recording videos cannot be recorded when the vehicle or an upright post is damaged due to the collision of the vehicle, and evidence cannot be reserved, namely the problem that the collision early warning device for entering and exiting the garage of the vehicle has poor effectiveness in the related art is solved. Aiming at the problem of poor effectiveness of a collision early warning device for vehicle in-out and in-in storage in the related art, no effective solution is proposed at present. Disclosure of Invention In this embodiment, a method, an apparatus, a system, and a storage medium for vehicle in-out and in-in safety management are provided to solve the problem of poor effectiveness of a collision early warning device for vehicle in-out and in-in related technology. In a first aspect, in this embodiment, there is provided a method for vehicle in-out-in-storage security management, the method including: a real-time image of the garage access area is acquired, Analyzing the real-time image by using a preset trained detection model, dividing the contour of the vehicle, and calculating the distance between the contour point of the vehicle and the target object according to the contour of the vehicle; When the distance is smaller than or equal to a set threshold value, collision early warning is sent out, and meanwhile collision early warning points are marked on the real-time image; And transmitting the real-time image. In some embodiments, the analyzing the real-time image with a preset trained detection model to segment the contour of the vehicle, and calculating the distance between the contour point of the vehicle and the target object according to the contour of the vehicle includes: The method comprises the steps of sending an acquired real-time image of a vehicle into a target detection model to obtain a vehicle region image of the vehicle, sending the vehicle region image into a segmentation model to obtain a contour point set of the vehicle, sending the contour point set and a preset mark line segment into a functional model, and calculating the pixel distance between the contour point and the mark line segment by the functional model, wherein the vehicle region image comprises the vehicle. In some embodiments, the sending the contour point set and a preset marking line segment into a functional model, and the calculating, by the functional model, the pixel distance between the contour point and the marking line segment includes: and setting end point coordinates of a mark line segment, traversing a contour point set of the vehicle, and sending coordinates of contour points, of which the ordinate is between the end point ordinates of the mark line segment, in the contour point set of the vehicle into a functional model to obtain pixel distances from the contour points to the mark line segment. In some of these embodiments, the traversing the set of contour points includes selecting to traverse a portion of the set of contour points based on a positional relationship of the set of marker line segments to a center point coordinate of the vehicle in the image. In some of these embodiments, said traversing the vehicle portion contour point set comprises: dividing the vehicle contour point set into a left contour point set and a right contour point set; And taking an intersection point of a straight line of the central point parallel to the horizontal axis and a straight line of the marking line segment, traversing the right contour