Picture processing method and device, equipment, medium and product

By transmitting only the structured information of historical images during server system switching, the problems of image corruption and slow switching speed during the migration of old systems are solved, achieving efficient data transmission and querying.

CN121833984APending Publication Date: 2026-04-10CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-19
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

When migrating massive amounts of images from an old server system to a new system, compression and decompression can corrupt the images, resulting in slow system switching and impacting the timeliness and query efficiency of the new system.

Method used

During system switching, only the structured information of historical images is transmitted, not the images themselves. A reverse proxy service is established between the target server and the historical server to reduce the load on the target server and improve data transmission efficiency.

Benefits of technology

It improved system switching efficiency and image query efficiency, reduced the load on the target server, and ensured the reliability and timeliness of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121833984A_ABST
    Figure CN121833984A_ABST
Patent Text Reader

Abstract

The invention provides a picture processing method and device, equipment, a medium and a product, and relates to the technical field of data processing, and the specific technical scheme is as follows: in a system switching process of a target server and a historical server, the historical server transmits first structured information of a historical picture to the target server, and the target server transmits the first structured information of the historical picture to the target server in each piece of index information; and taking the index information matched with the picture query condition as target index information, and sending the target index information to the terminal. And the terminal queries the target query picture in a historical server or a target server based on the target index information. According to the method, the historical picture does not need to be transmitted, only the first structured information needs to be transmitted, the data size of the first structured information is smaller than that of the historical picture, the data transmission time in the system switching process is saved, the data transmission efficiency in the system switching process is improved, and then the system switching efficiency is improved; and the target server can execute the picture query service as soon as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to an image processing method, apparatus, device, medium, and product. Background Technology With the progress of digitalization, outdated server systems can no longer meet the ever-changing data query needs, and it is necessary to gradually switch out the outdated server systems to new server systems.

[0002] In traditional technology, migrating massive amounts of images from an old system to a designated directory in a new system requires image compression during transmission. Image compression and decompression can lead to image corruption, necessitating image recovery. The slow system switchover speed means the new system needs a considerable amount of time before it can begin performing image query operations, resulting in poor real-time performance. Summary of the Invention

[0003] This application provides an image processing method, apparatus, device, medium, and product that can improve system switching efficiency, enabling the target server after switching to execute image query services as quickly as possible.

[0004] Firstly, an image processing method is provided, applied to an image processing system. The system includes a terminal, a target server connected to the terminal, and a historical server connected to the terminal, where the historical server stores historical images. The method includes: during system switching between the target server and the historical server, the historical server transmits first structured information of the historical images to the target server. The data size of the first structured information is smaller than that of the historical images. Firstly, there is no need to transmit the historical images; only the first structured information needs to be transmitted. Since the data size of the first structured information is smaller than that of the historical images, data transmission time is saved, improving data transmission efficiency and thus enhancing system switching efficiency. Secondly, there is no need to compress and decompress the first structured information, saving time consumed by image compression, decompression, and image recovery, further improving system switching efficiency and enabling the target server to execute image query operations as quickly as possible. Finally, the target server stores the target image, second structured information of the target image, and first structured information transmitted from the historical server. The first structured information includes index information of the historical images, and the second structured information includes index information of the target image, providing data support for subsequent image queries on the target server and effectively improving image query efficiency.

[0005] The terminal acquires the picture query condition in response to the trigger operation of the operator for the resource query interface, and sends a target request to the target server, the target request including the query condition. The operator opens the picture query through the terminal interface without understanding the switching process of the backend server, thereby reducing the query threshold and improving the user experience.

[0006] The target server, in response to receiving the target request, matches the index information in each index information with the picture query condition as target index information, and sends the target index information to the terminal. The index matching is performed in the target server, thereby effectively improving the efficiency of the index matching.

[0007] After the terminal receives the target index information, the terminal sends a picture query request to the target server in the case that the target index information belongs to the second structured information. The terminal receives the target query picture from the target server, and the target query picture corresponds to the target index information. The terminal constructs the picture query request to share part of the picture query task of the target server, thereby reducing the load of the target server.

[0008] In the case that the target index information belongs to the first structured information, the terminal constructs a picture query request based on the reverse proxy service of the historical server and the target index information, and sends the picture query request to the historical server. The terminal receives the target query picture from the historical server, and the target query picture corresponds to the target index information. The query process of the historical picture depends on the terminal and the historical server, thereby reducing the participation degree of the target server and reducing the load of the target server.

[0009] On one hand, without migrating the pictures in the history server to the target server, the method determines whether the structured information to which the target index information belongs is the target server or the history server, and then sends a picture query request to the target server or the history server, so that the terminal can receive the target query picture from the target server or the history server, the user does not need to pay attention to the query location of the picture, and the corresponding target query picture can be obtained through the trigger operation of the resource query interface, thereby improving the user experience. On the other hand, whether the target index belongs to the first structured information or the second structured information, the target server does not need to construct a picture query request, thereby effectively reducing the system load of the target server. On the other hand, in the case where the target server does not store the historical pictures in the history server and needs to obtain the historical pictures from the history server, the picture query request is constructed based on the reverse proxy service of the history server and the target index information, and the history server does not need to construct the request, thereby reducing the load of the history server to a certain extent. On the other hand, without migrating the massive historical pictures, only the first structured information of the historical pictures needs to be transmitted, thereby avoiding the problem of picture damage caused by the picture transmission process. Meanwhile, the data amount of the first structured information is less than that of the historical pictures, thereby saving the data transmission time, improving the data transmission efficiency, and further improving the switching efficiency of the system, so that the target server can execute the picture query service as soon as possible, and the instantaneity is high.

[0010] In a possible implementation manner of the first aspect, the method further includes: the history server obtaining a structured processing rule of the data from a database in the target server; the history server processing the original picture information of the historical picture according to the structured processing rule to obtain the first structured information of the historical picture; and the history server sending the first structured information to the target server.

[0011] In the scheme, on one hand, the original picture information is processed in a structured manner, and the obtained first structured information meets the data standard of the system of the target server, thereby providing a high-quality and usable data basis for the system of the target server. On the other hand, the processing of the original picture information is completed at the history server, thereby saving the computing resources of the target server, decoupling the information processing logic, and improving the system performance of the target server.

[0012] In a possible implementation manner of the first aspect, the history server performs a marking process on the historical picture to obtain a conversion identifier of the historical picture, and writes the conversion identifier into the index information in the first structured information; after the terminal receives the target index information, in a case where the conversion identifier exists in the target index information, it is determined that the target index information belongs to the first structured information; and in a case where the conversion identifier does not exist in the target index information, it is determined that the target index information belongs to the second structured information.

[0013] In the scheme, first, the historical pictures are marked to obtain the conversion identifiers corresponding to the historical pictures, the belonging relationship between the judgment information and the information is converted into the belonging relationship between the identifier and the information, the judgment complexity is reduced, the judgment time is saved, and the picture query efficiency is improved. Second, the conversion identifier is written into the index information in the first structured information, the difference between the first structured information and other structured information can be intuitively displayed, accurate reference is provided for the user, and the user experience is improved.

[0014] In a possible implementation manner of the first aspect, in response to receiving the target request, the target server takes, as the target index information, the index information matched with the picture query condition from the index information, including: in response to receiving the target request, the target server screens at least two candidate information matched with the picture query condition from the index information; the target server sends the thumbnail corresponding to each candidate information to the terminal; the target server receives the thumbnail trigger parameter from the terminal, the thumbnail trigger parameter being obtained by the terminal in response to the trigger operation of the operator on the thumbnail; and the target server takes, as the target index information, the candidate information matched with the thumbnail trigger parameter from the candidate information.

[0015] In the scheme, first, the picture query condition is used for primary screening, and then the operator is used for secondary screening, so that the screening accuracy is improved. Second, after the picture query condition is used to quickly screen at least two candidate information from the massive index, the target server only sends the thumbnail corresponding to the candidate information to the terminal, the transmission speed is fast, and the overall picture query efficiency is ensured. Third, the user watches the thumbnail and makes a selection through a trigger operation such as clicking or touching. The terminal converts the operation into a thumbnail trigger parameter and sends it back to the target server. The target server accurately locks the one actually selected by the operator according to the trigger parameter, determines it as the target index information, and the target index information reflects the operation of the operator, thereby improving the experience of the operator.

[0016] In a possible implementation of the first aspect, the picture query condition comprises: an associated business condition, a content feature condition, a time state condition and a physical attribute condition; in response to receiving the target request, the target server screens at least two candidate information matching the picture query condition from the index information, comprising: in response to receiving the target request, the target server determines the structured information corresponding to each index information, wherein the structured information comprises associated business information of the picture, content feature information of the picture, time state information of the picture and physical attribute information of the picture, and the picture comprises the target picture and the historical picture; the target server screens, from the structured information, the index information in the structured information matching the associated business condition, the content feature condition, the time state condition and the physical attribute condition as the candidate information.

[0017] In this scheme, first, the structured information is screened from multiple angles based on the associated business condition, the content feature condition, the time state condition and the physical attribute condition, which covers the angles of business context, visual content, life cycle and physical nature, thereby improving the accuracy of picture query. Second, the multi-angle screening is combined with visual re-screening of the operator, thereby further improving the accuracy of screening and the accuracy of picture query.

[0018] In another possible implementation of the first aspect, the historical server transmits the first structured information of the historical picture to the target server, comprising: the historical server determines a communication channel between the historical server and the target server; the historical server transmits the historical picture to the target server in a data transmission mode matching the communication channel; the method further comprises: in the case that an exception occurs in the sending process of the first structured information, the historical server sends the first structured information to the target server according to a timing retransmission time until the first structured information is sent normally or the sending number of the first structured information reaches a preset threshold.

[0019] In this scheme, first, the success condition and the failure condition are set, which avoids meaningless consumption of resources and network congestion of both sides in the case of temporary network failure. Second, the historical server synchronizes the first structured information to the target server, which guarantees the data eventual consistency and realizes reliable synchronization. Third, the first structured information has a retransmission mechanism, which reduces the dependence of the system on the network and environment, reduces the frequency of manual intervention of data synchronization by the operation and maintenance personnel, and improves the overall service availability.

[0020] The second aspect provides a picture processing device, a terminal is connected with a historical server and a target server respectively, and the historical server stores a historical picture, the device comprises: The information transmission module is configured to transmit the first structured information of the historical pictures to the target server during a system switching process of the target server and the historical server; the target server stores the target pictures, second structured information of the target pictures, and the first structured information transmitted from the historical server; the first structured information includes index information of the historical pictures, and the second structured information includes index information of the target pictures; and a data amount of the first structured information is less than a data amount of the historical pictures. The condition acquisition module is configured to acquire picture query conditions in response to a triggering operation of an operator on the resource query interface, and send a target request including the query conditions to the target server. The condition matching module is configured to, in response to receiving the target request, match the query conditions with index information in each of the index information, and send the matched index information as target index information to the terminal. The target query module is configured to, after receiving the target index information, send a picture query request to the target server in a case where the target index information belongs to the second structured information, and receive a target query picture corresponding to the target index information from the target server. The historical query module is configured to, in a case where the target index information belongs to the first structured information, construct a picture query request based on a reverse proxy service of the historical server and the target index information, and send the picture query request to the historical server, and receive a target query picture corresponding to the target index information from the historical server.

[0021] In a third aspect, a picture processing device is provided, which includes a memory and at least one processor. The memory is in communication connection with the processor. The memory is configured to store computer program code including computer instructions. When the processor executes the computer instructions, the electronic device performs the method of the first aspect and any possible implementation manner thereof.

[0022] In a fourth aspect, a computer readable storage medium is provided, which stores computer instructions. When the computer instructions are executed by a processor, the method of the first aspect and any possible implementation manner thereof is implemented.

[0023] In a fifth aspect, a computer program product is provided, which, when executed on a computer / processor of a computer, implements the method of the first aspect and any possible implementation manner thereof. The computer can be the picture processing device of the third aspect and any possible implementation manner thereof.

[0024] It can be understood that the beneficial effects achieved by the picture processing apparatus of the second aspect, the picture processing device of the third aspect, the computer readable storage medium of the fourth aspect, and the computer program product of the fifth aspect can refer to the beneficial effects in the first aspect and any possible implementation manner thereof, and details are not described herein. BRIEF DESCRIPTION OF DRAWINGS

[0025] Figure 1 A structural schematic diagram of a picture processing system provided by an embodiment of the present application is shown in the figure. Figure 2 A flowchart of a picture processing method provided by an embodiment of the present application is shown in the figure. Figure 3 A flowchart of an image local storage method provided by an embodiment of the present application is shown in the figure. Figure 4 A structural schematic diagram of a picture processing apparatus provided by an embodiment of the present application is shown in the figure. Figure 5 A structural schematic diagram of a picture processing device provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0026] Hereinafter, the terms "first" and "second" are only used for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments, the meaning of "a plurality of" is two or more, unless otherwise specified.

[0027] The exemplary embodiments will be described in detail below, and examples thereof are shown in the accompanying drawings. In the following description of the embodiments, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application, as detailed in the appended claims.

[0028] In the technical solutions provided by the embodiments of the present application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data comply with relevant laws and regulations and do not violate public order and good customs.

[0029] It should be noted that in the embodiments of the present application, some industry existing solutions, components, models, etc. may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0030] With the process of digitalization, image systems become more and more important, and image materials are more and more stored in the form of electronic pictures. Taking the provident fund business as an example, the original image system may no longer be able to meet the business requirements, or the original supplier contract expires and is not renewed, so the provident fund center needs to replace the image system supplier.

[0031] In the first aspect, how to correctly view the mass of historical inventory pictures in the new supplier system becomes a key problem.

[0032] In the second aspect, when the traditional image system is upgraded, the mode of manually supplementing scanning is often used to re-enter the image data in the new system, which is time-consuming and laborious and cannot guarantee the complete consistency of the image picture data.

[0033] In the third aspect, in the traditional technology, the mass of pictures are migrated from the old system to the specified directory of the new system, and the migration process needs to compress and transmit the pictures. Compressing and decompressing the pictures may cause the pictures to be damaged, and the pictures need to be restored. The system switching speed is slow, which leads to the new system needing to go through a long system switching time before it can start to execute the picture query business, and the immediacy is poor.

[0034] In the picture processing method provided by the embodiments of the present application, for the first aspect, the terminal sends a target request to the target server, the target server returns target index information to the terminal, and the terminal constructs a picture query request based on the reverse proxy service of the historical server in the case that the target index information belongs to the first structured information. The historical picture (i.e. the historical inventory picture) can be queried in the historical server.

[0035] For the second aspect, the first structured information of the historical picture is transmitted to the target server by the historical server, and the historical picture does not need to be transmitted. In the case that the target index information belongs to the first structured information, the historical picture is queried in the historical server. Therefore, it is not necessary to supplement the historical picture to the target server.

[0036] For the third aspect, first, whether the target index belongs to the first structured information or the second structured information, the target server does not need to construct a picture query request, effectively reducing the system load of the target server. Second, in the case where the target server does not store the historical pictures in the historical server and needs to obtain the historical pictures from the historical server, the picture query request is constructed based on the reverse proxy service of the historical server and the target index information, without the historical server constructing the request, which to some extent reduces the load of the historical server. Third, without migrating a large number of historical pictures, only the first structured information of the historical pictures needs to be transmitted, avoiding the problem of picture damage that may be caused in the picture transmission process. At the same time, the data amount of the first structured information is less than that of the historical pictures, saving the data transmission time and improving the data transmission efficiency, and further improving the switching efficiency of the system.

[0037] The picture processing method provided by the embodiments of the present application can be applied to a picture processing system as shown in Figure 1 The system includes a terminal 101, a target server 102 connected with the terminal 101, and a historical server 103 connected with the terminal 101, and the historical server 103 stores historical pictures.

[0038] In the system switching process of the target server 102 and the historical server 103, the historical server 103 transmits the first structured information of the historical pictures to the target server 102; the target server 102 stores target pictures, second structured information of the target pictures, and the first structured information transmitted from the historical server 103; the first structured information includes index information of the historical pictures, the second structured information includes index information of the target pictures, and the data amount of the first structured information is less than that of the historical pictures.

[0039] The terminal 101 acquires a picture query condition in response to a triggering operation of an operator on a resource query interface, and sends a target request including the query condition to the target server 102.

[0040] The target server 102, in response to receiving the target request, matches the index information in each index information with the picture query condition as target index information, and sends the target index information to the terminal 101.

[0041] After the terminal 101 receives the target index information, in the case where the target index information belongs to the second structured information, the terminal 101 sends a picture query request to the target server 102; and the terminal 101 receives a target query picture from the target server 102, and the target query picture corresponds to the target index information.

[0042] The terminal 101 constructs a picture query request based on the reverse proxy service of the history server 103 and the target index information in a case where the target index information belongs to the first structured information, and sends the picture query request to the history server 103; and the terminal 101 receives a target query picture from the history server 103, the target query picture corresponding to the target index information.

[0043] The terminal 101 can be a processor with computing capability, and the target server 102 and the history server 103 can be implemented by an independent server or a server cluster composed of multiple servers.

[0044] The picture processing method provided by the embodiment of the present application can be applied to different business scenarios.

[0045] For example, in a financial service scenario, the picture can be a financial approval picture of a financial service, a financial bank picture, etc. The history server and the target server can be servers of old systems and servers of new systems corresponding to a financial institution.

[0046] For another example, in a medical service scenario, the picture can be a medical approval picture of a medical service, a medicine information display picture, etc. The history server and the target server can be servers of old systems and servers of new systems corresponding to a hospital or other medical institution.

[0047] For another example, in a medical service scenario, the picture can be a medical approval picture of a medical service, a medicine information display picture, etc. The history server and the target server can be servers of old systems and servers of new systems corresponding to a hospital or other medical institution.

[0048] Therefore, the embodiment of the present application does not limit the specific business scenario.

[0049] In one embodiment, as shown in Figure 2 , a picture processing method is provided, which can be applied to a picture processing device in Figure 1 , or a server, a cloud computing platform, an edge computing device, or a chip, a device with computing capability, etc. with data processing capability. The embodiment of the present application does not limit the specific form of the method execution device, and the method specifically includes: S201, in the system switching process of the target server and the history server, the history server transmits first structured information of a historical picture to the target server.

[0050] In order to reduce the amount of data to be transmitted, the historical server can transmit the first structured information of the historical picture to the target server. By transmitting only the first structured information, the historical picture does not need to be transmitted, the data transmission efficiency is improved, and the system switching efficiency is improved, so that the target server can perform the picture query service as soon as possible.

[0051] It can be understood that the historical picture and the target picture can also be replaced by a video or other image forms.

[0052] In some embodiments, the historical server can be a server in an old system, for example, a server in an old system of a provident fund center or a server in a system of a previous supplier of the provident fund center. Similarly, the target server can be a server in a new system, for example, a server in a new system of the provident fund center or a server in a system of a current supplier of the provident fund center.

[0053] The historical picture can be a picture stored in the historical server. The target picture can be a picture stored in the target server. For example, the historical picture can be a picture stored in a server in an old system of a provident fund center, such as a provident fund approval picture, an input picture of a provident fund service, etc.

[0054] The first structured information can be structured information of the historical picture. The first structured information can include index information and other description information of the historical picture. The other description information can be associated service information, content feature information, time state information, and physical attribute information of the historical picture.

[0055] In one possible implementation, during the system switching of the target server and the historical server, the historical server can send the index information, the associated service information, the content feature information, the time state information, and the physical attribute information of the historical picture to the target server. Without the need to transmit the historical picture, only the first structured information needs to be transmitted, the problem of picture damage caused by the transmission of the historical picture is avoided, and the data amount of the first structured information is less than that of the historical picture, so the transmission efficiency is higher, the system switching efficiency is improved to a certain extent, and the target server can perform the picture query service as soon as possible.

[0056] In one possible implementation, the historical server can perform a pre-data conversion processing on the original picture information of the historical picture to obtain the first structured information, which specifically includes: during the system switching of the target server and the historical server, the historical server can obtain a structured processing rule of data from a database in the target server. The historical server processes the original picture information of the historical picture according to the structured processing rule to obtain the first structured information of the historical picture. The historical server sends the first structured information to the target server.

[0057] In a possible implementation, after obtaining the first structured information, the history server can send the first structured information to the target server, which can specifically include: the history server determines a communication channel between the history server and the target server. The history server sends the first structured information to the target server in a data transmission mode matched with the communication channel. Further, in the case of abnormal sending, the history server sends the first structured information to the target server according to a timing retransmission time until the first structured information is normally sent or the number of times of sending the first structured information reaches a preset threshold.

[0058] The data amount of the first structured information is less than that of the history picture, which saves data transmission time, improves data transmission efficiency, and further improves system switching efficiency, so that the target server can execute the picture query service as soon as possible.

[0059] The second structured information can be structured information of the target picture. The second structured information can be index information and other description information of the target picture. The other description information can be associated service information, content feature information, time state information, and physical attribute information of the target picture.

[0060] In a possible implementation, during system switching of the target server and the history server, the target server stores the target picture, index information, associated service information, content feature information, time state information, and physical attribute information of the target picture.

[0061] In an example, as shown in FIG. 1, a method for local storage of images is provided, which includes the following steps. Figure 3 S201, a history server transmits first structured information of a history picture to a target server. The history server is a server of an old system.

[0062] In the embodiment of the present application, first, the history picture does not need to be transmitted, only the first structured information needs to be transmitted, the data amount of the first structured information is less than that of the history picture, which saves data transmission time, improves data transmission efficiency, and further improves system switching efficiency, so that the target server can execute the picture query service as soon as possible. Second, the first structured information does not need to be compressed and decompressed, which saves the time consumed by picture compression, decompression, and picture recovery, and further improves picture query efficiency. Finally, the target server stores the target picture, second structured information of the target picture, and the first structured information transmitted from the history server, the first structured information includes index information of the history picture, and the second structured information includes index information of the target picture, which provides data support for subsequent picture query of the target server and effectively improves picture query efficiency.

[0063] In order to ensure the storage requirements of the data in the target server, the information in the historical server needs to be structured to obtain the first structured information, thereby ensuring the standardization and consistency of the data. Thus, in some embodiments, the historical server can preprocess the historical picture to obtain the first structured information before transmitting the first structured information.

[0064] For example, the historical server can preprocess the historical picture to obtain the first structured information, specifically including: the historical server obtains a structured processing rule of data from a database in the target server. The historical server processes the original picture information of the historical picture according to the structured processing rule to obtain the first structured information of the historical picture.

[0065] The structured processing rule can be a rule configured for the data structured processing process. The structured processing rule can include processing rules respectively configured for index data, associated business data, content feature data, time state data, and physical attribute data. For example, the structured processing rule can be a scaling processing rule for pictures with a size greater than a preset size, and a rule for sending the scaled pictures to the target server.

[0066] The original picture information can include index data, associated business data, content feature data, time state data, and physical attribute data. The index data can be storage path data corresponding to the picture, the associated business data can be data corresponding to the associated business of the picture (such as user ID, order ID, etc.), the content feature data can be visual content or AI analysis result of the picture (such as classification of the picture as an approval category, and label of the picture as a provident fund approval), the time state data can be time-related data of the picture (such as upload time of the picture, generation time of the picture, and state of the picture as having been reviewed or not reviewed, etc.), and the physical attribute data can be attribute data of the picture itself (such as format of the picture, size occupied by the picture, size and resolution of the picture).

[0067] In one possible implementation, the historical server obtains a structured processing rule of data from a database in the target server. The historical server obtains original picture information (index data, associated business data, content feature data, time state data, and physical attribute data, etc.) of the historical picture. The historical server respectively processes the index data, the associated business data, the content feature data, the time state data, and the physical attribute data according to the structured processing rule to obtain the first structured information of the historical picture. The historical server transmits the first structured information to the target server.

[0068] In this embodiment, first, the original picture information is structured, and the obtained first structured information conforms to the data standard of the system of the target server, thereby providing a high-quality and usable data basis for the system of the target server. Second, the processing of the original picture information is completed at the historical server, thereby saving the computing resources of the target server, decoupling the information processing logic, and improving the performance of the system of the target server.

[0069] In some embodiments, after obtaining the first structured information, the historical server can send the first structured information to the target server during the system switching process of the target server and the historical server, so as to realize the data consistency (the first structured information) of the historical server and the target server.

[0070] For example, the historical server transmits the first structured information of the historical picture to the target server, specifically including: the historical server determines a communication channel between the historical server and the target server. The historical server transmits the first structured information of the historical picture to the target server in a data transmission mode matched with the communication channel. Further, in the case that an exception occurs in the sending process of the first structured information, the historical server sends the first structured information to the target server according to a timing retransmission time until the sending of the first structured information is normal or the sending number of the first structured information reaches a preset threshold.

[0071] The communication channel can be a specific channel for communication between the historical server and the target server. The way of establishing the communication channel can include protocol handshake, authentication and negotiation. The protocol handshake can be a handshake connection between the historical server and the target server based on the TCP / IP protocol. The authentication and negotiation can be identity verification (such as using API Key, certificate) between the historical server and the target server, and negotiation of protocol version, encryption method, compression format and other parameters for subsequent communication.

[0072] In one possible implementation, the historical server completes the handshake connection with the target server based on the TCP / IP protocol. The historical server and the target server perform identity verification (such as using API Key, certificate), and negotiate the protocol version, encryption method, compression format and other parameters for subsequent communication. After completing the handshake connection, identity verification and negotiation, the historical server can determine that the communication channel between the historical server and the target server has been established.

[0073] The data transmission mode matched with the communication channel can be the data transmission mode of the first structured information. For example, if the channel is a high-bandwidth and low-latency intranet dedicated line, batch, non-compression or low-compression mode can be used for fast transmission. If the channel is a public network or has limited bandwidth, data fragmentation, high compression rate, or even differential synchronization can be used for transmission.

[0074] The abnormality of the sending process of the first structured information can include network interruption, unresponsive target server, data check failure, sending timeout, etc.

[0075] The timing re-sending time can be a time configured for a re-sending mechanism of the first structured information.

[0076] The preset threshold can be a threshold set for the sending times. It can be understood that the preset threshold can be a failure condition, and the success condition can be that the first structured information is sent normally.

[0077] In one possible implementation, in the case that the sending process of the first structured information is abnormal, the history server sends the first structured information to the target server according to the timing re-sending time, avoiding meaningless consumption of resources of both parties and network congestion in the case of temporary network failure. Further, the first structured information is sent to the target server until the first structured information is sent normally (success condition) or the sending times of the first structured information reach the preset threshold (failure condition).

[0078] In this embodiment, first, the success condition and the failure condition are set, avoiding meaningless consumption of resources of both parties and network congestion in the case of temporary network failure. Second, the history server synchronizes the first structured information to the target server, ensuring data eventual consistency and realizing reliable synchronization. Third, the re-sending mechanism of the first structured information is provided, reducing the dependence of the system on the network and the environment, reducing the frequency of manual intervention of data synchronization by the operation and maintenance personnel, and improving the overall service availability.

[0079] S202, the terminal acquires picture query conditions in response to a trigger operation of an operator on a resource query interface, and sends a target request to a target server.

[0080] When picture query is needed, the terminal acquires picture query conditions in response to a trigger operation of an operator on a resource query interface; and the terminal sends a target request containing the query conditions to a target server.

[0081] In some embodiments, the resource query interface can be a query interface configured for pictures or videos and the like. For example, the resource query interface can include a query condition area, a query result display area, etc.

[0082] The trigger operation can be a specific operation on the resource query interface. For example, the trigger operation can be a specific operation on the query condition area, the query result display area, etc., such as a selection operation, a click operation, a sliding operation, etc.

[0083] The picture query condition can be a query constraint condition for the picture. The picture query condition can include at least one of an associated business condition, a content feature condition, a time state condition, and a physical attribute condition.

[0084] In one possible implementation, the terminal acquires at least one of the associated business condition, the content feature condition, the time state condition, and the physical attribute condition in response to the trigger operation of the operator on the resource query interface, and sends a target request containing the condition to the target server.

[0085] The target request can be a request message sent by the terminal to the target server, and the request type of the target request can be various, such as a type corresponding to a hypertext transfer protocol (HTTP), a type corresponding to a hypertext transfer protocol secure (HTTPS), or other request types.

[0086] In one example, referring to Figure 3 The S202 includes the following steps: S302, the front end acquires the picture query condition in response to the trigger operation of the operator on the resource query interface; and S303, the front end sends a target request to the target server. The front end can be the terminal.

[0087] In the embodiments of the present application, the operator performs operations on the resource query interface. First, the entry is unified, the operator always performs operations through the same terminal interface, and the complex server switching process in the background cannot be felt, the query threshold is reduced, and the user experience is improved. Second, the process is unified, no matter where the final picture comes from, the terminal automatically processes the complex logic of requesting pictures from which server in the back end, and the user experience is improved. Third, the operator starts picture query through the terminal (front end) interface, without understanding the switching process of the back end server, the query threshold is reduced, and the user experience is improved.

[0088] S203, the target server acquires, in response to receiving the target request, index information matched with the picture query condition from the index information, and sends the target index information to the terminal.

[0089] The target server acquires, in response to receiving the target request, index information matched with the picture query condition from the index information of each first structured information and the index information of each second structured information; and the target server sends the target index information to the terminal, so that the terminal performs subsequent processing based on the target index information.

[0090] In some embodiments, the target index information can be index information matched with the picture query condition. Specifically, the index information can be information in the first structured information or information in the second structured information.

[0091] For example, the index information can be a storage path of the picture, and each index information can include a storage path of a historical picture in a historical server and a storage path of a target picture in a target server. In this way, based on the storage paths of the index information, it is determined whether the index information belongs to the first structured information or the second structured information, and then the pictures can be queried in different target servers or historical servers.

[0092] In one possible implementation, the target server, in response to receiving the target request, matches the picture query in the target request with the index information of each first structured information and the index information of each second structured information respectively, and takes the index information matched with the picture query condition as the target index information. The target server sends the target index information to the terminal.

[0093] In one example, referring to Figure 3 The S203 specifically includes: S303, the front end sends a target request to the target server; S304, in response to the received target request, the target server queries in the database of the target server, and in each index information, takes the index information matched with the picture query condition as the target index information; S305, the target server sends the target index information to the front end. The target index information can include picture path information and new and old system data.

[0094] In the embodiments of the present application, the target index information is sent to the terminal, so that the terminal performs reprocessing based on the target index information. The index matching is performed in the target server, which effectively improves the efficiency of index matching.

[0095] In some embodiments, in order to ensure that the target index information can be accurately screened out in each index information, a thumbnail can be introduced to re-screen the index information, so as to improve the accuracy of index information screening.

[0096] Specifically, the S203, the target server, in response to receiving the target request, takes the index information matched with the picture query condition as the target index information in each index information, specifically includes: the target server, in response to receiving the target request, screens at least two candidate information matched with the picture query condition in each index information. The target server sends the thumbnail corresponding to each candidate information to the terminal. The target server receives a thumbnail trigger parameter from the terminal, and the thumbnail trigger parameter is obtained by the terminal in response to a trigger operation of the operator on the thumbnail. The target server takes the candidate information matched with the thumbnail trigger parameter as the target index information in each candidate information.

[0097] The candidate information can be image query condition matching index information.

[0098] The thumbnail can be a reduced image corresponding to the image to which the candidate information belongs. The thumbnail can be a reduced image obtained by pre-compressing a historical image or a target image corresponding to the candidate information.

[0099] The thumbnail trigger parameter can be a trigger parameter obtained by the terminal in response to a trigger operation of the operator on the thumbnail.

[0100] In one specific implementation, before the target server sends the thumbnail corresponding to each candidate information to the terminal, the target server can compress each target image to obtain a target thumbnail corresponding to each target image. The target server can obtain a historical thumbnail corresponding to each historical image from the historical server. Further, the target server sends the thumbnail (which can include the target thumbnail and the historical thumbnail) corresponding to each candidate information to the terminal. The terminal can obtain a thumbnail trigger parameter in response to a trigger operation of the operator on the thumbnail. The terminal sends the thumbnail trigger parameter to the target server. The target server determines, among the candidate information, a candidate information matching the thumbnail trigger parameter as the target index information.

[0101] In one specific implementation, the target server can not obtain the historical thumbnail corresponding to each historical image from the historical server, but can convert other description information in the first structured information of the historical image based on generative artificial intelligence (GenAI) to obtain a historical thumbnail corresponding to the historical image. The size and storage space of the historical thumbnail are smaller than those of the historical image.

[0102] In this embodiment, first, the image query condition is used for preliminary screening, and then the operator is used for secondary screening, thereby improving the screening accuracy. Second, after at least two candidate information are quickly screened from the massive index through the image query condition, the target server only sends the thumbnail corresponding to the candidate information to the terminal, thereby improving the transmission speed and ensuring the overall image query efficiency. Third, the user watches the thumbnail and makes a selection through a trigger operation such as clicking or touching. The terminal converts this operation into a thumbnail trigger parameter and sends it back to the target server. The target server accurately locks the one actually selected by the operator according to the trigger parameter, and determines it as the target index information. The target index information reflects the operation of the operator, thereby improving the experience of the operator.

[0103] In some embodiments, in order to accurately screen each index information, the structured information of the multiple dimensions corresponding to the index information can be screened, and then the candidate information is screened from each index information according to the screening result.

[0104] In a possible technical solution, in the above step, the target server screens at least two candidate information matching the picture query condition from each index information in response to receiving the target request, and specifically includes: the target server determines the structured information corresponding to each index information in response to receiving the target request, wherein the picture query condition includes: the associated business condition, the content feature condition, the time state condition and the physical attribute condition. The structured information includes the associated business information of the picture, the content feature information of the picture, the time state information of the picture and the physical attribute information of the picture, and the picture includes the target picture and the historical picture. The target server screens the index information in the structured information as the candidate information, which matches the associated business information with the associated business condition, the content feature information with the content feature condition, the time state information with the time state condition, and the physical attribute information with the physical attribute condition.

[0105] The associated business information can be the associated business data of the picture after structured processing. The associated business data can be the data of the associated business corresponding to the picture (such as user ID, order ID, etc.).

[0106] The content feature information can be the content feature data of the picture after structured processing. The content feature data can be the visual content or AI analysis result of the picture (such as the classification of the picture is the approval category, and the label of the picture is the public accumulation fund approval).

[0107] The time state information can be the time state data of the picture after structured processing. The time state data can be the time related data of the picture (such as the upload time of the picture, the generation time of the picture, the state of the picture is audited or unverified, etc.).

[0108] The physical attribute information can be the physical attribute data of the picture after structured processing. The physical attribute data can be the attribute data of the picture itself (such as the format of the picture, the size occupied by the picture, the size and resolution of the picture).

[0109] The associated business condition can be a condition configured for the associated business information of the picture, such as user ID is 001-100.

[0110] The content feature condition can be a condition configured for the content feature information of the picture, such as the classification of the picture is the approval category, and the label of the picture is the XX business approval.

[0111] The time state condition can be a condition configured for time state information of the picture, such as that the picture upload time is before December 1, the generation time of the picture is within one month, or the state of the picture is an unreviewed state.

[0112] The physical property condition can be a condition configured for physical property information of the picture, such as that the format of the picture is a JPG format, the size of the picture is less than 1 Mb, or the size and resolution of the picture are less than a set size and a set resolution.

[0113] The structured information can include first structured information of the historical pictures corresponding to the respective index information and second structured information of the target picture.

[0114] In one possible implementation, in response to receiving the target request, the target server determines the structured information corresponding to the respective index information, wherein the structured information includes the associated business information, the content feature information, the time state information, and the physical property information of the picture, the picture includes the target picture and the historical pictures, and the multi-dimensional and multi-angle information is acquired to facilitate subsequent comprehensive screening and matching, thereby improving the accuracy of picture query.

[0115] In one possible implementation, after determining the structured information corresponding to the respective index information, the target server matches, in the structured information, the associated business information with the associated business condition, the content feature information with the content feature condition, the time state information with the time state condition, and the physical property information with the physical property condition, and takes the structured information as target structured information. The target server takes the index information in the target structured information as candidate information.

[0116] In one possible implementation, after taking the index information in the target structured information as candidate information, the target server sends the thumbnail corresponding to the respective candidate information to the terminal. The target server receives a thumbnail trigger parameter from the terminal, the thumbnail trigger parameter being acquired by the terminal in response to a trigger operation of the operator on the thumbnail. The target server takes, in the candidate information, the candidate information matching the thumbnail trigger parameter as target index information.

[0117] In this embodiment, first, the structured information is screened in multiple angles based on the associated business condition, the content feature condition, the time state condition, and the physical property condition, which covers the angles of business context, visual content, life cycle, and physical essence, thereby improving the accuracy of picture query. Second, the multi-angle screening is combined with visual re-screening of the operator, thereby further improving the accuracy of screening and the accuracy of picture query.

[0118] S204, after the terminal receives the target index information, in the case that the target index information belongs to the second structured information, the terminal sends a picture query request to the target server, and the terminal receives the target query picture from the target server.

[0119] After the terminal receives the target index information, the terminal determines whether the target index information belongs to the second structured information or the first structured information. In the case that the target index information belongs to the second structured information, it indicates that the picture corresponding to the target index information is the target picture, and thus the terminal sends a picture query request to the target server. The target server processes the picture query request, obtains the target query picture, and returns the target query picture to the terminal. The terminal receives the target query picture from the target server, and the target query picture corresponds to the target index information.

[0120] In some embodiments, the target index information belonging to the second structured information can indicate that the picture corresponding to the target index information is the target picture stored in the target server, and thus the terminal can send a picture query request to the target server to request to obtain the picture.

[0121] The picture query request can be a request message sent by the terminal to the target server, such as a hypertext transfer protocol message, a hypertext transfer protocol secure message, etc. The protocol type of the request message is not limited in the embodiments of the present application.

[0122] In one possible implementation, after the terminal receives the target index information, in the case that the target index information belongs to the second structured information, the terminal sends a picture query request to the target server. The target server performs path query according to the target index information contained in the picture query request, obtains the target query picture corresponding to the target index information, and sends the target query picture to the terminal. The terminal can receive the target query picture from the target server and display the target query picture.

[0123] In one example, referring to Figure 3 The above S204 specifically includes: S306, the front end determines whether the target index information belongs to the first structured information or the second structured information.

[0124] For example, the front end can determine whether the target index information belongs to the first structured information or the second structured information by determining whether the target index information contains the conversion identifier or the conversion identifier is empty. If the target index information contains the conversion identifier, for example, the number conversion flag field is 1, it is determined that the target index information belongs to the first structured information, and if the conversion identifier corresponding to the target index information is empty, it is determined that the target index information belongs to the second structured information.

[0125] For example, the front-end can determine whether the transformation identifier in the target index information is a first value or a second value to determine whether the target index information belongs to the first structured information or the second structured information. If the transformation identifier contained in the target index information is a first value, then the target index information belongs to the first structured information; if the transformation identifier corresponding to the target index information is a second value, then the target index information belongs to the second structured information.

[0126] S311, If ​​it belongs to the second structured information, the front end constructs an image query request based on the target index information; S312, the front end sends the image query request to the target server; S313, the target server retrieves the target query image from each target image based on the image query request; S314, the target server sends the target query image to the front end. Following S314, the process includes: S315, the front end displays the target query image.

[0127] In this embodiment, the operator does not need to care whether the target index information belongs to the first structured information or the second structured information, that is, does not need to care whether to send an image query request to the target server or the historical server and receive the target query image from the target server. The operator does not need to participate in the intermediate steps, which improves the efficiency of image query.

[0128] S205, when the target index information belongs to the first structured information, the terminal constructs an image query request based on the reverse proxy service of the historical server and the target index information, and sends the image query request to the historical server. The terminal receives the target query image from the historical server.

[0129] After receiving the target index information, the terminal determines whether it belongs to the second or first structured information. If the target index information belongs to the first structured information, it means that the image corresponding to the target index information is a historical image. Therefore, the terminal constructs an image query request based on the reverse proxy service of the historical server and the target index information. The terminal sends the image query request to the historical server. The historical server processes the image query request, obtains the target query image, and returns the target query image to the terminal. The terminal receives the target query image from the historical server, and the target query image corresponds to the target index information.

[0130] In some embodiments, the reverse proxy service can be a service provided by a server located between the terminal and the historical server. This server can be understood as a front-end server for the historical server, and it can forward requests to the historical server according to a certain strategy. Specifically, the reverse proxy service can be a proxy service implemented based on Nginx or HAProxy.

[0131] The picture query request can include a front server pointed by the reverse proxy service, and the front server is used to forward the picture query request to a specific history server.

[0132] In a possible implementation, the terminal constructs a picture query request based on the Nginx service and the target index information in a case where the target index information belongs to the first structured information. The terminal sends the picture query request to a front server corresponding to the Nginx service. The front server corresponding to the Nginx service is used to forward the picture query request to a history server. The forwarding strategy of the request is determined through the Nginx service, thereby realizing traffic load balancing and improving the overall picture query efficiency.

[0133] In a possible implementation, the terminal constructs a picture query request based on the HAProxy service and the target index information in a case where the target index information belongs to the first structured information. The terminal sends the picture query request to a front server corresponding to the HAProxy service. The front server corresponding to the HAProxy service is used to forward the picture query request to a history server. The forwarding strategy of the request is determined through the HAProxy service, thereby realizing traffic load balancing and improving the overall picture query efficiency.

[0134] The picture query request is constructed based on the reverse proxy service of the history server and the target index information, at least one history server can be integrated through the reverse proxy server, and the scalability of the system is improved.

[0135] In an example, referring to Figure 3 The S205 specifically includes the following steps: S306, the front end determines whether the target index information belongs to the first structured information or the second structured information; S307, if the target index information belongs to the first structured information, the front end constructs a picture query request based on the reverse proxy service of the history server and the target index information; S308, the front end sends the picture query request to the history server; S309, the history server queries the target query picture in each history picture based on the picture query request; and S310, the history server sends the target query picture to the front end. On this basis, after S310, the following step is further included: S315, the front end displays the target query picture.

[0136] In S308, the front end sends a picture query request to the history server, specifically including: the front server (the front server corresponding to the Nginx service or the front server corresponding to the HAProxy service) of the history server forwards the picture query request to the history server according to the forwarding strategy. It can be understood that before S308, the history server can install Nginx service and HAProxy service to provide HTTP service, and provide port and ip to the front end, so that the front end sends a picture query request to the history server according to the port and ip.

[0137] In S310, the history server sends the target query picture to the front end, specifically including: the front server (the front server corresponding to the Nginx service or the front server corresponding to the HAProxy service) of the history server returns the target query picture to the front end according to the forwarding strategy.

[0138] In the system switching process of the target server and the history server, the history server transmits the first structured information of the historical picture to the target server in this embodiment, and the data amount of the first structured information is less than that of the historical picture. First, the historical picture does not need to be transmitted, only the first structured information needs to be transmitted, the data amount of the first structured information is less than that of the historical picture, the data transmission time is saved, the data transmission efficiency is improved, and the system switching efficiency is improved, so that the target server can execute the picture query service as soon as possible. Second, the first structured information does not need to be compressed and decompressed, the time consumed by picture compression, decompression and picture recovery is saved, and the system switching efficiency is further improved. Finally, the target server stores the target picture, the second structured information of the target picture, and the first structured information transmitted from the history server, the first structured information includes the index information of the historical picture, and the second structured information includes the index information of the target picture, which provides data support for subsequent picture query of the target server and effectively improves the picture query efficiency.

[0139] The terminal acquires the picture query condition in response to the triggering operation of the operator for the resource query interface, and sends a target request to the target server, the target request including the query condition. The operator opens the picture query through the terminal interface without understanding the switching process of the back-end server, which reduces the query threshold and improves the user experience.

[0140] The target server responds to the received target request, and in each index information, the index information matched with the picture query condition is taken as the target index information, and the target index information is sent to the terminal. The index matching is performed in the target server, which effectively improves the efficiency of index matching.

[0141] After the terminal receives the target index information, in the case that the target index information belongs to the second structured information, the terminal sends a picture query request to the target server, and the terminal receives a target query picture from the target server, the target query picture corresponding to the target index information. The terminal constructing the picture query request shares part of the picture query task of the target server, and reduces the load of the target server.

[0142] In the case that the target index information belongs to the first structured information, the terminal constructs a picture query request based on the reverse proxy service of the history server and the target index information, and sends the picture query request to the history server. The terminal receives a target query picture from the history server, the target query picture corresponding to the target index information. The query process of the historical picture depends on the terminal and the history server, and the participation of the target server is reduced, thereby reducing the load of the target server.

[0143] On the one hand, without migrating the pictures in the history server to the target server, the method determines whether the target index information belongs to the first structured information or the second structured information, and then sends a picture query request to the target server or the history server. The terminal can receive a target query picture from the target server or the history server. The user does not need to pay attention to the query location of the picture, and can obtain the corresponding target query picture through the triggering operation of the resource query interface, thereby improving the user experience. On the other hand, whether the target index belongs to the first structured information or the second structured information, the target server does not need to construct a picture query request, thereby effectively reducing the system load of the target server. On the other hand, in the case that the target server does not store the historical pictures in the history server and needs to obtain the historical pictures from the history server, the picture query request is constructed based on the reverse proxy service of the history server and the target index information, and the history server does not need to construct the request, thereby reducing the load of the history server to a certain extent. On the other hand, without migrating the massive historical pictures, only the first structured information of the historical pictures needs to be transmitted, thereby avoiding the problem of picture damage caused by the picture transmission process. At the same time, the data amount of the first structured information is less than that of the historical pictures, thereby saving the data transmission time and improving the data transmission efficiency, and further improving the switching efficiency of the system.

[0144] In one embodiment, the picture processing method further includes: the history server performing a marking process on the historical pictures to obtain a conversion identifier of the historical pictures, and writing the conversion identifier into the index information in the first structured information. After the terminal receives the target index information, in the case that the target index information contains the conversion identifier, it is determined that the target index information belongs to the first structured information, and in the case that the target index information does not contain the conversion identifier, it is determined that the target index information belongs to the second structured information.

[0145] After the terminal receives the target index information, it needs to determine whether the target index information belongs to the first structured information or the second structured information.

[0146] In some embodiments, the conversion identifier can be an identifier for indicating that the picture belongs to the history server.

[0147] In one possible implementation, the history server can batch mark a plurality of history pictures to obtain the conversion identifier of the history picture, which can improve the smoothness of the system switching process without waiting for all the history pictures to complete the marking process. After the current batch of history pictures completes the marking process, the history server writes the conversion identifier of the current batch into the index information in the first structured information. After the current batch of history pictures completes the writing, the history server sends the first structured information of the current batch containing the conversion identifier to the target server.

[0148] In one possible implementation, the history server marks the history picture to obtain the conversion identifier of the history picture. The history server writes the conversion identifier into the index information in the first structured information. The history server sends the first structured information containing the updated index information to the target server. The target server responds to the received target request and takes the index information matching the picture query condition in each index information (containing the updated index information) as the target index information, and sends the target index information to the terminal. After the terminal receives the target index information, in the case that the target index information contains the conversion identifier, it is determined that the target index information belongs to the first structured information. In the case that the target index information does not contain the conversion identifier, it is determined that the target index information belongs to the second structured information.

[0149] In this embodiment, first, by marking the history picture, the conversion identifier corresponding to the history picture is obtained, the belonging relationship between the judgment information and the information is converted into the belonging relationship between the identifier and the information, which reduces the judgment complexity, saves the judgment time, and further improves the picture query efficiency. Second, writing the conversion identifier into the index information in the first structured information can directly show the difference between the first structured information and other structured information, provide accurate reference for the user, and improve the user experience.

[0150] Figure 4 A structural schematic diagram of a picture processing apparatus provided by an embodiment of the present application is shown in FIG. 4. Figure 4 As shown in FIG. 4, the picture processing apparatus includes an information transmission module 401, a condition acquisition module 402, a condition matching module 403, a target query module 404, and a history query module 405.

[0151] The information transmission module 401 is configured to transmit the first structured information of the historical picture to the target server in a system switching process of the target server and the historical server; the target server stores a target picture, second structured information of the target picture, and the first structured information transmitted from the historical server; the first structured information includes index information of the historical picture, and the second structured information includes index information of the target picture; and a data amount of the first structured information is less than a data amount of the historical picture. The condition acquisition module 402 is configured to acquire picture query conditions in response to a triggering operation of an operator on a resource query interface, and send a target request including the query conditions to the target server. The condition matching module 403 is configured to, in response to receiving the target request, match, in each index information, index information that matches the picture query conditions as target index information, and send the target index information to the terminal. The target query module 404 is configured to, after receiving the target index information, send a picture query request to the target server in a case where the target index information belongs to the second structured information; and receive a target query picture from the target server, the target query picture corresponding to the target index information. The historical query module 405 is configured to, in a case where the target index information belongs to the first structured information, construct a picture query request based on a reverse proxy service of the historical server and the target index information, and send the picture query request to the historical server; and receive a target query picture from the historical server, the target query picture corresponding to the target index information.

[0152] In some other embodiments, the picture processing apparatus can further include an information processing module configured to acquire, by the historical server, a structured processing rule of data from a database in the target server; and process, by the historical server, original picture information of the historical picture according to the structured processing rule to obtain the first structured information of the historical picture.

[0153] In some other embodiments, the picture processing apparatus can further include a marking module configured to perform marking processing on the historical picture by the historical server to obtain a conversion identifier of the historical picture, and write the conversion identifier into index information in the first structured information; and after the terminal receives the target index information, determine, in a case where the conversion identifier exists in the target index information, that the target index information belongs to the first structured information; and determine, in a case where the conversion identifier does not exist in the target index information, that the target index information belongs to the second structured information.

[0154] In some embodiments, the condition matching module 403 is further configured to, in response to receiving the target request, screen at least two candidate information matching the picture query condition from the index information, and send a thumbnail corresponding to each candidate information to the terminal.

[0155] In some embodiments, the picture query condition comprises an associated service condition, a content feature condition, a time state condition and a physical attribute condition, and the condition matching module 403 is further configured to, in response to receiving the target request, determine structured information corresponding to each index information, wherein the structured information comprises associated service information of the picture, content feature information of the picture, time state information of the picture and physical attribute information of the picture, and the picture comprises the target picture and a historical picture, and screen index information in the structured information, in which the associated service information matches the associated service condition, the content feature information matches the content feature condition, the time state information matches the time state condition, and the physical attribute information matches the physical attribute condition, as the candidate information.

[0156] In some embodiments, the information transmission module 401 is further configured to determine, by the historical server, a communication channel between the historical server and the target server, and transmit, by the historical server, the historical picture to the target server in a data transmission mode matching the communication channel, and the picture processing apparatus can further comprise an information sending module configured to, in a case where a sending process of the first structured information is abnormal, send the first structured information to the target server according to a timing retransmission time until the sending of the first structured information is normal or the sending number of the first structured information reaches a preset threshold.

[0157] The picture processing apparatus provided by the embodiments of the present application can perform the method shown in the method embodiments, and the implementation principles and beneficial effects can refer to the related description in the method embodiments, which will not be described here in detail.

[0158] Figure 5 FIG. 1 shows a structural schematic diagram of a picture processing apparatus provided by an embodiment of the present application. As shown in the figure, the picture processing apparatus comprises a memory 501, a transceiver 502 and at least one processor 503. Figure 5

[0159] The transceiver 502 is configured to interact with other devices to realize the reception and transmission of data. For example, in the embodiments of the present application, the transceiver 502 can be specifically configured to receive and transmit the first structured information.

[0160] ​The memory 501 is configured to store computer program code including computer instructions. The computer instructions run in the picture processing device to implement the method shown in the above method embodiments. For example, the memory can include a random access memory (RAM), and can also include a non-volatile memory (NVM), for example, at least one disk memory, and can also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0161] The processor 503 can be a general processor, including a central processing unit (CPU), a network processor (NP), etc. The processor 503 can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The processor 503 can also be other general processors. The general processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0162] The memory 501, the transceiver 502 and the processor 503 are communicatively connected. For example, the memory 501, the transceiver 502 can be connected with the processor 503 through a system bus and complete mutual communication. The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, an industry standard architecture (ISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or only one type of bus.

[0163] Optionally, the memory 501 can be independent or integrated with the processor 503. When the memory 501 is independently arranged, the memory 501 and the processor 503 are connected through a system bus.

[0164] The embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solutions of the picture processing method in the above embodiments.

[0165] The embodiment of the present application further provides a computer readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the technical solution of the picture processing method in the above embodiment is implemented. Specifically, when the computer instructions are executed by the processor, the picture processing device can execute the technical solution of the picture processing method in the above embodiment.

[0166] The embodiment of the present application further provides a computer program product, which comprises a computer program stored in a computer readable storage medium. At least one processor can read the computer program from the computer readable storage medium, and when the at least one processor executes the computer program, the technical solution of the picture processing method in the above embodiment can be implemented.

[0167] The computer readable storage medium can be implemented by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The computer readable storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0168] An exemplary computer readable storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the computer readable storage medium. Of course, the computer readable storage medium can also be an integral part of the processor. The processor and the computer readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the computer readable storage medium can also exist as discrete components in an electronic control unit or a host device, and the embodiment of the present application does not limit this.

[0169] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0170] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.

[0171] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.

[0172] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0173] It should be understood that the steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

[0174] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. An image processing method, characterized in that, An image processing system is applied, the image processing system comprising: a terminal, a target server connected to the terminal, and a history server connected to the terminal, the history server storing historical images; the method comprising: During the system switchover between the target server and the historical server, the historical server transmits the first structured information of the historical image to the target server; wherein, the target server stores the target image, the second structured information of the target image, and the first structured information transmitted from the historical server; the first structured information includes the index information of the historical image, the second structured information includes the index information of the target image, and the data volume of the first structured information is smaller than the data volume of the historical image; The terminal responds to the operator's triggered operation on the resource query interface, obtains the image query conditions, and sends a target request to the target server, the target request including the query conditions; In response to receiving the target request, the target server selects the index information that matches the image query conditions from among the index information as the target index information and sends the target index information to the terminal. After receiving the target index information, if the target index information belongs to the second structured information, the terminal sends an image query request to the target server; and the terminal receives a target query image from the target server, the target query image corresponding to the target index information. When the target index information belongs to the first structured information, the terminal constructs an image query request based on the reverse proxy service of the historical server and the target index information, and sends the image query request to the historical server; and the terminal receives a target query image from the historical server, the target query image corresponding to the target index information.

2. The method according to claim 1, characterized in that, The method further includes: The historical server obtains the structured processing rules for the data from the database in the target server; The historical server processes the original image information of the historical images according to the structured processing rules to obtain the first structured information of the historical images.

3. The method according to claim 1, characterized in that, The method further includes: The historical server tags the historical images to obtain the transformation identifiers of the historical images, and writes the transformation identifiers into the index information in the first structured information; After receiving the target index information, if the target index information contains the conversion identifier, the terminal determines that the target index information belongs to the first structured information; if the target index information does not contain the conversion identifier, the terminal determines that the target index information belongs to the second structured information.

4. The method according to claim 1, characterized in that, In response to receiving the target request, the target server selects the index information that matches the image query conditions from among the index information as the target index information, including: In response to receiving the target request, the target server filters at least two candidate information that match the image query conditions from each of the index information. The target server sends the thumbnail corresponding to each of the candidate information to the terminal. The target server receives thumbnail trigger parameters from the terminal, the thumbnail trigger parameters being obtained by the terminal in response to an operator's trigger operation on the thumbnail; The target server selects the candidate information that matches the thumbnail triggering parameter from among the candidate information as the target index information.

5. The method according to claim 4, characterized in that, The image query conditions include: related business conditions, content feature conditions, time status conditions, and physical attribute conditions; In response to receiving the target request, the target server filters at least two candidate information items from each of the index information that match the image query conditions, including: In response to receiving the target request, the target server determines the structured information corresponding to each index information. The structured information includes the associated business information of the image, the content feature information of the image, the time status information of the image, and the physical attribute information of the image. The image includes the target image and the historical images. The target server uses the index information in each of the structured information as candidate information, which matches the associated business information with the associated business conditions, the content feature information with the content feature conditions, the time status information with the time status conditions, and the physical attribute information with the physical attribute conditions.

6. The method according to claim 1, characterized in that, The historical server transmits the first structured information of the historical images to the target server, including: The historical server determines the communication channel between the historical server and the target server; The historical server transmits the historical images to the target server according to a data transmission method that matches the communication channel; The method further includes: If an anomaly occurs during the transmission of the first structured information, the historical server will send the first structured information to the target server according to the scheduled retransmission time until the transmission of the first structured information is normal or the number of times the first structured information is sent reaches a preset threshold.

7. An image processing apparatus, characterized in that, The terminal is connected to both a historical server and a target server, wherein the historical server stores historical images, and the device includes: An information transmission module is used to transmit first structured information of a historical image to the target server during the system switching process between the target server and the historical server; wherein the target server stores a target image, second structured information of the target image, and the first structured information transmitted from the historical server; the first structured information includes index information of the historical image, the second structured information includes index information of the target image, and the data volume of the first structured information is smaller than the data volume of the historical image; The condition acquisition module is used to respond to the operator's triggered operation on the resource query interface, acquire the image query conditions, and send a target request to the target server, wherein the target request includes the query conditions; The condition matching module is used to respond to receiving the target request, select the index information that matches the image query condition from the index information as the target index information, and send the target index information to the terminal; The target query module is configured to, upon receiving the target index information, send an image query request to the target server if the target index information belongs to the second structured information; and to receive a target query image from the target server, wherein the target query image corresponds to the target index information. The historical query module is used to construct an image query request based on the reverse proxy service of the historical server and the target index information when the target index information belongs to the first structured information, and to send the image query request to the historical server; and to receive a target query image from the historical server, wherein the target query image corresponds to the target index information.

8. An image processing device, characterized in that, include: The device includes a memory and at least one processor; the memory is communicatively connected to the processor; the memory is used to store computer program code, the computer program code including computer instructions; when the processor executes the computer instructions, the image processing device performs the method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, are used to implement the method as described in any one of claims 1-6.

10. A computer program product, characterized in that, When the computer program product is run on a computer / executed by the computer's processor, it implements the method as described in any one of claims 1-6.