CN111857627A - Graphic processing method, apparatus, device and storage medium - Google Patents

Graphic processing method, apparatus, device and storage medium Download PDF

Info

Publication number
CN111857627A
CN111857627A CN202010689155.6A CN202010689155A CN111857627A CN 111857627 A CN111857627 A CN 111857627A CN 202010689155 A CN202010689155 A CN 202010689155A CN 111857627 A CN111857627 A CN 111857627A
Authority
CN
China
Prior art keywords
graph
original
target
displayed
page
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
CN202010689155.6A
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN202010689155.6A priority Critical patent/CN111857627A/en
Publication of CN111857627A publication Critical patent/CN111857627A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a graph processing method, which comprises the following steps: when a graph display instruction sent by terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction; searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios; searching a graph to be displayed corresponding to the target scaling from the target graph set; and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed. The invention also discloses a graphic processing device, equipment and a storage medium. Compared with the target graph, the graph to be displayed has smaller deformation, and the graph to be displayed cannot be distorted.

Description

Graphic processing method, apparatus, device and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for processing graphics.
Background
With the continuous development of science and technology, the graphic processing technology has also been developed rapidly. When processing graphics data, it is necessary to convert the graphics data into point data and then thin out the point data in order to save memory space or reduce the point data, in consideration of the limitation of memory space or data amount. For example, when map elements need to be added to an electronic map during the drawing of the electronic map, in order to reduce the data processing amount of the electronic map, the outlines of the map elements are usually thinned out to reduce the data amount of the drawing of the map elements.
Among the conventional methods for thinning graphic data, the Douglas-Puck (DP for short) method is commonly used. However, after the graph data is thinned by adopting the douglas-pock method, the obtained graph has larger deformation compared with the original graph, and the graph distortion is serious.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a graphic processing method, a device, equipment and a storage medium, and aims to solve the technical problems that after original graphic data is thinned, an obtained graphic has larger deformation and serious graphic distortion compared with the original graphic.
In order to achieve the above object, the present invention provides a graphics processing method, including the steps of:
when a graph display instruction sent by terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction;
searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios;
searching a graph to be displayed corresponding to the target scaling from the target graph set;
and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed.
Optionally, before the step of determining the corresponding target graph and the target scaling according to the graph display instruction when the graph display instruction sent by the terminal device is received, the method further includes:
when a page display request sent by terminal equipment is received, displaying a page to be displayed corresponding to the page request, and judging whether a graph exists in the page to be displayed or not;
when the graph exists in the page to be displayed, respectively thinning the points to be processed corresponding to the graph in the page to be displayed according to different scaling ratios so as to obtain a graph set corresponding to the graph in the page to be displayed;
When a graph display instruction sent by the terminal equipment is received, the step of determining the corresponding target graph and the target scaling according to the graph display instruction comprises the following steps:
and when a graph display instruction sent by the terminal equipment based on the page to be displayed is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
Optionally, before the steps of displaying the page to be displayed corresponding to the page request and determining whether a graph exists in the page to be displayed when the page display request sent by the terminal device is received, the method further includes:
acquiring an original graph set;
acquiring a preset scaling set of the original graph set;
respectively thinning the points to be processed corresponding to each graph in the original graph set according to the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set;
after the steps of displaying the page to be displayed corresponding to the page request and judging whether the page to be displayed has the graph or not when the page display request sent by the terminal equipment is received, the method further comprises the following steps:
When the graph exists in the page to be displayed, judging whether the original graph set has an original graph corresponding to the graph in the page to be displayed;
if so, determining a graph set corresponding to the original graph corresponding to the graph in the page to be displayed in the original graph set as a graph set corresponding to the graph in the page to be displayed.
Optionally, after the step of determining whether an original graph corresponding to the graph in the page to be displayed exists in the original graph set when the graph exists in the page to be displayed, the method further includes:
and if not, respectively thinning the points to be processed corresponding to the graphs in the page to be displayed according to different scaling ratios to obtain a graph set corresponding to the graphs in the page to be displayed.
Optionally, the step of performing thinning on the to-be-processed points corresponding to each graph in the original graph set according to a preset scaling set to obtain a graph set corresponding to each graph in the original graph set includes:
acquiring the respective graph characteristics of the graphs in the original graph set;
and respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
Optionally, before the step of performing thinning on the to-be-processed point corresponding to each graph in the original graph set according to the graph feature and the preset scaling set to obtain the graph set corresponding to each graph in the original graph set, the method further includes:
acquiring a first rarefaction value according to the graph characteristics;
the step of respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set to obtain the graph sets corresponding to each graph in the original graph set comprises the following steps:
and according to the first thinning value and the preset scaling set, respectively thinning the points to be processed corresponding to the graphs in the original graph set so as to obtain a graph set corresponding to the graphs in the original graph set.
Optionally, before the step of performing thinning on the to-be-processed point corresponding to each graph in the original graph set according to the first thinning value and the preset scaling set to obtain the graph set corresponding to each graph in the original graph set, the method further includes:
Acquiring respective graphic elements of the graphics in the original graphic set;
the step of performing thinning on the to-be-processed points corresponding to the graphs in the original graph set according to the first thinning value and the preset scaling set to obtain respective graph sets of the graphs in the original graph set includes:
and according to the first thinning value, the preset scaling set and the graphic elements, respectively thinning the points to be processed corresponding to each graphic in the original graphic set to obtain a graphic set corresponding to each graphic in the original graphic set.
Optionally, before the step of performing thinning on the to-be-processed point corresponding to each graph in the original graph set according to the first thinning value, the preset scaling set, and the graph element, to obtain a graph set corresponding to each graph in the original graph set, the method further includes:
acquiring the element weight of the graphic element;
the step of performing thinning on the to-be-processed points corresponding to the graphs in the original graph set according to the first thinning value, the preset scaling set and the graph elements to obtain the graph sets of the graphs in the original graph set includes:
And according to a first thinning value, the preset scaling set and the element weight, respectively thinning the points to be processed corresponding to each graph in the original graph set so as to obtain a graph set corresponding to each graph in the original graph set.
Optionally, the step of performing thinning on the to-be-processed points corresponding to each graph in the original graph set according to the first thinning value, the preset scaling set, and the element weight, so as to obtain a graph set corresponding to each graph in the original graph set, includes:
acquiring a weight threshold of a graphic element corresponding to each preset scaling in the preset scaling set;
determining the point to be processed corresponding to the graphic element with the element weight larger than the weight threshold value as a selected point to be processed;
and respectively thinning the selected points to be processed according to the element weight of the selected points to be processed, the first thinning value and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
Optionally, the step of performing thinning on the selected to-be-processed points respectively according to the element weight of the selected to-be-processed point, the first thinning value, and the preset scaling set to obtain a graph set corresponding to each graph in the original graph set includes:
Determining a second rarefaction value according to the weight of the selected point to be processed and the preset scaling set;
determining a third rarefaction value according to the first rarefaction value and the second rarefaction value;
and according to the third thinning value, respectively thinning the selected points to be processed to obtain a graph set corresponding to each graph in the original graph set.
Optionally, the step of obtaining the preset scaling set of the original graphics set includes:
acquiring a preset scaling interval set of the original graph set;
and respectively determining preset scaling ratios in the preset scaling ratio interval set to obtain a preset scaling ratio set.
Further, to achieve the above object, the present invention provides a graphics processing apparatus comprising:
the first determining module is used for determining a corresponding target graph and a target scaling according to a graph display instruction when the graph display instruction sent by the terminal equipment is received;
the first searching module is used for searching a target graph set corresponding to the target graph, and the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios;
The second searching module is used for searching the graph to be displayed corresponding to the target scaling from the target graph set;
and the transmission module is used for transmitting the graph to be displayed to the terminal equipment so as to enable the terminal equipment to display the graph to be displayed.
Optionally, the apparatus further comprises:
the display method comprises the steps that a first judgment module is used for displaying a page to be displayed corresponding to a page request and judging whether a graph exists in the page to be displayed or not when the page display request sent by terminal equipment is received;
the first thinning module is used for respectively thinning the points to be processed corresponding to the graphs in the page to be displayed according to different scaling ratios when the graphs exist in the page to be displayed so as to obtain a graph set corresponding to the graphs in the page to be displayed;
the first determination module is further to:
and when a graph display instruction sent by the terminal equipment based on the page to be displayed is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring an original graph set;
The second acquisition module is used for acquiring a preset scaling set of the original image set;
the second thinning module is used for respectively thinning the points to be processed corresponding to the graphs in the original graph set according to the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set;
the second judging module is used for judging whether an original graph corresponding to the graph in the page to be displayed exists in the original graph set or not when the graph exists in the page to be displayed;
and the second determining module is used for determining the graph set corresponding to the original graph corresponding to the graph in the page to be displayed in the original graph set as the graph set corresponding to the graph in the page to be displayed.
Optionally, the second purge module is further configured to: acquiring the respective graph characteristics of the graphs in the original graph set; and respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
Optionally, the second purge module is further configured to: acquiring a first rarefaction value according to the graph characteristics; and according to the first thinning value and the preset scaling set, respectively thinning the points to be processed corresponding to the graphs in the original graph set so as to obtain a graph set corresponding to the graphs in the original graph set.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain respective graphic elements of the graphics in the original graphic set;
the second purge module is further configured to:
and according to the first thinning value, the preset scaling set and the graphic elements, respectively thinning the points to be processed corresponding to each graphic in the original graphic set to obtain a graphic set corresponding to each graphic in the original graphic set.
Optionally, the apparatus further comprises:
the fourth acquisition module is used for acquiring the element weight of the graphic element;
the second purge module is further configured to:
and according to a first thinning value, the preset scaling set and the element weight, respectively thinning the points to be processed corresponding to each graph in the original graph set so as to obtain a graph set corresponding to each graph in the original graph set.
Further, to achieve the above object, the present invention also provides a graphics processing apparatus, including: a memory, a processor and a graphics processing method program stored on the memory and executable on the processor, the graphics processing method program being configured to implement the steps of the graphics processing method as claimed in any one of the preceding claims.
Further, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a graphics processing method program which, when executed by a processor, implements the steps of the graphics processing method according to any one of the above-mentioned,
the invention provides a graphic processing method, which comprises the following steps: when a graph display instruction sent by terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction; searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios; searching a graph to be displayed corresponding to the target scaling from the target graph set; and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed. Therefore, the graph processing method of the invention thins the target graph according to different scaling ratios, so as to obtain the graph set, and then determines the graph to be displayed in the graph set according to the target scaling ratio. Therefore, the graph to be displayed is less deformed compared with the target graph, and the graph to be displayed cannot be distorted.
Drawings
Fig. 1 is a schematic structural diagram of a graphics processing device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a graphics processing method according to the present invention;
FIGS. 3a and 3b are schematic diagrams showing the results of using the Douglas-Pock method to dilute a graph;
FIG. 4 is a flowchart illustrating a graphics processing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a graphics processing method according to a third embodiment of the present invention;
FIG. 6 is a functional block diagram illustrating a graphics processing method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a graphics processing apparatus in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the graphic processing apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the graphics processing apparatus and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a graphic processing program.
In the graphic processing device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the graphic processing apparatus according to the present invention may be provided in the graphic processing apparatus, which calls the graphic processing program stored in the memory 1005 through the processor 1001 and executes the graphic processing method provided by the embodiment of the present invention.
Based on the above hardware structure, an embodiment of the graphics processing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart diagram of a first embodiment of a graphics processing method of the present invention, the graphics processing method including the steps of:
Step S21: and when a graph display instruction sent by the terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
The target graph is an original graph corresponding to the graph to be displayed and desired to be obtained by the user, and the target scaling is the ratio of the graph to be displayed and the original graph desired to be obtained by the user.
In this embodiment, the graphics processing device and the terminal device may be a computer, a mobile phone, a tablet, or the like, and may also be other devices that can implement the same or similar functions. The graphic display instruction refers to that the terminal device receives graphic display operation of a user through the display, the display operation can include a target graphic, a target scaling and the like, then the terminal device generates a corresponding graphic display instruction and sends the display instruction to the graphic processing device, and the graphic processing device extracts the target graphic and the target scaling in the display instruction.
In this embodiment, the target graph may be an original graph, an original map, an original set of graphs, an original CAD graph, or the like, and may specifically include various possible shapes such as a circle, a rectangle, a curve, a straight line, or the like.
In general, in order to save storage space or reduce data, a target graph needs to be converted into a plurality of to-be-processed points, and the to-be-processed points are thinned. At present, the Douglas-Puck (English: Douglas-Peuker, DP for short) method is commonly used, and the basic idea is: virtually connecting a straight line to the first point and the last point of each curve, solving the distance between all the points and the straight line, finding out the maximum distance value dmax, comparing the dmax with the tolerance D, and if dmax is less than D, completely eliminating the middle points on the curve; if dmax is larger than or equal to D, a coordinate point corresponding to dmax is reserved, the point is taken as a boundary, the curve is divided into two parts, and the method is repeatedly used for the two parts.
It should be noted that the plurality of points to be processed in the present invention refer to points after the target graph is converted, that is, lines in the target graph are cut into a large number of points, and the large number of points are used for representing the target graph; the conversion mode of converting the target graph into the plurality of to-be-processed points is not limited.
For example, referring to fig. 3a, the original curve is a graph formed by 8 points connected end to end in sequence, referring to the first curve on the left in fig. 3, a straight line is virtually connected between the two points on the end and the end of the curve, the distances from the rest points to the straight line are calculated, the maximum point is selected to be compared with a threshold value, if the distance is greater than the threshold value, the point with the maximum distance from the straight line is retained, otherwise, all the points between the two points of the straight line are omitted, referring to the first curve on the right in fig. 3a, and the 4 th point is retained. Then, according to the retained 4 th point, the known curve is divided into two parts to be processed, and the two steps of operations are repeatedly and alternately executed, namely, the point with the largest distance is still selected to be compared with the threshold value, and the two parts are sequentially selected and discarded until no point can be discarded, and finally, the coordinates of the curve point meeting the given precision limit are obtained, such as the first curve at the lower left in fig. 3a and the first curve at the lower right in fig. 3a, the 6 th point and the 7 th point are sequentially retained, and other points are discarded, namely, the simplification of the line is completed.
However, where the douglas curvature is large, the thinning amplitude is too large, the smoothness is not sufficient, and the distortion is relatively severe, as shown in PA in fig. 3 b. Namely, the drawing of the section of the approximate curve with larger camber gives obvious corner feeling to people, and is most obvious especially under a large-scale map.
Aiming at the technical problem, the invention adopts the technical scheme that a plurality of points to be processed after the target graph is converted are thinned according to the scaling to obtain a result point set, and then a result graph is obtained based on the result point set, wherein the thinned result graph has smaller deformation than the target graph.
It can be understood that the acquired target graph is an original data graph, and the original data graph includes all data information required by the user. Taking a map as an example, the original data graph is a data graph of a river, and the data graph comprises the length and the width of the river, all the river banks and the like.
Step S22: and searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on the points to be processed corresponding to the target graph according to different scaling ratios.
The graphs in the graph set are obtained after being thinned by the graph processing method provided by the invention, namely, the graph set is obtained by respectively thinning the points to be processed corresponding to the original graph according to different scaling ratios. Wherein, a scaling corresponds to a graphics after rarefaction, the number of scaling does not make the restriction, and the user can set up the scaling of different quantity according to different demands.
It should be noted that, in the present invention, an original graph corresponds to a graph set obtained after thinning, and the number of the original graphs is not limited, that is, the number of the graph sets is not limited.
It can be understood that, when an original graph corresponding to a target graph is found, a thinned graph set corresponding to the original graph is taken as a target graph set. And when the original graph corresponding to the target graph is not found, respectively thinning the points to be processed corresponding to the target graph according to different scaling ratios to obtain a graph set, and determining the graph set as a target graph set.
It should be noted that the scaling of the present embodiment may be a scale, and specifically, the scaling may be preset according to the scaling requirement. The target graph is large, the contained data information is more, more storage space can be consumed for directly storing the target graph, the processed data volume is large, the target graph needs to be converted into a plurality of to-be-processed points, and then the plurality of to-be-processed points are thinned to obtain a result graph. At this time, the visual understanding is that the thinning is performed by scaling, that is, the target graph is scaled down according to a certain scaling, and some points in the plurality of points to be processed are discarded in the scaled result graph compared with the target graph, so as to achieve the effects of reducing the data volume and saving the storage space.
It can be understood that, the target graph is reduced, not for viewing a smaller result graph, but the target graph is thinned in a reduction mode, and a result graph with a smaller data volume is obtained; the result graphic may be a scaled down target graphic and the viewed graphic may be an enlarged result graphic, the result graphic having less data than the target graphic and not necessarily being smaller in size than the target graphic, so a small meaning may be a smaller amount of data.
Taking a closed polygon map as an example, the size of a target graph is 100 square decimeters of the closed polygon map, thinning processing is performed according to a preset scaling ratio of 1:10, the obtained result graph is a 1 square decimeter closed polygon map, the result graph is changed into a 100 square decimeter view graph through simple enlargement, the data volume of the view graph is the same as the data volume of the result graph, and the view graph is the same as the size of the closed polygon map, so that the scaling ratio aims at thinning, reducing the data volume and not simply reducing the target graph.
It should be noted that the target pattern of the present invention may be a pattern formed by intersecting or connecting a plurality of lines end to end, and the target pattern may include a plurality of different regions and different colors. The thinning process execution object can be a line in the target graph, and the area and the color generated by line segmentation do not need to be subjected to thinning processing, and only need to be processed according to the area and the corresponding color corresponding to the target graph.
It can be understood that the purpose of converting the target graph into the plurality of to-be-processed points is to perform thinning on the to-be-processed points, remove a part of the to-be-processed points, obtain a result point set, further obtain a result graph, and implement thinning on the target graph, wherein the thinning process is to perform thinning on the plurality of to-be-processed points into which lines in the target graph are converted, rather than directly performing thinning on the lines of the target graph.
For example, the target graphic is a river map including data actually being a river bank line, a river water color, and a river bank color. When the river map is subjected to rarefaction treatment, a river bank line is used as a treatment object and is converted into a plurality of to-be-treated points, then rarefaction is performed on the plurality of to-be-treated points to obtain a result point set, a result graph is obtained, and the color of the result graph only needs to be correspondingly colored according to the color of a target graph.
It should be noted that different scaling rarefactions are different, and the larger the scaling, the more points need to be retained, and the smaller the scaling, the fewer points need to be retained.
It can be understood that the rarefaction process does not simply obtain a corresponding number of result point sets by directly calculating the number of the plurality of points to be processed according to the scaling ratio, and needs to be comprehensively considered according to the graphic features, graphic elements and the like of the target graphic.
For example, the target graph is a river map, when the river map is subjected to rarefaction processing, a river bank line is used as a processing object, the number of points to be processed converted from the river bank line is 10000000, the preset scaling ratios are 1:5000 and 1:100 respectively, according to the two scaling ratios, the points to be processed converted from the river bank line are subjected to rarefaction processing respectively, a result point set with 1000 points and a result point set with 10000 points respectively are obtained, and it can be seen that the number of the points in the result point set, 1000 and 10000, is not directly calculated according to the preset scaling ratio and the multiple points to be processed.
Step S23: and searching the graph to be displayed corresponding to the target scaling from the target graph set.
It can be understood that, when an original graph corresponding to a target graph is found, a thinned graph set corresponding to the original graph is taken as a target graph set. The graphics in the target graphics set are all graphics after the target graphics are thinned, the target graphics comprise graphics after the target graphics are thinned at different scaling ratios, and the graphics after thinning corresponding to the scaling ratio matched with the target scaling ratio are determined as the graphics to be displayed.
Step S24: and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed.
After the graph processing equipment obtains the graph to be displayed, the graph to be displayed is sent to the terminal equipment, so that the terminal equipment completes the display of the graph to be displayed.
The embodiment provides a graphic processing method, which comprises the following steps: when a graph display instruction sent by terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction; searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios; searching a graph to be displayed corresponding to the target scaling from the target graph set; and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed. Therefore, the graph processing method of the invention thins the target graph according to different scaling ratios, so as to obtain the graph set, and then determines the graph to be displayed in the graph set according to the target scaling ratio. Therefore, the graph to be displayed is less deformed compared with the target graph, and the graph to be displayed cannot be distorted.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of a graphics processing method according to the present invention, the method including the steps of:
step S41: when a page display request sent by terminal equipment is received, displaying a page to be displayed corresponding to the page request, and judging whether a graph exists in the page to be displayed.
It should be noted that the page display request refers to a page display request received by the terminal device from the user, and the page display request is received by the terminal device. The method comprises the steps that a page display request is an operation triggered by terminal equipment and is an operation which a user wants to obtain a display effect of a page, the terminal equipment receives the operation, generates the page display request and sends the page display request to the graphic processing equipment; and after receiving the page display request, the image processing equipment directly displays the page, judges whether the image exists in the page or not, directly displays the page when the image does not exist in the page, and executes the next operation when the image exists in the page.
Step S42: and when the graph exists in the page to be displayed, respectively thinning the points to be processed corresponding to the graph in the page to be displayed according to different scaling ratios so as to obtain a graph set corresponding to the graph in the page to be displayed.
It should be noted that the thinning method here is the same as the target graph thinning method, and the points to be processed corresponding to the graph are respectively thinned according to the scaling, which is not described here again.
Step S43: and when a graph display instruction sent by the terminal equipment based on the page to be displayed is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
It should be noted that the terminal device receives a page display request of a user to display a page, and further receives a graphic display instruction of the user again when a graphic exists in the page, where a target graphic included in the graphic display instruction is a graphic in the page to be displayed.
Referring to fig. 5, fig. 5 is a schematic flow chart diagram of a graphics processing method according to a third embodiment of the present invention, the method includes the following steps:
step S51: and acquiring an original graph set.
It should be noted that the original pattern and the target pattern are the same pattern, and both are original patterns. The original graphic set in this embodiment is a set composed of all original graphics to be thinned. The graphics processing apparatus needs to perform thinning processing on all the original graphics to be processed.
Step S52: and acquiring a preset scaling set of the original graph set.
An original graph corresponds to a preset scaling set, and the preset scaling set comprises a plurality of different preset scaling ratios of the original graph.
Further, step S52: acquiring a preset scaling interval set of the original graph set; and respectively determining preset scaling ratios in the preset scaling ratio interval set to obtain a preset scaling ratio set.
It should be noted that, one preset scaling interval has a preset scaling, and the preset scaling intervals of different original graphs may be different or the same; under different requirements, the preset scaling ratios determined by the same preset scaling interval may be different. The determination mode of the preset scaling is adjusted according to different requirements, and the invention is not limited.
It can be understood that, for different requirements, the original graphics need to be thinned out by adopting different preset scaling ratios. If the thinning operation is performed once for each preset scaling, it will take a lot of time to process the data. Because the original graph is thinned by adopting the relatively close preset scaling ratio, the obtained graph has no too much difference, and meanwhile, the thinning aims to reduce useless data under the condition of meeting the requirement, the preset scaling ratio is determined in a preset scaling ratio interval, the original graph is subjected to data thinning once by utilizing the preset scaling ratio, a graph representing all the preset scaling ratios in the preset scaling ratio interval is obtained, the data processing time can be greatly reduced, and the resources and the time are saved.
For example, the original graphic is a city a map, the preset scale is a scale, and the original graphic data is all data included in the city a map. The map of the city A needs to be subjected to thinning processing to obtain an electronic map which can be viewed by a common user through a mobile terminal, in order to meet different display requirements, the intervals of the scale are [1:10000, 1:1000], [1:1000, 1:100] and [1:100, 1:1], the scales of the three intervals of the scale are determined to be 1:5000, 1:500 and 1:50 respectively, and the map of the city A is respectively thinned according to the three scales to obtain three thinned graphs of the city A.
Step S53: and respectively thinning the points to be processed corresponding to the graphs in the original graph set according to the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
The thinning method is the same as the above-mentioned thinning method, and is not described herein again.
Step S54: and when the graph exists in the page to be displayed, judging whether the original graph set has the original graph corresponding to the graph in the page to be displayed.
It should be noted that, when the graph in the page to be displayed corresponds to the original graph in the original graph set, that is, the graph in the page to be displayed already has the thinned graph set; and when the graph in the page to be displayed does not correspond to the original graph in the original graph, the target graph does not have the thinned graph set.
Step S55: if so, determining a graph set corresponding to the original graph corresponding to the graph in the page to be displayed in the original graph set as a graph set corresponding to the graph in the page to be displayed.
And when the graph in the page to be displayed corresponds to the original graph in the original graph set, determining the graph set corresponding to the corresponding original graph as the graph set of the graph in the page to be displayed. And then, determining the graph in the page to be displayed as a target graph, and directly determining the graph to be displayed in a graph set corresponding to the corresponding original graph according to the graph display instruction target scaling so as to enable the terminal equipment to display the graph to be displayed.
And when the judgment result is that the graph in the page to be displayed does not correspond to the original graph in the original graph set, thinning the graph in the page to be displayed according to the target scaling to obtain the graph to be displayed.
In this embodiment, a graph set corresponding to each graph in the original graph set is obtained by performing thinning processing on all original graphs, when a graph in a page to be displayed is matched with the original graphs in the original graph set, the graph to be displayed is searched in the graph set corresponding to the original graphs matched with the graph in the page to be displayed only according to a target scaling, and the target graph does not need to be thinned again, so that the graph to be displayed is obtained, and the graph display efficiency is high.
Further, step S53 includes: acquiring the respective graph characteristics of the graphs in the original graph set; and respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
It should be noted that the graphic features of the original graphic may be line type, graphic complexity, etc. Due to different graph characteristics, when the result point set represents the result graph, the number of the result points required to be reserved is different. When the graphics with different characteristics in the original graphics are thinned, the number of discarded points is different. Lines of different line types are converted into a plurality of storage points, and even if the number of the respective points to be processed is the same, the number of the result point sets after thinning is possibly different; the number of the to-be-processed points after the simple graph and the complex graph are converted is the same, but the number of the result point sets after thinning can be different.
For example, the original graph is a target triangle, the graph feature is a triangle, the preset scaling ratio is 1:200, the target triangle is converted into 50000 points to be processed, the points to be processed are thinned to obtain a result point set with the number of 30, that is, 3 important vertexes and 27 points representing the length relation of the line segment are reserved, and then the result point set is drawn into a result triangle based on the 30 points and the graph feature, namely the triangle.
The original graph is a curve graph, the graph characteristic is an A curve graph, the preset scaling ratio is 1:200, the target curve graph is converted into 50000 points to be processed, the points to be processed are thinned to obtain a result point set, the number of the result point set is 180, 80 points of important curve turning points and 100 points representing the length of a line segment are reserved, and then the result point set is drawn into the result curve graph based on 180 points and the graph characteristic, namely the A curve graph.
Further, step S53 includes: acquiring a first rarefaction value according to the graph characteristics; and according to the first thinning value and the preset scaling set, respectively thinning the points to be processed corresponding to the graphs in the original graph set so as to obtain a graph set corresponding to the graphs in the original graph set.
It can be understood that, because the graph features are different, the graph with different features in the original graph is thinned, and the number of the result points required to be reserved is different in the obtained result point set. The degree of thinning required for different features (the percentage of the result point set to the plurality of points to be processed) is different, and the first degree of thinning is used for representing the degree of thinning of different graphic features. The first lean values required for different requirements may be different or the same. The user can determine the appropriate first rarefaction value according to the requirement, and the invention is not limited by specific numerical values.
Further, step S53 includes: acquiring respective graphic elements of the graphics in the original graphic set; and according to the first thinning value, the preset scaling set and the graphic elements, respectively thinning the points to be processed corresponding to each graphic in the original graphic set to obtain a graphic set corresponding to each graphic in the original graphic set.
It should be noted that the graphic element of this embodiment may be an object name of the graphic representation, such as a tree, a building, and the like. The partial figures with the same characteristics in the original figure may be different figure elements, and the importance degrees of the different figure elements are different. Even if the number of the different graphic elements converted into the plurality of points to be processed is the same, the number of result point sets which need to be reserved after thinning can be different; the same element can be diluted or directly discarded under different requirements.
For example, the original graph is a map of a district B in the city A, and the preset scaling ratio is 1: 200; take the C building graph and the D open space graph in the B area as an example, and the graph features are both-rectangle. And converting the map of the area B into a plurality of points to be processed, wherein the number of the points to be processed of the C building graph and the D air-ground graph is 50000, and the number of the result point set points of the C building graph after rarefaction is 100 and the number of the result point set points of the D air-ground graph is 50 because the buildings are more important relative to the air ground.
The original graph is a map of a district B in A city, and the preset scaling ratios are 1:500 and 1: 50; taking the graph of the E green space of the C cell of the B cell as an example, when the preset scaling is 1:500, when the map of the B cell of the A city is thinned, the E green space does not need to be reserved, the graph element can be discarded, and the obtained result map of the B cell of the A city does not have the element of the E green space; and when the preset scaling is 1:50, the E green space needs to be reserved, the map in the area B of the A city is thinned, and the result map in the area B of the A city has the E green space.
Further, step S53 includes: acquiring the element weight of the graphic element; and according to a first thinning value, the preset scaling set and the element weight, respectively thinning the points to be processed corresponding to each graph in the original graph set so as to obtain a graph set corresponding to each graph in the original graph set.
It is understood that the weight refers to the importance of a certain factor or index relative to a certain event, which is different from the general weight, and represents not only the percentage of a certain factor or index, but also the relative importance of the factor or index, which tends to contribute to the degree or importance. The element weights are used to characterize the importance of the graphic elements. Generally, the element weights of different graphic elements in the original graphic are different for the same original graphic, and thus, the number of points in the set of result points obtained after thinning may be different. When the result point set represents the result graph, the number of the result points needed to be reserved may be different because the element weights of the same graph element of the same original graph may be different. Under different requirements, the same graphic element weight may be the same or different, the original graphic has the same graphic feature, and the graphic elements with the same graphic feature are the same, but the element weights are different, and the number of the points in the thinned result point set is different.
For example, the original graph is a map of a district B in the city A, and the preset scaling ratio is 1: 500; taking the graph of the E green land of the C cell of the B cell as an example, the graph features are all hexagons, namely the first thinning values are the same, the graph elements are all green lands, the element weight of the green land under the first requirement is a, and the element weight of the green land under the second requirement is B; converting the E greenbelts into the number of points to be processed which is 1000, under the constraint of a first requirement, performing thinning on the map of the B area to obtain the number of the E greenbelt result points of the C cell of the B area which is 50, under the constraint of a second requirement, performing thinning on the map of the B area to obtain the number of the E greenbelt result points of the C cell of the B area which is 40.
It can be understood that, when the original graph is thinned, three constraints are required according to the first thinning value corresponding to the graph feature, the preset scaling and the element weight. Different graph characteristics of different original graphs, the number of points in the result point set after thinning may be different; the different original graphs have the same graph characteristics, namely the first thinning values are the same, and the preset scaling ratios are different, so that the number of the concentrated points of the thinned result points can be different; different original graphs have the same graph characteristics, the same preset scaling, different graph elements and possibly different numbers of concentrated points of result points obtained after thinning; different original graphs have the same graph characteristics, the same preset scaling, the same graph elements and different element weights, and the number of the obtained result point concentration points may also be different.
Further, the step S53 includes:
acquiring a weight threshold of a graphic element corresponding to each preset scaling in the preset scaling set; determining the point to be processed corresponding to the graphic element with the element weight larger than the weight threshold value as a selected point to be processed; and respectively thinning the selected points to be processed according to the element weight of the selected points to be processed, the first thinning value and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
It should be noted that the original graph has the same graph features, that is, the first thinning values are the same, the element weights are the same, the preset scaling ratios are different, the weight thresholds are different, and when the point to be processed of the original graph conversion is thinned, the point to be processed corresponding to the element to be discarded is also different. The preset scaling is small, the weight threshold is large, and the number of graphic elements needing to be reserved is small; the preset scaling is large, the weight threshold is small, and more graphic elements need to be reserved. The weight threshold can be determined according to requirements, and the specific value of the weight threshold is not limited.
Specifically, the map is taken as an example, the original map is an original map of city A, and by taking M buildings, L artificial lakes and N greenbelts of the original map of city A as an example, the graphic features are respectively rectangles, curved polygons and hexagons, that is, the obtained first thinning values are respectively q1, q2 and q3, the element weights are sequentially M, L and N, and the preset scaling ratios are respectively 1:50 and 1: 500; when the preset scaling ratio is 1:50, the element weight thresholds of M stories, L artificial lakes and N greenbelts of the original map of the city A are M1, L1 and N1 respectively; at a preset scale of 1:500, the element weight thresholds of M storied buildings, L artificial lakes, and C roads of the original map of city a are M2, L2, and n2, respectively. When the original map of city A is converted into the points to be processed, the number of the points to be processed converted from M buildings, L artificial lakes and N green lands is 2000, 4000 and 1000 respectively. According to a preset scaling ratio of 1:50, element weights M, L and N are respectively compared with respective element weight thresholds M1, L1 and N1, wherein the element weights M, L and N are all larger than the respective weight thresholds, then the original map of city A is thinned according to the preset scaling ratio of 1:50, first thinning values q1, q2 and q3 and the element weights M, L and N, and the number of result points of M buildings, L artificial lakes and N greenbelts in the obtained result graph is respectively 80, 300 and 40; according to a preset scaling ratio of 1:500, element weights M, L and N are respectively compared with respective weight threshold values M2, L2 and N2, the element weights M and L are both larger than the respective weight threshold values, N is smaller than the weight threshold value of the element N, an element N green space is abandoned, then, the original map of the city A is thinned according to the preset scaling ratio of 1:500, first thinning values q1 and q2 and the element weights M and L, and the number of the result points of the M building and the L artificial lake of the obtained result graph is respectively 20 and 70.
Further, the step S53 includes:
determining a second rarefaction value according to the weight of the selected point to be processed and the preset scaling set; determining a third rarefaction value according to the first rarefaction value and the second rarefaction value; and according to the third thinning value, respectively thinning the selected points to be processed to obtain a graph set corresponding to each graph in the original graph set.
It should be noted that, because different selected to-be-processed points may have different element weights, and the obtaining of the second rarefaction value is based on the set scaling and the element weight of the selected to-be-processed point, the second rarefaction values of different elements may be different under the same preset scaling; in addition, the third rarefaction value is based on the first and second rarefaction values, and assuming that the first rarefaction values are the same, the third rarefaction values of different elements may also be different, since the second rarefaction values of different elements may be different. In this embodiment, the third rarefaction value is substantially based on a plurality of correlation quantities including the graphic features, the element weights of the graphic elements, the preset scaling ratios, and the element weight threshold, and when the original graphic is rarefied, each correlation quantity needs to be considered comprehensively.
Referring to fig. 6, fig. 6 is a functional module diagram of a graphics processing method according to a first embodiment of the present invention, where the graphics processing apparatus includes:
the first determining module 10 is configured to determine, when a graphic display instruction sent by a terminal device is received, a corresponding target graphic and a target scaling according to the graphic display instruction;
a first searching module 20, configured to search a target graph set corresponding to the target graph, where the target graph set includes graphs obtained by performing thinning on to-be-processed points corresponding to the target graph according to different scaling ratios;
a second searching module 30, configured to search for a to-be-displayed graph corresponding to the target scaling from the target graph set;
and the transmission module 40 is configured to transmit the to-be-displayed graph to the terminal device, so that the terminal device displays the to-be-displayed graph.
Optionally, the apparatus further comprises:
the display method comprises the steps that a first judgment module is used for displaying a page to be displayed corresponding to a page request and judging whether a graph exists in the page to be displayed or not when the page display request sent by terminal equipment is received;
the first thinning module is used for respectively thinning the points to be processed corresponding to the graphs in the page to be displayed according to different scaling ratios when the graphs exist in the page to be displayed so as to obtain a graph set corresponding to the graphs in the page to be displayed;
The first determination module is further to:
and when a graph display instruction sent by the terminal equipment based on the page to be displayed is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring an original graph set;
the second acquisition module is used for acquiring a preset scaling set of the original image set;
the second thinning module is used for respectively thinning the points to be processed corresponding to the graphs in the original graph set according to the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set;
the second judging module is used for judging whether an original graph corresponding to the graph in the page to be displayed exists in the original graph set or not when the graph exists in the page to be displayed;
and the second determining module is used for determining the graph set corresponding to the original graph corresponding to the graph in the page to be displayed in the original graph set as the graph set corresponding to the graph in the page to be displayed.
Optionally, the second purge module is further configured to: acquiring the respective graph characteristics of the graphs in the original graph set; and respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
Optionally, the second purge module is further configured to: acquiring a first rarefaction value according to the graph characteristics; and according to the first thinning value and the preset scaling set, respectively thinning the points to be processed corresponding to the graphs in the original graph set so as to obtain a graph set corresponding to the graphs in the original graph set.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain respective graphic elements of the graphics in the original graphic set;
the second purge module is further configured to:
and according to the first thinning value, the preset scaling set and the graphic elements, respectively thinning the points to be processed corresponding to each graphic in the original graphic set to obtain a graphic set corresponding to each graphic in the original graphic set.
Optionally, the apparatus further comprises:
the fourth acquisition module is used for acquiring the element weight of the graphic element;
the second purge module is further configured to:
and according to a first thinning value, the preset scaling set and the element weight, respectively thinning the points to be processed corresponding to each graph in the original graph set so as to obtain a graph set corresponding to each graph in the original graph set.
The graphics processing apparatus according to the present invention employs all technical solutions of all the above embodiments, so that at least all the beneficial effects brought by the technical solutions of the above embodiments are achieved, and details are not repeated herein.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A graphics processing method, comprising:
when a graph display instruction sent by terminal equipment is received, determining a corresponding target graph and a target scaling according to the graph display instruction;
searching a target graph set corresponding to the target graph, wherein the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios;
searching a graph to be displayed corresponding to the target scaling from the target graph set;
and transmitting the graph to be displayed to the terminal equipment so that the terminal equipment can display the graph to be displayed.
2. The graphics processing method according to claim 1, wherein before the step of determining the corresponding target graphics and the target scaling according to the graphics presentation instruction when receiving the graphics presentation instruction sent by the terminal device, the method further comprises:
when a page display request sent by terminal equipment is received, displaying a page to be displayed corresponding to the page request, and judging whether a graph exists in the page to be displayed or not;
when the graph exists in the page to be displayed, respectively thinning the points to be processed corresponding to the graph in the page to be displayed according to different scaling ratios so as to obtain a graph set corresponding to the graph in the page to be displayed;
when a graph display instruction sent by the terminal equipment is received, the step of determining the corresponding target graph and the target scaling according to the graph display instruction comprises the following steps:
and when a graph display instruction sent by the terminal equipment based on the page to be displayed is received, determining a corresponding target graph and a target scaling according to the graph display instruction.
3. The graphics processing method according to claim 2, wherein before the step of displaying the page to be displayed corresponding to the page request and determining whether the page to be displayed has graphics when receiving the page display request sent by the terminal device, the method further comprises:
Acquiring an original graph set;
acquiring a preset scaling set of the original graph set;
respectively thinning the points to be processed corresponding to each graph in the original graph set according to the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set;
after the steps of displaying the page to be displayed corresponding to the page request and judging whether the page to be displayed has the graph or not when the page display request sent by the terminal equipment is received, the method further comprises the following steps:
when the graph exists in the page to be displayed, judging whether the original graph set has an original graph corresponding to the graph in the page to be displayed;
if so, determining a graph set corresponding to the original graph corresponding to the graph in the page to be displayed in the original graph set as a graph set corresponding to the graph in the page to be displayed.
4. The graphics processing method according to claim 3, wherein after the step of determining whether or not the original graphics corresponding to the graphics in the page to be shown exist in the original graphics set when the graphics exist in the page to be shown, the method further comprises:
And if not, respectively thinning the points to be processed corresponding to the graphs in the page to be displayed according to different scaling ratios to obtain a graph set corresponding to the graphs in the page to be displayed.
5. The graphics processing method according to claim 3, wherein the step of performing thinning on the to-be-processed points corresponding to the graphics in the original graphics set according to a preset scaling set to obtain the graphics sets corresponding to the graphics in the original graphics set respectively comprises:
acquiring the respective graph characteristics of the graphs in the original graph set;
and respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set so as to obtain a graph set corresponding to each graph in the original graph set.
6. The graphics processing method according to claim 5, wherein before the step of thinning the points to be processed corresponding to the respective graphics in the original graphics set according to the graphics features and the preset scaling set to obtain the graphics sets corresponding to the respective graphics in the original graphics set, the method further comprises:
Acquiring a first rarefaction value according to the graph characteristics;
the step of respectively thinning the points to be processed corresponding to each graph in the original graph set according to the graph characteristics and the preset scaling set to obtain the graph sets corresponding to each graph in the original graph set comprises the following steps:
and according to the first thinning value and the preset scaling set, respectively thinning the points to be processed corresponding to the graphs in the original graph set so as to obtain a graph set corresponding to the graphs in the original graph set.
7. The graphics processing method according to claim 6, wherein before the step of thinning the points to be processed corresponding to the respective graphics in the original graphics set according to the first thinning value and the preset scaling set to obtain the graphics sets corresponding to the respective graphics in the original graphics set, the method further comprises:
acquiring respective graphic elements of the graphics in the original graphic set;
the step of performing thinning on the to-be-processed points corresponding to the graphs in the original graph set according to the first thinning value and the preset scaling set to obtain respective graph sets of the graphs in the original graph set includes:
And according to the first thinning value, the preset scaling set and the graphic elements, respectively thinning the points to be processed corresponding to each graphic in the original graphic set to obtain a graphic set corresponding to each graphic in the original graphic set.
8. A graphics processing apparatus, characterized in that the graphics processing apparatus comprises:
the first determining module is used for determining a corresponding target graph and a target scaling according to a graph display instruction when the graph display instruction sent by the terminal equipment is received;
the first searching module is used for searching a target graph set corresponding to the target graph, and the target graph set is provided with graphs obtained by respectively performing thinning on points to be processed corresponding to the target graph according to different scaling ratios;
the second searching module is used for searching the graph to be displayed corresponding to the target scaling from the target graph set;
and the transmission module is used for transmitting the graph to be displayed to the terminal equipment so as to enable the terminal equipment to display the graph to be displayed.
9. A graphics processing apparatus, characterized in that the graphics processing apparatus comprises: memory, a processor and a graphics processing method program stored on the memory and executable on the processor, the graphics processing method program being configured to implement the steps of the graphics processing method according to any of claims 1 to 7.
10. A storage medium having stored thereon a graphics processing method program which, when executed by a processor, implements the steps of the graphics processing method according to any one of claims 1 to 7.
CN202010689155.6A 2020-07-16 2020-07-16 Graphic processing method, apparatus, device and storage medium Pending CN111857627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010689155.6A CN111857627A (en) 2020-07-16 2020-07-16 Graphic processing method, apparatus, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010689155.6A CN111857627A (en) 2020-07-16 2020-07-16 Graphic processing method, apparatus, device and storage medium

Publications (1)

Publication Number Publication Date
CN111857627A true CN111857627A (en) 2020-10-30

Family

ID=72983980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010689155.6A Pending CN111857627A (en) 2020-07-16 2020-07-16 Graphic processing method, apparatus, device and storage medium

Country Status (1)

Country Link
CN (1) CN111857627A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167553A (en) * 2022-07-19 2022-10-11 珠海格力电器股份有限公司 Cooking temperature curve processing method and device and computer equipment
CN115167554A (en) * 2022-07-19 2022-10-11 珠海格力电器股份有限公司 Cooking temperature curve processing method and device and computer equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040189677A1 (en) * 2003-03-25 2004-09-30 Nvidia Corporation Remote graphical user interface support using a graphics processing unit
CN101458818A (en) * 2008-09-26 2009-06-17 深圳市路畅科技有限公司 Graphic data compression processing method based on folding line evacuating algorithm
CN102541418A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Processing method and device for realizing map display
CN102760160A (en) * 2012-06-08 2012-10-31 湘潭市勘测设计院 System for downsizing multi-scale geographic map in spatial information database
CN104598103A (en) * 2014-12-30 2015-05-06 北京奇虎科技有限公司 Method and device for processing graphics in pages
CN106446223A (en) * 2016-09-30 2017-02-22 北京百度网讯科技有限公司 Map data processing method and device
CN108961165A (en) * 2018-07-06 2018-12-07 北京百度网讯科技有限公司 Method and apparatus for load image
CN110019588A (en) * 2017-09-04 2019-07-16 高德信息技术有限公司 A kind of road determines method and device
CN110990612A (en) * 2019-12-13 2020-04-10 特力惠信息科技股份有限公司 Method and terminal for rapidly displaying vector big data
CN111091497A (en) * 2019-12-12 2020-05-01 深圳震有科技股份有限公司 Map vector line and plane thinning method, intelligent terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040189677A1 (en) * 2003-03-25 2004-09-30 Nvidia Corporation Remote graphical user interface support using a graphics processing unit
CN101458818A (en) * 2008-09-26 2009-06-17 深圳市路畅科技有限公司 Graphic data compression processing method based on folding line evacuating algorithm
CN102541418A (en) * 2010-12-30 2012-07-04 上海博泰悦臻电子设备制造有限公司 Processing method and device for realizing map display
CN102760160A (en) * 2012-06-08 2012-10-31 湘潭市勘测设计院 System for downsizing multi-scale geographic map in spatial information database
CN104598103A (en) * 2014-12-30 2015-05-06 北京奇虎科技有限公司 Method and device for processing graphics in pages
CN106446223A (en) * 2016-09-30 2017-02-22 北京百度网讯科技有限公司 Map data processing method and device
CN110019588A (en) * 2017-09-04 2019-07-16 高德信息技术有限公司 A kind of road determines method and device
CN108961165A (en) * 2018-07-06 2018-12-07 北京百度网讯科技有限公司 Method and apparatus for load image
CN111091497A (en) * 2019-12-12 2020-05-01 深圳震有科技股份有限公司 Map vector line and plane thinning method, intelligent terminal and storage medium
CN110990612A (en) * 2019-12-13 2020-04-10 特力惠信息科技股份有限公司 Method and terminal for rapidly displaying vector big data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郭琳: "浅谈AUTOCAD中的比例设置", 《考试周刊》 *
郭琳: "浅谈AUTOCAD中的比例设置", 《考试周刊》, 24 December 2013 (2013-12-24) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167553A (en) * 2022-07-19 2022-10-11 珠海格力电器股份有限公司 Cooking temperature curve processing method and device and computer equipment
CN115167554A (en) * 2022-07-19 2022-10-11 珠海格力电器股份有限公司 Cooking temperature curve processing method and device and computer equipment
WO2024016875A1 (en) * 2022-07-19 2024-01-25 珠海格力电器股份有限公司 Cooking temperature curve processing method and apparatus, and computer device
CN115167554B (en) * 2022-07-19 2024-05-10 珠海格力电器股份有限公司 Cooking temperature curve processing method and device and computer equipment

Similar Documents

Publication Publication Date Title
US7505041B2 (en) Iteratively solving constraints in a font-hinting language
CN110990612B (en) Method and terminal for rapidly displaying vector big data
CN111857627A (en) Graphic processing method, apparatus, device and storage medium
CN113657397B (en) Training method for circularly generating network model, method and device for establishing word stock
US11893685B2 (en) Landform map building method and apparatus, electronic device and readable storage medium
CN113657396B (en) Training method, translation display method, device, electronic equipment and storage medium
CN115620321B (en) Table identification method and device, electronic equipment and storage medium
CN112541484A (en) Face matting method, system, electronic device and storage medium
CN111127652A (en) Indoor map construction method and device for robot and electronic equipment
CN115937690A (en) Slot line generation method and device, storage medium and terminal
CN104156725A (en) Novel Chinese character stroke combination method based on angle between stroke segments
CN117132886A (en) Road plane intersection extraction method, device, equipment and storage medium
CN113344213A (en) Knowledge distillation method, knowledge distillation device, electronic equipment and computer readable storage medium
CN115761123B (en) Three-dimensional model processing method, three-dimensional model processing device, electronic equipment and storage medium
CN111402366A (en) Character rendering method and device, electronic equipment and storage medium
CN116503238A (en) Image processing method, device, equipment and storage medium
EP4155670A1 (en) Intersection vertex height value acquisition method and apparatus, electronic device and storage medium
EP4318314A1 (en) Image acquisition model training method and apparatus, image detection method and apparatus, and device
CN112528707A (en) Image processing method, device, equipment and storage medium
CN116092106A (en) Seal identification method, device, electronic equipment and storage medium
CN114862720A (en) Canvas restoration method and device, electronic equipment and computer readable medium
CN118397298B (en) Self-attention space pyramid pooling method based on mixed pooling and related components
JP2000148126A (en) Image display device and method
CN117333580B (en) Mechanical arm drawing method and device, electronic equipment and storage medium
CN113470131B (en) Sea surface simulation image generation method and device, electronic equipment and storage medium

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: 20201030