[go: nahoru, domu]

WO2023044656A1 - Vehicle passage warning method and apparatus, and vehicle-mounted terminal - Google Patents

Vehicle passage warning method and apparatus, and vehicle-mounted terminal Download PDF

Info

Publication number
WO2023044656A1
WO2023044656A1 PCT/CN2021/119858 CN2021119858W WO2023044656A1 WO 2023044656 A1 WO2023044656 A1 WO 2023044656A1 CN 2021119858 W CN2021119858 W CN 2021119858W WO 2023044656 A1 WO2023044656 A1 WO 2023044656A1
Authority
WO
WIPO (PCT)
Prior art keywords
hole
height
vehicle
image
camera
Prior art date
Application number
PCT/CN2021/119858
Other languages
French (fr)
Chinese (zh)
Inventor
刘军
张潜
黄凯明
Original Assignee
深圳市锐明技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市锐明技术股份有限公司 filed Critical 深圳市锐明技术股份有限公司
Priority to PCT/CN2021/119858 priority Critical patent/WO2023044656A1/en
Priority to CN202180002646.1A priority patent/CN113994391B/en
Publication of WO2023044656A1 publication Critical patent/WO2023044656A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/58Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/04Detecting movement of traffic to be counted or controlled using optical or ultrasonic detectors
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Definitions

  • the present application relates to the technical field of image processing, and in particular to a vehicle traffic reminder method, device, vehicle-mounted terminal, and computer-readable storage medium.
  • the embodiment of the present application provides a vehicle traffic reminder method, device and vehicle-mounted terminal, which can avoid the problem of vehicle damage caused by the height of the vehicle being higher than the height of the culvert (or bridge opening) when the vehicle passes through the culvert (or bridge opening).
  • the embodiment of the present application provides a vehicle traffic reminder method, which is applied to a vehicle-mounted terminal, including:
  • the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
  • the embodiment of the present application provides a vehicle passage reminding device, which is applied to a vehicle-mounted terminal, including:
  • An image acquisition module configured to acquire an image, the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
  • a hole identification module configured to identify whether a hole is included in the image
  • the height determination module of the hole in the image is used to determine the height of the hole in the image if the hole is included;
  • a distance determination module between the camera and the hole configured to determine the distance between the camera and the hole
  • the actual height determination module of the hole is used to calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera;
  • a reminder module configured to remind the vehicle to stop passing if the actual height of the hole is lower than the height of the vehicle.
  • an embodiment of the present application provides a vehicle-mounted terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor.
  • the processor executes the computer program, Implement the method as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to the first aspect is implemented.
  • the embodiment of the present application provides a computer program product, which, when the computer program product runs on the vehicle-mounted terminal, causes the vehicle-mounted terminal to execute the method described in the first aspect above.
  • the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time and no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
  • FIG. 1 is a flow chart of a method for reminding vehicles to pass according to an embodiment of the present application
  • Fig. 2 is a height schematic diagram of an arched bridge cavity in an image provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a network structure of a preset target detection model provided by an embodiment of the present application
  • Fig. 4 is a schematic diagram of a network structure of a preset regression model provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of an upper tangent line and a lower bound of a hole provided by an embodiment of the present application;
  • Fig. 6 is a schematic diagram of the upper tangent and the lower boundary of another hole provided by an embodiment of the present application.
  • Fig. 7 is a schematic structural diagram of a vehicle passage reminder device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • culverts there may be some culverts (or bridge holes) on the current road, and some of these culverts (or bridge holes) have height limit signs, but some do not have height limit signs.
  • the driver can choose whether to continue driving in the direction of the culvert according to the height limit sign. For example, when the height in the height limit sign is higher than the height of the vehicle, the driver drives the vehicle Continue toward the culvert.
  • the culvert does not have a height limit sign, it will be difficult for the driver to accurately judge whether it is possible to continue driving in the direction of the culvert.
  • the embodiment of the present application provides a vehicle traffic reminder method.
  • the scene in front of the vehicle is captured by the camera, and the captured image is analyzed. If the analyzed image contains a hole, then Calculate the actual height of the hole. If the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to suspend traffic. That is, regardless of whether the hole has a height limit sign, the actual height of the hole can be calculated, and when the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to suspend traffic, so as to avoid the height of the vehicle being too high When, forcibly passing through the culvert caused damage.
  • Fig. 1 shows a flow chart of a vehicle passage reminder method provided by an embodiment of the present application, which is applied to a vehicle-mounted terminal, and is described in detail as follows:
  • Step S11 acquiring an image, which is obtained by capturing the scene in front of the vehicle by the camera.
  • a camera is installed on the vehicle, and the lens of the camera faces the scene in front of the vehicle, and is used to photograph the scene in the traveling direction of the vehicle.
  • the camera is connected with the vehicle-mounted terminal, and is used for sending the images captured by it to the vehicle-mounted terminal.
  • the camera In order to be able to identify in time whether there is a hole (such as a bridge hole, etc.) in front of the vehicle, the camera is set to take pictures of the scene in front of the vehicle in real time or when the interval time (such as an interval of 2 seconds) arrives.
  • a hole such as a bridge hole, etc.
  • openings usually appear in the suburbs and do not appear in some areas, for example, they usually do not appear in urban areas.
  • whether the vehicle is currently in a suburb or an urban area can be judged according to the geographical information obtained by the navigation. That is, the image can be acquired again when it is detected that the vehicle is driving in a designated area (such as the suburbs of a city), and when the vehicle is driving in the downtown area of the city, the image is not acquired, so that the image can be acquired in time for subsequent timely processing of the image. Analysis can also avoid the waste of resources caused by the camera acquiring images all the time.
  • the aforementioned interval duration is determined according to the current speed of the vehicle.
  • the interval can be set to be inversely proportional to the current speed of the vehicle, that is, the current The greater the speed, the shorter the corresponding interval. Since the present embodiment acquires images after the interval time arrives, less resources of the camera are consumed by acquiring images at intervals than when acquiring images in real time. In addition, since the interval time is related to the current speed of the vehicle, it can ensure that the image of the scene in front of the vehicle can be acquired in time.
  • Step S12 identifying whether the image contains a hole.
  • the openings here are bridge holes or culverts.
  • whether the image contains a hole can be identified according to the pixel value in the image, the shape and size of the object in the image, and the like.
  • the color of the area of the culvert in the image is usually darker because the light of the culvert is usually insufficient, that is, the pixel value corresponding to the area of the culvert in the image is biased towards the pixel value corresponding to black.
  • culverts are usually larger, that is, the area of the culvert in the image will occupy a certain proportion in the image, and the proportion is related to the current distance between the vehicle and the culvert.
  • an object detection model may also be pre-trained, and the object detection model may be used to identify whether an image contains a hole.
  • Step S13 if the hole is included, then determine the height of the hole in the image.
  • FIG. 2 shows a schematic diagram of the height of an arched bridge opening in the image.
  • the distance between the upper and lower boundaries of the arch is the height of the opening in the image.
  • Step S14 determining the distance between the camera and the hole.
  • the distance between the vehicle and the hole is different, the height of the hole in the image is also different. Therefore, after each image is taken, the distance between the camera and the hole is determined once, so as to improve the actual height of the hole obtained subsequently. high degree of accuracy.
  • Step S15 according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera, calculate the actual height of the hole.
  • the parameters of the camera include the focal length, etc.
  • the actual height of the hole refers to the actual height of the hole.
  • Step S16 if the actual height of the hole is lower than the height of the vehicle, remind the vehicle to stop passing.
  • the vehicle-mounted terminal stores the height of the vehicle in advance.
  • the vehicle-mounted terminal compares the calculated actual height of the hole with the height of the stored vehicle. If the actual height of the hole is higher than the height of the vehicle, it indicates that the vehicle can safely pass through the hole. At this time, no reminder is needed; otherwise, Indicates that the vehicle cannot pass through the hole. At this time, a reminder is issued to prevent the vehicle from being damaged due to the vehicle continuing to move forward.
  • the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time to no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
  • step S13 includes:
  • A1 If the opening is included, identify whether there is a limited height sign above the opening.
  • the vehicle passage reminder method provided in the embodiment of the present application further includes:
  • the height of the hole in the image will be determined only when there is no height limit sign at the hole entrance, and the height information contained in the height limit sign is directly recognized when the hole has a limited height sign. Since it is faster to directly recognize the height information contained in the height limit sign, the actual height of the exit hole (that is, the height indicated by the height limit sign) can be determined faster through the above method, and then when the height of the vehicle is high, Reminders of vehicle suspensions are issued more quickly.
  • step S15 before calculating the actual height of the opening in step S15, it includes:
  • the pitch angle, the focal length of the camera, and the ordinate of the designated coordinate point the distance between the camera and the hole is calculated, wherein the above-mentioned designated coordinate point is a coordinate point of the lower boundary of the hole.
  • the above-mentioned specified coordinate point is the coordinate point corresponding to the straight line obtained when it is connected with the projection of the camera on the ground and the straight line corresponding to the lower boundary of the hole.
  • the distance d between the camera and the hole can be calculated in the following manner:
  • h is the installation height of the camera lens on the vehicle
  • f is the focal length of the camera
  • is the pitch angle of the camera on the vehicle
  • b is the ordinate of the specified coordinate point.
  • the above step S15 includes:
  • the actual height of the hole can be calculated according to the following method:
  • the above step S12 includes:
  • Identify whether the image contains holes through the preset target detection model, and the network structure of the preset target detection model is related to the computing power of the vehicle terminal.
  • the preset network structure of the target detection model includes: the number of convolutional layers, the number of convolutional channels, and the like. Since the network structure of the preset target detection model is related to the computing power of the vehicle-mounted terminal, it can be ensured that the network structure of the preset target detection model matches the computing power of the vehicle-mounted terminal, and the hole can be calculated in a more timely manner. in actual height.
  • the backbone (backbone) of the network structure of the preset target detection model is composed of 5 stages (stage), considering that the resolution of the previous feature layer is relatively large, while the resolution of the latter feature layer is relatively large. It is relatively small, so the number of convolutional layers with 5 stages is gradually increased, and the number of channels is also gradually increased to enhance the performance of the network.
  • the five stages are respectively: the first stage (stage1), the second stage stage2, the third stage (stage3), the fourth stage (stage4) and the fifth stage (stage5).
  • stage1 is three 3x3x16 convolutions
  • stage2 is three 3x3x32 convolutions
  • stage3 is four 3x3x64 convolutions
  • stage4 is five 3x3x128 convolutions
  • stage5 is five 3x3x128 convolutions.
  • the image captured by the camera contains more features of the hole.
  • the convolution in the front of the network structure can also extract more features. And compared with the convolution in the back of the network structure, the amount of calculation required is less. Therefore, different convolutions can be selected according to the distance between the hole and the vehicle, and the corresponding feature map can be output according to the selected convolution, and then the prediction can be obtained. detection frame. Assuming that the network structure of the preset target detection model is shown in Figure 3, when the distance between the hole and the vehicle is relatively close, select "4 Conv3*3*64" convolutions as the input of the Feature Pyramid Network (FPN) , to get the prediction result 1 output by the FPN.
  • FPN Feature Pyramid Network
  • the above step S13 includes:
  • the number of channels of the preset regression model is smaller than the number of channels of the preset target detection model.
  • the upper tangent here refers to a line that is tangent to the highest point of the hole and perpendicular to the ground.
  • the hole detected by the preset target detection model may include objects on the edge of the hole, that is, it may not be accurate to determine the height of the hole in the image directly according to the output result of the preset target detection model, so , the output result of the preset target detection model (that is, a detection frame) needs to be used as the input of the preset regression model, and the upper tangent and lower bound of the output of the preset regression model are obtained.
  • the setting of the preset regression model is less than the number of channels of the preset target detection model, which not only ensures the accurate determination of the upper tangent and lower bound of the hole from the detection frame, but also improves the speed of determining the upper tangent and lower bound of the hole.
  • the network structure of the preset regression model is similar to the backbone of the network structure of the above preset target detection model, except that the number of convolutional channels is further trimmed.
  • the network structure of the preset regression model is shown in Figure 4.
  • the network structure of the preset regression model includes 5 stages, and finally two 3*3 convolutions are used to obtain the upper Output of tangents and lower bounds.
  • Fig. 5 and Fig. 6 show a schematic diagram of an upper tangent line and a lower bound of a hole.
  • a coordinate point M in the upper tangent can be selected, and then a coordinate point N whose abscissa is the same as M can be selected in the straight line corresponding to the lower bound, and finally the difference between the coordinate point M and the vertical coordinate of the coordinate point N can be calculated , the obtained difference is the height of the hole in the image.
  • FIG. 7 shows a structural block diagram of the vehicle passage reminder device provided by the embodiment of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown.
  • this vehicle traffic reminding device 7 comprises: image acquisition module 71, hole recognition module 72, the height determination module 73 of hole in the image, the distance determination module 74 of camera and hole, the height determination module 75 of hole in practice , Reminder module 76. in:
  • the image acquisition module 71 is configured to acquire an image, which is obtained by capturing the scene in front of the vehicle by the camera.
  • the hole identification module 72 is configured to identify whether the image contains a hole.
  • the height determination module 73 of the hole in the image is configured to determine the height of the hole in the image if the hole is included.
  • the distance determination module 74 between the camera and the hole is used to determine the distance between the camera and the hole.
  • the actual height determination module 75 of the hole is used to calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole, and the parameters of the camera.
  • the reminding module 76 is used for reminding the vehicle to suspend traffic if the actual height of the hole is lower than the height of the vehicle.
  • the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time to no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
  • the above-mentioned height determination module 73 of the hole in the image includes:
  • the height limit sign recognition unit is used to identify whether there is a limit height sign above the hole if the hole is included.
  • the infinite height sign processing unit is configured to determine the height of the hole in the image if there is no height limit sign.
  • the vehicle passage reminding device 7 also includes:
  • the height comparison unit is configured to compare the height indicated by the height limit sign with the height of the vehicle if there is a height limit sign.
  • the vehicle height processing unit is configured to remind the above-mentioned vehicle to suspend traffic if the height indicated by the above-mentioned height limit sign is lower than the height of the above-mentioned vehicle.
  • the above-mentioned distance determination module 74 between the camera and the hole is specifically used for:
  • the pitch angle, the focal length of the above-mentioned camera and the ordinate of the specified coordinate point calculate the distance between the above-mentioned camera and the above-mentioned hole, and the above-mentioned specified coordinate point is a coordinate point of the lower boundary of the above-mentioned hole.
  • the actual height determination module 75 of the above hole is specifically used for:
  • the actual height of the hole is calculated according to the height of the hole in the image, the distance between the camera and the hole, the focal length of the camera, and the pitch angle of the camera in the vehicle.
  • the above-mentioned opening identification module 72 is specifically used for:
  • Whether the image contains a hole is identified by a preset target detection model, and the network structure of the preset target detection model is related to the computing power of the vehicle-mounted terminal.
  • the above-mentioned height determination module 73 of the hole in the image is specifically used for:
  • the upper tangent and the lower boundary of the hole are identified through a preset regression model, and the number of channels of the preset regression model is smaller than the number of channels of the preset target detection model.
  • the height of the hole in the image is determined according to the upper tangent and the lower boundary of the hole.
  • FIG. 8 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application.
  • the vehicle-mounted terminal 8 of this embodiment includes: at least one processor 80 (only one processor is shown in Figure 8 ), memory 81 and stored in memory 81 and can run on at least one processor 80 A computer program 82, when the processor 80 executes the computer program 82, implements the steps in any of the above method embodiments.
  • the vehicle-mounted terminal 8 can be computing devices such as desktop computers, notebooks, palmtop computers, and cloud servers.
  • the vehicle terminal may include, but not limited to, a processor 80 and a memory 81 .
  • FIG. 8 is only an example of the vehicle-mounted terminal 8, and does not constitute a limitation to the vehicle-mounted terminal 8. It may include more or less components than those shown in the figure, or combine some components, or different components. , for example, may also include input and output devices, network access devices, and so on.
  • the so-called processor 80 can be a central processing unit (Central Processing Unit, CPU), and the processor 80 can also be other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit) , ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the storage 81 may be an internal storage unit of the vehicle terminal 8 in some embodiments, such as a hard disk or memory of the vehicle terminal 8 .
  • Memory 81 also can be the external storage device of vehicle-mounted terminal 8 in other embodiments, such as the plug-in type hard disk equipped on vehicle-mounted terminal 8, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc.
  • the memory 81 may also include both an internal storage unit of the vehicle-mounted terminal 8 and an external storage device.
  • the memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs.
  • the memory 81 can also be used to temporarily store data that has been output or will be output.
  • the embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
  • An embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signal telecommunication signal and software distribution medium.
  • U disk mobile hard disk
  • magnetic disk or optical disk etc.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
  • the disclosed device/network device and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)
  • Image Processing (AREA)

Abstract

A vehicle passage warning method and apparatus, and a vehicle-mounted terminal. The method comprises: acquiring an image, wherein the image is obtained by a camera photographing the environment in front of a vehicle; identifying whether the image includes a portal; if the image includes a portal, determining the height of the portal in the image; determining the distance between the camera and the portal; calculating the actual height of the portal according to the height of the portal in the image, the distance between the camera and the portal, and a parameter of the camera; and if the actual height of the portal is lower than the height of the vehicle, giving a warning to stop passage of the vehicle. By means of the method, damage to a vehicle when passing through a portal can be avoided.

Description

车辆通行提醒方法、装置及车载终端Vehicle passage reminder method, device and vehicle-mounted terminal 技术领域technical field
本申请涉及图像处理技术领域,具体涉及一种车辆通行提醒方法、装置、车载终端及计算机可读存储介质。The present application relates to the technical field of image processing, and in particular to a vehicle traffic reminder method, device, vehicle-mounted terminal, and computer-readable storage medium.
背景技术Background technique
车辆在运行过程中,经常会遇到涵洞或桥洞。由于涵洞或桥洞均具有一定的高度,且车辆本身也具有一定的高度,因此,若希望车辆顺利通过涵洞(或桥洞),则需要保证车辆的高度低于涵洞(或桥洞)的高度。Vehicles often encounter culverts or bridge holes during operation. Since the culvert or the bridge hole has a certain height, and the vehicle itself also has a certain height, if you want the vehicle to pass through the culvert (or bridge hole) smoothly, you need to ensure that the height of the vehicle is lower than the height of the culvert (or bridge hole).
发明内容Contents of the invention
本申请实施例提供了车辆通行提醒方法、装置及车载终端,可以避免车辆通过涵洞(或桥洞)时,由于该车辆的高度高于涵洞(或桥洞)的高度所导致的车辆损坏问题。The embodiment of the present application provides a vehicle traffic reminder method, device and vehicle-mounted terminal, which can avoid the problem of vehicle damage caused by the height of the vehicle being higher than the height of the culvert (or bridge opening) when the vehicle passes through the culvert (or bridge opening).
第一方面,本申请实施例提供了一种车辆通行提醒方法,应用于车载终端,包括:In the first aspect, the embodiment of the present application provides a vehicle traffic reminder method, which is applied to a vehicle-mounted terminal, including:
获取图像,所述图像为摄像头拍摄车辆前方的景物得到;Acquiring an image, the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
识别所述图像中是否包含洞口;identifying whether an opening is contained in the image;
若包含洞口,则确定所述洞口在图像中的高度;If a hole is included, then determine the height of the hole in the image;
确定所述摄像头与所述洞口的距离;determining the distance between the camera and the hole;
根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离以及所述摄像头的参数,计算所述洞口在实际中的高度;Calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole, and the parameters of the camera;
若所述洞口在实际中的高度低于所述车辆的高度,则提醒所述车辆暂停通 行。If the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to suspend traffic.
第二方面,本申请实施例提供了一种车辆通行提醒装置,应用于车载终端,包括:In the second aspect, the embodiment of the present application provides a vehicle passage reminding device, which is applied to a vehicle-mounted terminal, including:
图像获取模块,用于获取图像,所述图像为摄像头拍摄车辆前方的景物得到;An image acquisition module, configured to acquire an image, the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
洞口识别模块,用于识别所述图像中是否包含洞口;A hole identification module, configured to identify whether a hole is included in the image;
洞口在图像中的高度确定模块,用于若包含洞口,则确定所述洞口在图像中的高度;The height determination module of the hole in the image is used to determine the height of the hole in the image if the hole is included;
摄像头与洞口的距离确定模块,用于确定所述摄像头与所述洞口的距离;A distance determination module between the camera and the hole, configured to determine the distance between the camera and the hole;
洞口在实际中的高度确定模块,用于根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离以及所述摄像头的参数,计算所述洞口在实际中的高度;The actual height determination module of the hole is used to calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera;
提醒模块,用于若所述洞口在实际中的高度低于所述车辆的高度,则提醒所述车辆暂停通行。A reminder module, configured to remind the vehicle to stop passing if the actual height of the hole is lower than the height of the vehicle.
第三方面,本申请实施例提供了一种车载终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面所述的方法。In a third aspect, an embodiment of the present application provides a vehicle-mounted terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, Implement the method as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to the first aspect is implemented.
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在车载终端上运行时,使得车载终端执行上述第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a computer program product, which, when the computer program product runs on the vehicle-mounted terminal, causes the vehicle-mounted terminal to execute the method described in the first aspect above.
本申请实施例与现有技术相比存在的有益效果是:Compared with the prior art, the embodiments of the present application have the following beneficial effects:
本申请实施例中,由于可从拍摄的图像中判断车辆前方是否包含洞口,并计算出洞口在实际中的高度,也即,即使洞口没有限高标志,也能计算出洞口在实际中的高度,进而能够在洞口在实际中的高度低于车辆的高度时,发出提醒,因此,使得驾驶员能够及时控制车辆不再前行,从而避免由于强行通过洞口时给车辆带来的损坏。In the embodiment of the present application, since it can be judged from the captured image whether there is a hole in front of the vehicle, and the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time and no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或示范性技术描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required in the embodiments or exemplary technical descriptions.
图1是本申请一实施例提供的一种车辆通行提醒方法的流程图;FIG. 1 is a flow chart of a method for reminding vehicles to pass according to an embodiment of the present application;
图2是本申请一实施例提供的一种拱形的桥洞在图像中的高度示意图;Fig. 2 is a height schematic diagram of an arched bridge cavity in an image provided by an embodiment of the present application;
图3是本申请一实施例提供的预设的目标检测模型的一种网络结构的示意图;FIG. 3 is a schematic diagram of a network structure of a preset target detection model provided by an embodiment of the present application;
图4是本申请一实施例提供的预设的回归模型的一种网络结构的示意图;Fig. 4 is a schematic diagram of a network structure of a preset regression model provided by an embodiment of the present application;
图5是本申请一实施例提供的一种洞口的上切线和下界的示意图;Fig. 5 is a schematic diagram of an upper tangent line and a lower bound of a hole provided by an embodiment of the present application;
图6是本申请一实施例提供的另一种洞口的上切线和下界的示意图;Fig. 6 is a schematic diagram of the upper tangent and the lower boundary of another hole provided by an embodiment of the present application;
图7是本申请一实施例提供的一种车辆通行提醒装置的结构示意图;Fig. 7 is a schematic structural diagram of a vehicle passage reminder device provided by an embodiment of the present application;
图8是本申请一实施例提供的车载终端的结构示意图。FIG. 8 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise.
实施例一:Embodiment one:
目前的道路上可能存在一些涵洞(或桥洞),这些涵洞(或桥洞)中,有些具有限高标志,但有些并没有限高标志。当车辆需要通过涵洞时,若该涵洞具有限高标志,则司机可根据该限高标志选择是否继续向该涵洞方向行驶,比如在限高标志中的高度高于车辆的高度时,司机驾驶车辆继续向该涵洞方向行驶。但若该涵洞没有限高标志,则司机将难以准确判断是否能够继续向该涵洞方向行驶。比如,若涵洞没有限高标志,且司机估计该涵洞的高度高于车辆的高度,则即使司机驾驶车辆继续向该涵洞行驶,也不能顺利通过该涵洞,且还会使得车辆在强行通过涵洞的过程中造成损坏。There may be some culverts (or bridge holes) on the current road, and some of these culverts (or bridge holes) have height limit signs, but some do not have height limit signs. When a vehicle needs to pass through a culvert, if the culvert has a height limit sign, the driver can choose whether to continue driving in the direction of the culvert according to the height limit sign. For example, when the height in the height limit sign is higher than the height of the vehicle, the driver drives the vehicle Continue toward the culvert. However, if the culvert does not have a height limit sign, it will be difficult for the driver to accurately judge whether it is possible to continue driving in the direction of the culvert. For example, if there is no height limit sign in a culvert, and the driver estimates that the height of the culvert is higher than the height of the vehicle, even if the driver drives the vehicle to continue driving towards the culvert, it will not be able to pass through the culvert smoothly, and it will also make the vehicle pass through the culvert forcibly. damage in the process.
为了解决上述技术问题,本申请实施例提供了一种车辆通行提醒方法,在 该方法中,通过摄像头拍摄车辆前方的景物,并对拍摄得到的图像进行分析,若分析出图像中包含洞口,则计算该洞口在实际中的高度,若该洞口在实际中的高度低于车辆的高度,则提醒车辆暂停通行。也即,无论洞口是否具有限高标志,都能计算出洞口在实际中的高度,并在洞口在实际中的高度低于车辆的高度时,提醒车辆暂停通行,从而避免在车辆的高度过高时,强行通过涵洞所带来的损坏。In order to solve the above-mentioned technical problems, the embodiment of the present application provides a vehicle traffic reminder method. In this method, the scene in front of the vehicle is captured by the camera, and the captured image is analyzed. If the analyzed image contains a hole, then Calculate the actual height of the hole. If the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to suspend traffic. That is, regardless of whether the hole has a height limit sign, the actual height of the hole can be calculated, and when the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to suspend traffic, so as to avoid the height of the vehicle being too high When, forcibly passing through the culvert caused damage.
下面结合附图对本申请实施例提供的车辆通行提醒方法进行描述。The following describes the vehicle passage reminder method provided by the embodiment of the present application with reference to the accompanying drawings.
图1示出了本申请实施例提供的一种车辆通行提醒方法的流程图,应用于车载终端,详述如下:Fig. 1 shows a flow chart of a vehicle passage reminder method provided by an embodiment of the present application, which is applied to a vehicle-mounted terminal, and is described in detail as follows:
步骤S11,获取图像,图像为摄像头拍摄车辆前方的景物得到。Step S11, acquiring an image, which is obtained by capturing the scene in front of the vehicle by the camera.
具体地,在车辆上安装摄像头,该摄像头的镜头对着车辆前方的景物,用于拍摄车辆行进方向的景物。该摄像头与车载终端连接,用于将其拍摄得到的图像发送给该车载终端。Specifically, a camera is installed on the vehicle, and the lens of the camera faces the scene in front of the vehicle, and is used to photograph the scene in the traveling direction of the vehicle. The camera is connected with the vehicle-mounted terminal, and is used for sending the images captured by it to the vehicle-mounted terminal.
为了能够及时识别出车辆前方是否存在洞口(如桥洞等),则设置该摄像头实时或者在间隔时长(如间隔2秒)到来时拍摄车辆前方的景物。In order to be able to identify in time whether there is a hole (such as a bridge hole, etc.) in front of the vehicle, the camera is set to take pictures of the scene in front of the vehicle in real time or when the interval time (such as an interval of 2 seconds) arrives.
在一些实施例中,考虑到洞口(如涵洞)通常出现在郊外,不会出现在某些区域,比如,通常不会出现在市区。其中,车辆当前处于郊外还是市区可根据导航所得到的地理信息进行判断。也即,可在检测到车辆在指定区域(如城市的郊区)行驶时再获取图像,而在城市的市中心区域行驶时,不获取图像,从而既能够及时获取图像以便后续及时对该图像进行分析,又能够避免摄像头由于时刻获取图像所导致的资源浪费。In some embodiments, it is considered that openings (such as culverts) usually appear in the suburbs and do not appear in some areas, for example, they usually do not appear in urban areas. Wherein, whether the vehicle is currently in a suburb or an urban area can be judged according to the geographical information obtained by the navigation. That is, the image can be acquired again when it is detected that the vehicle is driving in a designated area (such as the suburbs of a city), and when the vehicle is driving in the downtown area of the city, the image is not acquired, so that the image can be acquired in time for subsequent timely processing of the image. Analysis can also avoid the waste of resources caused by the camera acquiring images all the time.
在一些实施例中,上述的间隔时长根据车辆当前速度确定。In some embodiments, the aforementioned interval duration is determined according to the current speed of the vehicle.
本实施例中,考虑到车辆的速度越快,其在相同时间内行驶的路程越长, 即遇到洞口的概率越大,因此,可设置间隔时长与车辆当前速度成反比例关系,即车辆当前速度越大,其对应的间隔时长越小。由于本实施例在间隔时间到达后才获取图像,因此,与实时获取图像相比,间隔获取图像所消耗的摄像头的资源更少。此外,由于间隔时长与车辆当前速度有关,因此,能够保证及时获取到车辆前方的景物的图像。In this embodiment, considering that the faster the speed of the vehicle, the longer the distance it travels in the same time, that is, the greater the probability of encountering the hole, therefore, the interval can be set to be inversely proportional to the current speed of the vehicle, that is, the current The greater the speed, the shorter the corresponding interval. Since the present embodiment acquires images after the interval time arrives, less resources of the camera are consumed by acquiring images at intervals than when acquiring images in real time. In addition, since the interval time is related to the current speed of the vehicle, it can ensure that the image of the scene in front of the vehicle can be acquired in time.
步骤S12,识别图像中是否包含洞口。Step S12, identifying whether the image contains a hole.
这里的洞口如桥洞或涵洞等。The openings here are bridge holes or culverts.
本实施例中,可根据图像中的像素值、图像中的物体的形状以及形状的大小等来识别该图像中是否包含洞口。例如,假设这里的洞口为涵洞,则由于涵洞的光线通常不足,因此,图像中涵洞的区域的颜色通常偏黑,即涵洞在图像中的区域所对应的像素值偏向黑色所对应的像素值。例如,与一般的小洞相比,涵洞通常较大,也即,涵洞在图像中的区域在该图像中将占据一定的比例,且占据的比例的大小与车辆当前与该涵洞的距离有关。In this embodiment, whether the image contains a hole can be identified according to the pixel value in the image, the shape and size of the object in the image, and the like. For example, assuming that the entrance here is a culvert, the color of the area of the culvert in the image is usually darker because the light of the culvert is usually insufficient, that is, the pixel value corresponding to the area of the culvert in the image is biased towards the pixel value corresponding to black. For example, compared with ordinary small holes, culverts are usually larger, that is, the area of the culvert in the image will occupy a certain proportion in the image, and the proportion is related to the current distance between the vehicle and the culvert.
在一些实施例中,也可预先训练一个目标检测模型,通过该目标检测模型来识别图像中是否包含洞口。In some embodiments, an object detection model may also be pre-trained, and the object detection model may be used to identify whether an image contains a hole.
步骤S13,若包含洞口,则确定洞口在图像中的高度。Step S13, if the hole is included, then determine the height of the hole in the image.
图2示出了拱形的桥洞在图像中的高度示意图,在图2中,拱形的上下边界之间的距离为该洞口在图像中的高度。FIG. 2 shows a schematic diagram of the height of an arched bridge opening in the image. In FIG. 2 , the distance between the upper and lower boundaries of the arch is the height of the opening in the image.
步骤S14,确定摄像头与洞口的距离。Step S14, determining the distance between the camera and the hole.
本实施例中,由于车辆与洞口的距离不同时,洞口在图像中的高度也不同,因此,每次拍摄图像后,均确定一次该摄像头与洞口的距离,以提高后续得到的洞口在实际中的高度的准确度。In this embodiment, since the distance between the vehicle and the hole is different, the height of the hole in the image is also different. Therefore, after each image is taken, the distance between the camera and the hole is determined once, so as to improve the actual height of the hole obtained subsequently. high degree of accuracy.
步骤S15,根据洞口在图像中的高度、摄像头与洞口的距离以及摄像头的 参数,计算洞口在实际中的高度。Step S15, according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera, calculate the actual height of the hole.
本实施例中,摄像头的参数包括焦距等,洞口在实际中的高度是指实际中的洞口的高度。In this embodiment, the parameters of the camera include the focal length, etc., and the actual height of the hole refers to the actual height of the hole.
步骤S16,若洞口在实际中的高度低于车辆的高度,则提醒车辆暂停通行。Step S16, if the actual height of the hole is lower than the height of the vehicle, remind the vehicle to stop passing.
其中,车载终端预先存储有车辆的高度。该车载终端将计算得到的洞口在实际中的高度与其存储的车辆的高度比较,若洞口在实际中的高度高于车辆的高度,则表明车辆可以安全通过洞口,此时,无需提醒;否则,表明该车辆不能通过该洞口,此时,发出提醒,以免车辆继续前行导致车辆发生损坏。Wherein, the vehicle-mounted terminal stores the height of the vehicle in advance. The vehicle-mounted terminal compares the calculated actual height of the hole with the height of the stored vehicle. If the actual height of the hole is higher than the height of the vehicle, it indicates that the vehicle can safely pass through the hole. At this time, no reminder is needed; otherwise, Indicates that the vehicle cannot pass through the hole. At this time, a reminder is issued to prevent the vehicle from being damaged due to the vehicle continuing to move forward.
本申请实施例中,由于可从拍摄的图像中判断车辆前方是否包含洞口,并计算出洞口在实际中的高度,也即,即使洞口没有限高标志,也能计算出洞口在实际中的高度,进而能够在洞口在实际中的高度低于车辆的高度时,发出提醒,因此,能够使得驾驶员能够及时控制车辆不再前行,从而避免由于强行通过洞口时给车辆带来的损坏。In the embodiment of the present application, since it can be judged from the captured image whether there is a hole in front of the vehicle, and the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time to no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
在一些实施例中,步骤S13包括:In some embodiments, step S13 includes:
A1、若包含洞口,则识别洞口的上方是否有限高标志。A1. If the opening is included, identify whether there is a limited height sign above the opening.
A2、若没有限高标志,则确定洞口在图像中的高度。A2. If there is no height limit sign, then determine the height of the opening in the image.
在一些实施例中,本申请实施例提供的车辆通行提醒方法还包括:In some embodiments, the vehicle passage reminder method provided in the embodiment of the present application further includes:
A3、若有限高标志,则将限高标志所指示的高度与车辆的高度比较。A3. If there is a limited height sign, compare the height indicated by the height limit sign with the height of the vehicle.
A4、若限高标志所指示的高度低于车辆的高度,则提醒车辆暂停通行。A4. If the height indicated by the height limit sign is lower than the height of the vehicle, the vehicle will be reminded to suspend traffic.
上述A1~A4中,只有在洞口没有限高标志时才会确定洞口在图像中的高度,而在洞口有限高标志时,直接识别该限高标志所包含的高度信息。由于直接识别限高标志所包含的高度信息更快捷,因此,通过上述方式能够更快确定出洞口在实际中的高度(即限高标志所指示的高度),进而在车辆的高度较高 时,更快发出车辆暂停通行的提醒。In the above A1-A4, the height of the hole in the image will be determined only when there is no height limit sign at the hole entrance, and the height information contained in the height limit sign is directly recognized when the hole has a limited height sign. Since it is faster to directly recognize the height information contained in the height limit sign, the actual height of the exit hole (that is, the height indicated by the height limit sign) can be determined faster through the above method, and then when the height of the vehicle is high, Reminders of vehicle suspensions are issued more quickly.
在一些实施例中,在步骤S15中计算洞口在实际中的高度之前,包括:In some embodiments, before calculating the actual height of the opening in step S15, it includes:
根据摄像头在车辆的安装高度、俯仰角、摄像头的焦距、指定坐标点的纵坐标,计算摄像头与洞口的距离,其中,上述指定坐标点为洞口的下界的一个坐标点。According to the installation height of the camera on the vehicle, the pitch angle, the focal length of the camera, and the ordinate of the designated coordinate point, the distance between the camera and the hole is calculated, wherein the above-mentioned designated coordinate point is a coordinate point of the lower boundary of the hole.
本实施例中,为了提高计算的准确度,则上述指定坐标点为,与摄像头在地面的投影相连时,所得到的直线与洞口的下界所对应的直线垂直所对应的坐标点。In this embodiment, in order to improve the calculation accuracy, the above-mentioned specified coordinate point is the coordinate point corresponding to the straight line obtained when it is connected with the projection of the camera on the ground and the straight line corresponding to the lower boundary of the hole.
在一些实施例中,可采用以下方式计算摄像头与洞口的距离d:In some embodiments, the distance d between the camera and the hole can be calculated in the following manner:
Figure PCTCN2021119858-appb-000001
Figure PCTCN2021119858-appb-000001
其中,h为摄像头的镜头在车辆的安装高度,f为摄像头的焦距,θ为摄像头在车辆的俯仰角,b为指定坐标点的纵坐标。Among them, h is the installation height of the camera lens on the vehicle, f is the focal length of the camera, θ is the pitch angle of the camera on the vehicle, and b is the ordinate of the specified coordinate point.
在一些实施例中,上述步骤S15包括:In some embodiments, the above step S15 includes:
根据洞口在图像中的高度、摄像头与洞口的距离、摄像头的焦距以及摄像头在车辆的俯仰角,计算洞口在实际中的高度。Calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole, the focal length of the camera, and the pitch angle of the camera on the vehicle.
本实施例中,可根据以下方式计算洞口在实际中的高度:In this embodiment, the actual height of the hole can be calculated according to the following method:
Figure PCTCN2021119858-appb-000002
Figure PCTCN2021119858-appb-000002
本实施例中,由于考虑了安装在车辆的摄像头的俯仰角,因此,提高了计算得到的洞口在实际中的高度的准确度。In this embodiment, since the pitch angle of the camera installed on the vehicle is considered, the accuracy of the calculated actual height of the hole is improved.
在一些实施例中,上述步骤S12包括:In some embodiments, the above step S12 includes:
通过预设的目标检测模型识别图像中是否包含洞口,预设的目标检测模型的网络结构与车载终端的算力有关。Identify whether the image contains holes through the preset target detection model, and the network structure of the preset target detection model is related to the computing power of the vehicle terminal.
本实施例中,预设的目标检测模型的网络结构包括:卷积的层数和卷积的通道数等。由于该预设的目标检测模型的网络结构与车载终端的算力有关,因此,能够保证该预设的目标检测模型的网络结构与车载终端的算力更匹配,进而能够更及时地计算出洞口在实际中的高度。In this embodiment, the preset network structure of the target detection model includes: the number of convolutional layers, the number of convolutional channels, and the like. Since the network structure of the preset target detection model is related to the computing power of the vehicle-mounted terminal, it can be ensured that the network structure of the preset target detection model matches the computing power of the vehicle-mounted terminal, and the hole can be calculated in a more timely manner. in actual height.
在一些实施例中,该预设的目标检测模型的网络结构的骨干(backbone)由5个阶段(stage)组成,考虑到前面的特征层的分辨率比较大,而后面的特征层的分辨率比较小,因此,设置5个stage的卷积层数逐渐增加,通道数也逐渐增加,以增强网络的表现能力。在一些实施例中,该5个阶段分别为:第1阶段(stage1)、第2阶段stage2、第3阶段(stage3)、第4阶段(stage4)以及第5阶段(stage5)。其中,stage1为3个3x3x16的卷积,stage2为3个3x3x32的卷积,stage3为4个3x3x64的卷积,stage4为5个3x3x128的卷积,stage5为5个3x3x128的卷积。考虑到处于网络结构中后面的卷积所能够提取的特征越多,因此,可根据后面的卷积输出对应的特征图,输出的预测结果中指示出检测框的大小、位置以及该检测框的可信度。In some embodiments, the backbone (backbone) of the network structure of the preset target detection model is composed of 5 stages (stage), considering that the resolution of the previous feature layer is relatively large, while the resolution of the latter feature layer is relatively large. It is relatively small, so the number of convolutional layers with 5 stages is gradually increased, and the number of channels is also gradually increased to enhance the performance of the network. In some embodiments, the five stages are respectively: the first stage (stage1), the second stage stage2, the third stage (stage3), the fourth stage (stage4) and the fifth stage (stage5). Among them, stage1 is three 3x3x16 convolutions, stage2 is three 3x3x32 convolutions, stage3 is four 3x3x64 convolutions, stage4 is five 3x3x128 convolutions, and stage5 is five 3x3x128 convolutions. Considering that the later convolutions in the network structure can extract more features, the corresponding feature maps can be output according to the subsequent convolutions, and the output prediction results indicate the size and position of the detection frame and the detection frame. credibility.
在一些实施例中,考虑到当洞口与车辆越近,摄像头拍摄得到的图像中包含的洞口的特征越多,此时,处于网络结构中前面的卷积,也能提取到较多的特征,且与处于网络结构中后面的卷积相比,所需的运算量更少,因此,可根据洞口与车辆的距离选择不同的卷积,根据选择的卷积输出对应的特征图,进而得到预测的检测框。假设预设的目标检测模型的网络结构如图3所示,当洞口与车辆的距离较近时,选择“4个Conv3*3*64”卷积作为特征金字塔(Feature Pyramid Network,FPN)的输入,得到该FPN输出的预测结果1。当洞口与车辆的距离较远时,选择第二个“5个Conv3*3*128”卷积作为FPN的输入,得到该FPN输出的预测结果3。当洞口与车辆的距离既不远也不近时,选择第一 个“5个Conv3*3*128”卷积作为FPN的输入,得到该FPN输出的预测结果2。由于根据洞口与车辆的距离选择对应的卷积,因此,使得后续在保证计算速度的基础上,得到准确的预测结果。In some embodiments, considering that when the hole is closer to the vehicle, the image captured by the camera contains more features of the hole. At this time, the convolution in the front of the network structure can also extract more features. And compared with the convolution in the back of the network structure, the amount of calculation required is less. Therefore, different convolutions can be selected according to the distance between the hole and the vehicle, and the corresponding feature map can be output according to the selected convolution, and then the prediction can be obtained. detection frame. Assuming that the network structure of the preset target detection model is shown in Figure 3, when the distance between the hole and the vehicle is relatively close, select "4 Conv3*3*64" convolutions as the input of the Feature Pyramid Network (FPN) , to get the prediction result 1 output by the FPN. When the distance between the hole and the vehicle is far, select the second "5 Conv3*3*128" convolution as the input of FPN, and get the prediction result 3 output by the FPN. When the distance between the entrance and the vehicle is neither far nor close, the first "5 Conv3*3*128" convolutions are selected as the input of the FPN, and the prediction result 2 output by the FPN is obtained. Since the corresponding convolution is selected according to the distance between the hole and the vehicle, accurate prediction results can be obtained later on the basis of ensuring the calculation speed.
在一些实施例中,上述步骤S13包括:In some embodiments, the above step S13 includes:
B1、通过预设的回归模型识别洞口的上切线和下界,预设的回归模型的通道数小于预设的目标检测模型的通道数。B1. Identify the upper tangent and the lower boundary of the hole through a preset regression model, the number of channels of the preset regression model is smaller than the number of channels of the preset target detection model.
其中,这里的上切线是指与洞口的最高点相切,且与地面垂直的线。Wherein, the upper tangent here refers to a line that is tangent to the highest point of the hole and perpendicular to the ground.
本实施例中,考虑到预设的目标检测模型检测出的洞口可能包括该洞口边缘的物体,即,直接根据预设的目标检测模型输出的结果确定洞口在图像中的高度可能不准确,因此,需要将该预设的目标检测模型输出的结果(即一个检测框)作为预设的回归模型的输入,得到该预设的回归模型输出的上切线和下界。In this embodiment, considering that the hole detected by the preset target detection model may include objects on the edge of the hole, that is, it may not be accurate to determine the height of the hole in the image directly according to the output result of the preset target detection model, so , the output result of the preset target detection model (that is, a detection frame) needs to be used as the input of the preset regression model, and the upper tangent and lower bound of the output of the preset regression model are obtained.
在本实施例中,由于该预设的回归模型的输入为检测框,而从该检测框确定出洞口的上切线和下界所需的计算量不大,因此,设置该预设的回归模型的通道数小于预设的目标检测模型的通道数,不仅能够保证从检测框中准确确定出洞口的上切线和下界,也能够提高确定出该洞口的上切线和下界的速度。In this embodiment, since the input of the preset regression model is a detection frame, and the amount of calculation required to determine the upper tangent and lower bound of the hole from the detection frame is not large, therefore, the setting of the preset regression model The number of channels is less than the number of channels of the preset target detection model, which not only ensures the accurate determination of the upper tangent and lower bound of the hole from the detection frame, but also improves the speed of determining the upper tangent and lower bound of the hole.
在一些实施例中,预设的回归模型的网络结构与上述预设的目标检测模型的网络结构的骨干类似,只是对卷积的通道数进行了进一步地裁剪。例如,预设的回归模型的网络结构如图4所示,在图4中,该预设的回归模型的网络结构包括5个阶段,最后使用2个3*3的卷积分别得到洞口的上切线和下界的输出。其中,如图5和图6示出了一种洞口的上切线和下界的示意图。In some embodiments, the network structure of the preset regression model is similar to the backbone of the network structure of the above preset target detection model, except that the number of convolutional channels is further trimmed. For example, the network structure of the preset regression model is shown in Figure 4. In Figure 4, the network structure of the preset regression model includes 5 stages, and finally two 3*3 convolutions are used to obtain the upper Output of tangents and lower bounds. Wherein, Fig. 5 and Fig. 6 show a schematic diagram of an upper tangent line and a lower bound of a hole.
B2、根据洞口的上切线和下界确定洞口在图像中的高度。B2. Determine the height of the hole in the image according to the upper tangent and the lower boundary of the hole.
本实施例中,可选取上切线中的一个坐标点M,再在下界所对应的直线 中选取横坐标与M相同的坐标点N,最后计算该坐标点M和坐标点N的纵坐标的差,得到的差即为洞口在图像中的高度。In this embodiment, a coordinate point M in the upper tangent can be selected, and then a coordinate point N whose abscissa is the same as M can be selected in the straight line corresponding to the lower bound, and finally the difference between the coordinate point M and the vertical coordinate of the coordinate point N can be calculated , the obtained difference is the height of the hole in the image.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
实施例二:Embodiment two:
对应于上文实施例一的车辆通行提醒方法,图7示出了本申请实施例提供的车辆通行提醒装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the vehicle passage reminder method in the first embodiment above, FIG. 7 shows a structural block diagram of the vehicle passage reminder device provided by the embodiment of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown.
参照图7,该车辆通行提醒装置7包括:图像获取模块71、洞口识别模块72、洞口在图像中的高度确定模块73、摄像头与洞口的距离确定模块74、洞口在实际中的高度确定模块75、提醒模块76。其中:With reference to Fig. 7, this vehicle traffic reminding device 7 comprises: image acquisition module 71, hole recognition module 72, the height determination module 73 of hole in the image, the distance determination module 74 of camera and hole, the height determination module 75 of hole in practice , Reminder module 76. in:
图像获取模块71,用于获取图像,图像为摄像头拍摄车辆前方的景物得到。The image acquisition module 71 is configured to acquire an image, which is obtained by capturing the scene in front of the vehicle by the camera.
洞口识别模块72,用于识别图像中是否包含洞口。The hole identification module 72 is configured to identify whether the image contains a hole.
洞口在图像中的高度确定模块73,用于若包含洞口,则确定洞口在图像中的高度。The height determination module 73 of the hole in the image is configured to determine the height of the hole in the image if the hole is included.
摄像头与洞口的距离确定模块74,用于确定摄像头与洞口的距离。The distance determination module 74 between the camera and the hole is used to determine the distance between the camera and the hole.
洞口在实际中的高度确定模块75,用于根据洞口在图像中的高度、摄像头与洞口的距离以及摄像头的参数,计算洞口在实际中的高度。The actual height determination module 75 of the hole is used to calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole, and the parameters of the camera.
提醒模块76,用于若洞口在实际中的高度低于车辆的高度,则提醒车辆暂停通行。The reminding module 76 is used for reminding the vehicle to suspend traffic if the actual height of the hole is lower than the height of the vehicle.
本申请实施例中,由于可从拍摄的图像中判断车辆前方是否包含洞口,并 计算出洞口在实际中的高度,也即,即使洞口没有限高标志,也能计算出洞口在实际中的高度,进而能够在洞口在实际中的高度低于车辆的高度时,发出提醒,因此,能够使得驾驶员能够及时控制车辆不再前行,从而避免由于强行通过洞口时给车辆带来的损坏。In the embodiment of the present application, since it can be judged from the captured image whether there is a hole in front of the vehicle, and the actual height of the hole can be calculated, that is, even if there is no height limit sign at the hole, the actual height of the hole can be calculated , and then when the actual height of the hole is lower than the height of the vehicle, a reminder can be issued, so that the driver can control the vehicle in time to no longer move forward, thereby avoiding damage to the vehicle when passing through the hole forcibly.
在一些实施例中,上述洞口在图像中的高度确定模块73包括:In some embodiments, the above-mentioned height determination module 73 of the hole in the image includes:
限高标志识别单元,用于若包含洞口,则识别上述洞口的上方是否有限高标志。The height limit sign recognition unit is used to identify whether there is a limit height sign above the hole if the hole is included.
无限高标志处理单元,用于若没有限高标志,则确定上述洞口在图像中的高度。The infinite height sign processing unit is configured to determine the height of the hole in the image if there is no height limit sign.
在一些实施例中,该车辆通行提醒装置7,还包括:In some embodiments, the vehicle passage reminding device 7 also includes:
高度比较单元,用于若有限高标志,则将上述限高标志所指示的高度与上述车辆的高度比较。The height comparison unit is configured to compare the height indicated by the height limit sign with the height of the vehicle if there is a height limit sign.
车辆较高处理单元,用于若上述限高标志所指示的高度低于上述车辆的高度,则提醒上述车辆暂停通行。The vehicle height processing unit is configured to remind the above-mentioned vehicle to suspend traffic if the height indicated by the above-mentioned height limit sign is lower than the height of the above-mentioned vehicle.
在一些实施例中,上述摄像头与洞口的距离确定模块74,具体用于:In some embodiments, the above-mentioned distance determination module 74 between the camera and the hole is specifically used for:
根据上述摄像头在上述车辆的安装高度、俯仰角、上述摄像头的焦距以及指定坐标点的纵坐标,计算上述摄像头与上述洞口的距离,上述指定坐标点为上述洞口的下界的一个坐标点。According to the installation height of the above-mentioned camera on the above-mentioned vehicle, the pitch angle, the focal length of the above-mentioned camera and the ordinate of the specified coordinate point, calculate the distance between the above-mentioned camera and the above-mentioned hole, and the above-mentioned specified coordinate point is a coordinate point of the lower boundary of the above-mentioned hole.
在一些实施例中,上述洞口在实际中的高度确定模块75,具体用于:In some embodiments, the actual height determination module 75 of the above hole is specifically used for:
根据上述洞口在图像中的高度、上述摄像头与上述洞口的距离、上述摄像头的焦距以及上述摄像头在上述车辆的俯仰角,计算上述洞口在实际中的高度。The actual height of the hole is calculated according to the height of the hole in the image, the distance between the camera and the hole, the focal length of the camera, and the pitch angle of the camera in the vehicle.
在一些实施例中,上述洞口识别模块72,具体用于:In some embodiments, the above-mentioned opening identification module 72 is specifically used for:
通过预设的目标检测模型识别上述图像中是否包含洞口,上述预设的目标检测模型的网络结构与上述车载终端的算力有关。Whether the image contains a hole is identified by a preset target detection model, and the network structure of the preset target detection model is related to the computing power of the vehicle-mounted terminal.
在一些实施例中,上述洞口在图像中的高度确定模块73,具体用于:In some embodiments, the above-mentioned height determination module 73 of the hole in the image is specifically used for:
通过预设的回归模型识别上述洞口的上切线和下界,上述预设的回归模型的通道数小于上述预设的目标检测模型的通道数。根据上述洞口的上切线和下界确定上述洞口在图像中的高度。The upper tangent and the lower boundary of the hole are identified through a preset regression model, and the number of channels of the preset regression model is smaller than the number of channels of the preset target detection model. The height of the hole in the image is determined according to the upper tangent and the lower boundary of the hole.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction and execution process between the above-mentioned devices/units are based on the same concept as the method embodiment of the present application, and its specific functions and technical effects can be found in the method embodiment section. I won't repeat them here.
实施例三:Embodiment three:
图8为本申请一实施例提供的车载终端的结构示意图。如图8所示,该实施例的车载终端8包括:至少一个处理器80(图8中仅示出一个处理器)、存储器81以及存储在存储器81中并可在至少一个处理器80上运行的计算机程序82,处理器80执行计算机程序82时实现上述任意各个方法实施例中的步骤。FIG. 8 is a schematic structural diagram of a vehicle-mounted terminal provided by an embodiment of the present application. As shown in Figure 8 , the vehicle-mounted terminal 8 of this embodiment includes: at least one processor 80 (only one processor is shown in Figure 8 ), memory 81 and stored in memory 81 and can run on at least one processor 80 A computer program 82, when the processor 80 executes the computer program 82, implements the steps in any of the above method embodiments.
车载终端8可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该车载终端可包括,但不仅限于,处理器80、存储器81。本领域技术人员可以理解,图8仅仅是车载终端8的举例,并不构成对车载终端8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。The vehicle-mounted terminal 8 can be computing devices such as desktop computers, notebooks, palmtop computers, and cloud servers. The vehicle terminal may include, but not limited to, a processor 80 and a memory 81 . Those skilled in the art can understand that FIG. 8 is only an example of the vehicle-mounted terminal 8, and does not constitute a limitation to the vehicle-mounted terminal 8. It may include more or less components than those shown in the figure, or combine some components, or different components. , for example, may also include input and output devices, network access devices, and so on.
所称处理器80可以是中央处理单元(Central Processing Unit,CPU),该处理器80还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated  Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 can be a central processing unit (Central Processing Unit, CPU), and the processor 80 can also be other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit) , ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
存储器81在一些实施例中可以是车载终端8的内部存储单元,例如车载终端8的硬盘或内存。存储器81在另一些实施例中也可以是车载终端8的外部存储设备,例如车载终端8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器81还可以既包括车载终端8的内部存储单元也包括外部存储设备。存储器81用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如计算机程序的程序代码等。存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The storage 81 may be an internal storage unit of the vehicle terminal 8 in some embodiments, such as a hard disk or memory of the vehicle terminal 8 . Memory 81 also can be the external storage device of vehicle-mounted terminal 8 in other embodiments, such as the plug-in type hard disk equipped on vehicle-mounted terminal 8, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 81 may also include both an internal storage unit of the vehicle-mounted terminal 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs. The memory 81 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机 程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and operable on the at least one processor, and the processor executes The computer program implements the steps in any of the above method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来 实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (10)

  1. 一种车辆通行提醒方法,其特征在于,应用于车载终端,包括:A vehicle passage reminding method is characterized in that it is applied to a vehicle-mounted terminal, including:
    获取图像,所述图像为摄像头拍摄车辆前方的景物得到;Acquiring an image, the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
    识别所述图像中是否包含洞口;identifying whether an opening is contained in the image;
    若包含洞口,则确定所述洞口在图像中的高度;If a hole is included, then determine the height of the hole in the image;
    确定所述摄像头与所述洞口的距离;determining the distance between the camera and the hole;
    根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离以及所述摄像头的参数,计算所述洞口在实际中的高度;Calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole, and the parameters of the camera;
    若所述洞口在实际中的高度低于所述车辆的高度,则提醒所述车辆暂停通行。If the actual height of the hole is lower than the height of the vehicle, the vehicle is reminded to stop passing.
  2. 根据权利要求1所述的车辆通行提醒方法,其特征在于,所述若包含洞口,则确定所述洞口在图像中的高度,包括:The vehicle traffic reminder method according to claim 1, wherein if the hole is included, determining the height of the hole in the image includes:
    若包含洞口,则识别所述洞口的上方是否有限高标志;If a hole is included, identify whether there is a limited height sign above the hole;
    若没有限高标志,则确定所述洞口在图像中的高度。If there is no height limit sign, then determine the height of the hole in the image.
  3. 根据权利要求2所述的车辆通行提醒方法,其特征在于,在所述识别所述洞口的上方是否有限高标志之后,包括:The vehicle passage reminding method according to claim 2, characterized in that, after identifying whether there is a limited-height sign above the opening, the method includes:
    若有限高标志,则将所述限高标志所指示的高度与所述车辆的高度比较;If there is a limited height sign, comparing the height indicated by the height limit sign with the height of the vehicle;
    若所述限高标志所指示的高度低于所述车辆的高度,则提醒所述车辆暂停通行。If the height indicated by the height limit sign is lower than the height of the vehicle, the vehicle is reminded to suspend traffic.
  4. 根据权利要求1所述的车辆通行提醒方法,其特征在于,所述确定所述摄像头与所述洞口的距离,包括:The vehicle passage reminder method according to claim 1, wherein the determining the distance between the camera and the hole comprises:
    根据所述摄像头在所述车辆的安装高度、俯仰角、所述摄像头的焦距以及 指定坐标点的纵坐标,计算所述摄像头与所述洞口的距离,所述指定坐标点为所述洞口的下界的一个坐标点。Calculate the distance between the camera and the hole according to the installation height of the camera on the vehicle, the pitch angle, the focal length of the camera, and the ordinate of a designated coordinate point, where the designated coordinate point is the lower limit of the hole a coordinate point of .
  5. 根据权利要求4所述的车辆通行提醒方法,其特征在于,所述根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离以及所述摄像头的参数,计算所述洞口在实际中的高度,包括:The vehicle passage reminder method according to claim 4, characterized in that, according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera, the actual distance between the hole and the hole is calculated. heights, including:
    根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离、所述摄像头的焦距以及所述摄像头在所述车辆的俯仰角,计算所述洞口在实际中的高度。The actual height of the hole is calculated according to the height of the hole in the image, the distance between the camera and the hole, the focal length of the camera, and the pitch angle of the camera in the vehicle.
  6. 根据权利要求1至5任一项所述的车辆通行提醒方法,其特征在于,所述识别所述图像中是否包含洞口,包括:The vehicle passage reminder method according to any one of claims 1 to 5, wherein the identifying whether a hole is included in the image comprises:
    通过预设的目标检测模型识别所述图像中是否包含洞口,所述预设的目标检测模型的网络结构与所述车载终端的算力有关。Whether the image contains a hole is identified by a preset target detection model, and the network structure of the preset target detection model is related to the computing power of the vehicle terminal.
  7. 根据权利要求1至5任一项所述的车辆通行提醒方法,其特征在于,所述若包含洞口,则确定所述洞口在图像中的高度,包括:The vehicle passage reminder method according to any one of claims 1 to 5, wherein if the hole is included, determining the height of the hole in the image includes:
    通过预设的回归模型识别所述洞口的上切线和下界,所述预设的回归模型的通道数小于所述预设的目标检测模型的通道数;identifying the upper tangent and the lower bound of the hole through a preset regression model, the number of channels of the preset regression model being smaller than the number of channels of the preset target detection model;
    根据所述洞口的上切线和下界确定所述洞口在图像中的高度。The height of the hole in the image is determined according to the upper tangent and the lower boundary of the hole.
  8. 一种车辆通行提醒装置,其特征在于,应用于车载终端,包括:A vehicle passage reminding device is characterized in that it is applied to a vehicle-mounted terminal, including:
    图像获取模块,用于获取图像,所述图像为摄像头拍摄车辆前方的景物得到;An image acquisition module, configured to acquire an image, the image is obtained by taking pictures of the scene in front of the vehicle by the camera;
    洞口识别模块,用于识别所述图像中是否包含洞口;A hole identification module, configured to identify whether a hole is included in the image;
    洞口在图像中的高度确定模块,用于若包含洞口,则确定所述洞口在图像中的高度;The height determination module of the hole in the image is used to determine the height of the hole in the image if the hole is included;
    摄像头与洞口的距离确定模块,用于确定所述摄像头与所述洞口的距离;A distance determination module between the camera and the hole, configured to determine the distance between the camera and the hole;
    洞口在实际中的高度确定模块,用于根据所述洞口在图像中的高度、所述摄像头与所述洞口的距离以及所述摄像头的参数,计算所述洞口在实际中的高度;The actual height determination module of the hole is used to calculate the actual height of the hole according to the height of the hole in the image, the distance between the camera and the hole and the parameters of the camera;
    提醒模块,用于若所述洞口在实际中的高度低于所述车辆的高度,则提醒所述车辆暂停通行。A reminder module, configured to remind the vehicle to stop passing if the actual height of the hole is lower than the height of the vehicle.
  9. 一种车载终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的方法。A vehicle-mounted terminal, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claims 1 to 1 is implemented. 7. The method described in any one.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by a processor.
PCT/CN2021/119858 2021-09-23 2021-09-23 Vehicle passage warning method and apparatus, and vehicle-mounted terminal WO2023044656A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/119858 WO2023044656A1 (en) 2021-09-23 2021-09-23 Vehicle passage warning method and apparatus, and vehicle-mounted terminal
CN202180002646.1A CN113994391B (en) 2021-09-23 2021-09-23 Vehicle passing reminding method and device and vehicle-mounted terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119858 WO2023044656A1 (en) 2021-09-23 2021-09-23 Vehicle passage warning method and apparatus, and vehicle-mounted terminal

Publications (1)

Publication Number Publication Date
WO2023044656A1 true WO2023044656A1 (en) 2023-03-30

Family

ID=79734957

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119858 WO2023044656A1 (en) 2021-09-23 2021-09-23 Vehicle passage warning method and apparatus, and vehicle-mounted terminal

Country Status (2)

Country Link
CN (1) CN113994391B (en)
WO (1) WO2023044656A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114429620A (en) * 2022-04-07 2022-05-03 北京中科慧眼科技有限公司 Training method and system for lower edge position detection model of height limiting device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM474042U (en) * 2013-09-27 2014-03-11 bing-zhang Wu Height-limiting pre-warning apparatus
CN107170245A (en) * 2016-03-07 2017-09-15 吉林东光友成机工有限公司 Load-carrying motor vehicle superelevation siren
CN108615369A (en) * 2018-06-19 2018-10-02 国家电网公司 A kind of road limit for height method for early warning, device and terminal device
CN109316127A (en) * 2018-06-29 2019-02-12 炬大科技有限公司 A kind of sweeping robot hole detection device and zone of ignorance heuristic approach
KR101962701B1 (en) * 2017-09-25 2019-03-27 주식회사 만도 Method and Apparatus of vehicle alarm that alarm area is changed by visible distance
EP3774473A1 (en) * 2018-03-31 2021-02-17 Intel Corporation Vehicle and method for avoiding a collision of a vehicle with one or more obstacles
CN113160527A (en) * 2021-01-20 2021-07-23 南京林业大学 Road height limiting early warning system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5316805B2 (en) * 2009-03-16 2013-10-16 株式会社リコー In-vehicle camera device image adjustment device and in-vehicle camera device
CN107483818A (en) * 2017-08-15 2017-12-15 上海蔚来汽车有限公司 Automobile and vehicle-mounted image-taking system, image processing system, correlation technique
CN107862287A (en) * 2017-11-08 2018-03-30 吉林大学 A kind of front zonule object identification and vehicle early warning method
CN109961643A (en) * 2017-12-25 2019-07-02 博世汽车部件(苏州)有限公司 Based reminding method, alarm set and mobile unit
CN111564043A (en) * 2019-02-14 2020-08-21 上海博泰悦臻网络技术服务有限公司 Vehicle passing prompting method, vehicle passing prompting system and vehicle-mounted terminal
CN109902629A (en) * 2019-03-01 2019-06-18 成都康乔电子有限责任公司 A kind of real-time vehicle target detection model under vehicles in complex traffic scene
CN110032949B (en) * 2019-03-22 2021-09-28 北京理工大学 Target detection and positioning method based on lightweight convolutional neural network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM474042U (en) * 2013-09-27 2014-03-11 bing-zhang Wu Height-limiting pre-warning apparatus
CN107170245A (en) * 2016-03-07 2017-09-15 吉林东光友成机工有限公司 Load-carrying motor vehicle superelevation siren
KR101962701B1 (en) * 2017-09-25 2019-03-27 주식회사 만도 Method and Apparatus of vehicle alarm that alarm area is changed by visible distance
EP3774473A1 (en) * 2018-03-31 2021-02-17 Intel Corporation Vehicle and method for avoiding a collision of a vehicle with one or more obstacles
CN108615369A (en) * 2018-06-19 2018-10-02 国家电网公司 A kind of road limit for height method for early warning, device and terminal device
CN109316127A (en) * 2018-06-29 2019-02-12 炬大科技有限公司 A kind of sweeping robot hole detection device and zone of ignorance heuristic approach
CN113160527A (en) * 2021-01-20 2021-07-23 南京林业大学 Road height limiting early warning system and method

Also Published As

Publication number Publication date
CN113994391A (en) 2022-01-28
CN113994391B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
US11380104B2 (en) Method and device for detecting illegal parking, and electronic device
WO2018068312A1 (en) Device and method for detecting abnormal traffic event
CN111967396A (en) Processing method, device and equipment for obstacle detection and storage medium
CN108932851A (en) A kind of method and device recording the behavior of motor vehicle illegal parking
WO2023044656A1 (en) Vehicle passage warning method and apparatus, and vehicle-mounted terminal
CN114727024A (en) Automatic exposure parameter adjusting method and device, storage medium and shooting equipment
CN114550142A (en) Parking space detection method based on fusion of 4D millimeter wave radar and image recognition
CN112699711B (en) Lane line detection method and device, storage medium and electronic equipment
CN115761668A (en) Camera stain recognition method and device, vehicle and storage medium
JP2019146012A (en) Imaging apparatus
KR20210064492A (en) License Plate Recognition Method and Apparatus for roads
JPH10171966A (en) On-vehicle image processor
CN116721396A (en) Lane line detection method, device and storage medium
CN115761699A (en) Traffic signal lamp classification method and device and electronic equipment
CN111639640B (en) License plate recognition method, device and equipment based on artificial intelligence
CN111753663B (en) Target detection method and device
CN111899525A (en) Distance measuring method, distance measuring device, electronic device, and storage medium
KR20210035360A (en) License Plate Recognition Method and Apparatus for roads
TWI838018B (en) Method for controlling vehicles and related devices
CN113269004B (en) Traffic counting device and method and electronic equipment
CN115984828B (en) High beam opening detection method, device and equipment based on geometric feature descriptors
TWI848512B (en) Traffic sign identification methods, systems and vehicles
US20240203107A1 (en) Obstacle identification method, vehicle-mounted device and storage medium
TWI855497B (en) Traffic sign identification methods, systems and vehicles
TWI846177B (en) Road image segmentation method, computer device and storage medium

Legal Events

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

Ref document number: 21957793

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21957793

Country of ref document: EP

Kind code of ref document: A1