CN116109735A - Method, device, equipment and storage medium for generating goods source poster - Google Patents

Method, device, equipment and storage medium for generating goods source poster Download PDF

Info

Publication number
CN116109735A
CN116109735A CN202310184183.6A CN202310184183A CN116109735A CN 116109735 A CN116109735 A CN 116109735A CN 202310184183 A CN202310184183 A CN 202310184183A CN 116109735 A CN116109735 A CN 116109735A
Authority
CN
China
Prior art keywords
poster
template
fields
source
source fields
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
CN202310184183.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 Huitongtianxia Iot Technology Co ltd
Original Assignee
Beijing Huitongtianxia Iot 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 Huitongtianxia Iot Technology Co ltd filed Critical Beijing Huitongtianxia Iot Technology Co ltd
Priority to CN202310184183.6A priority Critical patent/CN116109735A/en
Publication of CN116109735A publication Critical patent/CN116109735A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for generating a goods source poster, and relates to the technical field of data information. The method for generating the goods source poster comprises the following steps: acquiring cargo source information, wherein the cargo source information comprises: data for a plurality of source fields; according to the plurality of goods source fields, determining a poster template with image elements of the plurality of goods source fields as a target poster template from a preset poster template library; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a plurality of storage modules, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields; and respectively filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template to obtain the target poster corresponding to the goods source information. The poster generated by the method for generating the goods source poster saves time cost of enterprises and drivers, and enables logistics transportation demand information to be obtained more efficiently.

Description

Method, device, equipment and storage medium for generating goods source poster
Technical Field
The present invention relates to the field of data information technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a goods source poster.
Background
If the enterprises have logistics transportation demands, the enterprises generally produce the posters according to the logistics transportation demand information and send the posters to drivers, and after the drivers see the posters, the drivers judge whether to receive the bill according to the logistics transportation demands on the posters.
The information of the logistics transportation requirement on the poster is usually in a text form, and a driver needs to read the text completely to acquire the logistics transportation requirement, so that unnecessary time cost is generated, and therefore, a poster generation method capable of rapidly imaging the information of the logistics transportation requirement is needed.
Disclosure of Invention
The object of the present invention is to provide a method, an apparatus, a device and a storage medium for generating a cargo source poster, so as to solve the problems in the prior art.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a method for generating a manifest of a cargo source, including:
acquiring cargo source information, wherein the cargo source information comprises: data for a plurality of source fields;
determining a poster template with image elements of the plurality of goods source fields as a target poster template from a preset poster template library according to the plurality of goods source fields; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a plurality of storage modules, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields;
And filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template respectively to obtain the target poster corresponding to the goods source information.
In a possible implementation example, the determining, according to the plurality of source fields, from a preset poster template library, a poster template having image elements of the plurality of source fields as a target poster template includes:
determining at least two candidate poster templates of the image elements with the plurality of source fields from a preset poster template library according to the plurality of source fields;
displaying the at least two candidate poster templates;
and determining the poster template selected by the template selection operation as the target poster template according to the template selection operation input for the at least two candidate poster templates.
In a possible implementation example, the goods source information further includes: information of the transportation scenario; the determining, according to the plurality of source fields, at least two candidate poster templates of the image elements with the plurality of source fields from a preset poster template library, includes:
and determining the at least two candidate poster templates from the poster template library corresponding to the transportation scene according to the information of the transportation scene.
In a possible implementation example, the filling the data of the plurality of source fields into the data areas corresponding to the plurality of source fields in the target poster template to obtain the target poster corresponding to the source information includes:
filling the data of the plurality of goods source fields into data areas corresponding to the plurality of goods source fields in the target poster template respectively to generate an initial poster;
if the target poster template comprises image elements corresponding to target fields, hiding the image elements corresponding to the target fields in the initial poster to obtain the target poster, wherein the target fields are fields which do not exist in the plurality of goods source fields.
In a possible implementation example, before determining, from a preset poster template library, a poster template having image elements of the plurality of source fields as a target poster template according to the plurality of source fields, the method further includes:
obtaining a template configuration requirement, wherein the template configuration requirement comprises: the at least two source fields;
acquiring at least two image elements from a preset element library according to the at least two goods source fields, wherein each image element corresponds to one of the at least two goods source fields; the component library stores: the corresponding relation between the plurality of preset goods source fields and the image elements;
And setting the arrangement positions and the display information of the at least two image elements by adopting a preset canvas tool to generate a poster template.
In a possible implementation example, before the obtaining at least two image elements from the preset element library according to the at least two source fields, the method further includes:
acquiring the plurality of preset goods source fields;
acquiring a plurality of image elements;
and configuring the corresponding relation between the plurality of preset goods source fields and the plurality of image elements to generate the element library.
In a possible implementation example, the acquiring a plurality of image elements includes:
importing the plurality of image elements from preset local equipment; or, drawing the plurality of image elements by adopting the preset canvas tool.
In a second aspect, an embodiment of the present application provides a cargo source poster generating apparatus, including:
the acquisition module is used for acquiring goods source information, and the goods source information comprises: data for a plurality of source fields;
the determining module is used for determining the poster template with the image elements of the plurality of goods source fields as a target poster template from a preset poster template library according to the plurality of goods source fields; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a plurality of storage modules, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields;
And the filling module is used for respectively filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template to obtain the target poster corresponding to the goods source information.
In a third aspect, embodiments of the present application provide a computer device, including: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the computer device runs, the processor and the storage medium are communicated through the bus, and the processor executes the program instructions to execute the steps of the method for generating the goods source poster provided by the embodiment.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for generating a manifest of a cargo source as provided in the above embodiments.
The beneficial effects of this application are: the method comprises the steps of firstly obtaining cargo source information, then determining a target poster template which is provided with image elements corresponding to a plurality of cargo source fields from a preset poster template library according to cargo source fields in the obtained cargo source information, and finally filling the cargo source fields into data areas corresponding to the plurality of cargo source fields in the target poster template to obtain the target poster corresponding to the cargo source information. Because the goods source field is all key information in the logistics transportation demand information, a driver can know the logistics transportation demand according to the goods source field, and in the target poster provided by the application, the image elements corresponding to the goods source field are contained, and the meaning of the goods source field can be expressed more intuitively by the image. Compared with the prior art, the poster provided by the application is used, a driver does not need to read characters completely, the time cost of enterprises and drivers is saved, and logistics transportation demand information is acquired more efficiently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for generating a cargo source poster according to an embodiment of the present application;
fig. 2 is a flow chart of a method for determining a target poster template according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for filling a target poster template according to an embodiment of the present application;
fig. 4 is a flowchart of a method for generating a poster template library according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a poster template according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for generating a component library according to an embodiment of the present disclosure;
FIGS. 7 (a) and 7 (b) are schematic diagrams of graphic elements provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a cargo source poster generating device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Furthermore, the terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, features in embodiments of the present application may be combined with each other.
The embodiment of the application provides a method, a device, equipment and a storage medium for generating a goods source poster, wherein the goods source poster can be generated by any computer equipment integrated with a preset goods source poster generation algorithm, and the computer equipment can be, for example, terminal-oriented computer equipment or a rear-end server.
The method, the device, the equipment and the storage medium for generating the goods source poster are specifically illustrated by a plurality of embodiments by combining a plurality of drawings.
Fig. 1 is a flow chart of a method for generating a cargo source poster according to an embodiment of the present application.
As shown in fig. 1, the method for generating the goods source poster includes:
s101, acquiring goods source information.
The source information may include data of a plurality of source fields, which are information of the logistics transportation requirements provided by the enterprise issuing the logistics transportation requirements.
In general, the logistics transportation demand information is issued on a logistics platform in a text form for a driver to check, in the existing method for generating the goods source poster, all the text in the logistics transportation demand information is manufactured into the poster, and the driver needs to read all the text completely to acquire the logistics transportation demand, so that unnecessary time cost is generated.
In this embodiment, the computer device may extract the cargo source field in the logistics transportation demand information (the cargo source field may include, for example, the name of the enterprise, the type of cargo, the weight of the cargo, the volume of the cargo, the type of vehicle required for transporting the cargo, and the information about the length of the vehicle required for transporting the cargo) through the logistics transportation demand information issued by the enterprise, and generate the poster using the extracted cargo source field. Because the goods source field is all key information in the logistics transportation demand information, a driver can know the logistics transportation demand according to the goods source field, compared with the method for manufacturing all characters into the poster in the prior art, the goods source poster generation method provided by the embodiment does not need to completely read the characters, saves time cost, and enables the logistics transportation demand information to be obtained more efficiently.
S102, determining a poster template with image elements of a plurality of goods source fields as a target poster template from a preset poster template library according to the plurality of goods source fields.
In this embodiment, a poster template library may be preset, where a plurality of poster templates are pre-stored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two cargo source fields. Before the poster template is generated, a plurality of preset source fields (i.e., a plurality of preset source fields are extracted from the published logistics transportation demand information, the preset source fields are preset source fields possibly existing in the source information of the logistics platform) may be extracted in advance from the logistics transportation demand information published in the history time, and the corresponding image elements (the image elements may represent the meaning of the corresponding source fields in the form of images, for example, the type of vehicles required for transporting the goods is a small car, and the corresponding image elements are images of the small car) are set for each preset source field.
After setting the corresponding image elements for each preset goods source field, arranging and combining the preset goods source fields to obtain all combination modes of the preset goods source fields. And generating corresponding poster templates (which preset source fields are included in the combination modes) for each combination mode, wherein the corresponding poster templates contain image elements corresponding to the preset source fields, so that the generated poster templates have a plurality of types, the plurality of types of poster templates cover all combination modes of the plurality of preset source fields, and the preset poster template library contains the generated plurality of types of poster templates.
After a plurality of goods source fields are obtained according to step S101, the plurality of goods source fields can be matched with a plurality of poster templates pre-stored in a poster template library, a poster template with image elements corresponding to the plurality of goods source fields in step S101 is screened out, and the screened poster template is used as a target poster template.
The specific method comprises the following steps: and (3) sequentially matching the plurality of goods source fields obtained in the step (S101) with a plurality of poster templates prestored in a poster template library, screening out the poster templates which are most matched with the plurality of goods source fields, and taking the screened poster templates as target poster templates. Taking the cargo source field containing the cargo type and the vehicle type required for transporting the cargo as an example, the poster template containing the image elements corresponding to the cargo type can be screened out from the poster template library, and then the poster template containing the image elements corresponding to the vehicle type required for transporting the cargo is screened out from the screened poster templates containing the image elements corresponding to the cargo type.
And S103, respectively filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template to obtain the target poster corresponding to the goods source information.
When a plurality of poster templates are generated, a data area corresponding to the goods source field is reserved in each poster template, and the data area is used for filling the goods source field. The data area may be located on the image element corresponding to the goods source field, or may be located in an area around the image element corresponding to the goods source field, and the position of the data area may be set according to the actual requirement, which is not limited herein, but in order to facilitate the user to understand the correspondence between the goods source field and the image element corresponding to the goods source field, in this embodiment, it is preferable that the data area is located on the image element corresponding to the goods source field (i.e., the data area is located on the image element and overlaps with the image element, but does not cover the image element, and it is understood that the text in the data area is located in the frame of the image element).
After the source information is obtained according to step S101 and the target poster template is obtained according to step S102, the data of the plurality of source fields may be respectively filled into the data areas corresponding to the plurality of source fields in the target poster template, so as to obtain the target poster corresponding to the source information.
In summary, the present embodiment provides a method for generating a cargo source poster, in the method, cargo source information is firstly obtained, then, according to cargo source fields in the obtained cargo source information, a poster template with image elements corresponding to a plurality of cargo source fields is determined from a preset poster template library to be a target poster template, and finally, the cargo source fields are filled into data areas corresponding to the plurality of cargo source fields in the target poster template, so that a target poster corresponding to the cargo source information can be obtained. Because the goods source field is all key information in the logistics transportation demand information, a driver can know the logistics transportation demand according to the goods source field, and in the target poster provided by the embodiment, the image elements corresponding to the goods source field are contained, and the meaning of the goods source field can be more intuitively expressed by the image. Compared with the prior art, the poster provided by the embodiment does not need to read the characters completely, saves the time cost of enterprises and drivers, and enables the logistics transportation demand information to be acquired more efficiently.
Still another embodiment of the present application provides a method for determining a target poster template. Since in step S102, there may be more than one target poster template obtained according to the plurality of cargo source fields (there may be a repeated portion of the image elements in the plurality of poster templates, for example, the cargo source fields include cargo types and vehicle types required for transporting cargo, and the target poster templates obtained according to the two cargo source fields may include image elements corresponding to the cargo types, the vehicle types required for transporting cargo, and image elements corresponding to other cargo source fields), a determination method of the target poster template is required to be used in order to determine one target poster template to be used from the obtained target poster templates.
Fig. 2 is a flowchart of a method for determining a target poster template according to an embodiment of the present application. As shown in fig. 2, in step S102, determining, from a preset poster template library, a poster template having image elements of a plurality of source fields as a target poster template according to a plurality of source fields, including:
s201, determining at least two candidate poster templates of the image elements with the plurality of source fields from a preset poster template library according to the plurality of source fields.
The goods source fields in the logistics transportation demand information can be extracted through the logistics transportation demand information issued by the enterprise, and at least two candidate poster templates of the image elements with the goods source fields can be determined from a preset poster template library according to the goods source fields.
S202, displaying at least two candidate poster templates.
After the at least two candidate poster templates are obtained in step S201, the obtained at least two candidate poster templates are displayed on a display of the computer device, and a user can view the obtained at least two candidate poster templates.
S203, determining the poster template selected by the template selection operation as a target poster template according to the template selection operation input for at least two candidate poster templates.
Since there may be a difference in the image elements in each of the poster templates (for example, in two poster templates, the type of vehicle required for transporting goods is a small car, but there may be a slight difference in the image arrangement position or the image display information of the small car in the two poster templates), after viewing at least two candidate poster templates displayed, the user may select one candidate poster template that he wants to use according to his actual requirement, and the computer device may determine that the poster template selected by the template selection operation is the target poster template according to the template selection operation input by the user (each candidate poster template has its display page, for example, the template selection operation may be clicking on the display page of the candidate poster template).
In this embodiment, if at least two candidate poster templates are obtained, the obtained candidate poster templates are displayed, so that a user can select one poster template by himself, thereby realizing the determination of the target poster template, improving the user experience and realizing the selection diversity of the poster templates.
In a possible implementation example, the source data further includes information of the transportation scenario. In step S201, at least two candidate poster templates of the image elements with the plurality of source fields are determined from the preset poster template library according to the plurality of source fields, for example, may be: and determining at least two candidate poster templates from a poster template library corresponding to the transportation scene according to the information of the transportation scene.
The information of the transportation scenes can be, for example, express, steel, coal and other information capable of representing transportation cargoes, and transportation requirements in each transportation scene may be different, so that when the poster template library is built, the poster templates in the same transportation scene can be placed in the same poster template library according to the information of each transportation scene (namely, the express poster templates are in the express poster template library, the steel poster templates are in the steel poster template library, and the coal poster templates are in the coal poster template library), and therefore classification of the poster templates in different transportation scenes can be achieved.
After the target poster template is determined according to the source information, the target poster template needs to be filled according to the source information. Fig. 3 is a flow chart of a method for filling a target poster template according to an embodiment of the present application, as shown in fig. 3, in step S103, data of a plurality of source fields are respectively filled into data areas corresponding to the plurality of source fields in the target poster template, so as to obtain a target poster corresponding to source information, including:
s301, filling data of a plurality of goods source fields into data areas corresponding to the plurality of goods source fields in a target poster template respectively to generate an initial poster.
As described in the above embodiment, each poster template is reserved with a data area corresponding to a source field, where the data area is used to fill the source field, after data of a plurality of source fields are obtained from logistics transportation demand information issued by an enterprise, the data of the plurality of source fields may be respectively filled into the data areas corresponding to the plurality of source fields in the target poster template, and the filled poster template is used as an initial poster.
S302, if the target poster template comprises the image elements corresponding to the target fields, hiding the image elements corresponding to the target fields in the initial poster to obtain the target poster.
In the process of filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template, the number of the data areas to be filled in the target poster template may be larger than the number of the data of the plurality of goods source fields acquired from the logistics transportation demand information issued by the enterprise, so that the redundant image elements in the initial poster need to be subjected to hiding processing to obtain the target poster with higher matching degree with the acquired plurality of goods source fields. The target field is a field which does not exist in a plurality of goods source fields obtained from logistics transportation demand information issued by an enterprise.
In this embodiment, the target poster is obtained by hiding the image elements corresponding to the fields which do not exist in the plurality of cargo source fields, the number of the image elements in the target poster is exactly equal to the number of the plurality of cargo source fields, the matching degree of the plurality of cargo source fields and the image elements in the target poster is improved, and the redundant image elements are hidden, so that the generated poster template is more attractive, and interference that the redundant image elements may cause to reading of a driver is eliminated.
Before matching a target poster template from a poster template library according to source information, the poster template library needs to be established in advance, so that an embodiment of the present application provides a generation method of the poster template library.
Fig. 4 is a flowchart of a method for generating a poster template library according to an embodiment of the present application. As shown in fig. 4, before determining, in step S102, that the poster template having the image elements of the plurality of source fields is the target poster template from the preset poster template library according to the plurality of source fields, the method further includes:
s401, obtaining template configuration requirements.
Wherein the template configuration requirement includes at least two source fields. As described in the above embodiment, a plurality of preset source fields may be extracted in advance from the logistics transportation demand information issued in the historical time, and the extracted plurality of preset source fields may be used as a template to configure the demand.
S402, acquiring at least two image elements from a preset element library according to at least two goods source fields.
The embodiment also provides an element library, in which a plurality of correspondence relations between the preset source field and the image element are stored (that is, the preset source field and the image element with the same meaning are associated, for example, the preset source field is a small car, and in the element library, the preset source field is corresponding to the image element of the small car, so as to establish the association relation between the preset source field and the image element of the small car).
Therefore, in the component library, each image element corresponds to one goods source field, so that when at least two image elements are obtained from the component library according to at least two goods source fields in the template configuration requirement, one obtained image element corresponds to one goods source field in the at least two goods source fields (i.e. the image elements are in one-to-one correspondence with the goods source fields).
S403, setting arrangement positions and display information of at least two image elements by adopting a preset canvas tool, and generating a poster template.
After at least two image elements are obtained from the preset element library according to step S402, a preset canvas tool may be used to set the arrangement positions and display information of the at least two image elements, so as to generate a poster template. The preset canvas tool can be canvas software, the arrangement positions refer to distribution positions of the image elements on the canvas tool, the display information refers to information such as sizes, colors and transparency of the image elements, and the arrangement positions and the display information can be adjusted through the canvas tool, so that the generated arrangement positions and the display information of the image elements meet user requirements.
Fig. 5 is a schematic diagram of a poster board according to an embodiment of the present application, where the poster board shown in fig. 5 includes source fields, such as a business name, a cargo weight, a cargo volume, a vehicle type required for transporting the cargo, and vehicle length information of the required vehicle, and image elements corresponding to the source fields.
It should be noted that, only the poster template provided in this embodiment is illustrated in fig. 5, and the poster template in this embodiment is not represented by the fact that only the poster template provided in fig. 5 is provided, and the poster template in this embodiment may include other graphic elements in addition to the graphic elements included in the poster template provided in fig. 5, and may be manufactured according to actual requirements.
In the embodiment, the poster template is generated in advance and stored in the poster template library, so that when the target poster needs to be generated according to the plurality of goods source fields, the poster template in the poster template library can be directly called, the mode of generating the target poster is more convenient, and the speed of generating the target poster according to the plurality of goods source fields is improved.
An embodiment of the present application further provides a method for generating an element library, and fig. 6 is a flowchart of the method for generating an element library provided in an embodiment of the present application, as shown in fig. 6, before step S402, according to at least two source fields, at least two image elements are obtained from a preset element library, the method further includes:
s601, acquiring a plurality of preset goods source fields.
As described in the above embodiment, a plurality of preset source fields may be extracted from the historical logistics transportation requirement information in advance before the poster board is generated.
S602, acquiring a plurality of image elements.
The plurality of image elements are images matched with the plurality of preset goods source fields, and the plurality of image elements can be obtained in a preset mode before the poster template is generated. The preset mode can be determined according to actual requirements, and is not limited herein.
Fig. 7 (a) and fig. 7 (b) are schematic diagrams of correspondence between cargo source information and graphic elements provided in an embodiment of the present application, where fig. 7 (a) and fig. 7 (b) show correspondence between different vehicle types and their corresponding graphic elements, and fig. 7 (b) shows correspondence between vans of different vehicle lengths and their corresponding graphic elements. As can be seen from fig. 7 (a), the graphic elements corresponding to different vehicle types are different, and as can be seen from fig. 7 (b), the lengths of the graphic elements corresponding to the van vehicles with different lengths are also different.
It should be noted that, the graphic elements provided in this embodiment are only illustrated in fig. 7 (a) and 7 (b), and not represented in this embodiment, but only the graphic elements in fig. 7 (a) and 7 (b), and the graphic elements in this embodiment may further include other graphic elements besides fig. 7 (a) and 7 (b), and the image elements different from fig. 7 (a) and 7 (b) may be manufactured according to actual needs.
S603, configuring the corresponding relation between a plurality of preset goods source fields and a plurality of image elements, and generating an element library.
The association of the preset goods source fields and the image elements with the same meaning can be realized, namely, a plurality of preset goods source fields and a plurality of image elements (one associated image element corresponds to one goods source field, namely, the image elements correspond to the goods source fields one by one), and the associated image elements and the goods source fields are stored in the element library to generate the element library.
In this embodiment, by generating the correspondence between the image elements and the source fields in advance and storing the generated correspondence in the element library, when the poster template in the poster template library needs to be generated, the correspondence in the element library can be directly called, so that the manner of generating the poster template is more convenient, and the speed of generating the poster template is improved.
An embodiment of the present application provides a method for obtaining image elements, where the image elements may be pre-stored in a preset local device, or may be drawn in real time through a preset canvas tool. In step S602, a plurality of image elements are acquired, which may include, for example: and importing a plurality of image elements from preset local equipment or drawing the plurality of image elements by adopting a preset canvas tool. The preset local device may be, for example, a computer device integrated with a preset source poster generation algorithm, or may be an electronic device capable of being connected to the computer device and transmitting an image element, and the preset canvas tool may be, for example, canvas software.
In this embodiment, the user may select an image element pre-stored in the preset local device, and may draw the image element by itself through a canvas tool, so that flexibility of a method for obtaining the image element is improved, and the generated image element is more fit for a user's use requirement by using the image element drawn by itself, so that user experience is improved.
Fig. 8 is a schematic structural diagram of a source poster generating device according to an embodiment of the present application, and as shown in fig. 6, an embodiment of the present application provides a source poster generating device, which includes:
the acquiring module 801 is configured to acquire cargo source information, where the cargo source information includes: data for a plurality of source fields.
A determining module 802, configured to determine, from a preset poster template library, a poster template having image elements of a plurality of source fields as a target poster template according to a plurality of source fields; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a storage module, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields.
And the filling module 803 is configured to fill data of the plurality of cargo source fields into data areas corresponding to the plurality of cargo source fields in the target poster template respectively, so as to obtain a target poster corresponding to the cargo source information.
In a possible implementation example, the determining module 802 is further configured to determine, from a preset poster template library, at least two candidate poster templates having image elements of a plurality of source fields according to a plurality of source fields; displaying at least two candidate poster templates; and determining the poster template selected by the template selection operation as a target poster template according to the template selection operation input for at least two candidate poster templates.
In a possible implementation example, the determining module 802 is further configured to determine, according to information of the transportation scenario, at least two candidate poster templates from a poster template library corresponding to the transportation scenario.
In a possible implementation example, the filling module 803 is further configured to fill data of a plurality of source fields into data areas corresponding to the plurality of source fields in the target poster template to generate an initial poster; if the target poster template comprises image elements corresponding to target fields, hiding the image elements corresponding to the target fields in the initial poster to obtain the target poster, wherein the target fields are fields which do not exist in the plurality of goods source fields.
In a possible implementation example, the cargo source poster generating device provided by this embodiment further includes a template generating module, configured to obtain a template configuration requirement, where the template configuration requirement includes: at least two source fields; acquiring at least two image elements from a preset element library according to at least two goods source fields, wherein each image element corresponds to one of the at least two goods source fields; the component library stores: the corresponding relation between the plurality of preset goods source fields and the image elements; and setting the arrangement positions and the display information of at least two image elements by adopting a preset canvas tool to generate a poster template.
In a possible implementation example, the template generating module is further configured to obtain a plurality of preset cargo source fields; acquiring a plurality of image elements; and configuring the corresponding relation between a plurality of preset goods source fields and a plurality of image elements to generate an element library.
In a possible implementation example, the template generating module is further configured to import a plurality of image elements from a preset local device; or, drawing a plurality of image elements by adopting a preset canvas tool.
The foregoing apparatus is used for executing the method provided by the foregoing embodiment, and its implementation principle and technical effects are similar to those of the method provided by the foregoing embodiment, and are not repeated herein.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASICs), or one or more microprocessors, or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGAs), etc. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
An embodiment of the present application further provides a computer device, and fig. 9 is a schematic structural diagram of the computer device provided in an embodiment of the present application. As shown in fig. 9, the computer device includes: the processor 901, the storage medium 902 and the bus 903, the storage medium stores program instructions executable by the processor, and when the computer device runs, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to perform the steps of the method for generating a cargo source poster as provided in the above embodiments.
An embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor performs the steps of the method for generating a cargo source poster as provided in the above embodiment.
Optionally, the present application also provides a program product, such as a computer readable storage medium, comprising a program for performing the above-described method embodiments when being executed by a processor.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for generating a source poster, comprising:
acquiring cargo source information, wherein the cargo source information comprises: data for a plurality of source fields;
determining a poster template with image elements corresponding to the plurality of goods source fields as a target poster template from a preset poster template library according to the plurality of goods source fields; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a plurality of storage modules, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields;
and filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template respectively to obtain the target poster corresponding to the goods source information.
2. The method according to claim 1, wherein determining, from a preset poster template library, a poster template having image elements of the plurality of source fields as a target poster template according to the plurality of source fields, comprises:
Determining at least two candidate poster templates of the image elements with the plurality of source fields from a preset poster template library according to the plurality of source fields;
displaying the at least two candidate poster templates;
and determining the poster template selected by the template selection operation as the target poster template according to the template selection operation input for the at least two candidate poster templates.
3. The method of claim 2, wherein the source information further comprises: information of the transportation scenario; the determining, according to the plurality of source fields, at least two candidate poster templates of the image elements with the plurality of source fields from a preset poster template library, includes:
and determining the at least two candidate poster templates from the poster template library corresponding to the transportation scene according to the information of the transportation scene.
4. The method according to claim 1, wherein the filling the data of the plurality of source fields into the data areas corresponding to the plurality of source fields in the target poster template to obtain the target poster corresponding to the source information includes:
Filling the data of the plurality of goods source fields into data areas corresponding to the plurality of goods source fields in the target poster template respectively to generate an initial poster;
if the target poster template comprises image elements corresponding to target fields, hiding the image elements corresponding to the target fields in the initial poster to obtain the target poster, wherein the target fields are fields which do not exist in the plurality of goods source fields.
5. The method of claim 1, wherein before determining, from a preset poster template library, a poster template having image elements of the plurality of source fields as a target poster template according to the plurality of source fields, the method further comprises:
obtaining a template configuration requirement, wherein the template configuration requirement comprises: the at least two source fields;
acquiring at least two image elements from a preset element library according to the at least two goods source fields, wherein each image element corresponds to one of the at least two goods source fields; the component library stores: the corresponding relation between the plurality of preset goods source fields and the image elements;
And setting the arrangement positions and the display information of the at least two image elements by adopting a preset canvas tool to generate a poster template.
6. The method of claim 5, wherein before obtaining at least two image elements from a preset component library according to the at least two source fields, the method further comprises:
acquiring the plurality of preset goods source fields;
acquiring a plurality of image elements;
and configuring the corresponding relation between the plurality of preset goods source fields and the plurality of image elements to generate the element library.
7. The method of claim 6, wherein the acquiring a plurality of image elements comprises:
importing the plurality of image elements from preset local equipment; or alternatively, the process may be performed,
and drawing the plurality of image elements by adopting the preset canvas tool.
8. A source poster generation apparatus, comprising:
the acquisition module is used for acquiring goods source information, and the goods source information comprises: data for a plurality of source fields;
the determining module is used for determining the poster template with the image elements of the plurality of goods source fields as a target poster template from a preset poster template library according to the plurality of goods source fields; the system comprises a poster template library, a plurality of poster templates, a plurality of storage modules and a plurality of storage modules, wherein the poster templates are prestored in the poster template library, and each poster template is formed by arranging image elements corresponding to at least two goods source fields;
And the filling module is used for respectively filling the data of the plurality of goods source fields into the data areas corresponding to the plurality of goods source fields in the target poster template to obtain the target poster corresponding to the goods source information.
9. A computer device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the computer device is running, the processor executing the program instructions to perform the steps of the method for generating a source poster as claimed in any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method of generating a source poster as claimed in any of claims 1 to 7.
CN202310184183.6A 2023-02-20 2023-02-20 Method, device, equipment and storage medium for generating goods source poster Pending CN116109735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310184183.6A CN116109735A (en) 2023-02-20 2023-02-20 Method, device, equipment and storage medium for generating goods source poster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310184183.6A CN116109735A (en) 2023-02-20 2023-02-20 Method, device, equipment and storage medium for generating goods source poster

Publications (1)

Publication Number Publication Date
CN116109735A true CN116109735A (en) 2023-05-12

Family

ID=86256147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310184183.6A Pending CN116109735A (en) 2023-02-20 2023-02-20 Method, device, equipment and storage medium for generating goods source poster

Country Status (1)

Country Link
CN (1) CN116109735A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117473972A (en) * 2023-12-12 2024-01-30 深圳市移卡科技有限公司 Method and device for generating poster

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117473972A (en) * 2023-12-12 2024-01-30 深圳市移卡科技有限公司 Method and device for generating poster

Similar Documents

Publication Publication Date Title
CN106062805B (en) Mobile system for generating an estimate of compromised vehicle insurance
KR101420041B1 (en) Item model based on descriptor and images
CN109472524A (en) Information processing method and device
CN107491307B (en) Information providing method, device, electronic equipment and computer readable storage medium
CN116109735A (en) Method, device, equipment and storage medium for generating goods source poster
CN111507740B (en) Commodity information display method, device, system, electronic equipment and readable medium
CN107644088B (en) Data pushing method, server and computer storage medium
CN105205519A (en) Electronic equipment query vehicle information and request distribution vehicle method and electronic equipment
CN112734537A (en) Commodity information processing method, commodity information processing device, storage medium and computer equipment
CN111858872B (en) Question-answer interaction method and device, electronic equipment and storage medium
CN112560189A (en) Page display method and device, computer equipment and readable storage medium
US10269059B2 (en) Computerized exchange network
CN107169134A (en) Promotion information display method and device and electronic equipment
CN107958359A (en) Shelf choosing method and device
CN111767492B (en) Picture loading method and device, computer equipment and storage medium
CN107016428A (en) The initial method and device of a kind of Quick Response Code
US10818002B1 (en) Systems and methods for processing images based on criteria
CN106934958A (en) The method to set up and device of POS printing
CN110533744B (en) Method, device and system for synthesizing picture and mobile terminal
CN112748924A (en) Inventory display method and system
CN107705070B (en) Material information input method and device in ERP system and computer equipment
CN114248572B (en) Printing method and device of accounting document and storage medium
WO2022102008A1 (en) Display control apparatus, display control method, and program
CN109803017A (en) File interoperability methods, calculate equipment and computer readable storage medium at device
CN109150934A (en) Information-pushing method and device

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