A highway image acquisition method, device and medium based on vehicle-mounted video
Through the highway image collection method based on vehicle video, historical traffic flow data and truck driving data are used to optimize the collection time, which solves the problem of highway monitoring relying on manual inspection, improves the efficiency and accuracy of image collection, and realizes automated highway monitoring. efficient operation.
Patent Information
- Application Number
- CN202410158000.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-02-04
AI Technical Summary
In the existing technology, highway monitoring relies on manual inspection, which is inefficient and costly. Moreover, the existing highway camera data set is not suitable for highway disease inspection, resulting in insufficient image automation efficiency and accuracy.
Adopt a highway image collection method based on vehicle-mounted video, determine the collection time by obtaining historical traffic data, use video collection devices and positioning devices to collect videos on the highway, extract frames and analyze them, bind the images of interest and time information, and send them to The server combines truck driving data and weather data to optimize collection time.
It improves the collection efficiency of images of interest, reduces the calculation amount of the image recognition process, improves the recognition efficiency, reduces the need for manual intervention, and enhances the automation and accuracy of monitoring.
Smart Images

Figure CN118212769B
Abstract
Description
Technical Field
[0001] The present application relates to the field of highway surveying and mapping, and in particular to a highway image acquisition method, device and medium based on vehicle-mounted video. Background Art
[0002] In recent years, with the development of the transportation field, the construction and management of highways have become increasingly important, and image automation technology plays an important role in monitoring and managing highways. However, in current technology, the means of collecting image data rely too much on manual labor, resulting in low efficiency and high cost.
[0003] In the existing technology, highway monitoring mainly relies on manual inspection. The monitor needs to manually observe and record the image data of each camera, and process and analyze it as needed. This method has the problems of waste of human resources, low efficiency and high error rate.
[0004] For the above technologies, the current public data sets of highway cameras are mainly urban block scenes, and the sample angles and shooting equipment are not suitable for highway disease inspection.
[0005] In summary, the existing technology has problems such as reliance on manual labor and low efficiency in highway image automation. Therefore, a new method is needed to solve these problems and improve the efficiency and accuracy of highway image automation. Summary of the invention
[0006] In order to solve the above problems, the present application proposes a highway image acquisition method, device and medium based on vehicle-mounted video, which is applied to a collection vehicle, wherein the collection vehicle is provided with a video acquisition device and a positioning device; wherein the method comprises:
[0007] Obtain historical traffic flow data of a target highway, and determine a collection time of the target highway based on the historical traffic flow data; within the collection time, perform video collection on the target highway by the collection vehicle to obtain a target video; extract frames and analyze the target video to obtain an image of interest; bind the image of interest with corresponding time information and positioning information, and send the bound image of interest to a server.
[0008] In one example, determining the collection time of the target highway based on the historical traffic flow data specifically includes: denoising the historical traffic flow data to obtain processed historical traffic flow data; determining the feature matrix corresponding to the target highway in different time periods based on the processed historical traffic flow data; the rows of the feature matrix correspond to the relevant features of the adjacent preset time periods, and the relevant features include at least one of weather features and date features; the columns of the feature matrix are the average traffic flows corresponding to the adjacent preset time periods; clustering the feature matrix to divide the feature matrix into a plurality of preset cluster clusters to obtain the cluster coordinates of the feature matrix in the plurality of preset cluster clusters; based on the cluster coordinates, determining the target cluster cluster whose distance from the feature matrix is lower than a preset threshold; and determining the collection time of the target highway based on the cluster label of the target cluster cluster.
[0009] In one example, the frame extraction and analysis of the target video to obtain the image of interest specifically includes: frame extraction of the target video to obtain a target image set; analyzing each frame of the target image in the target image set to obtain the image of interest; the frame extraction of the target video to obtain the target image set specifically includes: determining the real-time speed of the captured vehicle and the screen brightness corresponding to different time points in the target video; determining an initial frame extraction interval corresponding to the target video based on the real-time speed and the screen brightness; and based on the initial frame extraction interval, extracting the target video to obtain the target image set.
[0010] In one example, based on the initial frame extraction interval, the target video is frame extracted to obtain a target image set, which specifically includes: based on the initial frame extraction interval, the target video is frame extracted to obtain an initial target image; identifying whether there is an obstacle vehicle in the initial target image, and if so, determining the depth distance between the acquisition vehicle and the obstacle vehicle based on the initial target image; determining the next frame extraction interval corresponding to the initial target image based on the depth distance and the real-time vehicle speed; determining the next target image in the target video based on the next frame extraction interval; and generating a target image set for the target video based on all next target images in the target video and the initial target image.
[0011] In one example, the target video is subjected to frame extraction and analysis to obtain an image of interest, specifically comprising: based on the initial frame extraction interval, the target video is subjected to frame extraction to obtain an initial target image; determining that there is a parallel obstacle vehicle in a parallel state with the acquisition vehicle in the initial target image; determining, through the initial target image, a target image frame in which the parallel obstacle vehicle exists in the target video; the target image frame comprises an initial frame in which the parallel obstacle vehicle appears in the target video, an end frame in which the parallel obstacle vehicle disappears in the target video, and all image frames between the initial frame and the end frame; based on the target image frame, determining the frame vertical height thresholds corresponding to the parallel vehicles in the target time period in which the target image frames are located; if the frame vertical height threshold is greater than a preset fluctuation threshold, adding all image frames corresponding to the parallel obstacle vehicle to the target image set.
[0012] In one example, analyzing each frame of the target image in the target image set to obtain an image of interest specifically includes: determining a preset image analysis model based on the target highway type; analyzing any target image based on the preset image analysis model to determine whether any target image contains an area of interest; if any target image contains the area of interest, obtaining the area position of the area of interest in any target image; determining the interval time corresponding to any target image based on the area position and the instantaneous vehicle speed; and determining the image of interest in the target video based on the interval time and the frame extraction time of any target image, so that the area of interest is within the preset area in the image of interest.
[0013] In one example, after sending the bound image of interest to the server, the method further includes: obtaining truck driving data and driving weather data of the target highway, wherein the truck driving data includes the number of trucks and truck load data; and determining the collection time interval of the target highway by the following formula:
[0014]
[0015] Among them, T is the collection time interval, A and B are preset coefficients, n is the number of trucks, G i is the truck load of the i-th truck, ε i is the weather impact factor corresponding to the i-th truck, and the size of the weather impact factor depends on the driving weather data corresponding to the truck.
[0016] In one example, during the collection time, the collection vehicle performs video collection on the target highway to obtain the target video, specifically including: obtaining the historical coordinates of the historical area of interest of the target highway through a server; determining the coordinate distance between the collection vehicle and the historical area of interest during the driving process of the collection vehicle; when the coordinate distance is lower than a preset threshold, determining the target lane of the historical area of interest; based on the target lane, generating a lane change signal, and sending the lane change signal to the collection vehicle.
[0017] The present application also provides a highway image acquisition device based on vehicle-mounted video, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: obtaining historical traffic data of a target highway, and determining a collection time of the target highway based on the historical traffic data; within the collection time, performing video collection of the target highway by the collection vehicle to obtain a target video; extracting frames and analyzing the target video to obtain an image of interest; binding the image of interest with corresponding time information and positioning information, and sending the bound image of interest to a server.
[0018] The present application also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to: obtain historical traffic flow data of a target highway, and determine a collection time of the target highway based on the historical traffic flow data; within the collection time, perform video collection of the target highway by the collection vehicle to obtain a target video; extract frames and analyze the target video to obtain an image of interest; bind the image of interest to corresponding time information and positioning information, and send the bound image of interest to a server.
[0019] The method proposed in this application can bring the following beneficial effects: for different types of images of interest, different video acquisition times are determined through the historical traffic data of the target highway, thereby improving the acquisition efficiency of the images of interest. At the same time, by performing frame extraction analysis on the video, the amount of calculation in the image recognition process is reduced, and the recognition efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0021] Figure 1 A schematic diagram of a flow chart of a highway image acquisition method based on vehicle-mounted video in an embodiment of the present application;
[0022] Figure 2 It is a structural schematic diagram of a highway image acquisition device based on vehicle-mounted video in an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0024] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0025] Figure 1 A flowchart of a highway image acquisition method based on vehicle-mounted video provided for one or more embodiments of this specification. The method can be applied to different types of images of interest, such as road sign images of highways, road disease images, etc. The process can be assisted by a video acquisition device and a positioning device arranged on the acquisition vehicle. In addition to the above-mentioned devices, the collected video or image of interest can also be uploaded to the server with the help of a 5G communication module on the acquisition vehicle. It should be noted that in addition to being arranged in front of the vehicle and facing only the road ahead, the video acquisition device can also be arranged on the side of the vehicle to achieve simultaneous acquisition of videos corresponding to multiple lanes. The process of extracting frames, analyzing the target video and extracting images of interest can be completed in the in-vehicle computing device or on the server side. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0026] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.
[0027] It should be noted that the server can be a single device or a system composed of multiple devices, that is, a distributed server, and this application does not make any specific limitations on this.
[0028] like Figure 1 As shown, the embodiment of the present application provides a highway image acquisition method based on vehicle-mounted video, comprising:
[0029] S101: Acquire historical traffic flow data of a target highway, and determine a collection time of the target highway based on the historical traffic flow data.
[0030] Here, we take the acquisition of road damage images on a highway as an example. When acquiring, in order to improve the efficiency of analysis and recognition, we hope that the number of vehicles on the highway is as small as possible, so as to reduce the number of vehicles in the acquired video, thereby increasing the proportion of the road surface in each frame of the acquired video. Therefore, it is necessary to obtain the historical traffic data of the target highway, so as to determine the acquisition time based on the historical traffic data, and hope that the traffic volume on the highway during the acquisition time is small.
[0031] In one embodiment, when determining the collection time, the historical traffic flow data needs to be denoised first to obtain the processed historical traffic flow data. The denoising process here includes threshold processing, filtering through a filter, and difference filling missing values. Then, based on the processed historical traffic flow data, the feature matrix corresponding to the target highway in different time periods is determined; the relevant features corresponding to the preset time periods adjacent to the rows of the feature matrix here include weather features, date features, etc.; the features here can be selected from the historical traffic flow data. Features related to traffic flow may include time, date, number of lanes, speed limit, weather and other information, and features with large differences and large impact on traffic flow need to be selected. After selecting the features, the selected features need to be normalized so that they have similar scales, which can avoid excessive influence of certain features on the clustering results. At the same time, if the dimension of the feature matrix is high, feature dimensionality reduction methods such as principal component analysis (PCA) or linear discriminant analysis (LDA) can be used to map high-dimensional features to low-dimensional space to reduce computational complexity. The columns of the feature matrix are the average traffic flows corresponding to adjacent preset time periods; by performing clustering operations on the feature matrix, the feature matrix can be divided into multiple preset cluster clusters to obtain the cluster coordinates of the feature matrix in the preset multiple cluster clusters. It should be noted that the cluster clusters here are divided in advance based on the size of the traffic flow, and are standardly equipped with cluster cluster labels, such as high traffic flow, low traffic flow, etc. Cluster coordinates refer to the coordinates of the target feature matrix in the coordinate system in a two-dimensional or multi-dimensional coordinate system, and the number of its dimensions is related to the dimension of the feature matrix. Through the cluster coordinates, the target cluster cluster whose distance from the feature matrix is lower than the preset threshold can be determined. Then, through the cluster label of the target cluster cluster, such as selecting a cluster label with less traffic flow, the collection time of the target highway can be determined.
[0032] S102: During the collection time, the collection vehicle collects video of the target expressway to obtain a target video.
[0033] During the collection time, a collection vehicle is dispatched to travel on the highway, and the onboard camera installed on the collection vehicle is used to collect video of the target highway. The collection vehicle here is equipped with a video collection device and a positioning device, wherein the video collection device is used to collect video, and the positioning device is used to locate the collection vehicle. It can be understood that in the video collected by the collection vehicle, each frame of the image can be bound to the collection time and collection location.
[0034] S103: Extracting frames and analyzing the target video to obtain an image of interest.
[0035] During or after the target video is acquired, an image of interest can be obtained by extracting and analyzing the target video. Still taking the road damage image as an example, the image of interest here is an image containing road damage information. During the frame extraction and analysis process, the frame extraction and analysis process are performed alternately, that is, after analyzing the image obtained by frame extraction, frame extraction may be performed again in the target video based on the analysis result to obtain the final image of interest.
[0036] In one embodiment, when performing frame extraction and analysis, the target video is frame extracted to obtain a target image set, and then each frame image in the target image set is analyzed to obtain an image of interest. Further, when the target video is frame extracted, the effective recognition area in the picture should be considered first. The effective recognition area here refers to an area that is easy to identify, and its size is related to factors such as the resolution of the video acquisition device and the brightness of the picture during acquisition. Therefore, within a certain threshold, the higher the brightness of the picture, the larger the effective recognition area. On this basis, in order to reduce the amount of calculation, it should be ensured that the same road surface area contained in the different images obtained after frame extraction is the least, that is, the same road surface should appear only once in the image as much as possible. At this time, it is necessary to consider the influence of the real-time vehicle speed during the acquisition process. The greater the real-time vehicle speed, the shorter the initial frame extraction interval should be. After obtaining the initial frame extraction interval, the target video is frame extracted to obtain the target image set. Specifically, the initial frame extraction interval can be determined by the following formula:
[0037]
[0038] Among them, U is the initial frame extraction interval; K is the effective recognition area coefficient, and its value is related to the installation angle and acquisition resolution of the video acquisition device; L is the picture brightness value; V is the real-time vehicle speed corresponding to the frame extraction interval point, and C is a preset constant.
[0039] Furthermore, when extracting frames, since there may be a situation in which the front vehicle blocks the effective recognition area in the image obtained by frame extraction, the size of the effective recognition area after the occlusion should be considered on the basis of the initial frame extraction interval, and then the initial frame extraction interval should be modified. Specifically, after obtaining the initial target image set, it is necessary to identify whether there is an obstacle vehicle in the initial target image. If there is, the depth distance between the acquisition vehicle and the obstacle vehicle is determined based on the initial target image. The depth distance here can be the actual distance between the acquisition vehicle and the obstacle vehicle, or it can be the pixel distance of the vehicle on the initial target image. When determining the depth distance, the initial target image can be identified by a pre-trained distance recognition model to obtain the depth distance between the acquisition vehicle and the obstacle vehicle. Then, based on the depth distance and the real-time vehicle speed, the time when the acquisition vehicle reaches the historical position of the obstacle vehicle can be determined, and then the next frame extraction interval corresponding to the initial target image can be determined. Based on the next frame extraction interval and the acquisition time of the initial target image, the next target image is determined in the target video. After all the next target images are determined, all the next target images and the initial target image are used as the target image set of the target video.
[0040] In addition to the possibility of obstacle vehicles in the front and rear directions of the same lane, there may also be parallel obstacle vehicles in the left and right lanes of the lane where the acquisition vehicle is located. In this case, the parallel obstacle vehicles will block the acquisition vehicle from collecting videos of the road surfaces on the left and right lanes. At this time, it is possible to determine whether the lane where the parallel obstacle vehicle is located has road damage by analyzing whether the parallel obstacle vehicle is undulating. Specifically, based on the initial frame extraction interval, the target video is extracted to obtain the initial target image, and then it is determined whether there is a parallel obstacle vehicle in a parallel state with the acquisition vehicle in the initial target image. If so, the target image frame where the parallel obstacle vehicle exists is determined in the target video through the initial target image; the target image frame here includes the initial frame where the parallel obstacle vehicle appears in the target video, the end frame where the parallel obstacle vehicle disappears in the target video, and all image frames between the initial frame and the end frame. Based on the target image frame, the frame vertical height thresholds corresponding to the parallel vehicles in the target time period where the target image frame is located can be determined. If the frame vertical height threshold is greater than the preset undulation threshold, it means that the lane where the parallel obstacle vehicle is located may have road damage, resulting in a large degree of undulation of the parallel obstacle vehicle during driving. At this time, it may also be the case that there is a road disease in the lane where the acquisition vehicle is located, and all image frames corresponding to the parallel obstacle vehicle can be added to the target image set. It should be noted that the preset fluctuation threshold here is related to the form speed of the parallel obstacle vehicle, and the driving speed of the parallel obstacle vehicle can be obtained by the driving speed of the acquisition vehicle and the number of target image frames.
[0041] In one embodiment, when determining an image of interest, the corresponding preset image analysis model must first be determined based on the type of the target highway, because the types of highways can be two-lane, three-lane, four-lane, ordinary roads, bridges, tunnels, ramps, etc. Then, any target image in the target image set is analyzed by the selected preset image analysis model to determine whether the target image contains an area of interest. If any target image contains the area of interest, the area position of the area of interest in any target image is obtained, and the interval time corresponding to any target image is determined based on the area position and the instantaneous vehicle speed. At this time, the image of interest can be determined in the target video based on the interval time and the frame extraction time of any target image, so that the area of interest is within the preset area in the image of interest, thereby facilitating the subsequent staff to identify and confirm the image.
[0042] S104: Bind the image of interest with the corresponding time information and location information, and send the bound image of interest to the server.
[0043] After obtaining the image of interest, the image of interest can be bound to the corresponding acquisition time and acquisition location, and then sent to the server; the acquisition time and location coordinates corresponding to the area of interest can also be determined in the image of interest, and the acquisition time and location coordinates can be bound to the area of interest and sent to the server.
[0044] In one embodiment, since road dents and other defects are mainly caused by too many heavy trucks passing through the road in a short period of time, after collecting an image of the highway road surface, the collection time interval can be determined based on the number of trucks passing by. Specifically, it is first necessary to obtain the truck driving data and driving weather data of the target highway. The truck driving data here includes the number of trucks and the truck load data. Then, the collection time interval of the target highway can be determined by the following formula:
[0045]
[0046] Among them, T is the collection time interval, A and B are preset coefficients, n is the number of trucks, G i is the truck load of the i-th truck, ε i is the weather impact factor corresponding to the i-th truck, and the size of the weather impact factor depends on the weather when the truck is traveling. For example, on rainy days, the road surface of the highway is relatively wet, which is more likely to cause road surface damage, and the weather impact factor is relatively large at this time.
[0047] In one embodiment, after determining that there is disease information on the road surface of the highway through the target video, when the acquisition vehicle travels on the target highway next time, the lane can be changed in advance based on the historical disease coordinates so that the acquisition vehicle can explore the historical diseases again. Specifically, the historical coordinates of the historical area of interest of the target highway can be obtained through the server, and then the coordinate distance between the target acquisition vehicle and the historical area of interest is determined during the driving process of the acquisition vehicle. When the coordinate distance is lower than the preset threshold, the target lane of the historical area of interest is determined. Based on the target lane, a lane change signal is generated and sent to the acquisition vehicle. In addition to a single acquisition vehicle collecting on the target highway multiple times, it can also be applied to multiple acquisition vehicles in a short period of time to collect road surface images of the same target highway. At this time, after the front vehicle collects, the coordinates of the area of interest are obtained, and the rear vehicle can change lanes in advance according to the coordinates of the area of interest, so as to provide a clearer image of the area and make a judgment on the area of interest.
[0048] In one embodiment, even if a collection time period with fewer vehicles on the road is selected, traffic jams and slow vehicle speeds may still occur. If the captured vehicle speeds corresponding to most image frames in the target video are low, the portion of the target video where the speed is lower than the preset speed threshold will not be analyzed.
[0049] like Figure 2 As shown, an embodiment of the present application also provides a highway image acquisition device based on vehicle-mounted video, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain historical traffic data of a target highway, and determine a collection time of the target highway based on the historical traffic data; within the collection time, perform video collection of the target highway by the collection vehicle to obtain a target video; extract frames and analyze the target video to obtain an image of interest; bind the image of interest to the corresponding time information and positioning information, and send the bound image of interest to a server.
[0050] The embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0051] Obtain historical traffic flow data of a target highway, and determine a collection time of the target highway based on the historical traffic flow data; within the collection time, perform video collection on the target highway by the collection vehicle to obtain a target video; extract frames and analyze the target video to obtain an image of interest; bind the image of interest with corresponding time information and positioning information, and send the bound image of interest to a server.
[0052] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0053] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0054] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0055] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0056] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0057] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0058] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0059] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0060] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0061] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0062] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A highway image acquisition method based on vehicle-mounted video, applied to an acquisition vehicle, wherein the acquisition vehicle is provided with a video acquisition device and a positioning device; characterized in that: The method comprises: Acquire historical traffic flow data of a target expressway, and determine a collection time of the target expressway based on the historical traffic flow data; During the acquisition time, the target expressway is video acquired by the acquisition vehicle to obtain a target video; Extracting and analyzing the target video to obtain an image of interest; Binding the image of interest with corresponding time information and location information, and sending the bound image of interest to a server; The step of extracting frames and analyzing the target video to obtain an image of interest specifically includes: Extracting frames from the target video to obtain a target image set; Analyze each frame of the target image in the target image set to obtain an image of interest; The step of extracting frames from the target video to obtain a target image set specifically includes: Determining the real-time speed of the captured vehicle and the screen brightness corresponding to different time points in the target video; Based on the real-time vehicle speed and the picture brightness, determining an initial frame extraction interval corresponding to the target video; Based on the initial frame extraction interval, extract frames of the target video to obtain a target image set; The step of extracting frames from the target video based on the initial frame extraction interval to obtain a target image set specifically includes: Based on the initial frame extraction interval, extract frames of the target video to obtain an initial target image; Identify whether there is an obstacle vehicle in the initial target image, and if so, determine the depth distance between the acquisition vehicle and the obstacle vehicle based on the initial target image; Based on the depth distance and the real-time vehicle speed, determining a next frame extraction interval corresponding to the initial target image; Determining a next target image in the target video based on the next frame extraction interval; A target image set of the target video is generated based on all next target images in the target video and the initial target image.
2. The method according to claim 1, characterized in that: Determining the collection time of the target expressway based on the historical traffic flow data specifically includes: De-noising the historical traffic flow data to obtain processed historical traffic flow data; Based on the processed historical traffic flow data, a feature matrix corresponding to the target highway in different time periods is determined; the rows of the feature matrix are the relevant features corresponding to the adjacent preset time periods, and the relevant features include at least one of weather features and date features; the columns of the feature matrix are the average traffic flows corresponding to the adjacent preset time periods; By performing a clustering operation on the feature matrix, the feature matrix is divided into a plurality of preset clusters to obtain cluster coordinates of the feature matrix in the plurality of preset clusters; Based on the cluster coordinates, determining a target cluster whose distance from the feature matrix is lower than a preset threshold; Based on the cluster label of the target cluster, the collection time of the target highway is determined.
3. The method according to claim 1, characterized in that: The step of extracting frames and analyzing the target video to obtain an image of interest specifically includes: Based on the initial frame extraction interval, extract frames of the target video to obtain an initial target image; Determining that there is a parallel obstacle vehicle in the initial target image that is in a parallel state with the acquisition vehicle; Determine, by using the initial target image, a target image frame in which the parallel obstacle vehicle exists in the target video; the target image frame includes an initial frame in which the parallel obstacle vehicle appears in the target video, an end frame in which the parallel obstacle vehicle disappears from the target video, and all image frames between the initial frame and the end frame; Based on the target image frame, determining the frame vertical height thresholds corresponding to the parallel obstacle vehicles in the target time period where the target image frame is located; If the frame vertical height threshold is greater than a preset fluctuation threshold, all image frames corresponding to the parallel obstacle vehicle are added to the target image set.
4. The method according to claim 3, characterized in that The step of analyzing each frame of the target image in the target image set to obtain an image of interest specifically includes: Based on the target highway type, determining a preset image analysis model; Based on the preset image analysis model, analyzing any target image to determine whether the any target image contains a region of interest; If any of the target images contains the region of interest, obtaining a region position of the region of interest in any of the target images; Determining the interval time corresponding to any one of the target images based on the area position and the instantaneous vehicle speed; Based on the interval time and the frame extraction time of any target image, an image of interest is determined in the target video so that the region of interest is within a preset region in the image of interest.
5. The method according to claim 1, characterized in that After sending the bound image of interest to the server, the method further includes: Acquire the truck driving data and driving weather data of the target highway, wherein the truck driving data includes the number of trucks and the truck load data; The collection time interval of the target highway is determined by the following formula: Among them, T is the collection time interval, A and B are preset coefficients, n is the number of trucks, G i is the truck load of the i-th truck, ε i is the weather impact factor corresponding to the i-th truck, and the size of the weather impact factor depends on the weather when the truck is traveling.
6. The method according to claim 1, characterized in that The step of collecting video of the target highway by the collection vehicle within the collection time to obtain the target video specifically includes: Acquire the historical coordinates of the historical area of interest of the target highway through the server; During the driving process of the collection vehicle, determining the coordinate distance between the target collection vehicle and the historical area of interest; When the coordinate distance is lower than a preset threshold, determining a target lane of the historical area of interest; Based on the target lane, a lane change signal is generated, and the lane change signal is sent to the target collection vehicle.
7. A highway image acquisition device based on vehicle-mounted video, characterized in that: include: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: Acquire historical traffic flow data of a target expressway, and determine a collection time of the target expressway based on the historical traffic flow data; During the acquisition time, the target highway is video acquired by the acquisition vehicle to obtain the target video; Extracting and analyzing the target video to obtain an image of interest; Binding the image of interest with corresponding time information and location information, and sending the bound image of interest to a server; The step of extracting frames and analyzing the target video to obtain an image of interest specifically includes: Extracting frames from the target video to obtain a target image set; Analyze each frame of the target image in the target image set to obtain an image of interest; The step of extracting frames from the target video to obtain a target image set specifically includes: Determining the real-time speed of the captured vehicle and the screen brightness corresponding to different time points in the target video; Based on the real-time vehicle speed and the picture brightness, determining an initial frame extraction interval corresponding to the target video; Based on the initial frame extraction interval, extract frames of the target video to obtain a target image set; The step of extracting frames from the target video based on the initial frame extraction interval to obtain a target image set specifically includes: Based on the initial frame extraction interval, extract frames of the target video to obtain an initial target image; Identify whether there is an obstacle vehicle in the initial target image, and if so, determine the depth distance between the acquisition vehicle and the obstacle vehicle based on the initial target image; Based on the depth distance and the real-time vehicle speed, determining a next frame extraction interval corresponding to the initial target image; Determining a next target image in the target video based on the next frame extraction interval; A target image set of the target video is generated based on all next target images in the target video and the initial target image.
8. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Acquire historical traffic flow data of a target expressway, and determine a collection time of the target expressway based on the historical traffic flow data; During the acquisition time, the target highway is video acquired by the acquisition vehicle to obtain the target video; Extracting and analyzing the target video to obtain an image of interest; Binding the image of interest with corresponding time information and location information, and sending the bound image of interest to a server; The step of extracting frames and analyzing the target video to obtain an image of interest specifically includes: Extracting frames from the target video to obtain a target image set; Analyze each frame of the target image in the target image set to obtain an image of interest; The step of extracting frames from the target video to obtain a target image set specifically includes: Determining the real-time speed of the captured vehicle and the screen brightness corresponding to different time points in the target video; Based on the real-time vehicle speed and the picture brightness, determining an initial frame extraction interval corresponding to the target video; Based on the initial frame extraction interval, extract frames of the target video to obtain a target image set; The step of extracting frames from the target video based on the initial frame extraction interval to obtain a target image set specifically includes: Based on the initial frame extraction interval, extract frames of the target video to obtain an initial target image; Identify whether there is an obstacle vehicle in the initial target image, and if so, determine the depth distance between the acquisition vehicle and the obstacle vehicle based on the initial target image; Based on the depth distance and the real-time vehicle speed, determining a next frame extraction interval corresponding to the initial target image; Determining a next target image in the target video based on the next frame extraction interval; A target image set of the target video is generated based on all next target images in the target video and the initial target image.
