CN111652658A - Portrait fusion method, apparatus, electronic device and computer readable storage medium - Google Patents
Portrait fusion method, apparatus, electronic device and computer readable storage medium Download PDFInfo
- Publication number
- CN111652658A CN111652658A CN202010532360.1A CN202010532360A CN111652658A CN 111652658 A CN111652658 A CN 111652658A CN 202010532360 A CN202010532360 A CN 202010532360A CN 111652658 A CN111652658 A CN 111652658A
- Authority
- CN
- China
- Prior art keywords
- portrait
- list
- user
- fusion
- data
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Marketing (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Probability & Statistics with Applications (AREA)
- General Business, Economics & Management (AREA)
- Computational Linguistics (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides an image fusion method, an image fusion device, electronic equipment and a computer readable storage medium, wherein the image fusion method comprises the following steps: acquiring initial data of a plurality of fields; matching the acquired initial data with a plurality of pre-established data labels, and generating a system portrait corresponding to each field according to a matching result; and in response to a fusion instruction for fusing at least two target system images, fusing the target system images, and taking a fusion result as a user image. The invention can generate the user portrait fused in multiple fields and improve the service flexibility.
Description
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to an image fusion method and device, electronic equipment and a computer readable storage medium.
Background
With the development of the internet, the online businesses of all industries are continuously increased, and the online accurate marketing and crowd analysis gradually become the optimal route for achieving the income of the current online businesses. The basis of accurate marketing is to perform user grouping and crowd analysis, so that a user figure is established, and the purpose of finding user habits and demands is achieved. At present, various user images are in a vertical field, if an electronic commerce holds that a consumption image and a health field are health images, the images in the respective fields can only be used in the respective fields, the images cannot be used across the fields, and when the service fields are more, the images in the respective fields cannot be fused, so that the user images in the whole field of a user cannot be provided, and the service flexibility is poor.
Disclosure of Invention
In view of the above, the present invention provides a portrait fusion method, apparatus, electronic device and computer-readable storage medium, which can generate a multi-domain user portrait and improve flexibility of service.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides an image fusion method, including: acquiring initial data of a plurality of fields; matching the acquired initial data with a plurality of pre-established data labels, and generating a system portrait corresponding to each field according to a matching result; and in response to a fusion instruction for fusing at least two target system images, fusing the target system images, and taking a fusion result as a user image.
In one embodiment, the step of matching the acquired initial data with a plurality of pre-created data tags and generating a system representation corresponding to each domain according to the matching result includes: matching the obtained initial data with a plurality of pre-established data labels by using an MVEL expression engine, and generating a system portrait corresponding to each field according to a matching result; wherein the system representation is stored by an elastic search distributed search and analysis engine.
In one embodiment, before the step of matching the obtained initial data with a plurality of data tags created in advance by using an MVEL expression engine, and generating a system portrait corresponding to each domain according to the matching result, the method further includes: and segmenting the initial data by using a scroll cursor of an Elasticissearch distributed search and analysis engine.
In one embodiment, the step of fusing target system representations in response to a fuse instruction to fuse at least two target system representations and using the fused result as a user representation includes: responding a fusion instruction for fusing at least two target system images, and determining an English name list corresponding to the target system images; determining a corresponding Index list in an Elasticissearch distributed search and analysis engine according to the English name list; determining an accountId list after duplication removal according to the Index list; searching a system portrait list corresponding to each accountId according to the accountId list; and fusing the system portrait in the system portrait list, and using the fusion result as the user portrait.
In one embodiment, the step of determining the list of deduplicated accountids from the Index list includes: and performing paging query through multi-Index fusion query and scroll cursor of an Elasticissearch distributed search and analysis engine according to the Index list, and determining a deduplicated accountId list according to a query result.
In one embodiment, the method further comprises: the data tags are subjected to relational storage through MySQL, and the initial data are stored through an Elasticissearch distributed search and analysis engine.
In one embodiment, the method further comprises: when initial data is updated, sending update information to a real-time message monitoring RocktMQ; determining the range of the user portrait needing to be modified according to the updating information, and generating a user portrait list according to the range of the user portrait; the list of user representations is traversed and each user representation is modified.
In a second aspect, an embodiment of the present invention provides an image fusion apparatus, including: the data acquisition module is used for acquiring initial data of a plurality of fields; the portrait generation module is used for matching the acquired initial data with a plurality of pre-established data labels and generating a system portrait corresponding to each field according to a matching result; and the portrait fusion module is used for responding a fusion instruction for fusing at least two target system portraits, fusing the target system portraits and taking a fusion result as the user portrait.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions capable of being executed by the processor, and the processor executes the computer-executable instructions to implement the steps of any one of the methods provided in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods provided in the first aspect.
The embodiment of the invention provides an image fusion method, an image fusion device, electronic equipment and a computer readable storage medium, which can acquire initial data of a plurality of fields; then matching the obtained initial data with a plurality of pre-established data labels, and generating a system portrait corresponding to each field according to a matching result; and finally, in response to a fusion instruction for fusing at least two target system images, fusing the target system images, and taking a fusion result as a user image. The method can establish the system portrait corresponding to each field according to the initial data of each field, and can fuse the target system portraits of different fields according to the service requirements to obtain the multi-field fused user portrait, thereby providing the user portrait of the whole field, enabling the portraits of different fields to be used across the fields and improving the service flexibility.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart illustrating an image fusion method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage structure of a system image according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating another image fusion method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an image update method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an image fusion platform according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an image fusion apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, various user images are in a vertical field, the user image form in the vertical field is fixed, a label cannot be freely selected for use, and only the specific vertical field can be acted, but for platforms with more service fields, images in respective vertical fields cannot be fused, so that user images in the whole field of users cannot be provided, and the images cannot be configured in a self-defined mode according to service requirements; moreover, the user portrait in the vertical domain can only be used in the respective domain, and cannot be used across domains, such as the insurance domain, using a certain part of labels of the health portrait. Based on this, the portrait fusion method, the portrait fusion device, the electronic device and the computer-readable storage medium provided by the embodiments of the present invention can generate a user portrait fused in multiple fields, and improve flexibility of services.
To facilitate understanding of the present embodiment, first, a detailed description is given of an image fusion method disclosed in the present embodiment, referring to a flowchart of an image fusion method shown in fig. 1, where the method may be executed by an electronic device, such as a smart phone, a computer, an iPad, and the like, and mainly includes the following steps S102 to S106:
step S102: initial data of a plurality of domains is acquired.
In an embodiment, for an enterprise developed in a platform, the enterprise includes more business fields, and the initial data may be a user log obtained from a network, or professional knowledge and data of each business field uploaded by a user.
Step S104: and matching the acquired initial data with a plurality of pre-established data labels, and generating a system portrait corresponding to each field according to a matching result.
The system portrait, namely the vertical domain portrait, comprises portraits of a plurality of users in the same service domain, and each user portrait further comprises at least one data tag. In an embodiment, different types of data tags correspond to data in different fields, and a data tag corresponding to initial data may be created in advance and stored when the initial data in each field is acquired.
Step S106: and in response to a fusion instruction for fusing at least two target system images, fusing the target system images, and taking a fusion result as a user image.
In one embodiment, system images in different fields can be fused according to different business requirements, so that the images in each field can be used across fields. Specifically, in this embodiment, the user may select the system representation to be fused according to actual business requirements, that is, determine the target system representation and send a fusion instruction, where the system representation to be fused may be a system representation in all fields or may be only a part of (at least two) fields. After receiving a fusion instruction sent by a user, fusing target system images configured by the user, and taking a fusion result as a user image, that is, fusing tags in different fields of each user aiming at each user to obtain a corresponding image (that is, a user image) containing a plurality of field tags of each user.
The portrait fusion method provided by the embodiment of the invention not only can establish the system portrait corresponding to each field according to the initial data of each field, but also can fuse the target system portraits of different fields according to the business requirements to obtain the user portrait fused in multiple fields, thereby providing the user portrait in the whole field, enabling the portraits of different fields to be used across fields and improving the business flexibility.
In view of the large data volume for generating a user portrait, in order to increase the data processing speed and implement batch synchronization processing of large data volume, the present embodiment provides a specific implementation manner for matching the acquired initial data with a plurality of data tags created in advance and generating a system portrait corresponding to each field according to the matching result, that is, the above step S104 may be executed with reference to the following steps (1) to (2):
step (1): and segmenting the initial data by using a scroll cursor of an Elasticissearch distributed search and analysis engine.
In this embodiment, the data tag may be stored in a relational manner by MySQL, and the initial data may be stored by an Elasticsearch distributed search and analysis engine. The Elasticissearch is a distributed, highly-extended and highly-real-time search and data analysis engine, and can enable a large amount of data to have the capability of searching, analyzing and exploring; the cursor is a data buffer area which is set up by the system for the user and stores the execution result of the SQL statement. Each cursor region has a name, and a user can use SQL sentences to acquire records from the cursors one by one, assign the records to main variables and submit the main variables to the main language for further processing. In essence, a cursor is actually a mechanism that can extract one record at a time from a result set that includes multiple data records. In one embodiment, the system representation may be generated using a representation system, one business domain for each representation system, i.e., different business domains for different representation systems, for generating representations corresponding to vertical domains. The representation system may use a scroll cursor of an Elasticissearch distributed search and analysis engine to segment large volumes of data.
Step (2): and matching the acquired initial data with a plurality of pre-created data labels by using an MVEL expression engine, and generating a system portrait corresponding to each field according to a matching result.
The system portrait may be stored by an Elasticsearch distributed search and analysis engine, specifically, refer to a schematic storage structure diagram of a system portrait shown in fig. 2, and may associate portraits in different fields by using english names (eng _ name), and use values of the english names as table names of user portraits.
After a large amount of data is segmented through a scroll cursor of an elastic search distributed search and analysis engine, a plurality of data buffer areas can be obtained, so that when data is queried, the query can be rapidly carried out based on the data buffer areas, and the processing speed of a main thread cannot be influenced. In a specific embodiment, data query may be performed according to the data segmentation result of the above steps, an MVEL expression engine is used to match the obtained initial data with a plurality of pre-created data tags according to a preset rule, and a system portrait corresponding to each field (that is, a corresponding vertical field portrait) is generated according to the matching result. For a preset rule, a user can set according to actual requirements, for example, blood pressure is taken as an example, it can be set according to experience that when a blood pressure value is greater than a first threshold value, a corresponding label is high blood pressure, when the blood pressure value is less than a second threshold value, the corresponding label is low blood pressure, and when the blood pressure value is between the second threshold value and the first threshold value, the corresponding label is normal, then matching can be performed according to the obtained blood pressure data of the user to determine a label corresponding to the blood pressure value of the user, and the determined label is given to the user. In addition, in order to increase the data processing speed, the embodiment may use a thread pool technique for data processing.
For easy understanding, the present embodiment provides a specific implementation of fusing target system images in response to a fusing instruction for fusing at least two target system images, and using the fusing result as a user image, and refer to another image fusing method shown in fig. 3, that is, the step S106 may be executed with reference to the following steps S302 to S310:
step S302: and responding a fusion instruction for fusing at least two target system images, and determining an English name list corresponding to the target system images.
In one embodiment, the user may select a representation to be fused and query a list of English names for the corresponding system representation based on an incoming ID list of the selected representation.
Step S304: and determining a corresponding Index list in the Elasticissearch distributed search and analysis engine according to the English name list.
Step S306: and determining the list of the accountId after the duplication according to the Index list.
In one embodiment, the same label of the same user may exist in different system images, so that in order to avoid a large amount of repeated information in the user images, query may be performed according to an Index list, and the repeated information is removed. Specifically, paging query can be performed through multi-Index fusion query and scroll cursors of an Elasticsearch distributed search and analysis engine according to the Index list, and a deduplicated accountId list is determined according to a query result.
Step S308: and searching a system portrait list corresponding to each accountId according to the accountId list.
Specifically, the system portrait list corresponding to each accountId may be queried by traversing according to the deduplicated accountId list.
Step S310: and fusing the system portrait in the system portrait list, and using the fusion result as the user portrait.
In view of the prior art that the portrait is not updated timely, an embodiment of the present invention further provides a method for updating a merged portrait in real time, referring to a flow diagram of the portrait updating method shown in fig. 4, which mainly includes the following steps S402 to S406:
step S402: when the initial data is updated, the update information is sent to the real-time message monitoring RocketMQ.
Step S404: a user representation range to be modified is determined based on the update information, and a user representation list is generated based on the user representation range.
Step S406: the list of user representations is traversed and each user representation is modified.
In one embodiment, updates to the RocketMQ monitoring data may be monitored via real-time messages. Specifically, after the initial data is updated, update information can be sent to the real-time message monitoring rockmq, and the update information is synchronized; then, a user portrait range needing to be modified can be determined through messages (namely updating information) in the RockettMQ, and a user portrait list is generated according to the user portrait range; and finally, traversing the user portrait list and modifying each user portrait.
The image fusion method provided by the embodiment of the invention not only can output the images in the vertical field (system images), but also can fuse a plurality of images in different fields into the system images according to the service requirement for outputting, thereby improving the service flexibility; secondly, the embodiment of the invention can monitor the data updating in real time based on the RocketMQ, thereby consuming longer time only when the user portrait is generated for the first time, realizing real-time updating after fusion is completed, almost having no time difference in updating and solving the problem that the portrait updating is not real-time in the prior art; in addition, a scroll cursor and a thread pool technology of an elastic search distributed search and analysis engine are introduced in the embodiment, so that the data processing speed is increased, and batch synchronous processing of data with large data volume is realized.
For the portrait fusion method provided by the foregoing embodiment, an embodiment of the present invention further provides a portrait fusion platform, referring to a schematic structural diagram of the portrait fusion platform shown in fig. 5, which illustrates that the portrait fusion platform includes: creating labels, data integration, portrayal systems, system portrayal, in-portrayal management systems, and real-time monitoring.
The method comprises the steps of creating a label and integrating data into a base layer of a production portrait, wherein the label uses mysql to store the relation, and the data uses the Elasticissearch distributed search and analysis engine technology to store.
The portrait system and the system portrait are portrait production layers, and one business field is a portrait system, namely different business fields correspond to different portrait systems and the portrait system is used for producing portraits corresponding to vertical fields. The portrait system segments mass data by using a scroll cursor of an Elasticissearch distributed search and analysis engine, performs rule matching on the labels and the data by using an MVEL expression engine to generate a corresponding vertical field portrait, stores the portrait in the vertical field by using the Elasticissearch distributed search and analysis engine, and performs data processing by using a thread pool technology to improve the data processing speed.
The portrait middle management system and the real-time monitoring are a portrait fusion layer, the portrait fusion is divided into an offline part and a real-time part, and the offline part uses a multi-index fusion query and a scroll cursor of an Elasticissearch distributed search and analysis engine to perform rule processing on mass data to fuse the data into a user portrait; the publication and subscription of messages using a RockettMQ is completed in real time, a message is published to the RockettMQ after the system portrait is updated, the portrait central management system performs the subscription of messages, consumes the messages, determines the modification range of the user portrait, and updates the user portrait in real time.
The portrait fusion platform provided by the embodiment of the invention breaks the portrait verticality rule, generates the corresponding system portrait in the vertical field through professional knowledge and data in each service field, enables a customer to select and use or fuse all or part of one or more portrait labels according to the requirement of the customer service, and automatically fuses the system according to the requirement, thereby achieving portrait fusion output in each service field and supporting platform-level service requirements. In addition, the image fusion platform adopts an integral layering method, namely different image systems correspond to different vertical fields, and the different image systems do not interfere with each other and have definite division of labor; meanwhile, the image system and the image center management system are independent and non-interfering.
The image fusion platform provided by the embodiment of the invention adopts the same implementation principle and the same technical effect as the image fusion method, and for brief description, reference may be made to the corresponding contents in the foregoing method embodiment for the part not mentioned in this embodiment.
For the portrait merging method provided by the foregoing embodiment, an embodiment of the present invention further provides a portrait merging apparatus, referring to a schematic structural diagram of a portrait merging apparatus shown in fig. 6, the apparatus may include the following components:
the data obtaining module 601 is configured to obtain initial data of multiple fields.
And the portrait generation module 602 is configured to match the acquired initial data with a plurality of pre-created data tags, and generate a system portrait corresponding to each field according to a matching result.
And the portrait fusion module 603 is configured to fuse the target system portraits in response to a fusion instruction for fusing at least two target system portraits, and use a fusion result as the user portrait.
The portrait fusion device provided by the embodiment of the invention not only can establish the system portrait corresponding to each field according to the initial data of each field, but also can fuse the target system portraits of different fields according to the business requirements to obtain the user portrait fused in multiple fields, thereby providing the user portrait in the whole field, enabling the portraits of different fields to be used across fields and improving the business flexibility.
In an embodiment, the portrait generation module 602 is further configured to match the obtained initial data with a plurality of data tags created in advance by using an MVEL expression engine, and generate a system portrait corresponding to each field according to a matching result; wherein the system representation is stored by an elastic search distributed search and analysis engine.
In one embodiment, the sketch generation module 602 is further configured to segment the initial data using a scroll cursor of an Elasticissearch distributed search and analysis engine.
In one embodiment, the portrait fusion module 603 is further configured to respond to a fusion instruction for fusing at least two target system portraits, and determine an english name list corresponding to the target system portraits; determining a corresponding Index list in an Elasticissearch distributed search and analysis engine according to the English name list; determining an accountId list after duplication removal according to the Index list; searching a system portrait list corresponding to each accountId according to the accountId list; and fusing the system portrait in the system portrait list, and using the fusion result as the user portrait.
In an embodiment, the portrait fusion module 603 is further configured to perform a paging query through a multi-Index fusion query and a scroll cursor of an Elasticsearch distributed search and analysis engine according to the Index list, and determine a deduplicated accountId list according to a query result.
In an embodiment, the apparatus further includes a storage module, configured to store the data tag in a MySQL manner, and store the initial data in an Elasticsearch distributed search and analysis engine.
In an embodiment, the apparatus further includes an update module, configured to send update information to the real-time message monitoring rockmq when the initial data is updated; determining the range of the user portrait needing to be modified according to the updating information, and generating a user portrait list according to the range of the user portrait; the list of user representations is traversed and each user representation is modified.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention also provides electronic equipment, which specifically comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above embodiments.
Fig. 7 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes: a processor 70, a memory 71, a bus 72 and a communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; the processor 70 is arranged to execute executable modules, such as computer programs, stored in the memory 71.
The Memory 71 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 72 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The memory 71 is configured to store a program, and the processor 70 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 70, or implemented by the processor 70.
The processor 70 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 70. The Processor 70 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device 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, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. An image fusion method, comprising:
acquiring initial data of a plurality of fields;
matching the acquired initial data with a plurality of pre-established data labels, and generating a system portrait corresponding to each field according to a matching result;
and responding a fusion instruction for fusing at least two target system images, fusing the target system images, and taking a fusion result as the user image.
2. The method according to claim 1, wherein the step of matching the acquired initial data with a plurality of pre-created data tags and generating a system representation corresponding to each of the domains according to the matching result comprises:
matching the obtained initial data with a plurality of pre-established data labels by using an MVEL expression engine, and generating a system portrait corresponding to each field according to a matching result; wherein the system representation is stored by an Elasticissearch distributed search and analysis engine.
3. The method according to claim 2, wherein before the step of matching the obtained initial data with a plurality of pre-created data tags by using the MVEL expression engine, and generating a system representation corresponding to each of the fields according to the matching result, the method further comprises:
and segmenting the initial data by using a scroll cursor of the Elasticissearch distributed search and analysis engine.
4. The method of claim 1, wherein said step of fusing said target system images in response to a fusing instruction to fuse at least two target system images, and using the fused result as a user image, comprises:
responding a fusion instruction for fusing at least two target system images, and determining an English name list corresponding to the target system images;
determining a corresponding Index list in an Elasticissearch distributed search and analysis engine according to the English name list;
determining an accountId list after duplication removal according to the Index list;
searching a system portrait list corresponding to each accountId according to the accountId list;
and fusing the system portrait in the system portrait list, and taking a fusion result as a user portrait.
5. The method according to claim 4, wherein said step of determining a list of deduplicated accountids from said Index list comprises:
and performing paging query through multi-Index fusion query and scroll cursor of the Elasticissearch distributed search and analysis engine according to the Index list, and determining a deduplicated accountId list according to a query result.
6. The method of claim 1, further comprising: the data tags are subjected to relational storage through MySQL, and the initial data are stored through an Elasticissearch distributed search and analysis engine.
7. The method of claim 1, further comprising:
when the initial data is updated, sending update information to a real-time message monitoring RocktMQ;
determining the range of the user portrait needing to be modified according to the updating information, and generating a user portrait list according to the range of the user portrait;
traversing the user representation list, modifying each of the user representations.
8. An image fusion apparatus comprising:
the data acquisition module is used for acquiring initial data of a plurality of fields;
the portrait generation module is used for matching the acquired initial data with a plurality of pre-established data labels and generating a system portrait corresponding to each field according to a matching result;
and the portrait fusion module is used for responding a fusion instruction for fusing at least two target system portraits, fusing the target system portraits and taking a fusion result as the portrait of the user.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010532360.1A CN111652658A (en) | 2020-06-11 | 2020-06-11 | Portrait fusion method, apparatus, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010532360.1A CN111652658A (en) | 2020-06-11 | 2020-06-11 | Portrait fusion method, apparatus, electronic device and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111652658A true CN111652658A (en) | 2020-09-11 |
Family
ID=72348926
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010532360.1A Pending CN111652658A (en) | 2020-06-11 | 2020-06-11 | Portrait fusion method, apparatus, electronic device and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111652658A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112732700A (en) * | 2021-01-25 | 2021-04-30 | 中冶赛迪重庆信息技术有限公司 | Steel rolling production data slicing method, system, medium and electronic terminal |
| CN112861013A (en) * | 2021-03-18 | 2021-05-28 | 京东数字科技控股股份有限公司 | User portrait updating method and device, electronic equipment and storage medium |
| CN113407843A (en) * | 2021-07-09 | 2021-09-17 | 深圳壹账通智能科技有限公司 | User portrait generation method and device, electronic equipment and computer storage medium |
| CN115242466A (en) * | 2022-07-04 | 2022-10-25 | 北京华圣龙源科技有限公司 | Intrusion active trapping system and method based on high-simulation virtual environment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110069702A (en) * | 2019-03-15 | 2019-07-30 | 深圳壹账通智能科技有限公司 | User behavior data analysis method, device, computer equipment and storage medium |
| CN110245719A (en) * | 2019-03-27 | 2019-09-17 | 中国海洋大学 | A kind of Feature fusion of entity-oriented and user's portrait |
| CN110908883A (en) * | 2019-11-15 | 2020-03-24 | 江苏满运软件科技有限公司 | User portrait data monitoring method, system, equipment and storage medium |
| CN110968584A (en) * | 2019-12-03 | 2020-04-07 | 北京明略软件系统有限公司 | Portrait generating system, method, electronic device and readable storage medium |
-
2020
- 2020-06-11 CN CN202010532360.1A patent/CN111652658A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110069702A (en) * | 2019-03-15 | 2019-07-30 | 深圳壹账通智能科技有限公司 | User behavior data analysis method, device, computer equipment and storage medium |
| CN110245719A (en) * | 2019-03-27 | 2019-09-17 | 中国海洋大学 | A kind of Feature fusion of entity-oriented and user's portrait |
| CN110908883A (en) * | 2019-11-15 | 2020-03-24 | 江苏满运软件科技有限公司 | User portrait data monitoring method, system, equipment and storage medium |
| CN110968584A (en) * | 2019-12-03 | 2020-04-07 | 北京明略软件系统有限公司 | Portrait generating system, method, electronic device and readable storage medium |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112732700A (en) * | 2021-01-25 | 2021-04-30 | 中冶赛迪重庆信息技术有限公司 | Steel rolling production data slicing method, system, medium and electronic terminal |
| CN112861013A (en) * | 2021-03-18 | 2021-05-28 | 京东数字科技控股股份有限公司 | User portrait updating method and device, electronic equipment and storage medium |
| CN113407843A (en) * | 2021-07-09 | 2021-09-17 | 深圳壹账通智能科技有限公司 | User portrait generation method and device, electronic equipment and computer storage medium |
| CN115242466A (en) * | 2022-07-04 | 2022-10-25 | 北京华圣龙源科技有限公司 | Intrusion active trapping system and method based on high-simulation virtual environment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111930547B (en) | Fault positioning method, device and storage medium | |
| CN111652658A (en) | Portrait fusion method, apparatus, electronic device and computer readable storage medium | |
| CN111191125A (en) | Data analysis method based on tagging | |
| CN110968695A (en) | Intelligent labeling method, device and platform based on active learning of weak supervision technology | |
| CN113110833A (en) | Machine learning model visual modeling method, device, equipment and storage medium | |
| CN114385620A (en) | Data processing method, device, equipment and readable storage medium | |
| CN111400361B (en) | Data real-time storage method, device, computer equipment and storage medium | |
| CN111435367A (en) | Knowledge graph construction method, system, equipment and storage medium | |
| CN113032580A (en) | Associated file recommendation method and system and electronic equipment | |
| CN111754268A (en) | OTT big data-based user label generation method, management system and storage medium | |
| CN118981527A (en) | Question answering method, device, electronic device, storage medium, intelligent agent and program product based on large model | |
| CN113157899A (en) | Big data portrait analysis method, server and readable storage medium | |
| CN113987272B (en) | A video tag generation method, video determination method and device | |
| CN111782946A (en) | Book friend recommendation method, computing device and computer storage medium | |
| CN111597336A (en) | Processing method and device of training text, electronic equipment and readable storage medium | |
| CN111444368B (en) | Method and device for constructing user portrait, computer equipment and storage medium | |
| CN110781375B (en) | User state identification determining method and device | |
| CN112231292B (en) | File processing method, device, storage medium and computer equipment | |
| CN114817344B (en) | A data acquisition method and apparatus | |
| US20250021602A1 (en) | Artificial intelligence system for efficient attribute extraction | |
| CN110895587A (en) | Method and device for determining target user | |
| CN117171185B (en) | Logistics data changing method and related equipment based on industrial identification | |
| CN109857838B (en) | Method and apparatus for generating information | |
| CN113220992B (en) | A method, system and medium for recommending information flow content | |
| CN118349220A (en) | Code editing method, device, 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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200911 |
|
| RJ01 | Rejection of invention patent application after publication |