WO2023019681A1 - 一种图像内容的提取方法、装置、终端和存储介质 - Google Patents
一种图像内容的提取方法、装置、终端和存储介质 Download PDFInfo
- Publication number
- WO2023019681A1 WO2023019681A1 PCT/CN2021/119724 CN2021119724W WO2023019681A1 WO 2023019681 A1 WO2023019681 A1 WO 2023019681A1 CN 2021119724 W CN2021119724 W CN 2021119724W WO 2023019681 A1 WO2023019681 A1 WO 2023019681A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- pixel
- processed
- linear light
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/92—Dynamic range modification of images or parts thereof based on global image properties
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/28—Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/60—Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
- G06T2207/20028—Bilateral filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30176—Document
Definitions
- the present application belongs to the field of image processing, and in particular relates to an image content extraction method, device, terminal and storage medium.
- the handwriting board can record the characters, graffiti, etc. left by the students when they calculate and paint on the handwriting board.
- the tablet or the device connected to the tablet can use the image of the tablet to extract the image content for data analysis, so as to achieve the effect of assisting students in learning and education.
- threshold segmentation In practical applications, when students calculate and paint on the handwriting board, the strength is not uniform, and the pixel values of the pixels corresponding to the characters, graffiti and other image content in the image do not all fall within a certain threshold range. Therefore, the use of threshold segmentation In the solution, the extraction of image content is often incomplete and the image content is broken.
- Embodiments of the present application provide an image content extraction method, device, terminal, and storage medium, which can improve the integrity of image content extraction.
- the first aspect of the embodiment of the present application provides a method for extracting image content, including:
- An image acquisition unit configured to acquire an image to be processed
- a high-contrast preserving unit configured to perform high-contrast preserving processing on the image to be processed to obtain a high-contrast image of the image to be processed;
- an image fusion unit configured to perform image fusion on the image to be processed and the high-contrast image to obtain a fusion image
- a linear light enhancement unit configured to perform linear light enhancement processing on the fused image to obtain a linear light enhancement image
- An image content extraction unit configured to use the first pixel in the linear light-enhanced image whose pixel value is within a preset pixel value range as the image content of the image to be processed.
- the third aspect of the embodiments of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the above method is implemented when the processor executes the computer program A step of.
- a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.
- the fifth aspect of the embodiments of the present application provides a computer program product, which, when the computer program product runs on a terminal, enables the terminal to execute the steps of the method.
- a high-contrast image of the image to be processed is obtained, and then performing image fusion on the image to be processed and the high-contrast image to obtain a fused image, Then perform linear light enhancement processing on the fused image to obtain a linear light enhanced image, which can enhance the pixel value difference between the pixel area corresponding to the image content in the image to be processed and the pixel area corresponding to the non-image content, and strengthen the information display of the image content in the image.
- the integrity of the image content extraction is higher.
- FIG. 1 is a schematic diagram of an implementation flow of a method for extracting image content provided by an embodiment of the present application
- Fig. 2 is a schematic diagram of an original image provided by an embodiment of the present application.
- Fig. 3 is a schematic diagram of a first inversion diagram provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a specific implementation process for sharpening the first inverse image provided by the embodiment of the present application
- FIG. 5 is a schematic diagram of a second sharpened image provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of a high-contrast image provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a fused image provided by an embodiment of the present application.
- Fig. 8 is a schematic diagram of an image content provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of a target image provided by an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of an image content extraction device provided in an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
- the handwriting board can record the characters, graffiti, etc. left by the students when they calculate and paint on the handwriting board.
- the tablet or the device connected to the tablet can use the image of the tablet to extract the image content for data analysis, so as to achieve the effect of assisting students in learning and education.
- threshold segmentation In practical applications, when students calculate and paint on the handwriting board, the strength is not uniform, and the pixel values of the pixels corresponding to the characters, graffiti and other image content in the image do not all fall within a certain threshold range. Therefore, the use of threshold segmentation In the solution, the extraction of image content is often incomplete and the image content is broken.
- Fig. 1 shows a schematic diagram of the implementation flow of a method for extracting image content provided by an embodiment of the present application.
- the method can be applied to a terminal and is applicable to situations where the integrity of image content extraction needs to be improved.
- the above-mentioned terminal may be a handwriting tablet with a certain processing capability, a terminal device connected to the handwriting tablet, or other terminal equipment that needs to extract characters in the image.
- the above method for extracting image content may include the following steps S101 to S105.
- Step S101 acquiring an image to be processed.
- the image to be processed refers to an image containing image content such as characters and graffiti that need to be extracted.
- image content such as characters and graffiti that need to be extracted.
- different character images to be processed may be selected according to actual conditions.
- the above-mentioned terminal can obtain the original image obtained by shooting the handwriting tablet; perform inversion processing on the original image to obtain a first inversion image of the original image; and sharpen the first inversion image processing, and use the second sharpened image obtained after the sharpening process as the image to be processed.
- the aforementioned inversion processing of the original image may include: subtracting the pixel value of each pixel in the original image from the set pixel value to obtain a first inversion image of the original image.
- the pixel value set above can be 255, that is, for each pixel in the original image, subtract the original pixel value of the pixel in the original image from 255 to obtain the pixel in the first reflection Pixel values in the phase map.
- FIG. 2 shows an original image obtained by capturing a tablet in the present application, and the first inverse image corresponding to the original image is shown in FIG. 3 .
- the first inversion image can be sharpened.
- the above-mentioned sharpening process on the first inversion image may specifically include the following steps S401 to S402.
- Step S401 performing Gaussian filtering on the first inverse image to obtain a Gaussian blurred image of the first inverse image.
- the above-mentioned Gaussian filter processing is an image blurring algorithm, which can make each pixel in the output Gaussian blurred image be the corresponding pixel on the original image and the surrounding pixels based on the Gaussian template (convolution kernel). weighted sum of .
- the present application does not limit the specific manner of Gaussian filtering, and in some implementation manners of the present application, bilateral filtering may be used. More specifically, it can be realized by the bilateral filter function provided by OpenCV, wherein the parameter kernel size of the bilateral filter function can be set to 11, that is, the size of the Gaussian template (convolution kernel) can be 11; the parameter sigmaColor and parameter of the bilateral filter function sigmaSpace can be set to 0, that is, the standard deviation of the color space and the standard deviation of the coordinate space are both 0.
- Step S402 weighting the pixel values of each second pixel in the first inversion image and the pixel values of the pixels at the same position as each second pixel in the Gaussian blurred image of the first inversion image to obtain the second Sharpen the image.
- the product of the pixel value of each second pixel point in the first inversion image and the first weight value may be calculated, and the sum of the values of the Gaussian blurred image of the inversion image and each second pixel point in the inversion image may be calculated.
- the product of the pixel value of the pixel at the same position of the pixel and the second weight value, and then the product of the pixel value of each second pixel in the first inversion image and the first weight value and the Gaussian blur of the first inversion image The second sharpened image is obtained by adding the product of the pixel value of the pixel at the same position as each second pixel in the image and the second weight value.
- the pixel value of a certain pixel in the second sharpened image is the product of the pixel value of the pixel at the same position in the first inversion image and the first weight value, plus the pixel at the same position in the Gaussian blurred image The sum of the product of the point's pixel value and the second weight value.
- the specific values of the above-mentioned first weight value and the second weight value can be adjusted according to actual conditions.
- the above-mentioned first weight value may be 2, and the second weight value may be -1.
- FIG. 5 shows a second sharpened image obtained after sharpening the first inverse image shown in FIG. 3 .
- the above-mentioned terminal may also directly acquire the original image obtained by shooting the handwriting tablet, perform sharpening processing on the original image, and use the first sharpened image obtained after the sharpening processing as the to-be-processed image. image.
- the above-mentioned terminal can select the sharpened image processed by one of the aforementioned two methods as the character to be processed based on the material of the handwriting board and the color of the characters on the handwriting board image.
- the camera may capture the background other than the tablet into the original image when shooting the tablet, that is, only part of the pixel area in the original image is the pixel area corresponding to the tablet. Therefore, in order to facilitate subsequent processing and avoid noise in the extracted characters, in some implementations of the present application, after acquiring the original image captured by the handwriting tablet, image recognition can be performed on the original image to obtain the original The pixel area corresponding to the handwriting board in the image, and then perform perspective change processing on the pixel area corresponding to the handwriting board to obtain the handwriting board image.
- the above-mentioned terminal can also obtain the original image obtained by taking pictures of the handwriting board; perform image recognition on the original image to obtain the pixel area corresponding to the handwriting board in the original image; The perspective change processing is performed on the corresponding pixel area to obtain the handwriting board image; the handwriting board image is sharpened, and the third sharpened image obtained after the sharpening processing is used as the image to be processed.
- the present application does not limit the specific manner of image recognition.
- the above-mentioned terminal may input the original image into a pre-trained handwriting board recognition model, and the handwriting board recognition model outputs the pixel area corresponding to the handwriting board in the original image.
- the above-mentioned tablet recognition model may be a YOLO model.
- the training process of the handwriting tablet recognition model may include: acquiring a sample image set, which includes a plurality of sample original images obtained by shooting the handwriting tablet.
- the staff can pre-mark the pixel area corresponding to the handwriting board in each original original image.
- select the target training samples from the sample image set input each target training sample into the network model to be trained, obtain the pixel area corresponding to the handwriting board output by the network model to be trained, and based on the pre-marked handwriting
- the pixel area corresponding to the board, and the accuracy rate of the network model to be trained is counted.
- the accuracy rate of the network model to be trained is less than the accuracy rate threshold, adjust the parameters in the network model to be trained, and re-execute the step of selecting the target training sample from the sample image set and subsequent steps until the accuracy of the network model to be trained
- the accuracy rate is greater than or equal to the accuracy threshold, and the tablet recognition model is obtained.
- the above-mentioned terminal can obtain the pixel area corresponding to the handwriting board in the original image by using the trained handwriting board recognition model.
- the terminal may perform perspective change processing on the pixel area corresponding to the tablet to obtain the image of the tablet.
- the perspective change processing refers to projecting the pixel area corresponding to the tablet into a new viewing plane to obtain the image of the tablet, which can realize the correction of the pixel area corresponding to the tablet in the original image and avoid the problem of the tablet area in the original image.
- the interference of external information on the image content extraction unit is not limited to.
- Step S102 performing high-contrast preserving processing on the image to be processed to obtain a high-contrast image of the image to be processed.
- the terminal since there is a certain difference in pixel value between the pixel area corresponding to the character in the character image to be processed and the corresponding pixel area other than the character, the terminal can highlight the character in the character image to be processed through high-contrast preservation processing. boundary information.
- the above-mentioned high-contrast preserving processing of the character image to be processed may specifically include: performing Gaussian filter processing on the character image to be processed to obtain a Gaussian blurred image of the character image to be processed, and then, a certain character image to be processed The pixel at the position, based on the pixel value of the pixel, the pixel value of the pixel at the same position as the pixel in the Gaussian blur image, and the set pixel value, determine the pixel at the same position as the pixel in the high-contrast image The pixel value of the point.
- the set pixel value can be adjusted according to the actual situation, and in some embodiments of the present application, the set pixel value can be 127.
- the pixel value of a certain pixel in the high-contrast image is equal to the pixel value of the pixel at the same position in the character image to be processed minus the pixel value of the pixel at the same position in the Gaussian blurred image, and then the obtained difference is added to The value obtained by setting the pixel value.
- FIG. 6 shows a high-contrast image obtained after performing high-contrast preserving processing on the image to be processed shown in FIG. 5 .
- the Gaussian blurred image obtained by smoothing the image to be processed can be mixed with the high-frequency image to be processed through high-contrast preservation processing, and the edge information in the image to be processed can be preserved, that is, the image to be processed can be highlighted. Boundary information of characters in a character image.
- Step S103 image fusion is performed on the image to be processed and the high-contrast image to obtain a fusion image.
- the above-mentioned image fusion refers to adding the pixel value of a certain pixel in the character image to be processed to the pixel value of the pixel at the same position as the pixel in the high-contrast image to obtain The pixel value of the pixel at the same position as the point.
- Step S104 performing linear light enhancement processing on the fused image to obtain a linear light enhanced image.
- the above-mentioned linear light enhancement processing specifically includes: normalizing each third pixel point in the fused image to obtain the first normalized pixel value corresponding to each third pixel point;
- the linear light value of the four pixels add the first normalized pixel value of each fourth pixel in the fused image to the corresponding linear light value to obtain a linear light enhanced image.
- each of the fourth pixel points is a third pixel point of each third pixel point whose first normalized pixel value is within a preset value range.
- the linear light value of each fourth pixel in the above-mentioned fourth pixels may be based on its first normalized pixel value and the pixel at the same position in the high-contrast image The second normalized pixel value computes the resulting linear light value. This linear light value can be used to enhance the contrast of the fused image.
- the above terminal may normalize the pixel values of each third pixel point, for example, may divide the pixel value of each third pixel point by 255 to obtain the first normalized pixel value corresponding to each third pixel point , the first normalized pixel values are all within [0, 1].
- the terminal can also normalize the high-contrast image to obtain the second normalized pixel value of each pixel in the high-contrast image, and based on the first
- the first normalized pixel value corresponding to the four pixels and the second normalized pixel value corresponding to the pixel at the same position in the high-contrast image are used to calculate the linear light value corresponding to the fourth pixel.
- the preset numerical range may be selected according to actual conditions. In some embodiments of the present application, the preset numerical range may be a value other than 0.5.
- its corresponding linear light value is equal to its first normalized pixel value, minus the pixel at the same position in the high-contrast image The product of the corresponding second normalized pixel value and 2, and then subtract 1 from the obtained difference. It can be understood that the obtained linear light value is also a normalized value.
- the first normalized pixel value of each fourth pixel in the fused image can be added to the corresponding linear light value to obtain the corresponding The third normalized pixel value, and then numerically verifying the third normalized pixel value corresponding to each of the fourth pixel points.
- the verification result of numerical verification is that the third normalized pixel value corresponding to a certain fourth pixel is greater than 1, set the first pixel value of the first pixel to 1; if the verification of numerical verification If the result is that the third normalized pixel value corresponding to a fourth pixel is less than 0, set the first pixel value of the first pixel to 0; if the verification result of the numerical verification is a fourth pixel If the third normalized pixel value corresponding to the point is greater than or equal to 0 and less than or equal to 1, then the corresponding third normalized pixel value is retained. Therefore, according to the verification result of the value verification, the above-mentioned terminal can determine the fourth normalized pixel values corresponding to the fourth pixel points to obtain the linear light-enhanced image.
- FIG. 7 shows a linear light-enhanced image obtained based on the fused image obtained by performing image fusion on the image to be processed shown in FIG. 5 and the high-contrast image shown in FIG. 6 .
- the difference in pixel values between the pixel area corresponding to the character and other pixel points can be enlarged, so that the character corresponding to the character image in the character image to be processed Pixel areas are enhanced.
- Step S105 taking the first pixel in the linear light-enhanced image whose pixel value is within the preset pixel value range as the image content of the image to be processed.
- the preset pixel value range refers to the range where the pixel values of the pixel points corresponding to the image content are located.
- the pixel value of a first pixel in the linear light enhanced image is within the preset pixel value range, it means that the first pixel belongs to the pixel corresponding to the image content, and if the linear light If the pixel value of a first pixel in the enhanced image is outside the preset pixel value range, it means that the first pixel does not belong to the pixel corresponding to the image content.
- the above-mentioned terminal can traverse each first pixel point, and if the pixel value of a certain first pixel point is outside the preset pixel value range, the pixel value of the first pixel point Set it to 0 to remove the pixel, if the pixel value of a first pixel is within the preset pixel value range, then keep the pixel value of the first pixel. After traversing all the first pixels in the linear light-enhanced image, the first pixels within the preset pixel value range can be used as the image content of the image to be processed.
- FIG. 8 shows the image content after processing from the linear light enhanced image shown in FIG. 7 .
- the above preset pixel value range can be adjusted according to the actual situation.
- the preset pixel value range may be determined based on a large number of histograms, and each histogram counts the pixel values of the first pixel points in different linear light-enhanced images.
- the preset pixel value range may be set to be greater than or equal to 230, that is, the normalized pixel value corresponding to the preset pixel value range is greater than or equal to 0.9.
- a high-contrast image of the image to be processed is obtained, and then performing image fusion on the image to be processed and the high-contrast image to obtain a fused image, Then perform linear light enhancement processing on the fused image to obtain a linear light enhanced image, which can enhance the pixel value difference between the pixel area corresponding to the image content in the image to be processed and the pixel area corresponding to the non-image content, and strengthen the information display of the image content in the image.
- the integrity of the image content extraction is higher.
- the image content extraction method provided by the present application can achieve the effect of real-time and batch processing.
- the method for extracting the above image content may further include: superimposing the image content of the character image to be processed on the target background to obtain the target image, and displaying the target image.
- the target background may be set according to user requirements.
- the target background may be a background picture with a pixel value of 255.
- FIG. 9 shows a target image obtained by superimposing the content of the image shown in FIG. 8 onto a background picture with a pixel value of 255.
- the terminal can obtain the target image by superimposing the image content of the image to be processed on the target background.
- the color difference between the target background and the image content is relatively large. Therefore, the image content in the obtained target image will be further highlighted.
- the terminal can enable the user to better watch the image content.
- FIG. 10 is a schematic structural diagram of an image content extraction device 1000 provided in an embodiment of the present application, and the image content extraction device 1000 is configured on a terminal.
- the image content extraction device 1000 may include:
- An image acquisition unit 1001 configured to acquire an image to be processed
- a high-contrast preserving unit 1002 configured to perform high-contrast preserving processing on the image to be processed to obtain a high-contrast image of the image to be processed;
- An image fusion unit 1003, configured to perform image fusion on the image to be processed and the high-contrast image to obtain a fusion image
- a linear light enhancement unit 1004 configured to perform linear light enhancement processing on the fused image to obtain a linear light enhanced image
- the image content extraction unit 1005 is configured to use the first pixel in the linear light-enhanced image whose pixel value is within a preset pixel value range as the image content of the image to be processed.
- the above-mentioned image acquiring unit 1001 may also be specifically configured to: acquire the original image obtained by shooting the handwriting tablet, perform sharpening processing on the original image, and sharpen the A sharpened image is used as the image to be processed.
- the above-mentioned image acquisition unit 1001 may also be specifically configured to: acquire the original image obtained by shooting the handwriting tablet; perform inversion processing on the original image to obtain the first inverse image of the original image Phase image: performing sharpening processing on the first inverse phase image, and using a second sharpened image obtained after the sharpening processing as the image to be processed.
- the above-mentioned image acquisition unit 1001 may also be specifically configured to: perform Gaussian filtering on the first inverse image to obtain a Gaussian blurred image of the first inverse image; Perform weighting processing on the pixel values of the second pixels in the first inversion image and the pixel values of the pixels at the same position as the second pixels in the Gaussian blur image of the first inversion image to obtain the first 2. Sharpen the image.
- the above-mentioned image acquisition unit 1001 may also be specifically configured to: acquire the original image obtained by photographing the handwriting tablet; perform image recognition on the original image to obtain the handwriting tablet in the original image Corresponding pixel area; Perspective change processing is performed on the pixel area corresponding to the handwriting board to obtain a handwriting board image; Sharpening is performed on the handwriting board image, and the third sharpened image obtained after the sharpening process is used as the obtained Describe the image to be processed.
- the above-mentioned image acquisition unit 1001 may also be specifically configured to: acquire the original image obtained by photographing the handwriting tablet; perform image recognition on the original image to obtain the handwriting tablet in the original image Corresponding pixel area; Perspective change processing is performed on the pixel area corresponding to the tablet to obtain the image of the tablet; Phase inversion processing is performed on the image of the tablet to obtain a second inversion image of the image of the tablet; The second inverse image is sharpened, and the fourth sharpened image obtained after sharpening is used as the image to be processed.
- the linear light value of each fourth pixel in the above-mentioned fourth pixels is based on the first normalized pixel value and the same position in the high-contrast image The linear light value obtained by calculating the second normalized pixel value of the pixel.
- the above-mentioned linear light enhancement unit 1004 may also be specifically configured to: add the first normalized pixel values of the fourth pixel points in the fused image to the corresponding linear light values respectively , to obtain the third normalized pixel values respectively corresponding to the respective fourth pixel points; perform numerical verification on the third normalized pixel values corresponding to the respective fourth pixel points, and verify according to the numerical values Determine the fourth normalized pixel values corresponding to the respective fourth pixel points according to the verification results, and obtain the linear light-enhanced image.
- FIG. 11 it is a schematic diagram of a terminal provided in the embodiment of the present application.
- the terminal may be a handwriting tablet with a certain processing capability, a terminal device connected to the handwriting tablet, or other terminal equipment that needs to extract characters in the image.
- the terminal 11 may include: a processor 110, a memory 111, and a computer program 112 stored in the memory 111 and operable on the processor 110, such as an image content extraction program.
- the processor 110 executes the computer program 112 , the steps in the above-mentioned embodiments of the method for extracting image content are implemented, such as steps S101 to S105 shown in FIG. 1 .
- the processor 110 executes the computer program 112
- it realizes the functions of the modules/units in the above-mentioned device embodiments, such as the image acquisition unit 1001, the high-contrast preservation unit 1002, the image fusion unit 1003 shown in FIG. 10 , A linear light enhancement unit 1004 and an image content extraction unit 1005 .
- the computer program can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 111 and executed by the processor 110 to complete the present application.
- the one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal.
- the computer program can be divided into: an image acquisition unit, a high contrast preservation unit, an image fusion unit, a linear light enhancement unit and an image content extraction unit.
- each unit is as follows: the image acquisition unit is used to acquire the image to be processed; the high-contrast preservation unit is used to perform high-contrast preservation processing on the image to be processed to obtain a high-contrast image of the image to be processed; the image fusion unit , for image fusion of the image to be processed and the high-contrast image to obtain a fused image; a linear light enhancement unit for performing linear light enhancement processing on the fused image to obtain a linear light enhanced image; image content extraction A unit, configured to use the first pixel in the linear light-enhanced image whose pixel value is within a preset pixel value range as the image content of the image to be processed.
- the terminal may include, but not limited to, a processor 110 and a memory 111 .
- FIG. 11 is only an example of a terminal, and does not constitute a limitation to the terminal. It may include more or less components than those shown in the figure, or combine certain components, or different components, such as the Terminals may also include input and output devices, network access devices, buses, and so on.
- the so-called processor 110 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
- the storage 111 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal.
- the memory 111 can also be an external storage device of the terminal, such as a plug-in hard disk equipped on the terminal, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card) etc.
- the memory 111 may also include both an internal storage unit of the terminal and an external storage device.
- the memory 111 is used to store the computer program and other programs and data required by the terminal.
- the memory 111 can also be used to temporarily store data that has been output or will be output.
- the disclosed device/terminal and method may be implemented in other ways.
- the device/terminal embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs.
- the computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized.
- the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
- the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (Read-Only Memory, ROM) , random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
- ROM Read-Only Memory
- RAM Random Access Memory
- electric carrier signal telecommunication signal and software distribution medium, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- Image Processing (AREA)
Abstract
Description
Claims (10)
- 一种图像内容的提取方法,其特征在于,包括:获取待处理图像;对所述待处理图像进行高反差保留处理,得到所述待处理图像的高反差图像;对所述待处理图像和所述高反差图像进行图像融合,得到融合图像;对所述融合图像进行线性光增强处理,得到线性光增强图像;将所述线性光增强图像中像素值在预设像素值范围内的第一像素点作为所述待处理图像的图像内容。
- 如权利要求1所述的图像内容的提取方法,其特征在于,所述获取待处理图像,包括:获取对手写板进行拍摄得到的原始图像,对所述原始图像进行锐化处理,并将锐化处理后得到的第一锐化图像作为所述待处理图像;或者,获取对手写板进行拍摄得到的原始图像;对所述原始图像进行反相处理,得到所述原始图像的第一反相图;对所述第一反相图进行锐化处理,并将锐化处理后得到的第二锐化图像作为所述待处理图像。
- 如权利要求2所述的图像内容的提取方法,其特征在于,所述对所述第一反相图进行锐化处理,包括:对所述第一反相图进行高斯滤波处理,得到所述第一反相图的高斯模糊图像;将所述第一反相图中各个第二像素点的像素值和所述第一反相图的高斯模糊图像中与所述各个第二像素点相同位置的像素点的像素值进行加权处理,得到所述第二锐化图像。
- 如权利要求1所述的图像内容的提取方法,其特征在于,所述获取待处理图像,还包括:获取对手写板进行拍摄得到的原始图像;对所述原始图像进行图像识别,得到所述原始图像中所述手写板对应的像素区域;对所述手写板对应的像素区域进行透视变化处理,得到手写板图像;对所述手写板图像进行锐化处理,并将锐化处理后得到的第三锐化图像作为所述待处理图像;或者,获取对手写板进行拍摄得到的原始图像;对所述原始图像进行图像识别,得到所述原始图像中所述手写板对应的像素区域;对所述手写板对应的像素区域进行透视变化处理,得到手写板图像;对所述手写板图像进行反相处理,得到所述手写板图像的第二反相图;对所述第二反相图进行锐化处理,并将锐化处理后得到的第四锐化图像作为所述待处理图像。
- 如权利要求1至4任意一项所述的图像内容的提取方法,其特征在于,所述对所述融合图像进行线性光增强处理,得到线性光增强图像,包括:对所述融合图像中各个第三像素点进行归一化,得到所述各个第三像素点对应的第一归一化像素值;确定各个第四像素点的线性光值,所述各个第四像素点中的每个第四像素点为所述各个第三像素点中所述第一归一化像素值在预设数值范围内的第三像素点;将融合图像中所述各个第四像素点的第一归一化像素值分别和与其对应的线性光值相加,得到所述线性光增强图像。
- 如权利要求5所述的图像内容的提取方法,其特征在于,所述各个第四像素点中的每个第四像素点的线性光值为基于其第一归一化像素值,以及所述高反差图像中与其相同位置的像素点的第二归一化像素值计算得到的线性光值。
- 如权利要求5所述的图像内容的提取方法,其特征在于,所述将融合图像中所述各个第四像素点的第一归一化像素值分别和与其对应的线性光值相加,得到所述线性光增强图像,包括:将融合图像中所述各个第四像素点的第一归一化像素值分别和与其对应的线性光值相加,得到所述各个第四像素点分别对应的第三归一化像素值;对所述各个第四像素点分别对应的第三归一化像素值进行数值校验,并根据所述数值校验的校验结果确定所述各个第四像素点分别对应的第四归一化像素值,得到所述线性光增强图像。
- 一种图像内容的提取装置,其特征在于,包括:图像获取单元,用于获取待处理图像;高反差保留单元,用于对所述待处理图像进行高反差保留处理,得到所述待处理图像的高反差图像;图像融合单元,用于对所述待处理图像和所述高反差图像进行图像融合,得到融合图像;线性光增强单元,用于对所述融合图像进行线性光增强处理,得到线性光增强图像;图像内容提取单元,用于将所述线性光增强图像中像素值在预设像素值范围内的第一像素点作为所述待处理图像的图像内容。
- 一种终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述方法的步骤。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一 项所述方法的步骤。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP21953917.8A EP4345741B1 (en) | 2021-08-16 | 2021-09-22 | Image content extraction method and apparatus, and terminal and storage medium |
| US18/397,979 US12333683B2 (en) | 2021-08-16 | 2023-12-27 | Image content extraction method and apparatus, terminal, and storage medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110938232.1A CN113628196B (zh) | 2021-08-16 | 2021-08-16 | 一种图像内容的提取方法、装置、终端和存储介质 |
| CN202110938232.1 | 2021-08-16 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/397,979 Continuation US12333683B2 (en) | 2021-08-16 | 2023-12-27 | Image content extraction method and apparatus, terminal, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023019681A1 true WO2023019681A1 (zh) | 2023-02-23 |
Family
ID=78385733
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/119724 Ceased WO2023019681A1 (zh) | 2021-08-16 | 2021-09-22 | 一种图像内容的提取方法、装置、终端和存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12333683B2 (zh) |
| EP (1) | EP4345741B1 (zh) |
| CN (1) | CN113628196B (zh) |
| WO (1) | WO2023019681A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113628196B (zh) | 2021-08-16 | 2025-02-18 | 广东小天才科技有限公司 | 一种图像内容的提取方法、装置、终端和存储介质 |
| CN113971645A (zh) * | 2021-11-17 | 2022-01-25 | 广州朗国电子科技股份有限公司 | 一种图像宽动态增强方法及装置 |
| CN114219739A (zh) * | 2021-12-15 | 2022-03-22 | 重庆米弘科技有限公司 | 一种高反差磨皮算法 |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050063586A1 (en) * | 2003-08-01 | 2005-03-24 | Microsoft Corporation | Image processing using linear light values and other image processing improvements |
| CN102881011A (zh) * | 2012-08-31 | 2013-01-16 | 北京航空航天大学 | 基于区域分割的肖像光照迁移方法 |
| CN107566740A (zh) * | 2017-10-18 | 2018-01-09 | 维沃移动通信有限公司 | 一种图像处理方法及移动终端 |
| CN109461186A (zh) * | 2018-10-15 | 2019-03-12 | Oppo广东移动通信有限公司 | 图像处理方法、装置、计算机可读存储介质和电子设备 |
| CN110675336A (zh) * | 2019-08-29 | 2020-01-10 | 苏州千视通视觉科技股份有限公司 | 一种低照度图像增强方法及装置 |
| US10950305B1 (en) * | 2018-11-02 | 2021-03-16 | Facebook Technologies, Llc | Selective pixel output |
| CN112508816A (zh) * | 2020-12-09 | 2021-03-16 | 中国电子科技集团公司第三研究所 | 一种红外图像锐化方法、锐化处理系统及终端设备 |
Family Cites Families (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8064716B2 (en) * | 2005-11-08 | 2011-11-22 | Soundstarts, Inc. | Apparatus and methods for enhancing digital images |
| JP6152635B2 (ja) * | 2012-11-08 | 2017-06-28 | ソニー株式会社 | 画像処理装置および方法、並びに、プログラム |
| US9646366B2 (en) * | 2012-11-30 | 2017-05-09 | Change Healthcare Llc | Method and apparatus for enhancing medical images |
| US8824752B1 (en) * | 2013-03-15 | 2014-09-02 | Heartflow, Inc. | Methods and systems for assessing image quality in modeling of patient anatomic or blood flow characteristics |
| WO2014167831A1 (ja) * | 2013-04-08 | 2014-10-16 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | メイクアップ塗材が塗布された状態を仮想的に再現することができる画像処理装置、画像処理方法、プログラム |
| KR102618590B1 (ko) * | 2016-05-12 | 2023-12-28 | 삼성전자주식회사 | 이미지의 광원을 판단하는 방법 및 이를 수행하는 전자 장치 |
| CN106228516B (zh) * | 2016-07-14 | 2019-07-19 | 北京字节跳动网络技术有限公司 | 一种高自然度的实时美颜方法、装置 |
| US10523856B2 (en) * | 2016-09-08 | 2019-12-31 | Samsung Electronics Co., Ltd. | Method and electronic device for producing composite image |
| CN108289176B (zh) * | 2018-02-11 | 2020-05-15 | 广东小天才科技有限公司 | 一种拍照搜题方法、搜题装置及终端设备 |
| CN109272459B (zh) * | 2018-08-20 | 2020-12-01 | Oppo广东移动通信有限公司 | 图像处理方法、装置、存储介质及电子设备 |
| CN109190632A (zh) * | 2018-08-23 | 2019-01-11 | 甘肃政法学院 | 一种古籍文档图像的二值化方法 |
| CN110163211B (zh) * | 2018-09-06 | 2023-02-28 | 腾讯科技(深圳)有限公司 | 一种图像识别方法、装置和存储介质 |
| CN111027556B (zh) * | 2019-03-11 | 2023-12-22 | 广东小天才科技有限公司 | 一种基于图像预处理的搜题方法及学习设备 |
| CN110598560A (zh) * | 2019-08-15 | 2019-12-20 | 重庆特斯联智慧科技股份有限公司 | 基于神经网络增强的夜间监控识别方法和系统 |
| CN111915478B (zh) * | 2020-07-14 | 2023-06-23 | 厦门真景科技有限公司 | 一种基于保边模糊的美颜方法、装置、设备及计算机可读存储介质 |
| CN112215768B (zh) * | 2020-09-30 | 2025-01-24 | 广州虎牙科技有限公司 | 图像清晰度提升方法、装置、电子设备及可读存储介质 |
| CN112967207B (zh) * | 2021-04-23 | 2024-04-12 | 北京恒安嘉新安全技术有限公司 | 一种图像处理方法、装置、电子设备及存储介质 |
| CN113628196B (zh) | 2021-08-16 | 2025-02-18 | 广东小天才科技有限公司 | 一种图像内容的提取方法、装置、终端和存储介质 |
-
2021
- 2021-08-16 CN CN202110938232.1A patent/CN113628196B/zh active Active
- 2021-09-22 EP EP21953917.8A patent/EP4345741B1/en active Active
- 2021-09-22 WO PCT/CN2021/119724 patent/WO2023019681A1/zh not_active Ceased
-
2023
- 2023-12-27 US US18/397,979 patent/US12333683B2/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050063586A1 (en) * | 2003-08-01 | 2005-03-24 | Microsoft Corporation | Image processing using linear light values and other image processing improvements |
| CN102881011A (zh) * | 2012-08-31 | 2013-01-16 | 北京航空航天大学 | 基于区域分割的肖像光照迁移方法 |
| CN107566740A (zh) * | 2017-10-18 | 2018-01-09 | 维沃移动通信有限公司 | 一种图像处理方法及移动终端 |
| CN109461186A (zh) * | 2018-10-15 | 2019-03-12 | Oppo广东移动通信有限公司 | 图像处理方法、装置、计算机可读存储介质和电子设备 |
| US10950305B1 (en) * | 2018-11-02 | 2021-03-16 | Facebook Technologies, Llc | Selective pixel output |
| CN110675336A (zh) * | 2019-08-29 | 2020-01-10 | 苏州千视通视觉科技股份有限公司 | 一种低照度图像增强方法及装置 |
| CN112508816A (zh) * | 2020-12-09 | 2021-03-16 | 中国电子科技集团公司第三研究所 | 一种红外图像锐化方法、锐化处理系统及终端设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4345741A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113628196A (zh) | 2021-11-09 |
| CN113628196B (zh) | 2025-02-18 |
| US12333683B2 (en) | 2025-06-17 |
| EP4345741A1 (en) | 2024-04-03 |
| EP4345741B1 (en) | 2025-11-12 |
| EP4345741A4 (en) | 2024-10-02 |
| EP4345741C0 (en) | 2025-11-12 |
| US20240127404A1 (en) | 2024-04-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Ignatov et al. | Dslr-quality photos on mobile devices with deep convolutional networks | |
| CN108154105B (zh) | 水下生物检测与识别方法、装置、服务器及终端设备 | |
| CN111199197B (zh) | 一种人脸识别的图像提取方法及处理设备 | |
| US20200019760A1 (en) | Three-dimensional living-body face detection method, face authentication recognition method, and apparatuses | |
| US12333683B2 (en) | Image content extraction method and apparatus, terminal, and storage medium | |
| CN109064504B (zh) | 图像处理方法、装置和计算机存储介质 | |
| CN112348765A (zh) | 数据增强方法、装置、计算机可读存储介质及终端设备 | |
| CN109584198B (zh) | 一种人脸图像质量评价方法、装置及计算机可读存储介质 | |
| CN111915497B (zh) | 一种图像黑白增强方法、装置、电子设备和可读存储介质 | |
| CN110335216A (zh) | 图像处理方法、图像处理装置、终端设备及可读存储介质 | |
| CN112785572B (zh) | 图像质量评估方法、装置以及计算机可读存储介质 | |
| CN109934781B (zh) | 图像处理方法、装置、终端设备及计算机可读存储介质 | |
| WO2022233185A1 (zh) | 一种图像滤波方法、装置、终端和计算机可读存储介质 | |
| CN108289176B (zh) | 一种拍照搜题方法、搜题装置及终端设备 | |
| CN111192241A (zh) | 一种人脸图像的质量评估方法、装置及计算机存储介质 | |
| CN113409375A (zh) | 图像处理方法、装置以及非易失性存储介质 | |
| CN116883385B (zh) | 一种红外人脸图像质量评价的方法及装置 | |
| CN118710586A (zh) | 电路板的缺陷检测方法及装置、存储介质、电子设备 | |
| CN110111347B (zh) | 图像标志提取方法、装置及存储介质 | |
| CN108805838A (zh) | 一种图像处理方法、移动终端及计算机可读存储介质 | |
| CN110855876B (zh) | 一种图像处理方法、终端及计算机存储介质 | |
| CN116958600A (zh) | 相似度计算优化方法、相似度计算优化装置以及存储介质 | |
| CN114255268A (zh) | 视差图处理、深度学习模型训练方法及相关设备 | |
| CN111311610A (zh) | 图像分割的方法及终端设备 | |
| CN115689947A (zh) | 一种图像锐化的方法、系统、电子装置和存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21953917 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2021953917 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2021953917 Country of ref document: EP Effective date: 20231228 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2021953917 Country of ref document: EP |