Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates anexemplary system architecture 100 to which embodiments of the picture presentation methods of the present disclosure may be applied.
As shown in fig. 1, thesystem architecture 100 may includeterminal devices 101, 102, 103, anetwork 104, and aserver 105. Thenetwork 104 serves as a medium for providing communication links between theterminal devices 101, 102, 103 and theserver 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use theterminal devices 101, 102, 103 to interact with theserver 105 via thenetwork 104 to receive or send messages or the like. Various communication client applications, such as an information processing application, a picture generation application, a data analysis application, and the like, may be installed on theterminal devices 101, 102, and 103.
Theterminal apparatuses 101, 102, and 103 may be hardware or software. When theterminal devices 101, 102, 103 are hardware, they may be various terminal devices having a display screen, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When theterminal devices 101, 102, 103 are software, they can be installed in the above-listed terminal devices. Which may be implemented as multiple software or software modules (e.g., to provide a base component set input, etc.), or as a single software or software module. And is not particularly limited herein.
Theserver 105 may be a server that provides various services, such as a server that stores a set of basic components input by theterminal apparatuses 101, 102, 103, and the like. The server can process the received basic component set and feed back a processing result (such as a target picture) to the terminal equipment.
It should be noted that the picture displaying method provided by the embodiment of the present disclosure may be executed by theserver 105, or may be executed by the terminal device.
It should be noted that the local area of theserver 105 may also directly store the basic component set, and theserver 105 may directly extract the local basic component set to obtain the target picture after processing, in this case, theexemplary system architecture 100 may not include theterminal devices 101, 102, 103 and thenetwork 104.
It should be further noted that theterminal devices 101, 102, and 103 may also have a picture display application installed therein, and in this case, the processing method may also be executed by theterminal devices 101, 102, and 103. At this point, theexemplary system architecture 100 may also not include theserver 105 and thenetwork 104.
Theserver 105 may be hardware or software. When theserver 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (for example, for providing a picture display service), or may be implemented as a single software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
With continued reference to fig. 2, aflow 200 of some embodiments of a picture presentation method according to the present disclosure is shown. The picture display method comprises the following steps:
step 201, acquiring a basic component set.
In some embodiments, an executing subject of the picture presentation method (e.g., a server shown in fig. 1) acquires the base component set in response to receiving the target authorization signal. Specifically, the target authorization signal may be a signal generated by a user of the basic component set performing a target operation on a target control. The target control may be contained in an authorization prompt box. The authorization prompt box can be displayed on the target terminal device. The target terminal device may be a terminal device logged with an account corresponding to the user. The terminal equipment can be a mobile phone or a computer. The target operation may be a "click operation" or a "slide operation". The target control may be a "confirm button".
As an example, the authorization prompt box may be as shown in fig. 3. The authorization prompt box may include: a promptinformation display section 301 and acontrol 302. The promptinformation display section 301 may be configured to display prompt information. The prompt may be "whether to allow the acquisition of the set of base components". Thecontrol 302 may be a "confirm button" or a "cancel button".
Wherein the set of base components includes a first number of base components. The base component may be a base unit used for constructing the picture. Specifically, the base component may include, but is not limited to, one of: characters, pictures, two-dimensional codes, lines, rectangles and circles.
Step 202, generating a basic component template based on the basic component set.
In some embodiments, the execution agent generates a base component template based on the set of base components. The basic component template comprises a business relation identifier, a data identifier, a basic component style, a basic component data source set and a basic component set. The data identification represents the editability of the basic component template, and the business relation identification represents the relevance of the basic component template and a predetermined basic component template library. The base component styles include a first type base component style and a second type base component style. The first type base component style characterizes a non-modifiable base component style. The second type base component style characterizes a base component style that can be altered. The business relationship identification may characterize the association of the base component template with a predefined business type. The base component data sources in the set of base component data sources can be data configurations associated with the base component.
Optionally, the data identifier and the service relationship identifier are determined. Specifically, the data identifier and the service relationship representation may be determined according to the requirements of the picture display. In response to the data flag being "0", the base component style is set to the first type base component style. In particular, in response to the data identification being "0," the generated base component template is characterized as a non-modifiable base component style. The base component data source is set to null. And determining the combination of the business relation identification, the data identification, the basic component style, the basic component data source set and the basic component set as a basic component template.
Optionally, in response to the data flag being "0", the base component style is set to the second type base component style. In particular, in response to the data identification being "0," the base component template generated by the characterization is a base component style that can be altered. Based on the set of base components, a base component data source is determined. Specifically, the basic component data source corresponding to the basic component set may be obtained from the historical data source set according to the basic component set. In particular, the set of historical data sources may be a set of data sources that can be used to generate pictures. And determining the combination of the business relation identification, the data identification, the basic component style, the basic component data source set and the basic component set as a basic component template.
Specifically, the following basic component template may be generated.
Name: commodity assembly
Size: 300 pixels
Adding a picture component to the stencil:
name: commodity picture
Size: 300 pixels
Distance to the left of the canvas: 0 pixel
Distance canvas top: 0 pixel
Data source configuration:
content fixing: is not fixed
Background picture: uploading a picture as a background picture
And adding a character component into the template:
name: name of commodity
Size: 300 pixels x50 pixels
Distance to the left of the canvas: 0 pixel
Distance canvas top: 50 pixel
The character size is as follows: 50 pixels
And (3) character color: #000000
Character font: fangzheng lan pavilion middle black
And (3) thickening characters: is normal and normal
Italics for the text: is normal and normal
The character arrangement mode is as follows: centering in
Height: 50 pixels
Data source configuration:
content fixing: is not fixed
The text content is as follows: name of commodity
Length of characters: is composed of
Then adding a character component to the template:
the name is as follows: price of goods
Size: 300 pixels x50 pixels
Distance to the left of the canvas: 0 pixel
Distance to canvas top: 100 pixels
The character size is as follows: 50 pixels
And (3) character color: #000000
Character font: fangzheng lan pavilion middle black
And (3) thickening characters: is normal and normal
Italics in text: is normal
The character arrangement mode is as follows: centering the
Height: 50 pixels
Data source configuration:
content fixing: is not fixed
The text content is as follows: price of goods
Length of characters: is free of
And step 203, generating a target picture based on the basic component template.
In some embodiments, the execution subject generates the target picture based on the basic component template.
And optionally, newly building a blank canvas. In response to the business relationship identification being "0," the base component template is placed in the blank canvas. In response to the business relationship identification being "0," a blank canvas is determined as the target picture. Specifically, in response to the service relationship identifier being "0", the blank canvas does not need to be processed, and the blank canvas can be directly output in a picture format to obtain the target picture. Specifically, by using the basic component template, the following field contents are introduced: "name: apple "," image: a picture address "," element: 10 yuan/kg ", and generating the picture of the corresponding content.
Optionally, in response to the business relationship identification being "1", the base component template is placed in a blank canvas. A blank canvas is rendered according to the base component data source. Specifically, in response to the business relationship identifier being "1", the basic component may be analyzed to obtain corresponding information, the corresponding information is filled into the basic component according to a rule, and a picture is rendered. Specifically, in response to the business relationship identification being "1", the base component can be characterized as a special business component. In response to the business relationship identification being "0," a blank canvas is determined as the target picture.
Specifically, for the basic component, a service identifier "ware _ temp" may be added to the basic component, and a service field of the basic component is set to "sku". The set service field "sku:1001" is entered when a picture is generated. According to the 'sku' inquiry, the product name is apple, the product picture is a picture related to the apple, and the product price is 10 yuan/kg. And finally generating a corresponding picture.
Optionally, in response to the business relationship identification being "1", a blank canvas is rendered according to a predetermined base component template library. The blank canvas is determined to be the target picture. In particular, the underlying components can be directly mapped. Specifically, the basic components are directly used for drawing. The following field contents are passed in: "name: apple "," image: a picture address "," element: 10 yuan/kg ", and generating the picture of the corresponding content.
Optional contents in theabove step 203, namely: the technical method capable of directly generating the picture according to the basic component is taken as an invention point of the embodiment of the disclosure, and solves the technical problems mentioned in the background technology, namely, the component grouping generated after grouping processing in the prior art can not directly generate the picture, and the grouping needs to be processed to generate the target picture, so that the picture generation efficiency is influenced, and the picture generation speed is low. ". Factors that lead to poor picture generation efficiency tend to be as follows: the grouping of the components in the grouping process cannot directly generate the pictures, and the secondary processing process influences the picture generation efficiency. If the above factors are solved, the effect of improving the picture generation efficiency can be achieved. To achieve this, the present disclosure proposes a method that can generate pictures directly from the base component. In response to the business relationship identification being "1", a blank canvas is rendered according to a predetermined base component template library. A blank canvas is determined as the target picture. In particular, the underlying components can be directly mapped. By setting the business relation expression, the basic component is controlled to directly generate the picture without extra processing steps, so that the process of generating the picture is greatly simplified, the picture display efficiency is improved, and the technical problem II is solved.
Step 204, receiving the device display information input by the user from the target terminal device.
In some embodiments, the execution subject receives device display information input by a user from the target terminal device. The target terminal device may be a device connected to the execution main body in communication. The target terminal equipment can be a mobile phone or a computer. Specifically, the device display information may be a voice command, and the device display information may also be a text command.
Step 205, controlling the device corresponding to the device display information to display the target picture according to the target picture and the device display information.
In some embodiments, the execution subject controls the device corresponding to the device display information to display the target picture according to the target picture and the device display information. Specifically, the device is determined according to device display information input by a user, and the target device is sent to the device and displayed to complete a picture display task.
One embodiment presented in fig. 2 has the following beneficial effects: obtaining a set of base components, wherein the set of base components includes a first number of base components; generating a basic component template based on the basic component set, wherein the basic component template comprises a business relation identifier, a data identifier, a basic component style, a basic component data source set and a basic component set; generating a target picture based on the basic component template; receiving device display information input by a user from a target terminal device; and controlling the equipment corresponding to the equipment display information to display the target picture according to the target picture and the equipment display information. According to the embodiment, the basic component set is generated into the basic component template, and the target picture is generated by using the basic component template, so that the generation efficiency of the target picture can be improved, the configuration process of the formed picture is simplified, the utilization rate of the basic component set is improved, and the efficiency of displaying the target picture by equipment is improved.
With further reference to fig. 4, as an implementation of the above method for the above figures, the present disclosure provides some embodiments of a picture displaying apparatus, which correspond to those of the method embodiments described above in fig. 2, and which can be specifically applied to various terminal devices.
As shown in fig. 4, thepicture display device 400 of some embodiments includes: anacquisition unit 401, afirst generation unit 402, asecond generation unit 403, areception unit 404, and acontrol unit 405. Therein, the obtainingunit 401 is configured to obtain a base component set. Wherein the set of base components includes a first number of base components. Afirst generating unit 402 configured to generate a base component template based on the set of base components. The basic component template comprises a business relation identifier, a data identifier, a basic component style, a basic component data source set and a basic component set. Asecond generating unit 403 configured to generate a target picture based on the base component template. A receivingunit 404 configured to receive device display information input by a user from the target terminal device. Acontrol unit 405 configured to control a device corresponding to the device display information to display the target picture according to the target picture and the device display information.
It will be understood that the elements described in theapparatus 400 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to theapparatus 400 and the units included therein, and will not be described herein again.
Referring now to FIG. 5, shown is a block diagram of acomputer system 500 suitable for use in implementing a terminal device of an embodiment of the present disclosure. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 5, thecomputer system 500 includes a Central Processing Unit (CPU) 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from astorage section 506 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of thesystem 500 are also stored. TheCPU 501,ROM 502, and RAM503 are connected to each other via abus 504. An Input/Output (I/O)interface 505 is also connected tobus 504.
The following components are connected to the I/O interface 505: astorage portion 506 including a hard disk and the like; and acommunication section 507 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. Thecommunication section 507 performs communication processing via a network such as the internet. Thedriver 508 is also connected to the I/O interface 505 as necessary. Aremovable medium 509 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on thedrive 508 as necessary so that the computer program read out therefrom is mounted into thestorage section 506 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through thecommunication section 507 and/or installed from theremovable medium 509. The above-described functions defined in the method of the present disclosure are performed when the computer program is executed by a Central Processing Unit (CPU) 501. It should be noted that the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the C language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the spirit of the invention. For example, the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions are replaced with each other to form the technical solution.