Image generation method, device, system and storage medium based on industrial large model

By extracting feature text, splicing and adjusting images through image generation methods based on industrial large models, the problem of inaccurate image search in the existing technology is solved, achieving higher image processing accuracy and matching user needs.

CN118014833BActive Publication Date: 2024-09-06INNOVATION QIZHI TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410418901.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-09
Publication Date
2024-09-06
Estimated Expiration
2044-04-09

AI Technical Summary

Technical Problem

In image search using existing technology, it is difficult to accurately match user needs by relying only on object information, resulting in the generated target image not meeting user needs and reducing the accuracy of image processing.

Method used

The image generation method based on industrial large models is used to obtain user demand information, extract feature text, search and splice images, calculate matching values, adjust image size and position, and generate target images to ensure that the image meets user needs.

Benefits of technology

It improves the accuracy of image generation, reduces generation deviations, improves the accuracy of image processing, and ensures that the target image meets the actual needs of the user.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118014833B
    Figure CN118014833B
Patent Text Reader

Abstract

The present invention discloses an image generation method, device, system and storage medium based on industrial large models, the method comprising: after obtaining user's demand information, extracting several feature texts from the demand information according to a preset keyword list; using the preset industrial large model to search for multiple images according to each feature text and form a set to obtain several image sets; after extracting scene information from the demand information, extracting feature images from each image set according to the scene information and performing image stitching to obtain multiple stitched images; calculating the matching value between each stitched image and a preset background image, and selecting one image from the multiple stitched images as an image to be processed according to the size of the matching value; after extracting size information from the demand information, adjusting the object of the image to be processed according to the size information to generate a target image. The present invention can generate a target image according to the user's demand information, can reduce deviation, and improve the accuracy of image processing.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of science and technology and artificial intelligence (AI), artificial intelligence or digital computer technology has gradually been applied in different industries and fields. For example, in engineering-related industries, image processing can be performed through artificial intelligence or digital computer technology, making it easier for technicians to search for relevant information about the project and report information based on the processing results.

[0003] In order to provide feedback on engineering-related images, the currently commonly used method is: first receive the processing information input by the user, then identify the processing information to determine the object information required by the user, and call the image processing model to search for one of the images that meets the requirements based on the object information. Finally, add the text information and emoticons that the user needs to add to the searched image to generate an image for user reference.

[0004] The commonly used technical means at present have the following technical problems: as online image resources gradually increase, there is a lot of image data available for search. Image search based solely on object information can result in a large number of related images. Any image selected for search may deviate from the actual needs of technicians, resulting in the subsequent generated target image not meeting user needs, which will reduce the accuracy of image processing. Summary of the invention

[0005] The present invention proposes an image generation method, device, system and storage medium based on an industrial large model, and the method can solve one or more of the above-mentioned technical problems.

[0006] A first aspect of an embodiment of the present invention provides an image generation method based on an industrial large model, the method comprising:

[0007] After obtaining the user's demand information, extracting a number of feature texts from the demand information according to a preset keyword list;

[0008] Using a preset industrial model, multiple images are searched for each of the feature texts and formed into sets to obtain a plurality of image sets, each of which corresponds to a feature text and each of which contains a plurality of feature images;

[0009] After scene information is extracted from the demand information, feature images are extracted from each of the image sets according to the scene information and image stitching is performed to obtain a plurality of stitched images;

[0010] Calculating a matching value between each of the stitched images and a preset background image, and selecting one of the multiple stitched images as an image to be processed according to the size of the matching value;

[0011] After extracting the size information from the requirement information, the object of the image to be processed is adjusted according to the size information to generate a target image.

[0012] In a possible implementation manner of the first aspect, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0013] After determining the stitching area of ​​the preset background image, the color of the edge of the stitching area is obtained to obtain a plurality of first edge chromaticity values, and the color of the edge of each stitching image is obtained to obtain a plurality of second edge chromaticity values;

[0014] After calculating the difference between the first edge chromaticity value and the second edge chromaticity value of the same edge to obtain a plurality of chromaticity difference values, an average value of the plurality of chromaticity difference values ​​is calculated to obtain a matching value regarding chromaticity;

[0015] A matching value with the smallest value is selected from the multiple matching values, and a spliced ​​image corresponding to the matching value with the smallest value is used as the image to be processed.

[0016] In a possible implementation manner of the first aspect, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0017] Acquire the outline of each object included in the preset background image to obtain first outline information, and acquire the outline of each object included in each of the stitched images to obtain second outline information;

[0018] Calculating contour similarity using the first contour information and each of the second contour information to obtain a matching value about the contour of the object;

[0019] A matching value with the largest value is selected from the plurality of matching values, and a spliced ​​image corresponding to the matching value with the largest value is used as the image to be processed.

[0020] In a possible implementation manner of the first aspect, adjusting the object of the image to be processed according to the size information to generate a target image includes:

[0021] extracting the image size and image position of the object from the size information;

[0022] The size of the object in the image to be processed in the image display is adjusted according to the image size, and the position of the object in the image to be processed in the image display is adjusted according to the image position to generate a target image.

[0023] In a possible implementation manner of the first aspect, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0024] If the scene information is real-time monitored scene information, obtaining a first object type and an object area from the scene information;

[0025] Extracting at least one feature image from each of the image sets according to the first object type, wherein the feature image is an image containing an object corresponding to the first object type;

[0026] According to the object area, a feature image corresponding to each of the first object types is added to the corresponding area and spliced ​​to obtain a plurality of spliced ​​images.

[0027] In a possible implementation manner of the first aspect, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0028] If the scene information is non-real-time monitored scene information, obtaining a second object type and a historical stitched image from the scene information;

[0029] Randomly extracting a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type;

[0030] Extract one of the preset number of feature images corresponding to each of the image sets and form a set to be spliced;

[0031] According to the object layout of the historical stitching images, several feature images of each set to be stitched are stitched together to obtain a plurality of stitching images.

[0032] In a possible implementation of the first aspect, the preset industrial macro model is used to search for multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, including:

[0033] After extracting the industrial field from the demand information, determining a set to be screened according to the industrial field, wherein the set to be screened includes a plurality of images to be screened stored in a preset database and a plurality of images to be screened extracted from different online platforms;

[0034] Using a preset industrial macro model, image recognition is performed on a plurality of images to be screened contained in the set to be screened from different image dimensions to obtain an image label for each of the images to be screened;

[0035] After identifying the label text of the image label and determining the subordinate relationship of a plurality of the label texts, constructing the plurality of images to be screened into an image atlas according to the subordinate relationship;

[0036] After segmenting each of the feature texts and extracting a number of text keywords, the semantic similarity between each of the text keywords and the label text in the image atlas is calculated;

[0037] Extracting corresponding images from the image atlas based on the magnitude of the semantic similarity to obtain a plurality of feature images corresponding to each of the feature texts;

[0038] A plurality of feature images corresponding to each of the feature texts are grouped together to obtain a plurality of image sets.

[0039] A second aspect of an embodiment of the present invention provides an image generation device based on an industrial large model, the device comprising:

[0040] A text extraction module is used to extract a number of feature texts from the demand information according to a preset keyword list after obtaining the user's demand information;

[0041] An image search module, used to use a preset industrial model to search multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, each of which corresponds to a feature text and each of which contains a plurality of feature images;

[0042] An image stitching module, configured to extract scene information from the demand information, extract feature images from each of the image sets according to the scene information, and stitch the images to obtain a plurality of stitched images;

[0043] A matching value calculation module, used for calculating the matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value;

[0044] The image generation module is used to extract the size information from the requirement information and adjust the object of the image to be processed according to the size information to generate a target image.

[0045] In a possible implementation manner of the second aspect, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0046] After determining the stitching area of ​​the preset background image, the color of the edge of the stitching area is obtained to obtain a plurality of first edge chromaticity values, and the color of the edge of each stitching image is obtained to obtain a plurality of second edge chromaticity values;

[0047] After calculating the difference between the first edge chromaticity value and the second edge chromaticity value of the same edge to obtain a plurality of chromaticity difference values, an average value of the plurality of chromaticity difference values ​​is calculated to obtain a matching value regarding chromaticity;

[0048] A matching value with the smallest value is selected from the multiple matching values, and a spliced ​​image corresponding to the matching value with the smallest value is used as the image to be processed.

[0049] In a possible implementation manner of the second aspect, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0050] Acquire the outline of each object included in the preset background image to obtain first outline information, and acquire the outline of each object included in each of the stitched images to obtain second outline information;

[0051] Calculating contour similarity using the first contour information and each of the second contour information to obtain a matching value about the contour of the object;

[0052] A matching value with the largest value is selected from the plurality of matching values, and a spliced ​​image corresponding to the matching value with the largest value is used as the image to be processed.

[0053] In a possible implementation manner of the second aspect, adjusting the object of the image to be processed according to the size information to generate a target image includes:

[0054] extracting the image size and image position of the object from the size information;

[0055] The size of the object in the image to be processed in the image display is adjusted according to the image size, and the position of the object in the image to be processed in the image display is adjusted according to the image position to generate a target image.

[0056] In a possible implementation manner of the second aspect, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0057] If the scene information is real-time monitored scene information, obtaining a first object type and an object area from the scene information;

[0058] Extracting at least one feature image from each of the image sets according to the first object type, wherein the feature image is an image containing an object corresponding to the first object type;

[0059] According to the object area, a feature image corresponding to each of the first object types is added to the corresponding area and spliced ​​to obtain a plurality of spliced ​​images.

[0060] In a possible implementation manner of the second aspect, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0061] If the scene information is non-real-time monitored scene information, obtaining a second object type and a historical stitched image from the scene information;

[0062] Randomly extracting a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type;

[0063] Extract one of the preset number of feature images corresponding to each of the image sets and form a set to be spliced;

[0064] According to the object layout of the historical stitching images, several feature images of each set to be stitched are stitched together to obtain a plurality of stitching images.

[0065] In a possible implementation of the second aspect, the preset industrial macro model is used to search for multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, including:

[0066] After extracting the industrial field from the demand information, determining a set to be screened according to the industrial field, wherein the set to be screened includes a plurality of images to be screened stored in a preset database and a plurality of images to be screened extracted from different online platforms;

[0067] Using a preset industrial macro model, image recognition is performed on a plurality of images to be screened contained in the set to be screened from different image dimensions to obtain an image label for each of the images to be screened;

[0068] After identifying the label text of the image label and determining the subordinate relationship of a plurality of the label texts, constructing the plurality of images to be screened into an image atlas according to the subordinate relationship;

[0069] After segmenting each of the feature texts and extracting a number of text keywords, the semantic similarity between each of the text keywords and the label text in the image atlas is calculated;

[0070] Extracting corresponding images from the image atlas based on the magnitude of the semantic similarity to obtain a plurality of feature images corresponding to each of the feature texts;

[0071] A plurality of feature images corresponding to each of the feature texts are grouped together to obtain a plurality of image sets.

[0072] A third aspect of an embodiment of the present invention provides an image generation system based on an industrial large model, the system comprising: an electronic device and a plurality of intelligent terminals, the electronic device being applicable to the image generation method based on an industrial large model as described above;

[0073] The electronic device is communicatively connected with each of the smart terminals respectively.

[0074] Compared with the prior art, the embodiments of the present invention provide an image generation method, device, system and storage medium based on industrial large models, which have the beneficial effects that: after obtaining the user's demand information, the present invention can perform image search, image stitching, image matching and image adjustment according to the demand information to generate a target image that meets the user's needs; through the above series of operations, the generated target image can meet the user's actual needs, reduce image generation deviation, and improve the accuracy of image processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 It is a flowchart of an image generation method based on an industrial large model provided by an embodiment of the present invention;

[0076] Figure 2 It is a structural schematic diagram of an image generation device based on an industrial large model provided by an embodiment of the present invention;

[0077] Figure 3 It is a structural schematic diagram of an image generation system based on an industrial large model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] In order to solve the above problems, an image generation method based on an industrial large model provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.

[0080] Reference Figure 1 , showing a flow chart of an image generation method based on an industrial large model provided by an embodiment of the present invention.

[0081] In one embodiment, the method is applicable to an image generating device, and the image generating device is integrated in an electronic device.

[0082] Taking this as an example, when an electronic device receives an image generation request, it performs a series of processing such as feature text extraction, image search, image stitching and image screening on the required content carried in the image generation request to improve the accuracy of the generated image and meet the user's application needs.

[0083] It can be understood that in the specific implementation of the present application, related data of a series of processing such as feature text extraction, image search, image stitching and image screening are involved. When the following embodiments of the present application are applied to specific products or technologies, permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0084] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0085] This embodiment will be described from the perspective of an image generating device, which can be specifically integrated into an electronic device, which can be a server or a terminal. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart devices that can perform image search.

[0086] Wherein, as an example, the image generation method based on the industrial large model may include:

[0087] S11. After obtaining the user's demand information, extract a number of feature texts from the demand information according to a preset keyword list.

[0088] In one embodiment, the electronic device equipped with the image generating device may be a smart terminal, and the user may input the demand information on the smart terminal. The demand information is the information required to generate the image. The demand information may include: the color of the image, the objects contained in the image, the number of objects, the position of the objects, the color of the objects, the scene displayed by the image, the relevant description of the image, the text of the image, the emoticons of the image, the image size, the border size of the image, etc.

[0089] Since the demand information involves various contents of the images to be displayed, text extraction may be performed on the demand information to extract a number of feature texts, so that related images can be searched according to the feature texts for subsequent image generation.

[0090] In one implementation, the user can add various information to a table on his smart terminal to obtain the required information. The title of each row or column on the table can be constructed into a keyword list to obtain a preset keyword list.

[0091] When extracting feature data, the names of various categories or titles of the table can be read according to a preset keyword list, so that the required feature information can be extracted according to the names to obtain the feature text.

[0092] S12. Using a preset industrial model, search for multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, each of which corresponds to a feature text, and each of which contains multiple feature images.

[0093] In one embodiment, after obtaining the required feature text, the feature text includes: the text required for the image, the object required for the image, the number of objects, and the color of the objects. For each feature text, a related feature image can be searched, and then multiple feature images corresponding to each feature text are combined into a set, so that an image set corresponding to each feature text can be obtained. Since there are several feature texts, there are also several image sets correspondingly; and each image set contains the feature image corresponding to the feature text.

[0094] Specifically, the search method may be to use a preset industrial model, which may be an image recognition model, which is specifically an image recognition model obtained by training with industrial images. The industrial model may be called to perform image recognition in a large image library to identify the required feature image.

[0095] Through model recognition, a large number of feature images that meet the requirements of feature text can be identified. After obtaining multiple feature images, multiple feature images can be spliced ​​to generate images that meet user needs.

[0096] In an optional embodiment, in order to identify an image matching the characteristic text from an image database, as an example, step S12 may include the following sub-steps:

[0097] S121. After extracting the industrial field from the demand information, determine a set to be screened according to the industrial field, wherein the set to be screened includes a plurality of images to be screened stored in a preset database and a plurality of images to be screened extracted from different online platforms.

[0098] In one embodiment, the industrial field is the application field of the object that the user needs to display. For example, the object that the user needs to display is a plant, and the image that needs to be generated is an image about the plant, and its application field may be agriculture. For another example, the object that the user needs to display is a crane, and the image that needs to be generated is an image about the crane, and its application field may be engineering. For another example, the object that the user needs to display is a vehicle, and the image that needs to be generated is an image about the vehicle, and its application field may be the automotive industry.

[0099] After determining the industrial field, the image database can be determined according to the industrial field, so that images matching the feature text can be found in the corresponding database, and then the searched images can be used to generate target images that meet the requirements.

[0100] In one implementation, the electronic device may be connected to several databases, each of which may store multiple images corresponding to a field or industry; multiple images may be extracted from the database corresponding to the industrial field.

[0101] At the same time, the electronic device can also be connected to different online platforms. The online platform can be a search engine platform, through which multiple images corresponding to the industrial field can be found.

[0102] Finally, the multiple images to be screened stored in the database and the multiple images to be screened extracted from different online platforms can be combined into a set to obtain a set to be screened.

[0103] For example, at least one image stored in a database may be directly obtained to obtain a set to be filtered, or at least one image to be filtered may be extracted from an image database or a content database to obtain a set to be filtered, or an original video matching an industrial field may be obtained at one end, the original video may be framed, and at least one image to be filtered may be filtered out from the video frames of the original video to obtain a set to be filtered.

[0104] S122: Using a preset industrial macro model, image recognition is performed on a plurality of images to be screened contained in the set to be screened from different image dimensions to obtain an image label for each of the images to be screened.

[0105] In one embodiment, a preset industrial model can be used to identify the images to be screened in the set to be screened, and the preset industrial model can identify the image features of the images to be screened under the image dimension. The image label can be a feature label of the image, for example, the size of the object in the image, the color of the object, and the outline of the object. The label can also be a text label added by the user to the image.

[0106] There are many ways to identify image tags, which can be as follows:

[0107] For example, after obtaining the set to be screened, the preset industrial model can perform image recognition on each image to be screened in the set to be screened to obtain an image label of the image to be screened.

[0108] The preset industrial model can also be composed of multiple recognition models, which can recognize different features of the image. In addition, when performing image recognition on the image to be screened, the upload time of the image to be screened can be saved in the asynchronous task queue, and the preset industrial model is used in the asynchronous thread to analyze the image label.

[0109] Optionally, the image label of the image to be filtered may have multiple labels. In order to accurately filter the labels that match the image to be filtered, when identifying the image label, the label confidence of the image to be filtered in the image dimension can also be determined based on the image label of the image. The image labels of the image to be filtered can be sorted based on the label confidence. Based on the sorting result, one or more image labels are screened out from the image labels as the current image labels of the image to be filtered.

[0110] Among them, the label confidence can be understood as the probability information that the image label of the image to be filtered is the current image label. Based on the label confidence, there can be many ways to filter out the current image label of the image to be filtered from the image labels of the image to be filtered. For example, the image labels can be sorted based on the label confidence, and based on the sorting result, one or more image labels can be filtered out from the image labels as the current image label of the image to be filtered.

[0111] In an optional embodiment, after the current image label is filtered out from multiple image labels of the image to be filtered based on the label confidence, the image to be filtered can also be preprocessed. For example, the image to be filtered can be hashed to obtain a hash value of the image to be filtered, and image meta-information of the candidate image can be generated based on the hash value and image attribute information of the image to be filtered. The image to be filtered is classified based on the current image label, and index information of the hash value and the current image label is constructed based on the classification result and the hash value of the image to be filtered.

[0112] The image meta information is used to indicate the image information of the candidate image, and the image meta information may include the image name, hash value, image storage address, image size information, etc. of the candidate image.

[0113] The index information may be information about the index relationship between the hash value of the candidate image and the current image label. Through the inverted index of es, it is convenient to index the hash values ​​of all images of the image label according to the image label, so as to search for the corresponding feature image.

[0114] S123: After identifying the label text of the image label and determining the subordinate relationship of a plurality of the label texts, constructing the plurality of images to be screened into an image atlas according to the subordinate relationship.

[0115] After determining one or more image labels, the text of each image label can be obtained to obtain one or more label texts. Then, after determining the subordinate relationship of multiple label texts, multiple images to be screened in the set to be screened are constructed into an image atlas according to the subordinate relationship.

[0116] Among them, the so-called subordinate relationship can be an inclusion relationship between text words. There can be multiple types of subordinate relationships. For example, it can be a superordinate relationship and a subordinate relationship. Taking A containing A1 and A2 as an example, the superordinate word of A1 can be A, and A1 can be the subordinate word of A. For example, biology contains humans and animals, so the superordinate word of humans can be biology, and the subordinate words of biology can be humans and animals, and so on.

[0117] After obtaining the image tags, the subordinate relationships between the image tags can be identified in the image tags. There are many ways to identify the subordinate relationships. For example, the words in the label text of each image tag can be identified in the image tags to obtain a text word set. According to a preset text dictionary, the word relationship between the text words in the text word set is determined, and the word relationship is used as the subordinate relationship between the image tags.

[0118] Among them, word relations can be understood as the relationship between the parts of speech between text words, for example, they can include synonyms, near-synonyms, antonyms, hypernyms and hyponyms, etc. The preset text dictionary can be understood as a pre-set dictionary or word map containing various words and word relations. According to the preset text dictionary, there can be multiple ways to determine the word relations between text words in a text word set. For example, the word network information corresponding to each text word in the text word set can be identified in the preset text dictionary, at least one relationship word set corresponding to the text word can be extracted from the word network information, and based on the relationship word set, the word relations between text words in the text word set can be determined.

[0119] Among them, the word network information can be understood as the information of the relationship network composed of text words that have word relationships with the text word. The word network information may include a relationship word set corresponding to each type of word relationship. Based on the relationship word set, there may be multiple ways to determine the word relationship between text words in the text word set, for example, determine the target text word in the text word set, search for the target relationship word matching the text word other than the target text word in the relationship word set corresponding to the target text word, and when the target relationship word exists, obtain the current word relationship between the target relationship word and the target text word, and use the current word relationship as the word relationship between the target text word and the text word corresponding to the target relationship word, so as to obtain the word relationship between the text words in the text word set.

[0120] Among them, the target text word can be any text word in the text word set, and there can be many ways to obtain the current word relationship between the target relationship word and the target text word. For example, the current word relationship between the target relationship word and the target text word can be determined according to the set type of the relationship word set in which the target relationship word is located. For example, taking the set type as a synonym set as an example, the current word relationship between the target relationship word and the target text word is a synonym relationship. Alternatively, the relationship type of the target relationship word can be directly obtained, and the relationship type can be used as the current word relationship between the target text word and the target relationship word. Taking the relationship type as a hypernym relationship as an example, the current word relationship between the target text word and the target relationship word can be a hypernym relationship.

[0121] After obtaining the current word relationship, the current word relationship can be used as the relationship between the target text word and the text word corresponding to the target relationship word, thereby obtaining the word relationship between the text words in the text word set. For example, the current word relationship is used as the word relationship between the target text word and the text word corresponding to the target relationship word, and the step of determining the target text word in the text word set is returned to be executed until all text words in the text word set are used as target text words, thereby obtaining the word relationship between the text words in the text word set.

[0122] After determining the subordinate relationship, the subordinate relationship between the image tags can be used to construct a graph of the images to be screened to obtain an image graph. The image graph can also be understood as an image knowledge graph after the image tags are graded. Unlike the traditional knowledge graph, there is a hierarchical relationship between entities. The hierarchical relationship can include upper and lower hierarchies and semantic hierarchies, so that the search results can be more accurately aligned with the user's search intent.

[0123] There are many ways to construct an image atlas. For example, you can obtain a set of image tags, identify the subordinate relationships between the image tags in the set of image tags, construct a hierarchical atlas of image tags based on the subordinate relationships, and then construct an image atlas according to the relationships of the hierarchical atlas. The specific methods are as follows:

[0124] For example, image tags with subordinate relationships can be screened out from a set of image tags to obtain a set of subordinate image tags. The image tags in the subordinate image tag set are classified according to the relationship type of the subordinate relationship. Based on the classification results, the image tags in the subordinate image tag set are used as entities to construct a knowledge graph to obtain a basic image tag graph, and then an image graph is constructed according to the relationships of the basic image tag graph.

[0125] Among them, there can be multiple types of subordinate relationships, for example, they can include superordinate relationships and subordinate relationships. Therefore, according to the type of subordinate relationships, there can be multiple ways to classify image labels in the subordinate image label set. For example, the image labels in the subordinate image label set can be divided into superordinate image labels and subordinate image labels.

[0126] After classifying the image tags in the subordinate image tag set, the image tags in the subordinate image tag set can be used as entities to construct a knowledge graph based on the classification results. There are many ways to construct a knowledge graph. For example, a wordnet graph can be used to construct a knowledge graph according to the superior / inferior relationship between the image tags in the subordinate image tag set to obtain a basic image label graph, and finally an image graph is constructed according to the relationship of the basic image label graph.

[0127] S124, after segmenting each of the feature texts and extracting a number of text keywords, the semantic similarity between each of the text keywords and the label text in the image atlas is calculated.

[0128] In one embodiment, each feature text may include multiple words, and a text segmentation process may be performed on each feature text to obtain a plurality of text keywords of the feature text.

[0129] The text segmentation can be understood as segmenting text words from the feature text and filtering out keywords from the segmented text words to obtain text keywords. The so-called text keywords are used to indicate the keywords to be searched in the feature text.

[0130] There are many ways to perform word segmentation on feature text, which can be as follows:

[0131] For example, when a feature text is received, a text segmentation process is performed on the feature text to obtain at least one text word, and at least one keyword is screened out from the text word to obtain a text keyword.

[0132] There are many ways to filter out at least one keyword from text words. For example, a keyword recognition model can be used to extract text features of text words, and the keyword information of the text word can be determined based on the extracted text word features. Based on the keyword information, at least one text word can be filtered out from the text words as a text keyword.

[0133] After obtaining several text keywords corresponding to each feature text, the semantic similarity between each text keyword and each label text in the image atlas can be calculated.

[0134] The specific calculation method can be as follows:

[0135] The similarity between the text keywords and the label text can be calculated and normalized to obtain the semantic similarity between the text keywords and the label text. Finally, based on the semantic similarity, the corresponding images can be screened out in the image atlas.

[0136] There are many ways to calculate similarity. For example, taking text keywords and label text as word vectors, the cosine similarity between word vectors can be calculated, and the cosine similarity can be used as the similarity between text keywords and label text. The specific method can be as shown in the following formula:

[0137] cos(θ)=(A*B) / (A*B);

[0138] similarity=(cos(θ)+1) / 2.

[0139] Among them, A is the multidimensional word vector of the text keyword, B is the multidimensional word vector of the label text, cos(θ) is the cosine angle between the multidimensional word vector of the text keyword and the multidimensional word vector of the label text, and simillarity is the cosine similarity between the text keyword and the label text.

[0140] After calculating the cosine similarity, the cosine similarity can be normalized to obtain the semantic similarity between the text keywords and the label text.

[0141] There are many ways to perform normalization. For example, the cosine similarity between word vectors in each dimension can be normalized to obtain the normalized similarity, and the normalized similarity can be fused to obtain the semantic similarity between text keywords and label texts.

[0142] S125. Extract corresponding images from the image atlas based on the magnitude of the semantic similarity, and obtain multiple feature images corresponding to each of the feature texts.

[0143] S126, grouping the plurality of feature images corresponding to each of the feature texts into a set to obtain a plurality of image sets.

[0144] After the semantic similarity is calculated, each feature text may correspond to multiple semantic similarities, and several semantic similarities greater than a preset similarity may be screened from the multiple semantic similarities, and then the images to be screened corresponding to the several semantic similarities greater than the preset similarity are used as feature images, thereby obtaining multiple feature images corresponding to each feature text.

[0145] Finally, the multiple feature images corresponding to each feature text may be grouped into a set. After the multiple feature images corresponding to each feature text are grouped into sets, several image sets may be obtained.

[0146] From the above, it can be seen that the present invention, by understanding the content of the feature text and searching for the image corresponding to each feature text, can increase the materials required for the subsequent generation of the target image by utilizing the multiple image sets searched by the feature text, and facilitate the subsequent use of multiple image materials to generate images that meet user needs, so as to meet the actual needs of the user and improve the accuracy of image construction.

[0147] S13, after extracting scene information from the demand information, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images.

[0148] Since there are several image sets and each image set has multiple feature images, if the feature images are randomly spliced ​​together, the generated target image will deviate from the user's actual needs. In order to avoid the above situation, scene information can be extracted from the demand information, where the scene information is the application scenario or actual scene represented by the image that the user wants to construct.

[0149] For example, if the target image to be constructed by the user is about rice planting, the scene information may be planting rice in terraced fields. For another example, if the target image to be constructed by the user is about the scene of building a bridge in an industry, the scene information may be building a bridge in the xx river.

[0150] Since the feature images involve various objects, which may be objects required by the scene information, the required feature images can be extracted from each image set according to the scene information, and then the extracted feature images can be spliced ​​to obtain a spliced ​​image.

[0151] The stitching method may be to combine, superimpose or stitch several feature images up and down to form a stitched image.

[0152] One or more feature images may be extracted from the image set each time, and multiple feature images may be spliced ​​together to obtain multiple spliced ​​images.

[0153] In one embodiment, the scene information required by the user is real-time scene information of real-time monitoring, and the scene required by the user is the scene information of a certain place photographed at a certain time point. For example, the scene information required by the user is the bridge built on the xx river on xx / xx / xx.

[0154] Wherein, as an example, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images may include the following sub-steps:

[0155] S21: If the scene information is real-time monitored scene information, obtain a first object type and an object area from the scene information.

[0156] S22. Extract at least one feature image from each of the image sets according to the first object type, where the feature image is an image containing an object corresponding to the first object type.

[0157] S23. According to the object area, add a feature image corresponding to each of the first object types to a corresponding area and perform stitching to obtain a plurality of stitched images.

[0158] If the scene information is real-time monitored scene information, which is real-time scene information determined at a certain time point, the first object type and the object area can be obtained from the scene information. The first object type is the type of object contained in the scene required by the user. For example, if the object to be displayed is a crane, its first object type corresponds to a crane. For another example, if the object to be displayed is rice, its first object type corresponds to rice.

[0159] The object region is the location of the object in the image. For example, if the feature image is an image of a crane and the crane is in the lower left corner, then its object location is the lower left corner.

[0160] It should be noted that there are multiple objects that the user needs to display, and correspondingly, there can be multiple first object types. Each object has a corresponding position, and each first object type can correspond to an object area.

[0161] Since there are multiple first object types, each first object type corresponds to a feature text, the feature text corresponds to an image set, and the image set corresponding to the feature text contains multiple feature images. For example, there are three first object types, namely, bridge piers, cranes, and rivers. Among them, the image set corresponding to the crane contains multiple feature images of cranes; the image set corresponding to the bridge pier contains multiple feature images of bridge piers; and the image set corresponding to the river contains multiple feature images of rivers.

[0162] At this time, the image set corresponding to the bridge pier can be determined, and then at least one characteristic image of the bridge pier can be extracted from the image set of the bridge pier. Each characteristic image of the bridge pier is an image that includes the bridge pier.

[0163] Similarly, the image set corresponding to the crane can be determined, and then at least one feature image of the crane can be extracted from the image set of the crane. Each feature image of the crane is an image that includes the crane.

[0164] Since each first object type corresponds to at least one feature image, a feature image corresponding to each first object type can be extracted in turn, and then the feature image of the object area is added to the corresponding image area. After the addition is completed, multiple feature images are combined to obtain a stitched image.

[0165] Then, another feature image is extracted and spliced ​​in the above manner to form a new spliced ​​image.

[0166] For example, there are three first object types, namely, bridge pier A, crane B, and river C. Among them, there are three feature images corresponding to bridge pier A, namely A1, A2, and A3; there are two feature images corresponding to crane B, namely B1 and B2; there are three feature images corresponding to river C, namely C1, C2, and C3.

[0167] A characteristic image corresponding to each first object type is arbitrarily selected, and characteristic images A1, B1 and C1 may be selected, and the three images are spliced ​​to obtain a first spliced ​​image.

[0168] Similarly, feature images A2, B1 and C1 can be selected, and these three images can be stitched together to obtain a second stitched image; then feature images A2, B1 and C3 can be selected, and these three images can be stitched together to obtain a third stitched image; then feature images A3, B2 and C2 can be selected, and these three images can be stitched together to obtain a fourth stitched image, and so on, to obtain multiple stitched images. The present invention allows multiple images of different first object types to be stitched together at the same position, thereby forming different stitched images for user reference.

[0169] The number of stitched images can be adjusted according to actual needs, and can be at most the product of multiple feature images of the first object type. For example, in the above example, there are three first object types, namely pier A, crane B and river C, and the number of stitched images can be at most 3*2*3=18.

[0170] In another embodiment, the image that the user needs to construct is a simulation or simulation of a previous historical scene, and the previous or historical scene has a related image template or target template. In order to fit the previous historical scene, as an example, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain multiple stitched images may include the following sub-steps:

[0171] S31: If the scene information is non-real-time monitored scene information, obtain a second object type and a historical stitched image from the scene information.

[0172] S32. Randomly extract a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type.

[0173] S33, extracting one image from a preset number of feature images corresponding to each of the image sets and forming a set to be spliced.

[0174] S34, stitching together a plurality of feature images in each of the to-be-stitched sets according to the object layout of the historical stitching images to obtain a plurality of stitching images.

[0175] If the scene information is non-real-time monitoring scene information, for example, in the later stage of bridge construction, the user needs to simulate and generate effect images of the environmental conditions on both sides of the river before the bridge is built, so as to compare the generated effect images with the current actual environment. For another example, after the bridge is completed, the user needs to simulate and generate effect images of the construction site during the bridge construction process, so as to use the effect images of the construction site to summarize the project.

[0176] In order to meet the needs of users, the second object type and the historical spliced ​​image can be obtained from the scene information, wherein the second object type is the type of object contained in the scene required by the user, which can be the same as the first object type, and the historical spliced ​​image is a sample image that the user needs to simulate.

[0177] It should be noted that if the user needs to display multiple objects, there may be multiple second object types.

[0178] A preset number of feature images may be randomly extracted from each image set according to the second object type, and each feature image is an image containing an object corresponding to the second object type.

[0179] The preset quantity can be adjusted according to the actual needs of the user, and can be one, two or N sheets.

[0180] The extraction method may be random extraction. After the extraction, one image may be extracted from a preset number of feature images corresponding to each image set and form a set to be spliced.

[0181] For example, there are 5 image sets, namely image set A, image set B, image set C, image set D and image set E, and 3 feature images are extracted from each image set. The three feature images corresponding to image set A are A1, A2 and A3; the three feature images corresponding to image set B are B1, B2 and B3, and so on.

[0182] Then, one feature image can be randomly selected from several feature images corresponding to each image set, and the extracted feature image is used as an image set that needs to be spliced.

[0183] For example, feature image A1 is extracted from A1, A2 and A3 of image set A, feature image B2 is extracted from B1, B2 and B3 of image set B, feature image C2 is extracted from C1, C2 and C3 of image set C, feature image D1 is extracted from D1, D2 and D3 of image set D, and feature image E3 is extracted from E1, E2 and E3 of image set E, and a set to be spliced ​​(including: feature image A1, feature image B2, feature image C2, feature image D1 and feature image E3) is obtained. By continuing to extract in the above manner, a second set to be spliced ​​(including: feature image A3, feature image B1, feature image C2, feature image D1 and feature image E2) can be obtained, and so on. By extracting and combining in the above-mentioned permutation and combination manner, multiple combinations to be spliced ​​can be obtained.

[0184] Finally, the objects of the historical stitching image and the positions of the objects in the image can be obtained to obtain the object layout of the historical stitching image. Finally, according to the object layout, several feature images contained in each set to be stitched are added to the corresponding positions, and then the feature images are combined to complete the stitching, so that the stitching image corresponding to each set to be stitched can be obtained. Since there are multiple sets to be stitched, multiple stitching images can be obtained in the end.

[0185] S14, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value.

[0186] In one embodiment, after the image stitching is completed, in order to further meet the user's display needs, the matching value of each stitched image and the user's preset background image can be calculated. The preset background image is the background wall or background image of the user's display image.

[0187] By calculating the matching value of two images, one image to be processed can be selected from multiple stitched images according to the size of the matching value for display.

[0188] In one of the embodiments, the matching value may be calculated from the dimension of color.

[0189] Wherein, as an example, the calculating of the matching value between each of the stitched images and the preset background image, and selecting one of the stitched images as the image to be processed according to the size of the matching value, may include the following sub-steps:

[0190] S41, after determining the stitching area of ​​the preset background image, obtaining the color of the edge of the stitching area to obtain a plurality of first edge chromaticity values, and obtaining the color of the edge of each stitching image to obtain a plurality of second edge chromaticity values.

[0191] S42: After calculating the difference between the first edge chromaticity value and the second edge chromaticity value of the same edge to obtain a plurality of chromaticity difference values, calculate an average value of the plurality of chromaticity difference values ​​to obtain a matching value regarding chromaticity.

[0192] S43, selecting a matching value with the smallest value from the multiple matching values, and taking the spliced ​​image corresponding to the matching value with the smallest value as the image to be processed.

[0193] Specifically, a stitching area of ​​the preset background image may be determined. The stitching area is an area in the preset background image where the stitching images are placed, and may be the middle or side of the preset background image.

[0194] Then, the edge of the splicing area of ​​the preset background image and the color of the edge can be determined. For example, if the splicing area is in the middle of the preset background image and the splicing area is a square, the color values ​​of the four edges can be obtained to obtain four first edge chromaticity values. The first edge chromaticity value is specifically the chromaticity value of the position where the edge contacts the preset background image.

[0195] Similarly, the chromaticity values ​​of the four edges of the spliced ​​image may also be acquired to obtain the second edge chromaticity value.

[0196] Referring to the above example, assume that there are four first edge chromaticity values ​​and four second edge chromaticity values. The difference between the first edge chromaticity value and the second edge chromaticity value of the same edge can be calculated. For example, the four chromaticity values ​​can be calculated as follows: the difference between the first edge chromaticity value and the second edge chromaticity value of the upper edge; the difference between the first edge chromaticity value and the second edge chromaticity value of the lower edge; the difference between the first edge chromaticity value and the second edge chromaticity value of the left edge; and the difference between the first edge chromaticity value and the second edge chromaticity value of the right edge, to obtain four chromaticity difference values, and finally calculate the average of the four chromaticity difference values ​​to obtain the matching value about chromaticity. Each spliced ​​image can be calculated in the above manner, and the matching value corresponding to each spliced ​​image can be obtained.

[0197] If the matching value is the smallest, it means that the color difference is small, the color deviation is small, and it matches the background image best. Therefore, the matching value with the smallest value can be selected from multiple matching values, and the spliced ​​image corresponding to the matching value with the smallest value is used as the image to be processed.

[0198] In one embodiment, the preset background image may include different objects, and the image may be calculated from the dimension of the outline of the object.

[0199] Wherein, as an example, the calculating of the matching value between each of the stitched images and the preset background image, and selecting one of the stitched images as the image to be processed according to the size of the matching value, may include the following sub-steps:

[0200] S51, acquiring the outline of each object included in the preset background image to obtain first outline information, and acquiring the outline of each object included in each of the stitched images to obtain second outline information.

[0201] S52: Calculate contour similarity using the first contour information and each of the second contour information to obtain a matching value for the object contour.

[0202] S53, selecting a matching value with the largest value from the multiple matching values, and taking a spliced ​​image corresponding to the matching value with the largest value as the image to be processed.

[0203] Specifically, the objects of the preset background image can be identified, so that each object contained in the preset background image can be obtained, and the outline of each object can be extracted to obtain the first outline information of the preset background image. Similarly, the stitched image also contains multiple objects, and the objects of each stitched image can be identified, and the outline of each object in the stitched image can be extracted to obtain the second outline information of each stitched image.

[0204] Then, the contour similarity between the first contour information and each second contour information is calculated, so that the matching value of each spliced ​​image with respect to the object contour can be obtained.

[0205] For example, if there are 10 second contour information, the contour similarity can be calculated using the first contour information and each second contour information as the matching value.

[0206] If the matching value is large, it means that the object of the stitched image is similar to the object of the background image, and the stitched image is the image required by the user. Therefore, the matching value with the largest value can be selected from multiple matching values, and the stitched image corresponding to the matching value with the largest value is used as the image to be processed.

[0207] S15 , after extracting size information from the requirement information, adjusting the object of the image to be processed according to the size information to generate a target image.

[0208] After obtaining the image to be processed, the user may need to adjust its size. Specifically, the size information can be extracted from the demand information. The size information includes the position, front and back relationship, size, etc. of the object. Finally, the object of the image to be processed is adjusted according to the size information, so that the target image that meets the user's needs can be generated.

[0209] In one embodiment, step S15 may include the following sub-steps:

[0210] S151. Extract the image size and image position of the object from the size information.

[0211] S152: adjusting the size of the object in the image to be processed in image display according to the image size and adjusting the position of the object in the image to be processed in image display according to the image position, to generate a target image.

[0212] Specifically, the image size and image position of the object can be extracted from the size information. The image size is the size of the object displayed in the image, and the image position can be the position of the object in the image.

[0213] Then, the size of the object in the image to be processed in the image display can be adjusted according to the image size, and the position of the object in the image to be processed in the image display can be adjusted according to the image position, and finally a target image is generated.

[0214] In this embodiment, the embodiment of the present invention provides an image generation method based on an industrial large model, and its beneficial effect is that: after obtaining the user's demand information, the present invention can perform image search, image stitching, image matching, image adjustment and other processing according to the demand information to generate a target image that meets the user's needs; through the above series of operations, the generated target image can meet the user's actual needs, reduce image generation deviation, and improve the accuracy of image processing.

[0215] The embodiment of the present invention also provides an image generation device based on an industrial large model, see Figure 2 , showing a schematic structural diagram of an image generation device based on an industrial large model provided by an embodiment of the present invention.

[0216] Wherein, as an example, the image generation device based on the industrial large model may include:

[0217] The text extraction module 201 is used to extract a number of characteristic texts from the demand information according to a preset keyword list after obtaining the user's demand information;

[0218] The image search module 202 is used to use the preset industrial model to search for multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, each of which corresponds to a feature text and each of which contains multiple feature images;

[0219] An image stitching module 203 is used to extract scene information from the demand information, extract feature images from each of the image sets according to the scene information, and stitch the images to obtain a plurality of stitched images;

[0220] A matching value calculation module 204 is used to calculate a matching value between each of the stitched images and a preset background image, and select one of the stitched images as an image to be processed according to the size of the matching value;

[0221] The image generation module 205 is used to extract the size information from the requirement information and adjust the object of the image to be processed according to the size information to generate a target image.

[0222] Optionally, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0223] After determining the stitching area of ​​the preset background image, the color of the edge of the stitching area is obtained to obtain a plurality of first edge chromaticity values, and the color of the edge of each stitching image is obtained to obtain a plurality of second edge chromaticity values;

[0224] After calculating the difference between the first edge chromaticity value and the second edge chromaticity value of the same edge to obtain a plurality of chromaticity difference values, an average value of the plurality of chromaticity difference values ​​is calculated to obtain a matching value regarding chromaticity;

[0225] A matching value with the smallest value is selected from the multiple matching values, and a spliced ​​image corresponding to the matching value with the smallest value is used as the image to be processed.

[0226] Optionally, calculating a matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value, includes:

[0227] Acquire the outline of each object included in the preset background image to obtain first outline information, and acquire the outline of each object included in each of the stitched images to obtain second outline information;

[0228] Calculating contour similarity using the first contour information and each of the second contour information to obtain a matching value about the contour of the object;

[0229] A matching value with the largest value is selected from the plurality of matching values, and a spliced ​​image corresponding to the matching value with the largest value is used as the image to be processed.

[0230] Optionally, adjusting the object of the image to be processed according to the size information to generate a target image includes:

[0231] extracting the image size and image position of the object from the size information;

[0232] The size of the object in the image to be processed in the image display is adjusted according to the image size, and the position of the object in the image to be processed in the image display is adjusted according to the image position to generate a target image.

[0233] Optionally, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0234] If the scene information is real-time monitored scene information, obtaining a first object type and an object area from the scene information;

[0235] Extracting at least one feature image from each of the image sets according to the first object type, wherein the feature image is an image containing an object corresponding to the first object type;

[0236] According to the object area, a feature image corresponding to each of the first object types is added to the corresponding area and spliced ​​to obtain a plurality of spliced ​​images.

[0237] Optionally, extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes:

[0238] If the scene information is non-real-time monitored scene information, obtaining a second object type and a historical stitched image from the scene information;

[0239] Randomly extracting a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type;

[0240] Extract one of the preset number of feature images corresponding to each of the image sets and form a set to be spliced;

[0241] According to the object layout of the historical stitching images, several feature images of each set to be stitched are stitched together to obtain a plurality of stitching images.

[0242] Optionally, the preset industrial model is used to search for multiple images according to each of the feature texts and form a set to obtain several image sets, including:

[0243] After extracting the industrial field from the demand information, determining a set to be screened according to the industrial field, wherein the set to be screened includes a plurality of images to be screened stored in a preset database and a plurality of images to be screened extracted from different online platforms;

[0244] Using a preset industrial macro model, image recognition is performed on a plurality of images to be screened contained in the set to be screened from different image dimensions to obtain an image label for each of the images to be screened;

[0245] After identifying the label text of the image label and determining the subordinate relationship of a plurality of the label texts, constructing the plurality of images to be screened into an image atlas according to the subordinate relationship;

[0246] After segmenting each of the feature texts and extracting a number of text keywords, the semantic similarity between each of the text keywords and the label text in the image atlas is calculated;

[0247] Extracting corresponding images from the image atlas based on the magnitude of the semantic similarity to obtain a plurality of feature images corresponding to each of the feature texts;

[0248] A plurality of feature images corresponding to each of the feature texts are grouped together to obtain a plurality of image sets.

[0249] The embodiment of the present invention also provides an image generation system based on industrial large models, see Figure 3 , showing a structural schematic diagram of an image generation system based on an industrial large model provided by an embodiment of the present invention.

[0250] Wherein, as an example, the image generation system based on the industrial large model may include: an electronic device and a plurality of intelligent terminals, wherein the electronic device is applicable to the image generation method based on the industrial large model as described in the above embodiment;

[0251] The electronic device is communicatively connected with each of the smart terminals respectively.

[0252] The smart terminal is a user's smart terminal, through which the user can upload his / her demand information, and the electronic device uses the demand information to generate a target image and sends it to the smart terminal. The user can then view the target image he / she needs through the smart terminal.

[0253] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0254] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the image generation method based on the industrial large model as described in the above embodiment is implemented.

[0255] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the image generation method based on the industrial large model as described in the above embodiment.

[0256] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.

[0257] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), apparatuses, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0258] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0259] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0260] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An image generation method based on industrial large models, characterized in that: The method comprises: After obtaining the user's demand information, extracting a number of feature texts from the demand information according to a preset keyword list; Using a preset industrial model, multiple images are searched for each of the feature texts and formed into sets to obtain a plurality of image sets, each of which corresponds to a feature text and each of which contains a plurality of feature images; After scene information is extracted from the demand information, feature images are extracted from each of the image sets according to the scene information and image stitching is performed to obtain a plurality of stitched images; Calculating a matching value between each of the stitched images and a preset background image, and selecting one of the multiple stitched images as an image to be processed according to the size of the matching value; After extracting the size information from the requirement information, adjusting the object of the image to be processed according to the size information to generate a target image; The step of extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes: If the scene information is real-time monitored scene information, obtaining a first object type and an object area from the scene information; Extracting at least one feature image from each of the image sets according to the first object type, wherein the feature image is an image containing an object corresponding to the first object type; According to the object area, adding a feature image corresponding to each of the first object types to a corresponding area and stitching them together to obtain a plurality of stitched images; or; The step of extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes: If the scene information is non-real-time monitored scene information, obtaining a second object type and a historical stitched image from the scene information; Randomly extracting a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type; Extract one of the preset number of feature images corresponding to each of the image sets and form a set to be spliced; According to the object layout of the historical stitching images, several feature images of each set to be stitched are stitched together to obtain a plurality of stitching images.

2. The image generation method based on industrial large model according to claim 1 is characterized in that: The calculating of the matching value between each of the stitched images and the preset background image, and selecting one of the stitched images as the image to be processed according to the size of the matching value, comprises: After determining the stitching area of ​​the preset background image, the color of the edge of the stitching area is obtained to obtain a plurality of first edge chromaticity values, and the color of the edge of each stitching image is obtained to obtain a plurality of second edge chromaticity values; After calculating the difference between the first edge chromaticity value and the second edge chromaticity value of the same edge to obtain a plurality of chromaticity difference values, an average value of the plurality of chromaticity difference values ​​is calculated to obtain a matching value regarding chromaticity; A matching value with the smallest value is selected from the multiple matching values, and a spliced ​​image corresponding to the matching value with the smallest value is used as the image to be processed.

3. The image generation method based on industrial large model according to claim 1 is characterized in that: The calculating of the matching value between each of the stitched images and the preset background image, and selecting one of the stitched images as the image to be processed according to the size of the matching value, comprises: Acquire the outline of each object included in the preset background image to obtain first outline information, and acquire the outline of each object included in each of the stitched images to obtain second outline information; Calculating contour similarity using the first contour information and each of the second contour information to obtain a matching value about the contour of the object; A matching value with the largest value is selected from the plurality of matching values, and a spliced ​​image corresponding to the matching value with the largest value is used as the image to be processed.

4. The image generation method based on industrial large model according to claim 1 is characterized in that: The step of adjusting the object of the image to be processed according to the size information to generate a target image includes: extracting the image size and image position of the object from the size information; The size of the object in the image to be processed in the image display is adjusted according to the image size, and the position of the object in the image to be processed in the image display is adjusted according to the image position to generate a target image.

5. The image generation method based on industrial large model according to any one of claims 1 to 4, characterized in that: The preset industrial model is used to search for multiple images according to each of the feature texts and form a set to obtain several image sets, including: After extracting the industrial field from the demand information, determining a set to be screened according to the industrial field, wherein the set to be screened includes a plurality of images to be screened stored in a preset database and a plurality of images to be screened extracted from different online platforms; Using a preset industrial macro model, image recognition is performed on a plurality of images to be screened contained in the set to be screened from different image dimensions to obtain an image label for each of the images to be screened; After identifying the label text of the image label and determining the subordinate relationship of a plurality of the label texts, constructing the plurality of images to be screened into an image atlas according to the subordinate relationship; After segmenting each of the feature texts and extracting a number of text keywords, the semantic similarity between each of the text keywords and the label text in the image atlas is calculated; Extracting corresponding images from the image atlas based on the magnitude of the semantic similarity to obtain a plurality of feature images corresponding to each of the feature texts; A plurality of feature images corresponding to each of the feature texts are grouped together to obtain a plurality of image sets.

6. An image generation device based on an industrial large model, characterized in that: The device comprises: A text extraction module is used to extract a number of feature texts from the demand information according to a preset keyword list after obtaining the user's demand information; An image search module, used to use a preset industrial model to search multiple images according to each of the feature texts and form a set to obtain a plurality of image sets, each of which corresponds to a feature text and each of which contains a plurality of feature images; An image stitching module, configured to extract scene information from the demand information, extract feature images from each of the image sets according to the scene information, and stitch the images to obtain a plurality of stitched images; A matching value calculation module, used for calculating the matching value between each of the stitched images and a preset background image, and selecting one of the plurality of stitched images as an image to be processed according to the size of the matching value; An image generation module, configured to extract size information from the requirement information and adjust the object of the image to be processed according to the size information to generate a target image; The step of extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes: If the scene information is real-time monitored scene information, obtaining a first object type and an object area from the scene information; Extracting at least one feature image from each of the image sets according to the first object type, wherein the feature image is an image containing an object corresponding to the first object type; According to the object area, adding a feature image corresponding to each of the first object types to a corresponding area and stitching them together to obtain a plurality of stitched images; or; The step of extracting feature images from each of the image sets according to the scene information and performing image stitching to obtain a plurality of stitched images includes: If the scene information is non-real-time monitored scene information, obtaining a second object type and a historical stitched image from the scene information; Randomly extracting a preset number of feature images from each of the image sets according to the second object type, each of the feature images being an image containing an object corresponding to the second object type; Extract one of the preset number of feature images corresponding to each of the image sets and form a set to be spliced; According to the object layout of the historical stitching images, several feature images of each set to be stitched are stitched together to obtain a plurality of stitching images.

7. An image generation system based on industrial large models, characterized in that: The system comprises: an electronic device and a plurality of intelligent terminals, wherein the electronic device is applicable to the image generation method based on industrial large models as described in any one of claims 1 to 5; The electronic device is communicatively connected with each of the smart terminals respectively.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the image generation method based on an industrial large model as described in any one of claims 1 to 5.