Road traffic facility patrol acquisition method and system based on vehicle-mounted equipment, and medium
By integrating the acquisition device and data processing module on the vehicle-mounted equipment, efficient patrol and data upload of road traffic facilities is achieved, and the problems of low efficiency of traditional manual patrol and poor stability of data upload are solved, and the efficiency of refined management and data transmission is achieved.
Patent Information
- Application Number
- CN202510413370.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-03
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-04-03
AI Technical Summary
Traditional manual patrols are low in efficiency and strong subjectivity, which is difficult to meet the requirements of refined management and maintenance of national and provincial road traffic safety facilities, and big data uploads have high requirements for network stability.
The road traffic facilities patrol and acquisition method based on vehicle-mounted equipment is adopted, and road images and road information are obtained through the acquisition device on the vehicle-mounted equipment, compressed into video data packets and transmitted in a classified and hierarchical manner, and the data upload sequence is optimized using real-time and offline data transmission queues.
It improves the efficiency and accuracy of road traffic facilities patrols, reduces the risk of data loss, reduces the requirements for network stability, and achieves efficient and reliable upload of data.
Smart Images

Figure CN119922286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of traffic facility safety, and in particular to a road traffic facility inspection and collection method, system and medium based on vehicle-mounted equipment. Background Art
[0002] Traffic safety facilities on national and provincial roads play a vital role in ensuring road traffic safety, improving road operation efficiency, and promoting road network interconnection. The main traffic safety facilities on national and provincial roads include traffic signs, traffic markings, and guardrails, which play an important role in preventing traffic accidents.
[0003] Traditional methods involve regular manual inspections and maintenance, where personnel visually inspect traffic safety facilities for problems. When problems are found, they use mobile phones to take images and manually record information such as the current defect location and category. Manual inspections are inefficient and subjective, and are difficult to meet the current requirements for refined management and maintenance of national and provincial road traffic safety facilities. In addition, some national and provincial roads are located in mountainous areas and other areas, where signals are weak. During inspections, data is generally collected continuously over tens of thousands of kilometers, with images being the main collected data. The resulting huge amount of data is waiting to be uploaded, and the uploading of very large data places high demands on network stability. Summary of the invention
[0004] The purpose of the present invention is to provide a road traffic facility inspection and collection method, system and medium based on vehicle-mounted equipment, which classifies and grades the data to be uploaded, and promptly transmits the data to be uploaded back to the cloud server for storage, thereby avoiding data loss.
[0005] To achieve the above object, the present invention proposes the following scheme: On the one hand, the present invention provides a road traffic facility inspection and collection method based on a vehicle-mounted device, which specifically includes the following steps: S1. Obtain road images and their corresponding road information acquired at a fixed frequency by each acquisition device installed on the vehicle-mounted device, compress a preset number of road images into video data packets, and store the road information corresponding to the video data packets into a road information table; S2, obtaining the current vehicle speed of the vehicle-mounted device and the current network speed of data uploading, calculating the preset time of data uploading according to the vehicle speed and the fixed frequency, and calculating the amount of data that can be uploaded D1 according to the preset time and the network speed; S3, when the data volume D1 is greater than or equal to a preset threshold, the video data packet and the corresponding road information table are temporarily stored in the real-time data transmission queue, and when the data volume D1 is less than the preset threshold, the video data packet and the corresponding road information table are temporarily stored in the offline cache transmission queue; S4. Upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order.
[0006] In some specific implementation schemes, the specific process of step S1 is: S11, storing the road images associated with the road information in the image data set in sequence; S12, counting whether the road images in the image data set have reached a preset number, and if so, compressing the preset number of road images into video clips; S13, encrypting the video clip, creating an encryption key based on the road information corresponding to the first frame road image of the video clip, and obtaining an encrypted video data packet.
[0007] In some specific embodiments, the acquisition device includes an image acquisition device, a positioning device for acquiring position information, and a measurement device for acquiring road information; The image acquisition device includes a road marking acquisition camera for acquiring road marking images, a road sign acquisition camera for acquiring road sign images, and a guardrail acquisition camera for acquiring road guardrail images. For each road image, the road image is bound and associated with the corresponding position information and road information, so that each road image carries the position information and road information at the time of road image acquisition; The image dataset includes a road marking image dataset for storing road marking images, a road sign image dataset for storing road sign images, and a guardrail image dataset for storing road guardrail images; The video data packets include marking video data packets, sign video data packets and guardrail video data packets.
[0008] In some specific implementation schemes, the marking video data packets, the sign video data packets and the guardrail video data packets obtained at the same acquisition time are packaged into the same video transmission data packet, and the road information tables corresponding to the video data packets are packaged into the same file data packet; The total data volume of the same video transmission data packet and the same file data packet is used as a preset threshold; When the data volume D1 is greater than or equal to the preset threshold, the same video transmission data packet is temporarily stored in the real-time video data transmission queue A1, and the same file data packet is temporarily stored in the real-time file data transmission queue A2. When the data volume D1 is less than a preset threshold, the same video transmission data packet is temporarily stored in the offline video data transmission queue B1, and the same file data packet is temporarily stored in the offline file data transmission queue B2.
[0009] In some specific implementation schemes, the priority upload order is set as follows: Real-time file data transmission queue A2>real-time video data transmission queue A1>offline file data transmission queue B2>offline video data transmission queue B1.
[0010] In some specific embodiments, before executing step S3, the method further includes the following steps: Check whether the data in the real-time file data transmission queue A2 is empty. If it is not empty, temporarily store the same video transmission data packet in the offline video data transmission queue B1 and temporarily store the same file data packet in the offline file data transmission queue B2; If the data in the file data transmission queue A2 is empty, step S3 is executed.
[0011] In some specific implementation schemes, the preset upload time t is calculated as follows: t=s*n / v, where s represents the interval length of the fixed frequency, n represents the preset number, and v represents the vehicle speed.
[0012] In some specific implementation schemes, each acquisition camera adjusts the camera parameters during acquisition by an automatic exposure control adjustment algorithm when acquiring road images. The specific process of the automatic exposure control adjustment algorithm is as follows: S01, converting the road image captured by the current acquisition camera from the RGB color space to the HSV color space, and calculating the mean value Vnow of the brightness of the ROI area of the current image; S02, after converting the standard image corresponding to the current image from the RGB color space to the HSV color space, calculate the mean value Vstd of the brightness of the ROI area in the standard image; S03, calculating the brightness difference Vdiff between the current road image and the standard image; S04. Calculate the adjustment range of the exposure parameter of the camera when shooting the next frame of road image according to the relationship between the brightness difference and the exposure parameter, and obtain the exposure parameter of the camera when shooting the next frame of road image.
[0013] In the second aspect, the present application proposes a road traffic facility inspection and collection system based on a vehicle-mounted device, including a vehicle-mounted device, a plurality of collection devices installed on the vehicle-mounted device, and a data processing device that processes the data collected by each collection device and uploads it to a cloud server, wherein the data processing device includes: A data acquisition module, used for each acquisition device to obtain road images and corresponding road information at a fixed frequency, compress a preset number of road images into video data packets and store the road information corresponding to the video data packets into a road information table; A network detection module is used to obtain the current vehicle speed of the vehicle-mounted device and the current network speed of data upload, calculate the preset time of data upload according to the vehicle speed and the fixed frequency, and calculate the amount of data that can be uploaded D1 according to the preset time and the network speed; A data cache module, used to temporarily store the video data packet and the corresponding road information table in the real-time data transmission queue when the data volume D1 is greater than or equal to the preset threshold, and temporarily store the video data packet and the corresponding road information table in the offline cache transmission queue when the data volume D1 is less than the preset threshold; The data upload module is used to upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order.
[0014] The data receiving module is used to parse the returned data, which mainly involves parsing the video data and extracting it into pictures, matching the picture information with the road information and displaying the data.
[0015] In a third aspect, the present application provides a computer-readable storage medium, comprising: one or more processors; A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement a road traffic facility inspection and collection method based on a vehicle-mounted device as described in the first aspect.
[0016] The present invention has the beneficial effects: Using professional inspection vehicles as carriers, we collect the signs, markings, guardrails, and traffic safety facilities of national and provincial road environments. In order to reduce the requirements for network stability, we compress the collected videos into a small video for cache according to the preset number. Use buffers for streaming: Use large buffers to reduce the number of read and write operations, thereby improving efficiency. Streaming reading and writing can avoid loading the entire file into memory at once. This can effectively process large files and reduce memory consumption. In order to solve network signal problems in different regions, the data to be transmitted is also classified and transmitted according to the transmission priority of each type of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flow chart of a road traffic facility inspection and collection method based on a vehicle-mounted device provided in an embodiment of the present invention; Figure 2 A schematic diagram of a data transmission process provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] The relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0020] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0021] Additionally, descriptions of well-known structures, functions, and configurations may be omitted for clarity and conciseness.One of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.
[0022] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0023] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0024] Example 1 like Figure 1 As shown, this embodiment provides a road traffic facility inspection and collection method based on a vehicle-mounted device, which specifically includes the following steps: S1. Obtain road images and their corresponding road information acquired at a fixed frequency by each acquisition device installed on the vehicle-mounted device, compress a preset number of road images into video data packets, and store the road information corresponding to the video data packets into a road information table; The specific process of step S1 is: S11, storing the road images associated with the road information in the image data set in sequence; S12, counting whether the road images in the image data set have reached a preset number, and if so, compressing the preset number of road images into video clips; S13, encrypting the video clip, creating an encryption key based on the road information corresponding to the first frame road image of the video clip, and obtaining an encrypted video data packet.
[0025] Specifically, the acquisition device includes an image acquisition device, a positioning device for acquiring position information, and a measuring device for acquiring road information; The image acquisition device includes a road marking acquisition camera for acquiring road marking images, a road sign acquisition camera for acquiring road sign images, and a guardrail acquisition camera for acquiring road guardrail images. For each road image, the road image is bound and associated with the corresponding position information and road information, so that each road image carries the position information and road information at the time of road image acquisition; The image dataset includes a road marking image dataset for storing road marking images, a road sign image dataset for storing road sign images, and a guardrail image dataset for storing road guardrail images; The video data packets include marking video data packets, sign video data packets and guardrail video data packets.
[0026] S2, obtaining the current vehicle speed of the vehicle-mounted device and the current network speed of data uploading, calculating the preset time of data uploading according to the vehicle speed and the fixed frequency, and calculating the amount of data that can be uploaded D1 according to the preset time and the network speed; Specifically, the preset upload time t is calculated as follows: t=s*n / v, where s represents the interval length of the fixed frequency, n represents the preset number, and v represents the vehicle speed.
[0027] Since the table information contained in the file data packet contains information such as positioning that needs to be parsed and displayed in real time, its priority is higher. During transmission, it is necessary to first determine whether there is remaining data in the real-time video data transmission queue A1. If there is remaining data, the data in the real-time queue must be uploaded first before uploading data in other data queues.
[0028] S21, query whether the data in the real-time file data transmission queue A2 is empty, if not empty, temporarily store the same video transmission data packet in the offline video data transmission queue B1, and temporarily store the same file data packet in the offline file data transmission queue B2; If the data in the file data transmission queue A2 is empty, execute step S3; S3, when the data volume D1 is greater than or equal to a preset threshold, the video data packet and the corresponding road information table are temporarily stored in the real-time data transmission queue, and when the data volume D1 is less than the preset threshold, the video data packet and the corresponding road information table are temporarily stored in the offline cache transmission queue; Since the three acquisition cameras collect data at the same time, the video data packets collected by the three cameras need to be uploaded together during transmission. Therefore, the marking video data packets, sign video data packets and guardrail video data packets obtained at the same acquisition time are packaged into the same video transmission data packet, and the road information tables corresponding to each video data packet are packaged into the same file data packet; In this way, the preset threshold value may be set as follows: the total data volume of the same video transmission data packet and the same file data packet is used as the preset threshold value; When the data volume D1 is greater than or equal to the preset threshold, the same video transmission data packet is temporarily stored in the real-time video data transmission queue A1, and the same file data packet is temporarily stored in the real-time file data transmission queue A2. When the data volume D1 is less than a preset threshold, the same video transmission data packet is temporarily stored in the offline video data transmission queue B1, and the same file data packet is temporarily stored in the offline file data transmission queue B2.
[0029] S4, upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order. Specifically, the set priority upload order is: Real-time file data transmission queue A2>real-time video data transmission queue A1>offline file data transmission queue B2>offline video data transmission queue B1.
[0030] It can be understood that the overall concept of the present application is: assuming that when the vehicle speed v is constant, three industrial acquisition cameras are used to collect images of the safety facilities of the signs, markings, and guardrails of national and provincial roads, including the front and roadside signs and large facilities along the road, the lane lines of the lane where the vehicle is traveling, and the roadside guardrails. The measuring device is used to collect road information of the highway engineering technical indicators road width, tunnel height, and slope information at the same time. During driving, other road information in the collection process can also be recorded, and finally video data and tabular data with high-precision location information, timestamp information, and road information are generated. The collected video data and tabular data are then uploaded to the cloud for corresponding algorithm processing, and finally the data processed by the algorithm are statistically analyzed to complete the technical condition assessment.
[0031] Specifically, the information that needs to be collected in this embodiment includes: 1. Image information: The image acquisition device includes a sign acquisition camera, a line acquisition camera, and a guardrail acquisition camera to respectively acquire the safety facilities of the signs, line markings, and guardrails of national and provincial roads. In order to facilitate the technical condition assessment, the acquisition method is external trigger acquisition, and three acquisition cameras synchronously acquire road images at a fixed frequency, for example, every 5 meters; Due to the complex road conditions of national and provincial roads, the rapid changes in the external environment such as shade from trees and direct sunlight can easily cause the collected image information to be overexposed or too dark. At the same time, the reflective characteristics of signs, markings, and guardrails vary greatly. If the same acquisition camera is used to collect these three types of facilities when the external lighting environment is unstable, it is difficult to obtain good images of signs, markings, and guardrails at the same time. In this embodiment, three acquisition cameras are used to collect signs, markings, and guardrails respectively. At the same time, during the collection process, the exposure and gain parameters of each are adjusted through the automatic exposure control adjustment algorithm, so that the collected image is neither overexposed nor too dark, and the signs, markings, and guardrails all obtain good image effects. The automatic exposure adjustment algorithm process is as follows: S01, converting the road image currently captured by the acquisition camera from the RGB color space to the HSV color space, and calculating the mean value Vnow of the brightness of the ROI area of the current image; S02, calculate the standard image corresponding to the current image (take the image with good effect as the standard image) and convert it from the RGB color space to the HSV color space, and calculate the mean value Vstd of the brightness of the ROI area in the standard image; S03, calculating the brightness difference Vdiff between the current road image and the standard image; S04. According to the relationship between the brightness difference and the exposure parameter, the adjustment amplitude ExpDiff of the exposure parameter Expnow of the acquisition camera when shooting the next frame of road image is calculated, wherein Expdiff = K*Vdiff+D, K and D are coefficients and constants respectively, and the exposure parameter Expnext = Expnow+ExpDiff of the acquisition camera when shooting the next frame of road image is obtained.
[0032] Since the standard image features of signs, markings, and guardrails are different, the Vstd value of the standard image corresponding to each scene is different. Therefore, each acquisition camera will perform separate calculations and adjust the camera exposure.
[0033] 2. Location information: The positioning device includes GNSS satellite positioning device, inertial navigation and longitudinal distance positioning device, which can obtain the current latitude and longitude, stake number and other geographical location information in real time, with an accuracy of sub-meter level. There is a certain difference between the kilometer stake of the actual road conditions and the actual mileage, and the stake number can be corrected at the kilometer stake of the road sign as needed. It is convenient for the location of the signs, markings and guardrails to be detected later; 3. Road information: The measuring device includes a height sensor and a posture sensor. The height sensor can measure the height of the tunnel passed through to obtain the tunnel height information. The posture sensor can measure the posture of the vehicle body, and then reflect the condition of the road surface and obtain the road surface slope information. The road surface slope is calculated using the XYZ angle of the posture sensor to provide slope-related data for the highway engineering technical index census. When the tunnel mark is turned on, the measured value Hvar of the height sensor is obtained, and then the installation height Hcar is added to obtain the center height of the tunnel Hsum = Hvar+Hcar. The road surface slope information measurement obtains the lateral inclination angle, longitudinal inclination angle and heading angle of the posture sensor installed on the vehicle chassis to calculate the road surface cross slope, road surface longitudinal slope and curvature respectively.
[0034] In addition, the road information also includes the following information that needs to be recorded: 3.1. Project information: including line number, inspection area, test direction, starting pile number, operator, storage path and other basic information, used to record relevant information of the inspection area; 3.2. Label information: including road conditions, vehicle conditions, guardrail markings, measurement markings and other information labels. Information labels are mainly divided into the following categories: (1) Status marking (abnormal conditions): mud, traffic jam, overtaking, and closed construction. Abnormal road conditions during driving data collection can be marked; (2) Guardrail marking (abnormal conditions): Mark and facilities along the road. Obvious guardrail abnormalities and facilities along the road can be marked during driving, which facilitates the rapid positioning of data in the later stage and reduces the amount of data calculation for classification and statistics; (3) Measurement marks: road width, tunnel clearance height. For road sections with obvious changes in road width, turn on the road width mark to calculate the road width for images with road width marks. For tunnel scenes, turn on the tunnel clearance height mark to measure the tunnel clearance height.
[0035] (4) Status marking (special sections): Sharp bends, steep slopes, dangerous roadsides, tunnels, and roads passing through towns can be marked to facilitate the rapid positioning of category data in the later stage.
[0036] After obtaining the above image information and road information, the location information and road information corresponding to the acquisition time are associated with each road image according to the acquisition time of the road image, so that the image information and its corresponding road information can be transmitted separately when uploading. Due to the large amount of collected data, collecting tens of thousands of kilometers continuously will generate a huge amount of data, of which pictures are the main data. Under the condition of ensuring data resolution, continuous pictures are compressed into video storage based on FFmpeg technology. The upload of super large data has high requirements for network stability. In order to reduce the requirements for network stability, the collected videos are compressed into a small video according to the preset number (for example, every 200 pictures) and stored as a video clip in the local cache.
[0037] At the same time, in order to provide high security protection and prevent unauthorized access to video data, the AES-256 encryption algorithm is used to encrypt video data. A password is created based on the road information and location information in the table data corresponding to the first frame of each video clip, and the password is used to create an encryption key. Use buffers for streaming: Use large buffers to reduce the number of read and write operations, thereby improving efficiency. By streaming reading and writing, you can avoid loading the entire file into memory at once. This can effectively process large files and reduce memory consumption.
[0038] When uploading data, the network signals in different regions are different. For remote areas, the network signal is poor and data cannot be transmitted in time. Therefore, in order to upload all the data, it is divided into two functions: real-time sending and offline sending, corresponding to the two conditions of good network conditions and poor network conditions. When the router network is good, the encrypted video and table files are sent to the cloud server. After confirming that the cloud server has successfully received the files, the local files are deleted. For remote areas, when the router network is poor, you can wait until the network is better and use the offline sending function to query all the unsent data collected by the current device. In order to further solve the network signal problems in different regions, different priority transmission orders are set for the data, specifically: Due to network transmission problems, the unsent data that needs to be transmitted includes real-time new data and offline cache data. Each new data includes the same video transmission data packet and the same file data packet; the same file data packet contains positioning and other information that needs to be parsed and displayed in real time, which has a higher priority. To ensure real-time performance, the order of sending data needs to be determined according to the data priority. The size of the data to be sent is estimated based on the current network speed.
[0039] like Figure 2 As shown, the specific process is as follows: 1. Get the current vehicle speed V and estimate the total amount of data added at time t: D2 = the amount of data in the same video transmission data packet D3 + the amount of data in the same file data packet D4. Since data is collected every 5 meters, every 200 images form a same video transmission data packet and a same file data packet. Therefore, every 1 kilometer will generate a file data packet and a video transmission data packet consisting of 3 encrypted video data.
[0040] According to the current vehicle speed v, it can be estimated that after t = 1 / v, additional data will be generated. If the maximum vehicle speed is 120km / h, t=1km / 120km / h=30s, that is, no additional data will be generated within 30s. Set t=30s and estimate once every 30s.
[0041] 2. Get the current upload network rate and calculate the amount of data D1 that can be sent in time t.
[0042] 3. Prioritize the newly added data. When the newly added data is obtained, determine whether there is any data remaining in the real-time file data transmission queue A2; if there is any data remaining in the real-time file data transmission queue A2, add the same video transmission data packet to the offline video data transmission queue B1, and temporarily store the same file data packet in the offline file data transmission queue B2.
[0043] If there is no data remaining in the real-time file data transmission queue A2, continue to determine the size of the data volumes D1 and D2; When D1≥D2, the same video transmission data packet is temporarily stored in the real-time video data transmission queue A1, and the same file data packet is temporarily stored in the real-time file data transmission queue A2; otherwise, the same video transmission data packet is temporarily stored in the offline video data transmission queue B1, and the same file data packet is temporarily stored in the offline file data transmission queue B2; 4. When uploading data, upload in the order of real-time file data transmission queue A2 > real-time video data transmission queue A1 > offline file data transmission queue B2 > offline video data transmission queue B1.
[0044] Example 2 This embodiment proposes a road traffic facility inspection and collection system based on a vehicle-mounted device, which is used to implement the inspection and collection method of embodiment 1, including a vehicle-mounted device, a plurality of collection devices installed on the vehicle-mounted device, and a data processing device for processing the data collected by each collection device and uploading it to a cloud server, wherein the data processing device includes: A data acquisition module, used for each acquisition device to obtain road images and corresponding road information at a fixed frequency, compress a preset number of road images into video data packets and store the road information corresponding to the video data packets into a road information table; A network detection module is used to obtain the current vehicle speed of the vehicle-mounted device and the current network speed of data upload, calculate the preset time of data upload according to the vehicle speed and the fixed frequency, and calculate the amount of data that can be uploaded D1 according to the preset time and the network speed; A data cache module, used to temporarily store the video data packet and the corresponding road information table in the real-time data transmission queue when the data volume D1 is greater than or equal to the preset threshold, and temporarily store the video data packet and the corresponding road information table in the offline cache transmission queue when the data volume D1 is less than the preset threshold; The data upload module is used to upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order.
[0045] The data receiving module is used to parse the returned data, which mainly involves decrypting the video data and extracting it into pictures, and then matching the picture information with the road information and displaying the data. According to the upload order of the data upload module, the cloud server will receive the road information and the corresponding video information. When receiving the road information table, the latitude and longitude, pile number and other location information of the table will be parsed first, and it will be drawn on the GIS map of the platform, so that the current operating status of the detection equipment can be intuitively seen. After a set of road information and corresponding video information is fully received, the road information and location information of the first frame image in the table data are used to generate a password, and the password is used to generate a decryption key to decrypt the video. After the video is decrypted, the video of the sign acquisition camera, the marking acquisition camera, and the guardrail acquisition camera is extracted as a picture and then bound to the road-related information in the table to obtain a set of basic data containing image information from different perspectives and the corresponding road information, and it is stored in the database for detailed information display and review.
[0046] Example 3 This embodiment provides a computer-readable storage medium, including: one or more processors; A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement a road traffic facility inspection and collection method based on a vehicle-mounted device as described in the first aspect.
[0047] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.
Claims
1. A road traffic facility inspection and collection method based on vehicle-mounted equipment, characterized in that: The following steps are involved: S1. Obtain road images and their corresponding road information acquired by each acquisition device installed on the vehicle-mounted device at a fixed frequency, compress a preset number of road images into video data packets, and store the road information corresponding to the video data packets into a road information table; S2, obtaining the current vehicle speed of the vehicle-mounted device and the current network speed of data uploading, calculating the preset time of data uploading according to the vehicle speed and the fixed frequency, and calculating the amount of data that can be uploaded D1 according to the preset time and the network speed; S3, when the data volume D1 is greater than or equal to a preset threshold, the video data packet and the corresponding road information table are temporarily stored in the real-time data transmission queue, and when the data volume D1 is less than the preset threshold, the video data packet and the corresponding road information table are temporarily stored in the offline cache transmission queue; S4. Upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order.
2. According to claim 1, a road traffic facility inspection and collection method based on vehicle-mounted equipment is characterized in that: The specific process of step S1 is: S11, storing the road images associated with the road information in the image data set in sequence; S12, counting whether the road images in the image data set have reached a preset number, and if so, compressing the preset number of road images into video clips; S13, encrypting the video clip, creating an encryption key based on the road information corresponding to the first frame road image of the video clip, and obtaining an encrypted video data packet.
3. A road traffic facility inspection and collection method based on vehicle-mounted equipment according to claim 2, characterized in that: The acquisition device includes an image acquisition device, a positioning device for acquiring position information, and a measuring device for acquiring road information; The image acquisition device includes a road marking acquisition camera for acquiring road marking images, a road sign acquisition camera for acquiring road sign images, and a guardrail acquisition camera for acquiring road guardrail images. For each road image, the road image is bound and associated with the corresponding position information and road information, so that each road image carries the position information and road information at the time of road image acquisition; The image dataset includes a road marking image dataset for storing road marking images, a road sign image dataset for storing road sign images, and a guardrail image dataset for storing road guardrail images; The video data packets include marking video data packets, sign video data packets and guardrail video data packets.
4. A road traffic facility inspection and collection method based on vehicle-mounted equipment according to claim 3, characterized in that: Packing the marking video data packets, sign video data packets and guardrail video data packets obtained at the same acquisition time into the same video transmission data packet, and packing the road information tables corresponding to each video data packet into the same file data packet; The total data volume of the same video transmission data packet and the same file data packet is used as a preset threshold; When the data volume D1 is greater than or equal to the preset threshold, the same video transmission data packet is temporarily stored in the real-time video data transmission queue A1, and the same file data packet is temporarily stored in the real-time file data transmission queue A2. When the data volume D1 is less than a preset threshold, the same video transmission data packet is temporarily stored in the offline video data transmission queue B1, and the same file data packet is temporarily stored in the offline file data transmission queue B2.
5. The method for inspecting and collecting road traffic facilities based on vehicle-mounted equipment according to claim 1 is characterized in that: The priority upload order is as follows: Real-time file data transmission queue A2>real-time video data transmission queue A1>offline file data transmission queue B2>offline video data transmission queue B1.
6. A road traffic facility inspection and collection method based on vehicle-mounted equipment according to claim 5, characterized in that: Before executing step S3, the method further includes the following steps: Check whether the data in the real-time file data transmission queue A2 is empty. If it is not empty, temporarily store the same video transmission data packet in the offline video data transmission queue B1 and temporarily store the same file data packet in the offline file data transmission queue B2; If the data in the file data transmission queue A2 is empty, step S3 is executed.
7. A road traffic facility inspection and collection method based on vehicle-mounted equipment according to claim 3, characterized in that: The preset upload time t is calculated as follows: t=s*n / v, where s represents the interval length of the fixed frequency, n represents the preset number, and v represents the vehicle speed.
8. The method for inspecting and collecting road traffic facilities based on vehicle-mounted equipment according to claim 3 is characterized in that: When collecting road images, each acquisition camera adjusts the camera parameters during acquisition through an automatic exposure control adjustment algorithm. The specific process of the automatic exposure control adjustment algorithm is as follows: S01, converting the road image currently captured by the acquisition camera from the RGB color space to the HSV color space, and calculating the mean value Vnow of the brightness of the ROI area of the current image; S02, after converting the standard image corresponding to the current image from the RGB color space to the HSV color space, calculate the mean value Vstd of the brightness of the ROI area in the standard image; S03, calculating the brightness difference Vdiff between the current road image and the standard image; S04. Calculate the adjustment range of the exposure parameter of the camera when shooting the next frame of road image according to the relationship between the brightness difference and the exposure parameter, and obtain the exposure parameter of the camera when shooting the next frame of road image.
9. A road traffic facility inspection and collection system based on vehicle-mounted equipment, characterized in that: It includes a vehicle-mounted device, several collection devices installed on the vehicle-mounted device, and a data processing device that processes the data collected by each collection device and uploads it to the cloud server. The data processing device includes: A data acquisition module, used for each acquisition device to obtain road images and corresponding road information at a fixed frequency, compress a preset number of road images into video data packets and store the road information corresponding to the video data packets into a road information table; A network detection module is used to obtain the current vehicle speed of the vehicle-mounted device and the current network speed of data upload, calculate the preset time of data upload according to the vehicle speed and the fixed frequency, and calculate the amount of data that can be uploaded D1 according to the preset time and the network speed; A data cache module, used to temporarily store the video data packet and the corresponding road information table in the real-time data transmission queue when the data volume D1 is greater than or equal to the preset threshold, and temporarily store the video data packet and the corresponding road information table in the offline cache transmission queue when the data volume D1 is less than the preset threshold; The data upload module is used to upload the data in the real-time data transmission queue and the cache transmission queue to the cloud server in sequence according to the set priority upload order.
10. A computer-readable storage medium, characterized in that: include: one or more processors; A storage unit, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement a road traffic facility inspection and collection method based on a vehicle-mounted device as described in any one of claims 1-8.
Citation Information
Patent Citations
An economical road inspection method
CN109598731A
Vehicle-mounted road defect rapid inspection and analysis system
CN113588664A
Vehicle-mounted road sign marking inspection system
CN115965926A
Rural highway lightweight detection method and system based on image overlook transformation
CN116559195A
Method for processing media stream in video conference
CN117255172A