CN115712744A - Picture data processing method and device, electronic equipment and storage medium - Google Patents

Picture data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115712744A
CN115712744A CN202211392995.1A CN202211392995A CN115712744A CN 115712744 A CN115712744 A CN 115712744A CN 202211392995 A CN202211392995 A CN 202211392995A CN 115712744 A CN115712744 A CN 115712744A
Authority
CN
China
Prior art keywords
picture
demand
similarity
description information
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211392995.1A
Other languages
Chinese (zh)
Inventor
梁杰凯
曹威
陈黎艳
王拥政
伍辉
胡芳
尧俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211392995.1A priority Critical patent/CN115712744A/en
Publication of CN115712744A publication Critical patent/CN115712744A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a picture data processing method and device, electronic equipment and a storage medium, and relates to the technical field of big data intelligent analysis. One embodiment of the method comprises: responding to a processing request of the theme picture, and acquiring corresponding demand parameters and attribute information of the client; inquiring the configuration information corresponding to each picture in the picture library, and matching the attribute information with the configuration information to obtain a successfully matched picture set; extracting the weight parameters and the description information of each picture in the picture set so as to sort the pictures in the picture set based on the weight parameters; and calling a preset calculation model, calculating the similarity between each description information and each demand parameter according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to the client. The method and the device can solve the problems that the main body picture is manually selected and loaded so as to be applied to the processing mode in the APP, the load is operated, and the efficiency is low.

Description

Picture data processing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of big data intelligent analysis, in particular to a picture data processing method and device, electronic equipment and a storage medium.
Background
Currently, each APP is applied to business processing officially, and in order to provide a better use experience for a user using the APP, various personalized functions are generally provided, such as personalized use of an application theme picture. In the prior art, when a user uses an APP, the user can view a configured theme picture from a corresponding server, and then manually select a main picture meeting requirements from the searched pictures and load the main picture so as to apply the main picture to the APP. However, this processing method for theme pictures is not only load-handling, but also inefficient.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing picture data, an electronic device, and a storage medium, which can solve the problem that a processing manner applied to an APP by manually selecting and loading a main picture is not only load-operated, but also low efficiency.
To achieve the above object, according to an aspect of an embodiment of the present invention, a method for processing picture data is provided.
The picture data processing method of the embodiment of the invention comprises the following steps: responding to a processing request of the theme picture, and acquiring corresponding demand parameters and attribute information of the client;
inquiring configuration information corresponding to each picture in a picture library, and matching the attribute information with the configuration information to obtain a successfully matched picture set;
extracting the weight parameters and the description information of each picture in the picture set so as to sort the pictures in the picture set based on the weight parameters;
and calling a preset calculation model, calculating the similarity between the description information and the demand parameters according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to a client.
In one embodiment, the calculating the similarity between each piece of description information and the requirement parameter according to the arrangement order to determine a target subject picture from the picture set based on the similarity includes:
selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information of the selected pictures and the requirement parameters;
and determining the selected picture as the target theme picture in response to the similarity being greater than a first preset threshold value.
In yet another embodiment, the requirement parameters include a requirement field and a field value;
calculating the similarity between the description information and the demand parameters, including:
identifying text information in the description information to extract a corresponding target text based on the requirement field;
and calculating the matching degree between the target text corresponding to each requirement field and the field value so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
In yet another embodiment, determining a similarity between the description information and the demand parameter based on the matching degree comprises:
and determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters.
In another embodiment, the obtaining the corresponding demand parameter includes:
acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter;
and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
In another embodiment, the obtaining the corresponding demand parameter includes:
and querying a demand page corresponding to the processing request to send the demand page to a client, so that a user inputs the demand parameters based on the demand page.
In yet another embodiment, further comprising:
responding to a picture configuration instruction, acquiring corresponding picture description information and an updated picture, and storing the updated picture and the picture description information;
inquiring and displaying a configuration page corresponding to the picture configuration instruction so as to receive configuration information input by a user through the configuration page;
and generating a picture offline material file based on the configuration information, the updated picture and the picture description information, and updating the picture offline material file to a picture library.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a picture data processing apparatus.
The picture data processing device of the embodiment of the invention comprises: the acquisition unit is used for inquiring the configuration information corresponding to each picture in the picture library, matching the attribute information with the configuration information and obtaining a successfully matched picture set;
the matching unit is used for inquiring the configuration information corresponding to each picture in the picture library, matching the attribute information with the configuration information and obtaining a successfully matched picture set;
the sorting unit is used for extracting the weight parameters and the description information of each picture in the picture set so as to sort each picture in the picture set based on the weight parameters;
the determining unit is used for calling a preset computing model, computing the similarity between the description information and the demand parameters according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to a client.
In an embodiment, the determining unit is specifically configured to:
selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information of the selected pictures and the requirement parameters;
and determining the selected picture as the target theme picture in response to the similarity being greater than a first preset threshold value.
In yet another embodiment, the requirement parameters include a requirement field and a field value;
the determining unit is specifically configured to:
identifying text information in the description information to extract a corresponding target text based on the requirement field;
and calculating the matching degree between the target text and the field value corresponding to each requirement field so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
In another embodiment, the determining unit is specifically configured to:
and determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters.
In another embodiment, the obtaining unit is specifically configured to:
acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter;
and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
In another embodiment, the obtaining unit is specifically configured to:
and querying a demand page corresponding to the processing request to send the demand page to a client, so that a user inputs the demand parameters based on the demand page.
In a further embodiment, the obtaining unit is further configured to obtain, in response to a picture configuration instruction, corresponding picture description information and an updated picture to store the updated picture and the picture description information;
the device further comprises:
the receiving unit is used for inquiring and displaying a configuration page corresponding to the picture configuration instruction so as to receive configuration information input by a user through the configuration page;
and the generating unit is used for generating an off-line picture material file based on the configuration information, the updated picture and the picture description information and updating the off-line picture material file to a picture library.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the picture data processing method provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements a processing method of picture data provided by an embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer program product.
A computer program product according to an embodiment of the present invention includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for processing picture data according to the embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, when the main picture needs to be processed, the processing request can be triggered, the processing request of the subject picture is responded, the attribute information and the requirement parameter of the corresponding client side can be obtained firstly, the attribute parameter of the client side can represent the application scene of the client side, and then the main picture set which is suitable for the scene of the client side can be screened out through the matching of the attribute parameter and the configuration information of the picture, and then the similarity of each picture and the requirement parameter in the main picture set is sequentially calculated according to the sequence of the weight parameter, so that the main picture which meets the requirement of a user on Xinhua is determined and sent to the client side, and the automatic determination and processing of the subject picture are realized.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a diagram of a system architecture of a system for processing picture data according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a picture data processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another main flow of a picture data processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another main flow of a method for picture configuration according to an embodiment of the present invention;
fig. 5 is a schematic diagram of main units of a picture data processing apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram of yet another exemplary system architecture to which embodiments of the present invention may be applied;
FIG. 7 is a schematic block diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
The embodiment of the invention provides a picture data processing system, which can be used for processing a theme picture, in particular a main picture issuing, updating and configuring scene.
In the embodiment of the invention, the processing system of the picture data can be connected with the client of each application, so that the theme picture can be updated for the application in each client. The processing system of the picture data may include a processing module and a configuration module, wherein the processing module may be configured to update the theme picture for the application in each client, and the configuration module may be configured to configure the storage picture of the processing system of the picture data. Fig. 1 is a schematic diagram of a system architecture of a system for processing picture data according to an embodiment of the present invention. The processing system of the picture data can also comprise a display module, so that a configuration page can be displayed when the picture is configured, configuration information input by a user can be received, and the like.
An embodiment of the present invention provides a method for processing picture data, where the method is executable by a picture data processing system, and as shown in fig. 2, the method includes:
s201: and responding to the processing request of the theme picture, and acquiring the corresponding requirement parameters and the attribute information of the client.
The processing request of the theme pictures may be sent by the client, or may be triggered at regular time, so as to update the theme pictures for the client. For example, the client may trigger the processing request of the theme pictures when opening the APP to send the processing request to the processing system of the theme data, so that the processing system of the theme data processes the processing request of the theme pictures. The processing request can include client information and/or APP information in the client.
Specifically, the processing request may include client information, such as a client identifier, and the processing system may acquire the corresponding attribute information through interaction with the client. The attribute information may include a region where the client is located, a season in which the client is currently located, a time period, and the like.
The processing request may further include a requirement parameter, where the requirement parameter may indicate a parameter required by the user for the main picture, and the requirement parameter may include a requirement field and a field value, where the requirement field may be preconfigured, and the field value may be input in the client, or may be automatically obtained by the processing system.
For example, the step of obtaining the corresponding requirement parameter may be performed as: acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter; and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
The processing system can be connected with a server corresponding to the APP in the client to acquire service data of the client within a preset time period, and then parameter values of service parameters can be extracted from the service data. The service parameters may include service realm, service type, service scope, and the like. According to the embodiment of the invention, the corresponding relation between the preset service parameters and the required parameters can be established, so that the required parameters can be determined. For example, the required parameters may include a theme picture type, a theme picture application range, a theme picture field, and the like, and the required parameters are determined according to the established corresponding relationship.
As another example, the step of obtaining the corresponding requirement parameter may be performed as: and inquiring and displaying a demand page corresponding to the processing request, so that a user inputs demand parameters based on the demand page.
In the embodiment of the invention, the demand page corresponding to the processing request can be inquired after the processing instruction is responded, and the demand page is sent to the client side for displaying, so that the user can input the parameter value of the demand parameter based on the demand page, and further the demand parameter can be acquired from the input of the user.
S202: and inquiring the configuration information corresponding to each picture in the picture library, and matching the attribute information with the configuration information to obtain a successfully matched picture set.
The picture library is pre-stored, and may include each picture and corresponding configuration information. The attribute information represents parameter values of configuration parameters required by the pictures, such as regions, applicable seasons, time periods and the like corresponding to the pictures, so that the configuration information of each picture in the picture library can be matched with the attribute information of the client in the step, and a picture set successfully matched with the attribute information can be screened out.
S203: and extracting the weight parameters and the description information of each picture in the picture set so as to sort the pictures in the picture set based on the weight parameters.
Wherein, the picture library can also store the weight parameters and the description information of the pictures. The weight parameter may represent a usage priority of the picture, and generally, a parameter value of the weight parameter is larger as the usage priority is higher. The description information may be used to describe content in the picture and user attributes used by the picture, and specifically may include a description corresponding to a requirement field in the requirement parameter. In this step, the images may be sorted based on the weight parameter of each image in the image set to determine the images used in advance. Specifically, the pictures in the picture set may be sorted according to the descending order of the parameter values of the weight parameters.
S204: and calling a preset calculation model, calculating the similarity between each description information and each demand parameter according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to the client.
The calculation model is configured in advance and can be used for calculating the similarity between the description file and the requirement parameters.
Specifically, the requirement parameters may include a requirement field and a field value, so the way of calculating the similarity in this step may be implemented as: identifying text information in the description information to extract a corresponding target text based on the requirement field; and calculating the matching degree between the target text corresponding to each requirement field and the field value so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
The description information can be subjected to text recognition to determine text information in the description information, and further can be used for extracting target texts corresponding to the requirement fields from the description information, matching the target texts with field values of the requirement fields, calculating the matching degree between the target texts and the field values of the requirement fields, and obtaining the matching degree of each requirement field. The matching degree is high, which indicates that the field value of the requirement field is more similar to the target text, so that the similarity between the description information and the requirement parameter can be determined based on the matching degree in the embodiment of the invention.
For example, determining the similarity between the description information and the demand parameter based on the matching degree may be performed as: and determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters. The second preset value is preset, and may specifically be set based on a requirement, for example, the second preset value may be set to 90%, each requirement field calculates a corresponding matching degree, when the matching degree is greater than the second preset value, the similarity between the field value of the requirement field and the target content may be represented, and then the number of the requirement fields whose matching degree is greater than the second preset threshold and the proportion of the number of the requirement fields in the total number of the requirement fields may be determined, so that the similarity between the description information and the requirement parameters may be determined.
In the embodiment of the invention, the similarity between the demand parameters and the description information of each picture can be calculated in the above manner, and then the target theme picture can be determined from the picture set.
Specifically, the manner of determining the target subject picture in this step may be implemented as: selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information and the demand parameters of the selected pictures; and determining the selected picture as the target subject picture in response to the similarity being greater than a first preset threshold value.
In the embodiment of the invention, when the main picture needs to be processed, the processing request can be triggered, the processing request of the subject picture is responded, the attribute information and the requirement parameter of the corresponding client side can be obtained firstly, the attribute parameter of the client side can represent the application scene of the client side, and then the main picture set which is suitable for the scene of the client side can be screened out through the matching of the attribute parameter and the configuration information of the picture, and then the similarity of each picture and the requirement parameter in the main picture set is sequentially calculated according to the sequence of the weight parameter, so that the main picture which meets the requirement of a user on Xinhua is determined and sent to the client side, and the automatic determination and processing of the subject picture are realized.
The following describes, in detail, a method for processing picture data in an embodiment of the present invention with reference to the system architecture shown in fig. 1 and the embodiment shown in fig. 2, and as shown in fig. 3, the method includes:
s301: and responding to the processing request of the theme picture, and acquiring the attribute information of the corresponding client.
S302: acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter; and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
S303: and inquiring the configuration information corresponding to each picture in the picture library, and matching the attribute information with the configuration information to obtain a successfully matched picture set.
S304: and extracting the weight parameters and the description information of each picture in the picture set so as to sort the pictures in the picture set based on the weight parameters.
S305: selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information and the requirement parameters of the selected pictures, and determining the selected pictures as target theme pictures in response to the similarity being greater than a first preset threshold value.
S306: and sending the target theme picture to the client.
It should be noted that the principle of data processing in the embodiment of the present invention is the same as that of corresponding data processing in the embodiment shown in fig. 2, and is not described herein again.
It should be noted that, in the embodiment of the present invention, the pictures in the picture library may also be configured by a configuration module in the processing system.
Based on the system architecture shown in fig. 1, the present invention provides a method for configuring pictures, as shown in fig. 4, the method includes:
s401: and responding to the picture configuration instruction, acquiring corresponding picture description information and an updated picture, and storing the updated picture and the picture description information.
The picture configuration instruction can be input by a user, and can be input when a picture needs to be added or the pictures in the picture library need to be updated in a memorial mode. The picture configuration instruction may include picture description information and an updated picture, the updated picture identifies the newly added picture or a picture to be updated in the picture library, and after the processing system of the picture data acquires the picture description information and the updated picture, the picture description information and the updated picture may be stored first.
S402: and querying and displaying a configuration page corresponding to the picture configuration instruction so as to receive configuration information input by a user through the configuration page.
The configuration page is used for configuring the picture, a user can input configuration information of the updated picture through the display configuration page, and a processing system of the picture data can acquire the configuration information of the updated picture.
S403: and generating a picture offline material file based on the configuration information, the updated picture and the picture description information, and updating the picture offline material file to a picture library.
The processing system of the picture data can store the association relationship between the configuration information, the updated picture and the picture description information, and then combine the configuration information, namely generate a picture offline material file, and store the picture offline material file into a picture library, so as to subsequently execute the embodiment shown in fig. 1.
In the embodiment of the invention, the offline material files of all pictures are stored in advance, when the main pictures need to be processed, the processing request can be triggered, after the processing request of the subject picture is responded, the attribute information and the demand parameter of the corresponding client side can be obtained firstly, the main picture set suitable for the scene of the client side is screened out by matching the attribute parameter with the configuration information of the picture, and then the main picture meeting the requirement of a user on Xinhua is determined and sent to the client side, so that the automatic determination and processing of the subject picture are realized, the operation is simple, and the processing efficiency of the main picture is improved.
In order to solve the problems in the prior art, an embodiment of the present invention provides an apparatus 500 for processing picture data, as shown in fig. 5, the apparatus 500 includes:
an obtaining unit 501, configured to query configuration information corresponding to each picture in a picture library, match the attribute information with the configuration information, and obtain a successfully matched picture set;
a matching unit 502, configured to query configuration information corresponding to each picture in the picture library, match the attribute information with the configuration information, and obtain a successfully matched picture set;
an ordering unit 503, configured to extract a weight parameter and description information of each picture in the picture set, so as to order each picture in the picture set based on the weight parameter;
the determining unit 504 is configured to invoke a preset calculation model, calculate similarity between each piece of description information and the requirement parameter according to the arrangement order, determine a target theme picture from the picture set based on the similarity, and send the target theme picture to a client.
It should be understood that the manner of implementing the embodiment of the present invention is the same as the manner of implementing the embodiment shown in fig. 2, and the description thereof is omitted.
In an embodiment, the determining unit 504 is specifically configured to:
selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information of the selected pictures and the requirement parameters;
and determining the selected picture as the target subject picture in response to the similarity being greater than a first preset threshold value.
In yet another embodiment, the requirement parameters include a requirement field and a field value;
the determining unit 504 is specifically configured to:
identifying text information in the description information to extract a corresponding target text based on the requirement field;
and calculating the matching degree between the target text and the field value corresponding to each requirement field so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
In another embodiment, the determining unit 504 is specifically configured to:
and determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters.
In another embodiment, the obtaining unit 501 is specifically configured to:
acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter;
and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
In another embodiment, the obtaining unit 501 is specifically configured to:
and querying a demand page corresponding to the processing request to send the demand page to a client, so that a user inputs the demand parameters based on the demand page.
In another embodiment, the obtaining unit 501 is further configured to obtain corresponding picture description information and an updated picture in response to a picture configuration instruction, so as to store the updated picture and the picture description information;
the apparatus 500 further comprises:
the receiving unit is used for inquiring and displaying a configuration page corresponding to the picture configuration instruction so as to receive configuration information input by a user through the configuration page;
and the generating unit is used for generating a picture offline material file based on the configuration information, the updated picture and the picture description information and updating the picture offline material file to a picture library.
It should be understood that the embodiment of the present invention may be implemented in the same manner as the embodiment shown in fig. 2, 3 or 4, and thus, will not be described herein again.
In the embodiment of the invention, when the main picture needs to be processed, the processing request can be triggered, the processing request of the subject picture is responded, the attribute information and the requirement parameter of the corresponding client side can be obtained firstly, the attribute parameter of the client side can represent the application scene of the client side, and then the main picture set which is suitable for the scene of the client side can be screened out through the matching of the attribute parameter and the configuration information of the picture, and then the similarity of each picture and the requirement parameter in the main picture set is sequentially calculated according to the sequence of the weight parameter, so that the main picture which meets the requirement of a user on Xinhua is determined and sent to the client side, and the automatic determination and processing of the subject picture are realized.
According to an embodiment of the present invention, an electronic device and a readable storage medium are also provided.
The electronic device of the embodiment of the invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the picture data processing method provided by the embodiment of the invention.
Fig. 6 shows an exemplary system architecture 600 of a picture data processing method or a picture data processing apparatus to which an embodiment of the present invention can be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 serves as a medium for providing communication links between the terminal devices 601, 602, 603 and the server 605. Network 604 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 601, 602, 603 to interact with the server 605 via the network 604 to receive or send messages or the like. Various client applications may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be, but are not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 605 may be a server that provides various services, and the server may analyze and perform other processes on data such as a received product information query request, and feed back a processing result (for example, product information — just an example) to the terminal device.
It should be noted that the processing method of the picture data provided by the embodiment of the present invention is generally executed by the server 605, and accordingly, the processing device of the picture data is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Referring now to FIG. 7, a block diagram of a computer system 700 suitable for use in implementing embodiments of the present invention is shown. The computer system illustrated in FIG. 7 is only an example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that the computer program read out therefrom is mounted in the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a matching unit, a sorting unit, and a determination unit. Where the names of these units do not in some cases constitute a limitation of the unit itself, for example, the acquiring unit may also be described as a "unit of the parameter acquiring function".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs, which when executed by a device, cause the device to perform the picture data processing method provided by the present invention.
As another aspect, the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the processing method of the picture data provided by the embodiment of the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A method for processing picture data is characterized by comprising the following steps:
responding to a processing request of the theme picture, and acquiring corresponding demand parameters and attribute information of the client;
inquiring the configuration information corresponding to each picture in the picture library, and matching the attribute information with the configuration information to obtain a successfully matched picture set;
extracting the weight parameters and the description information of each picture in the picture set so as to sort the pictures in the picture set based on the weight parameters;
and calling a preset calculation model, calculating the similarity between the description information and the demand parameters according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to a client.
2. The method according to claim 1, wherein the calculating the similarity between each of the description information and the demand parameter in the ranking order to determine the target subject picture from the picture set based on the similarity comprises:
selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information of the selected pictures and the requirement parameters;
and determining the selected picture as the target subject picture in response to the similarity being greater than a first preset threshold value.
3. The method of claim 1, wherein the requirement parameters include a requirement field and a field value;
calculating the similarity between the description information and the demand parameters, including:
identifying text information in the description information to extract a corresponding target text based on the requirement field;
and calculating the matching degree between the target text and the field value corresponding to each requirement field so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
4. The method of claim 3, wherein determining a similarity between the description information and the demand parameter based on the matching comprises:
determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters.
5. The method of claim 1, wherein the obtaining the corresponding demand parameter comprises:
acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter;
and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
6. The method of claim 1, wherein the obtaining the corresponding demand parameter comprises:
and querying a demand page corresponding to the processing request to send the demand page to a client, so that a user inputs the demand parameters based on the demand page.
7. The method of claim 1, further comprising:
responding to a picture configuration instruction, acquiring corresponding picture description information and an updated picture, and storing the updated picture and the picture description information;
inquiring and displaying a configuration page corresponding to the picture configuration instruction so as to receive configuration information input by a user through the configuration page;
and generating an image offline material file based on the configuration information, the updated image and the image description information, and updating the image offline material file to an image library.
8. An apparatus for processing picture data, comprising:
the acquisition unit is used for inquiring the configuration information corresponding to each picture in the picture library, matching the attribute information with the configuration information and obtaining a successfully matched picture set;
the matching unit is used for inquiring the configuration information corresponding to each picture in the picture library, matching the attribute information with the configuration information and obtaining a successfully matched picture set;
the sorting unit is used for extracting the weight parameters and the description information of each picture in the picture set so as to sort each picture in the picture set based on the weight parameters;
the determining unit is used for calling a preset computing model, computing the similarity between the description information and the demand parameters according to the arrangement sequence, determining a target theme picture from the picture set based on the similarity, and sending the target theme picture to a client.
9. The apparatus according to claim 8, wherein the determining unit is specifically configured to:
selecting pictures from the picture set according to the arrangement sequence to calculate the similarity between the description information of the selected pictures and the requirement parameters;
and determining the selected picture as the target subject picture in response to the similarity being greater than a first preset threshold value.
10. The apparatus of claim 8, wherein the requirement parameters comprise a requirement field and a field value;
the determining unit is specifically configured to:
identifying text information in the description information to extract a corresponding target text based on the requirement field;
and calculating the matching degree between the target text corresponding to each requirement field and the field value so as to determine the similarity between the description information and the requirement parameters based on the matching degree.
11. The apparatus according to claim 10, wherein the determining unit is specifically configured to:
and determining the number of the demand fields with the matching degree larger than a second preset threshold value to calculate the proportion of the total demand fields, and determining the proportion as the similarity between the description information and the demand parameters.
12. The apparatus according to claim 8, wherein the obtaining unit is specifically configured to:
acquiring service data of a client in a preset time period to extract a parameter value corresponding to a preset service parameter;
and querying a preset mapping relation to determine the demand parameters corresponding to the parameter values.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
15. A computer program product comprising a computer program, characterized in that the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202211392995.1A 2022-11-08 2022-11-08 Picture data processing method and device, electronic equipment and storage medium Pending CN115712744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211392995.1A CN115712744A (en) 2022-11-08 2022-11-08 Picture data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211392995.1A CN115712744A (en) 2022-11-08 2022-11-08 Picture data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115712744A true CN115712744A (en) 2023-02-24

Family

ID=85232592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211392995.1A Pending CN115712744A (en) 2022-11-08 2022-11-08 Picture data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115712744A (en)

Similar Documents

Publication Publication Date Title
CN112527649A (en) Test case generation method and device
CN110706093A (en) Accounting processing method and device
CN111695840A (en) Method and device for realizing flow control
CN112835904A (en) Data processing method and data processing device
CN113760488A (en) Method, device, equipment and computer readable medium for scheduling task
CN111062572A (en) Task allocation method and device
CN112947919A (en) Method and device for constructing service model and processing service request
CN112818026A (en) Data integration method and device
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN112685481B (en) Data processing method and device
CN112433713A (en) Application program design graph processing method and device
CN109522429B (en) Method and apparatus for generating information
CN116362216A (en) Form data processing method, device, electronic equipment and storage medium
CN115712744A (en) Picture data processing method and device, electronic equipment and storage medium
CN114924937A (en) Batch task processing method and device, electronic equipment and computer readable medium
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN112947918A (en) Data display method and device
CN113779018A (en) Data processing method and device
CN110858240A (en) Front-end module loading method and device
CN113572704A (en) Information processing method, production end, consumption end and server
CN110727435A (en) Rendering method, rendering device, electronic equipment and storage medium
CN114968455B (en) Report generation method and device of application interface and electronic equipment
CN113761039A (en) Method and device for processing information
CN110958277B (en) Method and device for sending prompt information
CN114022296A (en) Service processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination