CN113596425B - Image processing method and device for ink screen terminal, storage medium and intelligent device - Google Patents

Image processing method and device for ink screen terminal, storage medium and intelligent device Download PDF

Info

Publication number
CN113596425B
CN113596425B CN202110684548.2A CN202110684548A CN113596425B CN 113596425 B CN113596425 B CN 113596425B CN 202110684548 A CN202110684548 A CN 202110684548A CN 113596425 B CN113596425 B CN 113596425B
Authority
CN
China
Prior art keywords
image
ink screen
pixel
background
color
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.)
Active
Application number
CN202110684548.2A
Other languages
Chinese (zh)
Other versions
CN113596425A (en
Inventor
邵清
戴志涛
袁健
郑勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Waterward Information Co Ltd
Original Assignee
Shenzhen Waterward Information Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Waterward Information Co Ltd filed Critical Shenzhen Waterward Information Co Ltd
Priority to CN202110684548.2A priority Critical patent/CN113596425B/en
Priority to PCT/CN2021/110963 priority patent/WO2022267186A1/en
Publication of CN113596425A publication Critical patent/CN113596425A/en
Application granted granted Critical
Publication of CN113596425B publication Critical patent/CN113596425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/70Circuits for processing colour signals for colour killing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an image processing method and device of an ink screen terminal, a storage medium and intelligent equipment; the method comprises the following steps: acquiring an initial image; preprocessing the initial image in a graying way to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal; and sending the processed image to a designated color display terminal. By preprocessing the initial image, a processed image with the display effect of the color display terminal being the same as or similar to that of the ink screen terminal is obtained, and the problem that the difference between an image displayed in the ink screen panel and an image displayed by the color display terminal is large in the prior art is solved.

Description

Image processing method and device for ink screen terminal, storage medium and intelligent device
Technical Field
The invention relates to the technical field of image processing, in particular to an image processing method and device of an ink screen terminal, a storage medium and intelligent equipment.
Background
In order to conveniently view, process or transmit data in the existing life, for example, teachers' homework inspection and correction, a tablet personal computer is usually applied, but the eyes are damaged when the users see a highlight screen for a long time, if the teachers, students and other groups arrange and complete homework through the tablet personal computer, the users usually need to face the screen for a long time, the users can view the data through an ink screen tablet to protect the eyesight, in order to ensure the accuracy of information transmission, the teachers and the students usually need to see the content as consistent as possible, but if the image displayed in the ink screen tablet is transmitted to other color display terminals, the content which cannot be displayed in part of the ink screen tablet is easy to appear in other color display terminals, and the situation that the difference between the image displayed in the ink screen tablet and the image displayed by the color display terminal is large is caused.
Disclosure of Invention
The invention mainly aims to provide an image processing method and device of an ink screen terminal, a storage medium and intelligent equipment, which can solve the problem that the difference between an image displayed in an ink screen panel and an image displayed by a color display terminal is larger in the prior art.
The invention provides an image processing method of an ink screen terminal, which comprises the following steps:
acquiring an initial image;
graying the initial image to obtain a processed image with the same or similar display effect on the color display terminal and the ink screen terminal;
and sending the processed image to a designated color display terminal.
Further, the step of acquiring an initial image comprises:
acquiring a plurality of images obtained by shooting a shot object through a camera by utilizing a multi-frame continuous shooting technology;
caching a plurality of images in an image receiving cache region;
performing pixel traversal on each image, and identifying each pixel in each image;
comparing each pixel at the same position in the plurality of images one by one, and identifying the noise point of each image;
carrying out noise reduction processing on each image;
and splicing the images after the noise reduction processing into a frame of initial image.
Further, the step of buffering the plurality of images into the image receiving buffer comprises:
and caching a plurality of images in a set time to an image receiving cache region.
Further, the step of graying the preprocessed initial image to obtain the processed image with the same or similar display effect on the color display terminal and the ink screen terminal comprises the following steps:
recognizing a text range, an object outline and a background in the initial image;
and performing gray processing on the character range, the object outline and the background respectively to obtain a processed image with the display effect on the color display terminal being the same as or similar to that on the ink screen terminal.
Further, the step of identifying the text range, the object outline and the background in the initial image comprises:
and identifying the text range, the object outline and the background in the initial image in a pixel traversal mode.
Further, the step of performing graying processing on the text range, the object outline and the background respectively comprises the following steps:
acquiring an R value, a G value and a B value of each pixel in an object outline of a preset area, wherein the preset area is the object outline, a character range or a background;
substituting the R value, the G value and the B value of the pixels in each preset region into an image color conversion formula Gray = X R + YG +/-ZB to obtain Gray corresponding to the pixels in each preset region, wherein X, Y and Z are preset values respectively;
performing Gray level conversion on pixels in each object contour one by one to obtain a preset area after Gray level processing, wherein RGB of a pixel is (Gray, gray and Gray), and Gray level conversion is performed when RGB of a certain pixel meets the following conditions, so that the pixel is presented to a corresponding color:
r = G = B <255 appears gray
R = G = B =255 appears white
R = G = B =0 appears black.
Further, when the preset area is a text range, after the step of performing gray scale conversion on the pixels in each preset area one by one to obtain the preset area after the gray scale processing, the method includes:
carrying out binarization processing on the character background in the grayed character range to determine the pixels of the characters and the pixels of the character background in the grayed character range;
and adjusting the color of the pixel of the character according to the setting to obtain the character with the set color, wherein the color of the pixel of the character background is the same as that of the background.
Further, the step of performing binarization processing of the text background on the grayed text range to determine the pixels of the text and the pixels of the text background in the grayed text range includes:
calculating the average value of the gray values of all pixels in the grayed character range;
and comparing the gray value of each pixel with the average value, wherein the pixels smaller than or equal to the average value are pixels of characters, and the pixels larger than the average value are pixels of character backgrounds.
The invention also provides an image processing device of the ink screen terminal, which comprises:
the image acquisition module is used for acquiring an initial image;
the gray processing module is used for preprocessing the initial image to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal;
and the image transmission module is used for transmitting the processed image to a designated color display terminal.
The present invention further provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and the computer program is executed to implement the image processing method of the ink screen terminal.
The invention also provides an intelligent device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the image processing method of the ink screen terminal when executing the computer program.
According to the image processing method and device of the ink screen terminal, the storage medium and the intelligent device, the processed image with the display effect identical or similar to that of the ink screen terminal is obtained by preprocessing the initial image, and the problem that the difference between the image displayed in the ink screen panel and the image displayed by the color display terminal is large in the prior art is solved.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of an image processing method for an ink screen terminal according to the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an image processing apparatus of an ink screen terminal according to the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a storage medium according to the present invention;
fig. 4 is a schematic structural diagram of an embodiment of the smart device of the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As used herein, the singular forms "a", "an", "the" and "the" include plural referents unless the content clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, units, modules, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, an embodiment of an image processing method of an ink screen terminal according to the present invention includes the following steps:
s1, acquiring an initial image;
s2, graying the initial image to obtain a processed image with the same or similar display effect on the color display terminal and the ink screen terminal;
and S3, sending the processed image to a designated color display terminal.
In the step S1, the initial image may be obtained by selecting the clearest image from the multiple images, or may be obtained by synthesizing one image from the multiple images, and the initial image is clearer.
In the step S2, the operation is performed when the ink screen terminal is in the image transmission mode, the image transmission mode is a mode in which the ink screen terminal sends an image to another color display terminal, the ink screen terminal can be determined to be in the image transmission mode by selecting the image transmission mode, or the ink screen terminal can be in the image transmission mode by detecting that the ink screen terminal is wirelessly connected to another color display terminal and triggering, for example, by sending a confirmation signal to the wirelessly connected terminal, and then identifying whether there is a feedback signal representing that the ink screen is the ink screen, and if not, determining that the terminal is the color display terminal; it should be noted that the ink screen terminal may also be in a shooting mode relative to the image transmission mode, where the initial image is directly displayed by the display terminal when the ink screen terminal is in the shooting mode, and the initial image may be sent in the shooting mode when the image is sent to other ink screen terminals; in the processed image with the same or similar display effect of the color display terminal and the ink screen terminal, the same processed image means that the display effect of the processed image on the color display terminal is completely the same as the display effect of the processed image on the ink screen terminal; the similar processed image means that the display effect of the processed image on the color display terminal is not completely the same as the display effect of the processed image on the ink screen terminal, but the main characteristics are the same, for example, the display effect of the processed image on the color display terminal is different from the display effect of the processed image on the ink screen terminal only in the background color.
In the above step S3, the processed initial image is transmitted to another color display terminal by wireless transmission or wired transmission.
By preprocessing the initial image, a processed image with the same or similar display effect of the color display terminal and the ink screen terminal is obtained, and the problem that the difference between the image displayed in the ink screen panel and the image displayed by the color display terminal is large in the prior art is solved.
Further, the step S1 of acquiring an initial image includes:
s11, acquiring a plurality of images obtained by shooting a shot object through a camera by using a multi-frame continuous shooting technology;
s12, caching the plurality of images in an image receiving cache region;
s13, performing pixel traversal on each image, and identifying each pixel in each image;
s14, comparing each pixel at the same position in the plurality of images one by one, and identifying noise points of each image;
s15, carrying out noise reduction processing on each image;
and S16, splicing the images subjected to the noise reduction processing into a frame of initial image.
In step S11, the plurality of images are taken at the same angle with respect to the same subject.
In the step S12, the plurality of images may be stored into the image receiving buffer one by one according to the captured timestamps, which is in accordance with the image generation sequence, so that the images are not easily confused.
In step S13, the pixels in the image are identified by pixel traversal, i.e., in a traversal manner.
In the above steps S14-S15, noise (noise) mainly refers to the rough part of the image generated by CCD (CMOS) in the process of outputting light as a received signal, and also refers to the extraneous pixels that should not appear in the image, usually generated by electronic interference, and looks like the image is dirty and covered with some fine rough points; noise points can be determined by comparing each pixel of the plurality of images one by one, and each image is subjected to noise reduction treatment, wherein the noise reduction treatment can eliminate interference parts in the images and reserve parts for displaying image contents; the CCD is a semiconductor photosensitive Device, which is a Charge Coupled Device (CCD) with the english name; CMOS (Complementary Metal-Oxide Semiconductor) is a Semiconductor light-sensing element that can record light changes in a digital camera, as well as a CCD.
In the step S16, by stitching the pixels from different images into a complete initial image, the pixels of different clearest parts in different images can be stitched into a complete initial image, so that the complete initial image is clearer; in some embodiments, the clearest portion is the least noisy one of the same portions in the plurality of images.
Further, the step S12 of buffering the plurality of images in the image receiving buffer includes:
and S121, caching a plurality of images in set time to an image receiving cache region.
In the step S121, for example, 5S may be performed within a countdown setting time, and a plurality of identical pictures are continuously taken by the camera and placed in the image receiving buffer area, where the setting time may be set according to actual requirements, and the number of images may be conveniently controlled, so that the processing speed of the images is more controllable.
Further, the step S2 of graying the preprocessed initial image to obtain a processed image with a display effect on the color display terminal being the same as or similar to that of the ink screen terminal includes:
s21, recognizing a text range, an object outline and a background in the initial image;
and S22, performing graying processing on the character range, the object outline and the background respectively to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal.
In step S21, the color variation amounts in two adjacent setting ranges are compared with each other based on the color difference characteristics between the edge of the text range and the background and the color difference characteristics between the edge of the object outline and the background, and whether or not the setting ranges are on the boundary line is determined based on whether or not the color variation amounts exceed the threshold. If the color variation exceeds the threshold value, determining the set range of the color depth as a part of the pixel area corresponding to the boundary line, and then forming the boundary line by the continuous set ranges on the pixel area of the boundary line; comparing the shape enclosed by the boundary line with a preset character outline shape, and judging that the shape enclosed by the boundary line is a character range when the approximation degree reaches a set value; determining that the shape enclosed by the boundary line is the object contour if the degree of approximation is lower than a set value; the rest part outside the object outline and the character range is a background; for example, a boundary line is formed by a point where the color variation exceeds the threshold, and a range a surrounded by the boundary line may be a character or an object, and therefore, it is necessary to compare the boundary line with a preset character outline shape, and when the approximation degree reaches a set value, the range a is a character range.
In the step S22, graying the text range to obtain text with a set color, where the set color is black or white, graying the object contour to obtain a grayed object, and graying the background to obtain a background with the set color; when the image only comprises characters and a background, the characters and the background can be subjected to color mixing processing; when the image only comprises the object and the background, the object graying processing and the color mixing processing can be carried out on the image; when the image comprises characters, objects and a background, the character processing and the object graying processing can be carried out simultaneously; in some embodiments, the background is grayed, that is, the gray value of the pixel corresponding to the background is adjusted to the gray value corresponding to the set color.
Further, the step S21 of identifying the text range, the object contour and the background in the initial image includes:
and S211, recognizing the text range, the object outline and the background in the initial image in a pixel traversal mode.
In step S211, pixels in the initial image are identified in a pixel traversal manner, and then, according to a feature that a color difference between a pixel at an edge of a text range and at an edge of an object outline is large and a pixel of a background, whether a color variation of an adjacent pixel exceeds a threshold is compared to determine whether the pixel is on a boundary line, if the color variation exceeds the threshold, a pixel with a deep color is on the boundary line, a boundary line is formed by continuous pixels on the boundary line, and then a shape enclosed by the boundary line is compared with a preset text outline shape; when the approximation degree reaches a set value, judging that the shape enclosed by the boundary line is a character range; determining that the shape enclosed by the boundary line is the object contour if the approximation degree is lower than the set value; the rest part outside the outline and the text range of the object is a background.
Further, the step S22 of performing the graying process on the character range, the object outline, and the background, respectively, includes:
s221, obtaining an R value, a G value and a B value of each pixel in a preset area, wherein the preset area is an object outline, a character range or a background;
s222, substituting the R value, the G value and the B value of the pixels in each preset region into an image color conversion formula Gray = X R + YG +/-ZB to obtain Gray corresponding to the pixels in each preset region, wherein X, Y and Z are preset values respectively;
s223, performing Gray level conversion on the pixels in each preset area one by one to obtain a preset area after Gray level processing, where RGB of a pixel in the preset area is (Gray ), and Gray level conversion is performed when RGB of a certain pixel satisfies the following conditions, so that the pixel presents a corresponding color:
r = G = B <255 appears gray
R = G = B =255 appears white
R = G = B =0 appears black.
In step S221, set regions such as an object contour, a text range, and a background are obtained by pixel traversal, and an R value, a G value, and a B value of each pixel in the set regions are obtained at the same time; RGB is a color standard in the industry, which obtains various colors by changing three color channels of red (R), green (G) and blue (B) and superimposing them on each other, and this standard includes almost all colors that can be perceived by human vision, and is one of the most widely used color systems at present.
In step S222, gray, i.e., gray value, X, Y and Z are preset values, and may be set differently according to different applications, for example, an image color conversion formula Gray =0.299 r +0.114g ± 0.587B is obtained by summarizing human visual characteristics; floating point arithmetic: gray = 0.3R +0.59G ± 0.11B; integer arithmetic: gray = (0.3R +0.59G ± 0.11B)/100; and (3) displacement algorithm: gray = (0.77 × R +151G ± 28B) > >8; average value method: gray = (R + G + B)/3; taking green only: gray = G; in some embodiments, X, Y for object outline and X, Y and Z for text range may be different.
In step S223, R = G = B, and gray appears when the value is smaller than 255, and the larger the value is, the brighter it is.
Further, after step S22 of performing graying processing on the text range, the object outline, and the background to obtain a processed image having a display effect of the color display terminal that is the same as or similar to that of the ink screen terminal, the method includes:
and S23, adjusting the processed image according to a preset mode.
In the step S23, a suitable algorithm is selected by a floating point algorithm, a shift algorithm, an average value method, or the like to perform fine adjustment, and the most suitable image is obtained and then sent to other color display terminals; it should be noted that a suitable algorithm can be selected through different specific requirements for the image in the preset working mode, and the preset mode can be matched with a corresponding preset method; the preset working modes comprise beauty, scenery, portrait and the like.
Further, when the preset area is a text range, after step S223 of performing gray-scale conversion on the pixels in each preset area one by one to obtain a preset area after the gray-scale processing, the method includes:
s224, carrying out binarization processing on the grayed character range to determine the pixels of the characters in the grayed character range and the pixels of the character background;
and S225, adjusting the color of the pixel of the character according to the setting to obtain the character with the set color, wherein the color of the pixel of the character background is the same as the color of the background.
In the step S224, the text range is only a regular frame that completely includes the text, and in the step S223, the text range is grayed, so that the text range can be converted into a grayscale image that can be displayed on other color display terminals, and the text background color matrix is introduced to perform binarization processing of the text background, so that the processing efficiency is higher; it should be noted that the threshold value in binarization is preset in some embodiments; in some embodiments, the threshold value in binarization may be obtained by an average value method, and by determining a gray value of each pixel, pixels with gray values greater than the average value are marked as a text background, and otherwise, are marked as text; the text background belongs to the background.
In step S225, a color of the character is adjusted by setting the color of the pixel of the character to obtain a character with a set color; similarly, the color of the pixels of the text background is adjusted to be the same as the color of the background.
Further, the step S224 of performing binarization processing on the text background to the grayed text range to determine pixels of the text and pixels of the text background in the grayed text range includes:
s2241, calculating the average value of the gray values of all pixels in the grayed character range;
and S2242, comparing the gray value of each pixel with the average value, and confirming the pixels of the characters and the pixels of the character background according to the comparison result.
In step S2241, the average value avg of the gray scale values of all pixels in the text range, (gray scale value of pixel point 1 + · n gray scale value of pixel point)/n = the average value avg of pixel points.
In step S2242, in some embodiments, since the text is normally black, the pixels with the gray scale value less than or equal to the average value are determined as the pixels of the text, and the pixels with the gray scale value greater than the average value are determined as the pixels of the text background; the pixels of the text are adjusted to be black or white, and are usually black by default; the gray value of the pixel of the character background is adjusted to be the background color, and the background color can be changed according to different settings of a user; it should be noted that, in some embodiments, the pixels with the gray values greater than or equal to the average value are determined to be the pixels of the text, and the pixels with the gray values less than the average value are determined to be the pixels of the text background, so that the adjusted image can be closer to the original image; in some embodiments, the average value is respectively differed with black and white, the smaller the difference value is, the closer the difference value is, and then whether the color of the character is closer to black or closer to white is judged, when the character is judged to be closer to white, the pixel of which the gray value is greater than or equal to the average value is judged to be the pixel of the character, and the pixel of which the gray value is less than the average value is judged to be the pixel of the character background; when the characters are judged to be closer to black, the pixels with the gray values smaller than or equal to the average value are judged to be the pixels of the characters, and the pixels larger than the average value are judged to be the pixels of the character background.
Further, the graying the background comprises:
s226, adjust RGB of all pixels in the background to RGB corresponding to the set color.
In the above step S226, the background color of the processed image may be adjusted according to the selection of the user, or the background color of the processed image may be adjusted according to a preset background color; such as: after determining that the background color is a lemon color RGB (0, 255,0), RGB color conversion is performed on the pixels marked as the background color, and R = B =0 and g =255 are included in RGB information of all the background colors.
Referring to fig. 2, the present invention further provides an image processing apparatus of an ink screen terminal, including:
the image acquisition module 1 is used for acquiring an initial image;
the gray processing module 2 is used for preprocessing the initial image to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal;
and the image transmission module 3 is used for transmitting the processed image to a designated color display terminal.
Further, the image acquisition module 1 includes:
an image acquisition submodule for acquiring a plurality of images obtained by shooting the shot object by the camera through a multi-frame continuous shooting technology
The image caching submodule is used for caching a plurality of images in an image receiving caching area;
the traversal submodule is used for performing pixel traversal on each image and identifying each pixel in each image;
the pixel comparison sub-module is used for comparing each pixel at the same position in the plurality of images one by one to identify the noise point of each image;
the noise reduction sub-module is used for carrying out noise reduction processing on each image;
and the splicing submodule is used for splicing the clearest pixels in all the images into a frame of initial image.
Further, the image cache sub-module includes:
and the image caching unit is used for caching a plurality of images in set time to the image receiving caching area.
Further, the gradation processing module 2 includes:
the image identification submodule is used for identifying the text range, the object outline and the background in the initial image;
and the gray level processing submodule is used for respectively carrying out gray level processing on the character range, the object outline and the background to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal.
The image identification submodule includes:
and the image identification unit is used for identifying the text range, the object outline and the background in the initial image in a pixel traversal mode.
Further, the gray processing sub-module includes:
the device comprises a pixel acquisition unit, a pixel selection unit and a pixel selection unit, wherein the pixel acquisition unit is used for acquiring an R value, a G value and a B value of each pixel in a preset area, and the preset area is an object outline, a character range or a background;
the color conversion unit is used for substituting the R value, the G value and the B value of the pixels in each preset region into an image color conversion formula Gray = X R + YG +/-ZB to obtain Gray corresponding to the pixels in each preset region, and X, Y and Z are preset values respectively;
the Gray level conversion unit is used for performing Gray level conversion on the pixels in each preset area one by one to obtain the preset area after Gray level processing, wherein RGB of the pixels in the preset area is (Gray ), and Gray level conversion is performed when RGB of a certain pixel meets the following conditions, so that the pixel presents corresponding color:
r = G = B <255 appears gray
R = G = B =255 appears white
R = G = B =0 appears black.
Further, the object processing sub-module further comprises:
and the adjusting unit is used for adjusting the processed image according to a preset mode.
Further, the gray processing sub-module further includes:
the character range binarization processing unit is used for carrying out binarization processing on a character background in the grayed character range and determining pixels of characters in the grayed character range and pixels of the character background;
and the character color adjusting unit is used for adjusting the color of the pixel of the character according to the setting to obtain the character with the set color, and the color of the pixel of the character background is the same as the color of the background.
Further, the character range binarization processing unit includes:
the average value acquisition subunit is used for calculating the average value of the gray values of all the pixels in the grayed character range;
and the binarization subunit is used for comparing the gray value of each pixel with the average value, wherein the pixels smaller than or equal to the average value are pixels of characters, and the pixels larger than the average value are pixels of character backgrounds.
Further, the image processing apparatus of the ink screen terminal further includes:
and the integral color adjusting module is used for adjusting the RGB of all pixels in the background into RGB corresponding to the set color.
Referring to fig. 3, a storage medium 100, which is a computer-readable storage medium, is further provided, and a computer program 200 is stored thereon, and when the computer program 200 is executed, the method for processing an image of an ink screen terminal in any of the above embodiments is implemented.
Referring to fig. 4, an embodiment of the present application further provides a smart device 300, which includes a memory 400, a processor 500, and a computer program 200 stored on the memory 400 and executable on the processor 500, where the processor 500 executes the computer program 200 to implement the image processing method of the ink screen terminal in any of the above embodiments.
Those skilled in the art will appreciate that the smart device 300 of the embodiments of the present application is a device referred to above for performing one or more of the methods of the present application. These devices may be specially designed and manufactured for the required purposes, or they may comprise known devices in general purpose computers. These devices have stored therein computer programs 200 or applications, which computer programs 200 are selectively activated or reconfigured. Such a computer program 200 may be stored in a device (e.g., computer) readable medium, including, but not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magnetic-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Programmable Read-Only memories), flash memories, magnetic cards, or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a bus. That is, readable media includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
According to the image processing method and device for the ink screen terminal, the storage medium and the intelligent device, the processed image with the display effect identical or similar to that of the ink screen terminal is obtained by preprocessing the initial image, the problem that the difference between the image displayed on the ink screen panel and the image displayed on the color display terminal is large in the prior art is solved, and eyes can be better protected.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An image processing method of an ink screen terminal is characterized by comprising the following steps:
acquiring an initial image;
preprocessing the initial image in a graying way to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal;
sending the processed image to a designated color display terminal;
the step of acquiring an initial image comprises:
acquiring a plurality of images obtained by shooting a shot object through a camera by utilizing a multi-frame continuous shooting technology;
caching the plurality of images in an image receiving cache region;
performing pixel traversal on each image, and identifying each pixel in each image;
comparing each pixel at the same position in the plurality of images one by one, and identifying noise points of each image;
carrying out noise reduction processing on each image;
splicing the images subjected to noise reduction into a frame of initial image;
the step of preprocessing the initial image in a graying manner to obtain a processed image with the same or similar display effect on a color display terminal and the display effect on an ink screen terminal comprises the following steps:
identifying a text range, an object outline and a background in the initial image;
and performing graying processing on the text range, the object outline and the background respectively to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal.
2. The image processing method of the ink screen terminal according to claim 1, wherein the step of buffering the plurality of images into an image receiving buffer comprises:
and caching the plurality of images within a set time to an image receiving cache region.
3. The image processing method of the ink screen terminal according to claim 1, wherein the step of recognizing the text range, the object outline and the background in the initial image comprises:
and identifying the text range, the object outline and the background in the initial image in a pixel traversal mode.
4. The image processing method of the ink screen terminal according to claim 1, wherein the step of performing graying processing on the text range, the object outline and the background respectively comprises:
acquiring an R value, a G value and a B value of each pixel in a preset area, wherein the preset area is the object outline, the character range or the background;
substituting the R value, the G value and the B value of the pixels in each preset region into an image color conversion formula Gray = X R + YG +/-ZB to obtain Gray corresponding to the pixels in each preset region, wherein X, Y and Z are preset values respectively;
performing Gray level conversion on the pixels in each preset area one by one to obtain the preset area after Gray level processing, wherein the RGB of the pixels in the preset area is (Gray ), and the Gray level conversion is performed when the RGB of a certain pixel meets the following conditions, so that the pixel is presented with a corresponding color:
r = G = B <255 appears gray
R = G = B =255 appears white
R = G = B =0 appears black.
5. The image processing method of the ink screen terminal according to claim 4, wherein when the preset area is the text range, performing gray scale conversion on pixels in each preset area one by one to obtain the grayed preset area, and performing text processing on the text range to obtain the text with the set color, includes:
graying the character range to obtain the grayed character range;
carrying out binarization processing on the grayed character range to determine the pixels of the characters and the pixels of the character background in the grayed character range;
and adjusting the color of the pixel of the character according to the setting to obtain the character with the set color, wherein the color of the pixel of the character background is the same as that of the background.
6. An image processing apparatus of an ink screen terminal, comprising:
the image acquisition module is used for acquiring an initial image;
the gray processing module is used for preprocessing the initial image to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal;
the image transmission module is used for transmitting the processed image to a designated color display terminal;
the image acquisition module includes:
the image acquisition sub-module is used for acquiring a plurality of images obtained by shooting the shot object through a camera by utilizing a multi-frame continuous shooting technology;
the image cache submodule is used for caching a plurality of images into an image receiving cache region;
the traversal submodule is used for performing pixel traversal on each image and identifying each pixel in each image;
the pixel comparison submodule is used for comparing each pixel at the same position in the plurality of images one by one and identifying the noise point of each image;
the noise reduction sub-module is used for carrying out noise reduction processing on each image;
the splicing submodule is used for splicing the clearest pixels in all the images into a frame of initial image;
the gray scale processing module comprises:
the image identification submodule is used for identifying the text range, the object outline and the background in the initial image;
and the gray level processing submodule is used for respectively carrying out gray level processing on the character range, the object outline and the background to obtain a processed image with the display effect on the color display terminal being the same as or similar to that of the ink screen terminal.
7. A storage medium, characterized in that it is a computer-readable storage medium on which a computer program is stored, the computer program, when executed, implementing the image processing method of the ink screen terminal according to any one of claims 1 to 5.
8. A smart device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the image processing method of the ink screen terminal according to any one of claims 1 to 5 when executing the computer program.
CN202110684548.2A 2021-06-21 2021-06-21 Image processing method and device for ink screen terminal, storage medium and intelligent device Active CN113596425B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110684548.2A CN113596425B (en) 2021-06-21 2021-06-21 Image processing method and device for ink screen terminal, storage medium and intelligent device
PCT/CN2021/110963 WO2022267186A1 (en) 2021-06-21 2021-08-05 Image processing method and apparatus for e-ink terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110684548.2A CN113596425B (en) 2021-06-21 2021-06-21 Image processing method and device for ink screen terminal, storage medium and intelligent device

Publications (2)

Publication Number Publication Date
CN113596425A CN113596425A (en) 2021-11-02
CN113596425B true CN113596425B (en) 2023-02-07

Family

ID=78244252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110684548.2A Active CN113596425B (en) 2021-06-21 2021-06-21 Image processing method and device for ink screen terminal, storage medium and intelligent device

Country Status (2)

Country Link
CN (1) CN113596425B (en)
WO (1) WO2022267186A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116939181B (en) * 2023-08-08 2024-02-23 广州文石信息科技有限公司 Image processing method, device, system, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562694A (en) * 2009-05-26 2009-10-21 天津三星光电子有限公司 Method for realizing functions of character extraction and automatic translation of digital camera
CN104992680A (en) * 2015-08-04 2015-10-21 广州文石信息科技有限公司 Electronic ink screen graying method
CN107358184A (en) * 2017-06-30 2017-11-17 中国科学院自动化研究所 The extracting method and extraction element of document word
WO2018120546A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Image display method and terminal device
CN110570380A (en) * 2019-09-12 2019-12-13 京东方科技集团股份有限公司 Image processing method and device for electronic ink screen and electronic ink screen
CN111508039A (en) * 2020-04-20 2020-08-07 青岛海信移动通信技术股份有限公司 Word processing method of ink screen and communication terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101148896B1 (en) * 2010-04-06 2012-05-29 주식회사 이미지앤머터리얼스 Multi-color electrophoretic display device, image sheet and method of fabricating the same
CN104320537A (en) * 2014-10-08 2015-01-28 广州三星通信技术研究有限公司 Method of displaying image in communication terminal and device
CN106131450B (en) * 2016-07-29 2020-06-30 努比亚技术有限公司 Image processing method and device and terminal
CN108877697B (en) * 2017-05-08 2020-12-29 北京小米移动软件有限公司 Method and device for displaying image
CN111752063B (en) * 2020-06-08 2021-04-30 掌阅科技股份有限公司 Method capable of changing display mode, reading terminal and computer storage medium
CN112184595B (en) * 2020-10-23 2023-03-14 青岛海信移动通信技术股份有限公司 Mobile terminal and image display method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562694A (en) * 2009-05-26 2009-10-21 天津三星光电子有限公司 Method for realizing functions of character extraction and automatic translation of digital camera
CN104992680A (en) * 2015-08-04 2015-10-21 广州文石信息科技有限公司 Electronic ink screen graying method
WO2018120546A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Image display method and terminal device
CN107358184A (en) * 2017-06-30 2017-11-17 中国科学院自动化研究所 The extracting method and extraction element of document word
CN110570380A (en) * 2019-09-12 2019-12-13 京东方科技集团股份有限公司 Image processing method and device for electronic ink screen and electronic ink screen
CN111508039A (en) * 2020-04-20 2020-08-07 青岛海信移动通信技术股份有限公司 Word processing method of ink screen and communication terminal

Also Published As

Publication number Publication date
WO2022267186A1 (en) 2022-12-29
CN113596425A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
KR101012270B1 (en) Methods and systems for converting images from low dynamic range to high dynamic range
CN110766621B (en) Image processing method, image processing device, storage medium and electronic equipment
JP4375322B2 (en) Image processing apparatus, image processing method, program thereof, and computer-readable recording medium recording the program
CN107395991B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
US20110216972A1 (en) Methods and Apparatuses for Restoring Color and Enhancing Electronic Images
EP1993071A1 (en) Image zone detection
EP1789922A2 (en) Apparatus and method for processing images
US10354352B2 (en) Image processing apparatus, image processing method, and storage medium
CN104200431A (en) Processing method and processing device of image graying
CN113596573B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
JP4595569B2 (en) Imaging device
CN107945106B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
US9832395B2 (en) Information processing method applied to an electronic device and electronic device having at least two image capturing units that have the same image capturing direction
CN113596425B (en) Image processing method and device for ink screen terminal, storage medium and intelligent device
EP1933549B1 (en) Image correction device and image correction method
CN113068011B (en) Image sensor, image processing method and system
JP2010102426A (en) Image processing apparatus and image processing method
US9323981B2 (en) Face component extraction apparatus, face component extraction method and recording medium in which program for face component extraction method is stored
CN112634148A (en) Image correction method, apparatus and storage medium
US10896344B2 (en) Information processing apparatus, information processing method, and computer program
EP3296957A1 (en) Method and apparatus for judging image brightness background, and display apparatus
JP7030425B2 (en) Image processing device, image processing method, program
US11410622B2 (en) Display method and device, and storage medium
JP2019121810A (en) Image processing apparatus, image processing method, and image processing program
CN109509161B (en) Image enhancement device and image enhancement method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant