Multi-version image processing method, apparatus and electronic device
By sorting and separating multi-version image information and generating target database records, the problem of resource waste caused by multi-database storage is solved, and efficient resource management and search are achieved.
Patent Information
- Application Number
- CN202210118368.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-08
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2042-02-08
AI Technical Summary
In the prior art, when multiple databases are used to store resources corresponding to different versions of applications, there is a problem of wasting storage resources because the data stored in the databases often overlap.
By obtaining multiple versions of image information, sorting the image version information, adding separators to generate target version information, and generating target database records based on image identification information, the records are merged and stored in the image version information storage database to reduce duplicate storage.
It reduces the waste of database storage resources, improves information search speed and storage efficiency, and reduces maintenance costs.
Smart Images

Figure CN114443126B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and more particularly to a multi-version image processing method, apparatus, and electronic device. Background Art
[0002] As the iteration rate of applications running on smart devices increases, and different versions of applications often require different content to display, it is particularly important to properly store the resources corresponding to different versions of applications to ensure normal operation. Currently, when storing resources corresponding to different versions of applications, the common method is to maintain multiple version databases to store the resources corresponding to different versions of applications.
[0003] However, when the above method is adopted, the following technical problems often occur:
[0004] Using multiple databases to store resources corresponding to different versions of applications will result in a waste of storage resources because the data stored in the databases often overlap. Summary of the Invention
[0005] The content of this disclosure is used to briefly introduce concepts that will be described in detail in the detailed description section below. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0006] Some embodiments of the present disclosure propose a multi-version image processing method, an information push method, an apparatus, and an electronic device to solve one or more of the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide a multi-version image processing method, which includes: obtaining multi-version image information, wherein the multi-version image information includes: image identification information and an image version information set; sorting the image version information in the image version information set to generate a candidate image version information sequence; performing information separation processing on the candidate image version information in the candidate image version information sequence to generate target version information; generating a target database record based on the image identification information and the target version information; and storing the target database record in an image version information storage database.
[0008] Optionally, the above-mentioned information separation processing of the candidate image version information in the above-mentioned candidate image version information sequence to generate the target version information includes: adding a separator between two adjacent candidate image version information in the above-mentioned candidate image version information sequence to generate the above-mentioned target version information.
[0009] Optionally, the above-mentioned target database record includes: a record primary key; and the above-mentioned generation of the target database record based on the above-mentioned image identification information and the above-mentioned target version information includes: generating the above-mentioned record primary key based on the above-mentioned image identification information; generating the above-mentioned target database record based on the above-mentioned record primary key and the above-mentioned target version information.
[0010] In a second aspect, some embodiments of the present disclosure provide a multi-version image processing device, which includes: a first acquisition unit, configured to acquire multi-version image information, wherein the multi-version image information includes: image identification information and an image version information set; a sorting unit, configured to sort the image version information in the image version information set to generate a candidate image version information sequence; an information separation processing unit, configured to perform information separation processing on the candidate image version information in the candidate image version information sequence to generate target version information; a generation unit, configured to generate a target database record based on the image identification information and the target version information; and a storage unit, configured to store the target database record in an image version information storage database.
[0011] Optionally, the information separation processing unit is further configured to: add a separator between two adjacent candidate image version information in the candidate image version information sequence to generate the target version information.
[0012] Optionally, the target database record includes: a record primary key; and the generating unit is further configured to: generate the record primary key according to the image identification information; and generate the target database record according to the record primary key and the target version information.
[0013] In a third aspect, some embodiments of the present disclosure provide an information push method, which includes: obtaining an image acquisition request; performing request parsing on the above-mentioned image acquisition request to parse out the target image identification information and target application version information included in the above-mentioned image acquisition request; obtaining a database record matching the above-mentioned target image identification information from an image version information storage database as a candidate database record; parsing the image address information matching the above-mentioned target application version information from the above-mentioned candidate database record as the target image address information; sending the above-mentioned target image address information to the target terminal, so that the above-mentioned target terminal loads and displays the image corresponding to the above-mentioned target image address information.
[0014] Optionally, the image acquisition request includes: a data field; and the above-mentioned request parsing of the above-mentioned image acquisition request to parse out the target image identification information and target application version information included in the above-mentioned image acquisition request, including: according to the field identifiers corresponding to the above-mentioned target image identification information and the above-mentioned target application version information, parsing out the above-mentioned target image identification information and the above-mentioned target application version information from the above-mentioned data field.
[0015] Optionally, the above-mentioned parsing of the image address information matching the above-mentioned target application version information from the above-mentioned candidate database records as the target image address information includes: performing information decoding processing on the above-mentioned target application version information to generate decoded target application version information; and screening out the image address information matching the above-mentioned decoded target application version information from the above-mentioned candidate database records as the above-mentioned target image address information.
[0016] Optionally, the above-mentioned filtering out of the image address information that matches the above-mentioned decoded target application version information from the above-mentioned candidate database records as the above-mentioned target image address information includes: performing record segmentation on the above-mentioned candidate database records to generate a candidate image version information sequence; according to the candidate image version information sequence, performing the following processing steps: determining the image version information at the first target position in the candidate image version information sequence as the image version information to be compared; in response to determining that the application version corresponding to the above-mentioned decoded target application version information is consistent with the image version corresponding to the above-mentioned image version information to be compared, parsing the image address information from the above-mentioned image version information to be compared as the above-mentioned target image address information.
[0017] Optionally, the above-mentioned filtering out of the image address information that matches the above-mentioned decoded target application version information from the above-mentioned candidate database records as the above-mentioned target image address information also includes: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is smaller than the image version corresponding to the above-mentioned image version information to be compared, forming the candidate image version information between the second target position and the first target position of the candidate image version information sequence into a new candidate image version information sequence, and using the new candidate image version information sequence as the candidate image version information sequence, and executing the above-mentioned processing steps again.
[0018] Optionally, the above-mentioned filtering out of the image address information that matches the above-mentioned decoded target application version information from the above-mentioned candidate database records as the above-mentioned target image address information also includes: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is greater than the image version corresponding to the above-mentioned image version information to be compared, forming the candidate image version information between the first target position to the third target position of the candidate image version information sequence into a new candidate image version information sequence, and using the new candidate image version information sequence as the candidate image version information sequence, and executing the above-mentioned processing steps again.
[0019] In a fourth aspect, some embodiments of the present disclosure provide an information push device, which includes: a second acquisition unit, configured to acquire an image acquisition request; a request parsing unit, configured to perform request parsing on the above-mentioned image acquisition request to parse out the target image identification information and target application version information included in the above-mentioned image acquisition request; a third acquisition unit, configured to acquire a database record matching the above-mentioned target image identification information from an image version information storage database as a candidate database record; a parsing unit, configured to parse out image address information matching the above-mentioned target application version information from the above-mentioned candidate database record as target image address information; and a sending unit, configured to send the above-mentioned target image address information to a target terminal, so that the above-mentioned target terminal loads and displays the image corresponding to the above-mentioned target image address information.
[0020] Optionally, the image acquisition request includes: a data field; and the request parsing unit is further configured to: parse the target image identification information and the target application version information from the data field according to the field identifiers corresponding to the target image identification information and the target application version information.
[0021] Optionally, the parsing unit is further configured to: perform information decoding processing on the target application version information to generate decoded target application version information; and filter out image address information matching the decoded target application version information from the candidate database records as the target image address information.
[0022] Optionally, the above-mentioned parsing unit is further configured to: perform record segmentation on the above-mentioned candidate database records to generate a candidate image version information sequence; perform the following processing steps based on the candidate image version information sequence: determine the image version information at the first target position in the candidate image version information sequence as the image version information to be compared; in response to determining that the application version corresponding to the above-mentioned decoded target application version information is consistent with the image version corresponding to the above-mentioned image version information to be compared, parse the image address information from the above-mentioned image version information to be compared as the above-mentioned target image address information.
[0023] Optionally, the above-mentioned parsing unit is further configured to: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is smaller than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the second target position and the first target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0024] Optionally, the above-mentioned parsing unit is further configured to: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is greater than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the first target position to the third target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0025] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation of the first or third aspect above.
[0026] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the implementations of the first and third aspects above is implemented.
[0027] The above-described embodiments of the present disclosure have the following beneficial effects: The multi-version image processing methods of some embodiments of the present disclosure reduce the waste of database storage resources. Specifically, this waste of database storage resources arises from the use of multiple databases to store resources corresponding to different application versions. Since the data stored in these databases often overlaps, this waste of storage resources occurs. Based on this, the multi-version image processing methods of some embodiments of the present disclosure first obtain multi-version image information, where the multi-version image information includes image identification information and a set of image version information. Then, the image version information in the set of image version information is sorted to generate a sequence of candidate image version information. This sorting streamlines the information, facilitating subsequent searches and significantly improving response and search speed. Next, the candidate image version information in the sequence of candidate image version information is separated to generate target version information. This separation facilitates subsequent extraction of resources corresponding to the desired application version. Then, a target database record is generated based on the image identification information and the target version information. Finally, the target database record is stored in an image version information storage database. This approach eliminates the need to create multiple version databases by merging and storing multiple versions of images corresponding to the same image identification. Greatly reduces the waste of storage resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0029] Figure 1 is a schematic diagram of an application scenario of the multi-version image processing method of some embodiments of the present disclosure;
[0030] Figure 2 is a flowchart of some embodiments of the multi-version image processing method according to the present disclosure;
[0031] Figure 3 This is a schematic diagram of the configuration interface;
[0032] Figure 4 is a flowchart of other embodiments of the multi-version image processing method according to the present disclosure;
[0033] Figure 5 is a schematic diagram of an application scenario of the information push method of some embodiments of the present disclosure;
[0034] Figure 6 is a flowchart of some embodiments of the information push method according to the present disclosure;
[0035] Figure 7 is a flowchart of other embodiments of the information push method according to the present disclosure;
[0036] Figure 8 is a schematic structural diagram of some embodiments of a multi-version image processing device according to the present disclosure;
[0037] Figure 9 is a schematic structural diagram of some embodiments of the information push device according to the present disclosure;
[0038] Figure 10 It is a structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0039] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0040] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.
[0041] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0042] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0043] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0044] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0045] Figure 1 This is a schematic diagram of an application scenario of the multi-version image processing method of some embodiments of the present disclosure.
[0046] exist Figure 1In the application scenario, first, the computing device 101 can obtain multi-version image information 102, wherein the multi-version image information 102 includes: image identification information 103 and image version information set 104; secondly, the computing device 101 can sort the image version information in the image version information set 104 to generate a candidate image version information sequence 105; then, the computing device 101 can perform information separation processing on the candidate image version information in the candidate image version information sequence 105 to generate target version information 106; then, the computing device 101 can generate a target database record 107 based on the image identification information 103 and the target version information 106; finally, the computing device 101 can store the target database record 107 in the image version information storage database 108.
[0047] It should be noted that the computing device 101 can be either hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitations are given here.
[0048] It should be understood that Figure 1 The number of computing devices in the embodiment is merely illustrative. Any number of computing devices may be provided according to implementation requirements.
[0049] Continue to refer Figure 2 , shows a process 200 of some embodiments of the multi-version image processing method according to the present disclosure. The multi-version image processing method includes the following steps:
[0050] Step 201: Acquire multi-version image information.
[0051] In some embodiments, the execution subject of the multi-version image processing method (eg Figure 1 The computing device 101 shown in the figure can obtain the above-mentioned multi-version image information. The above-mentioned multi-version image information may include: image identification information and an image version information set. The above-mentioned multi-version image information may represent different versions of image information with the same image identification. The above-mentioned image identification information may represent the image identification. The above-mentioned image identification may serve as a unique identifier of the image. The image version information in the above-mentioned image version information set may represent the version information of the image with the same image identification. The above-mentioned execution subject may obtain the above-mentioned multi-version image information from the information configuration end through a wireless connection or a wired connection. The above-mentioned information configuration end may be used to configure the above-mentioned multi-version image information.
[0052] As an example, the image identification information may be "100001". The image version information may be "1002adadasdadada12312.jpeg", where "1002" may indicate that the image version is "10.0.2". "adadasdadada12312.jpeg" may indicate the image name.
[0053] As an example, the configuration interface of the above information configuration terminal can be as follows: Figure 3 As shown. The configuration interface may include: an image identification information configuration area 301, an image version information configuration area 302, and an image display area 303. The image identification information configuration area 301 may be used to configure image identification information. The image version information configuration area 302 may be used to configure image version information. The image display area 303 may be used to display an image.
[0054] Step 202: sort the image version information in the image version information set to generate a candidate image version information sequence.
[0055] In some embodiments, the execution entity may sort the image version information in the image version information set to generate the candidate image version information sequence.
[0056] As an example, the execution subject sorts the image version information in the image version information set to generate the candidate image version information sequence, which may include the following steps:
[0057] The first step is to perform version parsing on the image version information in the above image version information set to generate a version number and obtain a version number sequence.
[0058] For example, the above image version information may be “1002adada12312.jpeg”, where “1002” may represent that the image version is “10.0.2”.
[0059] In the second step, the image version information in the image version information set is sorted according to the version number sequence using a target sorting algorithm to generate the candidate image version information sequence.
[0060] The target sorting algorithm may be an algorithm for sorting the image version information in the image version information set, for example, but not limited to, any one of the following: a bubble sort algorithm, a quick sort algorithm, a simple insertion sort algorithm, and a heap sort algorithm.
[0061] For example, the image version information set may be ["1004abc.jpg", "1002edf.jpg", "1001adc.jpg", "1003ico.jpg"]. The corresponding version number sequence may be ["1004", "1002", "1001", "1003"]. The generated candidate image version information sequence may be ["1001adc.jpg", "1002edf.jpg", "1003ico.jpg", "1004abc.jpg"]. The execution entity may implement the sorting of the image version information in the image version information set through the following code:
[0062]
[0063]
[0064] Among them, "ImgVersionInf" can represent the above image version information set, "VersionList" can represent the above version number sequence, and "CanImgVersionInf" can represent the above candidate image version information sequence.
[0065] Step 203: performing information separation processing on the candidate image version information in the candidate image version information sequence to generate target version information.
[0066] In some embodiments, the execution entity may perform information separation processing on the candidate image version information in the candidate image version information sequence to generate the target version information. Separating the candidate image version information in the candidate image version information sequence may facilitate subsequent parsing of the candidate image version information in the candidate image version information sequence from the target version information.
[0067] As an example, the execution subject performs information separation processing on the candidate image version information in the candidate image version information sequence to generate the target version information, which may include the following steps:
[0068] The first step is to determine the target length.
[0069] The target length may be the information length of the candidate image version information with the longest information length in the candidate image version information sequence.
[0070] For example, the execution entity can determine the target length through the following code:
[0071]
[0072]
[0073] Wherein, "CanImgVersionInf" may represent the candidate image version information sequence, and "MaxLen" may represent the target length.
[0074] The second step is to add a padding character to the end of each candidate image version information in the above candidate image version information sequence so that the information length of the above candidate image version information is consistent with the above target length, so as to generate the padded candidate image version information and obtain the padded candidate image version information sequence.
[0075] The above-mentioned filler can be used as a character for completing information. For example, the above-mentioned filler can be "*".
[0076] For example, the execution subject may add a padding character to the end of each candidate image version information in the candidate image version information sequence through the following code to generate the padded candidate image version information, thereby obtaining the padded candidate image version information sequence:
[0077]
[0078] Wherein, "CanImgVersionInf" represents the candidate image version information sequence. "MaxLen" represents the target length. "TmpList" may represent the completed candidate image version information sequence.
[0079] In the third step, the completed candidate image version information in the completed candidate image version information sequence is sequentially concatenated end to end to generate the target version information.
[0080] Step 204: Generate a target database record based on the image identification information and the target version information.
[0081] In some embodiments, the execution entity may generate the target database record based on the image identification information and the target version information. The execution entity may combine the image identification information and the target version information to generate the target database record. The target database record may be a database record in an image version information storage database. The image version information storage database may be a database for storing image version information. The image version information storage database may be a relational database. The image version information storage database may also be a non-relational database.
[0082] As an example, first, the execution entity may append the image identification information to the target version information header to generate the target database record.
[0083] Step 205: Store the target database record into the image version information storage database.
[0084] In some embodiments, the execution entity may store the target database record in the image version information storage database using a SQL (Structured Query Language) statement.
[0085] As an example, the above SQL statement may be "INSERT INTO image version information storage database VALUES (target database record)".
[0086] The above-described embodiments of the present disclosure have the following beneficial effects: The multi-version image processing methods of some embodiments of the present disclosure reduce the waste of database storage resources. Specifically, this waste of database storage resources arises from the use of multiple databases to store resources corresponding to different application versions. Since the data stored in these databases often overlaps, this waste of storage resources occurs. Based on this, the multi-version image processing methods of some embodiments of the present disclosure first obtain multi-version image information, where the multi-version image information includes image identification information and a set of image version information. Then, the image version information in the set of image version information is sorted to generate a sequence of candidate image version information. This sorting streamlines the information, facilitating subsequent searches and significantly improving response and search speed. Next, the candidate image version information in the sequence of candidate image version information is separated to generate target version information. This separation facilitates subsequent extraction of resources corresponding to the desired application version. Then, a target database record is generated based on the image identification information and the target version information. Finally, the target database record is stored in an image version information storage database. This approach eliminates the need to create multiple version databases by merging and storing multiple versions of images corresponding to the same image identification. Greatly reduces the waste of storage resources.
[0087] Further references Figure 4 , which shows a process 400 of another embodiment of a multi-version image processing method. The process 400 of the multi-version image processing method includes the following steps:
[0088] Step 401: Acquire multi-version image information.
[0089] Step 402: sort the image version information in the image version information set to generate a candidate image version information sequence.
[0090] In some embodiments, the specific implementation of step 401 to step 402 and the technical effects thereof can be referred to. Figure 2 Steps 201 to 202 in the corresponding embodiments are not described again here.
[0091] Step 403: Add a separator between two adjacent candidate image version information in the candidate image version information sequence to generate target version information.
[0092] In some embodiments, the execution subject of the multi-version image processing method (eg Figure 1 The computing device 101 shown) can add a separator between two adjacent candidate image version information in the above-mentioned candidate image version information sequence to generate the above-mentioned target version information. The above-mentioned separator can be a character used to separate two adjacent candidate image version information in the above-mentioned candidate image version information sequence. For example, the above-mentioned separator can be "@". The candidate image version information in the above-mentioned candidate image version information sequence may include: image address information and application version information. The image address information can represent the image storage address. For example, the image storage address can be a relative address. For another example, the image storage address can also be an absolute address. The application version information can represent the version number of the application that uses the image.
[0093] As an example, the candidate image version information sequence may be {[Version1, URL1], [Version2, URL2], [Version3, URL3]}. The execution entity may generate the target version information by adding the separator between two adjacent candidate image version information in the candidate image version information sequence using the following code:
[0094]
[0095] Among them, "CanImgVersionInf" can represent the candidate image version information sequence. "TargetVersionInf" can represent the target version information. The generated target version information can be:
[0096] "URL1@[Version1]; URL2@[Version2]; URL3@[Version3]".
[0097] Step 404: Generate a record primary key based on the image identification information.
[0098] In some embodiments, the execution entity may generate the record primary key based on the image identification information, wherein the record primary key may be the primary key of the target database record.
[0099] As an example, the execution entity may determine the image identification information as the record primary key.
[0100] As another example, the execution entity may concatenate a preset character string with the image identification information to generate the record primary key. The preset character string may be manually set.
[0101] Step 405: Generate a target database record based on the record primary key and target version information.
[0102] In some embodiments, the execution entity may determine the record primary key as the primary key of the target database record, and determine the target version information as the record information of the target database record other than the primary key, to generate the target database record.
[0103] Step 406: Store the target database record in the image version information storage database.
[0104] In some embodiments, the specific implementation of step 406 and the technical effects thereof can be referred to in Figure 2 Step 205 in the corresponding embodiments will not be described again here.
[0105] from Figure 4 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 4 In the process 400 of the multi-version image processing method in some corresponding embodiments, first, a separator is added between two adjacent candidate image version information in the above-mentioned candidate image version information sequence to generate the target version information. Compared with the method of appending a padding character to the end of the candidate image version information and then splicing the padded candidate image version information in the padded candidate image version information sequence to generate the above-mentioned target version information, the data length of the subsequent target database record generation will be greatly reduced, thereby reducing the storage space occupied by the image version information storage database. In addition, the method of determining the image identification information as the record primary key, or determining the image identification as part of the primary key, can facilitate the subsequent retrieval of database records based on the primary key, compared with the method of automatically generating the primary key by the database management system, thereby improving the efficiency of information retrieval.
[0106] Figure 5 It is a schematic diagram of an application scenario of the information push method of some embodiments of the present disclosure.
[0107] exist Figure 5In the application scenario, first, the computing device 501 can obtain the image acquisition request 502; then, the computing device 501 can perform request parsing on the above image acquisition request 502 to parse out the target image identification information 503 and the target application version information 504 included in the above image acquisition request 502; then, the computing device 501 can obtain the database record matching the above target image identification information 503 from the image version information storage database 108 as a candidate database record 505; secondly, the computing device 501 can parse out the image address information matching the above target application version information 504 from the above candidate database record 505 as the target image address information 506; finally, the computing device 501 can send the above target image address information 506 to the target terminal 507, so that the above target terminal 507 loads and displays the image corresponding to the above target image address information 506.
[0108] It should be noted that the computing device 501 can be either hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitations are given here.
[0109] It should be understood that Figure 5 The number of computing devices in the embodiment is merely illustrative. Any number of computing devices may be provided according to implementation requirements.
[0110] Continue to refer Figure 6 , shows a process 600 of some embodiments of the information push method according to the present disclosure. The information push method includes the following steps:
[0111] Step 601: Obtain an image acquisition request.
[0112] In some embodiments, the execution subject of the information push method (eg Figure 5The computing device 501 shown) can obtain the above-mentioned image acquisition request through a wireless connection. The above-mentioned image acquisition request can be a request for obtaining the image to be loaded by the target terminal. The above-mentioned target terminal can be a terminal loaded with a target application. The above-mentioned target application can be an application with image display requirements. For example, the above-mentioned target program can be a "shopping" application, and the above-mentioned "shopping" application can have an icon image display requirement. The above-mentioned image acquisition request can include: target image identification information and target application version information. That is, the above-mentioned target image identification information can represent the unique identification of the image to be loaded by the above-mentioned target application. The above-mentioned target application version information can represent the version number of the above-mentioned target application.
[0113] Optionally, the image acquisition request may further include a data field, wherein the data field may be a field for storing the target image identification information and the target application version information.
[0114] Step 602: Parse the image acquisition request to obtain target image identification information and target application version information included in the image acquisition request.
[0115] In some embodiments, the execution entity may parse the image acquisition request to obtain the target image identification information and the target application version information included in the image acquisition request.
[0116] As an example, the execution entity may first sequentially read the data carried in the image acquisition request to obtain a data sequence. For example, the data sequence may be ["1231231231" "10.0.1"]. The execution entity may then sequentially determine "1231231231" in the data sequence as the target image identification information and "10.0.1" as the target application version information.
[0117] Step 603: Obtain a database record that matches the target image identification information from the image version information storage database as a candidate database record.
[0118] In some embodiments, the execution subject may obtain a database record that matches the target image identification information from the image version information storage database as the candidate database record. The image version information storage database may be a database for storing image version information. The generation method of the database record in the image version information storage database may refer to Figure 2 Steps 205 to 204 in the corresponding embodiments, or refer to Figure 4The corresponding steps 401 to 406 in the embodiments are not described in detail here. The execution subject can use the target image identification information as a search keyword and, through an SQL statement, obtain a database record matching the target image identification information from the image version information storage database as the candidate database record.
[0119] As an example, the execution entity may obtain a database record matching the target image identification information from the image version information storage database as the candidate database record through the following SQL: SELECT * FROM image version information storage database WHERE ImgID = "target image identification information".
[0120] As another example, the execution entity may obtain a database record matching the target image identification information from the image version information storage database as the candidate database record through the following SQL: SELECT * FROM image version information storage database WHERE ImgID LIKE "% target image identification information".
[0121] Step 604: parse the candidate database records to obtain image address information that matches the target application version information as the target image address information.
[0122] In some embodiments, the execution entity may use a target search algorithm to parse image address information that matches the target application version information from the candidate database records, as the target image address information. The application version information included in the candidate image version information corresponding to the target image address information may be consistent with the version number represented by the target application version information. The target image address information is the image address information included in the corresponding candidate image version information. The target search algorithm may be, but is not limited to, any of the following: a sequential search algorithm, a Fibonacci search algorithm, and a hash table search algorithm.
[0123] As an example, the target image address information may be: “ifs / t1 / 1231 / ad12.jpg”.
[0124] Step 605: Send the target image address information to the target terminal, so that the target terminal loads and displays the image corresponding to the target image address information.
[0125] In some embodiments, the execution entity may send the target image address information to the target terminal via a wireless connection, so that the target terminal loads and displays the image corresponding to the target image address information.
[0126] As an example, in response to receiving the target image address information sent by the execution entity, the target terminal may send an image acquisition request to the address corresponding to the target image address information to pull the image stored at the address corresponding to the target image address information.
[0127] from Figure 6 It can be seen that Figure 6 The process 600 of the information push method in some corresponding embodiments realizes the push of image address information for different application version information. This method does not require the creation of multiple corresponding image address information push interfaces for different application version information, thereby reducing maintenance costs.
[0128] Further references Figure 7 , which shows a process 700 of another embodiment of the information push method. The process 700 of the information push method includes the following steps:
[0129] Step 701: Obtain an image acquisition request.
[0130] In some embodiments, the specific implementation of step 701 and the technical effects thereof can be referred to in Figure 6 Step 601 in the corresponding embodiments will not be described again here.
[0131] Step 702: parse the target image identification information and the target application version information from the data field according to the field identifiers corresponding to the target image identification information and the target application version information.
[0132] In some embodiments, the execution subject of the information push method (eg Figure 5 The computing device 501 shown can parse the target image identification information and the target application version information from the data field based on the field identifiers corresponding to the target image identification information and the target application version information. The field identifiers corresponding to the target image identification information and the target application version information can be pre-set. For example, the field identifier corresponding to the target image identification information can be "ImageID." The field identifier corresponding to the target application version information can be "Version."
[0133] For example, when the image acquisition request is of the POST request type, the data field included in the image acquisition request may be "data: {ImageID: '21312312.jpg'; Version: '10.0.1'}". The execution entity can parse the target image identification information "21312312.jpg" and the target application version information "10.0.1" from the data field.
[0134] As another example, when the image acquisition request is of the GET request type, the data field included in the image acquisition request may be "param: {ImageID: '21312312.jpg'; Version: '10.0.1'}". The execution entity may parse the target image identification information "21312312.jpg" and the target application version information "10.0.1" from the data field.
[0135] Step 703: Obtain a database record that matches the target image identification information from the image version information storage database as a candidate database record.
[0136] In some embodiments, the specific implementation of step 703 and the technical effects thereof can be referred to in Figure 6 Step 603 in the corresponding embodiments will not be described again here.
[0137] Step 704: Decode the target application version information to generate decoded target application version information.
[0138] In some embodiments, the execution entity may perform information decoding processing on the target application version information to generate the decoded target application version information. The target application version information may be information encoded using an encoding algorithm. The execution entity may decode the target application version information using a decoding algorithm corresponding to the encoding algorithm.
[0139] As an example, the encoding algorithm may be a Base64 encoding algorithm. The execution entity may encode the unencoded target application version information using the following code:
[0140] import base64
[0141] TargetAppVerInf=base64.encode(OriginInf)
[0142] Among them, "TargetAppVerInf" can represent the target application version information. "OriginInf" can represent the unencoded target application version information.
[0143] As another example, the decoding algorithm may be a Base64 encoding algorithm. The execution subject may decode the target application version information through the following code to generate the decoded target application version information:
[0144] import base64
[0145] FinalAppVerInf=base64.decode(TargetAppVerInf)
[0146] Among them, "FinalAppVerInf" can represent the above-decoded target application version information.
[0147] Step 705 : Filter out image address information that matches the decoded target application version information from the candidate database records as target image address information.
[0148] In some embodiments, the execution entity may use the target image identification information as a keyword and, through the target search algorithm, filter out image address information that matches the decoded target application version information from the candidate database records as the target image address information. The target search algorithm may be, but is not limited to, any of the following: a sequential search algorithm, a Fibonacci search algorithm, and a hash table search algorithm.
[0149] In some optional implementations of some embodiments, the execution entity may select, from the candidate database records, image address information that matches the decoded target application version information as the target image address information, and may include the following steps:
[0150] In the first step, the candidate database records are segmented to generate a candidate image version information sequence.
[0151] As an example, the execution entity may segment the candidate database records based on delimiters to generate the candidate image version information sequence. For example, the database record may be "URL1@[Version1]; URL2@[Version2]." The resulting candidate image version information sequence may be [Version1, Version2].
[0152] As another example, the execution entity may first segment the candidate database using the target length as a truncation unit to obtain a set of candidate image version information. The execution entity may then truncate fixed-length data from the header of each candidate image version information in the set of candidate image version information as the candidate image version information, thereby obtaining the candidate image version information sequence.
[0153] In the second step, based on the candidate image version information sequence, the following processing steps are performed:
[0154] In the first sub-step, the image version information at the first target position in the candidate image version information sequence is determined as the image version information to be compared.
[0155] The first target position can be expressed by the following formula: (low + high) / 2 + 1. "low" may be the position of the first candidate image version information in the candidate image version information sequence. "high" may be the position of the last candidate image version information in the candidate image version information sequence.
[0156] In the second sub-step, in response to determining that the application version corresponding to the decoded target application version information is consistent with the image version corresponding to the image version information to be compared, image address information is parsed from the image version information to be compared as the target image address information.
[0157] For example, the application version corresponding to the decoded target application version information may be "Version 1." The image version corresponding to the image version information to be compared may also be "Version 1." The execution entity may use "URL 1" as the target image address information.
[0158] In the third sub-step, in response to determining that the application version corresponding to the above-mentioned decoded target application version information is smaller than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the second target position and the first target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0159] The second target position may be the position of the first candidate image version information in the sequence in the candidate image version information sequence.
[0160] The fourth sub-step, in response to determining that the application version corresponding to the above-mentioned decoded target application version information is greater than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the first target position to the third target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0161] The third target position may be the position of the last candidate image version information in the candidate image version information sequence.
[0162] Step 706 sends the target image address information to the target terminal, so that the target terminal loads and displays the image corresponding to the target image address information.
[0163] In some embodiments, the specific implementation of step 706 and the technical effects thereof can be referred to in Figure 6 Step 605 in the corresponding embodiments will not be described again here.
[0164] from Figure 7 It can be seen that Figure 7 In the process 700 of the information push method in some corresponding embodiments, since the candidate image version information stored in the database records in the image version information storage database is ordered, the screening method in step 705 can greatly shorten the search time and improve the search efficiency.
[0165] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a multi-version image processing device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0166] like Figure 8 As shown, a multi-version image processing apparatus 800 of some embodiments includes: a first acquisition unit 801, a sorting unit 802, an information segmentation processing unit 803, a generation unit 804, and a storage unit 805. The first acquisition unit 801 is configured to acquire multi-version image information, wherein the multi-version image information includes: image identification information and an image version information set; the sorting unit 802 is configured to sort the image version information in the image version information set to generate a candidate image version information sequence; the information segmentation processing unit 803 is configured to perform information segmentation processing on the candidate image version information in the candidate image version information sequence to generate target version information; the generation unit 804 is configured to generate a target database record based on the image identification information and the target version information; and the storage unit 805 is configured to store the target database record in an image version information storage database.
[0167] In some optional implementations of some embodiments, the information separation processing unit 803 is further configured to: add a separator between two adjacent candidate image version information in the candidate image version information sequence to generate the target version information.
[0168] In some optional implementations of some embodiments, the above-mentioned target database record includes: a record primary key; and the above-mentioned generation unit 804 is further configured to: generate the above-mentioned record primary key based on the above-mentioned image identification information; generate the above-mentioned target database record based on the above-mentioned record primary key and the above-mentioned target version information.
[0169] It is understood that the units described in the device 800 are similar to those in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 800 and the units included therein, and will not be repeated here.
[0170] Further references Figure 9 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an information push device. These device embodiments are similar to Figure 6 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0171] like Figure 9 As shown, the information push device 900 of some embodiments includes: a second acquisition unit 901, configured to acquire an image acquisition request; a request parsing unit 902, configured to perform request parsing on the above-mentioned image acquisition request to parse out the target image identification information and target application version information included in the above-mentioned image acquisition request; a third acquisition unit 903, configured to acquire a database record matching the above-mentioned target image identification information from the image version information storage database as a candidate database record; a parsing unit 904, configured to parse out the image address information matching the above-mentioned target application version information from the above-mentioned candidate database record as the target image address information; a sending unit 905, configured to send the above-mentioned target image address information to the target terminal, so that the above-mentioned target terminal loads and displays the image corresponding to the above-mentioned target image address information.
[0172] Optionally, the image acquisition request includes: a data field; and the request parsing unit 902 is further configured to: parse the target image identification information and the target application version information from the data field according to the field identifiers corresponding to the target image identification information and the target application version information.
[0173] Optionally, the parsing unit is further configured to: perform information decoding processing on the target application version information to generate decoded target application version information; and filter out image address information matching the decoded target application version information from the candidate database records as the target image address information.
[0174] Optionally, the above-mentioned parsing unit 904 is further configured to: perform record segmentation on the above-mentioned candidate database records to generate a candidate image version information sequence; perform the following processing steps based on the candidate image version information sequence: determine the image version information at the first target position in the candidate image version information sequence as the image version information to be compared; in response to determining that the application version corresponding to the above-mentioned decoded target application version information is consistent with the image version corresponding to the above-mentioned image version information to be compared, parse the image address information from the above-mentioned image version information to be compared as the above-mentioned target image address information.
[0175] Optionally, the above-mentioned parsing unit 904 is further configured to: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is smaller than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the second target position and the first target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0176] Optionally, the above-mentioned parsing unit 904 is further configured to: in response to determining that the application version corresponding to the above-mentioned decoded target application version information is greater than the image version corresponding to the above-mentioned image version information to be compared, the candidate image version information between the first target position to the third target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the above-mentioned processing steps are executed again.
[0177] It is understood that the units described in the device 900 are similar to those in the reference Figure 6 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 900 and the units included therein, and will not be repeated here.
[0178] Reference below Figure 10 , which shows an electronic device suitable for implementing some embodiments of the present disclosure (such as Figure 1 The structural diagram of the computing device 101)1000 is shown. Figure 10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0179] like Figure 10As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0180] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Figure 10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead. Figure 10 Each block shown in the figure may represent one device, or may represent multiple devices as needed.
[0181] In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of some embodiments of the present disclosure are performed.
[0182] It should be noted that the computer-readable medium described in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0183] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0184] The computer-readable medium may be included in the electronic device, or may exist independently and not be incorporated into the electronic device. The computer-readable medium carries one or more programs. When executed by the electronic device, the electronic device: obtains multi-version image information, wherein the multi-version image information includes image identification information and an image version information set; sorts the image version information in the image version information set to generate a candidate image version information sequence; performs information separation processing on the candidate image version information in the candidate image version information sequence to generate target version information; generates a target database record based on the image identification information and the target version information; and stores the target database record in an image version information storage database. Obtain an image acquisition request; parse the image acquisition request to obtain target image identification information and target application version information included in the image acquisition request; obtain a database record matching the target image identification information from an image version information storage database as a candidate database record; parse image address information matching the target application version information from the candidate database record as target image address information; send the target image address information to a target terminal so that the target terminal loads and displays an image corresponding to the target image address information.
[0185] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0186] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0187] The units described in some embodiments of the present disclosure may be implemented in software or hardware. The units described may also be provided in a processor. For example, they may be described as follows: a processor including a first acquisition unit, a sorting unit, an information segmentation processing unit, a generation unit, and a storage unit. The names of these units do not, in some cases, limit the units themselves. For example, the storage unit may also be described as a "unit for storing target database records in an image version information storage database."
[0188] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0189] The above description is only an illustration of some preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.
Claims
1. A multi-version image processing method, comprising: Acquire multi-version image information, wherein the multi-version image information includes: image identification information and image version information set; performing version parsing on the image version information in the image version information set to generate a version number and obtain a version number sequence; and sorting the image version information in the image version information set using a target sorting algorithm according to the version number sequence to generate a candidate image version information sequence; performing information separation processing on candidate image version information in the candidate image version information sequence to generate target version information, wherein the candidate image version information in the candidate image version information sequence includes: image address information and application version information; generating a target database record according to the image identification information and the target version information; The target database record is stored in an image version information storage database.
2. The method according to claim 1, wherein The performing information separation processing on the candidate image version information in the candidate image version information sequence to generate target version information includes: A separator is added between two adjacent candidate image version information in the candidate image version information sequence to generate the target version information.
3. The method according to claim 1, wherein The target database record includes: a record primary key; and Generating a target database record according to the image identification information and the target version information includes: generating the record primary key according to the image identification information; The target database record is generated according to the record primary key and the target version information.
4. The method according to claim 1, further comprising: Get image acquisition request; Parsing the image acquisition request to obtain target image identification information and target application version information included in the image acquisition request; Acquire a database record matching the target image identification information from an image version information storage database as a candidate database record; Parsing image address information that matches the target application version information from the candidate database record as target image address information; The target image address information is sent to a target terminal, so that the target terminal loads and displays an image corresponding to the target image address information.
5. The method according to claim 4, wherein The image acquisition request includes: a data field; and The request parsing of the image acquisition request to parse out the target image identification information and target application version information included in the image acquisition request includes: parsing the target image identification information and the target application version information from the data field according to the field identifiers corresponding to the target image identification information and the target application version information.
6. The method according to claim 4, wherein: The step of parsing the image address information matching the target application version information from the candidate database record as the target image address information includes: Performing information decoding processing on the target application version information to generate decoded target application version information; Image address information matching the decoded target application version information is screened out from the candidate database records as the target image address information.
7. The method according to claim 6, wherein: The step of selecting image address information matching the decoded target application version information from the candidate database records as the target image address information includes: Performing record segmentation on the candidate database records to generate a candidate image version information sequence; Based on the candidate image version information sequence, the following processing steps are performed: Determine the image version information at the first target position in the candidate image version information sequence as the image version information to be compared; In response to determining that the application version corresponding to the decoded target application version information is consistent with the image version corresponding to the to-be-compared image version information, image address information is parsed from the to-be-compared image version information as the target image address information.
8. The method according to claim 7, wherein: The step of selecting image address information matching the decoded target application version information from the candidate database records as the target image address information further includes: In response to determining that the application version corresponding to the decoded target application version information is smaller than the image version corresponding to the image version information to be compared, the candidate image version information between the second target position and the first target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the processing steps are executed again.
9. The method according to claim 7, wherein: The step of selecting image address information matching the decoded target application version information from the candidate database records as the target image address information further includes: In response to determining that the application version corresponding to the decoded target application version information is greater than the image version corresponding to the image version information to be compared, the candidate image version information between the first target position to the third target position of the candidate image version information sequence is formed into a new candidate image version information sequence, and the new candidate image version information sequence is used as the candidate image version information sequence, and the processing steps are executed again.
10. A multi-version image processing device, comprising: A first acquiring unit is configured to acquire multi-version image information, wherein the multi-version image information includes: image identification information and image version information set; a sorting unit configured to perform version parsing on the image version information in the image version information set to generate version numbers and obtain a version number sequence; and sort the image version information in the image version information set using a target sorting algorithm based on the version number sequence to generate a candidate image version information sequence; an information separation processing unit configured to perform information separation processing on candidate image version information in the candidate image version information sequence to generate target version information, wherein the candidate image version information in the candidate image version information sequence includes: image address information and application version information; a generating unit configured to generate a target database record according to the image identification information and the target version information; The storage unit is configured to store the target database record in the image version information storage database.
11. The apparatus according to claim 10, further comprising: a second acquiring unit, configured to acquire an image acquisition request; a request parsing unit configured to perform request parsing on the image acquisition request to parse out target image identification information and target application version information included in the image acquisition request; a third acquiring unit configured to acquire, from an image version information storage database, a database record matching the target image identification information as a candidate database record; a parsing unit configured to parse the candidate database record to obtain image address information matching the target application version information as target image address information; The sending unit is configured to send the target image address information to a target terminal, so that the target terminal loads and displays the image corresponding to the target image address information.
12. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
13. A computer-readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Data synchronization method and apparatus
CN109413127A
Data processing method and device, computer readable storage medium and computer equipment
CN112905191A