Information processing method and information processing device

By identifying and splicing image blocks that meet sharpness conditions, it solves the user's operational complexity problem when shooting and processing images with text content, and improves image quality and user experience.

CN112989943BActive Publication Date: 2024-10-22LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110178867.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-09
Publication Date
2024-10-22
Estimated Expiration
2041-02-09

AI Technical Summary

Technical Problem

In daily life and work, users often need to take images with text content, but existing technology requires users to continuously take multiple images and manually filter them, which is complex and time-consuming.

Method used

By acquiring multi-frame images of text information, identifying paragraphs in each image and judging its clarity, splicing image blocks that meet the definition conditions in paragraph order to generate target images, improving image quality and reducing user operations.

Benefits of technology

It improves the quality of the image and the user's visual experience, simplifies user operations, is easy to read, and reduces the user's time and energy in the screening and splicing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112989943B_ABST
    Figure CN112989943B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an information processing method, which includes: obtaining multiple frames of images shot for text information; wherein the multiple frames of images include image blocks where all paragraphs of the text information are located; and splicing image blocks that meet the clarity conditions among the image blocks where all paragraphs are located in the order of paragraphs to obtain a target image. The embodiment of the present application also discloses an information processing device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of computer technology, and in particular to an information processing method and an information processing device. Background Art

[0002] With the rapid development of computer technology and the popularization of electronic devices, in order to facilitate the recording of information anytime and anywhere, most electronic devices are integrated with shooting devices so that users can shoot the information they are interested in. In daily life and work, users often shoot images with text content, which mostly involve document content, screen content or PPT projection content. Regardless of the purpose of the captured images, such as uploading, sending, saving, etc., users generally shoot multiple images continuously and then manually select an image as a standby image. However, this method at least has the problem of complex operation. Summary of the invention

[0003] The embodiments of the present application are intended to provide an information processing method and an information processing device.

[0004] The technical solution of this application is implemented as follows:

[0005] An information processing method, the method comprising:

[0006] Acquire multiple frames of images shot for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located;

[0007] The image blocks that meet the definition condition among the image blocks where all the paragraphs are located are spliced ​​in the order of the paragraphs to obtain the target image.

[0008] An information processing device, comprising:

[0009] An acquisition module, used to acquire multiple frames of images shot for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located;

[0010] The processing module is used to splice the image blocks that meet the clarity conditions among the image blocks where all the paragraphs are located in accordance with the order of the paragraphs to obtain a target image.

[0011] An electronic device, comprising: a processor, a memory and a communication bus;

[0012] The communication bus is used to realize the communication connection between the processor and the memory;

[0013] The processor is used to execute the information processing program stored in the memory to implement the steps of the above-mentioned information processing method.

[0014] A storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information processing method.

[0015] The information processing method, information processing device, electronic device and storage medium provided by the embodiments of the present application obtain multiple frames of images taken for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located; image blocks that meet the clarity conditions in the image blocks where all paragraphs are located are spliced ​​in paragraph order to obtain a target image; that is, after the electronic device obtains the multiple frames of images taken for the text information, it determines the paragraph order between all paragraphs in the multiple frames of images, and splices the image blocks where the clarity of all paragraphs is located that meet the clarity conditions in the image blocks in the paragraph order to obtain the target image; in this way, image blocks with high clarity are spliced ​​to obtain the final image, thereby improving the image quality, enhancing the user's visual experience, facilitating user reading, and reducing user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0017] Figure 2 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0018] Figure 3 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0019] Figure 4 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0020] Figure 5 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0021] Figure 6 An optional flow chart of the information processing method provided in the embodiment of the present application;

[0022] Figure 7 An optional flowchart of the information processing method provided in the embodiment of the present application;

[0023] Figure 8 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0024] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0027] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0028] The embodiment of the present application provides a method for controlling multiple cameras, which is applied to an electronic device, referring to Figure 1 As shown, the method comprises the following steps:

[0029] Step 101: Acquire multiple frames of images shot for text information.

[0030] The multiple frames of images include image blocks containing all the paragraphs constituting the text information.

[0031] Here, the multiple-frame images may be multiple images obtained by an electronic device continuously shooting the same text information with the same content at the same shooting angle; the multiple-frame images may also be multiple images obtained by an electronic device shooting the same text information with the same content multiple times at the same shooting angle and at different times.

[0032] The multiple-frame images may also be multiple images obtained by the electronic device continuously photographing the entire content and / or part of the content of the same text message at the same shooting angle; the multiple-frame images may also be multiple images obtained by photographing the entire content and / or part of the content of the same text message multiple times at different times at the same shooting angle.

[0033] If the multiple images are obtained by continuously shooting partial contents of the same text information, then the partial contents in the multiple images can constitute at least a part of the entire contents of the same text information. In practical applications, the user can flexibly select whether the target image includes the entire contents or partial contents of the multiple images shot.

[0034] Here, the electronic device may be a mobile terminal device with a shooting function, such as a mobile phone, tablet computer, laptop computer, personal digital assistant (PDA), camera, wearable device, smart bracelet, smart watch, etc., or a fixed terminal device with a shooting function such as a desktop computer.

[0035] In an embodiment of the present application, the electronic device obtains multiple frames of images taken of text information such as an article, performs text recognition on each image, determines all paragraphs of the text information contained in each image, and generates an image block for each paragraph of the text information.

[0036] Step 102: splice the image blocks that meet the definition requirements in all the image blocks where the paragraphs are located in order of the paragraphs to obtain a target image.

[0037] Among them, clarity refers to the clarity of each detail pattern and its boundary in the image, which is used to measure the picture quality of the image; here, the higher the clarity, the better the picture quality of the image; conversely, the lower the clarity, the worse the picture quality of the image.

[0038] The clarity condition may be that the clarity of each detail pattern and its boundary in the image satisfies a clarity threshold.

[0039] The target image is an image composed of at least part of the image blocks in multiple frames of images.

[0040] In an embodiment of the present application, after the electronic device obtains multiple frames of images taken of the text information, it determines the image blocks corresponding to all the paragraphs constituting the text information in each image, and sorts the image blocks corresponding to each paragraph in each image according to the connection relationship between the paragraphs; at the same time, the electronic device determines whether the clarity of the image blocks where all the paragraphs constituting the text information in each image are located meets the clarity conditions, and splices the image blocks where all the paragraphs that meet the clarity conditions are located according to the connection order between the paragraphs, and finally obtains the target image.

[0041] The information processing method provided by the embodiment of the present application obtains multiple frames of images taken for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located; image blocks that meet the clarity conditions in the image blocks where all paragraphs are located are spliced ​​in paragraph order to obtain a target image; that is, after the electronic device obtains the multiple frames of images taken for the text information, it determines the paragraph order between all paragraphs in the multiple frames of images, and splices the image blocks where the clarity of all paragraphs is located that meet the clarity conditions in the image blocks in the paragraph order to obtain the target image; in this way, image blocks with high clarity are spliced ​​to obtain the final image, thereby improving the image quality, enhancing the user's visual experience, facilitating user reading, and reducing user operations.

[0042] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 2 As shown, the method comprises the following steps:

[0043] Step 201: Acquire multiple frames of images shot for text information.

[0044] The multiple frames of images include image blocks containing all the paragraphs constituting the text information.

[0045] In an achievable application scenario, the image blocks containing all the paragraphs constituting the text information in the multiple-frame images may be such that the paragraphs presented in each frame of the image are the same, and the image blocks containing each paragraph presented in the multiple-frame images may have different image block clarity.

[0046] Here, the multiple-frame images may be multiple images obtained by an electronic device continuously shooting the same text information with the same content at the same shooting angle; the multiple-frame images may also be multiple images obtained by an electronic device shooting the same text information with the same content multiple times at the same shooting angle and at different times.

[0047] It should be noted that the text information contained in each image in the multiple frames of images is completely the same, but the image block clarity of the image block where each paragraph constituting the text information in each image in the multiple frames of images is located is not completely the same.

[0048] For example, the text information is an article with five paragraphs, and the electronic device obtains multiple frames of images obtained by continuously shooting paragraphs 1 to 5. The image block clarity of each paragraph in each image is not exactly the same.

[0049] In another achievable application scenario, the multi-frame images include image blocks where all paragraphs constituting text information are located, wherein the paragraphs presented in N frames of the multi-frame images are the same, the paragraphs presented in M ​​frames are at least partially different, and the image block clarity of the image blocks where each paragraph presented in the multi-frame images is located is not completely the same; wherein the number of paragraphs presented in the N frames of the images is greater than the number of paragraphs presented in the M frames of the images, N and M are positive integers, and the sum of N and M is the number of frames of the multi-frame images.

[0050] Here, the multiple frames of images may be multiple images obtained by the electronic device continuously shooting the entire content and / or part of the content of the same text message at the same shooting angle; the multiple frames of images may also be multiple images obtained by shooting the entire content and / or part of the content of the same text message multiple times at different times at the same shooting angle. If the multiple images are obtained by continuously shooting part of the content of the same text message, then the part of the content in the multiple images can constitute at least part of the entire content of the same text message. In practical applications, the user can flexibly select whether the target image includes the entire content or part of the content in the multiple images shot.

[0051] It should be noted that the paragraphs presented in N frames of the multi-frame image are the same, and the paragraphs presented in M ​​frames of the image are at least partially different from the paragraphs presented in N frames of the image; the image block clarity of each paragraph constituting the text information in each image in the multi-frame image is not exactly the same; at the same time, the number of paragraphs presented in N frames of the image is greater than the number of paragraphs presented in M ​​frames of the image.

[0052] For example, the text information is an article with five paragraphs, and the electronic device obtains N frames of images obtained by continuously shooting paragraphs 1 to 5, and M frames of images obtained by continuously shooting paragraphs 1 to 4 or paragraphs 3 to 5, and the image block clarity of each image in each paragraph is not completely the same. Here, the sum of N and M is the number of frames of the multi-frame image.

[0053] Step 202: Convert all the image blocks containing the paragraphs into paragraphs in text format based on an optical character recognition algorithm.

[0054] Among them, Optical Character Recognition (OCR) is the process in which an electronic device checks characters printed on paper, determines their shapes by detecting dark and light patterns, and then translates the shapes into computer text using a character recognition algorithm; that is, for printed characters, an optical method is used to convert the text in a paper document into a black and white dot matrix image file, and the text in the image is converted into a text format through recognition software for further editing and processing by word processing software.

[0055] In an embodiment of the present application, the electronic device pre-processes the image blocks where all paragraphs are located through an OCR algorithm to obtain processed image blocks; wherein the pre-processing includes binarization, denoising, tilt correction, etc. of the image blocks; and text recognition is performed on the text lines in the processed image blocks to obtain paragraphs in text format.

[0056] Step 203: Input each paragraph in text format into the natural language analysis model to obtain the paragraph order of all paragraphs.

[0057] Among them, the natural language analysis model can analyze the syntax, semantics, etc. of the text-formatted paragraphs, determine the connection relationship between the paragraphs, and then determine the order between the paragraphs.

[0058] In the embodiment of the present application, the electronic device converts the image blocks containing all paragraphs into paragraphs in text format based on the OCR algorithm, and then inputs each paragraph in text format into the natural language analysis model to obtain the paragraph order between each paragraph.

[0059] Step 204: splice the image blocks that meet the definition requirements in all the image blocks where the paragraphs are located in order of the paragraphs to obtain a target image.

[0060] As can be seen from the above, the electronic device converts the image blocks containing the paragraphs in the multiple frames of images taken for the text information into paragraphs in text format through the OCR algorithm, and obtains the paragraph order of all paragraphs through the natural language analysis model for each paragraph in text format, so that the electronic device can splice the image blocks containing all paragraphs that meet the clarity conditions according to the paragraph order to obtain the target image. In this way, the integrity of the paragraphs of the text information contained in the target image is ensured, and it is easy for users to read, reducing user operations.

[0061] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 3 As shown, the method comprises the following steps:

[0062] Step 301: Acquire multiple frames of images shot for text information.

[0063] The multiple frames of images include image blocks containing all the paragraphs constituting the text information.

[0064] Here, each frame of image presents the same paragraph, and the image block clarity of the image blocks where each paragraph is located presented by multiple frames of image is not completely the same.

[0065] Step 302: Obtain the image clarity of each frame of image.

[0066] In the embodiment of the present application, the electronic device obtains the image clarity of each image through an OCR algorithm, so as to determine the reference image according to the image clarity of each image.

[0067] In the present application, refer to Figure 4 As shown, step 302 obtains the image clarity of each frame of image, which can be achieved by the following steps:

[0068] Step 3021: Obtain the image block clarity of each image block included in each frame of image.

[0069] Among them, the image block clarity includes the detection confidence of the image block and the recognition confidence of the image block; the detection confidence is the probability that the current detection area of ​​the electronic device is indeed a text paragraph; the recognition confidence is the probability that the electronic device recognizes the text paragraph as the current result.

[0070] In an embodiment of the present application, the electronic device detects the detection confidence and recognition confidence of each image block included in each image through an OCR algorithm; and determines the clarity of the image block based on the detection confidence and the recognition confidence.

[0071] Step 3022: Determine the average value of the image block sharpness of each image block as the image sharpness of each frame of image.

[0072] In the embodiment of the present application, after the electronic device obtains the image block clarity of each image block included in each frame of image, it determines the average value of the image block clarity of each image block as the image clarity of each frame of image.

[0073] Step 303: Determine an image with the greatest image clarity from the multiple frames of images as a reference image.

[0074] In the embodiment of the present application, the electronic device compares the image clarity of every two frames of images in the multiple frames of images, and determines the image with the greatest image clarity as the reference image.

[0075] In an embodiment of the present application, the electronic device determines a reference image from multiple frames of images based on the image clarity of each frame of image. This can also be achieved through the following steps: obtaining the target confidence of each frame of image through an OCR algorithm, and determining from multiple frames of images that an image whose image clarity meets a clarity threshold and whose target confidence meets the target confidence threshold is a reference image; wherein the clarity condition includes a clarity threshold and a target confidence threshold.

[0076] Step 304: Determine the target image block where the target paragraph that does not meet the definition condition is located in the reference image.

[0077] The target paragraph is a paragraph included in the image block whose image block definition does not meet the definition condition in the reference image. The target image block is the image block where the target paragraph is located.

[0078] In an embodiment of the present application, the electronic device determines whether the clarity of an image block in a reference image meets a clarity condition. If there is an image block whose clarity does not meet the clarity condition, the image block is determined to be a target image block, and a target paragraph included in the target image block is determined.

[0079] Step 305: Determine a reference image block where the target paragraph that meets the definition requirement is located from the remaining images included in the multiple frames of images.

[0080] Among them, the residual image and the reference image form a multi-frame image.

[0081] The remaining images are the remaining images in the multiple-frame images except the reference image.

[0082] In an embodiment of the present application, after the electronic device determines the target image block where the target paragraph that does not meet the clarity condition is located in the reference image, it determines whether the image block clarity of the image block where the target paragraph is located meets the clarity condition from the remaining images included in the multiple frames of images. If there is an image block whose image block clarity meets the clarity condition, the image block is determined to be the reference image block.

[0083] In the present application examples, reference Figure 5 As shown, step 305 determines the reference image block where the target paragraph that meets the definition condition is located from the remaining images included in the multiple frames of images, which can be implemented by the following steps:

[0084] Step 3051: In response to a prompt operation on a candidate image block where a target paragraph is located in the remaining images, the remaining images are displayed in a display interface.

[0085] Among them, the displayed remaining images display the prompt information of the clarity of the candidate image blocks.

[0086] The candidate image block is the image block where the target paragraph is located in the remaining image.

[0087] The prompt operation is an operation in which the operator performs a specific action on the candidate image block where the target paragraph is located in the remaining images in the electronic device. Here, the specific action can be an action of shaking the electronic device; the specific action can also be an action of clicking the screen of the electronic device; the specific action can also be an action of controlling the electronic device by voice, and this application does not make any specific restrictions.

[0088] The prompt information may be the numerical information of the image block clarity of each image block in each remaining image; the prompt information may also be to specifically mark the image block with the highest image block clarity in each remaining image, and display the numerical information of the image block clarity of the specifically marked image block; here, the specific mark may be to highlight the image block with the highest image block clarity, and the specific mark may also be to highlight the image blocks with the highest and second highest image block clarity. This application does not impose any specific restrictions.

[0089] In an embodiment of the present application, first, the operator performs a prompt operation of a specific action on the candidate image block where the target paragraph is located in the remaining image in the electronic device; secondly, the electronic device responds to the prompt operation performed by the operator and displays the remaining image with prompt information such as numerical information of the image block clarity of the candidate image block or highlighted image blocks in the display interface.

[0090] Step 3052: In response to a selection operation on an image block in the candidate image blocks, determine the selected image block as a reference image block.

[0091] In an embodiment of the present application, an operator performs a selection operation on an image block among candidate image blocks in an electronic device, and the electronic device responds to the selection operation performed by the operator and determines that the selected image block is a reference block of a target paragraph.

[0092] In a feasible application scenario, the text information is an article with five paragraphs. Figure 6 As shown. First, the electronic device obtains multiple frames of images obtained by continuously shooting paragraphs 1 to 5, such as the multiple frames of images include image 1, image 2, image 3 and image 4. Secondly, the electronic device obtains the image block clarity of each image block included in each frame of the image through an OCR algorithm, and determines the average image clarity of each frame of the image based on the image block clarity of each image block included in each frame of the image. Thirdly, the electronic device compares the average image clarity of each image, and determines the image with the maximum average image clarity from the multiple frames of images as a reference image such as image 1. Then, the electronic device determines the target image block where the target paragraph such as paragraph 2 in image 1 that does not meet the image clarity condition is located, and determines the reference image block where paragraph 2 that meets the clarity condition is located from the remaining images such as image 2, image 3 and image 4. If the clarity of the image block where paragraph 2 in image 3 is located meets the clarity condition, the image block where paragraph 2 in image 3 is located is determined as the reference image block.

[0093] Here, the reference image block can display the numerical information of the image block clarity of multiple candidate image blocks where paragraph 2 is located based on the operator's prompt operation to perform a specific action on the remaining images in the electronic device, and the operator can select the candidate image block with the highest numerical information of image block clarity among the multiple candidate image blocks to obtain the image block.

[0094] The reference image block can also display the numerical information of the image block clarity of multiple candidate image blocks where paragraph 2 is located, based on the operator's prompt operation to perform a specific action on the remaining images in the electronic device, highlight the candidate image block with the highest image block clarity among the multiple candidate image blocks where paragraph 2 is located, and obtain the image block by the operator selecting the candidate image block with the highest image block clarity.

[0095] Step 306: Replace the target image block with the reference image block in the reference image to obtain the target image.

[0096] In the embodiment of the present application, the electronic device determines the reference image block where the target paragraph that meets the clarity condition is located from the remaining image, and replaces the target image block in the reference image with the reference image block to obtain the target image, and then saves the target image.

[0097] As can be seen from the above, the electronic device obtains multiple frames of images taken continuously for text information with the same content, determines the image with the highest image clarity from the multiple frames as the reference image, and replaces the target image block of the target paragraph that does not meet the clarity condition in the reference image with the reference image block of the target paragraph that meets the clarity condition in the remaining image to obtain the target image; that is, the reference image itself has a paragraph order, and the unclear part of the reference image can be directly replaced to obtain the target image. In this way, it is ensured that the clarity of the image blocks in the target image meets the clarity requirements, and the integrity of the paragraphs of the text information contained in the target image is ensured; at the same time, the image quality is improved, the user's visual experience is enhanced, it is easy for users to read, and user operations are reduced.

[0098] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 7 As shown, the method comprises the following steps:

[0099] Step 401: Acquire multiple frames of images shot for text information.

[0100] The multiple frames of images include image blocks containing all the paragraphs constituting the text information.

[0101] Among the multiple-frame images, the paragraphs presented in N frames are the same, the paragraphs presented in M ​​frames are at least partially different, and the image block clarity of the image block where each paragraph presented in the multiple-frame images is located is not completely the same.

[0102] The number of paragraphs presented by the N-frame image is greater than the number of paragraphs presented by the M-frame image, N and M are positive integers, and the sum of N and M is the number of frames of the multi-frame image.

[0103] Step 402: Determine the paragraph order of each paragraph based on the paragraphs presented in the multiple frames of images.

[0104] The N frames of images include image blocks containing all the paragraphs constituting the text information.

[0105] In an embodiment of the present application, an electronic device obtains paragraphs presented in N frames of images included in a plurality of frames of images, determines any one of the N frames of images as a first target image, and converts all paragraphs presented in the first target image into paragraphs in text format through an OCR algorithm, inputs the paragraphs in text format into a natural language analysis model, and determines the paragraph order between each paragraph presented in the first target image. At the same time, an electronic device obtains paragraphs presented in M ​​frames of images included in a plurality of frames of images, determines any one of the M frames of images as a second target image, and converts all paragraphs presented in the second target image into paragraphs in text format through an OCR algorithm, inputs the paragraphs in text format into a natural language analysis model, and determines the paragraph order between each paragraph presented in the second target image. The paragraph order of some paragraphs presented in the first target image corresponds to the paragraph order of all paragraphs presented in the second target image.

[0106] In the embodiment of the present application, step 402 determines the paragraph order of each paragraph based on the paragraphs presented in multiple frames of images, and can also be implemented by the following steps: determining the paragraph order of each paragraph based on the paragraphs presented in one frame of N frames of images.

[0107] Step 403: Obtain the image block clarity of the image block where each paragraph in the N-frame image and the M-frame image is located.

[0108] In an embodiment of the present application, the electronic device determines the image block clarity of the image blocks where each paragraph in the N-frame image is located through an OCR algorithm, and determines the image block clarity of the image blocks where each paragraph in the M-frame image is located.

[0109] Step 404: From the image blocks where each paragraph is located, determine the image block where each paragraph is located whose image block clarity meets the clarity condition.

[0110] In the embodiment of the present application, after the electronic device determines all the paragraphs in the multiple frames of images, it determines multiple image blocks where the same paragraph is located in all the paragraphs; and selects an image block whose clarity meets the clarity condition from the multiple image blocks where the same paragraph is located.

[0111] In a feasible application scenario, the text information is an article with five paragraphs. Figure 6As shown. First, the electronic device obtains N frames of images obtained by continuously shooting paragraphs 1 to 5, such as N frames of images including image 1 and image 2, and M frames of images obtained by continuously shooting paragraphs 3 to 5, such as M frames of images including image 3 and image 4. Here, the image block clarity of the image block where each paragraph of each image in image 1, image 2, image 3 and image 4 is located is not exactly the same. Here, the sum of N and M is the number of frames of multiple frames of images. Secondly, the electronic device determines the paragraph order between all paragraphs based on the paragraphs presented in image 1, image 2, image 3 and image 4, such as determining the order of any paragraph included in paragraphs 1 to 5; and determines the image block clarity of the image block where each paragraph in image 1, image 2, image 3 and image 4 is located by using the OCR algorithm. Thirdly, according to the order between the paragraphs, the electronic device obtains the image block with the highest image block clarity among the multiple image blocks where the same paragraph, such as paragraph 1, is located as the image block to be spliced, and obtains the image blocks to be spliced ​​corresponding to the remaining paragraphs, such as paragraphs 2 to paragraphs 5.

[0112] Here, the image blocks to be spliced ​​can display the numerical information of the image block clarity of the multiple image blocks where paragraph 1 is located based on the prompt operation of the operator to perform specific actions on the multiple frames of images in the electronic device, and the operator selects the image block with the highest numerical information of image block clarity among the multiple image blocks to obtain the image block.

[0113] The image blocks to be spliced ​​can also be based on the prompt operation of the operator to perform specific actions on multiple frames of images in the electronic device, display the numerical information of the image block clarity of the multiple image blocks where paragraph 1 is located, highlight the image block with the highest image block clarity among the multiple image blocks where paragraph 1 is located, and the operator selects the image block with the highest image block clarity to obtain the image block.

[0114] Step 405: splice the image blocks of each paragraph in the order of the paragraphs to obtain the target image.

[0115] In an embodiment of the present application, the electronic device determines, from the image blocks where each paragraph is located, the image blocks where the clarity of the image blocks meets the clarity conditions, and then splices the image blocks where each paragraph meets the clarity conditions in the order of the paragraphs to obtain the target image.

[0116] From the above, it can be seen that the electronic device obtains multiple frames of images that are continuously shot for the entire content and / or part of the content of the same text information, determines the paragraph order between each paragraph presented by each image in the multiple frames of images; determines the image block where the paragraph is located in the multiple frames of images based on the same paragraph; obtains the image block with the highest clarity among the image blocks where each paragraph is located, and splices them in the paragraph order to obtain the target image; in this way, it is ensured that the clarity of the image blocks in the target image meets the clarity requirements, and the integrity of the paragraphs of the text information contained in the target image is ensured; at the same time, the image quality is improved, the user's visual experience is enhanced, it is easy for the user to read, and the user operation is reduced.

[0117] The embodiment of the present application provides an information processing device, which can be applied to Figures 1 to 5 In an information processing method provided in the embodiment corresponding to 7, referring to Figure 8 As shown, the information processing device 7 includes:

[0118] The acquisition module 701 is used to acquire multiple frames of images shot for the text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located;

[0119] The processing module 702 is used to splice the image blocks that meet the definition conditions among the image blocks where all paragraphs are located in accordance with the order of the paragraphs to obtain a target image.

[0120] In other embodiments of the present application, each frame of image presents the same paragraph, and the image block clarity of the image blocks where each paragraph is located presented by multiple frames of image is not completely the same.

[0121] In other embodiments of the present application, the paragraphs presented in N frames of the multi-frame image are the same, the paragraphs presented in M ​​frames are at least partially different, and the image block clarity of the image blocks where each paragraph presented in the multi-frame image is located is not completely the same; wherein the number of paragraphs presented in the N frame image is greater than the number of paragraphs presented in the M frame image, N and M are positive integers, and the sum of N and M is the number of frames of the multi-frame image.

[0122] In other embodiments of the present application, the processing module 702 is also used to convert the image blocks containing all paragraphs into paragraphs in text format based on an optical character recognition algorithm; and input each paragraph in text format into a natural language analysis model to obtain the paragraph order of all paragraphs.

[0123] In other embodiments of the present application, the acquisition module 701 is also used to acquire the image clarity of each frame image; the processing module 702 is also used to determine the image with the largest image clarity from multiple frames of images as the reference image; determine the target image block where the target paragraph that does not meet the clarity condition is located in the reference image; determine the reference image block where the target paragraph that meets the clarity condition is located from the remaining images included in the multiple frames of images; wherein the remaining images and the reference images constitute a multiple frame image; and replace the target image block in the reference image with the reference image block to obtain the target image.

[0124] In other embodiments of the present application, the processing module 702 is further used to display the remaining images in the display interface in response to a prompt operation on the candidate image block where the target paragraph is located in the remaining images; wherein prompt information on the clarity of the candidate image blocks is displayed in the displayed remaining images; and in response to a selection operation on an image block in the candidate image blocks, determine that the selected image block is a reference image block.

[0125] In other embodiments of the present application, the processing module 702 is also used to determine the paragraph order of each paragraph based on the paragraphs presented in multiple frames of images; the acquisition module 701 is also used to obtain the image block clarity of the image blocks where each paragraph is located in N frames of images and M frames of images; the processing module 702 is also used to determine the image blocks where each paragraph is located whose image block clarity meets the clarity conditions from the image blocks where each paragraph is located; and the image blocks where each paragraph is located are spliced ​​in the paragraph order to obtain the target image.

[0126] In other embodiments of the present application, the processing module 702 is also used to determine the paragraph order of each paragraph based on the paragraphs presented in one frame of the N frames of images, including the image blocks where all the paragraphs constituting the text information are located.

[0127] In other embodiments of the present application, the acquisition module 701 is further used to obtain the image block clarity of each image block included in each frame of image; the processing module 702 is further used to determine the average value of the image block clarity of each image block as the image clarity of each frame of image.

[0128] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0129] The embodiment of the present application provides an electronic device, which can be applied to Figures 1 to 5 In an information processing method provided in the embodiment corresponding to 7, referring to Fig. 9 As shown, the electronic device 8 includes: a processor 801, a memory 802 and a communication bus 803, wherein:

[0130] The communication bus 803 is used to implement the communication connection between the processor 801 and the memory 802 .

[0131] The processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0132] Acquire multiple frames of images taken for the text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located;

[0133] All the image blocks that meet the clarity requirements in the image blocks where the paragraphs are located are spliced ​​in the order of the paragraphs to obtain the target image.

[0134] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0135] The paragraphs presented in each frame of image are the same, and the image block clarity of the image blocks where each paragraph presented in multiple frames of image is located is not completely the same.

[0136] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0137] The paragraphs presented in N frames of the multi-frame image are the same, the paragraphs presented in M ​​frames are at least partially different, and the image block clarity of the image blocks where each paragraph presented in the multi-frame image is located is not completely the same; wherein the number of paragraphs presented in the N frames of the image is greater than the number of paragraphs presented in the M frames of the image, N and M are positive integers, and the sum of N and M is the number of frames of the multi-frame image.

[0138] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0139] Based on the optical character recognition algorithm, the image blocks containing all the paragraphs are converted into paragraphs in text format; each paragraph in text format is input into the natural language analysis model to obtain the paragraph order of all the paragraphs.

[0140] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0141] The image clarity of each frame image is obtained; an image with the largest image clarity is determined as a reference image from multiple frame images; a target image block in the reference image where a target section that does not meet the clarity condition is located is determined; a reference image block in the remaining images included in the multiple frame images where a target section that meets the clarity condition is located is determined; wherein the remaining images and the reference images constitute multiple frame images; and a target image block is replaced with a reference image block in the reference image to obtain a target image.

[0142] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0143] In response to a prompt operation on a candidate image block in which a target paragraph is located in the remaining images, the remaining images are displayed in a display interface; wherein prompt information on the clarity of the candidate image blocks is displayed in the displayed remaining images; and in response to a selection operation on an image block in the candidate image blocks, the selected image block is determined to be a reference image block.

[0144] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0145] Based on the paragraphs presented in the multiple-frame images, the paragraph order of each paragraph is determined; the image block clarity of the image blocks where each paragraph is located in the N-frame image and the M-frame image is obtained; from the image blocks where each paragraph is located, the image block where each paragraph is located whose image block clarity meets the clarity condition is determined; the image blocks where each paragraph is located are spliced ​​according to the paragraph order to obtain the target image.

[0146] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0147] The N frames of images include image blocks where all paragraphs constituting the text information are located, and the paragraph order of each paragraph is determined based on the paragraphs presented in one frame of the N frames of images.

[0148] In other embodiments of the present application, the processor 801 is used to execute the information processing program stored in the memory 802 to implement the following steps:

[0149] The image block clarity of each image block included in each frame of image is obtained; and the average value of the image block clarity of each image block is determined as the image clarity of each frame of image.

[0150] The present application provides a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figures 1 to 5, 7 correspond to the steps of an information processing method provided in the embodiment.

[0151] The storage medium provided in the embodiment of the present application obtains multiple frames of images taken for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located; image blocks that meet the clarity conditions in the image blocks where all paragraphs are located are spliced ​​in paragraph order to obtain a target image; that is, after the electronic device obtains the multiple frames of images taken for the text information, it determines the paragraph order between all paragraphs in the multiple frames of images, and splices the image blocks where the clarity of all paragraphs is located that meet the clarity conditions in the image blocks in accordance with the paragraph order to obtain the target image; in this way, image blocks with high clarity are spliced ​​to obtain the final image, thereby improving the image quality, enhancing the user's visual experience, facilitating user reading, and reducing user operations.

[0152] It should be noted that in the embodiment of the present application, if the above-mentioned information processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions for a terminal device to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0153] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0154] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0155] It should be understood that the "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0156] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0157] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0158] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0159] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0160] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0161] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0162] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0163] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0164] It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic positions of various components on the terminal device and do not represent the actual positions in the terminal device. The actual positions of various components or areas may be changed or offset accordingly according to actual conditions (for example, the structure of the terminal device), and the proportions of different parts of the terminal device in the drawings do not represent the actual proportions.

[0165] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, the method comprising: Acquire multiple frames of images shot for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located; Detecting the image blocks where all the paragraphs are located to obtain the detection confidence and recognition confidence of each image block; the detection confidence is the probability that the current detection area of ​​the electronic device is indeed a text paragraph; the recognition confidence is the probability that the electronic device recognizes the text paragraph as the current result; Determining the clarity of the image block based on the detection confidence and the recognition confidence; Any image blocks that meet the definition condition in the image blocks where each paragraph in all the paragraphs is located are spliced ​​in the order of the paragraphs to obtain the target image.

2. According to the method of claim 1, each frame of the multiple frames of images presents the same paragraph, and the image block clarity of the image blocks where each paragraph presented by the multiple frames of images is located is not completely the same.

3. The method according to claim 1, wherein the paragraphs presented in N frames of the multi-frame image are the same, the paragraphs presented in M ​​frames are at least partially different, and the image block clarity of the image blocks where each paragraph presented in the multi-frame image is located is not completely the same; in, The number of paragraphs presented by the N frames of images is greater than the number of paragraphs presented by the M frames of images, N and M are positive integers, and the sum of N and M is the number of frames of the multiple frames of images.

4. The method according to claim 1, before splicing any image block that meets the definition condition in the image block where each paragraph of all the paragraphs is located in the order of paragraphs to obtain the target image, the method comprises: Convert all the image blocks containing paragraphs into text-formatted paragraphs based on an optical character recognition algorithm; Each paragraph in the text format is input into a natural language analysis model to obtain the paragraph order of all the paragraphs.

5. The method according to claim 2, wherein the step of splicing any image block that meets the definition condition in the image block where each paragraph of all the paragraphs is located in accordance with the order of the paragraphs to obtain the target image comprises: Obtaining the image clarity of each frame of image; Determine an image with the greatest image clarity from the multiple frames of images as a reference image; Determine a target image block in the reference image where a target segment that does not meet the definition condition is located; Determine, from the remaining images included in the multiple frames of images, a reference image block where the target paragraph that meets the definition condition is located; wherein the remaining images and the reference images constitute the multiple frames of images; The target image block is replaced by the reference image block in the reference image to obtain the target image.

6. The method according to claim 5, wherein determining the reference image block where the target paragraph that meets the definition condition is located from the remaining images included in the multiple frames of images comprises: In response to a prompt operation on the candidate image block where the target paragraph is located in the remaining image, the remaining image is displayed in a display interface; wherein the displayed remaining image displays prompt information of the clarity of the candidate image block; In response to a selection operation on an image block among the candidate image blocks, the selected image block is determined as a reference image block.

7. The method according to claim 3, wherein the step of splicing any image block that meets the definition condition in the image block where each paragraph of all the paragraphs is located in accordance with the order of the paragraphs to obtain the target image comprises: Determining a paragraph order of each paragraph based on the paragraphs presented in the multiple frames of images; Obtaining the image block clarity of the image blocks where each paragraph in the N frames of images and the M frames of images is located; From the image blocks where the respective paragraphs are located, determine the image block where each paragraph whose image block definition meets the definition condition is located; The image blocks where each paragraph is located are spliced ​​according to the order of the paragraphs to obtain the target image.

8. The method according to claim 7, wherein the N frames of images include image blocks where all paragraphs constituting the text information are located, and the determining the paragraph order of each paragraph based on the paragraphs presented in the multiple frames of images comprises: Based on the paragraphs presented in one of the N frames of images, a paragraph order of each paragraph is determined.

9. The method according to claim 5, wherein obtaining the image definition of each frame of image comprises: Obtaining the image block clarity of each image block included in each frame of image; An average value of the image block sharpness of each image block is determined as the image sharpness of each frame of image.

10. An information processing device, comprising: An acquisition module, used to acquire multiple frames of images shot for text information; wherein the multiple frames of images include image blocks where all paragraphs constituting the text information are located; A processing module, used for splicing any image block that meets the definition condition in the image block where each paragraph of all the paragraphs is located, in the order of the paragraphs, to obtain a target image; The processing module is further used to detect the image blocks where all the paragraphs are located to obtain the detection confidence and recognition confidence of each image block; determine the clarity of the image block based on the detection confidence and the recognition confidence; the detection confidence is the probability that the current detection area of ​​the electronic device is indeed a text paragraph; the recognition confidence is the probability that the electronic device recognizes the text paragraph as the current result.