Resource generation method and device, terminal and storage medium
By entering the object identifier and jump page identifier on the target platform in the resource editing interface, the terminal automatically generates media resources, solving the problem of low manual generation efficiency in the existing technology, and achieving automation and efficiency improvement of resource generation.
Patent Information
- Application Number
- CN202411270058.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, when merchants generate media resources on information sharing platforms, manual methods lead to low resource generation efficiency, especially when the number of resources is large, an automated method is needed to improve the generation efficiency.
By entering the target object identifier and jump page identifier on the target platform in the resource editing interface, the terminal automatically generates the target resources, reducing dependence on designers and improving generation efficiency.
It realizes that target resources are generated manually without manual labor costs, improves resource generation efficiency, and simplifies the media resource generation process.
Smart Images

Figure CN119127036A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a resource generation method, device, terminal and storage medium. Background Art
[0002] With the development of Internet technology, more and more merchants will display media resources containing QR codes in offline stores so that users can quickly obtain relevant information about the store by scanning the QR code in the media resource. At present, for merchants who have settled in the information sharing platform, the designers of the information sharing platform mainly manually generate QR codes according to the needs of the merchants, and then put the QR codes into the pre-designed media resources, and finally obtain the media resources required by the merchants by performing some artistic processing on the media resources. However, when the number of media resources required is too large, it takes too long to generate media resources manually, resulting in low resource generation efficiency. Therefore, how to improve the generation efficiency of media resources is a technical problem that needs to be solved. Summary of the invention
[0003] The present disclosure provides a resource generation method, device, terminal and storage medium, which can automatically generate the target resource required by the user based on the object identifier of the target object on the target platform and the page identifier of the jump page input by the user in the resource editing interface, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource. The technical solution of the present disclosure is as follows:
[0004] According to one aspect of an embodiment of the present disclosure, a resource generation method is provided, including:
[0005] In response to a trigger operation on a resource generation portal, a resource editing interface is displayed, wherein the resource editing interface includes a preview area and an editing area;
[0006] In response to the information configuration operation in the editing area, obtaining an object identifier of a target object on a target platform and a page identifier of a jump page;
[0007] The target resource is displayed in the preview area, the target resource is generated based on the object identifier of the target object and the page identifier of the jump page, the target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
[0008] In some embodiments, generating the target resource based on the object identifier of the target object, the page identifier of the jump page, the item image, and the selected second resource template includes:
[0009] Based on the object identifier of the target object and the page identifier of the jump page, acquiring the page address of the jump page from the object database of the target platform;
[0010] Encoding the page address of the jump page to obtain a graphic identification code of the jump page;
[0011] The target resource is generated based on the graphic identification code, the object image and the selected second resource template.
[0012] In some embodiments, generating the target resource based on the object identifier of the target object, the page identifier of the jump page, the item image, and the selected second resource template includes:
[0013] Based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, a resource generation request is sent to the server, the server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and the page identifier carried in the resource generation request, encode the page address to obtain the graphic identification code of the jump page, and generate the target resource based on the graphic identification code, the item image carried in the resource generation request and the second resource template;
[0014] Receive the target resource returned by the server.
[0015] In some embodiments, generating a target resource corresponding to each sub-object based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page includes:
[0016] For any sub-object, based on the object identifier of the target object, the object identifier of the sub-object and the page identifier of the jump page, the page address of the jump page is obtained from the object database of the target platform;
[0017] The page address of the jump page is encoded to obtain the target resource corresponding to the sub-object.
[0018] In some embodiments, generating a target resource corresponding to each sub-object based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page includes:
[0019] Based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page, a resource generation request is sent to the server, wherein the server is used to obtain the page address of the jump page corresponding to each sub-object from the object database of the target platform based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page carried in the resource generation request, and encode the page address of the jump page corresponding to each sub-object respectively to obtain the target resource corresponding to each sub-object;
[0020] Receive the target resource corresponding to each sub-object returned by the server.
[0021] According to another aspect of an embodiment of the present disclosure, there is provided a resource generation device, including:
[0022] A first display unit is configured to display a resource editing interface in response to a trigger operation on a resource generation portal, wherein the resource editing interface includes a preview area and an editing area;
[0023] A first acquisition unit is configured to acquire an object identifier of a target object on a target platform and a page identifier of a jump page in response to an information configuration operation in the editing area;
[0024] The second display unit is configured to display the target resource in the preview area, the target resource is generated based on the object identifier of the target object and the page identifier of the jump page, the target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
[0025] In some embodiments, the apparatus further comprises:
[0026] The first generating unit is configured to generate the target resource based on the object identifier of the target object and the page identifier of the jump page in response to a selection operation of a first resource type in the editing area, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
[0027] In some embodiments, the apparatus further comprises:
[0028] A third display unit is configured to, in response to a selection operation of a second resource type in the editing area, display a template selection area in the resource editing interface, wherein the template selection area displays a plurality of first resource templates, the first resource templates including a graphic identification code area, and the second resource type is used to indicate that the target resource is a poster including a graphic identification code;
[0029] The third display unit is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0030] The first generating unit is further configured to generate the target resource based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, wherein the layout of the target resource is the same as that of the selected first resource template.
[0031] In some embodiments, the resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of first resource templates, wherein the first resource template includes a graphic identification code area;
[0032] The third display unit is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0033] The first generating unit is further configured to generate the target resource in response to a selection operation of a first resource type in the editing area based on the object identifier of the target object and the page identifier of the jump page, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
[0034] In some embodiments, the resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of first resource templates, wherein the first resource template includes a graphic identification code area;
[0035] The third display unit is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0036] The first generation unit is further configured to generate the target resource in response to a selection operation of the second resource type in the editing area, based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, wherein the layout of the target resource is the same as that of the selected first resource template, and the first resource type is used to indicate that the target resource is a graphic identification code.
[0037] In some embodiments, the first generation unit is further configured to obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page; encode the page address of the jump page to obtain a graphic identification code of the jump page; and generate the target resource based on the graphic identification code and the selected first resource template.
[0038] In some embodiments, the first generation unit is further configured to send a resource generation request to the server based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, and the server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and the page identifier carried in the resource generation request, encode the page address to obtain the graphic identification code of the jump page, generate the target resource based on the graphic identification code and the first resource template carried in the resource generation request; and receive the target resource returned by the server.
[0039] In some embodiments, the resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of second resource templates, wherein the second resource template includes an item image area and a graphic identification code area;
[0040] The device also includes:
[0041] a fourth display unit, configured to display a plurality of candidate item objects in the editing area based on the object identifier of the target object when any second resource template is selected from the template selection area, the candidate item objects being item objects corresponding to the target object;
[0042] A second acquisition unit is configured to, in response to a selection operation on any candidate object among the plurality of candidate object, acquire an object image of the selected candidate object;
[0043] The first generating unit is further configured to generate the target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, and the layout of the target resource is the same as the selected second resource template.
[0044] In some embodiments, the resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of second resource templates, wherein the second resource template includes an item image area and a graphic identification code area;
[0045] The second acquisition unit is further configured to acquire the object image in response to an image input operation in the editing area when any second resource template is selected from the template selection area;
[0046] The first generating unit is further configured to generate the target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, and the layout of the target resource is the same as the selected second resource template.
[0047] In some embodiments, the apparatus further comprises:
[0048] A second generating unit is configured to generate image description information based on the object image and the object identifier of the target object, wherein the image description information is used to describe the target image to be generated; and generate the target image based on the image description information;
[0049] The first generating unit is further configured to generate the target resource based on the object identifier of the target object, the page identifier of the jump page, the target image and the second resource template.
[0050] In some embodiments, the apparatus further comprises:
[0051] a sending unit configured to send an image generation request to a server based on the object image and the object identifier of the target object, wherein the server is used to generate image description information based on the object image and the object identifier carried in the image generation request, and to generate a target image based on the image description information, wherein the image description information is used to describe the target image to be generated;
[0052] A receiving unit, configured to receive the target image returned by the server;
[0053] The first generating unit is configured to generate the target resource based on the object identifier of the target object, the page identifier of the jump page, the target image and the second resource template.
[0054] In some embodiments, the apparatus further comprises:
[0055] A third acquisition unit is configured to acquire an object identifier of at least one sub-object of the target object;
[0056] The first generating unit is configured to generate a target resource corresponding to each sub-object based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page.
[0057] In some embodiments, the third acquisition unit is configured to display multiple candidate objects in the editing area based on the object identification of the target object, and the candidate objects are sub-objects of the target object; in response to a selection operation of at least one candidate object among the multiple candidate objects, acquire the object identification of at least one selected candidate object.
[0058] In some embodiments, the third acquisition unit is configured to verify the at least one object identifier based on the object identifier of the target object in response to an input operation on the at least one object identifier in the editing area; and acquire the at least one object identifier if the verification passes.
[0059] In some embodiments, the third acquisition unit is further configured to display a prompt message when the verification fails, wherein the prompt message is used to prompt that the object corresponding to the at least one object identifier is not a sub-object of the target object.
[0060] In some embodiments, the resource editing interface also includes a template selection area, and the second display unit is further configured to switch the multiple first resource templates displayed in the template selection area to multiple second resource templates in response to a category switching operation in the template selection area when multiple first resource templates are displayed in the template selection area, wherein the first resource template includes a graphic identification code area, and the second resource template includes an object image area and a graphic identification code area.
[0061] According to another aspect of an embodiment of the present disclosure, a terminal is provided, the terminal including:
[0062] one or more processors;
[0063] A memory for storing program codes executable by the processor;
[0064] The processor is configured to execute the program code to implement the resource generation method.
[0065] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of a terminal, the terminal is enabled to execute the above-mentioned resource generation method.
[0066] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the resource generation method is implemented.
[0067] The disclosed embodiment provides a resource generation method, which enables the user to configure the relevant information required for generating the target resource through the resource editing interface by displaying the resource editing interface provided by the target platform to the user, thereby enabling the terminal to automatically generate the target resource required by the user based on the object identifier of the target object on the target platform and the page identifier of the jump page input by the user in the resource editing interface, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource.
[0068] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0070] Figure 1 The diagram is a schematic diagram of an implementation environment of a resource generation method according to an exemplary embodiment.
[0071] Figure 2 The invention is a flowchart of a resource generation method according to an exemplary embodiment.
[0072] Figure 3 The diagram is a schematic diagram showing a resource generation process according to an exemplary embodiment.
[0073] Figure 4 The figure is a flowchart of another resource generation method according to an exemplary embodiment.
[0074] Figure 5 It is a schematic diagram of a resource editing interface according to an exemplary embodiment.
[0075] Figure 6 It is a schematic diagram of another resource editing interface according to an exemplary embodiment.
[0076] Figure 7 The figure is a flowchart of yet another resource generation method according to an exemplary embodiment.
[0077] Figure 8 is a schematic diagram of yet another resource editing interface according to an exemplary embodiment.
[0078] Fig. 9 is a schematic diagram showing an image generation process according to an exemplary embodiment.
[0079] Fig.10 The invention is a block diagram of a resource generating device according to an exemplary embodiment.
[0080] Fig.11 It is a block diagram of another resource generating device according to an exemplary embodiment.
[0081] Fig.12 It is a block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0082] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0083] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0084] The user information involved in this disclosure may be information authorized by the user or fully authorized by all parties. It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the object identifiers and page identifiers involved in this application are obtained with full authorization.
[0085] The resource generation method provided by the embodiment of the present disclosure can be executed by a terminal. Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a resource generation method according to an exemplary embodiment. Figure 1 , the implementation environment specifically includes: a terminal 101 and a server 102.
[0086] The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), and a laptop computer. An application may be installed and run on the terminal 101 to provide a resource generation function. A user may log in to the application through the terminal 101 to obtain the services provided by the application. The server 102 may be a background server of the application to provide background services for the application.
[0087] The terminal 101 may generally refer to one of a plurality of terminals. This embodiment is only illustrated by taking the terminal 101 as an example. Those skilled in the art may know that the number of the above terminals may be more or less. For example, the above terminals may be only a few, or the above terminals may be dozens or hundreds, or a greater number. The embodiment of the present disclosure does not limit the number and device type of the terminals.
[0088] The server 102 can be at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 102 can be connected to the terminal 101 and other terminals via a wireless network or a wired network. The server 102 can receive a resource generation request sent by the terminal 101, and then generate a target resource based on the object identifier and page identifier carried in the resource generation request, and finally return the target resource to the terminal 101 for the user to view. Optionally, the number of the above servers can be more or less, and the embodiments of the present disclosure are not limited to this. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services.
[0089] Figure 2 is a flow chart of a resource generation method according to an exemplary embodiment. Figure 2 As shown, the method is executed by the terminal and includes the following steps:
[0090] In step S201, in response to a triggering operation on a resource generation portal, the terminal displays a resource editing interface, which includes a preview area and an editing area.
[0091] In an embodiment of the present disclosure, a target platform with a resource generation function is installed or run on the terminal. The target platform may be a short video platform, a social platform, a shopping platform, etc., which is not limited by the embodiment of the present disclosure. The resource generation portal is a quick portal to enter the resource editing interface provided by the target platform. In response to the triggering operation of the resource generation portal, the terminal can display the resource editing interface provided by the target platform. Among them, the resource editing interface is used to generate a target resource including a graphic identification code. The graphic identification code may be an identification code such as a QR code or a barcode that graphically embodies certain information based on a certain encoding method. The target resource may be a media resource such as an image or a video. The preview area in the resource editing interface is used to display the target resource to be generated. The preview area may be a blank area, or it may display some preset information, such as a default graphic identification code, which is not limited by the embodiment of the present disclosure. The editing area in the resource editing interface is used to configure the relevant information required to generate the target resource.
[0092] In step S202, in response to the information configuration operation in the editing area, the terminal obtains the object identifier of the target object on the target platform and the page identifier of the jump page.
[0093] In an embodiment of the present disclosure, the information configuration operation may include an information input operation and a type selection operation. Accordingly, in response to the information input operation in the editing area, the terminal can obtain the object identifier of the target object on the target platform. In response to the type selection operation in the editing area, the terminal can obtain the page identifier of the jump page. Among them, the target object refers to the user account logged in on the target platform. The jump page is a related page of the target object. The page identifier may include the page identifier of the store page and the page identifier of the group purchase page. Accordingly, the jump page may include a store page and a group purchase page. The store page is used to display multiple item objects included in the store of the target object on the target platform. The group purchase page is used to display group purchase activities carried out for multiple item objects in the store of the target object.
[0094] In step S203, the terminal displays the target resource in the preview area. The target resource is generated based on the object identifier of the target object and the page identifier of the jump page. The target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
[0095] In the disclosed embodiment, the terminal can determine the jump page to be represented by the graphic identification code in the target resource based on the object identification of the target object and the page identification of the jump page, that is, determine the jump page of the target object on the target platform. Then, the terminal can encode the page information of the jump page to obtain the target resource containing the graphic identification code corresponding to the jump page. After generating the target resource, the terminal can display the target resource in the preview area for the user to use.
[0096] The present disclosure implements and provides a resource generation method, which enables the user to configure the relevant information required for generating the target resource through the resource editing interface by displaying the resource editing interface provided by the target platform to the user, thereby enabling the terminal to automatically generate the target resource required by the user based on the object identifier of the target object on the target platform and the page identifier of the jump page input by the user in the resource editing interface, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource.
[0097] In some embodiments, the method further comprises:
[0098] In response to a selection operation on the first resource type in the editing area, a target resource is generated based on an object identifier of the target object and a page identifier of a jump page.
[0099] In an embodiment of the present disclosure, by generating a target resource based on relevant information configured by a user in an editing area when the resource type of the target resource is selected as a first resource type, the terminal is able to directly generate a graphic identification code when the user selects the first resource type, without further providing a resource template for the user, thereby improving the generation efficiency of the target resource.
[0100] In some embodiments, the method further comprises:
[0101] In response to a selection operation of a second resource type in the editing area, a template selection area is displayed in the resource editing interface, wherein the template selection area displays a plurality of first resource templates, and the first resource template includes a graphic identification code area;
[0102] In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area;
[0103] The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. The layout of the target resource is the same as that of the selected first resource template.
[0104] In an embodiment of the present disclosure, by providing a plurality of first resource templates to the user when the resource type of the target resource is selected as the second resource type, the terminal can generate the target resource based on the first resource template selected by the user and the relevant information configured by the user in the editing area, thereby enriching the display effect of the target resource and meeting the user's diverse needs for the target resource.
[0105] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of first resource templates, the first resource template includes a graphic identification code area;
[0106] The method also includes:
[0107] In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area;
[0108] In response to a selection operation on the first resource type in the editing area, a target resource is generated based on an object identifier of the target object and a page identifier of a jump page.
[0109] In an embodiment of the present disclosure, by generating a target resource based on relevant information configured by a user in an editing area when the resource type of the target resource is selected as a first resource type, the terminal is able to generate a separate graphic identification code even when the user has selected a resource template. This not only facilitates subsequent processing of the graphic identification code by the user, but also improves the flexibility of the resource generation process.
[0110] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of first resource templates, the first resource template includes a graphic identification code area;
[0111] The method also includes:
[0112] In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area;
[0113] In response to a selection operation on the second resource type in the editing area, a target resource is generated based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, and the layout of the target resource is the same as the selected first resource template.
[0114] In an embodiment of the present disclosure, by generating a target resource based on a first resource template selected by a user and related information configured by the user in an editing area when the resource type of the target resource is selected as a second resource type, the display effect of the target resource can be enriched to meet the diverse needs of the user for the target resource.
[0115] In some embodiments, generating a target resource based on the object identifier of the target object, the page identifier of the redirected page, and the selected first resource template includes:
[0116] Based on the object identifier of the target object and the page identifier of the jump page, obtaining the page address of the jump page from the object database of the target platform;
[0117] Encode the page address of the jump page to obtain the graphic identification code of the jump page;
[0118] A target resource is generated based on the graphic identification code and the selected first resource template.
[0119] In the embodiment of the present disclosure, by automatically obtaining the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page, the user can obtain the target resource without manually entering the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0120] In some embodiments, generating a target resource based on the object identifier of the target object, the page identifier of the redirected page, and the selected first resource template includes:
[0121] Based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template, a resource generation request is sent to the server, and the server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and the page identifier carried in the resource generation request, encode the page address to obtain the graphic identification code of the jump page, and generate the target resource based on the graphic identification code and the first resource template carried in the resource generation request;
[0122] Receive the target resource returned by the server.
[0123] In the embodiment of the present disclosure, by sending a resource generation request to the server, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page. The target resource can be obtained without the user manually entering the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0124] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of second resource templates, the second resource template includes an item image area and a graphic identification code area;
[0125] The method also includes:
[0126] When any second resource template is selected from the template selection area, a plurality of candidate item objects are displayed in the editing area based on the object identifier of the target object, where the candidate item objects are item objects corresponding to the target object;
[0127] In response to a selection operation on any candidate object among the plurality of candidate object objects, acquiring an object image of the selected candidate object;
[0128] The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template. The layout of the target resource is the same as that of the selected second resource template.
[0129] In the disclosed embodiment, by automatically displaying multiple item objects corresponding to the target object in the editing area when the user selects the second resource template, the user can quickly select the item objects in the target resource to be generated, so that the terminal can quickly and accurately obtain the item images in the target resource to be generated, thereby improving the generation efficiency of the target resource.
[0130] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of second resource templates, the second resource template includes an item image area and a graphic identification code area;
[0131] The method also includes:
[0132] When any second resource template is selected from the template selection area, in response to an image input operation in the editing area, acquiring an object image;
[0133] The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template. The layout of the target resource is the same as that of the selected second resource template.
[0134] In the disclosed embodiment, by obtaining the object image manually input by the user as the object image in the target resource to be generated, the user can freely set the object image in the target resource to be generated, thereby meeting the user's diverse needs for the target resource.
[0135] In some embodiments, the method further comprises:
[0136] Based on the object image and the object identifier of the target object, image description information is generated, where the image description information is used to describe the target image to be generated;
[0137] Generate a target image based on the image description information;
[0138] Generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the item image, and the selected second resource template, including:
[0139] A target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the target image, and the second resource template.
[0140] In the disclosed embodiment, the object image and the object identification of the target object are processed by an image generation model, and a target image having the content described by the image description information can be quickly and accurately generated based on the image description information contained in the object image and the object identification of the target object. This can not only meet the user's diverse needs for the target image, but also improve the quality of the target resources generated based on the target image.
[0141] In some embodiments, the method further comprises:
[0142] Based on the object image and the object identifier of the target object, an image generation request is sent to the server, and the server is used to generate image description information based on the object image and the object identifier carried in the image generation request, and generate a target image based on the image description information, where the image description information is used to describe the target image to be generated;
[0143] Receive the target image returned by the server;
[0144] Generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the item image, and the selected second resource template, including:
[0145] A target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the target image, and the second resource template.
[0146] In the disclosed embodiment, by sending an image generation request to the server, the server can process the object image and the object identification of the target object through the image generation model, and then can quickly and accurately generate a target image having the content described by the above image description information based on the image description information contained in the object image and the object identification of the target object, which can not only meet the user's diverse needs for target images, but also improve the quality of target resources generated based on the target image.
[0147] In some embodiments, the method further comprises:
[0148] Obtaining an object identifier of at least one child object of the target object;
[0149] Based on the object ID of the target object and the page ID of the jump page, the target resource is generated, including:
[0150] Based on the object identifier of the target object, the object identifier of at least one sub-object, and the page identifier of the jump page, a target resource corresponding to each sub-object is generated.
[0151] In the disclosed embodiment, by acquiring the object identifier of at least one sub-object of the target object, the terminal can batch generate multiple target resources at one time based on the relevant information configured by the user in the editing area, thereby greatly improving the generation efficiency of the target resources.
[0152] In some embodiments, obtaining the object identification of at least one sub-object of the target object includes:
[0153] Based on the object identifier of the target object, a plurality of candidate objects are displayed in the editing area, the candidate objects being sub-objects of the target object;
[0154] In response to a selection operation on at least one candidate object among the plurality of candidate objects, an object identifier of the selected at least one candidate object is obtained.
[0155] In the embodiment of the present disclosure, by automatically displaying multiple sub-objects of the target object in the editing area when the object identifier of the target object is input, it is possible for the user to quickly select at least one sub-object of the target resource to be generated, thereby enabling the terminal to quickly and accurately obtain the object identifier of at least one sub-object, thereby improving the generation efficiency of the target resource.
[0156] In some embodiments, obtaining the object identification of at least one sub-object of the target object includes:
[0157] In response to an input operation on at least one object identification in the editing area, verifying the at least one object identification based on the object identification of the target object;
[0158] If the verification passes, at least one object identifier is obtained.
[0159] In the embodiment of the present disclosure, by verifying the object identifier of at least one sub-object when the user manually inputs the object identifier of at least one sub-object, the accuracy of the object identifier of at least one sub-object acquired by the terminal can be improved, thereby improving the generation quality of the target resource.
[0160] In some embodiments, the method further comprises:
[0161] If the verification fails, a prompt message is displayed, where the prompt message is used to prompt that the object corresponding to at least one object identifier is not a sub-object of the target object.
[0162] In the embodiment of the present disclosure, by prompting the user that the object identifier currently input is not the object identifier of a sub-object of the target object when the object identifier verification fails, the terminal can avoid generating target resources based on an incorrect object identifier, thereby improving the generation quality of the target resources.
[0163] In some embodiments, the resource editing interface further includes a template selection area, and the method further includes:
[0164] In a case where a plurality of first resource templates are displayed in the template selection area, in response to a category switching operation in the template selection area, the plurality of first resource templates displayed in the template selection area are switched to a plurality of second resource templates, wherein the first resource template includes a graphic identification code area, and the second resource template includes an object image area and a graphic identification code area.
[0165] In the embodiment of the present disclosure, by performing a category switching operation in the template selection area, the category of the resource template displayed in the template selection area can be switched, which can facilitate the user to quickly select the resource template required to generate template resources from multiple resource templates of different categories, thereby improving the generation efficiency of target resources.
[0166] Above Figure 2 The following is only the basic process of the present disclosure. In addition to the editing area and the preview area, the resource editing interface also includes a template selection area. The template selection area displays multiple resource templates. Figure 3 FIG. 1 is a schematic diagram showing a resource generation process according to an exemplary embodiment. Figure 3As shown, when the user selects the first resource template, the terminal can generate the target resource according to process 1. When the user selects the second resource template, the terminal can generate the target resource according to process 2. Figure 3 Process 1 and Figure 4 The scheme provided by the present disclosure is further described by the flowchart shown in FIG. Figure 4 is a flow chart of another resource generation method according to an exemplary embodiment. Figure 4 , the method is executed by a terminal, and the method includes:
[0167] In step S401, in response to the triggering operation on the resource generation portal, the terminal displays a resource editing interface, which includes a preview area, an editing area, and a template selection area. The template selection area displays multiple first resource templates, and the first resource template includes a graphic identification code area.
[0168] In the disclosed embodiment, Figure 5 FIG. 1 is a schematic diagram of a resource editing interface according to an exemplary embodiment. Figure 5 As shown, in addition to the editing area 501 and the preview area 502, the resource editing interface also displays a template selection area 503. The model selection area 503 displays a plurality of first resource templates for the user to select. The first resource template is a resource template including a graphic identification code area. The graphic identification code area is the area in the first resource template used to display the graphic identification code. The graphic identification code area may display a default graphic identification code, or may not display a default graphic identification code, that is, a blank area, and the embodiments of the present disclosure do not limit this. In the case where the graphic identification code area displays a default graphic identification code, the display styles of the default graphic identification codes displayed in different first resource templates may be the same or different, and the embodiments of the present disclosure do not limit this. If the display styles of the default graphic identification codes displayed in two first resource templates are the same, the display styles of other areas in the two first resource templates except the graphic identification code area are different.
[0169] In some embodiments, the terminal can provide multiple categories of resource templates. Figure 5As shown, multiple resource templates can be divided into a first resource template and a second resource template. The terminal can display all of these resource templates in the template selection area, or display resource templates of different categories in the template selection area. Accordingly, in response to the category switching operation in the template selection area, the terminal can switch the multiple first resource templates displayed in the template selection area to multiple second resource templates, and the second resource template includes an item image area and a graphic identification code area. Among them, through the category switching operation, the terminal can switch between the two different categories of resource templates in the template selection area. For example, the category switching operation can be a left and right sliding operation in the template selection area, or it can be a triggering operation of the template selection control in the template selection area. The process of the terminal switching multiple second resource templates to multiple first resource templates through the category switching operation is the same as the above process. By performing the category switching operation in the template selection area, the category of the resource template displayed in the template selection area can be switched, which can facilitate the user to quickly select the resource template required to generate the template resource from multiple resource templates of different categories, thereby improving the generation efficiency of the target resource.
[0170] In step S402, in response to a selection operation on any first resource template among a plurality of first resource templates, the terminal displays the selected first resource template in a preview area.
[0171] In the embodiment of the present disclosure, in order to facilitate users to view the resource templates displayed in the template selection area, the preview area can display the resource template selected by the user in addition to the target resource to be generated. Figure 5 As shown, when any first resource template among multiple first resource templates in the template selection area 503 is selected, the terminal can display the selected first resource template, that is, "Template A", in the preview area 502 in response to the selection operation of the first resource template.
[0172] In step S403, in response to the information configuration operation in the editing area, the terminal obtains the object identifier of the target object on the target platform and the page identifier of the jump page.
[0173] In the embodiments of the present disclosure, Figure 5 As shown, the editing area 501 displays a first input box 504, multiple page identifiers of the jump page, and multiple resource types of the target resource. Accordingly, the user can input the object identifier of the target object in the editing area through the input box. The user can also determine the page identifier of the jump page represented by the graphic identification code in the target resource to be generated by performing a selection operation on any page identifier among the multiple page identifiers. The user can also determine the resource type of the target resource to be generated by performing a selection operation on any resource type among the multiple resource types.
[0174] In some embodiments, the target object corresponds to multiple sub-objects. Taking the target object as a merchant settled in the target platform as an example, the sub-object of the target object is the offline store of the merchant settled in the target platform. If the target object is "xx milk tea", the sub-object of the target object can be "xx milk tea (A district store)" or "xx milk tea (B city store)" Accordingly, in response to the information configuration operation in the editing area, the terminal can also obtain the object identification of at least one sub-object. The terminal obtains the object identification of at least one sub-object in the following implementation method one and implementation method two.
[0175] Implementation method 1: Figure 6 FIG. 1 is a schematic diagram of another resource editing interface according to an exemplary embodiment. Figure 6 As shown in (a), the terminal can display multiple candidate objects "sub-object A, sub-object B, sub-object C" in the editing area 601 based on the object identification of the target object, and the candidate objects are sub-objects of the target object; then, in response to the selection operation of at least one candidate object among the multiple candidate objects, the terminal can obtain the object identification of at least one selected candidate object. Among them, after the user enters the object identification of the target object in the editing area, the terminal can obtain multiple sub-objects corresponding to the target object from the object database of the target platform based on the object identification of the target object, and display them as candidate objects in the editing area for user selection. When at least one candidate object in the editing area is selected, the terminal can obtain the object identification of at least one candidate object from the object database of the target platform. By automatically displaying multiple sub-objects of the target object in the editing area when the object identification of the target object is entered, it is convenient for the user to quickly select at least one sub-object of the target resource to be generated, so that the terminal can quickly and accurately obtain the object identification of at least one sub-object, thereby improving the generation efficiency of the target resource.
[0176] Implementation method 2: Figure 6As shown in (b) in the figure, the terminal can display a second input box 603 in the editing area 602, and the second input box 603 is used to input the object identifier of the sub-object of the target object. In response to the input operation of at least one object identifier in the second input box 603, the terminal can verify the at least one object identifier based on the object identifier of the target object; if the verification passes, the terminal obtains the at least one object identifier. After the user enters the object identifier of the target object in the editing area, the user can also manually enter the object identifier of at least one sub-object of the target object in the editing area. Since the user may make an input error when manually entering the object identifier, the terminal can verify the at least one object identifier based on the object identifier of the target object. If the verification passes, it indicates that the at least one object identifier entered by the user is the object identifier of at least one sub-object of the target object, so the terminal can obtain the at least one object identifier for subsequent generation of the target resource. By verifying the object identifier when the user manually enters the object identifier of at least one sub-object, the accuracy of the object identifier of at least one sub-object obtained by the terminal can be improved, thereby improving the generation quality of the target resource.
[0177] In some embodiments, when the verification fails, the terminal can display a prompt message, which is used to prompt that the object corresponding to at least one object identifier is not a sub-object of the target object. By prompting the user that the object identifier currently input is not an object identifier of a sub-object of the target object when the verification of the object identifier fails, it can avoid the terminal from generating a target resource based on an erroneous object identifier, thereby improving the generation quality of the target resource.
[0178] It should be noted that the user can also configure the resource type of the target resource in the editing area. Accordingly, when the resource type of the target resource to be generated is the first resource type, the terminal can execute the following step S404. When the resource type of the target resource to be generated is the second resource type, the terminal can execute the following step S405.
[0179] In step S404, when the first resource type in the editing area is selected, the terminal generates a target resource based on the object identifier of the target object and the page identifier of the jump page. The target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
[0180] In the embodiments of the present disclosure, Figure 5As shown, the first resource type is a graphic identification code type, that is, it is used to indicate that the target resource is a graphic identification code. Accordingly, when the selected resource type is the first resource type, it indicates that the terminal only needs to generate a graphic identification code, that is, there is no need to use a resource template to generate the target resource. Therefore, the terminal can generate a graphic identification code for jumping to the jump page on the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page. That is, when the graphic identification code type is selected, in response to the Figure 5 The trigger operation of the resource generation control 505 shown in the figure enables the terminal to generate the target resource based on the object identifier of the target object and the page identifier of the jump page. By generating the target resource based on the relevant information configured by the user in the editing area when the resource type of the target resource is selected as the first resource type, the terminal can still generate a separate graphic identification code when the user has selected a resource template, which not only facilitates the user to perform subsequent processing on the graphic identification code, but also improves the flexibility of the resource generation process.
[0181] In some embodiments, the target resource generation process in the above step S404 can be implemented only by the terminal, or by the interaction between the terminal and the server. Accordingly, the terminal can generate the target resource through the following implementation method 1 and implementation method 2.
[0182] Implementation method 1: Based on the object identifier of the target object and the page identifier of the jump page, the terminal can obtain the page address of the jump page from the object database of the target platform; then, the terminal can encode the page address of the jump page to obtain the target resource. Among them, since the target object is a user account logged in on the target platform, the object database of the target platform includes relevant information of the target object on the target platform, such as the page content and page address of the jump page of the target object on the target platform. Accordingly, the terminal can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page. Since the jump page is a page represented by a graphic identification code in the target resource, the terminal encodes the page address of the jump page to obtain the graphic identification code of the jump page, that is, to obtain the target resource. By automatically obtaining the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page, the user can obtain the target resource without manually inputting the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0183] Implementation method 2: The terminal can send a resource generation request to the server based on the object identifier of the target object and the page identifier of the jump page. The server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and the page identifier carried in the resource generation request, encode the page address, and obtain the graphic identification code of the jump page; then, the terminal can receive the target resource returned by the server. Among them, the resource generation request carries the object identifier of the target object and the page identifier of the jump page. Accordingly, in response to the resource generation request, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page, and then encode the page address to obtain the graphic identification code of the jump page, that is, to obtain the target resource. By sending a resource generation request to the server, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page, and the target resource can be obtained without the user manually inputting the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0184] In some embodiments, when the terminal obtains the object identification of at least one sub-object of the target object, the terminal can generate a corresponding target resource for each sub-object. Accordingly, the above step S404 can be replaced by: when the first resource type in the editing area is selected, the terminal generates a target resource corresponding to each sub-object based on the object identification of the target object, the object identification of at least one sub-object, and the page identification of the jump page. Among them, the sub-object is also a user account logged in on the target platform, and the user account corresponding to the sub-object belongs to the user account corresponding to the target object. The object identification of the sub-object can be the object identification of the sub-object. Therefore, after obtaining the object identification of at least one sub-object, the terminal can obtain the page address of the jump page of each sub-object on the target platform from the object database of the target platform based on the object identification of the target object, the object identification of at least one sub-object, and the page identification of the jump page, and then can obtain the target resource corresponding to each sub-object based on the page address of the jump page. The graphic identification code in the target resource is used to jump to the jump page of the sub-object on the target platform.
[0185] In step S405, when the second resource type in the editing area is selected, the terminal generates a target resource based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, and the layout of the target resource is the same as the selected first resource template.
[0186] In the embodiments of the present disclosure, Figure 5As shown, the second resource type is a poster type, that is, it is used to indicate that the target resource is a poster including a graphic identification code. Accordingly, when the selected resource type is the second resource type, it indicates that the terminal needs to generate a target resource including a graphic identification code, that is, it needs to use the first resource template including a graphic identification code area to generate the target resource. Therefore, the terminal can generate the target resource based on the object identifier of the target object on the target platform, the page identifier of the jump page, and the selected first resource template, that is, generate a poster including a graphic identification code. That is, when the poster type is selected, in response to the Figure 5 By triggering the resource generation control 506 shown, the terminal can generate the target resource based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. By generating the target resource based on the first resource template selected by the user and the relevant information configured by the user in the editing area when the resource type of the target resource is selected as the second resource type, the display effect of the target resource can be enriched to meet the diverse needs of the user for the target resource.
[0187] In some embodiments, the target resource generation process in the above step S405 can be implemented only by the terminal, or by the terminal and the server interacting with each other. Accordingly, the terminal can generate the target resource through the following implementation method 1 and implementation method 2.
[0188] Implementation method 1: Based on the object identification of the target object and the page identification of the jump page, the terminal can obtain the page address of the jump page from the object database of the target platform; then, the terminal can encode the page address of the jump page to obtain the graphic identification code of the jump page; finally, the terminal can generate the target resource based on the graphic identification code and the selected first resource template. Among them, since the target object is a user account logged in on the target platform, the object database of the target platform includes relevant information of the target object on the target platform, such as the page content and page address of the jump page of the target object on the target platform. Accordingly, the terminal can obtain the page address of the jump page from the object database of the target platform based on the object identification of the target object and the page identification of the jump page. Since the jump page is a page displayed after scanning the graphic identification code in the target resource, the terminal encodes the page address based on the jump page to obtain the graphic identification code in the target resource. Finally, by adding the graphic identification code to the graphic identification code area of the selected first resource template, the target resource can be obtained. By automatically obtaining the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page, the user can obtain the target resource without manually entering the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0189] Implementation method 2: The terminal can send a resource generation request to the server based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. The server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and page identifier carried in the resource generation request, encode the page address, obtain the graphic identification code of the jump page, and generate the target resource based on the graphic identification code and the first resource template carried in the resource generation request; then, the terminal can receive the target resource returned by the server. Among them, the resource generation request carries the object identifier of the target object, the page identifier of the jump page, and the first resource template selected by the user. Accordingly, in response to the resource generation request, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page, and then can encode the page address to obtain the graphic identification code of the jump page, so that the graphic identification code can be added to the first resource template to obtain the target resource. By sending a resource generation request to the server, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object on the target platform and the page identifier of the jump page. The target resource can be obtained without the user manually entering the page address of the jump page, thereby improving the generation efficiency of the target resource.
[0190] In some embodiments, when the terminal obtains the object identification of at least one sub-object of the target object, the terminal can generate a corresponding target resource for each sub-object. Accordingly, the above step S405 can be replaced by: the terminal generates a target resource corresponding to each sub-object based on the object identification of the target object, the object identification of at least one sub-object, the page identification of the jump page, and the selected first resource template. Among them, the sub-object is also a user account logged in on the target platform, and the user account corresponding to the sub-object belongs to the user account corresponding to the target object. The object identification of the sub-object can be the object identification of the sub-object. Therefore, after obtaining the object identification of at least one sub-object, the terminal can obtain the page address of the jump page of each sub-object on the target platform from the object database of the target platform based on the object identification of the target object, the object identification of at least one sub-object, and the page identification of the jump page, and then can obtain the target resource corresponding to each sub-object based on the page address and the selected first resource template. The graphic identification code in the target resource is used to jump to the jump page of the sub-object on the target platform. By obtaining the object identification of at least one sub-object of the target object, the terminal can batch generate multiple target resources at one time based on the relevant information configured by the user in the editing area, thereby greatly improving the generation efficiency of the target resources.
[0191] The above steps S401-S405 introduce a solution in which the terminal first responds to the selection operation of the first resource template in the template selection area, and then responds to the selection operation of the resource type of the target resource to be generated in the editing area. In some embodiments, the terminal can first respond to the user's selection operation of the resource type in the editing area, and then determine whether to display the template selection area according to the selected resource type. Accordingly, the terminal can generate the target resource through the following implementation method 1 and implementation method 2.
[0192] Implementation method one: In response to the selection operation of the first resource type in the editing area, the terminal can generate the target resource based on the object identifier of the target object and the page identifier of the jump page. The generation process is the same as the above-mentioned step S404 and is not repeated here. By generating the target resource based on the relevant information configured by the user in the editing area when the resource type of the target resource is selected as the first resource type, the terminal can directly generate a graphic identification code when the user selects the first resource type, without further providing the user with a resource template, thereby improving the generation efficiency of the target resource.
[0193] Implementation method 2: In response to the selection operation of the second resource type in the editing area, the terminal can display a template selection area in the resource editing interface, and the template selection area displays multiple first resource templates, and the first resource template includes a graphic identification code area; then, in response to the selection operation of any first resource template among the multiple first resource templates, the terminal can display the selected first resource template in the preview area; finally, the terminal can generate a target resource based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template, and the layout of the target resource is the same as the selected first resource template. Among them, the second resource type is a poster type, that is, the target resource is a poster including a graphic identification code. When the second resource type in the editing area is selected, it indicates that the terminal needs to generate a target resource including a graphic identification code, that is, it is necessary to use a resource template including a graphic identification code area to generate the target resource, so the terminal can display a template selection area in the resource editing interface, and display multiple first resource templates available for user selection in the template selection area. When the user selects any first resource template, the terminal can generate a target resource with the same layout as the first resource template based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. By providing the user with multiple first resource templates when the resource type of the target resource is selected as the second resource type, the terminal can generate the target resource based on the first resource template selected by the user and the relevant information configured by the user in the editing area, thereby enriching the display effect of the target resource and meeting the user's diverse needs for the target resource.
[0194] In step S406, the terminal displays the target resource in the preview area.
[0195] In the embodiment of the present disclosure, the process of the terminal displaying the target resource in the preview area is the same as the above step S203, which will not be repeated here.
[0196] In some embodiments, after the target resource is generated, the terminal can automatically download the target resource and save it to the terminal. By automatically downloading the target resource, it is convenient for the user to process the locally stored target resource without the need for the user to manually download it, thereby improving the user's operating experience.
[0197] The present disclosure implements a resource generation method, which enables the user to configure the relevant information required for generating the target resource through the resource editing interface by displaying the resource editing interface provided by the target platform to the user, thereby enabling the terminal to automatically generate the target resource required by the user based on the object identifier of the target object on the target platform, the page identifier of the jump page and the selected first resource template, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource.
[0198] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0199] The following example takes the resource template selected by the user as the second resource template. Figure 3 Process 2 and Figure 7 The flowchart shown further illustrates the resource generation method provided by the present disclosure. Figure 7 is a flow chart of another resource generation method according to an exemplary embodiment. Figure 7 , the method is executed by a terminal, and the method includes:
[0200] In step S701, in response to the triggering operation on the resource generation entrance, the terminal displays a resource editing interface, the resource editing interface includes a preview area, an editing area and a template selection area, the template selection area displays multiple second resource templates, the second resource template includes an object image area and a graphic identification code area.
[0201] In the disclosed embodiment, Figure 8 FIG. 1 is a schematic diagram of another resource editing interface according to an exemplary embodiment. Figure 8As shown in (a), in addition to the editing area 801 and the preview area 802, the resource editing interface also displays a template selection area 803. The model selection area displays a plurality of second resource templates for the user to select. The second resource template is a resource template including an item image area and a graphic identification code area. The item image area is the area in the second resource template used to display the item image. The item image area may display a default item image, or may not display a default item image, that is, a blank area, and the embodiments of the present disclosure are not limited to this. The display style of the default graphic identification code, the display style of the default item image, and the layout style of the item image area and the graphic identification code area displayed in different second resource templates may be the same or different, and the embodiments of the present disclosure are not limited to this.
[0202] In step S702, in response to a selection operation on any second resource template among a plurality of second resource templates, the terminal displays the selected second resource template in a preview area.
[0203] In the embodiment of the present disclosure, in order to facilitate users to view the resource templates displayed in the template selection area, the preview area can display the resource template selected by the user in addition to the target resource to be generated. Figure 8 As shown in (a), when any second resource template among multiple second resource templates in the template selection area 803 is selected, the terminal can respond to the selection operation of the second resource template and display the selected second resource template, that is, "Template A", in the preview area 802.
[0204] In step S703, in response to the information configuration operation in the editing area, the terminal obtains the object identifier of the target object on the target platform and the page identifier of the jump page.
[0205] In the embodiment of the present disclosure, the process in which the terminal obtains the object identifier of the target object on the target platform and the page identifier of the jump page is the same as the above step S303, which will not be repeated here.
[0206] In some embodiments, the target object corresponds to multiple sub-objects. Accordingly, in response to the information configuration operation in the editing area, the terminal can also obtain the object identification of at least one sub-object. The manner in which the terminal obtains the object identification of at least one sub-object is the same as described above. Figure 3 The acquisition method in the illustrated embodiment is similar and will not be described in detail here.
[0207] It should be noted that the user can select multiple candidate item objects displayed in the editing area to obtain the item image included in the target resource. Or the user can manually input the item image included in the target resource in the editing area. Accordingly, in the case where the user selects multiple candidate item objects displayed in the editing area, the terminal can execute the following steps S704-S705. In the case where the user manually inputs the item image, the terminal can execute the following step S706.
[0208] In step S704, when any second resource template is selected from the template selection area, the terminal displays a plurality of candidate item objects in the editing area based on the object identifier of the target object, where the candidate item objects are item objects corresponding to the target object.
[0209] In the embodiments of the present disclosure, Figure 8 As shown in (a), since the second resource template includes an item image area, when any second resource template in the template selection area is selected, the terminal can obtain multiple item objects "item object A, item object B, item object C" corresponding to the target object from the object database of the target platform based on the object identifier of the target object entered by the user in the editing area 801, and display them as candidate item objects in the editing area 801 for user selection.
[0210] In step S705 , in response to a selection operation on any candidate object among a plurality of candidate object, the terminal acquires an object image of the selected candidate object.
[0211] In the embodiment of the present disclosure, when any candidate item object in the editing area is selected, the terminal can obtain the item image of the selected candidate item object from the object database of the target platform. Optionally, after obtaining the item image of the candidate item object, the terminal can display a preview image of the candidate item object in the editing area for the user to view. By automatically displaying multiple item objects corresponding to the target object in the editing area when the user selects the second resource template, it is convenient for the user to quickly select the item object in the target resource to be generated, and then the terminal can quickly and accurately obtain the item image in the target resource to be generated, thereby improving the generation efficiency of the target resource.
[0212] In step S706, when any second resource template is selected from the template selection area, the terminal acquires the object image in response to the image input operation in the editing area.
[0213] In the embodiments of the present disclosure, Figure 8As shown in (b), when any second resource template in the template selection area is selected, the terminal can display an image input control 805 in the editing area 804. In response to the user's triggering operation on the image input control 805, the terminal can display multiple item images to be uploaded. In response to the user's selection operation on any item image, the terminal can obtain the selected item image. By obtaining the item image manually input by the user as the item image in the target resource to be generated, the user can freely set the item image in the target resource to be generated, thereby meeting the user's diverse needs for the target resource.
[0214] The above steps S704-S705 are to obtain the item image based on the object identifier of the target object, and the above step S706 is to obtain the item image based on the image input operation of the user in the editing area. In some embodiments, the terminal can obtain the item image displayed in the target resource through the image generation model. Accordingly, the terminal can obtain the item image through the following implementation method 1 and implementation method 2.
[0215] Implementation method 1: The terminal generates image description information based on the object image and the object identifier of the target object, and the image description information is used to describe the target image to be generated; then, the terminal generates the target image based on the image description information. Among them, the terminal can obtain detailed information of the target object from the object database of the target platform based on the object identifier of the target object, and then can generate image description information based on the detailed information of the target object and the object object in the object image. Then the terminal can input the image description information into the image generation model for processing to obtain a target image showing the content described by the image description information. The image generation model can be an artificial intelligence model such as a text-generated graph model based on natural language processing or a graph-generated graph model based on image processing. The embodiment of the present disclosure does not limit the specific type of the image generation model. By processing the object identifier of the object image and the target object through the image generation model, the target image with the content described by the above image description information can be quickly and accurately generated according to the image description information contained in the object image and the object identifier of the target object, which can not only meet the diverse needs of users for the target image, but also improve the quality of the target resources generated based on the target image.
[0216] For example, taking the target object as a merchant settled in the target platform, the object identifier can be a merchant identifier, and the terminal can obtain detailed information about the merchant based on the merchant identifier, such as whether the merchant belongs to the catering industry or the non-catering industry, and whether the shooting perspective of the image of the item in the merchant's store is a bird's-eye view or a close-up perspective. Taking the hot pot as an example, the terminal can generate a description information such as "a steaming Sichuan hot pot covered with spicy oil is placed on the table" based on the above detailed information and the item object.
[0217] Implementation method 2: The terminal sends an image generation request to the server based on the object image and the object identifier of the target object. The server is used to generate image description information based on the object image and the object identifier carried in the image generation request, and generate the target image based on the image description information. The image description information is used to describe the target image to be generated; then, the server can receive the target image returned by the server. Among them, the image generation request carries the object image and the object identifier of the target object. The implementation process of the server generating the target image based on the object image and the object identifier of the target object in response to the image generation request is the same as the above implementation method, which will not be repeated here. By sending an image generation request to the server, the server can process the object identifier of the object image and the target object through the image generation model, and then can quickly and accurately generate the target image with the content described by the above image description information according to the image description information contained in the object image and the object identifier of the target object, which can not only meet the diverse needs of users for target images, but also improve the quality of target resources generated based on target images.
[0218] For example, Fig. 9 FIG. 1 is a schematic diagram showing an image generation process according to an exemplary embodiment. Fig. 9 As shown, after selecting the second resource template, in response to the selection operation of the default object image displayed in the second resource template, the terminal can display a first prompt message, prompting the user whether AI is required to generate an object image. In response to the user's confirmation operation on the prompt message, the terminal can obtain image description information through the image generation model based on the object identifier and object image input by the user. The terminal can also display a second prompt message, prompting the user whether the image description information needs to be adjusted. If no adjustment is required, the terminal can generate an image directly based on the image description information. If adjustment is required, the terminal can generate an image based on the adjusted image description information. In addition, in response to the selection operation of the default text content displayed in the second resource template, the user can modify the default text content.
[0219] In step S707, the terminal generates a target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template. The layout of the target resource is the same as the selected second resource template. The target resource includes an item image and a graphic identification code. The graphic identification code is used to jump to the jump page on the target platform.
[0220] In an embodiment of the present disclosure, the terminal can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page. Then the terminal can encode the page address of the jump page to obtain the graphic identification code of the jump page. Finally, by adding the graphic identification code and the object image to the corresponding areas in the second resource template respectively, the target resource can be obtained. Alternatively, the terminal can send a resource generation request to the server based on the object identifier of the target object, the page identifier of the jump page, the object image and the selected second resource template. In response to the resource generation request, the server can obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page, and then can encode the page address to obtain the graphic identification code of the jump page, so that the graphic identification code and the object image can be added to the second resource template to obtain the target resource. The terminal can receive the target resource returned by the server.
[0221] In some embodiments, after the terminal obtains the target image, the above step S707 can be replaced by: the terminal generates the target resource based on the object identifier of the target object, the page identifier of the jump page, the target image and the second resource template. The generation process is the same as the above step S707 and will not be repeated here.
[0222] In some embodiments, when the terminal obtains the object identifier of at least one sub-object of the target object, the terminal can generate a corresponding target resource for each sub-object. Accordingly, the above step S707 can be replaced by: based on the object identifier of the target object, the object identifier of at least one sub-object, the page identifier of the jump page, the item image and the selected second resource template, generate a target resource corresponding to each sub-object. This generation process is the same as the above Figure 3 The process of "generating the target resource corresponding to each sub-object based on the object identifier of the target object, the object identifier of at least one sub-object, the page identifier of the jump page and the selected first resource template" in the illustrated embodiment is similar and will not be repeated here.
[0223] In step S708, the terminal displays the target resource in the preview area.
[0224] In the embodiment of the present disclosure, the process of the terminal displaying the target resource in the preview area is the same as the above step S203, which will not be repeated here.
[0225] The present disclosure implements a resource generation method, which enables the user to configure the relevant information required for generating the target resource through the resource editing interface by displaying the resource editing interface provided by the target platform to the user, thereby enabling the terminal to automatically generate the target resource required by the user based on the object identifier of the target object on the target platform, the page identifier of the jump page and the selected second resource template, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource.
[0226] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0227] Fig.10 is a block diagram of a resource generation device according to an exemplary embodiment. Fig.10 The device includes: a first display unit 1001, a first acquisition unit 1002 and a second display unit 1003.
[0228] The first display unit 1001 is configured to display a resource editing interface in response to a trigger operation on a resource generation portal, where the resource editing interface includes a preview area and an editing area;
[0229] The first acquisition unit 1002 is configured to acquire an object identifier of a target object on a target platform and a page identifier of a jump page in response to an information configuration operation in the editing area;
[0230] The second display unit 1003 is configured to display the target resource in the preview area. The target resource is generated based on the object identifier of the target object and the page identifier of the jump page. The target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
[0231] In some embodiments, Fig.11 is a block diagram of another resource generation device according to an exemplary embodiment. Fig.11 , the device further comprises:
[0232] The first generating unit 1004 is configured to generate a target resource based on an object identifier of the target object and a page identifier of a jump page in response to a selection operation on a first resource type in the editing area, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
[0233] In some embodiments, see Fig.11 , the device further comprises:
[0234] The third display unit 1005 is configured to display a template selection area in the resource editing interface in response to a selection operation of the second resource type in the editing area, wherein the template selection area displays a plurality of first resource templates, the first resource templates including a graphic identification code area, and the second resource type is used to indicate that the target resource is a poster including a graphic identification code;
[0235] The third display unit 1005 is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0236] The first generating unit 1004 is further configured to generate a target resource based on the object identifier of the target object, the page identifier of the jump page and the selected first resource template, wherein the layout of the target resource is the same as the selected first resource template.
[0237] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of first resource templates, the first resource template includes a graphic identification code area;
[0238] The third display unit 1005 is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0239] The first generating unit 1004 is further configured to generate a target resource in response to a selection operation of the first resource type in the editing area based on the object identifier of the target object and the page identifier of the jump page, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
[0240] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of first resource templates, the first resource template includes a graphic identification code area;
[0241] The third display unit 1005 is further configured to, in response to a selection operation on any first resource template among the plurality of first resource templates, display the selected first resource template in the preview area;
[0242] The first generation unit 1004 is also configured to generate a target resource in response to a selection operation on the second resource type in the editing area, based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template, wherein the layout of the target resource is the same as the selected first resource template, and the second resource type is used to indicate that the target resource is a poster including a graphic identification code.
[0243] In some embodiments, the first generation unit 1004 is also configured to obtain the page address of the jump page from the object database of the target platform based on the object identifier of the target object and the page identifier of the jump page; encode the page address of the jump page to obtain a graphic identification code of the jump page; and generate the target resource based on the graphic identification code and the selected first resource template.
[0244] In some embodiments, the first generation unit 1004 is also configured to send a resource generation request to the server based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. The server is used to obtain the page address of the jump page from the object database of the target platform based on the object identifier and the page identifier carried in the resource generation request, encode the page address to obtain the graphic identification code of the jump page, and generate the target resource based on the graphic identification code and the first resource template carried in the resource generation request; and receive the target resource returned by the server.
[0245] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of second resource templates, the second resource template includes an item image area and a graphic identification code area;
[0246] Continue to see Fig.11 , the device further comprises:
[0247] The fourth display unit 1006 is configured to display a plurality of candidate item objects in the editing area based on the object identifier of the target object when any second resource template is selected from the template selection area, the candidate item objects being item objects corresponding to the target object;
[0248] The second acquisition unit 1007 is configured to, in response to a selection operation on any candidate object among the plurality of candidate object objects, acquire an object image of the selected candidate object;
[0249] The first generating unit 1004 is further configured to generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, wherein the layout of the target resource is the same as the selected second resource template.
[0250] In some embodiments, the resource editing interface further includes a template selection area, the template selection area displays a plurality of second resource templates, the second resource template includes an item image area and a graphic identification code area;
[0251] The second acquisition unit 1007 is further configured to acquire the object image in response to an image input operation in the editing area when any second resource template is selected from the template selection area;
[0252] The first generating unit 1004 is further configured to generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, wherein the layout of the target resource is the same as the selected second resource template.
[0253] In some embodiments, see Fig.11 , the device further comprises:
[0254] The second generating unit 1008 is configured to generate image description information based on the object image and the object identifier of the target object, where the image description information is used to describe the target image to be generated; and generate the target image based on the image description information;
[0255] The first generating unit 1004 is further configured to generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the target image and the second resource template.
[0256] In some embodiments, see Fig.11 , the device further comprises:
[0257] The sending unit 1009 is configured to send an image generation request to the server based on the object image and the object identifier of the target object, and the server is used to generate image description information based on the object image and the object identifier carried in the image generation request, and generate a target image based on the image description information, where the image description information is used to describe the target image to be generated;
[0258] The receiving unit 1010 is configured to receive the target image returned by the server;
[0259] The first generating unit 1004 is further configured to generate a target resource based on the object identifier of the target object, the page identifier of the jump page, the target image and the second resource template.
[0260] In some embodiments, see Fig.11 , the device further comprises:
[0261] The third acquisition unit 1011 is configured to acquire an object identifier of at least one sub-object of the target object;
[0262] The first generating unit 1004 is further configured to generate a target resource corresponding to each sub-object based on the object identifier of the target object, the object identifier of at least one sub-object, and the page identifier of the jump page.
[0263] In some embodiments, the third acquisition unit 1011 is configured to display multiple candidate objects in the editing area based on the object identifier of the target object, where the candidate objects are sub-objects of the target object; and in response to a selection operation of at least one candidate object among the multiple candidate objects, acquire the object identifier of the selected at least one candidate object.
[0264] In some embodiments, the third acquisition unit 1011 is configured to verify the at least one object identifier based on the object identifier of the target object in response to an input operation on the at least one object identifier in the editing area; and acquire the at least one object identifier if the verification passes.
[0265] In some embodiments, the third acquisition unit 1011 is further configured to display a prompt message when the verification fails, where the prompt message is used to prompt that the object corresponding to the at least one object identifier is not a sub-object of the target object.
[0266] In some embodiments, the resource editing interface also includes a template selection area, and the second display unit 1004 is further configured to switch the multiple first resource templates displayed in the template selection area to multiple second resource templates in response to a category switching operation in the template selection area when multiple first resource templates are displayed in the template selection area, wherein the first resource template includes a graphic identification code area, and the second resource template includes an object image area and a graphic identification code area.
[0267] The present disclosure implements a resource generation device, which displays a resource editing interface provided by a target platform to the user, so that the user can configure the relevant information required for generating the target resource through the resource editing interface, and then the terminal can automatically generate the target resource required by the user based on the object identifier of the target object on the target platform and the page identifier of the jump page input by the user in the resource editing interface, without the need for the designer of the target platform to manually generate the target resource, thereby reducing the manpower cost required for generating the target resource and improving the generation efficiency of the target resource.
[0268] It should be noted that the resource generation device provided in the above embodiment only uses the division of the above functional units as an example when generating resources. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the terminal is divided into different functional units to complete all or part of the functions described above. In addition, the resource generation device provided in the above embodiment and the resource generation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0269] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0270] Fig.12 FIG. 1 is a block diagram of a terminal according to an exemplary embodiment. Fig.12 As shown, the terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4), a laptop computer or a desktop computer. The terminal 1200 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0271] Typically, the terminal 1200 includes: a processor 1201 and a memory 1202 .
[0272] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0273] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one program code, which is used to be executed by the processor 1201 to implement the resource generation method provided in the method embodiment of the present disclosure.
[0274] In some embodiments, the terminal 1200 may also optionally include: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, the memory 1202 and the peripheral device interface 1203 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1203 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207, a positioning assembly 1208 and a power supply 1209.
[0275] The peripheral device interface 1203 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0276] The radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1204 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1204 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1204 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0277] The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal can be input to the processor 1201 as a control signal for processing. At this time, the display screen 1205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1205 can be one, and the front panel of the terminal 1200 is set; in other embodiments, the display screen 1205 can be at least two, which are respectively set on different surfaces of the terminal 1200 or are folded; in some other embodiments, the display screen 1205 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1200. Even, the display screen 1205 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0278] The camera assembly 1206 is used to capture images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0279] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1201 for processing, or input them into the radio frequency circuit 1204 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1200. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1207 may also include a headphone jack.
[0280] The power supply 1208 is used to power various components in the terminal 1200. The power supply 1208 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1208 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0281] In some embodiments, the terminal 1200 further includes one or more sensors 129 , including but not limited to: an acceleration sensor 1210 , a gyroscope sensor 1211 , a pressure sensor 1212 , an optical sensor 1213 , and a proximity sensor 1214 .
[0282] The acceleration sensor 1210 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1200. For example, the acceleration sensor 1210 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1201 can control the display screen 1205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1210. The acceleration sensor 1210 can also be used for collecting game or user motion data.
[0283] The gyro sensor 1211 can detect the body direction and rotation angle of the terminal 1200, and the gyro sensor 1211 can cooperate with the acceleration sensor 1210 to collect the user's 3D actions on the terminal 1200. The processor 1201 can implement the following functions based on the data collected by the gyro sensor 1211: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0284] The pressure sensor 1212 can be set on the side frame of the terminal 1200 and / or the lower layer of the display screen 1205. When the pressure sensor 1212 is set on the side frame of the terminal 1200, it can detect the user's holding signal of the terminal 1200, and the processor 1201 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1212. When the pressure sensor 1212 is set on the lower layer of the display screen 1205, the processor 1201 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1205. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0285] The optical sensor 1213 is used to collect the ambient light intensity. In one embodiment, the processor 1201 can control the display brightness of the display screen 1205 according to the ambient light intensity collected by the optical sensor 1213. Optionally, when the ambient light intensity is high, the display brightness of the display screen 1205 is increased; when the ambient light intensity is low, the display brightness of the display screen 1205 is decreased. In another embodiment, the processor 1201 can also dynamically adjust the shooting parameters of the camera assembly 1206 according to the ambient light intensity collected by the optical sensor 1213.
[0286] The proximity sensor 1214, also called a distance sensor, is disposed on the front panel of the terminal 1200. The proximity sensor 1214 is used to collect the distance between the user and the front of the terminal 1200. In one embodiment, when the proximity sensor 1214 detects that the distance between the user and the front of the terminal 1200 is gradually decreasing, the processor 1201 controls the display screen 1205 to switch from the screen-on state to the screen-off state; when the proximity sensor 1214 detects that the distance between the user and the front of the terminal 1200 is gradually increasing, the processor 1201 controls the display screen 1205 to switch from the screen-off state to the screen-on state.
[0287] Those skilled in the art will understand that Fig.12 The structure shown in the figure does not constitute a limitation on the terminal 1200, and the terminal 1200 may include more or fewer components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0288] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1202 including instructions, and the instructions can be executed by the processor 1201 of the terminal 1200 to complete the resource generation method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0289] A computer program product comprises a computer program, and when the computer program is executed by a processor, the resource generation method is implemented.
[0290] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0291] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A resource generation method, characterized in that: The method comprises: In response to a trigger operation on a resource generation portal, a resource editing interface is displayed, wherein the resource editing interface includes a preview area and an editing area; In response to the information configuration operation in the editing area, obtaining an object identifier of a target object on a target platform and a page identifier of a jump page; The target resource is displayed in the preview area, the target resource is generated based on the object identifier of the target object and the page identifier of the jump page, the target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
2. The resource generation method according to claim 1, characterized in that: The method further comprises: In response to a selection operation of a first resource type in the editing area, the target resource is generated based on an object identifier of the target object and a page identifier of the jump page, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
3. The resource generation method according to claim 1, characterized in that: The method further comprises: In response to a selection operation of a second resource type in the editing area, a template selection area is displayed in the resource editing interface, wherein the template selection area displays a plurality of first resource templates, wherein the first resource templates include a graphic identification code area, and the second resource type is used to indicate that the target resource is a poster including a graphic identification code; In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area; The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. The layout of the target resource is the same as that of the selected first resource template.
4. The resource generation method according to claim 1, characterized in that: The resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of first resource templates, wherein the first resource template includes a graphic identification code area; The method further comprises: In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area; In response to a selection operation of a first resource type in the editing area, the target resource is generated based on an object identifier of the target object and a page identifier of the jump page, wherein the first resource type is used to indicate that the target resource is a graphic identification code.
5. The resource generation method according to claim 1, characterized in that: The resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of first resource templates, wherein the first resource template includes a graphic identification code area; The method further comprises: In response to a selection operation on any first resource template among the plurality of first resource templates, displaying the selected first resource template in the preview area; In response to a selection operation on a second resource type in the editing area, the target resource is generated based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template. The layout of the target resource is the same as the selected first resource template, and the second resource type is used to indicate that the target resource is a poster including a graphic identification code.
6. The resource generation method according to claim 3 or 5, characterized in that: The generating the target resource based on the object identifier of the target object, the page identifier of the jump page, and the selected first resource template includes: Based on the object identifier of the target object and the page identifier of the jump page, acquiring the page address of the jump page from the object database of the target platform; Encoding the page address of the jump page to obtain a graphic identification code of the jump page; The target resource is generated based on the graphic identification code and the selected first resource template.
7. The resource generation method according to claim 1, characterized in that: The resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of second resource templates, wherein the second resource template includes an item image area and a graphic identification code area; The method further comprises: In the case where any second resource template is selected from the template selection area, a plurality of candidate item objects are displayed in the editing area based on the object identifier of the target object, the candidate item objects being item objects corresponding to the target object; In response to a selection operation on any candidate object among the plurality of candidate object, acquiring an object image of the selected candidate object; The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, and the layout of the target resource is the same as that of the selected second resource template.
8. The resource generation method according to claim 1, characterized in that: The resource editing interface further includes a template selection area, wherein the template selection area displays a plurality of second resource templates, wherein the second resource template includes an item image area and a graphic identification code area; The method further comprises: When any second resource template is selected from the template selection area, in response to an image input operation in the editing area, acquiring an object image; The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template, and the layout of the target resource is the same as that of the selected second resource template.
9. The resource generation method according to claim 7 or 8, characterized in that: The method further comprises: generating image description information based on the object image and the object identifier of the target object, wherein the image description information is used to describe the target image to be generated; Based on the image description information, generating the target image; The generating the target resource based on the object identifier of the target object, the page identifier of the jump page, the item image and the selected second resource template includes: The target resource is generated based on the object identifier of the target object, the page identifier of the jump page, the target image, and the second resource template.
10. The resource generation method according to claim 1, characterized in that: The method further comprises: Obtaining an object identifier of at least one sub-object of the target object; Based on the object identifier of the target object, the object identifier of the at least one sub-object, and the page identifier of the jump page, a target resource corresponding to each sub-object is generated.
11. The resource generation method according to claim 10, characterized in that: The obtaining the object identifier of at least one sub-object of the target object includes: Based on the object identifier of the target object, displaying a plurality of candidate objects in the editing area, the candidate objects being sub-objects of the target object; In response to a selection operation on at least one candidate object among the multiple candidate objects, an object identifier of the selected at least one candidate object is obtained.
12. The resource generation method according to claim 10, characterized in that: The obtaining the object identifier of at least one sub-object of the target object includes: In response to an input operation on at least one object identifier in the editing area, verifying the at least one object identifier based on the object identifier of the target object; If the verification passes, the at least one object identifier is obtained.
13. The resource generation method according to claim 12, characterized in that: The method further comprises: If the verification fails, a prompt message is displayed, wherein the prompt message is used to prompt that the object corresponding to the at least one object identifier is not a sub-object of the target object.
14. The resource generation method according to claim 1, characterized in that: The resource editing interface also includes a template selection area, and the method further includes: In a case where a plurality of first resource templates are displayed in the template selection area, in response to a category switching operation in the template selection area, the plurality of first resource templates displayed in the template selection area are switched to a plurality of second resource templates, wherein the first resource template includes a graphic identification code area, and the second resource template includes an object image area and a graphic identification code area.
15. A resource generation device, characterized in that: The device comprises: A first display unit is configured to display a resource editing interface in response to a trigger operation on a resource generation portal, wherein the resource editing interface includes a preview area and an editing area; A first acquisition unit is configured to acquire an object identifier of a target object on a target platform and a page identifier of a jump page in response to an information configuration operation in the editing area; The second display unit is configured to display a target resource in the preview area, wherein the target resource is generated based on an object identifier of the target object and a page identifier of the jump page, and the target resource includes a graphic identification code, and the graphic identification code is used to jump to the jump page on the target platform.
16. A terminal, characterized in that: The terminal comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the resource generation method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the resource generation method according to any one of claims 1 to 14.
18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the resource generation method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Application program running monitoring method, device, computer equipment and storage medium
CN108363587A
Information sharing method and device, terminal and storage medium
CN109597951A
Picture editing method and device, computer equipment and storage medium
CN110910475A
Information display method and system, mobile terminal, server device and electronic device
CN111031521A
Display picture generation method and device and electronic equipment
CN111950663A
