WO2022142922A1 - Road safety assessment method, video processing center, and storage medium - Google Patents

Road safety assessment method, video processing center, and storage medium Download PDF

Info

Publication number
WO2022142922A1
WO2022142922A1 PCT/CN2021/133595 CN2021133595W WO2022142922A1 WO 2022142922 A1 WO2022142922 A1 WO 2022142922A1 CN 2021133595 W CN2021133595 W CN 2021133595W WO 2022142922 A1 WO2022142922 A1 WO 2022142922A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion
road
area
information
safety assessment
Prior art date
Application number
PCT/CN2021/133595
Other languages
French (fr)
Chinese (zh)
Inventor
付海玲
李东方
贾霞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022142922A1 publication Critical patent/WO2022142922A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • G06Q10/063114Status monitoring or status determination for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • G06Q50/265Personal security, identity or safety
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content

Definitions

  • the embodiments of the present application relate to the technical field of data processing, and in particular, to a road safety assessment method, a video processing center, and a storage medium.
  • the concept of smart city has become more and more popular among the people. It connects and integrates urban systems and services to improve the efficiency of resource utilization, optimize urban management and services, and improve the quality of life of citizens. .
  • the electronic map in the terminal has become an indispensable auxiliary tool for people's travel.
  • the current electronic map is no longer limited to the function of finding paths.
  • Most electronic maps also include intelligent voice assistants, intelligent positioning, location Search services, traffic jam display and other functions.
  • the commonly used electronic maps provide people with routes without considering the safety issues when people travel on the provided routes.
  • An embodiment of the present application provides a road safety assessment method, including: acquiring a video frame sequence collected by a video device installed on a road, and determining a motion area in the road; according to each of the video frames in the video frame sequence The image block corresponding to the motion area is determined, and the motion information in the motion area is determined; the safety assessment information of the road is determined according to the motion information in the motion area.
  • Embodiments of the present application further provide a video processing center, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores data that can be executed by the at least one processor The instructions are executed by the at least one processor to enable the at least one processor to perform the road safety assessment method as described above.
  • Embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned road safety assessment method is implemented.
  • FIG. 1 is a flowchart of a road safety assessment method according to a first embodiment of the present application
  • FIG. 2 is a flowchart of determining a motion area in a road according to step 101 in the first embodiment of the present application;
  • FIG. 3 is a flowchart according to a specific implementation manner of step 103 in the first embodiment of the present application.
  • FIG. 4 is a flowchart of a road safety assessment method according to a second embodiment of the present application.
  • FIG. 5 is a flowchart according to a specific implementation manner of step 202 in the second embodiment of the present application.
  • FIG. 6 is a flowchart of a road safety assessment method according to a third embodiment of the present application.
  • FIG. 7 is a schematic diagram of an interface for presenting navigation information on an electronic map on a terminal according to a third embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a video processing center according to a fourth embodiment of the present application.
  • the embodiments of the present application provide a road safety assessment method, a video processing center, and a storage medium, which can improve the safety of a user's travel.
  • the road safety assessment method, video processing center and storage medium proposed in this application acquire the video frame sequence collected by the video equipment installed on the road, and determine the motion area in the road; according to the corresponding motion area in each video frame in the video frame sequence According to the motion information in the motion area, the safety assessment information of the road is determined.
  • the safety assessment information of the road can be provided for the user, so that the user can know the safety of the road. Thereby, the safety of users' travel is improved.
  • the first embodiment of the present application relates to a road safety assessment method, which is applied to a video processing center.
  • the video processing center is a server or terminal with computing performance.
  • the specific process is shown in Figure 1, including:
  • Step 101 Obtain a video frame sequence collected by a video device installed on the road, and determine a motion area on the road.
  • the road may be multiple roads from the origin and destination obtained according to the navigation request of the terminal, or may be a road obtained according to the query request of the terminal, and the terminal is a mobile phone, a tablet computer, etc.;
  • the road includes a road as an example for description, but it is not limited to this.
  • the video processing center can obtain the video frame sequence collected by the video equipment installed on the road in real time, or obtain the video frame sequence collected by the video equipment installed on the road according to the preset period.
  • the preset period can be set according to actual needs.
  • This implementation is not specifically limited, and the number of video devices on the road may be greater than one.
  • the video processing module in the video processing center obtains the captured video frame sequence from each video device.
  • the moving area is the area where the moving objects move by summarizing the video frame sequence. .
  • the flow chart for determining the motion area in the road is shown in Figure 2 and includes:
  • Step 1011 performing differential processing on adjacent video frames in the video frame sequence to obtain each differential image.
  • Step 1012 Select target pixels whose pixel values are greater than a preset threshold from the pixels of each differential image, and determine a motion area according to the target pixels.
  • the video processing center subtracts the pixels corresponding to adjacent video frames in the video frame sequence, then takes the absolute value of the difference, and determines each difference image according to the absolute value of the difference, for example: The pixels corresponding to the first video frame and the second video frame in the frame sequence are subtracted, and the absolute value of the difference is taken. The absolute value determines the first frame differential image. After each differential image is obtained, the pixels of each differential image are compared with a preset threshold, wherein the preset threshold can be set according to actual needs, which is not specifically limited in this embodiment. The target pixels whose pixel values are greater than the preset threshold are selected from the pixel points, so that certain interference information can be suppressed.
  • the adjacent video frames in the differential process are processed, and the video frame sequence of the differential image is obtained as Then convert the video frame sequence of the differential image
  • the pixels in the video are compared with the preset threshold, and certain interference information is suppressed to obtain a video frame sequence.
  • determining the motion area in the road includes: determining the motion area in the road through a three-frame difference method.
  • Step 102 Determine the motion information in the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
  • the moving objects are detected from all the moving regions, and the motion information of the moving objects in the moving regions is determined according to the image blocks corresponding to the moving regions in each video frame.
  • the motion information includes at least one of the following information: the motion trajectory of the moving objects, the density of the moving objects, and the behavior of pedestrians. Since the motion trajectory of the moving objects, the density of the moving objects, and the behavior of pedestrians can all be more accurate The motion information of the moving object is reflected, so when the motion information includes at least one of them, the safety assessment information of the road can be more accurately determined.
  • Step 103 Determine the safety assessment information of the road according to the motion information in the motion area.
  • the motion information includes the behavior of pedestrians and the density of moving objects
  • the safety assessment information includes a safety factor
  • Step 1031 Determine a first coefficient representing the congestion on the road according to the density of the moving objects.
  • Step 1032 Determine a second coefficient representing behavior safety on the road according to the behavior of the pedestrian.
  • the video processing center pre-establishes the correspondence between the density of moving objects on the entire road and the first coefficient representing the congestion situation on the road, and the correspondence between the behavior of pedestrians and the second coefficient representing the behavior safety on the road For example, when the density of moving objects on the entire road is high, the first coefficient representing the congestion on the road is 0.4, and when the pedestrian’s behavior includes fighting, the second coefficient representing the safety of behavior on the road is 0.4.
  • determining the first coefficient representing the congestion situation on the road according to the density of moving objects includes: according to the density of moving objects in each dangerous motion area, determining the corresponding congestion of each dangerous motion area and representing the congestion in the dangerous motion area
  • the first sub-coefficient of the situation determine the first coefficient that characterizes the congestion situation on the road; according to the behavior of pedestrians, determine the second coefficient that characterizes the behavior safety on the road, including: according to the pedestrians in each dangerous movement area determine the second sub-coefficient representing the behavioral safety of the dangerous motion area corresponding to each dangerous motion area; and determine the second coefficient representing the behavioral safety on the road according to each second sub-coefficient.
  • the video processing center pre-establishes the correspondence between the density of moving objects in the dangerous movement area and the coefficients, uses the corresponding coefficient as the first sub-coefficient representing the congestion situation in the dangerous movement area, and pre-establishes the density of the moving objects in the dangerous movement area
  • the corresponding relationship between pedestrian behavior and coefficient, the corresponding coefficient is used as the second sub-coefficient to characterize the behavior safety on the road; after each first sub-coefficient is obtained, the average value of each first sub-coefficient is taken as the indicator of road congestion.
  • the first coefficient for example, the density of moving objects in each dangerous sports area is: high, high, medium, and low, respectively, according to the corresponding relationship, the first sub-coefficients representing the congestion situation of the dangerous sports area corresponding to each dangerous sports area are obtained respectively. is: 0.4, 0.4, 0.3, 0.1, then the first coefficient representing the congestion on the road is the average value of each first sub-coefficient 0.3; after obtaining the second sub-coefficient, the average value of each second sub-coefficient is taken as the representation
  • the second coefficient of behavioral safety on the road for example, the behaviors of pedestrians in each dangerous sports area are: fighting, fighting and robbery, robbery, and normal behavior.
  • the result of adding the coefficients corresponding to the behaviors of the two pedestrians can be used as the final coefficient.
  • the second sub-coefficients representing the behavioral safety of the dangerous motion areas corresponding to each dangerous motion area are respectively: 0.4, 1, 0.6 , 0, then the second coefficient representing behavior safety on the road is the average value of each second sub-coefficient 0.5.
  • a summation process may also be performed on each of the first sub-coefficients, and the result of the summation process is used as the first coefficient representing the congestion situation on the road, and after each second sub-coefficient is obtained After the coefficients, the second sub-coefficients can also be summed, and the result of the summation can be used as a second coefficient representing the congestion on the road.
  • Step 1033 Determine the safety factor of the road according to the first coefficient and the second coefficient.
  • the video processing center may perform calculations such as addition or multiplication of the first coefficient and the second coefficient, and use the calculation result as the safety coefficient of the road. For example, if the first coefficient representing the congestion on the road is 0.4, and the second coefficient representing the behavior safety on the road is 0.4, the multiplication calculation is performed to obtain the safety coefficient of the road as 0.16.
  • the first factor representing the congestion on the road and the second factor representing the behavioral safety on the road are considered at the same time.
  • the factors considered are more comprehensive and the safety factor of the road is more accurate.
  • the pass coefficient can more intuitively identify the safety of the road.
  • determining the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area including: obtaining historical behaviors in each dangerous movement area from a preset database
  • the preset database includes the historical behaviors and the probability of occurrence of historical behaviors in different sports areas in the historical time period; according to the behavior of pedestrians in each dangerous sports area and the historical behaviors The probability of occurrence is determined, and the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area is determined.
  • the preset database can be stored locally in the video processing center, and obtained directly from the local when the video processing center needs it; it can also be stored in an external server and obtained from the external server when the video processing center needs it.
  • the preset database includes the historical behaviors and the probability of occurrence of historical behaviors in different motion areas in the historical time period, so the video processing center can obtain the probability of occurrence of historical behaviors in each dangerous motion area from the preset database, and the video processing
  • the center pre-stores the corresponding relationship between the behaviors and coefficients of pedestrians in the dangerous motion areas, then the coefficients corresponding to the behaviors of pedestrians in each dangerous motion area and the probability of occurrence of historical behaviors in each dangerous motion area are weighted and summed to obtain The result is used as the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area.
  • the behaviors of pedestrians in each dangerous sports area are: fighting, fighting and robbery, robbery, and normal behavior.
  • the corresponding coefficients are: 0.4, 1, 0.6, and 0, respectively.
  • the occurrence probabilities are: fight 0.4 and robbery 0.3, fight 0.2 and robbery 0.4, fight 0.3 and robbery 0.2, fight 0.1 and robbery 0.1, then the coefficients corresponding to each dangerous sports area and the probability of occurrence of historical behavior in each dangerous sports area are calculated respectively.
  • the weighted summation is carried out, and the obtained results are: 0.16, 0.32, 0.12, 0, respectively.
  • the method further includes: According to each of the first sub-coefficients and each of the second sub-coefficients, the respective safety factors corresponding to each dangerous movement area are determined, and the respective safety factors corresponding to each dangerous movement area are determined.
  • the first coefficient and the second coefficient corresponding to the movement area are multiplied or added, and the obtained result is used as the safety factor corresponding to the dangerous movement area, for example: each dangerous movement area
  • the corresponding first sub-coefficients are: 0.4, 0.4, 0.3, and 0.1, respectively
  • the second sub-coefficients corresponding to each dangerous sports area are: 0.4, 1, 0.6, and 0, respectively.
  • the corresponding safety factors are: 0.16, 0.4, 0.18, and 0, respectively.
  • the method further includes: sending the safety factors corresponding to the dangerous movement areas to the terminal, and the terminal displays the safety factors in different colors on the electronic map.
  • the safety level can be determined according to the coefficient of each dangerous movement area, and each dangerous movement area is marked with different colors according to the preset colors representing the safety level, and different colors represent different safety levels.
  • determining the safety assessment information of the road according to the movement information in the movement area includes: respectively determining the safety assessment information of the different movement areas in the road according to the movement information of the different movement areas in the road.
  • the road is divided into different motion areas, which may be divided according to preset lengths, which is not specifically limited in this embodiment.
  • the safety assessment information of different motion areas in the road is determined, that is, the safety assessment information is included for different motion areas in the road, which can make the safety assessment information more comprehensive.
  • the video frame sequence collected by the video equipment installed on the road is acquired to determine the motion area in the road; the motion information in the motion area is determined according to the image blocks corresponding to the motion area in each video frame in the video frame sequence ; According to the motion information in the motion area, determine the safety assessment information of the road, through this method, the user can be provided with the safety assessment information of the road, so that the user can know the safety of the road, thereby improving the safety of the user's travel.
  • the second embodiment of the present application relates to a road safety assessment method.
  • the second embodiment is roughly the same as the first embodiment, with the main difference being that the motion information includes the motion trajectory of the moving object, the density of the moving object, the pedestrian's
  • the specific implementation of determining the motion trajectory of moving objects, the density of moving objects, and the behavior of pedestrians is given.
  • the specific flowchart is shown in Figure 4, including:
  • step 201 a video frame sequence collected by a video device installed on the road is acquired, and a motion area in the road is determined.
  • Step 201 is similar to step 101 and will not be repeated here.
  • Step 202 Determine the motion intensity corresponding to the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
  • FIG. 5 the specific flowchart of determining the motion intensity corresponding to the motion area is shown in FIG. 5 , including:
  • Step 2021 using the optical flow method to calculate the optical flow values of the pixels in the image blocks corresponding to the motion area in each video frame in the video frame sequence respectively.
  • the meaning of the optical flow value in the image refers to the motion vector, including the motion speed and direction of the pixel point.
  • the video processing center can use the optical flow method to calculate the optical flow value of the pixel in the image block corresponding to the motion area in each video frame sequence.
  • the optical flow value of the pixel includes the motion speed and direction of the pixel.
  • Step 2022 Determine the motion intensity corresponding to the motion area according to the optical flow value.
  • the motion speed of the pixels in the image block is compared with a preset speed, and the number of pixels greater than the preset speed is determined according to the comparison result, and then the number of pixels greater than the preset speed is determined according to the preset speed.
  • the corresponding relationship between the number of predetermined pixels and the coefficient representing the intensity of motion is determined, and the coefficient representing the intensity of motion in the motion region where the image block is located is determined; wherein, the preset speed can be set according to actual needs, this embodiment No specific limitation is made; or, according to the preset corresponding relationship between the number of pixel points and the gears of the movement intensity, determine which gear the movement intensity of the image block is in is in.
  • the average value of the motion speed of the pixel points in the image block can also be calculated, and then according to the corresponding relationship between the average value and the coefficient representing the intensity of motion, the image representing the image can be determined.
  • Step 203 according to the motion intensity corresponding to the motion area, identify a dangerous motion area from the motion area.
  • the motion area where the image block greater than the preset motion intensity is located is taken as the motion area.
  • Hazardous sports area For example, the gears of the motion intensity are high, medium, and low. If the preset motion intensity is medium, the motion area where the image block with the high motion intensity is located is a dangerous motion area.
  • Step 204 detecting a moving object from the dangerous moving area.
  • the video processing center inputs the image blocks corresponding to the dangerous motion area into the preset model for processing, and can detect multiple detection frames of the moving object, and obtains the moving object from the multiple detection frames; wherein, the preset model It can be obtained by pre-training according to actual needs, including but not limited to models such as convolutional neural network models.
  • step 204 After step 204, step 205 and step 208 are performed in parallel, step 206 and step 207 are performed after step 205, step 209 is performed after step 208, and step 2010 is entered after the execution of step 207 and step 209.
  • Step 205 Extract characteristic parameters representing the identity of the moving object from the image blocks corresponding to the moving area in each video frame.
  • Step 206 according to the characteristic parameters that characterize the identity of the moving object extracted from each image block, determine the motion trajectory belonging to the same moving object.
  • the video processing center may input the image blocks corresponding to the motion regions in each video frame into the preset model, and the preset model extracts and matches the characteristic parameters representing the identity of the moving objects, and outputs the output belonging to the same moving object
  • the preset model can be obtained by pre-training according to actual needs, and the preset model includes but is not limited to models such as convolutional neural network models.
  • the video processing center can also directly extract the color, appearance, face shape, posture and other characteristic parameters of the moving object to obtain the characteristic parameters representing the identity of the moving object;
  • Matching for example, includes the features that the color of the clothes is red, the face shape is a melon face, and the body is slender as matching features, and then the image block is operated accordingly according to the matching features, that is, for a matching feature, if the i-th When there is no image block including the feature in the video frame, but there is an image block including the feature in the i+nth video frame, then a new motion track is added, and the image block including the feature in the i+n video frames is added.
  • the motion trajectories belonging to the same motion object can be determined according to the set of motion trajectories; wherein, n is a positive integer.
  • the feature parameters are calculated according to the feature parameters representing the identity of the moving object extracted from each image block, and according to the result of the generalized intersection calculation of the coordinates of the detection frame including the moving object. to match.
  • the feature parameters are matched according to the feature parameters representing the identity of the moving object extracted from each image block and the speed of the moving object.
  • the speed of the same moving object changes little, it can be determined as a matching feature according to the comparison result of the difference between the speed and the preset threshold; Matching is also performed according to the speed of the moving object, which can make the matching result more accurate.
  • Step 207 analyze the motion trajectory of the moving object by using a statistical method, and determine the density of the moving object according to the analysis result.
  • statistical methods include but are not limited to the following methods: methods such as histograms, line graphs, etc.; since the motion trajectory of the moving object may only exist in a partial area of the road, for example, for a dangerous motion area, There may be 5 motion trajectories of moving objects in the first half, and 8 motion trajectories of moving objects in the second half.
  • the motion area may be divided according to a preset area or according to each dangerous motion area, etc., the motion trajectories of the moving objects in each divided area are counted by a statistical method, and the motion of the moving objects in each divided area is obtained by analysis.
  • the density of moving objects can be determined only by simple statistical method analysis, and the operation is relatively simple, and at this time, the motion information also includes the density of moving objects, and the factors considered are more comprehensive, so that the movement The information is more accurate, making the safety assessment information of the determined road more accurate.
  • it can also be determined according to the analysis result whether the change trend of the moving object tends to be scattered or tend to converge.
  • Step 208 Extract characteristic parameters representing pedestrian behavior from the image blocks corresponding to the motion regions in each video frame.
  • Step 209 Determine the behavior of the pedestrian according to the characteristic parameters of the same pedestrian extracted from each image block that characterize the behavior of the pedestrian.
  • the video processing center may input the image blocks corresponding to the motion area in each video frame into the preset model, and the preset model outputs the behavior of the pedestrian through the extracted characteristic parameters of the same pedestrian that characterize the behavior of the pedestrian;
  • the preset model can be obtained by pre-training according to actual needs, and the preset model includes but is not limited to models such as convolutional neural network models; and then the feature parameters of the same pedestrian extracted from each image block that characterize pedestrian behavior are successively input into 2D Convolutional neural network model and 1D time-series convolutional neural network model, so that the behavior of pedestrians can be determined;
  • the characteristic parameters that characterize pedestrian behavior include but are not limited to pedestrian speed, spatial position of feature points and other characteristic parameters, behaviors include but not limited to Normal behavior, fighting, robbery, theft, etc.
  • a specific implementation method for determining the behavior of pedestrians is provided, and at this time, the behavior of pedestrians is also included in the motion information, and the factors considered are more comprehensive, so that the motion information is more accurate, and the safety assessment information of the determined road is determined. more precise.
  • Step 2010 Determine the safety assessment information of the road according to the motion information in the motion area.
  • Step 2010 is similar to step 103 and will not be repeated here.
  • steps 205-207 can also be performed before steps 208-209, and in one example, steps 208-209 can also be performed before steps 205-207.
  • step 207 may be performed at any step after step 206.
  • the motion information includes at least one of the following pieces of information: motion trajectories of moving objects, density of moving objects, and behavior of pedestrians. Since the motion trajectories of the moving objects, the density of the moving objects, and the behavior of pedestrians can more accurately reflect the motion information of the moving objects, the safety assessment information of the road can be more accurately determined when the motion information includes at least one of them.
  • the motion information of the moving object includes the motion trajectory of the moving object, the density of the moving object, and the behavior of pedestrians.
  • the factors considered are more comprehensive, so that the motion information is more accurate, and the safety assessment information of the determined road is more accurate.
  • the third embodiment of the present application relates to a road safety assessment method.
  • the third embodiment is substantially the same as the first embodiment, with the main difference being that the road includes a route from the origin to the destination obtained according to the navigation request of the terminal.
  • the road includes a route from the origin to the destination obtained according to the navigation request of the terminal.
  • the safety assessment information of the road After determining the safety assessment information of the road, it also includes: generating navigation information and sending the navigation information to the terminal.
  • the specific flowchart is shown in Figure 6, including:
  • step 301 a video frame sequence collected by a video device installed on the road is acquired, and a motion area in the road is determined.
  • Step 302 Determine the motion information in the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
  • Step 303 Determine the safety assessment information of the road according to the motion information in the motion area.
  • Steps 301-303 are similar to steps 101-103, and are not repeated here.
  • Step 304 select a target road from a plurality of roads according to the safety assessment information of the road, and generate navigation information; wherein, the navigation information includes the target road and the safety assessment information of the target road.
  • safety evaluation information is included for each road; according to the safety evaluation information of the road, a road that satisfies the preset conditions is selected from multiple roads, and navigation information is generated, and the navigation information includes the target road and the target road.
  • Security assessment information; the preset condition may be set according to actual needs, which is not specifically limited in this embodiment. For example: when the safety assessment information includes a safety factor, if it is determined that the safety factors of each road are: 0.8, 0.6, 0.5, 0.3, and the preset condition is that the safety factor is not less than 0.5, select 0.8, Roads corresponding to 0.6 and 0.5.
  • the navigation information further includes a result of sorting the target roads according to the safety assessment information of the target roads.
  • the target roads are sorted according to the safety assessment information of the target roads, and the navigation information includes the sorting results.
  • the user can be made aware of the existence of multiple target roads and the safety conditions of the multiple target roads, which is helpful for the user. Based on actual needs, choose the road by yourself to improve the reference basis.
  • the target roads may also be sorted according to the safety assessment information of the target road, the distance and speed recommendations of the target road, etc., to obtain a sorting result.
  • Step 305 Send the navigation information to the terminal for the terminal to display on the electronic map.
  • the video processing center sends the navigation information to the terminal.
  • the terminal After the terminal receives the navigation information, the terminal presents the navigation information on the electronic map.
  • the navigation information can be displayed in a floating manner, and can be divided into two parts and presented on the electronic map.
  • On the electronic map as shown in Figure 7, a schematic diagram of the interface for presenting navigation information for the electronic map on the terminal, one part is the suggested interface, including the proposed target road and other information, and the other part is the display interface, including the safety assessment information of the target road and other information.
  • the terminal can also display different roads in different colors according to the road safety assessment information, and different colors represent different safety conditions.
  • determining the safety assessment information of the road according to the movement information in the movement area includes: respectively determining the safety assessment information of the different movement areas in the road according to the movement information of the different movement areas in the road.
  • the safety assessment information of different movement areas on the road is determined according to the movement information in different movement areas, that is, the safety assessment information is included for different movement areas in the road, and the safety assessment information of different movement areas can be Different sports areas on the road are displayed in different colors, and different colors represent different safety conditions. For example, red is a sports area with poor safety conditions, and red is used to warn users.
  • the navigation information further includes the location of the video device in the road and a sequence of video frames captured by the video device.
  • the navigation information also includes pedestrians of pedestrians in the road.
  • the display interface for presenting the navigation information on the electronic map on the terminal also includes the location of the video device and the sequence of video frames shot by the video device.
  • the target road selected according to the safety assessment information is a relatively safe road
  • the travel safety of the user is further improved, and the generated navigation information is displayed on the electronic map of the terminal, which makes up for the commonly used electronic Pedestrian safety issues are not considered when providing and displaying alternative roads in the map.
  • the fourth embodiment of the present application relates to a video processing center.
  • the video processing center is a server or terminal with computing performance.
  • the video processing center includes at least one processor 402; and a memory 401 communicatively connected to the at least one processor.
  • the memory 401 stores instructions executable by the at least one processor 402, and the instructions are executed by the at least one processor 402, so that the at least one processor 402 can execute the above embodiments of the road safety assessment method.
  • the memory 401 and the processor 402 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 402 and various circuits of the memory 401 together.
  • the bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein.
  • the bus interface provides the interface between the bus and the transceiver.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium.
  • the data processed by the processor 402 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 402 .
  • the processor 402 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. And the memory 401 may be used to store data used by the processor 402 in performing operations.
  • the fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Educational Administration (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

A road safety assessment method, a video processing center, and a storage medium. The method relates to the technical field of data processing, and the method comprises: acquiring a video frame sequence collected by a video device installed on a road, and determining a motion region in the road (101); according to an image block corresponding to the motion region in each video frame in the video frame sequence, determining motion information in the motion region (102); and according to the motion information in the motion region, determining safety assessment information of the road (103).

Description

道路安全评估方法、视频处理中心及存储介质Road safety assessment method, video processing center and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为“202011595033.7”、申请日为2020年12月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on the Chinese patent application with the application number "202011595033.7" and the application date is December 29, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference. Application.
技术领域technical field
本申请实施例涉及数据处理技术领域,特别涉及一种道路安全评估方法、视频处理中心及存储介质。The embodiments of the present application relate to the technical field of data processing, and in particular, to a road safety assessment method, a video processing center, and a storage medium.
背景技术Background technique
随着大数据技术和云计算技术的发展,智慧城市的理念越来越深入人心,将城市的系统和服务打通、集成,以提升资源运用的效率,优化城市管理和服务,以及改善市民生活质量。在人们的出行方面,终端内的电子地图已经成为人们出行必不可少的辅助工具,目前的电子地图不再局限于查找路径的功能,大多数电子地图还包括了智能语音助手、智能定位、位置搜索服务、交通拥堵展示等功能。然而,常用的电子地图在为人们提供路径时并没有考虑人们在所提供的路径上出行时的安全问题。With the development of big data technology and cloud computing technology, the concept of smart city has become more and more popular among the people. It connects and integrates urban systems and services to improve the efficiency of resource utilization, optimize urban management and services, and improve the quality of life of citizens. . In terms of people's travel, the electronic map in the terminal has become an indispensable auxiliary tool for people's travel. The current electronic map is no longer limited to the function of finding paths. Most electronic maps also include intelligent voice assistants, intelligent positioning, location Search services, traffic jam display and other functions. However, the commonly used electronic maps provide people with routes without considering the safety issues when people travel on the provided routes.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种道路安全评估方法,包括:获取安装在道路上的视频设备采集的视频帧序列,确定所述道路中的运动区域;根据所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块,确定所述运动区域中的运动信息;根据所述运动区域中的运动信息,确定所述道路的安全评估信息。An embodiment of the present application provides a road safety assessment method, including: acquiring a video frame sequence collected by a video device installed on a road, and determining a motion area in the road; according to each of the video frames in the video frame sequence The image block corresponding to the motion area is determined, and the motion information in the motion area is determined; the safety assessment information of the road is determined according to the motion information in the motion area.
本申请实施例还提供了一种视频处理中心,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述所述的道路安全评估方法。Embodiments of the present application further provide a video processing center, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores data that can be executed by the at least one processor The instructions are executed by the at least one processor to enable the at least one processor to perform the road safety assessment method as described above.
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述所述的道路安全评估方法。Embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned road safety assessment method is implemented.
附图说明Description of drawings
图1是根据本申请第一实施例中的道路安全评估方法的流程图;1 is a flowchart of a road safety assessment method according to a first embodiment of the present application;
图2是根据本申请第一实施例中的步骤101的确定道路中的运动区域的流程图;FIG. 2 is a flowchart of determining a motion area in a road according to step 101 in the first embodiment of the present application;
图3是根据本申请第一实施例中的步骤103的一种具体实现方式的流程图;FIG. 3 is a flowchart according to a specific implementation manner of step 103 in the first embodiment of the present application;
图4是根据本申请第二实施例中的道路安全评估方法的流程图;4 is a flowchart of a road safety assessment method according to a second embodiment of the present application;
图5是根据本申请第二实施例中的步骤202的一种具体实现方式的流程图;FIG. 5 is a flowchart according to a specific implementation manner of step 202 in the second embodiment of the present application;
图6是根据本申请第三实施例中的道路安全评估方法的流程图;6 is a flowchart of a road safety assessment method according to a third embodiment of the present application;
图7是根据本申请第三实施例中的终端上的电子地图呈现导航信息的界面的示意图;7 is a schematic diagram of an interface for presenting navigation information on an electronic map on a terminal according to a third embodiment of the present application;
图8是根据本申请第四实施例中的视频处理中心的结构示意图。FIG. 8 is a schematic structural diagram of a video processing center according to a fourth embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种道路安全评估方法、视频处理中心及存储介质,可以提高用户出行的安全性。The embodiments of the present application provide a road safety assessment method, a video processing center, and a storage medium, which can improve the safety of a user's travel.
本申请提出的道路安全评估方法、视频处理中心及存储介质,获取安装在道路上的视频设备采集的视频帧序列,确定道路中的运动区域;根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域中的运动信息;根据运动区域中的运动信息,确定道路的安全评估信息,通过这样的方法,可以为用户提供道路的安全评估信息,使用户知道道路的安全情况,从而提高用户出行的安全性。The road safety assessment method, video processing center and storage medium proposed in this application acquire the video frame sequence collected by the video equipment installed on the road, and determine the motion area in the road; according to the corresponding motion area in each video frame in the video frame sequence According to the motion information in the motion area, the safety assessment information of the road is determined. Through this method, the safety assessment information of the road can be provided for the user, so that the user can know the safety of the road. Thereby, the safety of users' travel is improved.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present application more clear, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can understand that, in each embodiment of the present application, many technical details are provided for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present application, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.
本申请的第一实施例涉及一种道路安全评估方法,应用于视频处理中心,视频处理中心为具有计算性能的服务器或终端,具体流程如图1所示,包括:The first embodiment of the present application relates to a road safety assessment method, which is applied to a video processing center. The video processing center is a server or terminal with computing performance. The specific process is shown in Figure 1, including:
步骤101,获取安装在道路上的视频设备采集的视频帧序列,确定道路中的运动区域。Step 101: Obtain a video frame sequence collected by a video device installed on the road, and determine a motion area on the road.
在本实施例中,道路可能为根据终端的导航请求得到的从始发地和目的地的多条道路,也可能为根据终端的查询请求得到的一条道路,终端为手机、平板电脑等;本实施例中以道路包括一条道路为例进行说明,然不以此为限。视频处理中心可以实时获取安装在道路上的视频设备采集的视频帧序列,或者按照预设周期获取安装在道路上的视频设备采集的视频帧序列,预设周期可以根据实际需要进行设置,本实施例不做具体限定,道路上的视频设备的数量可能大于一个,此时视频处理中心中的视频处理模块分别从每个视频设备获取采集的视频帧序列。在道路上可能存在行人、车辆、动物等会发生运动的运动对象,也存在背景墙、树木等不会发生运动的对象,其中,运动区域为对视频帧序列进行汇总得到的运动对象运动的区域。In this embodiment, the road may be multiple roads from the origin and destination obtained according to the navigation request of the terminal, or may be a road obtained according to the query request of the terminal, and the terminal is a mobile phone, a tablet computer, etc.; In the embodiment, the road includes a road as an example for description, but it is not limited to this. The video processing center can obtain the video frame sequence collected by the video equipment installed on the road in real time, or obtain the video frame sequence collected by the video equipment installed on the road according to the preset period. The preset period can be set according to actual needs. This implementation The example is not specifically limited, and the number of video devices on the road may be greater than one. At this time, the video processing module in the video processing center obtains the captured video frame sequence from each video device. On the road, there may be moving objects such as pedestrians, vehicles, animals, etc. that can move, and there may also be objects that do not move, such as background walls and trees. The moving area is the area where the moving objects move by summarizing the video frame sequence. .
在一个例子中,确定道路中的运动区域的流程图如图2所示,包括:In one example, the flow chart for determining the motion area in the road is shown in Figure 2 and includes:
步骤1011,对视频帧序列中的相邻视频帧进行差分处理,得到各差分图像。 Step 1011 , performing differential processing on adjacent video frames in the video frame sequence to obtain each differential image.
步骤1012,从各差分图像的像素点中选取像素值大于预设阈值的目标像素点,并根据目标像素点确定运动区域。Step 1012: Select target pixels whose pixel values are greater than a preset threshold from the pixels of each differential image, and determine a motion area according to the target pixels.
在本实施例中,视频处理中心将视频帧序列中的相邻视频帧对应的像素点相减,再取差值的绝对值,根据差值的绝对值确定出各差分图像,例如:将视频帧序列中的第一帧视频帧和第二帧视频帧对应的像素点相减,取差值的绝对值,差值的绝对值作为第一帧差分图像的像素点,则可以根据差值的绝对值确定出第一帧差分图像。在得到各差分图像之后,再将各差分图像的像素点与预设阈值进行比较,其中,预设阈值可以根据实际需要进行设置,本实施例不做具体限定,根据比较结果从各差分图像的像素点中选取像素值大于预设阈值的目标 像素点,从而可以抑制掉一定的干扰信息,最终得到的目标像素点组成的区域为运动区域,即对视频帧序列
Figure PCTCN2021133595-appb-000001
中的相邻视频帧进行差分处理,得到差分图像的视频帧序列为
Figure PCTCN2021133595-appb-000002
再将差分图像的视频帧序列
Figure PCTCN2021133595-appb-000003
中的像素点与预设阈值进行比较,抑制掉一定的干扰信息,得到视频帧序列
Figure PCTCN2021133595-appb-000004
通过这样的方法,进行简单的计算即可确定出运动区域,操作简单,提高了评估的速度。
In this embodiment, the video processing center subtracts the pixels corresponding to adjacent video frames in the video frame sequence, then takes the absolute value of the difference, and determines each difference image according to the absolute value of the difference, for example: The pixels corresponding to the first video frame and the second video frame in the frame sequence are subtracted, and the absolute value of the difference is taken. The absolute value determines the first frame differential image. After each differential image is obtained, the pixels of each differential image are compared with a preset threshold, wherein the preset threshold can be set according to actual needs, which is not specifically limited in this embodiment. The target pixels whose pixel values are greater than the preset threshold are selected from the pixel points, so that certain interference information can be suppressed.
Figure PCTCN2021133595-appb-000001
The adjacent video frames in the differential process are processed, and the video frame sequence of the differential image is obtained as
Figure PCTCN2021133595-appb-000002
Then convert the video frame sequence of the differential image
Figure PCTCN2021133595-appb-000003
The pixels in the video are compared with the preset threshold, and certain interference information is suppressed to obtain a video frame sequence.
Figure PCTCN2021133595-appb-000004
Through such a method, the motion area can be determined by performing a simple calculation, the operation is simple, and the evaluation speed is improved.
在一个例子中,在得到视频帧序列
Figure PCTCN2021133595-appb-000005
之后,还对得到的视频帧序列
Figure PCTCN2021133595-appb-000006
进行形态学处理以消除毛刺、平滑边界,得到运动区域,例如:对得到的视频帧序列
Figure PCTCN2021133595-appb-000007
进行膨胀腐蚀操作。在一个例子中,确定道路中的运动区域,包括:通过三帧差分法确定道路中的运动区域。
In one example, after getting a sequence of video frames
Figure PCTCN2021133595-appb-000005
After that, the resulting video frame sequence is also
Figure PCTCN2021133595-appb-000006
Perform morphological processing to remove glitches, smooth boundaries, and obtain motion regions, for example: for the resulting video frame sequence
Figure PCTCN2021133595-appb-000007
Carry out expansion corrosion operation. In one example, determining the motion area in the road includes: determining the motion area in the road through a three-frame difference method.
步骤102,根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域中的运动信息。Step 102: Determine the motion information in the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
本实施例中,从所有的运动区域中检测运动对象,根据各视频帧内与运动区域对应的图像块,确定运动对象在运动区域中的运动信息。其中,运动信息包括以下信息的至少其中之一:运动对象的运动轨迹、运动对象的密集程度、行人的行为,由于运动对象的运动轨迹、运动对象的密集程度、行人的行为均可以更加准确的反映出运动对象的运动信息,所以当运动信息包括其中至少之一时可以更加准确的确定出道路的安全评估信息。In this embodiment, the moving objects are detected from all the moving regions, and the motion information of the moving objects in the moving regions is determined according to the image blocks corresponding to the moving regions in each video frame. Wherein, the motion information includes at least one of the following information: the motion trajectory of the moving objects, the density of the moving objects, and the behavior of pedestrians. Since the motion trajectory of the moving objects, the density of the moving objects, and the behavior of pedestrians can all be more accurate The motion information of the moving object is reflected, so when the motion information includes at least one of them, the safety assessment information of the road can be more accurately determined.
步骤103,根据运动区域中的运动信息,确定道路的安全评估信息。Step 103: Determine the safety assessment information of the road according to the motion information in the motion area.
在一个例子中,运动信息包括行人的行为和运动对象的密集程度,安全评估信息包括安全系数,根据运动区域中的运动信息,确定道路的安全评估信息的具体流程图如图3所示,包括:In one example, the motion information includes the behavior of pedestrians and the density of moving objects, and the safety assessment information includes a safety factor. :
步骤1031,根据运动对象的密集程度,确定表征道路上拥堵情况的第一系数。Step 1031: Determine a first coefficient representing the congestion on the road according to the density of the moving objects.
步骤1032,根据行人的行为,确定表征道路上行为安全的第二系数。Step 1032: Determine a second coefficient representing behavior safety on the road according to the behavior of the pedestrian.
在一个例子中,视频处理中心预先建立整条道路上的运动对象的密集程度和表征道路上拥堵情况的第一系数的对应关系,以及行人的行为和表征道路上行为安全的第二系数的对应关系,例如:当整条道路上的运动对象的密集程度为高档时,表征道路上拥堵情况的第一系数为0.4,行人的行为包括打架时,表征道路上行为安全的第二系数为0.4。In one example, the video processing center pre-establishes the correspondence between the density of moving objects on the entire road and the first coefficient representing the congestion situation on the road, and the correspondence between the behavior of pedestrians and the second coefficient representing the behavior safety on the road For example, when the density of moving objects on the entire road is high, the first coefficient representing the congestion on the road is 0.4, and when the pedestrian’s behavior includes fighting, the second coefficient representing the safety of behavior on the road is 0.4.
在一个例子中,根据运动对象的密集程度,确定表征道路上拥堵情况的第一系数,包括:根据各危险运动区域中运动对象的密集程度,确定各危险运动区域分别对应的表征危险运动区域拥堵情况的第一子系数,根据各第一子系数,确定表征道路上拥堵情况的第一系数;根据行人的行为,确定表征道路上行为安全的第二系数,包括:根据各危险运动区域中行人的行为,确定各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数;根据各第二子系数,确定表征道路上行为安全的第二系数。In one example, determining the first coefficient representing the congestion situation on the road according to the density of moving objects includes: according to the density of moving objects in each dangerous motion area, determining the corresponding congestion of each dangerous motion area and representing the congestion in the dangerous motion area The first sub-coefficient of the situation, according to each first sub-coefficient, determine the first coefficient that characterizes the congestion situation on the road; according to the behavior of pedestrians, determine the second coefficient that characterizes the behavior safety on the road, including: according to the pedestrians in each dangerous movement area determine the second sub-coefficient representing the behavioral safety of the dangerous motion area corresponding to each dangerous motion area; and determine the second coefficient representing the behavioral safety on the road according to each second sub-coefficient.
在本实施例中,视频处理中心预先建立危险运动区域的运动对象的密集程度和系数的对应关系,将对应的系数作为表征危险运动区域拥堵情况的第一子系数,以及预先建立危险运动区域中行人的行为和系数的对应关系,将对应的系数作为表征道路上行为安全的第二子系数;在得到各第一子系数之后,取各第一子系数的平均值作为表征道路上拥堵情况的第一系数,例如,各危险运动区域中运动对象的密集程度分别为:高、高、中、低,根据对应关系得到各危险运动区域分别对应的表征危险运动区域拥堵情况的第一子系数分别为:0.4、0.4、0.3、0.1,则表征道路上拥堵情况的第一系数为各第一子系数的平均值0.3;在得到第二子系 数之后,取各第二子系数的平均值作为表征道路上行为安全的第二系数,例如,各危险运动区域中行人的行为分别为:打架、打架和抢劫、抢劫、正常行为,其中,若某一个危险运动区域中包括两种行人的行为,则可以将两种行人的行为分别对应的系数相加的结果作为最终的系数,根据对应关系得到各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数分别为:0.4、1、0.6、0,则表征道路上行为安全的第二系数为各第二子系数的平均值0.5。在一个例子中,在得到各第一子系数之后,也可以对各第一子系数进行求和处理,将求和处理的结果作为表征道路上拥堵情况的第一系数,在得到各第二子系数之后,也可以对各第二子系数进行求和处理,将求和处理的结果作为表征道路上拥堵情况的第二系数。In this embodiment, the video processing center pre-establishes the correspondence between the density of moving objects in the dangerous movement area and the coefficients, uses the corresponding coefficient as the first sub-coefficient representing the congestion situation in the dangerous movement area, and pre-establishes the density of the moving objects in the dangerous movement area The corresponding relationship between pedestrian behavior and coefficient, the corresponding coefficient is used as the second sub-coefficient to characterize the behavior safety on the road; after each first sub-coefficient is obtained, the average value of each first sub-coefficient is taken as the indicator of road congestion. The first coefficient, for example, the density of moving objects in each dangerous sports area is: high, high, medium, and low, respectively, according to the corresponding relationship, the first sub-coefficients representing the congestion situation of the dangerous sports area corresponding to each dangerous sports area are obtained respectively. is: 0.4, 0.4, 0.3, 0.1, then the first coefficient representing the congestion on the road is the average value of each first sub-coefficient 0.3; after obtaining the second sub-coefficient, the average value of each second sub-coefficient is taken as the representation The second coefficient of behavioral safety on the road, for example, the behaviors of pedestrians in each dangerous sports area are: fighting, fighting and robbery, robbery, and normal behavior. The result of adding the coefficients corresponding to the behaviors of the two pedestrians can be used as the final coefficient. According to the corresponding relationship, the second sub-coefficients representing the behavioral safety of the dangerous motion areas corresponding to each dangerous motion area are respectively: 0.4, 1, 0.6 , 0, then the second coefficient representing behavior safety on the road is the average value of each second sub-coefficient 0.5. In an example, after each first sub-coefficient is obtained, a summation process may also be performed on each of the first sub-coefficients, and the result of the summation process is used as the first coefficient representing the congestion situation on the road, and after each second sub-coefficient is obtained After the coefficients, the second sub-coefficients can also be summed, and the result of the summation can be used as a second coefficient representing the congestion on the road.
步骤1033,根据第一系数和第二系数,确定道路的安全系数。Step 1033: Determine the safety factor of the road according to the first coefficient and the second coefficient.
在本实施例中,视频处理中心可以对第一系数和第二系数进行相加或相乘等计算,将计算结果作为道路的安全系数。例如:表征道路上拥堵情况的第一系数为0.4,表征道路上行为安全的第二系数为0.4,则进行相乘的计算,得到道路的安全系数为0.16。In this embodiment, the video processing center may perform calculations such as addition or multiplication of the first coefficient and the second coefficient, and use the calculation result as the safety coefficient of the road. For example, if the first coefficient representing the congestion on the road is 0.4, and the second coefficient representing the behavior safety on the road is 0.4, the multiplication calculation is performed to obtain the safety coefficient of the road as 0.16.
通过这样的方法,在确定道路的安全系数时,同时考虑了表征道路上拥堵情况的第一系数和表征道路上行为安全的第二系数,考虑的因素更加全面,使得道路的安全系数更加准确,且通过系数可以更直观的标识道路的安全情况。Through this method, when determining the safety factor of the road, the first factor representing the congestion on the road and the second factor representing the behavioral safety on the road are considered at the same time. The factors considered are more comprehensive and the safety factor of the road is more accurate. And the pass coefficient can more intuitively identify the safety of the road.
在一个例子中,根据各危险运动区域中行人的行为,确定各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数,包括:从预设数据库中获取各危险运动区域中历史行为的发生概率;其中,预设数据库包括不同的运动区域在历史时间段内发生的历史行为及历史行为的发生概率;根据各危险运动区域中行人的行为和各危险运动区域中所述历史行为的发生概率,确定各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数。In an example, according to the behavior of pedestrians in each dangerous movement area, determining the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area, including: obtaining historical behaviors in each dangerous movement area from a preset database The preset database includes the historical behaviors and the probability of occurrence of historical behaviors in different sports areas in the historical time period; according to the behavior of pedestrians in each dangerous sports area and the historical behaviors The probability of occurrence is determined, and the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area is determined.
在本实施例中,预设数据库可以存储在视频处理中心本地,当视频处理中心需要时从本地直接获取;也可以存储在外部服务器,当视频处理中心需要时从外部服务器获取。预设数据库中包括不同的运动区域在历史时间段内发生的历史行为及历史行为的发生概率,所以视频处理中心可以从预设数据库中获取各危险运动区域中历史行为的发生概率,且视频处理中心内预先存储有危险运动区域中行人的行为和系数的对应关系,则将各危险运动区域中行人的行为分别对应的系数和各危险运动区域中历史行为的发生概率进行加权求和,得到的结果作为各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数。例如:各危险运动区域中行人的行为分别为:打架、打架和抢劫、抢劫、正常行为,根据对应关系得到对应的系数分别为:0.4、1、0.6、0,各危险运动区域中历史行为的发生概率分别为:打架0.4和抢劫0.3、打架0.2和抢劫0.4、打架0.3和抢劫0.2、打架0.1和抢劫0.1,则将各危险运动区域分别对应的系数和各危险运动区域中历史行为的发生概率进行加权求和,得到的结果分别为:0.16、0.32、0.12、0。通过这样的方法,在确定第二子系数时,还考虑了预设数据库中各危险运动区域中历史行为发生的概率,考虑的更加全面,这样可以更加准确的确定出各危险运动区域分别对应的第二子系数。In this embodiment, the preset database can be stored locally in the video processing center, and obtained directly from the local when the video processing center needs it; it can also be stored in an external server and obtained from the external server when the video processing center needs it. The preset database includes the historical behaviors and the probability of occurrence of historical behaviors in different motion areas in the historical time period, so the video processing center can obtain the probability of occurrence of historical behaviors in each dangerous motion area from the preset database, and the video processing The center pre-stores the corresponding relationship between the behaviors and coefficients of pedestrians in the dangerous motion areas, then the coefficients corresponding to the behaviors of pedestrians in each dangerous motion area and the probability of occurrence of historical behaviors in each dangerous motion area are weighted and summed to obtain The result is used as the second sub-coefficient representing the behavioral safety of the dangerous movement area corresponding to each dangerous movement area. For example, the behaviors of pedestrians in each dangerous sports area are: fighting, fighting and robbery, robbery, and normal behavior. According to the corresponding relationship, the corresponding coefficients are: 0.4, 1, 0.6, and 0, respectively. The occurrence probabilities are: fight 0.4 and robbery 0.3, fight 0.2 and robbery 0.4, fight 0.3 and robbery 0.2, fight 0.1 and robbery 0.1, then the coefficients corresponding to each dangerous sports area and the probability of occurrence of historical behavior in each dangerous sports area are calculated respectively. The weighted summation is carried out, and the obtained results are: 0.16, 0.32, 0.12, 0, respectively. Through this method, when determining the second sub-coefficient, the probability of historical behaviors in each dangerous sports area in the preset database is also considered, which is more comprehensive, so that the corresponding dangerous sports areas can be determined more accurately. Second sub-coefficient.
在一个例子中,在确定各危险运动区域分别对应的表征危险运动区域拥堵情况的第一子系数和确定各危险运动区域分别对应的表征危险运动区域行为安全的第二子系数之后,还包括:根据各第一子系数和各第二子系数,确定各危险运动区域分别对应的安全系数,并根据各危险运动区域分别对应的安全系数。在本实施例中,对于一个危险运动区域,将该运动区域对应的第一系数和第二系数进行相乘或相加,得到的结果作为危险运动区域对应的安全系 数,例如:各危险运动区域分别对应的第一子系数分别为:0.4、0.4、0.3、0.1,各危险运动区域分别对应的第二子系数分别为:0.4、1、0.6、0,若进行相乘,则各危险运动区域对应的安全系数分别为:0.16、0.4、0.18、0。在一个例子中,在得到各危险运动区域分别对应的安全系数之后,还包括:将各危险运动区域分别对应的安全系数发送给终端,终端在电子地图上以不同的颜色进行显示。在本实施例中,可以根据各危险运动区域的系数确定安全等级,并根据预设的表征安全等级的颜色,对各危险运动区域进行不同颜色的标识,不同的颜色表示不同的安全等级。In one example, after determining the first sub-coefficient corresponding to each dangerous movement area and representing the congestion situation in the dangerous movement area and determining the second sub-coefficient corresponding to each dangerous movement area and representing the behavioral safety of the dangerous movement area, the method further includes: According to each of the first sub-coefficients and each of the second sub-coefficients, the respective safety factors corresponding to each dangerous movement area are determined, and the respective safety factors corresponding to each dangerous movement area are determined. In this embodiment, for a dangerous movement area, the first coefficient and the second coefficient corresponding to the movement area are multiplied or added, and the obtained result is used as the safety factor corresponding to the dangerous movement area, for example: each dangerous movement area The corresponding first sub-coefficients are: 0.4, 0.4, 0.3, and 0.1, respectively, and the second sub-coefficients corresponding to each dangerous sports area are: 0.4, 1, 0.6, and 0, respectively. The corresponding safety factors are: 0.16, 0.4, 0.18, and 0, respectively. In an example, after obtaining the safety factors corresponding to the dangerous movement areas, the method further includes: sending the safety factors corresponding to the dangerous movement areas to the terminal, and the terminal displays the safety factors in different colors on the electronic map. In this embodiment, the safety level can be determined according to the coefficient of each dangerous movement area, and each dangerous movement area is marked with different colors according to the preset colors representing the safety level, and different colors represent different safety levels.
在一个例子中,根据运动区域中的运动信息,确定道路的安全评估信息,包括:根据道路中不同运动区域的运动信息,分别确定道路中不同运动区域的安全评估信息。在本实施例中,将道路划分为不同运动区域,可以按照预设的长度进行划分,本实施例不做具体限定。根据不同运动区域中的运动信息,确定道路中不同运动区域的安全评估信息,即对于道路中不同运动区域均包括安全评估信息,这样可以使得安全评估信息更加的全面。In an example, determining the safety assessment information of the road according to the movement information in the movement area includes: respectively determining the safety assessment information of the different movement areas in the road according to the movement information of the different movement areas in the road. In this embodiment, the road is divided into different motion areas, which may be divided according to preset lengths, which is not specifically limited in this embodiment. According to the motion information in different motion areas, the safety assessment information of different motion areas in the road is determined, that is, the safety assessment information is included for different motion areas in the road, which can make the safety assessment information more comprehensive.
本实施例中,获取安装在道路上的视频设备采集的视频帧序列,确定道路中的运动区域;根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域中的运动信息;根据运动区域中的运动信息,确定道路的安全评估信息,通过这样的方法,可以为用户提供道路的安全评估信息,使用户知道道路的安全情况,从而提高用户出行的安全性。In this embodiment, the video frame sequence collected by the video equipment installed on the road is acquired to determine the motion area in the road; the motion information in the motion area is determined according to the image blocks corresponding to the motion area in each video frame in the video frame sequence ; According to the motion information in the motion area, determine the safety assessment information of the road, through this method, the user can be provided with the safety assessment information of the road, so that the user can know the safety of the road, thereby improving the safety of the user's travel.
本申请的第二实施例涉及一种道路安全评估方法,第二实施例与第一实施例大致相同,主要区别之处在于:运动信息包括运动对象的运动轨迹、运动对象的密集程度、行人的行为,且给出了确定运动对象的运动轨迹、运动对象的密集程度、行人的行为的具体实现,具体流程图如图4所示,包括:The second embodiment of the present application relates to a road safety assessment method. The second embodiment is roughly the same as the first embodiment, with the main difference being that the motion information includes the motion trajectory of the moving object, the density of the moving object, the pedestrian's The specific implementation of determining the motion trajectory of moving objects, the density of moving objects, and the behavior of pedestrians is given. The specific flowchart is shown in Figure 4, including:
步骤201,获取安装在道路上的视频设备采集的视频帧序列,确定道路中的运动区域。In step 201, a video frame sequence collected by a video device installed on the road is acquired, and a motion area in the road is determined.
步骤201与步骤101类似,在此不再赘述。Step 201 is similar to step 101 and will not be repeated here.
步骤202,根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域对应的运动剧烈程度。Step 202: Determine the motion intensity corresponding to the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
在一个例子中,根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域对应的运动剧烈程度的具体流程图如图5所示,包括:In an example, according to the image blocks corresponding to the motion area in each video frame in the video frame sequence, the specific flowchart of determining the motion intensity corresponding to the motion area is shown in FIG. 5 , including:
步骤2021,利用光流法分别计算视频帧序列中各视频帧内与运动区域对应的图像块中像素点的光流值。 Step 2021 , using the optical flow method to calculate the optical flow values of the pixels in the image blocks corresponding to the motion area in each video frame in the video frame sequence respectively.
在本实施例中,光流值在图像中的含义是指动作向量,包括像素点的运动速度和方向。视频处理中心利用光流法可以分别计算出视频帧序列中各视频帧内与运动区域对应的图像块中像素点的光流值,像素点的光流值包括像素点的运动速度和方向。In this embodiment, the meaning of the optical flow value in the image refers to the motion vector, including the motion speed and direction of the pixel point. The video processing center can use the optical flow method to calculate the optical flow value of the pixel in the image block corresponding to the motion area in each video frame sequence. The optical flow value of the pixel includes the motion speed and direction of the pixel.
步骤2022,根据光流值确定运动区域对应的运动剧烈程度。Step 2022: Determine the motion intensity corresponding to the motion area according to the optical flow value.
在一个例子中,对于运动区域中的每个图像块,将图像块中像素点的运动速度与预设速度进行比较,根据比较结果确定出大于预设速度的像素点的数量,再根据预先设定的像素点的数量和表征运动剧烈程度的系数的对应关系,确定出表征该图像块所在的运动区域的运动剧烈程度的系数;其中,预设速度可以根据实际需要进行设定,本实施例不做具体限定;或者,根据预先设定的像素点的数量和运动剧烈程度的档位的对应关系,确定该图像块所在的运动剧烈程度处于哪一档。在一个例子中,对于运动区域中的每个图像块,也可以计算图像块中像素点的运动速度的平均值,再根据平均值和表征运动剧烈程度的系数的对应关系,确 定出表征该图像所在的运动区域的运动剧烈程度的系数;或者,根据平均值和运动剧烈程度的档位的对应关系,确定该图像块所在的运动剧烈程度处于哪一档。通过这样的方法,利用光流法可以更加准确的确定出图像块中像素点的光流值,从而更加准确的确定出运动区域对应的运动剧烈程度。In one example, for each image block in the motion area, the motion speed of the pixels in the image block is compared with a preset speed, and the number of pixels greater than the preset speed is determined according to the comparison result, and then the number of pixels greater than the preset speed is determined according to the preset speed. The corresponding relationship between the number of predetermined pixels and the coefficient representing the intensity of motion is determined, and the coefficient representing the intensity of motion in the motion region where the image block is located is determined; wherein, the preset speed can be set according to actual needs, this embodiment No specific limitation is made; or, according to the preset corresponding relationship between the number of pixel points and the gears of the movement intensity, determine which gear the movement intensity of the image block is in is in. In an example, for each image block in the motion area, the average value of the motion speed of the pixel points in the image block can also be calculated, and then according to the corresponding relationship between the average value and the coefficient representing the intensity of motion, the image representing the image can be determined. The coefficient of the motion intensity of the motion area where it is located; or, according to the corresponding relationship between the average value and the gear of the motion intensity, determine which gear the motion intensity of the image block is in. Through such a method, the optical flow value of the pixels in the image block can be more accurately determined by the optical flow method, so as to more accurately determine the motion intensity corresponding to the motion area.
步骤203,根据运动区域对应的运动剧烈程度,从运动区域中识别出危险运动区域。 Step 203 , according to the motion intensity corresponding to the motion area, identify a dangerous motion area from the motion area.
在本实施例中,对于运动区域中的每个图像块,根据该图像块的运动剧烈程度是否高于预设的运动剧烈程度,将大于预设的运动剧烈程度的图像块所在的运动区域作为危险运动区域。例如:运动剧烈程度的档位为高、中、低,若预设的运动剧烈程度为中,则运动剧烈程度为高的图像块所在的运动区域为危险运动区域。In this embodiment, for each image block in the motion area, according to whether the motion intensity of the image block is higher than the preset motion intensity, the motion area where the image block greater than the preset motion intensity is located is taken as the motion area. Hazardous sports area. For example, the gears of the motion intensity are high, medium, and low. If the preset motion intensity is medium, the motion area where the image block with the high motion intensity is located is a dangerous motion area.
步骤204,从危险运动区域中检测出运动对象。 Step 204, detecting a moving object from the dangerous moving area.
在本实施例中,视频处理中心将危险运动区域对应的图像块输入预设模型中进行处理可以检测出运动对象的多个检测框,从多个检测框中得到运动对象;其中,预设模型可以根据实际需要预先进行训练得到,包括但不限于卷积神经网络模型等模型。In this embodiment, the video processing center inputs the image blocks corresponding to the dangerous motion area into the preset model for processing, and can detect multiple detection frames of the moving object, and obtains the moving object from the multiple detection frames; wherein, the preset model It can be obtained by pre-training according to actual needs, including but not limited to models such as convolutional neural network models.
在步骤204之后,步骤205和步骤208并列进行,步骤206和步骤207在步骤205之后进行,步骤209在步骤208之后进行,步骤207和步骤209执行完毕均进入步骤2010。After step 204, step 205 and step 208 are performed in parallel, step 206 and step 207 are performed after step 205, step 209 is performed after step 208, and step 2010 is entered after the execution of step 207 and step 209.
步骤205,从各视频帧内与运动区域对应的图像块中,提取表征运动对象身份的特征参数。Step 205: Extract characteristic parameters representing the identity of the moving object from the image blocks corresponding to the moving area in each video frame.
步骤206,根据从各图像块提取的表征运动对象身份的特征参数,确定属于同一个运动对象的运动轨迹。 Step 206 , according to the characteristic parameters that characterize the identity of the moving object extracted from each image block, determine the motion trajectory belonging to the same moving object.
在本实施例中,视频处理中心可以将各视频帧内与运动区域对应的图像块输入预设模型中,预设模型通过提取表征运动对象身份的特征参数并进行匹配,输出属于同一个运动对象的运动轨迹;其中,预设模型可以根据实际需要预先进行训练得到,预设模型包括但不限于卷积神经网络模型等模型。视频处理中心也可以直接提取运动对象的颜色、外观、脸型、体态等特征参数,得到表征运动对象身份的特征参数;再根据从各图像块提取的表征运动对象身份的特征参数,将特征参数进行匹配,例如:包括衣服颜色为红色、脸型为瓜子脸、体态为苗条的特征为匹配的特征,再根据匹配的特征对图像块进行相应的操作,即对于某一匹配的特征,若第i个视频帧中不存在包括该特征的图像块时而第i+n个视频帧中存在包括该特征的图像块,则新增一条运动轨迹,将i+n个视频帧中包括该特征的图像块加入运动轨迹的集合中,若第i个视频帧中存在包括该特征的图像块而i+n个视频帧中不存在包括该特征的图像块,则不将i+n个视频帧加入已经存在的运动轨迹的集合中,若第i个视频帧中存在包括该特征的图像块而第i+n个视频帧中也存在包括该特征的图像块,则将i+n个视频帧加入已经存在的运动轨迹的集合中,则根据运动轨迹的集合可以确定出属于同一个运动对象的运动轨迹;其中,n为正整数。通过这样的方法,通过了一种确定属于同一个运动对象的运动轨迹的具体实现方式。In this embodiment, the video processing center may input the image blocks corresponding to the motion regions in each video frame into the preset model, and the preset model extracts and matches the characteristic parameters representing the identity of the moving objects, and outputs the output belonging to the same moving object Wherein, the preset model can be obtained by pre-training according to actual needs, and the preset model includes but is not limited to models such as convolutional neural network models. The video processing center can also directly extract the color, appearance, face shape, posture and other characteristic parameters of the moving object to obtain the characteristic parameters representing the identity of the moving object; Matching, for example, includes the features that the color of the clothes is red, the face shape is a melon face, and the body is slender as matching features, and then the image block is operated accordingly according to the matching features, that is, for a matching feature, if the i-th When there is no image block including the feature in the video frame, but there is an image block including the feature in the i+nth video frame, then a new motion track is added, and the image block including the feature in the i+n video frames is added. In the set of motion trajectories, if there is an image block including the feature in the i-th video frame and there is no image block including the feature in the i+n video frames, then the i+n video frames are not added to the existing ones. In the set of motion trajectories, if there is an image block including the feature in the i-th video frame and an image block including the feature in the i+n-th video frame, then add the i+n video frames to the existing image block. In the set of motion trajectories, the motion trajectories belonging to the same motion object can be determined according to the set of motion trajectories; wherein, n is a positive integer. Through such a method, a specific implementation method for determining the motion trajectories belonging to the same moving object is adopted.
在一个例子中,在将特征进行匹配时,根据从各图像块提取的表征运动对象身份的特征参数,以及根据对包括运动对象的检测框的坐标进行广义交并比计算的结果,将特征参数进行匹配。在本实施例中,广义交并比可以用来衡量两个任意形状的相关性,例如:两个任意的形状为A和B,广义交并比=(A∩B)/(A∪B);即视频处理中心除了根据表征运动对象身份的特征进行匹配,还根据广义交并比计算的结果进行匹配,这样可以使得匹配的结果更加 的准确。In one example, when the features are matched, the feature parameters are calculated according to the feature parameters representing the identity of the moving object extracted from each image block, and according to the result of the generalized intersection calculation of the coordinates of the detection frame including the moving object. to match. In this embodiment, the generalized intersection ratio can be used to measure the correlation between two arbitrary shapes. For example, two arbitrary shapes are A and B, and the generalized intersection ratio=(A∩B)/(A∪B) ; That is, the video processing center performs matching not only according to the features that characterize the identity of the moving object, but also according to the calculation result of the generalized intersection ratio, which can make the matching result more accurate.
在一个例子中,在将特征进行匹配时,根据从个图像块提取的表征运动对象身份的特征参数,以及根据运动对象的速度,将特征参数进行匹配。在本实施例中,属于同一个运动对象的速度变化较小,则可以根据速度的差值与预设阈值的比较结果来确定为匹配的特征;即视频处理中心除了根据表征运动对象身份的特征进行匹配,还根据运动对象的速度进行匹配,这样可以使得匹配的结果更加的准确。In one example, when the features are matched, the feature parameters are matched according to the feature parameters representing the identity of the moving object extracted from each image block and the speed of the moving object. In this embodiment, if the speed of the same moving object changes little, it can be determined as a matching feature according to the comparison result of the difference between the speed and the preset threshold; Matching is also performed according to the speed of the moving object, which can make the matching result more accurate.
步骤207,利用统计学方法对运动对象的运动轨迹进行分析,根据分析结果确定运动对象的密集程度。 Step 207 , analyze the motion trajectory of the moving object by using a statistical method, and determine the density of the moving object according to the analysis result.
在本实施例中,统计学方法包括但不限于以下方法:直方图、折线图等方法;由于运动对象的运动轨迹可能只存在于道路的部分区域中,例如:对于一个危险运动区域来说,可能在前半部分存在5条运动对象的运动轨迹,在后半部分存在8条运动对象的运动轨迹。本实施例中可以将运动区域按照预设的面积或者按照各危险运动区域等进行划分,通过统计学的方法统计各划分区域中运动对象的运动轨迹,并分析得到各划分区域中运动对象的运动轨迹的数量以及数量的变化情况,再根据数量以及数量的变化情况与运动对象的密集程度的档位的对应关系,确定各划分区域中中运动对象的密集程度;其中,密集程度的档位可以为高、中、低三档等,也可以为第一档、第二档、第三档等。在得到各划分区域中运动对象的密集程度之后,还可以根据各划分区域中运动对象的密集程度,获取整条道路上的运动对象的密集程度,例如:若各危险运动区域中运动对象的密集程度为高档的个数大于预设数量时,则整条道路上的运动对象的密集程度为高档。通过这样的方法,仅通过简单的统计学方法进行分析即可确定出运动对象的密集程度,操作较简单,且此时运动信息中还包括运动对象的密集程度,考虑的因素更加全面,使得运动信息更加准确,使得确定的道路的安全评估信息更加准确。在一个例子中,还可以根据分析结果确定出运动对象的变化动向是趋于分散还是趋于聚合。In this embodiment, statistical methods include but are not limited to the following methods: methods such as histograms, line graphs, etc.; since the motion trajectory of the moving object may only exist in a partial area of the road, for example, for a dangerous motion area, There may be 5 motion trajectories of moving objects in the first half, and 8 motion trajectories of moving objects in the second half. In this embodiment, the motion area may be divided according to a preset area or according to each dangerous motion area, etc., the motion trajectories of the moving objects in each divided area are counted by a statistical method, and the motion of the moving objects in each divided area is obtained by analysis. The number of trajectories and the change of the number, and then according to the corresponding relationship between the change of the number and the number and the gear of the density of the moving objects, determine the density of the moving objects in each divided area; among them, the density of the gear can be It is high, medium and low gears, etc. It can also be the first gear, the second gear, the third gear and so on. After obtaining the density of moving objects in each divided area, you can also obtain the density of moving objects on the entire road according to the density of moving objects in each divided area. For example, if the density of moving objects in each dangerous motion area is dense When the number of high-grade levels is greater than the preset number, the density of moving objects on the entire road is high-grade. Through this method, the density of moving objects can be determined only by simple statistical method analysis, and the operation is relatively simple, and at this time, the motion information also includes the density of moving objects, and the factors considered are more comprehensive, so that the movement The information is more accurate, making the safety assessment information of the determined road more accurate. In an example, it can also be determined according to the analysis result whether the change trend of the moving object tends to be scattered or tend to converge.
步骤208,从各视频帧内与运动区域对应的图像块中,提取表征行人行为的特征参数。Step 208: Extract characteristic parameters representing pedestrian behavior from the image blocks corresponding to the motion regions in each video frame.
步骤209,根据从各图像块提取的同一个行人的表征行人行为的特征参数,确定行人的行为。Step 209: Determine the behavior of the pedestrian according to the characteristic parameters of the same pedestrian extracted from each image block that characterize the behavior of the pedestrian.
在本实施例中,视频处理中心可以将各视频帧内与运动区域对应的图像块输入预设模型中,预设模型通过提取的同一个行人的表征行人行为的特征参数,输出行人的行为;其中,预设模型可以根据实际需要预先进行训练得到,预设模型包括但不限于卷积神经网络模型等模型;再将从各图像块提取的同一个行人的表征行人行为的特征参数先后输入2D卷积神经网络模型和1D时序卷积神经网络模型,从而可以确定行人的行为;其中,表征行人行为的特征参数包括但不限于行人速度,特征点的空间位置等特征参数,行为包括但不限于正常行为、打架、抢劫、盗窃等行为。通过这样的方法,提供了一种确定行人的行为的具体实现方式,且此时运动信息中还包括行人的行为,考虑的因素更加全面,使得运动信息更加准确,使得确定的道路的安全评估信息更加准确。In this embodiment, the video processing center may input the image blocks corresponding to the motion area in each video frame into the preset model, and the preset model outputs the behavior of the pedestrian through the extracted characteristic parameters of the same pedestrian that characterize the behavior of the pedestrian; Among them, the preset model can be obtained by pre-training according to actual needs, and the preset model includes but is not limited to models such as convolutional neural network models; and then the feature parameters of the same pedestrian extracted from each image block that characterize pedestrian behavior are successively input into 2D Convolutional neural network model and 1D time-series convolutional neural network model, so that the behavior of pedestrians can be determined; wherein, the characteristic parameters that characterize pedestrian behavior include but are not limited to pedestrian speed, spatial position of feature points and other characteristic parameters, behaviors include but not limited to Normal behavior, fighting, robbery, theft, etc. Through this method, a specific implementation method for determining the behavior of pedestrians is provided, and at this time, the behavior of pedestrians is also included in the motion information, and the factors considered are more comprehensive, so that the motion information is more accurate, and the safety assessment information of the determined road is determined. more precise.
步骤2010,根据运动区域中的运动信息,确定道路的安全评估信息。Step 2010: Determine the safety assessment information of the road according to the motion information in the motion area.
步骤2010与步骤103类似,在此不再赘述。 Step 2010 is similar to step 103 and will not be repeated here.
在一个例子中,步骤205-207也可以在步骤208-209之前进行,在一个例子中,步骤208-209也可以在步骤205-207之前进行。在一个例子中,步骤207在步骤206之后的任何一步进行 均可以。In one example, steps 205-207 can also be performed before steps 208-209, and in one example, steps 208-209 can also be performed before steps 205-207. In one example, step 207 may be performed at any step after step 206.
在一个例子中,运动信息包括以下信息的至少其中之一:运动对象的运动轨迹、运动对象的密集程度、行人的行为。由于运动对象的运动轨迹、运动对象的密集程度、行人的行为均可以更加准确的反映出运动对象的运动信息,所以当运动信息包括其中至少之一时可以更加准确的确定出道路的安全评估信息。In one example, the motion information includes at least one of the following pieces of information: motion trajectories of moving objects, density of moving objects, and behavior of pedestrians. Since the motion trajectories of the moving objects, the density of the moving objects, and the behavior of pedestrians can more accurately reflect the motion information of the moving objects, the safety assessment information of the road can be more accurately determined when the motion information includes at least one of them.
本实施例中,运动对象的运动信息包括运动对象的运动轨迹、运动对象的密集程度、行人的行为,考虑的因素更加全面,使得运动信息更加准确,使得确定的道路的安全评估信息更加准确。In this embodiment, the motion information of the moving object includes the motion trajectory of the moving object, the density of the moving object, and the behavior of pedestrians. The factors considered are more comprehensive, so that the motion information is more accurate, and the safety assessment information of the determined road is more accurate.
本申请的第三实施例涉及一种道路安全评估方法,第三实施例与第一实施例大致相同,主要区别之处在于:道路包括根据终端的导航请求得到的从始发地到目的地的多条道路,在确定道路的安全评估信息之后,还包括:生成导航信息,并将导航信息发送至终端,具体流程图如图6所示,包括:The third embodiment of the present application relates to a road safety assessment method. The third embodiment is substantially the same as the first embodiment, with the main difference being that the road includes a route from the origin to the destination obtained according to the navigation request of the terminal. For multiple roads, after determining the safety assessment information of the road, it also includes: generating navigation information and sending the navigation information to the terminal. The specific flowchart is shown in Figure 6, including:
步骤301,获取安装在道路上的视频设备采集的视频帧序列,确定道路中的运动区域。In step 301, a video frame sequence collected by a video device installed on the road is acquired, and a motion area in the road is determined.
步骤302,根据视频帧序列中各视频帧内与运动区域对应的图像块,确定运动区域中的运动信息。Step 302: Determine the motion information in the motion area according to the image blocks corresponding to the motion area in each video frame in the video frame sequence.
步骤303,根据运动区域中的运动信息,确定道路的安全评估信息。Step 303: Determine the safety assessment information of the road according to the motion information in the motion area.
步骤301-303与步骤101-103类似,在此不再赘述。Steps 301-303 are similar to steps 101-103, and are not repeated here.
步骤304,根据道路的安全评估信息,从多条道路中选择目标道路,并生成导航信息;其中,导航信息包括目标道路和目标道路的安全评估信息。 Step 304 , select a target road from a plurality of roads according to the safety assessment information of the road, and generate navigation information; wherein, the navigation information includes the target road and the safety assessment information of the target road.
在本实施例中,对于每条道路均包括安全评估信息;根据道路的安全评估信息,从多条道路中选择满足预设条件的道路,并生成导航信息,导航信息包括目标道路和目标道路的安全评估信息;预设条件可以根据实际需要进行设置,本实施例不做具体限定。例如:当安全评估信息包括安全系数时,若确定出每条道路的安全系数分别为:0.8、0.6、0.5、0.3,预设条件为安全系数不小于0.5,则从多条道路中选择0.8、0.6、0.5对应的道路。In this embodiment, safety evaluation information is included for each road; according to the safety evaluation information of the road, a road that satisfies the preset conditions is selected from multiple roads, and navigation information is generated, and the navigation information includes the target road and the target road. Security assessment information; the preset condition may be set according to actual needs, which is not specifically limited in this embodiment. For example: when the safety assessment information includes a safety factor, if it is determined that the safety factors of each road are: 0.8, 0.6, 0.5, 0.3, and the preset condition is that the safety factor is not less than 0.5, select 0.8, Roads corresponding to 0.6 and 0.5.
在一个例子中,若目标道路有多条,导航信息还包括根据目标道路的安全评估信息对目标道路进行排序的结果。在本实施例中,根据目标道路的安全评估信息对目标道路进行排序,导航信息包括排序结果,通过这样的方法,可以使用户知晓存在多条目标道路以及多条目标道路的安全情况,为用户基于实际需要自行选择道路提高参考依据。在一个例子中,还可以根据目标道路的安全评估信息、目标道路的距离和速度建议等对目标道路进行排序,得到排序结果。In one example, if there are multiple target roads, the navigation information further includes a result of sorting the target roads according to the safety assessment information of the target roads. In this embodiment, the target roads are sorted according to the safety assessment information of the target roads, and the navigation information includes the sorting results. Through this method, the user can be made aware of the existence of multiple target roads and the safety conditions of the multiple target roads, which is helpful for the user. Based on actual needs, choose the road by yourself to improve the reference basis. In an example, the target roads may also be sorted according to the safety assessment information of the target road, the distance and speed recommendations of the target road, etc., to obtain a sorting result.
步骤305,将导航信息发送至终端,供终端在电子地图上显示。Step 305: Send the navigation information to the terminal for the terminal to display on the electronic map.
在本实施例中,视频处理中心将导航信息发送至终端,终端在接收到导航信息之后,在电子地图上呈现出导航信息,导航信息可以以悬浮的方式进行显示,可以分为两部分呈现在电子地图上,如图7所示,为终端上的电子地图呈现导航信息的界面的示意图,一部分是建议界面,包括建议的目标道路等信息,另一部分是展示界面,包括目标道路的安全评估信息等信息。在一个例子中,终端还可以根据道路的安全评估信息,将不同的道路显示为不同的颜色,不同的颜色代表不同的安全情况,例如:红色为安全情况较差的道路,用红色警示用户。In this embodiment, the video processing center sends the navigation information to the terminal. After the terminal receives the navigation information, the terminal presents the navigation information on the electronic map. The navigation information can be displayed in a floating manner, and can be divided into two parts and presented on the electronic map. On the electronic map, as shown in Figure 7, a schematic diagram of the interface for presenting navigation information for the electronic map on the terminal, one part is the suggested interface, including the proposed target road and other information, and the other part is the display interface, including the safety assessment information of the target road and other information. In an example, the terminal can also display different roads in different colors according to the road safety assessment information, and different colors represent different safety conditions.
在一个例子中,根据运动区域中的运动信息,确定道路的安全评估信息,包括:根据道 路中不同运动区域的运动信息,分别确定道路中不同运动区域的安全评估信息。在本实施例中,根据不同运动区域中的运动信息,确定道路中不同运动区域的安全评估信息,即对于道路中不同运动区域均包括安全评估信息,则可以根据不同运动区域的安全评估信息将道路中不同运动区域显示为不同的颜色,不同的颜色代表不同的安全情况,例如:红色为安全情况较差的运动区域,用红色警示用户。In one example, determining the safety assessment information of the road according to the movement information in the movement area includes: respectively determining the safety assessment information of the different movement areas in the road according to the movement information of the different movement areas in the road. In this embodiment, the safety assessment information of different movement areas on the road is determined according to the movement information in different movement areas, that is, the safety assessment information is included for different movement areas in the road, and the safety assessment information of different movement areas can be Different sports areas on the road are displayed in different colors, and different colors represent different safety conditions. For example, red is a sports area with poor safety conditions, and red is used to warn users.
在一个例子中,导航信息还包括道路中视频设备的位置和视频设备拍摄的视频帧序列。在一个例子中,导航信息还包括道路中行人的行人。则此时终端上的电子地图呈现导航信息的展示界面中还包括视频设备的位置和视频设备拍摄的视频帧序列。In one example, the navigation information further includes the location of the video device in the road and a sequence of video frames captured by the video device. In one example, the navigation information also includes pedestrians of pedestrians in the road. At this time, the display interface for presenting the navigation information on the electronic map on the terminal also includes the location of the video device and the sequence of video frames shot by the video device.
本实施例中,由于根据安全评估信息选择出的目标道路为相对较安全的道路,进一步提高了用户出行的安全性,且生成的导航信息在终端的电子地图上进行显示,弥补了常用的电子地图中在提供和显示可选择的道路时未考虑到行人出行的安全性的问题。In this embodiment, since the target road selected according to the safety assessment information is a relatively safe road, the travel safety of the user is further improved, and the generated navigation information is displayed on the electronic map of the terminal, which makes up for the commonly used electronic Pedestrian safety issues are not considered when providing and displaying alternative roads in the map.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本申请第四实施例涉及一种视频处理中心,视频处理中心为具有计算性能的服务器或终端,如图8所示,包括至少一个处理器402;以及,与至少一个处理器通信连接的存储器401;其中,存储器401存储有可被至少一个处理器402执行的指令,指令被至少一个处理器402执行,以使至少一个处理器402能够执行上述道路安全评估方法的实施例。The fourth embodiment of the present application relates to a video processing center. The video processing center is a server or terminal with computing performance. As shown in FIG. 8 , the video processing center includes at least one processor 402; and a memory 401 communicatively connected to the at least one processor. wherein, the memory 401 stores instructions executable by the at least one processor 402, and the instructions are executed by the at least one processor 402, so that the at least one processor 402 can execute the above embodiments of the road safety assessment method.
其中,存储器401和处理器402采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器402和存储器401的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器402处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器402。The memory 401 and the processor 402 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 402 and various circuits of the memory 401 together. The bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by the processor 402 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 402 .
处理器402负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器401可以被用于存储处理器402在执行操作时所使用的数据。The processor 402 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management, and other control functions. And the memory 401 may be used to store data used by the processor 402 in performing operations.
本申请第五实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。The fifth embodiment of the present application relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific embodiments for realizing the present application, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present application. scope.

Claims (16)

  1. 一种道路安全评估方法,包括:A road safety assessment method comprising:
    获取安装在道路上的视频设备采集的视频帧序列,确定所述道路中的运动区域;Obtain the video frame sequence collected by the video equipment installed on the road, and determine the motion area in the road;
    根据所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块,确定所述运动区域中的运动信息;Determine the motion information in the motion area according to the image blocks corresponding to the motion area in each of the video frames in the video frame sequence;
    根据所述运动区域中的运动信息,确定所述道路的安全评估信息。According to the motion information in the motion area, the safety assessment information of the road is determined.
  2. 根据权利要求1所述的道路安全评估方法,其中,所述道路包括根据终端的导航请求得到的从始发地到目的地的多条道路;The road safety assessment method according to claim 1, wherein the road comprises a plurality of roads from the origin to the destination obtained according to the navigation request of the terminal;
    在所述根据所述运动区域中的运动信息,确定所述道路的安全评估信息之后,还包括:After the determination of the safety assessment information of the road according to the motion information in the motion area, the method further includes:
    根据所述道路的安全评估信息,从所述多条道路中选择目标道路,并生成导航信息;其中,所述导航信息包括所述目标道路和所述目标道路的安全评估信息;According to the safety assessment information of the road, a target road is selected from the plurality of roads, and navigation information is generated; wherein the navigation information includes the target road and the safety assessment information of the target road;
    将所述导航信息发送至所述终端,供所述终端在电子地图上显示。The navigation information is sent to the terminal for the terminal to display on the electronic map.
  3. 根据权利要求2所述的道路安全评估方法,其中,若所述目标道路有多条,所述导航信息还包括根据所述目标道路的安全评估信息对所述目标道路进行排序的结果。The road safety assessment method according to claim 2, wherein if there are multiple target roads, the navigation information further includes a result of sorting the target roads according to the safety assessment information of the target roads.
  4. 根据权利要求1至3任一所述的道路安全评估方法,其中,所述根据所述运动区域中的运动信息,确定所述道路的安全评估信息,包括:The road safety assessment method according to any one of claims 1 to 3, wherein the determining the safety assessment information of the road according to the movement information in the movement area comprises:
    根据所述道路中不同运动区域的运动信息,分别确定所述道路中不同运动区域的安全评估信息。According to the motion information of the different motion areas in the road, the safety assessment information of the different motion areas in the road is respectively determined.
  5. 根据权利要求1至4中任一项所述的道路安全评估方法,其中,所述根据所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块,确定所述运动区域中的运动信息,包括:The road safety assessment method according to any one of claims 1 to 4, wherein the moving area is determined according to the image blocks corresponding to the moving area in each of the video frames in the video frame sequence sports information in , including:
    根据所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块,确定所述运动区域对应的运动剧烈程度;According to the image blocks corresponding to the motion area in each of the video frames in the video frame sequence, determine the motion intensity corresponding to the motion area;
    根据所述运动区域对应的运动剧烈程度,从所述运动区域中识别出危险运动区域;Identifying a dangerous motion area from the motion area according to the motion intensity corresponding to the motion area;
    从所述危险运动区域中检测出运动对象;detecting a moving object from the dangerous movement area;
    根据所述各所述视频帧内与所述运动区域对应的图像块,确定所述运动对象在所述运动区域中的运动信息。Determine the motion information of the moving object in the motion area according to the image blocks corresponding to the motion area in each of the video frames.
  6. 根据权利要求5所述的道路安全评估方法,其中,所述运动信息包括运动对象的运动轨迹,所述根据所述各所述视频帧内与所述运动区域对应的图像块,确定所述运动对象在所述运动区域中的运动信息,包括:The road safety assessment method according to claim 5, wherein the motion information includes a motion trajectory of a moving object, and the motion is determined according to the image blocks corresponding to the motion area in each of the video frames The motion information of the object in the motion area, including:
    从所述各所述视频帧内与所述运动区域对应的图像块中,提取表征运动对象身份的特征参数;extracting characteristic parameters representing the identity of the moving object from the image blocks corresponding to the moving region in each of the video frames;
    根据从各所述图像块提取的所述表征运动对象身份的特征参数,确定属于同一个运动对象的运动轨迹。According to the feature parameters that characterize the identity of the moving object extracted from each of the image blocks, the motion trajectory belonging to the same moving object is determined.
  7. 根据权利要求6所述的道路安全评估方法,其中,所述运动对象包括行人,所述运动信息还包括行人的行为,所述根据所述各所述视频帧内与所述运动区域对应的图像块,确定所述运动对象在所述运动区域中的运动信息,还包括:The road safety assessment method according to claim 6, wherein the moving objects include pedestrians, and the motion information further includes behaviors of pedestrians, and the image corresponding to the moving area in each of the video frames block, determining the motion information of the moving object in the motion area, further comprising:
    从所述各所述视频帧内与所述运动区域对应的图像块中,提取表征行人行为的特征参数;extracting characteristic parameters characterizing pedestrian behavior from the image blocks corresponding to the motion area in each of the video frames;
    根据从各所述图像块提取的同一个行人的所述表征行人行为的特征参数,确定行人的行 为。The behavior of the pedestrian is determined according to the characteristic parameters of the same pedestrian extracted from each of the image blocks that characterize the behavior of the pedestrian.
  8. 根据权利要求7所述的道路安全评估方法,其中,所述运动信息还包括运动对象的密集程度,在所述根据从各所述图像块提取的所述运动对象的特征,确定属于同一个运动对象的运动轨迹之后,还包括:The road safety assessment method according to claim 7, wherein the motion information further includes the density of moving objects, and in the process of determining that the moving objects belong to the same motion according to the characteristics of the moving objects extracted from each of the image blocks After the motion trajectory of the object, it also includes:
    利用统计学方法对所述运动对象的运动轨迹进行分析,根据分析结果确定所述运动对象的密集程度。A statistical method is used to analyze the motion trajectory of the moving object, and the density of the moving object is determined according to the analysis result.
  9. 根据权利要求8所述的道路安全评估方法,其中,所述安全评估信息包括安全系数,所述根据所述运动区域中的运动信息,确定所述道路的安全评估信息,包括:The road safety evaluation method according to claim 8, wherein the safety evaluation information includes a safety factor, and the determining the safety evaluation information of the road according to the motion information in the movement area includes:
    根据所述运动对象的密集程度,确定表征所述道路上拥堵情况的第一系数;determining a first coefficient representing congestion on the road according to the density of the moving objects;
    根据所述行人的行为,确定表征所述道路上行为安全的第二系数;determining a second coefficient representing behavioral safety on the road according to the behavior of the pedestrian;
    根据所述第一系数和所述第二系数,确定所述道路的安全系数。According to the first coefficient and the second coefficient, the safety coefficient of the road is determined.
  10. 根据权利要求9所述的道路安全评估方法,其中,所述根据所述运动对象的密集程度,确定表征所述道路上拥堵情况的第一系数,包括:The road safety assessment method according to claim 9, wherein the determining the first coefficient representing the congestion situation on the road according to the density of the moving objects comprises:
    根据各所述危险运动区域中运动对象的密集程度,确定各所述危险运动区域分别对应的表征所述危险运动区域拥堵情况的第一子系数;According to the density of the moving objects in each of the dangerous movement areas, determine the first sub-coefficient corresponding to each of the dangerous movement areas and represent the congestion situation of the dangerous movement area;
    根据各所述第一子系数,确定表征所述道路上拥堵情况的第一系数;determining, according to each of the first sub-coefficients, a first coefficient representing the congestion situation on the road;
    所述根据所述行人的行为,确定表征所述道路上行为安全的第二系数,包括:The determining, according to the behavior of the pedestrian, the second coefficient representing the behavior safety on the road, including:
    根据各所述危险运动区域中行人的行为,确定各所述危险运动区域分别对应的表征所述危险运动区域行为安全的第二子系数;According to the behavior of pedestrians in each of the dangerous motion areas, determine the second sub-coefficients representing the behavioral safety of the dangerous motion areas corresponding to each of the dangerous motion areas;
    根据各所述第二子系数,确定表征所述道路上行为安全的第二系数。From each of the second sub-coefficients, a second coefficient characterizing the behavioral safety on the road is determined.
  11. 根据权利要求10所述的道路安全评估方法,其中,所述根据各所述危险运动区域中行人的行为,确定各所述危险运动区域分别对应的表征所述危险运动区域行为安全的第二子系数,包括:The road safety assessment method according to claim 10, wherein, according to the behavior of pedestrians in each of the dangerous movement areas, the second sub-sections representing the behavioral safety of the dangerous movement areas corresponding to each of the dangerous movement areas are determined. coefficients, including:
    从预设数据库中获取各危险运动区域中历史行为的发生概率;其中,所述预设数据库包括不同的运动区域中行人在历史时间段内发生的历史行为及所述历史行为的发生概率;Obtain the probability of occurrence of historical behavior in each dangerous sports area from a preset database; wherein, the preset database includes the historical behavior of pedestrians in different sports areas within a historical time period and the probability of occurrence of the historical behavior;
    根据各所述危险运动区域中行人的行为和各危险运动区域中所述历史行为的发生概率,确定各所述危险运动区域分别对应的表征所述危险运动区域行为安全的第二子系数。According to the behavior of pedestrians in each dangerous movement area and the occurrence probability of the historical behavior in each dangerous movement area, a second sub-coefficient corresponding to each dangerous movement area representing the behavior safety of the dangerous movement area is determined.
  12. 根据权利要求5至11中任一项所述的道路安全评估方法,其中,所述根据所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块,确定所述运动区域对应的运动剧烈程度,包括:The road safety assessment method according to any one of claims 5 to 11, wherein the moving area is determined according to the image blocks corresponding to the moving area in each of the video frames in the video frame sequence Corresponding exercise intensity, including:
    利用光流法分别计算所述视频帧序列中各所述视频帧内与所述运动区域对应的图像块中像素点的光流值;Calculate the optical flow values of the pixels in the image blocks corresponding to the motion area in each of the video frames in the video frame sequence by using the optical flow method;
    根据所述光流值确定所述运动区域对应的运动剧烈程度。The motion intensity corresponding to the motion region is determined according to the optical flow value.
  13. 根据权利要求1至12中任一项所述的道路安全评估方法,其中,所述确定所述道路中的运动区域,包括:The road safety assessment method according to any one of claims 1 to 12, wherein the determining a motion area in the road comprises:
    对所述视频帧序列中的相邻视频帧进行差分处理,得到各差分图像;Perform differential processing on adjacent video frames in the video frame sequence to obtain each differential image;
    从各所述差分图像的像素点中选取像素值大于预设阈值的目标像素点,并根据所述目标像素点确定各所述视频帧中的运动区域。A target pixel point whose pixel value is greater than a preset threshold is selected from the pixel points of each of the differential images, and a motion region in each of the video frames is determined according to the target pixel point.
  14. 根据权利要求1至13中任一项所述的道路安全评估方法,其中,所述运动信息包括 以下信息的至少其中之一:运动对象的运动轨迹、运动对象的密集程度、行人的行为。The road safety assessment method according to any one of claims 1 to 13, wherein the motion information includes at least one of the following information: the motion track of the moving object, the density of the moving object, and the behavior of pedestrians.
  15. 一种视频处理中心,包括:A video processing center, including:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至14中任一所述的道路安全评估方法。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 perform the execution of any one of claims 1 to 14 road safety assessment methods.
  16. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至14中任一项所述的道路安全评估方法。A computer-readable storage medium storing a computer program, when the computer program is executed by a processor, the road safety assessment method according to any one of claims 1 to 14 is implemented.
PCT/CN2021/133595 2020-12-29 2021-11-26 Road safety assessment method, video processing center, and storage medium WO2022142922A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011595033.7A CN114694052A (en) 2020-12-29 2020-12-29 Road safety evaluation method, video processing center and storage medium
CN202011595033.7 2020-12-29

Publications (1)

Publication Number Publication Date
WO2022142922A1 true WO2022142922A1 (en) 2022-07-07

Family

ID=82131915

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133595 WO2022142922A1 (en) 2020-12-29 2021-11-26 Road safety assessment method, video processing center, and storage medium

Country Status (2)

Country Link
CN (1) CN114694052A (en)
WO (1) WO2022142922A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123544A (en) * 2014-07-23 2014-10-29 通号通信信息集团有限公司 Video analysis based abnormal behavior detection method and system
US20160171278A1 (en) * 2014-12-10 2016-06-16 Here Global B.V. Method and apparatus for providing one or more road conditions based on aerial imagery
CN109145954A (en) * 2018-07-24 2019-01-04 同济大学 A kind of net based on multisource spatio-temporal data about vehicle safety evaluation method and system
CN110874910A (en) * 2018-08-31 2020-03-10 杭州海康威视数字技术股份有限公司 Road surface alarm method, device, electronic equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123544A (en) * 2014-07-23 2014-10-29 通号通信信息集团有限公司 Video analysis based abnormal behavior detection method and system
US20160171278A1 (en) * 2014-12-10 2016-06-16 Here Global B.V. Method and apparatus for providing one or more road conditions based on aerial imagery
CN109145954A (en) * 2018-07-24 2019-01-04 同济大学 A kind of net based on multisource spatio-temporal data about vehicle safety evaluation method and system
CN110874910A (en) * 2018-08-31 2020-03-10 杭州海康威视数字技术股份有限公司 Road surface alarm method, device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114694052A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
Li et al. Traffic light recognition for complex scene with fusion detections
WO2021051601A1 (en) Method and system for selecting detection box using mask r-cnn, and electronic device and storage medium
CN105404886A (en) Feature model generating method and feature model generating device
EP4105600A2 (en) Method for automatically producing map data, related apparatus and computer program product
CN112016605A (en) Target detection method based on corner alignment and boundary matching of bounding box
CN106815563B (en) Human body apparent structure-based crowd quantity prediction method
CN113901911B (en) Image recognition method, image recognition device, model training method, model training device, electronic equipment and storage medium
CN113570867B (en) Urban traffic state prediction method, device, equipment and readable storage medium
CN112784724A (en) Vehicle lane change detection method, device, equipment and storage medium
US20220357176A1 (en) Methods and data processing systems for predicting road attributes
CN114782897A (en) Dangerous behavior detection method and system based on machine vision and deep learning
CN110909656B (en) Pedestrian detection method and system integrating radar and camera
CN111738319A (en) Clustering result evaluation method and device based on large-scale samples
CN114926791A (en) Method and device for detecting abnormal lane change of vehicles at intersection, storage medium and electronic equipment
CN117456482B (en) Abnormal event identification method and system for traffic monitoring scene
CN117611795A (en) Target detection method and model training method based on multi-task AI large model
CN112017213A (en) Target object position updating method and system
WO2022142922A1 (en) Road safety assessment method, video processing center, and storage medium
US20230095093A1 (en) Training method and apparatus for a target detection model, target detection method and apparatus, and storage medium
CN115995075A (en) Vehicle self-adaptive navigation method and device, electronic equipment and storage medium
CN114926795A (en) Method, device, equipment and medium for determining information relevance
CN112015937B (en) Picture geographic positioning method and system
Grigoropoulos et al. Detection and classification of bicyclist group behavior for automated vehicle applications
CN113392804A (en) Multi-angle-based traffic police target data set scene construction method and system
CN111274894A (en) Improved YOLOv 3-based method for detecting on-duty state of personnel

Legal Events

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

Ref document number: 21913663

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.11.2023)