CN116452702B - Information chart rapid design method, device, computer equipment and storage medium - Google Patents

Information chart rapid design method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116452702B
CN116452702B CN202310707053.6A CN202310707053A CN116452702B CN 116452702 B CN116452702 B CN 116452702B CN 202310707053 A CN202310707053 A CN 202310707053A CN 116452702 B CN116452702 B CN 116452702B
Authority
CN
China
Prior art keywords
image
information
target
group
matching
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.)
Active
Application number
CN202310707053.6A
Other languages
Chinese (zh)
Other versions
CN116452702A (en
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 University
Original Assignee
Shenzhen University
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 University filed Critical Shenzhen University
Priority to CN202310707053.6A priority Critical patent/CN116452702B/en
Publication of CN116452702A publication Critical patent/CN116452702A/en
Application granted granted Critical
Publication of CN116452702B publication Critical patent/CN116452702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/174Segmentation; Edge detection involving the use of two or more images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

The application relates to a method, a device, a computer device, a storage medium and a computer program product for rapid information chart design. The method comprises the following steps: determining at least one target elemental image group; determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images; determining, for each candidate information image in the set of candidate information images, a degree of matching of the candidate information image with at least one target set of element images based on the set of element images of the candidate information images; determining a matching information image from the candidate information image set based on the matching degree; and combining each target element image group with the matching information image to obtain a generated information image. By adopting the method, the efficiency of information graph design can be improved.

Description

Information chart rapid design method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer vision, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for rapidly designing an information chart.
Background
With the rapid development of information technology, knowledge and information display modes become more and more diversified, and information visualization becomes more and more important, for example, text or data to be displayed is edited on an information graph template, so that the text or data can be simply and intuitively displayed through the information graph. However, the information graph templates that can be directly used are limited and the style is relatively single.
In the traditional technology, a manual mode is usually adopted for drawing to obtain a new information graph template.
However, the method of manually drawing to obtain the new information graph template is long in time consumption, and results in low efficiency of information graph design.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a rapid information graph design method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the efficiency of information graph design.
In a first aspect, the present application provides a method for rapid information chart design. The method comprises the following steps:
a method for rapid information chart design, the method comprising: determining at least one target elemental image group; determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images; determining, for each candidate information image in the set of candidate information images, a degree of matching of the candidate information image with the at least one target element image group based on the element image group of the candidate information image; determining a matching information image from the candidate information image set based on the matching degree; and combining each target element image group with the matching information image to obtain a generated information image.
In a second aspect, the application also provides a device for rapidly designing the information chart. The device comprises: the element image group determining module is used for determining at least one target element image group; the image set determining module is used for determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images; a matching degree determining module, configured to determine, for each candidate information image in the candidate information image set, a matching degree of the candidate information image with the at least one target element image group based on an element image group of the candidate information image; an image determining module for determining a matching information image from the candidate information image set based on the matching degree; and the image combination module is used for combining each target element image group with the matching information image to obtain a generated information image.
In some embodiments, the elemental image group determination module is further to: responding to an image generation instruction, and acquiring a target information image; the image generation instruction carries a target information image; grouping information elements in the target information image to obtain at least one target information element group; and dividing element images of information elements in the target information element group from the target information image to obtain a target element image group corresponding to the target information element group.
In some embodiments, the elemental image group determination module is further to: detecting information elements in a target information image to obtain an element detection frame and element types of each information element in the target information image; for each element detection frame, determining an image area with the position consistent with that of the element detection frame in an initial transition image to obtain an image area matched with the element detection frame; determining a filling color value according to the element type of the element detection frame, and filling an image area matched with the element detection frame according to the filling color value to obtain a target transition image; grouping each filling image area in the target transition image to obtain at least one filling image area group; filling an image area refers to the result of color filling the image area; and determining element detection frames corresponding to the filling image areas in the filling image area group respectively, and forming the information elements of the determined element detection frames into a target information element group.
In some embodiments, the matching degree determination module is further configured to: determining layout information of the at least one target element image group to obtain first layout information; determining layout information of the element image group of the candidate information image to obtain second layout information; a degree of matching of the candidate information image with the at least one target element image group is determined based on a degree of similarity between the first layout information and the second layout information.
In some embodiments, the image combining module is further to: determining a background image of the matching information image; the background image is an image obtained by removing information elements from the matching information image; and combining each target element image group with the background image to obtain a generated information image.
In some embodiments, the information graph rapid design apparatus further comprises a background image determination module for: determining background color values of each information element group in the matching information image respectively in the matching information image; for each background color value, determining color differences between the color values of all pixel points in the matching information image and the background color values, and forming pixel points with the color differences smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating mask images corresponding to the background color values respectively; in the mask image, the color value of each pixel point in the pixel point cluster is a first color value, and the color value of the pixel points outside the pixel point cluster in the mask image is a second color value; and determining pixel points of each information element in the information element group based on the mask image corresponding to the background color value, and updating the color value of the pixel point of each information element in the information element group in the matching information image to the background color value to obtain the background image of the matching information image.
In some embodiments, the background image determination module is further to: determining background color values of each information element in the matching information image respectively; for each background color value, determining color differences between the color values of all pixel points in the matching information image and the background color values, and forming pixel points with the color differences smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating mask images corresponding to the background color values respectively; in the mask image, the color value of each pixel point in the pixel point cluster is a first color value, and the color value of the pixel points outside the pixel point cluster in the mask image is a second color value; and determining the pixel points of the information elements based on the mask image corresponding to the background color value, and updating the color value of the pixel points of the information elements in the matched information image to the background color value to obtain the background image of the matched information image.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps in the information chart rapid design method when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the above-described information graph rapid design method.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the above-described information diagram rapid design method.
According to the information chart rapid design method, the device, the computer equipment, the storage medium and the computer program product, the candidate information image set is determined by determining at least one target element image group, the matching degree of the candidate information image and the at least one target element image group is determined based on the element image groups of the candidate information images aiming at each candidate information image in the candidate information image set, the matching information image is determined from the candidate information image set based on the matching degree, and then each target element image group and the matching information image are combined, so that manual drawing is not needed, the generated information image is automatically obtained, a design sketch is provided for the design of the information image, and the efficiency of the information image design is improved.
Drawings
FIG. 1 is an application environment diagram of a method for rapid information graph design in one embodiment;
FIG. 2 is a flow chart of a method for rapid information graph design in one embodiment;
FIG. 3 is a flow diagram of an embodiment of generating an informational image;
FIG. 4A is a diagram of information element detection and grouping in one embodiment;
FIG. 4B is an exemplary diagram of a group of information elements in one embodiment;
FIG. 4C is a diagram of an example of a group of information elements in another embodiment;
FIG. 5A is a schematic diagram of deconstructing an information image in one embodiment;
FIG. 5B is a schematic diagram of a background image of an extracted matching information image in one embodiment;
FIG. 6 is a schematic diagram of classification of a background image of an information image in one embodiment;
FIG. 7 is a flow chart of a method for rapid information graph design in another embodiment;
FIG. 8 is a block diagram of an information graph rapid design apparatus in one embodiment;
FIG. 9 is an internal block diagram of a computer device in one embodiment;
fig. 10 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The information chart rapid design method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The application environment includes a terminal 102 and a server 104, wherein the terminal 102 communicates with the server 104 over a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
Specifically, the terminal 102 transmits an image generation instruction to the server 104 in response to the image generation operation. The server 104 receives the image generation instruction, and determines at least one target element image group based on the image generation instruction; server 104 then determines a set of candidate information images; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images; determining the matching degree of the candidate information image and at least one target element image group based on the element image groups of the candidate information images aiming at each candidate information image in the candidate information image set, and determining the matching information image from the candidate information image set based on the matching degree; the server 104 then combines each target element image group with the matching information image to obtain a generated information image. The server 104 may transmit the generated information image to the terminal 102. The terminal 102 receives the generated information image, can display the generated information image, and can store the generated information image.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
Those skilled in the art will appreciate that the application environment shown in fig. 1 is only a partial scenario related to the present application, and does not constitute a limitation on the application environment of the present application.
In some embodiments, as shown in fig. 2, a method for quickly designing an information chart is provided, which may be executed by a terminal or a server, or may be executed by the terminal and the server together, and the method is applied to the server 104 in fig. 1, for example, and includes the following steps:
at least one target elemental image group is determined, step 202.
The information image is an image obtained by layout design of text or data, can more intuitively display the data, is an image carrier for information visualization, and can be at least one of an electronic slide show, a poster or a propaganda picture album. The information image includes a plurality of information elements, the information elements are graphic elements with semantic information in the information image, including numbers, icons, texts, titles and the like, and the numbers can be digital numbers, such as: 01. 02 or 03, also can be alphabetic numbers, such as: A. b or C. The information element groups are obtained by grouping information elements in the information image, wherein one information element group comprises at least one information element, at least one information element refers to one or more information elements, and a plurality of information elements refer to at least two information elements. The information elements may also be referred to as visual elements, so the information element groups may also be referred to as visual element groups. The appearances of the information elements included in the respective information element groups are not uniform, but the layout structures of the information element groups are uniform, for example, assuming that two information element groups are included in one information image, the layout structures of the two information element groups are both: 1 icon and 1 text, the icon being located to the left of the text.
The target element image group is composed of element images of the information elements in the target information element group, and can be segmented from the target information image. The target information image comprises at least one target information element group, and one target information element group corresponds to one target element image group. The element image is an image area corresponding to the information element, and is obtained by dividing the information image.
Specifically, the server may acquire the target information image, for example, may receive the target information image sent by the terminal, may acquire the target information image from the local database, and then group the information elements in the target information image to obtain at least one target information element group. The server divides the element images of the information elements in each target information element group from the target information images to obtain target element image groups corresponding to each target information element group respectively. As shown in fig. 3, the information elements in the target information image are grouped to obtain 4 target information element groups, and 4 target element image groups are divided from the target information image, each target information element group including 1 number, 1 icon, and 1 text.
In some embodiments, the server may perform element detection on the information elements in the target information image to obtain element detection frames and element types of the information elements in the information image, and then group the information elements in the target information image according to the element detection frames and the element types of the information elements to obtain at least one target information element group. The element detection frame is obtained by detecting the information elements in the information image and is used for marking the positions of the information elements in the information image, and one element detection frame comprises one information element. The element type includes at least one of a number, text, icon, or title.
Step 204, determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images.
The candidate information image set includes a plurality of candidate information images, which may also be referred to as an information image library. The candidate information image comprises at least one information element group, one information element group corresponds to one element image group, and the element image group of the candidate information image is obtained by grouping and dividing the information elements in the candidate information image and can be called as a candidate element image group.
Specifically, each candidate information image in the candidate information image set corresponds to at least one candidate element image group, the server stores the candidate information image set and at least one candidate element image group corresponding to each candidate information image respectively, and the server can store respective background images of each candidate information image. The background image of the candidate information image is an image obtained by removing information elements in the candidate information image. The process of obtaining at least one candidate element image group corresponding to the candidate information image may refer to the step of obtaining at least one target element image group, which is not described herein.
In some embodiments, after the at least one candidate element image group is segmented from the candidate information image, the candidate information image may be split into images composed of two different layers, the first layer being the layer in which the at least one element image group of the candidate information image is located, and the second layer being the background image of the candidate information image. Background images refer to non-data graphics, also referred to as visual background, that act as container-holding elements in the design.
Step 206, for each candidate information image in the candidate information image set, determining a degree of matching of the candidate information image with at least one target element image group based on the element image group of the candidate information image.
Wherein the degree of matching characterizes whether the layout structure of the at least one elemental image group of the candidate information image is consistent with the layout structure of the at least one target elemental image group. The degree of matching may be a state, for example, the degree of matching may include matching and non-matching; the degree of matching may also be a value expressed in percent.
Specifically, the server may determine layout information of at least one target element image group to obtain first layout information, determine layout information of at least one candidate element image group of the candidate information image for each candidate information image in the candidate information image set to obtain second layout information, determine a degree of matching between the candidate information image and the at least one target element image group based on the first layout information and the second layout information, for example, determine that the degree of matching between the candidate information image and the at least one target element image group is the matching if the first layout information and the second layout information are identical; in the case where the first layout information and the second layout information are not identical, it is determined that the degree of matching between the candidate information image and the at least one target element image group is not matching. Wherein the layout information characterizes a layout structure of at least one element image group including the number of element image groups, the types of the respective element images constituting the element image groups, and the positional relationship between the respective element images.
Step 208, determining a matching information image from the candidate information image set based on the degree of matching.
The matching information images are determined from the candidate information image set based on the matching degree, and may be one or a plurality of matching information images. The element image groups of the matching information image may be referred to as matching element image groups, the number of matching element image groups in the matching information image is identical to the number of target element image groups, and the layout structure of each matching element image group is identical to the layout structure of the target element image group.
Specifically, for each candidate information image, the server may determine the candidate information image whose matching degree satisfies a preset matching requirement as a matching information image. The preset matching requirement is preset, for example, the preset matching requirement may be that the matching degree is matching, provided that the matching degree includes matching and non-matching; the degree of matching is assumed to be the degree of similarity between the first layout information and the second layout information, and a predetermined number of matching information images may be determined from the plurality of candidate information images in order of the degree of matching from large to small, the predetermined number being a predetermined integer, for example, 5.
Step 210, combining each target element image group and the matching information image to obtain a generated information image.
The generated information image is an image obtained by combining the target element image group and a background image of the matched information image, and may be an editable multi-layer image, for example, the generated information image may include two layers, a first layer is a layer where the target element image group is located, a second layer is a background image, the first layer is placed above the second layer, and any element image in the target element image group may be scaled, rotated and moved in the first layer of the generated information image.
Specifically, the server may determine a background image of the matching information image, which is obtained by removing the information elements in the matching information image, and may be stored in the server in advance. And then the server combines the target element image groups with the background images of the matching information images, and places the target element image groups in the background images according to the corresponding positions of the matching element image groups in the matching information images to obtain the generated information images. As shown in fig. 3, the 4 target element image groups are placed in the background image according to the corresponding positions of the 4 matching element image groups in the matching information image, resulting in the generated information image.
In the information chart rapid design method, since the information images can comprise data presented in a table form or data presented in an image form, the information images can also be called as information charts, the candidate information image sets are determined by determining at least one target element image group, the matching degree of the candidate information images and the at least one target element image group is determined based on the element image groups of the candidate information images for each candidate information image in the candidate information image sets, the matching information images are determined from the candidate information image sets based on the matching degree, and then the target element image groups and the matching information images are combined, so that the generated information images are automatically obtained without manual drawing, a design sketch is provided for the design of the information images, and the efficiency of the information chart design is improved.
In some embodiments, the above information chart rapid design method is adopted to obtain an interactive tool, which may be called a paste, and the user may select an information element image group from an information element image library or submit a target information image, and then the tool may automatically search the database for the background images of the matched information images, so that they may be rapidly converted into a design draft of a new information image.
In some embodiments, the step 202 of determining at least one target element image group comprises: responding to an image generation instruction, and acquiring a target information image; the image generation instruction carries a target information image; grouping information elements in the target information image to obtain at least one target information element group; and dividing element images of information elements in each target information element group from the target information images to obtain target element image groups corresponding to each target information element group.
Wherein the image generation instruction is for instructing to obtain the generated information image using the target information element group.
Specifically, the terminal acquires the target information image in response to the image generation operation, and transmits an image generation instruction carrying the target information image to the server. The server receives the image generation instruction, acquires the target information image from the image generation instruction, and detects and groups the information elements in the target information image to obtain at least one information element group. The server may divide the element image of the information element in each target information element group from the target information image, to obtain a target element image group corresponding to each target information element group. The server may then return at least one target element image group to the terminal. The terminal may present the received target element image.
In some embodiments, the server stores therein a library of elemental image combinations, and the at least one target elemental image group may be further determined from the library of elemental image combinations, where the library of elemental image combinations stores therein a plurality of elemental image combinations, and respective elemental combination identifications of the elemental image combinations, one elemental image combination including the at least one elemental image group. The terminal responds to the image generation operation, acquires a target element combination identifier from an element image selection area, and sends an image generation instruction carrying the target element combination identifier to the server, wherein the element image selection area is an area for selecting the target element image identifier from a plurality of element image identifiers. And the server responds to the image generation instruction, determines the element image combination corresponding to the target element combination identifier from the element image combination library, and obtains at least one target element image group.
In this embodiment, at least one target information element group is obtained by grouping information elements in the target information image, and then the element images of the information elements in each target information element group are segmented from the target information image, so that automatic extraction of the information elements in the target information image is realized, a reusable element image is obtained, and materials are provided for the design of the information image.
In some embodiments, grouping information elements in the target information image to obtain at least one target information element group includes: detecting information elements in the target information image to obtain element detection frames and element types of the information elements in the target information image; for each element detection frame, determining an image area with the position consistent with the position of the element detection frame in the initial transition image to obtain an image area matched with the element detection frame; determining a filling color value according to the element type of the element detection frame, and filling an image area matched with the element detection frame according to the filling color value to obtain a target transition image; grouping each filling image area in the target transition image to obtain at least one filling image area group; filling an image area refers to the result of color filling the image area; and determining element detection frames corresponding to the filling image areas in the filling image area group, and forming the information elements of the determined element detection frames into a target information element group.
The element detection frame is obtained by detecting the information elements in the information image and is used for marking the positions of the information elements in the information image, and one element detection frame comprises one information element. The element type includes at least one of a number, text, icon, or title. The initial transition image may be a blank image, the size of the initial transition image being consistent with the size of the target information image. The filling color value is determined according to the element type, different element types correspond to different filling color values, and the filling color value is used for carrying out color filling on the image area matched with each element detection frame in the initial transition image. The image area in which the element detection frame matches is an image area which coincides with the position of the element detection frame in the initial transition image and is surrounded by the element detection frame. The target transition image is an image obtained by color filling the initial transition image and is used for grouping detection, the target transition image comprises a plurality of filling image areas, and the filling image area group is obtained by grouping all the filling image areas.
In particular, the obtaining of the at least one target information element group may be divided into three steps: the first step, the server can input the target information image into a trained information element detection network to detect, so as to obtain respective element detection frames and element types of the information elements in the target information image. And secondly, aiming at each element detection frame, the server can determine an image area with the position consistent with the position of the element detection frame in the initial transition image to obtain an image area matched with the element detection frame, determine a filling color value according to the element type of the information element to which the element detection frame belongs, and perform color filling on the image area matched with the element detection frame according to the filling color value to obtain the target transition image. Thirdly, the server can input the target transition image into a trained grouping detection network for grouping detection to obtain at least one filling image region group, and for each filling image region group, the server can determine element detection frames corresponding to filling image regions in the filling image region group respectively, and form information element groups of the element detection frames into a target information element group to obtain at least one target information element group. Wherein the trained information element detection network is used for detecting the positions and element types of the information elements in the information image, and the trained grouping detection network is used for grouping the information elements.
For example, as shown in fig. 4A, in a first step, the information image, i.e., (a) in fig. 4A, is input to a trained information Element detection network to detect, for example, may be input to an Element-YOLO network, and an Element detection box and an Element type of each information Element are marked in the output information image, for example, an Element type of an information Element in an Element detection box marked with "35" in (b) in fig. 4A is text, and it is understood that the text content in the figure is schematic content; secondly, performing color filling on the initial transition image according to the element detection frame and the element type of each information element in the information image to obtain a target transition image, as shown in (c) in fig. 4A; third, the target transition image is input into a trained packet detection network for grouping, for example, the target transition image may be input into a Group-YOLO network, which is obtained by training on the basis of an Element-YOLO network, and the output image is marked with a packet detection frame for each filling image region Group, as shown in (d) in fig. 4A.
For example, as shown in fig. 4B, an information image of an information element group having the same layout structure is illustrated, and (a) in fig. 4B and (c) in fig. 4B are two information images having different appearances, respectively, it is understood that text contents in the figures are schematic contents, and as can be seen from (B) in fig. 4B and (d) in fig. 4B, the layout structures of the information element groups in the two information images are identical, and each information element includes 1 icon and 1 text. It is apparent that the layout structure of (a) in fig. 4B and (a) in fig. 4C is not uniform, and each information element group in (a) in fig. 4C includes 1 number, 1 text, and 1 icon.
In the embodiment, the filling color value is determined according to the element type of the element detection frame, and the image area matched with the element detection frame is filled according to the filling color value to obtain the target transition image, so that each information element in the information image is automatically grouped by using the target transition image, any texture and color interference is eliminated in the grouping process, only the structure and layout of the information element are focused, and the accuracy of information element grouping is improved.
In some embodiments, determining the degree of matching of the candidate information image with the at least one target set of elemental images based on the set of elemental images of the candidate information image comprises: determining layout information of at least one target element image group to obtain first layout information; determining layout information of the element image group of the candidate information image to obtain second layout information; a degree of matching of the candidate information image with the at least one target element image group is determined based on a degree of similarity between the first layout information and the second layout information.
Wherein the first layout information refers to the layout information of at least one target element image group, and the second layout information refers to the layout information of at least one element image group of the candidate information image.
Specifically, in the case where the similarity of the first layout information and the second layout information is greater than the similarity threshold, the server may determine that the degree of matching of the candidate information image and the at least one target element image group is matching; and determining that the matching degree of the candidate information image and the at least one target element image group is not matching in the case that the similarity between the first layout information and the second layout information is smaller than a similarity threshold value.
In some embodiments, the server may determine the number of target element image groups, the element types of the element images in each target element image group, and the positional relationship between the element images in the target element image groups, to obtain layout information of at least one target element image group, that is, the first layout information, for example, the first layout information may be: the number of the element image groups is 3, and one element image group comprises 1 icon and 1 text, and the icons are positioned on the left side of the text.
In this embodiment, the matching degree of the candidate information image and the at least one target element image group is determined based on the similarity between the first layout information and the second layout information, so that a basis is provided for determining the matching information image of the at least one target element image group.
In some embodiments, combining each set of target element images with the matching information image to obtain the generated information image includes: determining a background image of the matching information image; the background image is an image obtained by removing information elements from the matched information image; and combining each target element image group with the background image to obtain a generated information image.
Specifically, the server may store a background image library including background images of each candidate information image in the candidate information image set. After the server determines the matching information image, the server can directly acquire the background image corresponding to the matching information image from the background image library, and then for each target element image group, the server can integrate each element image in the corresponding target element image group at the position of each matching element image group in the background image to obtain the generated information image.
In this embodiment, since there may be a plurality of matching information images, by determining the background image of the matching information image, and combining each target element image group with the background image, editable generated information images can be generated quickly and in batches, and efficiency of information graph design is improved.
In some embodiments, determining the background image of the matching information image comprises: determining background color values of each information element group in the matching information image respectively in the matching information image; for each background color value, determining color difference values between the color values of all pixel points in the matching information image and the background color values respectively, and forming pixel points with the color difference value smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating a mask image corresponding to each background color value respectively; in the mask image, the color value of each pixel in the pixel cluster is a first color value, and the color value of the pixel outside the pixel cluster in the mask image is a second color value; and determining pixel points of each information element in the information element group based on the mask image corresponding to the background color value, and updating the color value of the pixel point of each information element in the information element group in the matching information image to the background color value to obtain the background image of the matching information image.
Where the background image refers to a non-data graphic, also referred to as a visual background, that acts as a container containment element in the design. For example, as shown in fig. 5A, two levels of visual background are designed in the information image, three information element groups are respectively located in the three different color values of the visual background of the arrow shape, and the three information element groups and the three arrow shapes are placed in one larger visual background, i.e., the texture background layer, and the two levels of visual background constitute the background image of the information image. More complex information charts can be generated by stacking visual backgrounds step by step.
The background color value is determined from the matching information image, and the background color value corresponding to each information element group can be the same or different. The first color value and the second color value are used to generate a mask image, the first color value being different from the second color value, e.g., the first color value may be 255 and the second color value may be 0. The background color value corresponds to a pixel point cluster, and the pixel point cluster is formed by pixel points, wherein the color difference value between the pixel point cluster and the background color value in the matching information image is smaller than a preset threshold value.
Specifically, the server may group the information elements in the matching information image to obtain at least one matching information element group. For each matching information element group, the server can extract the color value of any pixel point in the grouping detection frame of the matching information element group in the matching information image as the background color value of the matching information element group, then clustering the color values of all the pixel points in the matching information image by taking the background color value of each matching information element group as a clustering seed to obtain pixel point clusters corresponding to all the background color values. For each background color value, the server may update the color value of each pixel point in the pixel point cluster in the matching information image to a first color value, and update the color value of the pixel point outside the pixel point cluster to a second color value, so as to obtain mask images corresponding to the background color values respectively. For the mask image corresponding to each background color value, the server may determine, from the matching information image, the pixel points where the information elements in the matching information element group corresponding to the background color value are located, and then update the color values of the pixel points to the background color value, so as to obtain the background image of the matching information image.
In some embodiments, the server further needs to perform image preprocessing on the matching information image before determining the background image of the matching information image, the image preprocessing including the steps of: 1) Firstly, carrying out color quantization on the matched information images, reducing the number of colors in the images, wherein each information image can be effectively represented by 128 different colors; 2) The processed picture is converted from RGB color space to HSV (Hue, saturation, value) color space, represented by three dimensions of Hue, saturation, and Value.
For example, as shown in fig. 5B, a schematic diagram of a process for determining a background image of an information image is shown, and it can be understood that the information elements in the input image in fig. 5B are schematic information elements, and the information elements in the actually processed image, such as text content, are more complex. Firstly, carrying out image preprocessing on an input information image, then carrying out information element detection and grouping on the preprocessed information image to obtain grouping detection frames of information element groups in the information image, and extracting a color value in each grouping detection frame to be used as a clustering seed in K-means. For better clustering, the global background color value may also be used as a cluster seed, i.e. the number of clusters K is equal to the number of packets plus one, as shown in fig. 5B, for a total of 7 different background color values, k=7. In the clustering process, the distance between pixels is added into three channels H, S, V as a weight, and meanwhile, the difference value in the H channel can be enhanced by 20 times in a mode that the hue channel is closer to the human visual perception color, so that different hues with the same saturation are more likely to be gathered into different categories. And then respectively constructing a binary image mask for each pixel cluster obtained by clustering, and carrying out binary image complementation by using a hole filling mode in order to obtain a complete visual background consistent with the original information image.
In this embodiment, a pixel point cluster corresponding to a background color value of each information element group is obtained, a mask image corresponding to each background color value is generated, pixels of each information element in the information element group are determined based on the mask image corresponding to the background color value, and the color value of each pixel of each information element in the information element group in the matching information image is updated to the background color value, so that a background image of the matching information image is obtained quickly, and the generating efficiency of the background image is improved.
In some embodiments, determining the background image of the matching information image further comprises: determining background color values of each information element in the matching information image respectively; for each background color value, determining color difference values between the color values of all pixel points in the matching information image and the background color values respectively, and forming pixel points with the color difference value smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating a mask image corresponding to each background color value respectively; in the mask image, the color value of each pixel in the pixel cluster is a first color value, and the color value of the pixel outside the pixel cluster in the mask image is a second color value; and determining pixel points of the information elements based on the mask image corresponding to the background color values, and updating the color values of the pixel points of the information elements in the matching information image to the background color values to obtain the background image of the matching information image.
As shown in fig. 6, the relationship between the information element group in the information image and the background image is classified into four types, including: 1. directly on the background: without an explicit first-level visual background, the set of information elements is placed directly on the background image; 2. single color: an information element group is placed on a single color area in the background image; 3. low contrast background: the individual information elements of one group of information elements are placed on different image areas of low contrast, e.g. gradient or homogenous color, 4. Mixed color background: each information element in one group of information elements is placed on two image areas with a high contrast. For the first three types, the background image can be determined according to the background color value corresponding to each information element group, but for the fourth type, if the background color value corresponding to each information element group is still used for clustering to generate the background image, pixel points with color filling errors exist in the background image.
Specifically, in the case that each information element in one information element group corresponds to a different background color value, for each information element, the server may extract a color value of any pixel point in the element detection frame of each information element as a background color value of the information element, and then use the background color value of each information element as a clustering seed, and the clustering process and the process of generating the background image may refer to the above step of generating the background image by clustering using the background color value corresponding to each information element group, which is not described herein.
In this embodiment, under the condition that each information element in one information element group corresponds to a different background color value, the background color values in the matching information images are clustered to generate the background image, so that a more accurate background image can be obtained, and the accuracy of generating the background image is improved.
In some embodiments, as shown in fig. 7, a method for rapidly designing an information chart is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
in step 702, a target information image is acquired in response to an image generation instruction.
Step 704, detecting the information elements in the target information image to obtain the element detection frame and the element type of each information element in the target information image.
Step 706, for each element detection frame, determining a filling color value according to the element type of the element detection frame, and filling an image area with a position consistent with the position of the element detection frame in the initial transition image according to the filling color value to obtain the target transition image.
Step 708, grouping each filling image area in the target transition image to obtain at least one filling image area group, determining element detection frames corresponding to each filling image area in the filling image area group, and forming the information elements to which each determined element detection frame belongs into a target information element group.
And step 710, segmenting element images of information elements in each target information element group from the target information image to obtain a target element image group corresponding to each target information element group.
Step 712 determines, for each candidate information image in the set of candidate information images, a degree of matching of the candidate information image with the at least one target set of element images based on the set of element images of the candidate information image.
Step 714, determining a matching information image from the candidate information image set based on the degree of matching.
Step 716, determining a background image of the matching information image.
Step 718, for each target element image group, merging each element image in the corresponding target element image group into the position of each matching element image group in the background image of the matching information image, thereby obtaining the generated information image.
In the embodiment, at least one target information element group is obtained by detecting and grouping information elements in the target information image, and then element images of the information elements in each target information element group are segmented from the target information image, so that automatic extraction of the information elements in the target information image is realized, and a reusable element image is obtained; by determining the background image of the matched information image and combining each target element image group with the background image, the editable generated information image can be quickly generated, and the efficiency of information image design is improved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an information chart rapid design device for realizing the information chart rapid design method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device for rapid information chart design provided below may refer to the limitation of the method for rapid information chart design described above, and will not be repeated here.
In some embodiments, as shown in fig. 8, there is provided an information graph rapid design apparatus including: an elemental image group determination module 802, an image set determination module 804, a degree of matching determination module 806, an image determination module 808, and an image combination module 810, wherein:
an elemental image group determination module 802 for determining at least one target elemental image group; an image set determining module 804, configured to determine a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images; a matching degree determining module 806, configured to determine, for each candidate information image in the candidate information image set, a matching degree of the candidate information image with at least one target element image group based on the element image group of the candidate information image; an image determination module 808 for determining a matching information image from the set of candidate information images based on the degree of matching; the image combination module 810 is configured to combine each target element image group with the matching information image to obtain a generated information image.
In some embodiments, the elemental image group determination module is further to: responding to an image generation instruction, and acquiring a target information image; the image generation instruction carries a target information image; grouping information elements in the target information image to obtain at least one target information element group; and dividing element images of information elements in the target information element group from the target information image to obtain a target element image group corresponding to the target information element group.
In some embodiments, the elemental image group determination module is further to: detecting information elements in the target information image to obtain element detection frames and element types of the information elements in the target information image; for each element detection frame, determining an image area with the position consistent with the position of the element detection frame in the initial transition image to obtain an image area matched with the element detection frame; determining a filling color value according to the element type of the element detection frame, and filling an image area matched with the element detection frame according to the filling color value to obtain a target transition image; grouping each filling image area in the target transition image to obtain at least one filling image area group; filling an image area refers to the result of color filling the image area; and determining element detection frames corresponding to the filling image areas in the filling image area group, and forming the information elements of the determined element detection frames into a target information element group.
In some embodiments, the matching degree determination module is further configured to: determining layout information of at least one target element image group to obtain first layout information; determining layout information of the element image group of the candidate information image to obtain second layout information; a degree of matching of the candidate information image with the at least one target element image group is determined based on a degree of similarity between the first layout information and the second layout information.
In some embodiments, the image combination module is further to: determining a background image of the matching information image; the background image is an image obtained by removing information elements from the matched information image; and combining each target element image group with the background image to obtain a generated information image.
In some embodiments, the information graph rapid design apparatus further comprises a background image determination module for: determining background color values of each information element group in the matching information image respectively in the matching information image; for each background color value, determining color difference values between the color values of all pixel points in the matching information image and the background color values respectively, and forming pixel points with the color difference value smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating a mask image corresponding to each background color value respectively; in the mask image, the color value of each pixel in the pixel cluster is a first color value, and the color value of the pixel outside the pixel cluster in the mask image is a second color value; and determining pixel points of each information element in the information element group based on the mask image corresponding to the background color value, and updating the color value of the pixel point of each information element in the information element group in the matching information image to the background color value to obtain the background image of the matching information image.
In some embodiments, the background image determination module is further to: determining background color values of each information element in the matching information image respectively; for each background color value, determining color difference values between the color values of all pixel points in the matching information image and the background color values respectively, and forming pixel points with the color difference value smaller than a preset threshold value into pixel point clusters corresponding to the background color values; generating a mask image corresponding to each background color value respectively; in the mask image, the color value of each pixel in the pixel cluster is a first color value, and the color value of the pixel outside the pixel cluster in the mask image is a second color value; and determining pixel points of the information elements based on the mask image corresponding to the background color values, and updating the color values of the pixel points of the information elements in the matching information image to the background color values to obtain the background image of the matching information image.
The modules in the information chart rapid design device can be realized by all or part of software, hardware and combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing relevant data related to the rapid design method of the information chart. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for rapid design of an information graph.
In some embodiments, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method for rapid design of an information graph. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 9 and 10 are merely block diagrams of portions of structures associated with aspects of the application and are not intended to limit the computer device to which aspects of the application may be applied, and that a particular computer device may include more or fewer components than those shown, or may combine certain components, or may have a different arrangement of components.
In some embodiments, a computer device is provided that includes a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of the above-described information diagram rapid design method.
In some embodiments, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, implements the steps of the information diagram rapid design method described above.
In some embodiments, a computer program product is provided comprising a computer program which, when executed by a processor, implements the steps of the above-described information diagram rapid design method.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as Static Random access memory (Static Random access memory AccessMemory, SRAM) or dynamic Random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for rapid information chart design, the method comprising:
determining at least one target elemental image group;
determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images;
Determining, for each candidate information image in the set of candidate information images, a degree of matching of the candidate information image with the at least one target element image group based on the element image group of the candidate information image;
determining a matching information image from the candidate information image set based on the matching degree;
and combining each target element image group with the matching information image to obtain a generated information image.
2. The method of claim 1, wherein said determining at least one target element image group comprises:
responding to an image generation instruction, and acquiring a target information image; the image generation instruction carries a target information image;
grouping information elements in the target information image to obtain at least one target information element group;
and dividing element images of information elements in each target information element group from the target information images to obtain target element image groups corresponding to each target information element group.
3. The method of claim 2, wherein grouping the information elements in the target information image to obtain at least one target information element group comprises:
Detecting information elements in a target information image to obtain an element detection frame and element types of each information element in the target information image;
for each element detection frame, determining an image area with the position consistent with that of the element detection frame in an initial transition image to obtain an image area matched with the element detection frame;
determining a filling color value according to the element type of the element detection frame, and filling an image area matched with the element detection frame according to the filling color value to obtain a target transition image;
grouping each filling image area in the target transition image to obtain at least one filling image area group; filling an image area refers to the result of color filling the image area;
and determining element detection frames corresponding to the filling image areas in the filling image area group respectively, and forming the information elements of the determined element detection frames into a target information element group.
4. The method of claim 1, wherein the determining a degree of matching of the candidate information image with the at least one target elemental image group based on the elemental image group of the candidate information image comprises:
Determining layout information of the at least one target element image group to obtain first layout information;
determining layout information of the element image group of the candidate information image to obtain second layout information;
a degree of matching of the candidate information image with the at least one target element image group is determined based on a degree of similarity between the first layout information and the second layout information.
5. The method of claim 1, wherein combining each of the target element image groups and the matching information image to obtain a generated information image comprises:
determining a background image of the matching information image; the background image is an image obtained by removing information elements from the matching information image;
and combining each target element image group with the background image to obtain a generated information image.
6. The method of claim 5, wherein the determining the background image of the matching information image comprises:
determining background color values of each information element group in the matching information image respectively in the matching information image;
for each background color value, determining color differences between the color values of all pixel points in the matching information image and the background color values, and forming pixel points with the color differences smaller than a preset threshold value into pixel point clusters corresponding to the background color values;
Generating mask images corresponding to the background color values respectively; in the mask image, the color value of each pixel point in the pixel point cluster is a first color value, and the color value of the pixel points outside the pixel point cluster in the mask image is a second color value;
and determining pixel points of each information element in the information element group based on the mask image corresponding to the background color value, and updating the color value of the pixel point of each information element in the information element group in the matching information image to the background color value to obtain the background image of the matching information image.
7. The method of claim 5, wherein the determining the background image of the matching information image further comprises:
determining background color values of each information element in the matching information image respectively;
for each background color value, determining color differences between the color values of all pixel points in the matching information image and the background color values, and forming pixel points with the color differences smaller than a preset threshold value into pixel point clusters corresponding to the background color values;
generating mask images corresponding to the background color values respectively; in the mask image, the color value of each pixel point in the pixel point cluster is a first color value, and the color value of the pixel points outside the pixel point cluster in the mask image is a second color value;
And determining the pixel points of the information elements based on the mask image corresponding to the background color value, and updating the color value of the pixel points of the information elements in the matched information image to the background color value to obtain the background image of the matched information image.
8. An information graph rapid design apparatus, characterized in that the apparatus comprises:
the element image group determining module is used for determining at least one target element image group;
the image set determining module is used for determining a candidate information image set; each candidate information image in the candidate information image set corresponds to at least one element image group, and the element image groups of the candidate information images are obtained by grouping and dividing information elements in the candidate information images;
a matching degree determining module, configured to determine, for each candidate information image in the candidate information image set, a matching degree of the candidate information image with the at least one target element image group based on an element image group of the candidate information image;
an image determining module for determining a matching information image from the candidate information image set based on the matching degree;
And the image combination module is used for combining each target element image group with the matching information image to obtain a generated information image.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310707053.6A 2023-06-15 2023-06-15 Information chart rapid design method, device, computer equipment and storage medium Active CN116452702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310707053.6A CN116452702B (en) 2023-06-15 2023-06-15 Information chart rapid design method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310707053.6A CN116452702B (en) 2023-06-15 2023-06-15 Information chart rapid design method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116452702A CN116452702A (en) 2023-07-18
CN116452702B true CN116452702B (en) 2023-08-18

Family

ID=87132461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310707053.6A Active CN116452702B (en) 2023-06-15 2023-06-15 Information chart rapid design method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116452702B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011106880A1 (en) * 2010-03-03 2011-09-09 Dvmmy Limited Method and apparatus for gathering and using information
CN112507931A (en) * 2020-12-16 2021-03-16 华南理工大学 Deep learning-based information chart sequence detection method and system
WO2022036997A1 (en) * 2020-08-21 2022-02-24 广东电网有限责任公司清远供电局 Chart information extraction method and apparatus, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013009710A1 (en) * 2011-07-08 2013-01-17 Steamfunk Labs, Inc. Automated presentation of information using infographics

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011106880A1 (en) * 2010-03-03 2011-09-09 Dvmmy Limited Method and apparatus for gathering and using information
WO2022036997A1 (en) * 2020-08-21 2022-02-24 广东电网有限责任公司清远供电局 Chart information extraction method and apparatus, and storage medium
CN112507931A (en) * 2020-12-16 2021-03-16 华南理工大学 Deep learning-based information chart sequence detection method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
How to make an engaging infographic;Hilary Scott et al.;《British Journal of Sports Medicine》;第1-5页 *

Also Published As

Publication number Publication date
CN116452702A (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN112232425B (en) Image processing method, device, storage medium and electronic equipment
CN105354248B (en) The recognition methods of distributed image low-level image feature and system based on gray scale
CN109117760B (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN112215171B (en) Target detection method, device, equipment and computer readable storage medium
US11894021B2 (en) Data processing method and system, storage medium, and computing device
CN111325271A (en) Image classification method and device
CN114003160B (en) Data visual display method, device, computer equipment and storage medium
CN112163577A (en) Character recognition method and device in game picture, electronic equipment and storage medium
CN111126390A (en) Correlation method and device for identifying identification pattern in media content
CN116051575A (en) Image segmentation method, apparatus, computer device, and storage medium program product
CN114332895A (en) Text image synthesis method, text image synthesis device, text image synthesis equipment, storage medium and program product
CN114758054A (en) Light spot adding method, device, equipment and storage medium
CN116610304B (en) Page code generation method, device, equipment and storage medium
CN117112090A (en) Business page theme generation method, device, computer equipment, medium and product
CN117332766A (en) Flow chart generation method, device, computer equipment and storage medium
US20170262141A1 (en) Information processing apparatus, information processing method and non-transitory computer readable medium
CN115880362B (en) Code region positioning method, device, computer equipment and computer readable storage medium
CN116452702B (en) Information chart rapid design method, device, computer equipment and storage medium
CN114565915B (en) Sample text image acquisition method, text recognition model training method and device
CN116310308A (en) Image segmentation method, device, computer equipment and storage medium
CN110309335B (en) Picture matching method, device and equipment and storage medium
CN114363528A (en) Dial generation method and device, terminal device and computer readable storage medium
CN116612474B (en) Object detection method, device, computer equipment and computer readable storage medium
CN116894974A (en) Image classification method, device, computer equipment and storage medium thereof
CN117253246A (en) Data processing method, apparatus, computer device, storage medium, and program product

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
GR01 Patent grant
GR01 Patent grant