CN112991725A - Image updating method, system, electronic device and medium - Google Patents

Image updating method, system, electronic device and medium Download PDF

Info

Publication number
CN112991725A
CN112991725A CN202110179624.4A CN202110179624A CN112991725A CN 112991725 A CN112991725 A CN 112991725A CN 202110179624 A CN202110179624 A CN 202110179624A CN 112991725 A CN112991725 A CN 112991725A
Authority
CN
China
Prior art keywords
road
road section
color
target
indication information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110179624.4A
Other languages
Chinese (zh)
Inventor
王云峰
苏云生
龙光万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dianming Tech Co ltd
Original Assignee
Shenzhen Dianming Tech Co ltd
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 Shenzhen Dianming Tech Co ltd filed Critical Shenzhen Dianming Tech Co ltd
Priority to CN202110179624.4A priority Critical patent/CN112991725A/en
Publication of CN112991725A publication Critical patent/CN112991725A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/065Traffic control systems for road vehicles by counting the vehicles in a section of the road or in a parking area, i.e. comparing incoming count with outgoing count
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Navigation (AREA)
  • Traffic Control Systems (AREA)
  • Instructional Devices (AREA)

Abstract

The application is applicable to the technical field of computers, and provides an image updating method, which comprises the following steps: acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, wet skid and congestion level; determining road section color indication information of a road section based on the road passing condition of the road section aiming at the road section in the road section set; sending a control instruction to the traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update the reference map corresponding to the target road, and the control instruction comprises one or more of the following steps: the mapping relation between the mark of the target road section and the color indication information of the target road section, the mark of the target reference map in a plurality of reference maps associated with the target road, and the target road section is all road sections or part of road sections in the road section set.

Description

Image updating method, system, electronic device and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an image updating method, system, electronic device, and medium.
Background
The traffic guidance screen generally refers to a display screen made of LED light emitting diodes for traffic guidance. In the related art, when the image displayed on the traffic guidance screen needs to be updated, the image to be displayed is usually directly sent to the traffic guidance screen.
In the related art, there is a need to increase the speed of updating an image displayed on a traffic guidance screen.
Disclosure of Invention
The embodiment of the application provides an image updating method, an image updating system, electronic equipment and a medium. The method aims to solve the problem that the speed of updating the image displayed by the traffic guidance screen is not high enough in the related art.
In a first aspect, an embodiment of the present application provides an image updating method, where the method includes:
acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, wet skid and congestion level;
determining road section color indication information of a road section based on the road passing condition of the road section aiming at the road section in the road section set;
sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to a target road, and the control instruction comprises one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
Further, after determining the road segment color indication information of the road segment based on the road traffic condition of the road segment, the method further includes:
and in response to the color indicated by the determined road segment color indication information not being consistent with the color at the last moment, determining the road segment as the target road segment.
Further, the method further comprises:
dividing a target road into a plurality of road sections according to a preset division rule to obtain a road section set, wherein the road sections in the road section set have road section identification and initial color values;
generating a reference map corresponding to the target road based on the road section identification and the initial color value of each road section and the relative position relationship between the road sections;
and sending the reference map to a traffic guidance screen.
Further, the method further comprises:
responding to the condition that a preset assignment is met, giving color values to road sections in a road section set based on a preset color value set, generating a reference map corresponding to a target road based on road section identifications and color values of the road sections and relative position relations among the road sections, distributing map identifications to the generated reference map, and storing the reference map after the map identifications are distributed into the reference map group, wherein the assignment condition comprises one or more of the following conditions: receiving assignment request information input by a user, wherein the assignment request information does not have the same combination with the combination of the color values of all current road sections;
and sending the reference map group to a traffic guidance screen.
Further, after sending the reference map set to the traffic guidance screen, the method further includes:
selecting a reference graph from the reference graph group as a target reference graph according to the road section identification of each road section in the road section set and road section color indication information corresponding to the road section identification;
and generating a control command based on the graph identification of the target reference graph.
Further, sending a control instruction to the traffic guidance screen, including:
responding to the condition that a preset sending condition is met, and sending a control instruction to a traffic guidance screen;
wherein the sending condition includes: and when the preset data sending period is reached, the change rate of the road traffic condition data is greater than the preset change rate threshold value.
In a second aspect, an embodiment of the present application provides an image updating method, including:
receiving a control instruction sent by a controller, wherein the control instruction comprises one or more of the following: mapping relation between road section identification of the target road section and road section color indication information of the target road section, and graph identification of a target reference graph in a plurality of reference graphs corresponding to the target road;
determining a reference map to be updated based on the control instruction, and modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier;
and presenting the color modified reference map.
Further, modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated to the color indicated by the road section color indication information corresponding to the road section identifier, including:
searching a road section area of the target road section corresponding to the road section identification from the reference map to be updated in response to the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section included in the control instruction; and modifying the color of the searched road section area into the color indicated by the color indication information of the corresponding road section.
Further, determining a reference map to be updated based on the control instruction includes:
in response to the control instruction including the map identification, a reference map indicated by the map identification is selected from a plurality of reference maps stored in advance.
Further, modifying the color of the searched road section area into the color indicated by the corresponding road section color indication information, including:
searching a color pixel value corresponding to the color indicated by the road section color indication information from a pre-stored color-color pixel value corresponding relation table;
and modifying the pixel value of each pixel point in the searched road section area into the searched color pixel value.
Further, modifying the color of the searched road section area into the color indicated by the corresponding road section color indication information, including:
and selecting a color version corresponding to the color indicated by the road section color indication information from the plurality of color versions for the searched road section area, and replacing the searched road section area with the selected color version.
In a third aspect, embodiments of the present application provide an image updating system, which includes a controller and a traffic guidance screen, wherein,
the controller is used for acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, wet smoothness and congestion level; determining road section color indication information of a road section based on the road passing condition of the road section aiming at the road section in the road section set; sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to a target road, and the control instruction comprises one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set;
the traffic guidance screen is used for receiving the control instruction sent by the controller, determining a reference map to be updated based on the control instruction, and modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier; and presenting the color modified reference map.
In a fourth aspect, an embodiment of the present application provides an image updating apparatus, including:
the data acquisition unit is used for acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, wet slip and congestion level;
an information determination unit, configured to determine, for a road segment in a set of road segments, road segment color indication information for the road segment based on a road traffic condition of the road segment;
the image updating unit is used for sending a control instruction to the traffic guidance screen, and the control instruction is used for controlling the traffic guidance screen to update the reference map corresponding to the target road, wherein the control instruction comprises one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
In a fifth aspect, an embodiment of the present application provides an image updating apparatus, including:
the command receiving unit is used for receiving a control command sent by the controller, wherein the control command comprises one or more of the following: mapping relation between road section identification of the target road section and road section color indication information of the target road section, and graph identification of a target reference graph in a plurality of reference graphs corresponding to the target road;
the updating execution unit is used for determining a reference map to be updated based on the control instruction, and modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier;
and the image presenting unit is used for presenting the reference image after the color modification.
In a sixth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the image updating method when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image updating method.
In an eighth aspect, the present application provides a computer program product, which when run on an electronic device, causes the electronic device to execute the image updating method of any one of the first aspects.
Compared with the related technology, the embodiment of the application has the beneficial effects that: the reference image is stored in the traffic guidance screen in advance, and the reference image is updated by sending a control instruction to the traffic guidance screen, so that the displayed image of the traffic guidance screen is updated.
It is understood that the beneficial effects of the second aspect to the eighth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram illustrating an application of an image update method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating an image update method according to an embodiment of the present application;
fig. 3 is a diagram illustrating a position relationship between road segments in a road segment set according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating an image update method according to another embodiment of the present application;
FIG. 5 is a schematic structural diagram of an image update system according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an image update apparatus according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an image update apparatus according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical means of the present application, the following examples are given below.
Referring to fig. 1, a system architecture diagram of an application of an image updating method according to an embodiment of the present application is shown.
As shown in fig. 1, the system architecture may include a controller 101, a network 102, and a traffic inducement screen 103. Network 102 is used, among other things, to provide a medium for a communication link between controller 101 and traffic inducing screen 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The traffic guidance screen 103 is generally a display screen having a traffic guidance function. In practice, the traffic guidance screen 103 may update and display a pre-stored reference map based on a control instruction of the controller 101.
The controller 101 may be a predetermined electronic device. In practice, the controller 101 is typically an electronic device for controlling the display content of the traffic guidance screen 103. In practical applications, the controller 101 may obtain road traffic condition data of a target road, and determine, based on the obtained road traffic condition data, a road traffic condition of each road segment in a road segment set corresponding to the target road, where the road segment set is obtained by splitting the target road, and the road traffic condition is used to reflect one or more of visibility, slippery degree, and congestion level; determining road section color indication information of a road section based on the road passing condition of the road section aiming at the road section in the road section set; sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to a target road, and the control instruction comprises one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
It should be noted that the image updating method provided by the present embodiment is generally executed by the controller 101. In addition, the controller 101 may also be disposed in the traffic guidance screen as a part of the traffic guidance screen, and in this case, the image updating method is also performed by the traffic guidance screen.
It should be understood that the number of controllers, networks, and traffic-inducing screens in fig. 1 are merely illustrative. There may be any number of controllers, networks, and traffic-inducing screens, as desired for implementation.
Referring to fig. 2, a schematic flowchart of an image updating method provided in an embodiment of the present application is shown, where the image updating method shown in fig. 2 includes:
step 201, acquiring road traffic condition data of the target road, and determining the road traffic condition of each road section in the road section set corresponding to the target road based on the acquired road traffic condition data.
The road section set is obtained by dividing a target road, and the road passing condition is used for reflecting one or more of visibility, slippery degree and congestion level.
In practice, the road segment set is usually obtained by splitting the target road according to a preset splitting rule. The target road is usually a preset road. The target road may be one or more. Multiple roads are typically located within the same area, and there is typically an intersection of the multiple roads. The slicing rules include, but are not limited to, one or more of the following: and carrying out equidistant segmentation, and carrying out segmentation according to the intersection points between the target roads. As an example, the equidistant split may be a split into a road segment every 5 km. The division into intersections between the target roads generally means that each intersection of two roads is used as a division point. It is noted that the target road is usually a road line on the map. The segmentation of the road mentioned in the embodiments of the present application generally refers to the segmentation of the line corresponding to the road. The segmented road segment is usually a part of the line on the road line.
Fig. 3 is a diagram of a positional relationship between road segments in a road segment set according to an embodiment of the present application. In fig. 3, the adopted segmentation rule is: and segmenting according to the intersection points between the target roads. Specifically, as shown in fig. 3, the target road has a total of three, specifically: two transverse roads and one longitudinal road. One of the lateral roads is divided into a section 1 and a section 3. The other lateral road is divided into a section 5 and a section 7. The longitudinal road is divided into a section 2, a section 4 and a section 6.
The road traffic condition data is generally data for characterizing road traffic conditions. In practice, road traffic condition data may include, but is not limited to, one or more of the following: traffic flow data, pedestrian flow data, weather data, and the like. The traffic data generally refers to the number of vehicles passing through per unit time. People flow data generally refers to the number of people passing per unit of time. The weather data is generally data indicating weather conditions, and may be, for example, temperature, humidity, water accumulation, or the like.
In the present embodiment, the main body of execution of the image updating method is typically a controller. The executing body can acquire road traffic condition data of the target road from other electronic equipment through a network, for example, weather data is acquired from a server providing meteorological service, traffic data and/or people flow data is acquired from the server providing traffic service, and the like.
After acquiring the road traffic condition data of the target road, the executing entity may directly determine the road traffic condition of each road segment on the target road by using the road traffic condition data of the target road. For example, if a target road a is divided into 3 segments, a first segment, a second segment and a third segment. If the value-taking interval of the traffic flow corresponding to the congestion road traffic condition is preset to be (10, 50), the value-taking interval of the traffic flow corresponding to the general road traffic condition is (5, 10), and the value-taking interval of the traffic flow corresponding to the unblocked road traffic condition is (0, 5). If the current road traffic condition data of the target road a indicates that the traffic flow of the first section is 60, the traffic flow of the second section is 7, and the traffic flow of the third section is 2, then at this time, the execution main body may determine that the current road traffic condition of the first section on the target road a is congested, the current road traffic condition of the second section is general, and the current road traffic condition of the third section is smooth.
Step 202, for a road segment in the road segment set, determining road segment color indication information of the road segment based on the road traffic condition of the road segment.
Here, the link color indication information is generally information for indicating a color. As an example, the link color indication information may be "red" for indicating red. And may also be "green" for indicating green. The present embodiment does not limit the specific form of the road segment color indication information.
Here, for each link, the color indication information of the link may be determined based on the road traffic condition of the link. As an example, if the road traffic condition of a certain road segment is congestion, it may be determined that the color indication information of the road segment is "001" for indicating red. In practice, the road segment color indication information generally corresponds to the road traffic condition of the road segment one to one. The execution subject may determine the link color indication information of each link based on the correspondence between the road traffic condition and the color indication information.
And 203, sending a control instruction to the traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update the reference map corresponding to the target road.
Wherein the control instructions include one or more of: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
The link identification is generally information for identifying a link. As an example, the above-mentioned link identifier may be No.1, which indicates the first link. The embodiment does not limit the specific form of the road segment identifier. At the same time, a road segment may have a road segment identifier and a road segment color indication information, and the road segment identifier and the road segment color indication information for the same road segment correspond to each other.
The graph identifier is generally information for identifying a reference graph. By way of example, the graph identification may be A-001, identifying the first reference graph.
The reference map is generally a map indicating a relative positional relationship between the links in the link set. The diagram shown in fig. 3 may be used as a reference diagram. In practice, the target road may correspond to one reference map or a plurality of reference maps.
In this embodiment, the execution subject may generate the control instruction in various ways.
As an example, the execution subject may combine the link identifier of each link and the link color indication information corresponding to the link identifier to obtain the control command. For example, if there are two road segments, which are road segment 1 and road segment 2, the road segment identifier of road segment 1 is No.1, the road segment color indication information is red, the road segment identifier of road segment 2 is No.2, and the road segment color indication information is yellow. At this time, the road segment identifiers of the two road segments and the road segment color indication information corresponding to the road segment identifiers may be combined to obtain the control command as follows: no.1-red, No. 2-yellow.
As another example, the execution principal may combine the segment identifications of the respective segments into one vector and combine the segment color indication information of the respective segments into another vector, and two elements at the same position of the two vectors point to the same segment. For example, if there are two road segments, which are road segment 1 and road segment 2, the road segment identifier of road segment 1 is No.1, the road segment color indication information is red, the road segment identifier of road segment 2 is No.2, and the road segment color indication information is yellow. At this time, a vector (No.1, No.2) composed of the link identifications can be obtained, and a vector (red, yellow) composed of the link color indication information can be obtained. The execution agent may then determine the resulting two vectors as control instructions.
As yet another example, the execution principal may also combine the link identification of each link and the link color indication information corresponding to the link identification into one matrix. For example, if there are two road segments, which are road segment 1 and road segment 2, the road segment identifier of road segment 1 is No.1, the road segment color indication information is red, the road segment identifier of road segment 2 is No.2, and the road segment color indication information is yellow. At this time, a matrix [ No.1, red ] formed by combining the link identification of each link and the link color indication information corresponding to the link identification can be obtained; NO.2, yellow ]. Thereafter, the execution body may determine the resulting matrix as a control instruction.
In this embodiment, the execution main body may send the obtained control command to the traffic guidance screen through a network. Therefore, the traffic guidance screen can update the corresponding reference map by adopting the control instruction and display the updated reference map.
In practical application, there may be one or more traffic guidance screens, and each traffic guidance screen may store one reference map in advance or store a plurality of reference maps. The execution main body can send the control instruction to the traffic guidance screen stored with the reference map corresponding to the target road, so that the guidance screen receiving the control instruction can update the reference map corresponding to the target road by adopting the control instruction.
The method provided by the embodiment is characterized in that the reference image is pre-stored in the traffic guidance screen, and the reference image is updated by sending the control instruction to the traffic guidance screen, so that the displayed image of the traffic guidance screen is updated.
In some optional implementations of the embodiment, after determining the road segment color indication information of the road segment based on the road traffic condition of the road segment, the method further includes: and in response to the color indicated by the determined road segment color indication information not being consistent with the color at the last moment, determining the road segment as the target road segment.
Here, for a certain link, if the color indicated by the color indication information of the link does not match the color indicated by the color indication information of the link at the previous time, the link may be determined as the target link.
For example, if there are 3 road segments in the road segment set, they are respectively: if the congestion state of the current road segment 1 changes, the current road segment needs to be changed from red to green, the congestion state of the current road segment 2 does not change, the congestion state of the current road segment 3 changes, and the current road segment 3 needs to be changed from red to yellow, at the current moment, the controller only needs to include the relation between the road segment identifier of the current road segment 1 and the road segment color indication information and the relation between the road segment identifier of the current road segment 3 and the road segment color indication information in the control instruction sent to the traffic guidance screen. Compared with the relation between the road section identifiers of the road sections 1-3 and the road section color indication information which are simultaneously included in the control command, the relation between the road section identifiers and the road section color indication information of the road sections of which the current colors need to be changed is only sent, and the data volume which needs to be sent is smaller.
In this implementation, since the number of the target links is generally smaller than the total number of all the links, the amount of data to be sent to the traffic guidance screen can be reduced, and the data sending speed can be increased, thereby further increasing the speed of updating the image displayed on the traffic guidance screen.
In some optional implementation manners of this embodiment, the image updating method may further include the following steps:
firstly, dividing a target road into a plurality of road sections according to a preset division rule to obtain a road section set.
Wherein the road segments in the road segment set have road segment identifications and initial color values.
The above-described segmentation rule is generally a rule for segmenting a target road. In practice, the above-mentioned segmentation rules may include, but are not limited to, one or more of the following: and carrying out equidistant segmentation, and carrying out segmentation according to the intersection points between the target roads. The initial color value is typically the initial color value. The color value may be an RGB value, e.g., red corresponds to an RGB value of (255, 0, 0).
Here, the execution agent may segment the target road according to a segmentation rule, and assign a segment identifier and an initial color value to each segment obtained by the segmentation. In this way, a set of road segments can be obtained, and each road segment in the set of road segments has a road segment identifier and an initial color value.
It is noted that the target road is usually a road line on the map. The segmentation of the road mentioned in the embodiments of the present application generally refers to the segmentation of the line corresponding to the road. The segmented road segment is usually a part of the line on the road line.
And secondly, generating a reference map corresponding to the target road based on the road section identification and the initial color value of each road section and the relative position relationship among the road sections.
As an example, the execution subject may directly extract lines corresponding to the target road from the map and extract a relative position relationship between the lines, and then assign corresponding initial color values to each segment of each line, so as to obtain the reference map corresponding to the target road. As another example, the executing entity may also generate a relative position map based on the relative position relationship of each target road in the map, and then assign corresponding initial color values to each segment of the generated relative position map, thereby obtaining the reference map.
And thirdly, sending a reference map to a traffic guidance screen.
Here, after generating the reference map for the target road, the execution body may transmit the generated reference map to the traffic guidance screen.
According to the implementation mode, the reference graph is stored in the traffic guidance screen in advance, so that when the display content of the traffic guidance screen is updated subsequently, only part of the content of the reference graph needs to be updated, and the image displayed by the traffic guidance screen can be updated quickly and timely.
In some optional implementations of this embodiment, sending the control instruction to the traffic guidance screen includes: responding to the condition that a preset sending condition is met, and sending a control instruction to a traffic guidance screen;
wherein the sending condition includes: and when the preset data sending period is reached, the change rate of the road traffic condition data is greater than the preset change rate threshold value. The data transmission period may be a preset value for limiting the period length, and for example, the data transmission period may be 1 second or 1 hour. The above-mentioned change rate threshold value may be a numerical value for describing an upper limit of the change rate. As an example, the rate of change threshold may be 1.5. In practice, the value of the rate of change threshold is typically greater than 1.
It should be noted that when the change rate of the road traffic condition data is greater than the preset change rate threshold, a control instruction is sent to the traffic guidance screen, so that the content displayed by the traffic guidance screen can be updated in time when the road traffic condition changes rapidly. The traffic guidance screen can be flexibly controlled, and the data processing speed is improved.
In this embodiment, the control instruction is sent to the traffic guidance screen only when the sending condition is currently satisfied, so that the number of times of sending data to the traffic guidance screen can be reduced, and further saving of network resources for data transmission is facilitated.
In an optional implementation manner of each embodiment of the present application, the image updating method may further include:
firstly, responding to the condition that a preset assignment is met, giving color values to road sections in a road section set based on a preset color value set, generating a reference map corresponding to a target road based on road section identifications and the color values of the road sections and relative position relations among the road sections, distributing map identifications to the generated reference map, and storing the reference map after the map identifications are distributed into the reference map set.
Wherein the assignment condition includes one or more of: and receiving assignment request information input by a user, wherein the same combination as the combination of the color values of the current road sections does not exist. Assignment request information is generally information for requesting assignment to each of the segments.
The set of color values may be a set of preset color values. In practice, the color value set usually includes a color value corresponding to red, a color value corresponding to yellow, and a color value corresponding to green.
Here, the execution agent may assign a color value to each link in the link set, and then may generate the reference map corresponding to the target road by using the link identifier and the color value of each link and the relative positional relationship between the links.
For example, if there are 2 road segments in the road segment set, they are respectively: the road segment 1 and the road segment 2 may be configured to have a color value corresponding to red, a color value corresponding to yellow, and a color value corresponding to green, and when the execution subject assigns a color value to each road segment in the road segment set, the execution subject may have the following combination of 9 color values, where 9 is 3 × 3. Wherein, the first one is: road segment 1 red, road segment 2 red, the second is: road segment 1 red, road segment 2 yellow, the third is: road segment 1 red, road segment 2 green, the fourth is: road segment 1 green, road segment 2 red, the fifth is: road segment 1 green, road segment 2 yellow, the sixth is: road segment 1 green, road segment 2 green, the seventh is: road segment 1 yellow, road segment 2 red, the eighth is: road segment 1 yellow, road segment 2 green, the ninth is: link 1 yellow and link 2 yellow.
Then, the reference map group is sent to the traffic guidance screen.
Here, after generating the reference map set, the execution body may transmit the generated reference map set to the traffic guidance screen. In this way, the traffic guidance screen may directly present the reference map indicated by the map identifier after receiving the control instruction including the map identifier. The method is favorable for further improving the speed of updating the image displayed by the traffic guidance screen.
In some optional implementation manners of this embodiment, after sending the reference map group to the traffic guidance screen, the image updating method may further include: and selecting a reference graph from the reference graph group as a target reference graph according to the road section identification of each road section in the road section set and the road section color indication information corresponding to the road section identification. And generating a control command based on the graph identification of the target reference graph.
Here, after obtaining the link identifier of each link and the link color indication information corresponding to the link identifier, the execution subject may select the target reference map by comparing the color value of each link in each reference map.
For example, if there are 2 road segments in the road segment set, they are respectively: and if the color indicated by the road section color indication information of the current road section 1 is red, the color indicated by the road section color indication information of the road section 2 is green. At this time, the execution subject may select a reference map having a red link 1 and a green link 2 from the reference maps to obtain the target reference map.
After the target reference diagram is obtained, the execution subject may directly generate the control command by using the diagram identifier of the target reference diagram. In this way, the traffic guidance screen may directly present the reference map indicated by the map identifier after receiving the control instruction including the map identifier. The method is favorable for further improving the speed of updating the image displayed by the traffic guidance screen.
With continuing reference to fig. 4, a flowchart of an image updating method provided in the embodiment of the present application is schematically illustrated. The image updating method as shown in fig. 4 includes:
step 401, receiving a control instruction sent by a controller.
Wherein the control instructions include one or more of: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
The link identification is generally information for identifying a link. As an example, the above-mentioned link identifier may be No.1, which indicates the first link. The embodiment does not limit the specific form of the road segment identifier. At the same time, a road segment may have a road segment identifier and a road segment color indication information, and the road segment identifier and the road segment color indication information for the same road segment correspond to each other.
The graph identifier is generally information for identifying a reference graph. By way of example, the graph identification may be A-001, identifying the first reference graph.
The reference map is generally a map indicating a relative positional relationship between the links in the link set. The diagram shown in fig. 3 may be used as a reference diagram. In practice, the target road may correspond to one reference map or a plurality of reference maps.
In the present embodiment, the main subject of execution of the image updating method is typically a traffic guidance screen. The traffic guidance screen can receive a control instruction sent by the controller through the network.
Step 402, determining a reference map to be updated based on the control instruction, and modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated to the color indicated by the road section color indication information corresponding to the road section identifier.
Here, the traffic guidance screen may store one reference map in advance, or may store a plurality of reference maps in advance. As an example, the traffic guidance screen may identify, based on the road segment identifier, the road segment indicated by the road segment identifier, so as to obtain the target road corresponding to the road segment, and determine the reference map corresponding to the target road, where the reference map is the reference map to be updated.
Optionally, the control instructions may also include a graph identifier. At this time, the determination of the reference map to be updated based on the control instruction may be implemented as follows: the reference map indicated by the map identification is selected from a plurality of reference maps stored in advance.
The graph identifier is generally information for identifying a reference graph. By way of example, the graph identification may be A-001, identifying the first reference graph.
In practice, a plurality of reference maps may be stored in the traffic guidance screen in advance. For example, the traffic guidance screen may store three reference maps corresponding to the target road, which are reference map 1, reference map 2, and reference map 3. If the target road includes a road segment 1, a road segment 2, and a road segment 3, where the road segment 1 included in the reference map 1 is red, the road segment 2 is red, and the road segment 3 is red, the road segment 1 included in the road map 2 is green, the road segment 2 is green, and the road segment 3 included in the road map 2 is green, and the road segment 1 included in the road map 3 is yellow, the road segment 2 is red, and the road segment 3 is red. In this way, if the controller determines that the reference map corresponding to the target road is the reference map 1 at time 1, the controller may transmit a control command including a map identifier corresponding to the reference map 1 to the traffic guidance screen, and the traffic guidance screen may find the reference map 1 from a plurality of reference maps stored in advance using the map identifier corresponding to the reference map 1 and display the reference map 1. If the controller determines that the reference map corresponding to the target road is the reference map 2 at time 2, the controller may transmit a control command including a map identifier corresponding to the reference map 2 to the traffic guidance screen, and the traffic guidance screen may find the reference map 2 from a plurality of reference maps stored in advance using the map identifier corresponding to the reference map 2 and display the reference map 2.
Here, if the control instruction includes a graph identifier, the traffic guidance screen may directly use the graph identifier to select a reference graph indicated by the graph identifier from the plurality of reference graphs stored in the traffic guidance screen, and the selected reference graph is the reference graph to be updated. The implementation mode can conveniently and quickly determine the reference image to be updated, and is beneficial to improving the data processing efficiency, so that the efficiency of updating the image displayed by the traffic guidance screen is further improved.
Here, the traffic guidance screen may update the reference map by performing the following steps: searching a road section area of the target road section corresponding to the road section identification from the reference map to be updated in response to the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section included in the control instruction; and modifying the color of the searched road section area into the color indicated by the color indication information of the corresponding road section. Specifically, for each target road segment, the traffic guidance screen may find a road segment area where the target road segment is located from the reference map. And then, modifying the color of the found road section area into the color indicated by the road section color indication information of the target road section.
Alternatively, the color of the road segment area may be modified as follows: and selecting a color version corresponding to the color indicated by the road section color indication information from the plurality of color versions for the searched road section area, and replacing the searched road section area with the selected color version. Here, the traffic guidance screen may previously store, for each link area, a plurality of color versions for the link area. A color version generally refers to a road segment region having a corresponding color value. In practice, different color values may be pre-assigned to the same road segment region to obtain multiple color versions for the road segment region. Therefore, when the road section area is updated subsequently, the road section area with the corresponding color value only needs to directly replace the current road section area. After the color of the road section area is determined, the traffic guidance screen can directly replace the road section area in the reference map with the road section area of the corresponding color version, so that the color of the road section area can be modified. In practice, the colors of the road section areas are usually only 3, such as red, yellow, green, etc. Thus, the color versions of the road segment area are generally 3, which may be: red version, yellow version, green version. By directly replacing the corresponding road section area in the reference map with the road section area of the color version corresponding to the determined color, the color replacement speed can be increased, and the efficiency of updating the image displayed by the traffic guidance screen is further increased.
And step 403, presenting the color-modified reference map.
Here, after the reference map is color-modified according to the control instruction, the traffic guidance screen may directly present the modified reference map. In this way, the latest road traffic condition can be presented to the user to guide the user to travel.
According to the method provided by the embodiment, the traffic guidance screen modifies the reference map by replacing the color of the road section area so as to update the presented content. Only local content needs to be updated, and compared with the method that the whole presented content needs to be updated in the related technology, the calculation amount is smaller, and the method is beneficial to quickly and timely updating the image displayed by the traffic guidance screen.
In some optional implementation manners of this embodiment, modifying the color of the searched road segment area to the color indicated by the corresponding road segment color indication information includes:
first, a color pixel value corresponding to the color indicated by the link color indication information is searched from a pre-stored color-color pixel value correspondence table. And then, modifying the pixel value of each pixel point in the searched road section area into the searched color pixel value.
The color-color pixel value correspondence table may be a correspondence table in which correspondence between a plurality of colors and color pixel values is stored, the correspondence table being established in advance.
Here, the traffic guidance screen may store therein a color-color pixel value correspondence table. After receiving the control instruction, the traffic guidance screen may find, for each target road segment, a road segment area where the target road segment is located from the reference map. And then, modifying the color of the found road section area into the color indicated by the road section color indication information of the target road section.
In the present implementation, since the color types of the road section areas are usually few, for example, only red, green and yellow colors are usually available. In this way, the data size of the color-color pixel value correspondence table is usually small, and the storage space for storing the color-color pixel value correspondence table is also small, which contributes to saving the storage space. In addition, the color-color pixel value corresponding relation table is stored in the traffic guidance screen, the color pixel value of the road section area is obtained in a table look-up mode, the color pixel value can be quickly found, and the color of the road section area can be quickly modified.
With continuing reference to fig. 5, a schematic structural diagram of an image updating system according to an embodiment of the present application is provided. The image update system 500 shown in fig. 5 includes a controller 501 and a traffic-inducing screen 502, wherein,
the controller 501 is configured to acquire road traffic condition data of a target road, and determine, based on the acquired road traffic condition data, a road traffic condition of each road segment in a road segment set corresponding to the target road, where the road segment set is obtained by splitting the target road, and the road traffic condition is used to reflect one or more of visibility, wet skid, and congestion level; determining road section color indication information of a road section based on the road passing condition of the road section aiming at the road section in the road section set; sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to a target road, and the control instruction comprises one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
The traffic guidance screen 502 is used for receiving a control instruction sent by the controller, determining a reference map to be updated based on the control instruction, and modifying the color of a road section area corresponding to a road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier; and presenting the color modified reference map.
The system provided by the embodiment stores the reference image in the traffic guidance screen in advance, and updates the reference image by sending the control instruction to the traffic guidance screen, so as to update the display image of the traffic guidance screen.
It should be noted that, because the contents of information interaction, execution process, and the like between the controller 501 and the traffic guidance screen 502 are based on the same concept as the embodiment of the method of the present application, specific functions and technical effects thereof may be specifically referred to a part of the embodiment of the method, and details are not described here.
It should be noted that in some application scenarios, the controller may also be disposed in the traffic guidance screen as a part of the traffic guidance screen, and at this time, the image updating system may be implemented as the traffic guidance screen.
Further referring to fig. 6, corresponding to the image updating method of the above embodiment, fig. 6 is a block diagram of a structure of an image updating apparatus 600 provided in the embodiment of the present application, and for convenience of description, only the relevant portions of the embodiment of the present application are shown.
Referring to fig. 6, the apparatus includes:
a data obtaining unit 601, configured to obtain road traffic condition data of a target road, and determine, based on the obtained road traffic condition data, a road traffic condition of each road segment in a road segment set corresponding to the target road, where the road segment set is obtained by splitting the target road, and the road traffic condition is used for reflecting one or more of visibility, a degree of slippery, and a congestion level;
an information determining unit 602, configured to determine, for a segment in the segment set, segment color indication information for the segment based on a road traffic condition of the segment;
an image updating unit 603, configured to send a control instruction to the traffic guidance screen, where the control instruction is used to control the traffic guidance screen to update the reference map corresponding to the target road, where the control instruction includes one or more of the following: the road section color indication information of the target road section is obtained by the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in a plurality of reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
In some embodiments, after determining the road segment color indication information of the road segment based on the road traffic condition of the road segment, the method further includes: and in response to the color indicated by the determined road segment color indication information not being consistent with the color at the last moment, determining the road segment as the target road segment.
In some embodiments, the apparatus may further comprise a first sending unit (not shown in the figures). The first sending unit may be configured to: dividing a target road into a plurality of road sections according to a preset division rule to obtain a road section set, wherein the road sections in the road section set have road section identification and initial color values; generating a reference map corresponding to the target road based on the road section identification and the initial color value of each road section and the relative position relationship between the road sections; and sending the reference map to a traffic guidance screen.
In some embodiments, the apparatus may further comprise a second sending unit (not shown in the figures). The second transmitting unit may be configured to: responding to the condition that a preset assignment is met, giving color values to road sections in a road section set based on a preset color value set, generating a reference map corresponding to a target road based on road section identifications and color values of the road sections and relative position relations among the road sections, distributing map identifications to the generated reference map, and storing the reference map after the map identifications are distributed into the reference map group, wherein the assignment condition comprises one or more of the following conditions: receiving assignment request information input by a user, wherein the assignment request information does not have the same combination with the combination of the color values of all current road sections; and sending the reference map group to a traffic guidance screen.
In some embodiments, the apparatus may further comprise an instruction generation unit (not shown in the figures). The instruction generation unit may be to: selecting a reference graph from the reference graph group as a target reference graph according to the road section identification of each road section in the road section set and road section color indication information corresponding to the road section identification; and generating a control command based on the graph identification of the target reference graph.
In some embodiments, sending control instructions to the traffic guidance screen includes: responding to the condition that a preset sending condition is met, and sending a control instruction to a traffic guidance screen; wherein the sending condition includes: and when the preset data sending period is reached, the change rate of the road traffic condition data is greater than the preset change rate threshold value.
The device provided by the embodiment prestores the reference image in the traffic guidance screen, and updates the reference image by sending the control instruction to the traffic guidance screen, so as to update the display image of the traffic guidance screen.
It should be noted that, because the contents of information interaction, execution process, and the like between the above-mentioned apparatuses/units are based on the same concept as the method embodiment shown in fig. 2 of the present application, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
Further referring to fig. 7, corresponding to the image updating method of the above embodiment, fig. 7 is a block diagram of a structure of an image updating apparatus 700 provided in the embodiment of the present application, and for convenience of description, only the relevant portions of the embodiment of the present application are shown.
Referring to fig. 7, the apparatus includes:
an instruction receiving unit 701, configured to receive a control instruction sent by a controller, where the control instruction includes one or more of the following: mapping relation between road section identification of the target road section and road section color indication information of the target road section, and graph identification of a target reference graph in a plurality of reference graphs corresponding to the target road;
an update execution unit 702, configured to determine a reference map to be updated based on the control instruction, and modify a color of a road segment area corresponding to the road segment identifier in the reference map to be updated to a color indicated by road segment color indication information corresponding to the road segment identifier;
an image presenting unit 703 is configured to present the color-modified reference map.
In some embodiments, modifying the color of the road segment area corresponding to the road segment identifier in the reference map to be updated to the color indicated by the road segment color indication information corresponding to the road segment identifier includes:
searching a road section area of the target road section corresponding to the road section identification from the reference map to be updated in response to the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section included in the control instruction; and modifying the color of the searched road section area into the color indicated by the color indication information of the corresponding road section.
In some embodiments, determining the reference map to be updated based on the control instruction comprises: in response to the control instruction including the map identification, a reference map indicated by the map identification is selected from a plurality of reference maps stored in advance.
In some embodiments, modifying the color of the searched road segment area to the color indicated by the corresponding road segment color indication information includes: searching a color pixel value corresponding to the color indicated by the road section color indication information from a pre-stored color-color pixel value corresponding relation table; and modifying the pixel value of each pixel point in the searched road section area into the searched color pixel value.
In some embodiments, modifying the color of the searched road segment area to the color indicated by the corresponding road segment color indication information includes: and selecting a color version corresponding to the color indicated by the road section color indication information from the plurality of color versions for the searched road section area, and replacing the searched road section area with the selected color version.
In the device provided by the embodiment, the traffic guidance screen modifies the reference map by replacing the color of the road section area so as to update the presented content. Only local content needs to be updated, and compared with the method that the whole presented content needs to be updated in the related technology, the calculation amount is smaller, and the method is beneficial to quickly and timely updating the image displayed by the traffic guidance screen.
It should be noted that, because the contents of information interaction, execution process, and the like between the above-mentioned apparatuses/units are based on the same concept as the method embodiment shown in fig. 4 of the present application, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
Referring further to fig. 8, fig. 8 is a schematic structural diagram of an electronic device 800 according to an embodiment of the present application. As shown in fig. 8, the electronic apparatus 800 of this embodiment includes: at least one processor 801 (only one processor is shown in fig. 8), a memory 802, and a computer program 803, such as an image update program, stored in the memory 802 and operable on the at least one processor 801. The steps in any of the various method embodiments described above are implemented when the computer program 803 is executed by the processor 801. The steps in the embodiments of the respective image update methods described above are implemented when the processor 801 executes the computer program 803. The processor 801, when executing the computer program 803, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the units 601 to 603 shown in fig. 6, and such as the functions of the units 701 to 703 shown in fig. 7.
Illustratively, the computer program 803 may be divided into one or more modules/units, which are stored in the memory 802 and executed by the processor 801 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 803 in the electronic device 800. For example, the computer program 803 may be divided into a data acquiring unit, an information determining unit, an image updating unit, an instruction receiving unit, an update executing unit, and an image presenting unit, and specific functions of each unit are described in the foregoing embodiments, and are not described herein again.
The electronic device 800 may be a computing electronic device such as an electronic device, a desktop computer, a tablet computer, a cloud-side electronic device, and a mobile terminal. The electronic device 800 may include, but is not limited to, a processor 801, a memory 802. Those skilled in the art will appreciate that fig. 8 is merely an example of an electronic device 800 and does not constitute a limitation of electronic device 800, and may include more or fewer components than illustrated, or combine certain components, or different components, e.g., the electronic device may also include input output electronics, network access electronics, a bus, etc.
The Processor 801 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 802 may be an internal storage unit of the electronic device 800, such as a hard disk or a memory of the electronic device 800. The memory 802 may also be an external storage electronic device of the electronic device 800, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 800. Further, the memory 802 may also include both internal and external storage electronics of the electronic device 800. The memory 802 is used to store computer programs and other programs and data required by the electronic device. The memory 802 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (14)

1. An image update method, characterized in that the method comprises:
acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, wet smoothness and congestion level;
for a road section in the road section set, determining road section color indication information of the road section based on the road passing condition of the road section;
sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to the target road, and the control instruction comprises one or more of the following: the map identification of the target road section is obtained by mapping the road section identification of the target road section and the road section color indication information of the target road section, the map identification of the target reference map in the multiple reference maps corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set.
2. The method according to claim 1, wherein after determining the road segment color indication information of the road segment based on the road traffic condition of the road segment, the method further comprises:
and in response to the color indicated by the determined road segment color indication information not being consistent with the color at the last moment, determining the road segment as the target road segment.
3. The method of claim 1, further comprising:
dividing the target road into a plurality of road sections according to a preset division rule to obtain a road section set, wherein the road sections in the road section set have road section identification and initial color values;
generating a reference map corresponding to the target road based on the road section identification and the initial color value of each road section and the relative position relationship between the road sections;
and sending the reference map to the traffic guidance screen.
4. The method of claim 1, further comprising:
responding to the condition that a preset assignment is met, giving color values to road sections in the road section set based on a preset color value set, generating a reference map corresponding to the target road based on road section identifications and the color values of the road sections and relative position relations among the road sections, distributing map identifications to the generated reference map, and storing the reference map after the map identifications are distributed into a reference map group, wherein the assignment condition comprises one or more of the following conditions: receiving assignment request information input by a user, wherein the assignment request information does not have the same combination with the combination of the color values of all current road sections;
and sending the reference map group to the traffic guidance screen.
5. The method of claim 4, wherein after said sending the set of reference maps to the traffic-inducing screen, the method further comprises:
selecting a reference graph from the reference graph group as the target reference graph according to the road section identification of each road section in the road section set and road section color indication information corresponding to the road section identification;
and generating the control instruction based on the graph identification of the target reference graph.
6. The method according to any one of claims 1-5, wherein the sending of the control instruction to the traffic guidance screen comprises:
responding to the condition that a preset sending condition is met, and sending the control instruction to the traffic guidance screen;
wherein the transmission condition includes: and when the preset data sending period is reached, the change rate of the road traffic condition data is greater than the preset change rate threshold value.
7. An image update method, characterized in that the method comprises:
receiving a control instruction sent by a controller, wherein the control instruction comprises one or more of the following: mapping relation between road section identification of a target road section and road section color indication information of the target road section, and map identification of a target reference map in a plurality of reference maps corresponding to the target road;
determining a reference map to be updated based on the control instruction, and modifying the color of the road section area corresponding to the road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier;
and presenting the color modified reference map.
8. The method according to claim 7, wherein the modifying the color of the road segment area corresponding to the road segment identifier in the reference map to be updated to the color indicated by the road segment color indication information corresponding to the road segment identifier comprises:
searching a road section area of the target road section corresponding to the road section identification from the reference map to be updated in response to the control instruction including the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section; and modifying the color of the searched road section area into the color indicated by the color indication information of the corresponding road section.
9. The method of claim 7, wherein determining the reference map to be updated based on the control command comprises:
in response to the control instruction including the graph identification, selecting the reference graph indicated by the graph identification from a plurality of pre-stored reference graphs.
10. The method according to claim 8, wherein the modifying the color of the searched road segment area to the color indicated by the corresponding road segment color indication information comprises:
searching a color pixel value corresponding to the color indicated by the road section color indication information from a pre-stored color-color pixel value corresponding relation table;
and modifying the pixel value of each pixel point in the searched road section area into the searched color pixel value.
11. The method according to claim 8, wherein the modifying the color of the searched road segment area to the color indicated by the corresponding road segment color indication information comprises:
and selecting a color version corresponding to the color indicated by the road section color indication information from the plurality of color versions for the searched road section area, and replacing the searched road section area with the selected color version.
12. An image update system, comprising a controller and a traffic-inducing screen, wherein,
the controller is used for acquiring road traffic condition data of a target road, and determining the road traffic condition of each road section in a road section set corresponding to the target road based on the acquired road traffic condition data, wherein the road section set is obtained by dividing the target road, and the road traffic condition is used for reflecting one or more of visibility, slippery degree and congestion level; for a road section in the road section set, determining road section color indication information of the road section based on the road passing condition of the road section; sending a control instruction to a traffic guidance screen, wherein the control instruction is used for controlling the traffic guidance screen to update a reference map corresponding to the target road, and the control instruction comprises one or more of the following: the mapping relation between the road section identification of the target road section and the road section color indication information of the target road section, the graph identification of the target reference graph in the multiple reference graphs corresponding to the target road, and the target road section is all road sections or part of road sections in the road section set;
the traffic guidance screen is used for receiving the control instruction sent by the controller, determining a reference map to be updated based on the control instruction, and modifying the color of a road section area corresponding to the road section identifier in the reference map to be updated into the color indicated by the road section color indication information corresponding to the road section identifier; and presenting the color modified reference map.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 11.
CN202110179624.4A 2021-02-07 2021-02-07 Image updating method, system, electronic device and medium Pending CN112991725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179624.4A CN112991725A (en) 2021-02-07 2021-02-07 Image updating method, system, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179624.4A CN112991725A (en) 2021-02-07 2021-02-07 Image updating method, system, electronic device and medium

Publications (1)

Publication Number Publication Date
CN112991725A true CN112991725A (en) 2021-06-18

Family

ID=76392707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110179624.4A Pending CN112991725A (en) 2021-02-07 2021-02-07 Image updating method, system, electronic device and medium

Country Status (1)

Country Link
CN (1) CN112991725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114299738A (en) * 2021-12-16 2022-04-08 杭州海康威视系统技术有限公司 Method and equipment for generating road running condition graph

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1323432A (en) * 1998-09-15 2001-11-21 李兴洙 Method and apparatus for providing time-variant geographical information and a user device therefor
CN107134130A (en) * 2016-02-26 2017-09-05 高德信息技术有限公司 A kind of traffic guidance drawing generating method and device
CN108022439A (en) * 2017-12-29 2018-05-11 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of traffic guidance figure generation
CN108629795A (en) * 2017-03-17 2018-10-09 高德软件有限公司 A kind of mileage chart chip detection method and device
CN110176048A (en) * 2019-06-04 2019-08-27 河北瑞通公路配套设施有限公司 A kind of traffic guidance map rendering method
CN111586108A (en) * 2020-04-15 2020-08-25 阿里巴巴集团控股有限公司 Traffic map rendering method, device, terminal equipment, server and system
CN111862588A (en) * 2019-12-18 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for controlling information release, electronic equipment and storage medium
JP2020182104A (en) * 2019-04-25 2020-11-05 セイコーエプソン株式会社 Color conversion information generation method, color conversion information generation program, and color conversion information generation device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1323432A (en) * 1998-09-15 2001-11-21 李兴洙 Method and apparatus for providing time-variant geographical information and a user device therefor
CN107134130A (en) * 2016-02-26 2017-09-05 高德信息技术有限公司 A kind of traffic guidance drawing generating method and device
CN108629795A (en) * 2017-03-17 2018-10-09 高德软件有限公司 A kind of mileage chart chip detection method and device
CN108022439A (en) * 2017-12-29 2018-05-11 百度在线网络技术(北京)有限公司 Method, apparatus, storage medium and the terminal device of traffic guidance figure generation
JP2020182104A (en) * 2019-04-25 2020-11-05 セイコーエプソン株式会社 Color conversion information generation method, color conversion information generation program, and color conversion information generation device
CN110176048A (en) * 2019-06-04 2019-08-27 河北瑞通公路配套设施有限公司 A kind of traffic guidance map rendering method
CN111862588A (en) * 2019-12-18 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for controlling information release, electronic equipment and storage medium
CN111586108A (en) * 2020-04-15 2020-08-25 阿里巴巴集团控股有限公司 Traffic map rendering method, device, terminal equipment, server and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114299738A (en) * 2021-12-16 2022-04-08 杭州海康威视系统技术有限公司 Method and equipment for generating road running condition graph
CN114299738B (en) * 2021-12-16 2023-08-29 杭州海康威视系统技术有限公司 Method and equipment for generating road running condition map

Similar Documents

Publication Publication Date Title
US9646493B2 (en) Management of moving objects
CN111108538B (en) System for generating and/or updating digital models of digital maps
CN102818571B (en) Data hierarchy and organization method and device capable of fast displaying road conditions
EP2549231B1 (en) Map data distribution server, map data distribution system, and map data distribution method
US9916760B1 (en) Efficient traffic map rendering
CN111860304A (en) Image labeling method, electronic device, equipment and storage medium
CN109284801B (en) Traffic indicator lamp state identification method and device, electronic equipment and storage medium
US10030982B2 (en) Generalising topographical map data
CN113127583A (en) Data transmission method and device
CN114036253A (en) High-precision map data processing method and device, electronic equipment and medium
CN112991725A (en) Image updating method, system, electronic device and medium
CN113792061A (en) Map data updating method and device and electronic equipment
CN111337045A (en) Vehicle navigation method and device
CN111695389B (en) Lane line clustering method and device
CN115171075B (en) Road type identification method, device and equipment
CN113946729B (en) Data processing method and device for vehicle, electronic equipment and medium
US8457886B2 (en) Method for operating a navigation system
CN114330807A (en) Route determination method and device and electronic equipment
US20210110578A1 (en) Method and apparatus for configuring spatial information
CN114155731A (en) Data processing method and device for automatic driving vehicle and automatic driving vehicle
CN114291106A (en) Information display method and device for vehicle, electronic equipment and storage medium
WO2019117048A1 (en) In-vehicle device, information providing system, and information presentation method
CN112101177A (en) Map construction method and device and carrier
CN114691701A (en) High-precision map updating method and device
US20230160719A1 (en) Management device, management method, and management program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210618