Image generation method, device, electronic device and storage medium

By obtaining the network address information of the target server device corresponding to multiple image display methods, replacing the initial page address information of the target page, and generating multiple target page address information, solving the problem of slow access to the target page and achieving server performance improvement and load balancing.

CN114692054BActive Publication Date: 2025-05-13BEIJING BAIJIA HULIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210410035.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2025-05-13
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

In the prior art, the page address information of the target page is single, resulting in a user only accessing the target page through one server, resulting in a degradation of server performance and slowdown in access.

Method used

By obtaining the device network address information of the target server corresponding to the multiple image display methods, replacing the initial page address information of the target page, and generating multiple target page address information, thereby realizing access to multiple servers corresponding to one target page.

Benefits of technology

Reduce the impact of a single address on target page access, improve server performance and target page access speed, and achieve load balancing of target servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692054B_ABST
    Figure CN114692054B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, apparatus, electronic device and storage medium for image generation, the method comprising: obtaining initial page address information for accessing a target page; obtaining device network address information set for multiple image display modes; updating the initial page address information according to the device network address information corresponding to each image display mode, and obtaining the target page address information corresponding to each image display mode, wherein the target page address information is used to access the target page; based on each target page address information, generating a target image corresponding to each image display mode, so as to achieve one target page corresponding to multiple device network address information, thereby reducing the impact of a single address on accessing the target page, and at the same time, improving the performance of the server and the access speed of the target page.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and specifically to a method, device, electronic device and storage medium for generating an image. Background Art

[0002] With the development of mobile Internet technology, online marketing and promotion have become an indispensable marketing method.

[0003] When promoting a product, a target page is usually generated for the product to be promoted, and the page address information of the target page is synthesized with an image such as a poster, so that users can access the target page through the page address information in the synthesized image.

[0004] However, due to the single page address information, users can usually only access the target page through one server. When the number of user visits is large, the performance of the server will be reduced, thereby affecting the access speed of the target page. Summary of the invention

[0005] Embodiments of the present application provide a method, apparatus, electronic device and storage medium for image generation. Through some embodiments of the present application, at least one target page can correspond to the device network address information of multiple servers, thereby reducing the impact of a single address on accessing the target page. At the same time, it can improve the performance of the server and the access speed of the target page.

[0006] In a first aspect, an embodiment of the present application provides a method for image generation, the method comprising: obtaining initial page address information for accessing a target page; obtaining device network address information of a target server respectively set for a plurality of image display modes; updating the initial page address information according to the device network address information corresponding to each image display mode, to obtain target page address information corresponding to each image display mode, wherein the target page address information is used to access the target page through the target server; based on each target page address information, generating a target image corresponding to each image display mode.

[0007] Therefore, the method provided in the embodiment of the present application, which uses device network address information set for multiple image display modes to replace the initial page address information of the target page, can achieve one target page corresponding to multiple device network address information, thereby reducing the impact of a single address on accessing the target page. At the same time, it can improve the performance of the server and the access speed of the target page.

[0008] In combination with the first aspect, in one implementation, the image display method is determined based on at least one of the image display time, the product promotion method, and the image content of the target image.

[0009] Therefore, by combining any one or more of the image display time, product promotion method, and image content of the target image, a variety of display methods suitable for different display scenarios can be obtained, and different target server device network address information can be configured for different display methods, so that users who obtain target page address information from different display methods can access the target page through different target servers, thereby achieving balanced control of the access process of each target server.

[0010] In combination with the first aspect, in one implementation, after generating the target images corresponding to each image display mode based on each target page address information, it further includes: using each image display mode to display the corresponding target image.

[0011] In combination with the first aspect, in one embodiment, after generating the target images corresponding to each image display method based on the address information of each target page, it also includes: obtaining the load of each target server; adjusting the correspondence between the image display method and the device network address information according to the load of each target server, and executing the step of obtaining the initial page address information for accessing the target page.

[0012] In combination with the first aspect, in one embodiment, the correspondence between the image display method and the device network address information is adjusted according to the load of each server, including: filtering out a first target server whose load is higher than a first load threshold from each target server; filtering out a second target server whose load is lower than a second load threshold from each target server; and establishing a correspondence between the image display method of the first target server and the device network address information of the second target server.

[0013] Therefore, the embodiment of the present application compares the load of the target server with the first load threshold and the second load threshold, so as to adjust the correspondence between the image display method and the device network address information according to the comparison result, thereby achieving balanced scheduling of access resources.

[0014] In combination with the first aspect, in one embodiment, based on the address information of each target page, a target image corresponding to each image display mode is generated respectively, including: based on each target page address information, a corresponding target access code is generated respectively, wherein the target access code is at least one of a one-dimensional code and a two-dimensional code; the initial image is synthesized with each target access code respectively to obtain target images corresponding to multiple image display modes.

[0015] Therefore, the embodiment of the present application synthesizes the target access code into the initial image to obtain the target image, so that the target page address information can be displayed to the user through the target image, thereby allowing the user to access the target page through the target page address information.

[0016] In combination with the first aspect, in one implementation, it further includes: displaying corresponding target images including target access codes respectively through various image display modes, where the target access codes are used to access target pages.

[0017] In the above embodiment, different target images can be displayed through different image display methods, so that users can obtain different target images through different display methods, and then can access target pages through different servers through different target images.

[0018] In a second aspect, an embodiment of the present application provides an image generation device, the device comprising: a first acquisition module, configured to acquire initial page address information for accessing a target page; a second acquisition module, configured to acquire device network address information of a target server respectively set for a plurality of image display modes; an information replacement module, configured to replace the initial page address information respectively according to the device network address information corresponding to each image display mode, to obtain the target page address information corresponding to each image display mode, wherein the target page address information is used to access the target page through the target server; an image generation module, configured to generate a target image corresponding to each image display mode respectively based on each target page address information.

[0019] In conjunction with the second aspect, in one implementation, the image display method is determined based on at least one of the image display time, the product promotion method, and the image content of the target image.

[0020] In combination with the second aspect, in one implementation, the image generation module is further configured to: use various image display modes to display corresponding target images respectively.

[0021] In combination with the second aspect, in one embodiment, it also includes a judgment module, which is configured to: obtain the load of each target server; adjust the correspondence between the image display method and the device network address information according to the load of each target server, and execute the step of obtaining the initial page address information for accessing the target page.

[0022] In combination with the second aspect, in one embodiment, the judgment module is further configured to: filter out a first target server whose load is higher than a first load threshold from each target server; filter out a second target server whose load is lower than a second load threshold from each target server; and establish a correspondence between the image display method of the first target server and the device network address information of the second target server.

[0023] In combination with the second aspect, in one embodiment, the image generation module is further configured to: generate a corresponding target access code based on each target page address information, wherein the target access code is at least one of a one-dimensional code and a two-dimensional code; synthesize the initial image with each target access code respectively to obtain target images corresponding to multiple image display methods.

[0024] In combination with the second aspect, in one implementation, the image generation module is further configured to: display corresponding target images including target access codes respectively through various image display modes, where the target access codes are used to access the target page.

[0025] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus; the processor is connected to the memory via the bus, and the memory stores computer-readable instructions, which, when executed by the processor, are used to implement a method as in the first aspect and any one of its implementations.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a server, the method of the first aspect and any one of its implementations is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 An implementation flow of an image generation method shown in an embodiment of the present application;

[0028] Figure 2 A process of a specific embodiment of a method for generating an image shown in an embodiment of the present application;

[0029] Figure 3 A server allocation method shown in an embodiment of the present application;

[0030] Figure 4 A device for generating an image shown in an embodiment of the present application;

[0031] Figure 5 An electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0033] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0034] Terminal device: can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system device, a personal navigation device, a personal digital assistant, an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of interface for the user (such as a wearable device), etc.

[0035] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.

[0036] Two-dimensional code (i.e., the target access code in the embodiment of the present application): A two-dimensional barcode / two-dimensional code (2-dimensional barcode) is a black and white graphic that records data symbol information using certain specific geometric shapes distributed in a plane (two-dimensional direction) according to a certain rule.

[0037] HTML page (i.e., the target page in the embodiment of the present application): a page created using HyperText Markup Language (HTML), which is the most common type of HTML page created for event promotion and operation, especially in the era of rapid development of mobile Internet, and in various forms, including invitations, greeting cards, test questions, etc. Different from the simple static advertising image dissemination in the past, today's HTML event operation page needs to have a stronger interactive, higher quality, and more topical design to promote user sharing and dissemination.

[0038] Uniform Resource Locator (URL) (i.e., target page address information in the embodiments of the present application): the unique access address of a web page on the Internet, usually composed of three parts: protocol, domain name, and path.

[0039] Domain name registration: Website domain name registration requires the website owner to apply for registration with the relevant department in accordance with regulations for future reference. The main types of registration include ICP registration and public security bureau registration.

[0040] Goole zixing third-party library: a Java language developed third-party library that supports various barcode, QR code generation, parsing and other functions.

[0041] The method steps in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0042] The embodiments of the present application can be applied to a variety of application scenarios for generating target images for product promotion. For example, when a merchant promotes a product, a QR code is generated based on the page address information of the target page used by the merchant to promote the product, and a poster (i.e., a target image) is generated based on the QR code. Customers can obtain the page address information by scanning the QR code (i.e., the target access code) in the poster, and can then access the target page that displays the promotional content of the product through the above page address information.

[0043] Taking the field of product promotion as an example, the problems existing in the related technology are exemplified. Specifically, when promoting a product, a target page is usually generated for the product to be promoted, and the page address information of the target page is synthesized with an image such as a poster, so that the user can access the target page through the page address information in the synthesized image. However, due to the single page address information, the user can usually only access the target page through one server. When the number of user visits is large, the performance of the server will be reduced, thereby affecting the access speed of the target page.

[0044] At least to solve the above problem, some embodiments of the present application provide a method of using device network address information set for multiple image display modes to replace the initial page address information of the target page, which can achieve one target page corresponding to multiple device network address information, thereby reducing the impact of a single address on accessing the target page, and at the same time, can reduce the pressure on the server and improve the running speed. It is understandable that the application scenarios of the embodiments of the present application are not limited to this.

[0045] In the embodiment of the present application, the execution subject may be an electronic device, and optionally, the electronic device may be a server or a terminal device.

[0046] See also Figure 1 FIG. 1 is a flowchart of an implementation method of an image generation method in an embodiment of the present application. The specific implementation process of the method is as follows:

[0047] S110, obtaining initial page address information for accessing a target page.

[0048] As an embodiment, during the promotion of an activity, it is necessary to first create a display page (i.e., a target page) for displaying the activity, and then generate an address for accessing the page (i.e., initial page address information) accordingly. When the electronic device executes S110, it can directly obtain the initial page address information of the existing target page.

[0049] For example, the target page may be a mini-program or a page in a question-answering video, but the embodiments of the present application are not limited thereto.

[0050] It should be noted that the target page is an HTML page that customers see after accessing it in various ways. The initial page address information is an address information used to access the target page.

[0051] The initial page address information includes an Internet Protocol (IP) or a domain name.

[0052] S120, obtaining device network address information of target servers respectively set for multiple image display modes.

[0053] Specifically, before executing S120, multiple image display modes for displaying the target image and device network address information of multiple target servers for accessing the target page are obtained, and a correspondence between the image display modes and the device network address information of the target servers is established.

[0054] This is because merchants usually use different image display methods to display the target image so that users can see the target image through different channels, and then access the target page through the target server based on the target page address information in the target image, and configure different target server device network address information for different image display methods to load balance the server.

[0055] The device network address information is used to uniquely identify the target server in the network, and may be the IP address or domain name of the target server, and the domain name may be obtained from the domain name pool.

[0056] In one implementation, the image display method is determined based on at least one of the image display time, the product promotion method, and the image content of the target image.

[0057] That is, different target servers are configured for different image display modes, and each target server corresponds to a device network address information. When the electronic device executes S120, it can obtain the device network address information corresponding to each image display mode through the above correspondence.

[0058] In one implementation, different image display modes may be determined according to different image display times.

[0059] For example, the various image display modes include weekday display, weekend morning display, weekend afternoon display, and the like.

[0060] In one implementation, different image display methods may be determined according to different product promotion methods.

[0061] For example: in a product promotion scenario, the promotion methods of WeChat public account promotion and offline store poster promotion (i.e., image display method) are adopted, and the advertising page of the promoted product (i.e., target page) corresponds to the device network address information of the first server, and the promotion method of offline store poster promotion corresponds to the device network address information of the second server.

[0062] In one implementation, different image display modes may be determined according to different page contents.

[0063] For example, various image display methods include lottery page content, quiz page content, and promotional video page content.

[0064] In one implementation, two items among the image display time, the product promotion method, and the image content of the target image may be selected and combined to determine different image display methods.

[0065] For example, the image display time is combined with the product promotion method, and the image display method can be offline store promotion on weekend mornings and WeChat promotion on weekdays.

[0066] In one implementation, the image display method may be determined by the image display time, the product promotion method, and the image content of the target image.

[0067] For example, the image display time is weekend afternoon, the product promotion method is WeChat public account promotion, and the image content of the target image is lottery information.

[0068] In practical applications, the image display method may also adopt other methods, which are not limited here.

[0069] In one implementation, each image display method may correspond to one domain name or multiple domain names. If one image display method corresponds to multiple domain names, the impact of a domain name being blocked or lost from domain name registration is smaller during the process of replacing the domain name.

[0070] Therefore, by combining any one or more of the image display time, product promotion method, and image content of the target image, a variety of display methods suitable for different display scenarios can be obtained, and different target server device network address information can be configured for different display methods, so that users who obtain target page address information from different display methods can access the target page through different target servers, thereby achieving balanced control of the access process of each target server.

[0071] S130, updating the initial page address information respectively according to the device network address information corresponding to each image display mode, and obtaining the target page address information corresponding to each image display mode.

[0072] Specifically, for each image display mode, perform the following steps:

[0073] The domain name or IP address in the initial page address information is replaced with the device network address information corresponding to an image display method, and the target page address information corresponding to the image display method is obtained.

[0074] For example: assuming that the initial page address information is https: / / www.baid.com / sousuo.html, and the device network address information of the first server corresponding to the WeChat public account promotion method is "baihuo", then replace "baid" in https: / / www.baid.com / sousuo.html with "baihuo", and obtain the target page address information as https: / / www.baihuo.com / sousuo.html.

[0075] Another example: assuming that the initial page address information is https: / / www.baid.com / sousuo.html, and the device network address information of the second server corresponding to the offline store poster promotion method is "taoba", then replace "baid" in https: / / www.baid.com / sousuo.html with "taoba", and obtain the target page address information as https: / / www.taoba.com / sousuo.html.

[0076] S140: Generate target images corresponding to each image display mode based on the address information of each target page.

[0077] Specifically, a corresponding target access code is generated based on each target page address information, and the initial image is synthesized with each target access code to obtain target images corresponding to multiple image display modes.

[0078] The target access code is used to obtain the target page address information after parsing, and can be at least one of a one-dimensional code and a two-dimensional code.

[0079] In one implementation, a third-party library is used to generate a QR code or a one-dimensional code based on each target page address information, and the initial image is synthesized with each QR code or one-dimensional code to obtain a target image containing the QR code or one-dimensional code.

[0080] Among them, the third-party library can be the Google zixing third-party library, or the QrCode.jar third-party library, or a third-party cloud service interface for generating QR codes, or any other third-party library that can generate target access codes. The embodiments of this application are not limited to this.

[0081] For example, the target page address information corresponding to the WeChat promotion method is obtained, and a QR code is generated based on the target page address information through a third-party library, and a poster image is synthesized with the QR code to obtain a poster image containing the QR code.

[0082] Furthermore, corresponding target images including target access codes may be displayed respectively through various image display modes, and the target access codes are used to access the target pages.

[0083] That is to say, different target images can be displayed through different image display methods.

[0084] For example: display the first target image through a WeChat official account, and display the second target image through a TikTok short video.

[0085] Therefore, the embodiment of the present application synthesizes the target access code into the initial image to obtain the target image, so that the target page address information can be displayed to the user through the target image, thereby allowing the user to access the target page through the target page address information.

[0086] Furthermore, after displaying different target images in different image display modes, the user can obtain different target page address information through different target images, and then can access the target page through different target servers based on the different target page address information.

[0087] Since the traffic to different target servers may be uneven, for example, the target server may run slower, have too much memory usage, and other loads that have exceeded the normal threshold range, it is also possible to obtain the load of each target server in real time or periodically, and adjust the correspondence between each image display method and the server based on the load of each target server, thereby ensuring load balance on each server.

[0088] When adjusting the corresponding relationship between each image display mode and the server, the following steps can be adopted:

[0089] Step 1: Get the load of each target server.

[0090] That is, after the target images are displayed respectively through various image display modes, the load of each target server is obtained.

[0091] The load may be determined based on at least one of the running time, memory occupancy rate, and processing speed of the target server.

[0092] In one implementation, the load score of the target server may be determined based on the running time, memory usage ratio, and processing speed of the target server, and the load of the target server may be determined based on the load score.

[0093] In actual applications, the load of the target server may also be determined based on other indicators of the target server, which is not limited here.

[0094] In one embodiment, the target server's running time is 8 hours, and the first score is 2 points. The target server's memory occupancy is 80%, and the second score is 1 point. Then, the target server's load score is determined to be the sum of the first score and the second score, that is, the load score is 3 points, and the load of the target server is measured by 3 points.

[0095] Step 2: According to the load of each target server, the corresponding relationship between the image display mode and the device network address information is adjusted, and S110 is executed.

[0096] Specifically, a first target server whose load is higher than a first load threshold is screened out from each target server, and a second target server whose load is lower than a second load threshold is screened out from each target server, and a correspondence between the image display method of the first target server and the device network address information of the second target server is established.

[0097] The first load threshold and the second load threshold can be set according to actual application scenarios. For example, the first load threshold is 0.8 and the second load threshold is 0.2, which are not limited here.

[0098] In this way, the first load threshold can be used to filter out the relatively busy first target servers, and the second load threshold can be used to filter out the relatively idle second target servers, and the device network address information corresponding to the idle second target servers can be assigned to the image display method corresponding to the busy first target servers.

[0099] For example: when the promotion begins, the WeChat promotion method corresponds to the device network address information of the first target server, and the offline store poster promotion method corresponds to the device network address information of the second target server and the device network address information of the third target server. Since the number of visits to the target page through the first target server is relatively large, and the number of visits to the target page through the second and third target servers is relatively small, that is, the load of the first target server is lower than the second load threshold, and the loads of the second and third target servers are both higher than the first load threshold, a corresponding relationship between the second target server and the WeChat promotion method is established. This allows users who obtain the target image through the WeChat promotion method to access the target page through the first and second target servers, reducing the number of visits to the first target server.

[0100] Furthermore, the correspondence between the target servers and the image display modes may be adjusted according to the average load of each target server in a specified time period. The embodiments of the present application are not limited thereto.

[0101] In the embodiment of the present application, the correspondence between the image display mode and the device network address information of the target server can be adjusted according to the load of the target server, thereby achieving balanced allocation of access resources.

[0102] Furthermore, after the corresponding relationship between the image display mode and the device network address information of the target server is adjusted in real time, the target image is updated in real time according to the adjusted corresponding relationship.

[0103] Therefore, the method provided in the embodiment of the present application, which uses device network address information set for multiple image display modes to replace the initial page address information of the target page, can achieve one target page corresponding to multiple device network address information, thereby reducing the impact of a single address on accessing the target page. At the same time, it can improve the performance of the server and the access speed of the target page.

[0104] The following uses a specific application scenario to specifically illustrate the above embodiment. Figure 2 The figure shows a detailed implementation flow chart of a method for image generation. The specific implementation flow of the method is as follows:

[0105] S210, the electronic device obtains initial page address information for accessing a target page.

[0106] S220, the electronic device obtains domain names of target servers respectively set for multiple product promotion methods.

[0107] S230, the electronic device replaces the domain names in the initial page address information respectively according to the domain names corresponding to the product promotion methods, and obtains the target page address information corresponding to the product promotion methods.

[0108] S240, the electronic device generates a corresponding QR code based on each target page address information.

[0109] S250, the electronic device synthesizes the initial image with each of the two-dimensional codes to obtain a plurality of target images.

[0110] S260, the electronic device displays the corresponding target image through various product promotion methods.

[0111] S270: The target server receives a page request sent by the user through the terminal device, and returns a target page to the terminal device based on the page request.

[0112] Specifically, the user scans the QR code in the target image through the terminal device to obtain the target page address information, sends a page request to the corresponding target server through the target page address information, and receives the target page returned by the target server based on the page request.

[0113] S280: The electronic device obtains the load of each target server in real time.

[0114] S290: The electronic device adjusts the correspondence between the product promotion method and the device network address information of the target server according to the load of each target server, and executes S210.

[0115] Specifically, when executing S210-S290, the specific steps refer to the above S110-S140, which will not be repeated here.

[0116] like Figure 3 As shown, after different poster QR codes are generated based on different product promotion methods (i.e., promotion channels), after the user scans the QR code, after the domain name resolution 310, the requested traffic can access the target servers of different traffic entrances (respectively, target server A 320, target server B 330, and target server C 340), and then the data is centrally processed by the background service cluster 350, which reduces the pressure on the target server.

[0117] Therefore, in a specific embodiment of the present application, in order to solve the limitations brought about by the single QR code address in the promotional poster, the embodiment of the present application replaces the domain name in the page address information of the HTML page, each promotion channel corresponds to a different domain name, and then regenerates the QR code from the page address information after replacing the domain name, and then combines the QR code with the poster background image to generate a picture containing different QR codes.

[0118] By using the same promotional HTML page to generate different poster QR codes based on different promotion channels, the impact of the page being inaccessible when the HTML page domain name is unregistered or banned is reduced, greatly reducing the losses of merchants and saving promotion costs.

[0119] Routing HTML page access request traffic from different domain names to different proxy servers reduces the pressure on the back-end proxy server, increases the access speed of HTML pages, allows customers to have a better page access experience, and increases the probability of customers participating in marketing activities or registering. The following describes an image generation device.

[0120] Reference Figure 4 An image generating device 400 is described below, including: a first acquiring module 410 , a second acquiring module 420 , an information replacing module 430 and an image generating module 440 .

[0121] The embodiment of the present application provides an image generation device 400, including: a first acquisition module 410, configured to obtain initial page address information for accessing a target page; a second acquisition module 420, configured to obtain device network address information of a target server respectively set for multiple image display modes; an information replacement module 430, configured to replace the initial page address information according to the device network address information corresponding to each image display mode, and obtain the target page address information corresponding to each image display mode, wherein the target page address information is used to access the target page through the target server; an image generation module 440, configured to generate a target image corresponding to each image display mode based on each target page address information.

[0122] In one implementation, the image display method is determined based on at least one of the image display time, the product promotion method, and the image content of the target image.

[0123] In one implementation, the image generation module is further configured to: use various image display modes to display corresponding target images respectively.

[0124] In one embodiment, it also includes a judgment module, which is configured to: obtain the load of each target server; adjust the correspondence between the image display method and the device network address information according to the load of each target server, and execute the step of obtaining the initial page address information for accessing the target page.

[0125] In one embodiment, the judgment module is further configured to: filter out a first target server whose load is higher than a first load threshold from each target server; filter out a second target server whose load is lower than a second load threshold from each target server; and establish a correspondence between the image display method of the first target server and the device network address information of the second target server.

[0126] In one embodiment, the image generation module is further configured to: generate a corresponding target access code based on each target page address information, wherein the target access code is at least one of a one-dimensional code and a two-dimensional code; synthesize the initial image with each target access code to obtain target images corresponding to multiple image display methods.

[0127] In one embodiment, the image generation module is further configured to: display corresponding target images including target access codes respectively through various image display modes, and the target access codes are used to access the target page.

[0128] In the embodiments of the present application, Figure 4 The modules shown can achieve Figure 1 , Figure 2 and Figure 3Each process in the method embodiment. Figure 4 The operations and / or functions of each module in Figure 1 , Figure 2 and Figure 3 For details, please refer to the description in the above method embodiment. To avoid repetition, detailed description is appropriately omitted here.

[0129] like Figure 5 As shown, an embodiment of the present application provides an electronic device 500, including: a processor 510, a memory 520 and a bus 530, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement a method as described in any one of the above embodiments. For details, please refer to the description in the above method embodiments. To avoid repetition, the detailed description is appropriately omitted here.

[0130] Among them, the bus is used to realize the direct connection and communication of these components. Among them, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0131] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method described in the above embodiment may be executed.

[0132] Understandably, Figure 5The structure shown is for illustration only and may also include Figure 5 More or fewer components as shown, or with Figure 5 Different configurations are shown. Figure 5 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0133] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a server, any method described in any of the above-mentioned embodiments is implemented. For details, please refer to the description in the above-mentioned method embodiments. To avoid repetition, the detailed description is appropriately omitted here.

[0134] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0135] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for generating an image, characterized in that: The method comprises: Obtaining the initial page address information used to access the target page; Acquire multiple image display modes for displaying a target image and device network address information of multiple target servers for accessing a target page, and establish a correspondence between the image display modes and the device network address information of the target servers; Obtain device network address information corresponding to multiple target servers respectively set for multiple image display modes; According to the device network address information corresponding to each image display mode, the initial page address information is updated respectively to obtain the target page address information corresponding to each image display mode, wherein each target page address information is used to access the target page through each target server; Based on the address information of each target page, a target image corresponding to each image display mode is generated respectively.

2. The method according to claim 1, characterized in that The image display method is determined according to at least one of the image display time, the product promotion method, and the image content of the target image.

3. The method according to claim 1, characterized in that After respectively generating the target images corresponding to each image display mode based on the address information of each target page, the method further includes: Each image display mode is adopted to display the corresponding target image respectively.

4. The method according to any one of claims 1 to 3, characterized in that: After generating target images corresponding to each image display mode based on the address information of each target page, the method further includes: Get the load of each target server; According to the load of each target server, the correspondence between the image display mode and the device network address information is adjusted, and the step of obtaining the initial page address information for accessing the target page is performed.

5. The method according to claim 4, characterized in that The adjusting the correspondence between the image display mode and the device network address information according to the load of each target server includes: Filter out a first target server whose load is higher than a first load threshold from the target servers; Filter out a second target server whose load is lower than a second load threshold from the target servers; A correspondence between the image display mode of the first target server and the device network address information of the second target server is established.

6. The method according to any one of claims 1 to 3, characterized in that: The generating of target images corresponding to each image display mode based on the address information of each target page includes: Generate a corresponding target access code based on each target page address information, wherein the target access code is at least one of a one-dimensional code and a two-dimensional code; The initial image is synthesized with each target access code to obtain target images corresponding to multiple image display modes.

7. The method according to claim 6, characterized in that Also includes: Through each image display mode, a corresponding target image including a target access code is displayed respectively, and the target access code is used to access the target page.

8. An image generating device, characterized in that: The device comprises: A first acquisition module is configured to acquire initial page address information for accessing a target page; Acquire multiple image display modes for displaying a target image and device network address information of multiple target servers for accessing a target page, and establish a correspondence between the image display modes and the device network address information of the target servers; A second acquisition module is configured to acquire device network address information corresponding to a plurality of target servers respectively set for a plurality of image display modes; An information replacement module is configured to update the initial page address information respectively according to the device network address information corresponding to each image display mode, and obtain the target page address information corresponding to each image display mode, wherein each target page address information is used to access the target page through each target server; The image generation module is configured to generate a target image corresponding to each image display mode based on the address information of each target page.

9. An electronic device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the server, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for displaying accessible resources and resource access system

    CN110708402A

  • Shared information processing method and device, related equipment and storage medium

    CN111414560A