Comic book generation method, device and computer readable storage medium

By filtering and converting target images from video frame images to generate comic images, it solves the problem that ordinary users cannot create comic books by themselves, and realizes simple and easy comic creation.

CN109636711BActive Publication Date: 2024-09-17BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811279094.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-10-30
Publication Date
2024-09-17
Estimated Expiration
2038-10-30

AI Technical Summary

Technical Problem

In the existing technology, online comic creation requires a basic drawing foundation, and ordinary users cannot create comic books by themselves.

Method used

By determining multiple video frame images in the video to be converted, the target images are filtered according to image clarity and category, and comic-style conversion is used to generate comic images, and finally the comic book is synthesized according to the preset format.

Benefits of technology

It allows users to generate comic books without any drawing background, simplifying the comic creation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109636711B
    Figure CN109636711B
Patent Text Reader

Abstract

The present invention discloses a comic book generation method, device and computer-readable storage medium. In the comic book generation method, a video to be converted is determined, and the video to be converted is composed of multiple video frame images; multiple target images whose image clarity meets preset conditions are determined from the multiple video frame images; the multiple target images are converted into comic styles to generate multiple comic images; and the multiple comic images are synthesized into a comic book according to a preset format. In the above scheme, the user can convert the video to be converted into a comic book by selecting the video to be converted. Even if the user has no painting foundation, the user can make a comic book according to his own ideas, making comic creation simpler and easier to achieve.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a comic book generation method, device and computer-readable storage medium. Background Art

[0002] With the development of science and technology, the popularity of electronic devices is increasing, and the reading patterns of users have also changed. More users choose to use electronic devices to read. In order to meet the reading needs of users, many comics are published online, and users can browse comics through electronic devices, which greatly increases the convenience of reading.

[0003] In the prior art, online comics are usually drawn by the comic author in advance, and then uploaded and published. Therefore, the comic author must have a certain painting foundation. For ordinary users without painting foundation, it is impossible to create comics. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a comic book generation method, device and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present specification provides a comic book generation method, comprising:

[0006] Determine a video to be converted, wherein the video to be converted is composed of multiple video frame images;

[0007] Determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0008] Performing comic style conversion on the multiple target images to generate multiple comic images;

[0009] The multiple comic images are combined into a comic book according to a preset format.

[0010] Optionally, after determining the video to be converted, the method further includes:

[0011] Determining the image category of each video frame image in the plurality of video frame images according to the trained image classification model;

[0012] Determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted;

[0013] The step of determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images comprises:

[0014] The target image is determined among the multiple images to be converted.

[0015] Optionally, the determining of a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images includes:

[0016] Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0017] Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0018] Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0019] The video frame image whose clarity score meets the preset condition is determined as the target image.

[0020] Optionally, before performing comic style conversion on the multiple target images to generate multiple comic images, the method further includes:

[0021] According to the image content of each target image in the multiple target images, deduplication processing is performed on the multiple target images to obtain multiple deduplication images;

[0022] The step of converting the plurality of target images into comic styles to generate a plurality of comic images comprises:

[0023] The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

[0024] Optionally, performing deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images includes:

[0025] Determining the image similarity between any two target images according to the image content of each target image in the plurality of target images;

[0026] Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold;

[0027] According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

[0028] Optionally, after performing comic style conversion on the multiple target images to generate multiple comic images, the method further includes:

[0029] Determining text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images;

[0030] The accompanying text information is added to a preset position in each comic image.

[0031] Optionally, performing comic style conversion on the multiple target images to generate multiple comic images includes:

[0032] An adversarial network is used to perform comic style conversion on the multiple target images to generate the multiple comic images.

[0033] Optionally, the preset format includes a preset comic frame distribution, and synthesizing the plurality of comic images into a comic book according to the preset format includes:

[0034] Determining time information of a video frame image corresponding to each of the plurality of comic images;

[0035] The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

[0036] In a second aspect, the embodiments of the present specification provide a comic book generation device, including:

[0037] A video determination module, used to determine a video to be converted, wherein the video to be converted is composed of a plurality of video frame images;

[0038] A target image determination module, used to determine a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0039] An image conversion module, used for performing comic style conversion on the plurality of target images to generate a plurality of comic images;

[0040] The synthesis module is used to synthesize the multiple comic images into a comic book according to a preset format.

[0041] Optionally, the device further comprises:

[0042] A classification module, used to determine the image category of each video frame image in the plurality of video frame images according to a trained image classification model;

[0043] A first determination module is used to determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted;

[0044] The target image determination module is used for:

[0045] The target image is determined among the multiple images to be converted.

[0046] Optionally, the target image determination module is used to:

[0047] Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0048] Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0049] Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0050] The video frame image whose clarity score meets the preset condition is determined as the target image.

[0051] Optionally, the device further comprises:

[0052] A deduplication module, configured to perform deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images;

[0053] The image conversion module is used for:

[0054] The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

[0055] Optionally, the deduplication module is used to:

[0056] Determining the image similarity between any two target images according to the clarity of each target image in the plurality of target images;

[0057] Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold;

[0058] According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

[0059] Optionally, the device further comprises:

[0060] A second determination module, configured to determine text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images;

[0061] The text adding module is used to add the text information to a preset position in each comic image.

[0062] Optionally, the image conversion module is used to:

[0063] The processing module is used to perform comic style conversion on the multiple target images by using an adversarial network to generate the multiple comic images.

[0064] Optionally, the preset format includes a preset comic frame distribution, and the synthesis module is used to:

[0065] Determining time information of a video frame image corresponding to each of the plurality of comic images;

[0066] The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

[0067] In a third aspect, an embodiment of the present specification provides a comic book generation device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps of any one of the above methods.

[0068] In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above methods when executed by a processor.

[0069] The beneficial effects of the embodiments of this specification are as follows:

[0070] In the scheme of the embodiment of this specification, the comic book can be obtained by video conversion. In the comic book generation method provided in the embodiment of this specification, the material for generating the comic book is determined by determining the video to be converted, the video to be converted is composed of multiple video frame images; multiple target images whose image clarity meets the preset conditions are determined in the multiple video frame images; the multiple target images are converted into comic styles to generate multiple comic images; the multiple comic images are synthesized into a comic book according to a preset format. Therefore, in the above scheme, the user can convert the video to be converted into a comic book by selecting the video to be converted. Even if the user has no painting foundation, he can make a comic book according to his own ideas, making comic creation simpler and easier to achieve. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0072] Figure 1 A flowchart of a comic book generation method provided in the first aspect of the embodiment of this specification;

[0073] Figure 2 A flow chart for determining a target image by image clarity provided in an embodiment of this specification;

[0074] Figure 3 A schematic diagram of a comic book generating device provided in the second aspect of the embodiment of this specification;

[0075] Figure 4 This is a schematic diagram of a comic book generating device provided in the third aspect of the embodiment of this specification. DETAILED DESCRIPTION

[0076] The embodiments of this specification disclose a comic book generation method, device, and computer-readable storage medium, which can generate a comic book through a video. Even users without drawing skills can make a comic book, making comic creation easier to achieve. The comic book generation method includes: determining a video to be converted, the video to be converted is composed of multiple video frame images; determining multiple target images whose image clarity meets preset conditions in the multiple video frame images; performing comic style conversion on the multiple target images to generate multiple comic images; and synthesizing the multiple comic images into a comic book according to a preset format.

[0077] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical solution of the present application, rather than limitations on the technical solution of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments can be combined with each other.

[0078] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0079] Example

[0080] In a first aspect, the embodiments of this specification provide a method for generating a comic book, such as Figure 1 FIG. 1 is a flowchart of a method for generating a comic book provided in an embodiment of the present specification, and the method comprises the following steps:

[0081] Step S11: determining a video to be converted, wherein the video to be converted is composed of a plurality of video frame images;

[0082] In the embodiment of this specification, the video to be converted is a video used to generate a comic book. The video to be converted can be a video shot by a user through an electronic device, a video obtained by a user through downloading, or other videos. The video to be converted is composed of multiple video frame images, each of which is a still image.

[0083] S12: determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0084] It should be understood that the quality of the multiple video frame images contained in the video to be converted is different. Some video frame images are of lower quality and the image effect is fuzzy. In order to ensure the display effect of the final comic book, the video frame images with low image quality can be filtered to determine the video frame images whose image clarity meets the preset conditions.

[0085] In the embodiments of this specification, the image clarity can be obtained by a variety of calculation methods, such as using a gradient function, a variance function, a quotient function, etc. The image clarity of each video frame image contained in the video to be converted is calculated, and the clarity of each image is compared with a preset condition, and the video frame image that meets the preset condition is used as the target image. The preset condition can be selected according to the actual situation. In one embodiment, the preset condition is greater than or equal to the clarity threshold.

[0086] Step S13: performing comic style conversion on the multiple target images to generate multiple comic images;

[0087] In the embodiment of the specification, after determining the target image, the target image can be preprocessed, and the preprocessed target image can be converted into a comic style to generate a comic image. The comic style conversion method can be selected according to actual needs. In one embodiment, the style conversion can be performed by an adversarial network.

[0088] Step S14: synthesizing the plurality of comic images into a comic book according to a preset format.

[0089] It should be understood that a comic book can include multiple formats. For example, when the comic book is a four-frame comic, the format of the four-frame comic includes four screen grids. When the comic book is a strip comic, the format of the strip comic is a long picture read vertically, and the long picture can include multiple screen grids. When the comic book is a page comic, the format of the page comic includes multiple pages, and each page can include multiple screen grids. According to the format of the comic book, multiple comic images are filled in the screen grids to form a comic book.

[0090] Optionally, after determining the video to be converted, the method further includes: determining the image category of each of the multiple video frame images based on a trained image classification model; determining multiple video frame images whose image categories belong to a preset image category set as images to be converted; and determining multiple target images whose image clarity meets preset conditions from the multiple video frame images includes: determining the target images from the multiple images to be converted.

[0091] It should be understood that the image contents of the multiple video frames contained in the video to be converted can cover many aspects. For example, the video to be converted is a video of a user playing basketball in a sports field. In this video, some video frames contain blue sky, some video frames contain ground, some video frames contain the surrounding environment of the sports field, and some video frames contain users playing basketball, etc. Some of these image contents can be used to generate comic books, while others have little effect on the generation of comic books. For example, in the above example, based on the video of the user playing basketball in the sports field, the video frame images with the image content of the ground do not need to appear in the comic book, so the video frame images with the image content of the ground can be removed.

[0092] In the embodiments of the present specification, in order to screen out video frame images that can be used to generate a comic book, multiple video frame images can be first classified to exclude image categories that are not needed to generate the comic book. Image classification can be processed according to a pre-trained image classification model, such as a CNN classification model, which takes multiple video frame images as input to the model. The image classification model outputs the classification result of each video frame image, that is, the image category of each video frame image.

[0093] Based on the image category of each video frame image, select the video frame images whose image category belongs to the preset image category set. The preset image category set can be set by the user, or determined according to the shooting theme of the video to be converted, or can be an image category containing more video frame images. For example, count the number of video frame images contained in each image category, and take the image category with a number greater than a threshold as the preset image category. The video frame images that meet the preset image category set are screened out as the images to be converted, and then further determined by the clarity as the target image for comic style conversion.

[0094] like Figure 2 As shown, a flow chart of determining a target image by image clarity provided in an embodiment of this specification includes the following steps.

[0095] S21: performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0096] S22: performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0097] S23: determining a clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0098] S24: Determine the video frame image whose clarity score meets the preset condition as the target image.

[0099] In the embodiments of this specification, brisque (Blind / Referenceless Image SpatialQuality Evaluator, a reference-free spatial domain image quality evaluation algorithm) may be used to determine the clarity of a video frame image.

[0100] First, normalize each of the multiple video frame images to obtain the normalized brightness coefficient (mean subtracted contrast normalized coefficients, MSCN) of each video frame image. A normalized brightness coefficient can be calculated for each pixel of the video frame image, and the normalized brightness coefficient of the video frame image can be a set of normalized brightness coefficients of each pixel. The clarity of the video frame image is determined by the degree of deviation of the normalized brightness coefficient of the video frame image relative to the normalized brightness coefficient of the natural image, wherein it should be noted that the natural image is an unprocessed image, and the normalized brightness system of the natural image conforms to the Gaussian distribution.

[0101] Secondly, the characteristics of the normalized brightness coefficient of the video frame image are determined by Gaussian distribution. In one embodiment, for each video frame image, the association information between the connected pixels in four directions is added to each pixel point, that is, the pixel association information in the four directions below, to the right, on the main diagonal, and on the secondary diagonal of the pixel point is added, and an asymmetric generalized Gaussian distribution is used for fitting to obtain the feature vector of each video frame image.

[0102] Finally, the obtained feature vector is input into a pre-trained image quality assessment model to obtain the clarity score of each video frame image. In one embodiment, a pre-trained support vector machine SVM (Support Vector Machine) is used as the image quality assessment model, and the feature vector is used as input to obtain the clarity score of each video frame image.

[0103] According to the clarity score of the video frame image, the video frame image whose clarity score meets the preset condition is determined as the target image, wherein the preset condition can be set according to actual needs, such as the preset condition being greater than or equal to the preset clarity score.

[0104] Optionally, before performing comic-style conversion on the multiple target images to generate multiple comic images, the method further includes: performing deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images; performing comic-style conversion on the multiple target images to generate multiple comic images includes: performing comic-style conversion on the multiple deduplication images to generate the multiple comic images.

[0105] In the embodiments of the present specification, if a scene is shot for a long time when shooting the video to be converted, there will be multiple video frame images with the same or similar content. For example, if the user shoots the blue sky, since the blue sky changes slowly, the content of most video frame images shooting the blue sky is relatively similar. However, when generating a comic book, it is not necessary to add each video frame image to the comic book, which will cause duplication of comic content and increase the redundancy of the comic. Therefore, multiple video frame images with the same or similar content can be deduplicated, and the retained images are used as deduplicated images.

[0106] Optionally, deduplicating the multiple target images according to the image content of each target image in the multiple target images to obtain a plurality of deduplicated images, including: determining the image similarity between any two target images according to the image content of each target image in the multiple target images; determining multiple groups of similar image sets according to the image similarity, wherein, for the multiple similar images included in each group of similar image sets of the multiple groups of similar image sets, the image similarity between any two similar images is greater than a threshold value; deduplicating the multiple similar images in each group of similar image sets according to the image clarity of the multiple similar images included in the each group of similar image sets to obtain the multiple deduplicated images.

[0107] It should be understood that deduplication processing can be implemented in a variety of ways, which are not limited in this specification. In one embodiment, the image similarity can be determined by comparing the contents of any two target images, and then whether the two target images are images with similar contents can be determined based on the image similarity. For example, when the similarity between the two target images is greater than 90%, the two video frame images are determined to be similar images, and the similar images are determined as a set of similar images.

[0108] For the multiple similar images contained in each group of similar image sets, different deduplication methods can be used according to actual needs. For example, one or more images can be randomly selected to be retained, or the image with the most image content can be retained, or the image containing the largest target object size can be retained, etc. In one embodiment, one or more similar images with the highest definition can be selected from each group of similar image sets and retained, and the rest of the images can be deleted, and the retained similar images can be used as deduplicated images for comic style conversion.

[0109] Optionally, performing comic style conversion on the multiple target images to generate the multiple comic images includes: performing comic style conversion on the multiple target images using an adversarial network to generate the multiple comic images.

[0110] Generative Adversarial Networks (GAN) is a deep learning model, including a generator and a discriminator. In the embodiment of this specification, the generator is used to convert the target image into a comic style to generate a comic image, and the discriminator uses many real comic images as references to identify whether the comic image generated by the generator is a real comic image. In one embodiment, CycleGAN is used to perform comic style conversion, that is, the target image is used as the input of CycleGAN, and the output of CycleGAN is the converted comic image.

[0111] Optionally, after performing comic style conversion on the multiple target images to generate multiple comic images, the method further includes: determining caption information corresponding to each comic image in the multiple comic images based on image content of the multiple comic images; and adding the caption information to a preset position in each comic image.

[0112] In an embodiment of the present specification, an image and text library may be provided, and the image and text library may include image content and corresponding text information. In addition, for each image content, the corresponding text information may include multiple pieces. For example, an image content included in the image and text library is a blue sky, and the text information corresponding to the blue sky may include multiple pieces, such as text information 1 "It is a sunny day today" and text information 2 "The sky is high and the birds fly freely, and the sea is wide and the fish jump freely". The corresponding text information can be determined in the image and text library according to the image content of the comic image. The text information can be determined randomly, or all the text information corresponding to the comic image can be displayed for the user to select. Of course, the user can also enter the text information by himself, which is not limited here.

[0113] In the embodiments of the present specification, each comic image may be provided with a preset position for displaying the accompanying text information. The preset position may be a default position, for example, the preset position is the upper left corner of each comic image, or the preset position may be randomly set. Of course, the user may also set the preset position by himself, for example, dragging the default preset position to make the display position of the accompanying text information meet the needs of the user.

[0114] Optionally, the preset format includes a preset comic frame distribution, and synthesizing the multiple comic images into a comic album according to the preset format includes: determining time information of a video frame image corresponding to each of the multiple comic images; sorting the multiple comic images according to the sequence of the time information and the preset comic frame distribution to generate the comic album.

[0115] Generally speaking, the events captured in the video to be converted develop in chronological order. In order to ensure that the comic content of the comic book conforms to the development logic of the event, the time information of multiple comic images can be obtained, and the multiple comic images can be filled in the preset comic grid in chronological order. The comic book can contain multiple preset comic grids, and the distribution of the preset comic grids can be pre-set. For example, the comic grids of the strip comic are arranged vertically, and the size of the preset comic grid can also be preset, or automatically adjusted according to the size of the content object in the comic image, which is not limited in the embodiments of this specification.

[0116] In the second aspect, based on the same inventive concept, the embodiment of this specification provides a comic book generation device, please refer to Figure 3 ,include:

[0117] The video determination module 31 is used to determine a video to be converted, wherein the video to be converted is composed of a plurality of video frame images;

[0118] A target image determination module 32, configured to determine a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0119] An image conversion module 33, configured to perform comic style conversion on the plurality of target images to generate a plurality of comic images;

[0120] The synthesis module 34 is used to synthesize the multiple comic images into a comic book according to a preset format.

[0121] In an optional implementation, the device further includes:

[0122] A classification module, used to determine the image category of each video frame image in the plurality of video frame images according to a trained image classification model;

[0123] A first determination module is used to determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted;

[0124] The target image determination module 32 is used for:

[0125] The target image is determined among the multiple images to be converted.

[0126] In an optional implementation, the target image determination module 32 is used to:

[0127] Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0128] Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0129] Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0130] The video frame image whose clarity score meets the preset condition is determined as the target image.

[0131] In an optional implementation, the device further includes:

[0132] A deduplication module, configured to perform deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images;

[0133] The image conversion and synthesis module 33 is used for:

[0134] The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

[0135] In an optional implementation, the deduplication module is used to:

[0136] Determining the image similarity between any two target images according to the clarity of each target image in the plurality of target images;

[0137] Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold;

[0138] According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

[0139] In an optional implementation, the device further includes:

[0140] A second determination module, configured to determine text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images;

[0141] The text adding module is used to add the text information to a preset position in each comic image.

[0142] In an optional implementation, the image conversion module 33 is used to:

[0143] The processing module is used to perform comic style conversion on the multiple target images by using an adversarial network to generate the multiple comic images.

[0144] In an optional implementation, the preset format includes a preset comic frame distribution, and the synthesis module 34 is used to:

[0145] Determining time information of a video frame image corresponding to each of the plurality of comic images;

[0146] The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

[0147] Regarding the above-mentioned device, the specific functions of each module therein have been described in detail in the embodiment of the comic book generation method provided by the embodiment of the present invention, and will not be elaborated here.

[0148] In a third aspect, based on the same inventive concept as the comic book generation method in the aforementioned embodiment, the present invention also provides a comic book generation device, such as Figure 4 As shown, it includes a memory 504, a processor 502, and a computer program stored in the memory 504 and executable on the processor 502. When the processor 502 executes the program, the steps of any one of the above-mentioned comic book generation methods are implemented.

[0149] Among them, Figure 4In the embodiment of the present invention, a bus architecture (represented by bus 500) is shown, which may include any number of interconnected buses and bridges, and bus 500 links various circuits including one or more processors represented by processor 502 and memory represented by memory 504. Bus 500 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 506 provides an interface between bus 500 and receiver 501 and transmitter 503. Receiver 501 and transmitter 503 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 502 is responsible for managing bus 500 and general processing, while memory 504 may be used to store data used by processor 502 when performing operations.

[0150] In a fourth aspect, based on the inventive concept of the comic book generation method in the aforementioned embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above for the comic book generation method.

[0151] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 produce 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 has the functions specified in one or more boxes.

[0152] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including 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.

[0153] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0154] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0155] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0156] The present invention also discloses A1, a method for generating a comic book, the method comprising:

[0157] Determine a video to be converted, wherein the video to be converted is composed of multiple video frame images;

[0158] Determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0159] Performing comic style conversion on the multiple target images to generate multiple comic images;

[0160] The multiple comic images are combined into a comic book according to a preset format.

[0161] A2. The method for generating a comic book according to A1, after determining the video to be converted, the method further comprises:

[0162] Determining the image category of each video frame image in the plurality of video frame images according to the trained image classification model;

[0163] Determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted;

[0164] The step of determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images comprises:

[0165] The target image is determined among the multiple images to be converted.

[0166] A3. The method for generating a comic book according to A1, wherein determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images comprises:

[0167] Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0168] Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0169] Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0170] The video frame image whose clarity score meets the preset condition is determined as the target image.

[0171] A4. The method for generating a comic book according to A1, before converting the plurality of target images into comic styles to generate a plurality of comic images, the method further comprises:

[0172] According to the image content of each target image in the multiple target images, deduplication processing is performed on the multiple target images to obtain multiple deduplication images;

[0173] The step of converting the plurality of target images into comic styles to generate a plurality of comic images comprises:

[0174] The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

[0175] A5. The method for generating a comic book according to A4, wherein the deduplication processing is performed on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images, including:

[0176] Determining the image similarity between any two target images according to the image content of each target image in the plurality of target images;

[0177] Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold;

[0178] According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

[0179] A6. The method for generating a comic book according to A1, after converting the plurality of target images into comic styles to generate a plurality of comic images, the method further comprises:

[0180] Determining text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images;

[0181] The accompanying text information is added to a preset position in each comic image.

[0182] A7. The method for generating a comic book according to A1, wherein the plurality of target images are converted into comic styles to generate a plurality of comic images, comprising:

[0183] An adversarial network is used to perform comic style conversion on the multiple target images to generate the multiple comic images.

[0184] A8. The comic book generation method according to A1, wherein the preset format includes a preset comic frame distribution, and the step of synthesizing the plurality of comic images into a comic book according to the preset format includes:

[0185] Determining time information of a video frame image corresponding to each of the plurality of comic images;

[0186] The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

[0187] B9. A comic book generating device, comprising:

[0188] A video determination module, used to determine a video to be converted, wherein the video to be converted is composed of a plurality of video frame images;

[0189] A target image determination module, used to determine a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images;

[0190] An image conversion module, used for performing comic style conversion on the plurality of target images to generate a plurality of comic images;

[0191] The synthesis module is used to synthesize the multiple comic images into a comic book according to a preset format.

[0192] B10. The comic book generating device according to B9, further comprising:

[0193] A classification module, used to determine the image category of each video frame image in the plurality of video frame images according to a trained image classification model;

[0194] A first determination module is used to determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted;

[0195] The target image determination module is used for:

[0196] The target image is determined among the multiple images to be converted.

[0197] B11. The comic book generating device according to B9, wherein the target image determination module is used for:

[0198] Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient;

[0199] Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image;

[0200] Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model;

[0201] The video frame image whose clarity score meets the preset condition is determined as the target image.

[0202] B12. The comic book generating device according to B9, further comprising:

[0203] A deduplication module, configured to perform deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images;

[0204] The image conversion module is used for:

[0205] The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

[0206] B13. The comic book generating device according to B12, wherein the deduplication module is used for:

[0207] Determining the image similarity between any two target images according to the clarity of each target image in the plurality of target images;

[0208] Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold;

[0209] According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

[0210] B14. The comic book generating device according to B9, further comprising:

[0211] A second determination module, configured to determine text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images;

[0212] The text adding module is used to add the text information to a preset position in each comic image.

[0213] B15. The comic book generating device according to B9, wherein the image conversion module is used for:

[0214] The processing module is used to perform comic style conversion on the multiple target images by using an adversarial network to generate the multiple comic images.

[0215] B16. The comic book generating device according to B9, wherein the preset format includes a preset comic frame distribution, and the synthesis module is used for:

[0216] Determining time information of a video frame image corresponding to each of the plurality of comic images;

[0217] The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

[0218] C17. A comic book generating device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods 1-8 when executing the program.

[0219] D18. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described in A1-A8.

Claims

1. A method for generating a comic book, characterized in that: The method comprises: Determine a video to be converted, wherein the video to be converted is composed of multiple video frame images; Determining the image category of each video frame image in the plurality of video frame images according to the trained image classification model; Determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted; Determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images; Performing comic style conversion on the multiple target images to generate multiple comic images; Combining the plurality of comic images into a comic book according to a preset format; The step of determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images comprises: The target image is determined among the multiple images to be converted.

2. The method for generating a comic book according to claim 1, characterized in that: The step of determining a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images comprises: Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient; Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image; Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model; The video frame image whose clarity score meets the preset condition is determined as the target image.

3. The method for generating a comic book according to claim 1, wherein: Before performing comic style conversion on the multiple target images to generate multiple comic images, the method further includes: According to the image content of each target image in the multiple target images, deduplication processing is performed on the multiple target images to obtain multiple deduplication images; The step of converting the plurality of target images into comic styles to generate a plurality of comic images comprises: The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

4. The method for generating a comic book according to claim 3, characterized in that: The step of performing deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images includes: Determining the image similarity between any two target images according to the image content of each target image in the plurality of target images; Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold; According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

5. The method for generating a comic book according to claim 1, wherein: After performing comic style conversion on the multiple target images to generate multiple comic images, the method further includes: Determining text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images; The text information is added to a preset position in each comic image.

6. The method for generating a comic book according to claim 1, characterized in that: The step of converting the plurality of target images into comic styles to generate a plurality of comic images comprises: An adversarial network is used to perform comic style conversion on the multiple target images to generate the multiple comic images.

7. The method for generating a comic book according to claim 1, wherein: The preset format includes a preset comic frame distribution, and synthesizing the plurality of comic images into a comic book according to the preset format includes: Determining time information of a video frame image corresponding to each of the plurality of comic images; The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

8. A comic book generating device, characterized in that: The device comprises: A video determination module, used to determine a video to be converted, wherein the video to be converted is composed of a plurality of video frame images; A classification module, used to determine the image category of each video frame image in the plurality of video frame images according to a trained image classification model; A first determination module is used to determine a plurality of video frame images whose image categories belong to a preset image category set as images to be converted; A target image determination module, used to determine a plurality of target images whose image clarity meets a preset condition from among the plurality of video frame images; An image conversion module, used for performing comic style conversion on the plurality of target images to generate a plurality of comic images; A synthesis module, used for synthesizing the plurality of comic images into a comic book according to a preset format; The target image determination module is used for: The target image is determined among the multiple images to be converted.

9. The comic book generating device according to claim 8, characterized in that: The target image determination module is used for: Performing normalization processing on each of the multiple video frame images to obtain a normalized brightness coefficient; Performing Gaussian distribution fitting on the normalized brightness coefficient to obtain a feature vector of each video frame image; Determine the clarity score of each video frame image according to the feature vector of each video frame image and the trained image quality assessment model; The video frame image whose clarity score meets the preset condition is determined as the target image.

10. The comic book generating device according to claim 8, characterized in that: The device also includes: A deduplication module, configured to perform deduplication processing on the multiple target images according to the image content of each target image in the multiple target images to obtain multiple deduplication images; The image conversion module is used for: The multiple deduplicated images are converted into comic styles to generate the multiple comic images.

11. The comic book generating device according to claim 10, characterized in that: The deduplication module is used for: Determining the image similarity between any two target images according to the clarity of each target image in the plurality of target images; Determine a plurality of sets of similar images according to the image similarities, wherein, for a plurality of similar images included in each set of similar images of the plurality of sets of similar images, the image similarity between any two similar images is greater than a threshold; According to the image clarity of the multiple similar images included in each group of similar image sets, deduplication processing is performed on the multiple similar images in each group of similar image sets to obtain the multiple deduplication images.

12. The comic book generating device according to claim 8, characterized in that: The device also includes: A second determination module, configured to determine text information corresponding to each of the plurality of comic images according to image contents of the plurality of comic images; The text adding module is used to add the text information to a preset position in each comic image.

13. The comic book generating device according to claim 8, characterized in that: The image conversion module is used for: The processing module is used to perform comic style conversion on the multiple target images by using an adversarial network to generate the multiple comic images.

14. The comic book generating device according to claim 8, characterized in that: The preset format includes a preset comic frame distribution, and the synthesis module is used to: Determining time information of a video frame image corresponding to each of the plurality of comic images; The plurality of comic images are sorted according to the sequence of the time information and the preset comic frame distribution to generate the comic book.

15. A comic book generating device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method according to any one of claims 1 to 7 are implemented when the processor executes the program.

16. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.