Artificial intelligence poem artistic conception image generation and construction method based on semantic ontology

Through artificial intelligence methods based on semantic ontology, OCR and GAN technologies are used to generate artistic conception images of ancient poems, which solves the problem of difficulty in intuitively expressing the artistic conception of ancient poems, realizes the generation of personalized scene images, and provides new opportunities for appreciation of ancient poems and cultural creativity. technical means.

CN118537445APending Publication Date: 2024-08-23GUANGDONG UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410664561.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing technology is difficult to intuitively convert the artistic conception of ancient poetry from text to images, and there is a lack of effective methods for generating images of poetic artistic conception.

Method used

Using artificial intelligence methods based on semantic ontology, we build a database of artistic conception images, use OCR technology to identify ancient poetry texts, combine GAN and DiscoDiffusion technology to generate personalized scene images, and perform image optimization based on the imagery and emotional colors in the poetry texts.

Benefits of technology

It realizes the generation of personalized scenes from ancient poetry text to images, provides a more intuitive and vivid visual experience, provides new technical means for the appreciation and learning of ancient poetry, and promotes the innovation of cultural creativity and traditional culture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537445A
    Figure CN118537445A
Patent Text Reader

Abstract

The invention discloses a semantic ontology-based artificial intelligence poetry artistic conception image generation and construction method, which comprises an artistic conception image database, the artistic conception image database comprises ancient poetry texts, extracted images, corresponding image materials and constructed scene images, and the artistic conception image database uses an OCR technology to identify the ancient poetry texts, so that the ancient poetry artistic conception images are obtained. Converting the text into processable text data; according to the method, a synthesized scene image is subjected to personalized optimization by utilizing an image generation technology, such as a GAN (Generative Adversarial Network), and according to feature data, such as emotional colors and image features, extracted from an ancient poetry text, and the ancient poetry text and the image generation technology are combined, so that the personalized scene image generation method based on the ancient poetry is realized. According to the method, the corresponding scene image can be retrieved and synthesized according to the image and the artistic conception extracted from the ancient poetry text, and the emotion and the picture expressed by the ancient poetry are displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of poetry image generation and construction, and in particular to an artificial intelligence poetry image generation and construction method based on semantic ontology. Background Art

[0002] Chinese classical poetry is a valuable heritage of ancient Chinese literature. In recent years, with the improvement of national cultural confidence, the country and the public have attached increasing importance to Chinese classical poetry, and Chinese classical poetry, a treasure of Chinese culture, has once again entered people's vision.

[0004] At present, when we recite ancient poems, we look at the words and understand the artistic conception through the words, and then the artistic conception manifests in our minds, which cannot be expressed intuitively in reality. For this reason, we propose an artificial intelligence poetry artistic conception image generation and construction method based on semantic ontology. Summary of the invention

[0005] The purpose of the present invention is to solve the shortcomings existing in the prior art and to propose an artificial intelligence poetry conception image generation and construction method based on semantic ontology.

[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: an artificial intelligence poetry artistic conception image generation and construction method based on semantic ontology, including an artistic conception image database, the artistic conception image database includes ancient poetry text, extracted imagery, corresponding image materials and constructed scene images, and the association information between them. Based on the extracted feature data, a machine learning or deep learning model is constructed to identify the imagery in the poetry text;

[0007] The artistic conception image database uses OCR technology to recognize the ancient poetry text and convert the text into processable text data;

[0008] Using image generation technology, such as GAN (Generative Adversarial Network), and based on feature data extracted from ancient poetry texts, such as emotional color and image features, the synthesized scene images are personalized and optimized;

[0009] By describing the characteristics of the model's texture in words, texture maps are generated to improve the efficiency of scene construction. DiscoDiffusion is used to assist in texture map generation. The principle is to use CLIP (Contrastive Language-Image Pre-Training)-Guided Diffusion to guide the image to continuously iterate towards the pointed picture according to the description of the input text, so that the generated texture map is more in line with the design requirements and expected effects.

[0010] As a further description of the above technical solution:

[0011] The ancient poetry texts include all the ancient poetry in China over the past 5,000 years, and the extracted images include all the moving and still objects in the poetry.

[0012] As a further description of the above technical solution:

[0013] Disco Diffusion is an AI painting software for non-professional artists. It has many powerful functions and intelligent algorithms, and can automatically match relevant materials or make creative designs according to user needs to generate exquisite two-dimensional paintings.

[0014] []text_prompts=i

[0015] 0:"John Howe,vast landscape,matte painting,trending onartstation100:"This set of prompts start at frame 100","This prompt hasweight

[0016] image_prompts={

[0017] #0:['ImagePromptsworkButArentveryGood.png:2',],

[0018] Prompts: This parameter is the most important part of the entire AI program. It is also the channel for you to communicate directly with AI. Simply put, you need to tell AI what kind of picture you want to generate. It can be some short keywords or a complete text description. For more complex information, you can also tell AI the color tone, time, light, picture style, specific painter, etc.

[0019] []markdown## row#**Basic settings:**

[0020] atch_name = 'TimeToDisco' #eparam{teps = 300 #eparam25,50,100.15:idth_height = [1280,768] #epO unrecognized lip_guidance_scale = 5000 #fparam{v_scale = 0 #param{type: 'number"ange_scale - 150 #eparam{type: 'nat_scale = O #param{type: 'numbeutn_batches = 4 #eparam{type: 'nu

[0021] intermediate_saves: 0 This parameter can save a copy of the intermediate steps of the rendering at the time intervals you specify. You can set it to a single integer or a list of specific steps.

[0022] As a further description of the above technical solution:

[0023] 5. The GAN (Generative Adversarial Network) is an image generation technology;

[0024] Let be the complex random variable we hope to obtain, and U be the existing uniform random variable on [0, 1].

[0025] We know that a random variable can be completely determined by the cumulative distribution function (CDF). Recall the definition of CDF: CDFx(@) = P(X ≤ @)

[0026] Specifically, the CDF of the uniform random variable is:

[0027] CDFt(u) = P(U ≤ u) = u, ∀u ∈ [0, 1]

[0028] The above equation is a very good property of the uniform distribution and will be used later.

[0029] For the convenience of analysis, we assume here that the CDF of the complex random variable to be obtained is invertible, denoted as X. In fact, the subsequent analysis method can be extended to the case where the CDF is not invertible by means of the generalized inverse of the function, but this is beyond the scope of this article.

[0030] Next, we discuss how to construct this complex random variable.

[0031] By virtue of the property of the cumulative distribution function of the uniform random variable, we have P(U ≤ CDFx(a)) = CDFx(c). Under the condition that the CDF is invertible, the above formula is equivalent to

[0032] P(CDFx1(U)≤a)=CDFx(a)=P(X≤c)

[0033] cDFx(V) has the same CDF as X. Since CDF completely determines a random variable, Drx(〉 is the complex random variable X that we hope to obtain that obeys a specific distribution. So far, we have obtained the inverse transformation method for constructing complex random variables based on uniform random variables U.

[0034] As a further description of the above technical solution:

[0035] The OCR technology is for images of different formats, with different storage formats and compression methods. Currently, open source projects for accessing images include OpenCV and CxImage;

[0036] Binarization: In most cases, the pictures taken by the camera are color images. Color images contain a lot of information and need to be simplified. We can simply divide the content of the picture into foreground and background. In order to make the computer recognize text faster and better, the color image needs to be processed first, so that only the foreground and background information are left. That is, the foreground information is simply defined as black and the background information is white. This is the binary image.

[0037] Noise removal: The definition of noise can be different for different documents; eliminating noise based on its characteristics is called noise removal;

[0038] Tilt correction: Usually, the photos taken by users are rather casual, and it is very likely that the photographed document will be tilted; in this case, text recognition software is needed to correct it.

[0039] As a further description of the above technical solution:

[0040] The steps of the construction method are:

[0041] S1. First, we need to collect a large amount of ancient poetry texts from ancient poetry collections, literary works, poetry websites and other channels, including classic works such as Tang poetry and Song poetry;

[0042] S2. Use natural language processing technology to analyze ancient poetry texts and identify the images and artistic conception therein, such as landscapes, flowers and birds, loneliness, and longing, etc. Based on the extracted images, use classification models to achieve classification and recognition of images, such as natural landscapes, human figures, emotional colors, etc.; then collect related image materials, including natural scenery, human figures, animals, etc.;

[0043] S3. Using artificial intelligence to help generate poetry scenes: Artificial intelligence painting is a new development of generative AI in the field of art. It is based on the creative process of "input text-generate image", uses OCR technology to recognize ancient poetry texts, and converts text into processable text data;

[0044] S4, according to the images extracted from the text, the matching scene images are retrieved from the database to show the artistic conception of the ancient poems;

[0045] S5. Finally, use image generation technology, such as GAN (generative adversarial network), and based on the feature data extracted from the ancient poetry text, such as emotional color and image characteristics, to personalize and optimize the synthesized scene image.

[0046] The present invention has the following beneficial effects:

[0047] The present invention realizes a personalized scene image generation method based on ancient poetry by combining ancient poetry texts with image generation technology. The method can retrieve and synthesize corresponding scene images according to the images and artistic conception extracted from the ancient poetry texts, and show the emotions and pictures expressed by the ancient poetry.

[0048] Specifically, the present invention first collects a large amount of ancient poetry texts, analyzes the texts using natural language processing technology, and extracts the images and artistic conception therein. Then, based on the extracted images, a classification model is used to implement classification and recognition of the images, and image materials related thereto are collected.

[0049] In the process of generating images, the present invention uses OCR technology to recognize the ancient poetry text and convert the text into processable text data. Then, according to the image extracted from the text, the matching scene image is retrieved from the database. In the retrieval process, the present invention adopts content-based image retrieval technology to achieve accurate matching by comparing the features of the image and the features of the image extracted from the text.

[0050] Finally, the synthesized scene image is personalized and optimized by using image generation technology, such as GAN (Generative Adversarial Network), etc., and based on the feature data extracted from the ancient poetry text, such as emotional color, image features, etc. During the optimization process, the present invention adjusts the parameters of the GAN model, such as the network structure of the generator and discriminator, the loss function, etc., to achieve higher quality image generation.

[0051] Through the implementation of the present invention, personalized scene images matching the ancient poetry text can be generated, providing a more intuitive and vivid visual experience for the appreciation and learning of ancient poetry. At the same time, the present invention can also be applied to cultural creativity, digital art and other fields, providing new technical means for the inheritance and innovation of traditional culture.

[0052] In summary, the present invention realizes a personalized scene image generation method based on ancient poetry by combining ancient poetry texts with image generation technology, which has broad application prospects and important social value. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a flow chart of the method for generating and constructing artificial intelligence poetry image based on semantic ontology proposed in the present invention. DETAILED DESCRIPTION

[0054] 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.

[0055] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention; the terms "first", "second", and "third" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance. In addition, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0056] Reference Figure 1 , an embodiment provided by the present invention: an artificial intelligence poetry artistic conception image generation and construction method based on semantic ontology, comprising an artistic conception image database, the artistic conception image database comprising ancient poetry text, extracted imagery, corresponding image materials and constructed scene images, and association information therebetween. Based on the extracted feature data, a machine learning or deep learning model is constructed to identify the imagery in the poetry text;

[0057] The artistic conception image database uses OCR technology to recognize the ancient poetry text and convert the text into processable text data;

[0058] Using image generation technology, such as GAN (Generative Adversarial Network), and based on feature data extracted from ancient poetry texts, such as emotional color and image features, the synthesized scene images are personalized and optimized;

[0059] By describing the characteristics of the model's texture in words, texture maps are generated to improve the efficiency of scene construction. DiscoDiffusion is used to assist in texture map generation. The principle is to use CLIP (Contrastive Language-Image Pre-Training)-Guided Diffusion to guide the image to continuously iterate towards the pointed picture according to the description of the input text, so that the generated texture map is more in line with the design requirements and expected effects.

[0060] This semantic ontology-based artificial intelligence poetry image generation and construction method also includes a feedback mechanism for continuous optimization of the generated images. This mechanism collects user feedback on the generated images, such as satisfaction, improvement suggestions, etc., and integrates this information into the machine learning or deep learning model to improve the model's understanding of the poetry and the accuracy of image generation.

[0061] In order to enrich the artistic conception image database, this method also provides users with the function of uploading and sharing their personal creations. Users can upload their own artistic conception images of poems to the database and share and communicate with other users. This can not only increase the diversity of the database, but also inspire more users' creative inspiration.

[0062] In addition, the method also supports multimodal interaction, allowing users to input poetry text and instructions through voice, gestures, etc. This multimodal interaction method enables users to interact with the system more naturally and conveniently, improving the system's usability and user experience.

[0063] Finally, in order to ensure the quality and originality of the generated poetic image, this method also introduces a copyright protection mechanism. By performing digital watermarking and copyright authentication on the generated image, the originality and intellectual property rights of the image are effectively protected. At the same time, this method also encourages cooperation and co-creation among users, promoting innovation and development in the field of poetic image generation and construction.

[0064] Example 1: The ancient poetry text includes all the ancient poetry in China over the past 5,000 years, and the extracted images include all the moving and static objects in the poetry.

[0065] The corresponding image materials include various paintings and photographs from ancient times to the present, as well as illustrations designed specifically for poetic moods. The constructed scene images include not only ancient landscapes, courtyards, and pavilions, but also modern urban street scenes, natural landscapes, etc. These rich materials provide a solid foundation for generating diverse poetic mood images.

[0066] In the first embodiment, the machine learning model can accurately identify the images in the poems, such as "bright moon", "clear wind", "ancient road", etc., by learning a large number of ancient poems. Then, based on the feature data of these images, the model can guide the image generation technology to generate scene images that match the artistic conception of the poems. At the same time, the model can also continuously adjust and optimize the generated images based on user feedback to make them more in line with user expectations.

[0067] In order to ensure the quality and originality of the generated poetic image, the first embodiment also introduces a copyright protection mechanism. By performing digital watermarking and copyright authentication on the generated image, the originality and intellectual property rights of the image are effectively protected. At the same time, this also encourages cooperation and co-creation among users, and promotes innovation and development in the field of poetic image generation and construction.

[0068] In general, the artificial intelligence poetry and artistic conception image generation and construction method based on semantic ontology builds a comprehensive and rich artistic conception image database, uses machine learning and deep learning models to identify images in poetry texts, combines image generation technology to generate personalized scene images, and introduces copyright protection mechanisms and multimodal interaction methods, providing users with a new and creative poetry and artistic conception image generation and construction experience.

[0069] Embodiment 2:

[0070] Disco Diffusion is an AI painting software for non-professional artists. It has many powerful functions and intelligent algorithms. It can automatically match relevant materials or make creative designs according to user needs to generate exquisite two-dimensional paintings.

[0071] []text_prompts=i

[0072] 0:"John Howe,vast landscape,matte painting,trending onartstation100:"This set of prompts start at frame 100","This prompt hasweight

[0073] image_prompts={

[0074] #0:['ImagePromptsworkButArentveryGood.png:2',],

[0075] Prompts: This parameter is the most important part of the entire AI program and is also the channel for you to communicate directly with the AI. Simply put, this is where you tell the AI what kind of image you want to generate. It can be some short keywords, a complete text description statement, or more complex information such as the color tone, time, lighting, painting style, specific painter, etc. that you want the AI to use.

[0076] []markdown##Row#**Basic settings:**

[0077] atch_name='TimeToDisco'#eparam{teps=300#eparam25,50,100.15:idth_height=[1280,768]#epO unconsciouslip_guidance_scale=5000#flyparam{v_scale=0#param{type:'number"ange_scale-150#eparam{type:'nat_scale=O#param{type:'numbeutn_batches=4#eparam{type:'nu

[0078] intermediate_saves: 0 This parameter allows copies of the intermediate steps of the rendering to be saved at the time intervals you specify. You can set it to a single integer or a list of specific steps.

[0079] `intermediate_saves` is a very useful parameter that allows you to save the results of intermediate steps during the rendering process. This is very helpful for observing the gradual changes in the images generated by the AI and also allows you to stop the rendering at a stage where you are satisfied. You can set it to a single integer, indicating how many steps to save the intermediate results at intervals; alternatively, you can also provide a list of specific steps, in which case the AI will only save the intermediate images at these specified steps.

[0080] For example, if you set `intermediate_saves = 10`, then the AI will save an intermediate image after every 10 steps are completed. This can help you observe and understand how the AI gradually constructs the final image, thus better understanding its working principle.

[0081] In addition, the `intermediate_Saves` parameter can also help you prevent losses caused by unexpected interruptions during long rendering processes. If you set intermediate saves, even if the rendering process stops suddenly at a certain stage, you can start from the last saved intermediate result and continue to complete the remaining rendering work.

[0082] Overall, `intermediate_Saves` is a powerful and flexible tool that can help you better understand and manage your AI rendering process. Whether it is for learning, monitoring or for backup purposes, it is a very useful parameter.

[0083] Embodiment three:

[0084] The GAN (Generative Adversarial Network) is an image generation technology;

[0085] Let be the desired complex random variable and U be an existing uniform random variable on [0,1].

[0086] We know that a random variable can be completely determined by the cumulative distribution function (CDF). Recall the definition of CDF: CDFx(@)=P(X≤@)

[0087] Specifically, the CDF of a uniform random variable is:

[0088] CDFt(u)=P(U≤u)=u,vu∈[0,1]

[0089] The above equation is a nice property of the uniform distribution, which will be used later.

[0090] For the convenience of analysis, we assume here that the CDF of the complex random variable to be determined is reversible, denoted as X. In fact, the subsequent analysis method can be extended to the case where the CDF is irreversible with the help of the generalized inverse function, but this is beyond the scope of this article.

[0091] The following discusses how to construct this complex random variable.

[0092] With the help of the properties of the cumulative distribution function of uniform random variables, we have P(U≤CDFx(a))=CDFx(c). Under the condition that CDF is reversible, the above formula is equivalent to

[0093] P(CDFx1(U)≤a)=CDFx(a)=P(X≤c)

[0094] cDFx(V) has the same CDF as X. Since CDF completely determines a random variable, Drx(〉 is the complex random variable X that we want to obtain that obeys a specific distribution. So far, we have obtained the inverse transformation method for constructing complex random variables based on uniform random variables U.

[0095] The inverse transform method is a commonly used technique to generate complex random variables from simple random variables. Here, we use the inverse transform method to generate the complex random variables we want from uniform random variables.

[0096] First, we need to know the cumulative distribution function (CDF) FX(x) of the complex random variable X. Since we assume that FX(x) is reversible, we can find its inverse function FX-1(u). This inverse function maps the uniform random variable U in the interval [0,1] to the possible values ​​of the complex random variable X.

[0097] Specifically, we generate a uniform random variable U in the interval [0,1] and then calculate FX-1(U). Since FX(x) is the CDF of X, FX-1(U) has the same distribution as X. Therefore, FX-1(U) is a sample of the complex random variable X that we hope to obtain.

[0098] The advantage of this method is that it is straightforward to generate random variables from any distribution, as long as we know the CDF of that distribution and it is invertible. However, if the CDF is not invertible, we need to use other methods such as acceptance-rejection sampling or importance sampling.

[0099] In addition, it is worth noting that although the inverse transformation method is simple and intuitive, it may encounter problems with numerical calculations in practical applications. For example, for some distributions, the inverse function of the CDF may be difficult to express analytically, or may require complex numerical calculations. In these cases, we may need to use numerical optimization techniques or other methods to approximate the inverse function of the CDF.

[0100] In general, the inverse transformation method is an effective technique for generating complex random variables from simple random variables. As long as we know the CDF of the target random variable and it is invertible, we can use this method to generate random variable samples that obey the distribution.

[0101] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An artificial intelligence poetry artistic conception image generation and construction method based on semantic ontology, including an artistic conception image database, characterized by: The artistic conception image database includes ancient poetry texts, extracted images, corresponding image materials and constructed scene images, as well as the association information between them. Based on the extracted feature data, a machine learning or deep learning model is constructed to identify the images in the poetry texts; The artistic conception image database uses OCR technology to recognize the ancient poetry text and convert the text into processable text data; Using image generation technology, such as GAN (Generative Adversarial Network), and based on feature data extracted from ancient poetry texts, such as emotional color and image features, the synthesized scene images are personalized and optimized; By describing the characteristics of the model's texture in words, texture maps are generated to improve the efficiency of scene construction. DiscoDiffusion is used to assist in texture map generation. The principle is to use CLIP (Contrastive Language-Image Pre-Training)-Guided Diffusion to guide the image to continuously iterate towards the pointed picture according to the description of the input text, so that the generated texture map is more in line with the design requirements and expected effects.

2. The method for generating and constructing artificial intelligence poetry image based on semantic ontology according to claim 1 is characterized by: The ancient poetry texts include all the ancient poetry in China over the past 5,000 years, and the extracted images include all the moving and still objects in the poetry.

3. The method for generating and constructing artificial intelligence poetry image based on semantic ontology according to claim 1 is characterized by: Disco Diffusion is an AI painting software for non-professional artists. It has many powerful functions and intelligent algorithms, and can automatically match relevant materials or make creative designs according to user needs to generate exquisite two-dimensional paintings. []text_prompts=i 0:"John Howe,vast landscape,matte painting,trending on artstation100:"This set of prompts start at frame 100","This prompt has weight image_prompts={ #0:['ImagePromptsworkButArentveryGood.png:2',], Prompts: This parameter is the most important part of the entire AI program. It is also the channel for you to communicate directly with AI. Simply put, you need to tell AI what kind of picture you want to generate. It can be some short keywords or a complete text description. For more complex information, you can also tell AI the color tone, time, light, picture style, specific painter, etc. []markdown## row#**Basic settings:** atch_name = 'TimeToDisco' #eparam{teps = 300 #eparam25,50,100.15:idth_height = [1280,768] #epO无识lip_guidance_scale = 5000 #飞param{v_scale = 0 #param{type: 'number"ange_scale - 150 #eparam{type: 'nat_scale = O #param{type: 'numbeutn_batches = 4 #eparam{type: 'nu intermediate_saves: 0 This parameter can save a copy of the intermediate steps of the rendering at the time intervals you specify. You can set it to a single integer or a list of specific steps.

4. The method for generating and constructing artificial intelligence poetry image based on semantic ontology according to claim 1 is characterized by: The GAN (Generative Adversarial Network) is an image generation technology; Let be the complex random variable we hope to obtain, and U be the existing uniform random variable on [0, 1]. We know that a random variable can be completely determined by the cumulative distribution function (CDF). Recall the definition of the CDF: CDFx(@) = P(X ≤ @) Specifically, for the CDF of the uniform random variable: CDFt(u) = P(U ≤ u) = u, ∀u ∈ [0, 1] The above equation is a very good property of the uniform distribution and will be used later. For the convenience of analysis, we assume here that the CDF of the complex random variable to be obtained is invertible, denoted as X. In fact, the subsequent analysis method can be extended to the case where the CDF is not invertible by means of the generalized inverse of the function, but this is beyond the scope of this article; Next, we discuss how to construct this complex random variable; Using the property of the cumulative distribution function of the uniform random variable, we have P(U ≤ CDFx(a)) = CDFx(c). Under the condition that the CDF is invertible, the above formula is equivalent to P(CDFx1(U) ≤ a) = CDFx(a) = P(X ≤ c) CDFx(V) has the same CDF as X; since the CDF completely determines a random variable, CDFx(〉 is the complex random variable X that we hope to obtain and follows a specific distribution.至此, we have obtained the inverse transformation method for constructing a complex random variable based on the uniform random variable U.

5. The method for generating and constructing artificial intelligence poetry image based on semantic ontology according to claim 1 is characterized by: The OCR technology has different storage formats and compression methods for images in different formats; currently, open-source projects for accessing images include OpenCV and CxImage, etc.; Binarization: In most cases, the pictures taken by the camera are color images. Color images contain a lot of information and need to be simplified. We can simply divide the content of the picture into foreground and background. In order to make the computer recognize text faster and better, the color image needs to be processed first, so that only the foreground and background information are left. That is, the foreground information is simply defined as black and the background information is white. This is the binary image. Noise removal: The definition of noise can be different for different documents; eliminating noise based on its characteristics is called noise removal; Tilt correction: Usually, the photos taken by users are rather casual, and it is very likely that the photographed document will be tilted; in this case, text recognition software is needed to correct it.

6. The method for generating and constructing artificial intelligence poetry image based on semantic ontology according to claim 1 is characterized by: The steps of the construction method are: S1. First, we need to collect a large amount of ancient poetry texts from ancient poetry collections, literary works, poetry websites and other channels, including classic works such as Tang poetry and Song poetry; S2. Use natural language processing technology to analyze ancient poetry texts and identify the images and artistic conception therein, such as landscapes, flowers and birds, loneliness, and longing, etc. Based on the extracted images, use classification models to achieve classification and recognition of images, such as natural landscapes, human figures, emotional colors, etc.; then collect related image materials, including natural scenery, human figures, animals, etc.; S3. Using artificial intelligence to help generate poetry scenes: Artificial intelligence painting is a new development of generative AI in the field of art. It is based on the creative process of "input text-generate image", uses OCR technology to recognize ancient poetry texts and converts text into processable text data; S4, according to the images extracted from the text, the matching scene images are retrieved from the database to show the artistic conception of the ancient poems; S5. Finally, use image generation technology, such as GAN (generative adversarial network), and based on the feature data extracted from the ancient poetry text, such as emotional color and image characteristics, to personalize and optimize the synthesized scene image.

Citation Information

Cited By

  • Teaching method for ancient poetry artistic conception based on open source model architecture

    CN120181084A

  • Electronic device and method for controlling image content displayed thereon

    WO2026064955A1