CN115565496A - Page noise reduction method and device, storage medium and electronic ink screen equipment - Google Patents
Page noise reduction method and device, storage medium and electronic ink screen equipment Download PDFInfo
- Publication number
- CN115565496A CN115565496A CN202211158238.8A CN202211158238A CN115565496A CN 115565496 A CN115565496 A CN 115565496A CN 202211158238 A CN202211158238 A CN 202211158238A CN 115565496 A CN115565496 A CN 115565496A
- Authority
- CN
- China
- Prior art keywords
- noise reduction
- current page
- function
- denoising
- user
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3433—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices
- G09G3/344—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices based on particles moving in a fluid or in a gas, e.g. electrophoretic devices
-
- G—PHYSICS
- G02—OPTICS
- G02F—OPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
- G02F1/00—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
- G02F1/01—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour
- G02F1/165—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour based on translational movement of particles in a fluid under the influence of an applied field
- G02F1/166—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour based on translational movement of particles in a fluid under the influence of an applied field characterised by the electro-optical or magneto-optical effect
- G02F1/167—Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour based on translational movement of particles in a fluid under the influence of an applied field characterised by the electro-optical or magneto-optical effect by electrophoresis
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09F—DISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
- G09F9/00—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements
- G09F9/30—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements
- G09F9/37—Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements in which the desired character or characters are formed by combining individual elements being movable elements
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0271—Adjustment of the gradation levels within the range of the gradation scale, e.g. by redistribution or clipping
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2330/00—Aspects of power supply; Aspects of display protection and defect management
- G09G2330/02—Details of power systems and of start or stop of display operation
- G09G2330/021—Power management, e.g. power saving
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Nonlinear Science (AREA)
- Theoretical Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- Molecular Biology (AREA)
- Computer Hardware Design (AREA)
- Optics & Photonics (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The page denoising method, the device, the storage medium and the electronic ink screen equipment provided by the application can judge whether a denoising function is started on a current page or not when the current page is displayed in an ink screen, if the denoising function is started, denoising can be performed on the current page by using the denoising function, after denoising is performed, the ratio of the number of gray pixels in the current page to the number of total pixels is counted, whether the ratio exceeds a set ratio or not is determined, if the ratio exceeds the set ratio, the denoising effect of the current page does not reach an expected effect is shown, a denoising prompt can be sent to a user at the moment, the processing result of the denoising prompt by the user is received, in order to determine whether the user needs to continue denoising or not, whether the processing result of the denoising prompt by the user reaches a preset denoising condition or not can be judged, and if the denoising condition is reached, the denoising function can be updated according to the processing result when the denoising condition is reached.
Description
Technical Field
The application relates to the technical field of page processing, in particular to a page noise reduction method and device, a storage medium and electronic ink screen equipment.
Background
The ink screen is a screen which utilizes microcapsules to develop color and has the advantages of eye protection and power saving, but the ink screen is limited by the structure and the principle of the ink screen, and the refreshing rate and the color expression are difficult to be considered. Specifically, because human eyes are sensitive to the gray level of an image, if an ink screen adopts a refresh mode with high gray level, a relatively fine display effect can be generated although the refresh rate is relatively low; if the refresh mode with a low gray scale is adopted, although the refresh rate can be increased, the screen display effect is poor. For example, the GL16 refresh mode has 16-level gray scale but the update delay is as high as 450 ms, and the A2 refresh mode can display only black and white although the refresh rate is faster.
In the prior art, when a user uses an ink screen for real-time interaction, a system preferentially uses a refresh mode (for example, A2) with a high refresh rate to improve fluency, but because the display effect of a picture in the refresh mode is poor, the system usually uses an image dithering algorithm to process the picture to achieve the impression similar to a higher gray level by sacrificing a part of resolution, so as to effectively improve the display effect of the picture.
At present, when a shaking algorithm is adopted to process a picture in the prior art, because the shaking algorithm is easy to generate gray noise points, the picture has poor appearance. Therefore, a denoising algorithm is generally adopted to denoise a picture, the commonly used denoising algorithm has a poor display effect and is easy to blur fonts, and then the sharpness of characters is reduced.
Disclosure of Invention
The purpose of the present application is to solve at least one of the above technical defects, especially the technical defect that the commonly used denoising algorithm in the prior art has a poor display effect and is easy to blur fonts, thereby reducing the sharpness of characters, and in addition, the commonly used denoising algorithm has high resource consumption and cannot be used on a mobile device with low power consumption.
The application provides a page noise reduction method, which is applied to electronic ink screen equipment and comprises the following steps:
when the current page displayed in an ink screen is detected, judging whether the current page starts a noise reduction function or not;
if the denoising function is started, denoising the current page based on the denoising function;
after the noise of the current page is reduced, counting the ratio of the number of gray pixel points in the current page to the number of total pixel points, and determining whether the ratio exceeds a set ratio or not;
if the ratio exceeds the set ratio, sending a noise reduction prompt to a user, and judging whether the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition;
if so, updating the noise reduction function according to the processing result of reaching the noise reduction condition, and returning to execute the step of reducing the noise of the current page based on the noise reduction function;
if the ratio is not more than the set ratio or if the processing result of the user on the noise reduction prompt does not reach the noise reduction condition, continuing to display the current page;
and if the noise reduction function is not started, returning to the step of counting the ratio of the number of gray pixels in the current page to the number of total pixels.
Optionally, the denoising the current page based on the denoising function includes:
determining a noise reduction interval corresponding to the noise reduction function and a first gray value interval corresponding to the noise reduction interval, wherein the noise reduction interval is a default noise reduction interval for performing noise reduction processing of a system or a noise reduction interval for performing noise reduction processing set in response to selection operation of a user;
acquiring a pixel point set of a visible area in the current page and a gray value corresponding to each pixel point in the pixel point set;
and replacing the gray value of the pixel point with the set gray value in the first gray value interval to reduce the noise of the current page.
Optionally, before determining that the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition, the method further includes:
receiving a processing result of the user on the noise reduction prompt, and judging whether the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition;
the noise reduction prompt comprises a noise reduction function starting prompt and a noise reduction interval changing prompt, and noise reduction conditions corresponding to different noise reduction prompts are different.
Optionally, when the denoising prompt is a denoising function start prompt, the determining whether a processing result of the denoising prompt by the user reaches a preset denoising condition includes:
if the processing result of the user on the noise reduction function starting prompt is to confirm that the noise reduction function is started, determining that the processing result of the user on the noise reduction function starting prompt reaches a preset noise reduction condition;
and if the processing result of the user to the noise reduction function starting prompt is to cancel the starting of the noise reduction function, determining that the processing result of the user to the noise reduction function starting prompt does not reach the preset noise reduction condition.
Optionally, the updating the noise reduction function according to the processing result of reaching the noise reduction condition includes:
and updating the state of the noise reduction function according to the confirmation of starting the noise reduction function, wherein the state of the noise reduction function comprises an opening state and a closing state.
Optionally, when the noise reduction prompt is a noise reduction interval change prompt, the determining whether a processing result of the noise reduction prompt by the user reaches a preset noise reduction condition includes:
if the processing result of the noise reduction interval change prompt by the user is to confirm the change of the noise reduction interval, displaying a noise reduction interval change interface in the current page, receiving a change operation triggered by the user in the noise reduction interval change interface, and judging whether the processing result of the noise reduction interval change prompt by the user reaches a preset noise reduction condition according to the change operation;
and if the processing result of the user to the noise reduction interval change prompt is the noise reduction interval change cancellation state, determining that the processing result of the user to the noise reduction interval change prompt does not reach the preset noise reduction condition.
Optionally, the determining, according to the change operation, whether a processing result of the user on the noise reduction interval change prompt meets a preset noise reduction condition includes:
judging whether the change operation is to coincide the left and right side end points of the noise reduction interval displayed in the noise reduction interval change interface, wherein the gray value corresponding to the left side end point is 0, and the gray value corresponding to the right side end point is 0;
if so, determining that the processing result of the user to the noise reduction interval change prompt does not reach the preset noise reduction condition;
otherwise, determining that the processing result of the user to the noise reduction interval change prompt reaches a preset noise reduction condition.
Optionally, the updating the noise reduction function according to the processing result of reaching the noise reduction condition includes:
and updating the noise reduction interval corresponding to the noise reduction function according to the noise reduction interval contained in the change operation.
Optionally, the determining whether the denoising function is started on the current page includes:
acquiring states of a noise reduction function stored in system setting, wherein the states of the noise reduction function comprise an opening state and a closing state, and the opening state and the closing state are switched according to an operation instruction of a user or default configuration of a system;
and judging whether the current page is started with the noise reduction function or not according to the state of the noise reduction function.
Optionally, the determining whether the denoising function is started on the current page includes:
judging whether the noise reduction function is started on the current page or not according to whether the noise reduction function is started on the application program corresponding to the current page or not;
or judging whether the noise reduction function is started on the current page according to whether the noise reduction function is started on the application scene corresponding to the current page.
Optionally, the counting a ratio of the number of gray pixels in the current page to the number of total pixels includes:
counting the number of gray pixel points in a second gray value interval in the visible area of the current page and the number of total pixel points in the visible area, wherein the second gray value interval is a system default pixel value interval or a pixel value interval preset by a user;
and calculating the ratio of the number of the gray pixels in the current page to the number of the total pixels according to the number of the gray pixels and the number of the total pixels.
Optionally, the sending a noise reduction prompt to the user includes:
judging whether the current page starts a noise reduction function or not;
if the noise reduction function is not started, sending a noise reduction function starting prompt to a user;
and if the noise reduction function is started, sending a noise reduction interval change prompt to a user.
The application also provides a device of making an uproar falls in page is applied to electron ink screen equipment, the device includes:
the function detection module is used for judging whether a noise reduction function is started on a current page when the current page is displayed in an ink screen;
the page denoising module is used for denoising the current page based on the denoising function if the denoising function is started;
the first statistical module is used for counting the ratio of the number of gray pixel points in the current page to the number of total pixel points after the noise of the current page is reduced, and determining whether the ratio exceeds a set ratio or not;
the noise reduction prompting module is used for sending a noise reduction prompt to a user if the noise reduction prompt exceeds the set ratio, and judging whether the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition or not;
the noise reduction function updating module is used for updating the noise reduction function according to the processing result reaching the noise reduction condition and returning to execute the step of reducing the noise of the current page based on the noise reduction function if the current page reaches the noise reduction condition;
the page display module is used for continuously displaying the current page if the set ratio is not exceeded or the processing result of the user on the noise reduction prompt does not reach the noise reduction condition;
and the second statistical module is used for returning to execute the step of counting the ratio of the number of the gray pixel points in the current page to the number of the total pixel points if the noise reduction function is not started.
The present application further provides a storage medium having stored therein computer readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the page denoising method as described in any of the above embodiments.
The application also provides an electronic ink screen device, including: one or more processors, and a memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the page denoising method as in any one of the above embodiments.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the page denoising method, the device, the storage medium and the electronic ink screen equipment, when a current page displayed in an ink screen is detected, whether a denoising function is started on the current page or not can be judged first, if the denoising function is started, denoising can be performed on the current page by using the denoising function, the ratio of the number of gray pixels in the current page to the number of total pixels is counted after denoising, whether the ratio exceeds a set ratio or not is determined, if the ratio exceeds the set ratio, the denoising effect of the current page does not reach an expected effect is indicated, a denoising prompt can be sent to a user at the moment, the processing result of the denoising prompt by the user is received, in order to determine whether the user needs to continue denoising, whether the processing result of the denoising prompt by the user reaches a preset denoising condition or not can be judged, if the denoising condition is reached, the denoising function can be updated according to the processing result when the denoising condition is reached, if the denoising interval of the current denoising function is changed, denoising is performed according to the changed denoising interval, so that characters in the current page are clearer, and reading experience is stronger; if the ratio does not exceed the set ratio or the processing result of the user on the noise reduction prompt does not reach the noise reduction condition, continuing to display the current page; and then, if the noise reduction function is not started on the current page, counting the ratio of the number of gray pixels in the current page to the number of total pixels, determining whether the ratio exceeds a set ratio, if so, indicating that the current page needs to be subjected to noise reduction, sending a noise reduction prompt to a user, updating the noise reduction function according to the processing result when the noise reduction condition is met after determining that the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition, if the noise reduction function of the current page is started, and reducing the noise of the current page by using the noise reduction function after the noise reduction function is started, so that the black-white contrast of the current page is increased, and the display effect of the current page is improved.
In addition, when judging whether the current page needs to be denoised or whether the denoising effect of the current page reaches an expected effect, the method adopts the operation of counting the ratio of the number of gray pixels in the current page to the number of total pixels, and compared with the existing complex denoising algorithm, the method can quickly evaluate the processing effect of the current page, thereby effectively improving the processing efficiency of page denoising, reducing the resource consumption and being more suitable for being used on low-power-consumption mobile equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a page denoising method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a process of determining whether a noise reduction function is enabled on a current page according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a page noise reduction device according to an embodiment of the present application;
fig. 4 is a schematic internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In the prior art, when a user uses an ink screen for real-time interaction, a system preferentially uses a refresh mode (for example, A2) with a high refresh rate in order to improve fluency, but because the display effect of a picture in the refresh mode is poor, the system usually uses an image dithering algorithm to process the picture in order to make up for the defect of low gray level, so that the appearance similar to a higher gray level is achieved by sacrificing a part of resolution, and the display effect of the picture is effectively improved.
At present, when a picture is processed by adopting a dithering algorithm in the prior art, the dithering algorithm is easy to generate grey noise points, so that the picture has poor appearance. Therefore, a denoising algorithm is generally adopted to denoise a picture, the display effect of the common denoising algorithm is poor, a font is easy to blur, and then the sharpness of a character is reduced. Based on this, the following technical solutions are proposed in the present application, specifically see the following:
in an embodiment, as shown in fig. 1, fig. 1 is a schematic flowchart of a page denoising method provided in an embodiment of the present application; the application provides a page noise reduction method, which is applied to electronic ink screen equipment and comprises the following steps:
s110: when the current page displayed in the ink screen is detected, judging whether the current page starts a noise reduction function or not; if the denoising function is started, executing S120; if the denoising function is not started, the step of counting the ratio of the number of gray pixels in the current page to the number of total pixels in S130 is executed.
In this step, when the electronic ink screen device detects that the current screen is displayed in the ink screen, in order to improve the display effect of the current page, a noise reduction function may be adopted to reduce noise of the current page. Specifically when making an uproar falls, can look over earlier whether current page has opened the function of making an uproar of falling, if opened the function of making an uproar of falling, then can directly utilize the function of making an uproar of should falling to fall and make an uproar to current page, if do not open the function of making an uproar of falling, then can judge through the display effect who detects current page whether need fall and make an uproar to read experience better for the user improves.
The denoising in the application refers to reducing the influence of non-core elements in a page on the core subject content of the page, for example, when website code optimization is performed, the text rate of relevant content can be improved as much as possible in a denoising mode, or when text reading is performed, the definition of the text can be improved as much as possible in a denoising mode; further, the noise reduction function of the present application is a function module that is preset in the system and can perform noise reduction processing on pixels in a designated gray value interval in a page, and the function module may allow a user to set the function module by himself or may be configured by default of the system, for example, before leaving a factory, the noise reduction function in the electronic ink screen is set to be valid for all or part of the application programs, or, a state switch is set for the function module, for example, the state switch is set to be on or off, and the user may switch the state of the noise reduction function in the system setting for different application programs or different application scenes in the same application program according to the own requirements.
In addition, the corresponding noise reduction interval can be preconfigured in the noise reduction function, and the noise reduction interval can be a default noise reduction interval of the system, for example, different noise reduction intervals are preset for videos, documents and the like, and a corresponding noise reduction interval can also be set according to selection operation of a user, so that when the noise reduction function is started, noise reduction processing can be performed on a specific pixel point in a current page according to the noise reduction interval.
Based on this, when judging whether the noise reduction function is started on the current page, the method and the device can judge according to whether the noise reduction function is started on the application program corresponding to the current page or according to whether the noise reduction function is started on the application scene corresponding to the current page. Specifically, when determining whether to start the noise reduction function, the determination may be performed according to the state of the noise reduction function of the application program corresponding to the current page in the system setting storage, or may be performed according to the state of the noise reduction function of the application scene corresponding to the current page in the system setting storage, or may be another manner of determining whether to start the noise reduction function, which is not limited herein.
S120: and denoising the current page based on the denoising function.
In this step, after determining whether the noise reduction function is turned on in the current page through S110, if the noise reduction function is turned on in the current page, the noise reduction function may be used to reduce noise in the current page, or when it is detected that the ratio of the number of gray pixels to the number of total pixels in the current page exceeds a set ratio, the application may send a noise reduction prompt to the user, and after determining that the processing result of the noise reduction prompt by the user reaches a preset noise reduction condition, update the noise reduction function according to the processing result that reaches the noise reduction condition, and then use the updated noise reduction function to reduce noise in the current page.
Specifically, when the noise reduction processing is performed on the current page based on the noise reduction function, the noise reduction processing may be performed on the current page according to a noise reduction mode set in the noise reduction function, where the noise reduction mode may be to erase some details that are not obvious in the current page, and for example, when the noise reduction is performed in an electronic ink screen device using 16-level gray scale, all pixel points in the current page with a gray value greater than 0 may be re-assigned to 15, and the pixel points with a gray value of 0 are retained, so as to increase the black-white contrast of the current page, and improve the display effect of the current page; or, the assignment of the pixel points in the specified gray value interval in the current page can be carried out again, the specified gray value interval can be a gray value interval set by a user, and can also be a system default gray value interval, so that the display effect of the current page can be improved in an appropriate range, the noise reduction time can be reduced, and the noise reduction processing efficiency can be effectively improved.
S130: after the noise of the current page is reduced, counting the ratio of the number of gray pixel points in the current page to the number of total pixel points, and determining whether the ratio exceeds a set ratio or not; if the ratio exceeds the set ratio, executing S140; if the ratio is not exceeded, S150 is executed.
In this step, in order to further improve the page display effect, the method can count the ratio of the number of gray pixels in the current page to the number of total pixels after performing noise reduction processing on the current page, and judge whether the ratio exceeds a set ratio, if not, continue to display the current picture, and if so, send a noise reduction prompt to a user so as to determine whether to continue noise reduction according to user instructions; when the noise reduction function is not started on the current page, in order to determine the display effect of the current page, the method and the device can also count the ratio of the number of gray pixels in the current page to the number of total pixels, judge whether the ratio exceeds a set ratio, continue to display the current picture if the ratio does not exceed the set ratio, and indicate that the current page needs to be subjected to noise reduction processing if the ratio exceeds the set ratio.
Furthermore, for the current page with the noise reduction function opened and not opened, the display effect of the current page or the display effect after noise reduction treatment can be judged by counting the ratio of the number of gray pixels to the number of total pixels in the current page, so that whether optimization is continuously performed on the current page or not can be determined according to the optimization effect of the current page under the condition that the noise reduction function is opened, and whether display optimization is performed on the current page or not can be determined according to the display effect of the current page under the condition that the noise reduction function is not opened, so that better reading experience is provided for a user.
The display effect of the current page is judged, the ratio of the number of the gray pixel points in the current page to the number of the total pixel points can be compared with a set ratio, the set ratio is a preset numerical value used for judging the display effect of the current page, if the set ratio is one third or one fourth of the number of the gray pixel points in the current page to the number of the total pixel points, the specific numerical value can be selected under the actual condition, and the display effect of the current page is not limited. When the ratio of the number of the gray pixel points to the number of the total pixel points in the current page does not exceed the set ratio, the display effect of the current page is better, the current page can be continuously displayed at the moment, if the ratio exceeds the set ratio, the display effect of the current page is not reached to the expected effect, and at the moment, the noise reduction prompt can be sent to a user so that the user can reset the noise reduction option or start the noise reduction function.
It can be understood that, the application only takes the gray value range of the pixel point as 0 to 15 as an example, that is, the image before the current page denoising process is a 16-level gray image, and in other embodiments, the image may also be a 256-level gray image, a 32-level gray image, an 8-level gray image, a 4-level gray image, and the like, which is not limited herein. When the gray value range of the pixel point is 0-15, the gray pixel point in the above embodiment refers to the pixel point whose gray value is between 0 and 15, and the total pixel point includes the gray pixel point and the pixel points whose gray values are 0 and 15.
S140: sending a noise reduction prompt to a user, judging whether the processing result of the noise reduction prompt of the user reaches a preset noise reduction condition, and if so, executing S150; otherwise, S160 is executed.
In this step, the ratio of the number of gray pixels in the current page to the number of total pixels is counted through S130, and after determining whether the ratio exceeds a set ratio, if the ratio exceeds the set ratio, a noise reduction prompt may be sent to the user, and after receiving a processing result of the user on the noise reduction prompt, it is determined whether the processing result reaches a preset noise reduction condition, and if the processing result reaches the preset noise reduction condition, the current noise reduction function is updated according to the processing result that reaches the noise reduction condition, and noise reduction is performed on the current page based on the updated noise reduction function; if not, executing S150 to continue displaying the current page.
It can be understood that, when the application detects that the user opens or does not open the noise reduction function, whether the display effect of the current page reaches the expected effect is judged by counting whether the ratio of the number of gray pixels in the current page to the number of total pixels exceeds the set ratio, therefore, when the ratio of the number of gray pixels in the current page to the number of total pixels exceeds the set ratio, the application can selectively send the corresponding noise reduction prompt to the user according to whether the noise reduction function is currently opened, so as to prompt the user to open the noise reduction function under the condition that the noise reduction function is not opened, or prompt the user to change the noise reduction interval under the condition that the noise reduction function is opened, thereby utilizing the opened noise reduction function or the changed noise reduction interval to reduce the noise of the current page.
S150: and updating the noise reduction function according to the processing result of reaching the noise reduction condition, and returning to execute the step of S120.
In this step, after determining whether the processing result of the user on the noise reduction prompt reaches the preset noise reduction condition through S140, if the processing result reaches the noise reduction condition, the noise reduction function may be updated according to the processing result reaching the noise reduction condition.
For example, the preset denoising condition in the application may be that a user switches a state of a denoising function to an on state, or the user changes a denoising interval corresponding to the denoising function, and the changed denoising interval is a denoising interval when the denoising function is turned on, so that when a processing result of a user on a denoising prompt is to turn on the denoising function or change the denoising interval corresponding to the denoising function is turned on, the state of the denoising function or the denoising interval may be updated according to the processing result, so as to denoise a current page through the updated denoising function, and after denoising, continuously count whether a ratio of the number of gray pixels in the current page to the number of total pixels exceeds a set ratio until the updated ratio does not exceed the set ratio.
S160: and continuing to display the current page.
In this step, the ratio of the number of gray pixels in the current page to the number of total pixels is counted through S130, and after it is determined whether the ratio exceeds the set ratio, if the ratio does not exceed the set ratio, it indicates that the display effect of the current page reaches the expected effect, and at this time, the current page may be continuously displayed without performing noise reduction again; or, the present application may further determine whether the processing result of the user on the noise reduction prompt reaches the noise reduction condition through S140, and if not, it indicates that the user cancels the operation of starting the noise reduction function in the noise reduction prompt, or the user cancels the operation of changing the noise reduction interval in the noise reduction prompt, or the user changes the noise reduction interval, but the changed noise reduction interval is the noise reduction interval when the noise reduction function is cancelled, and at this time, it also indicates that the user does not need to perform noise reduction processing on the current page, and when the above-mentioned several conditions occur, it indicates that the user can tolerate the noise in the current page, so the current page can be continuously displayed.
Of course, it should be noted that the current page herein refers to a page subjected to at least one denoising process, or a page without denoising.
In the above embodiment, when a current page displayed in an ink screen is detected, it may be determined whether a noise reduction function is started on the current page, if the noise reduction function is started, the noise reduction function may be used to reduce noise of the current page, and after noise reduction is performed, a ratio of the number of gray pixels in the current page to the number of total pixels is counted, it is determined whether the ratio exceeds a set ratio, if the ratio exceeds the set ratio, it indicates that the noise reduction effect of the current page does not reach an expected effect, at this time, a noise reduction prompt may be sent to a user, and a processing result of the noise reduction prompt by the user is received, in order to determine whether the user needs to continue noise reduction, the application may determine whether a processing result of the noise reduction prompt by the user reaches a preset noise reduction condition, if the noise reduction condition is reached, the noise reduction function may be updated according to the processing result when the noise reduction condition is reached, for example, the noise reduction interval of the current noise reduction function is changed, and the current page is noise reduced according to the changed noise reduction interval, so that characters in the current page are clearer, and reading experience is stronger; if the ratio does not exceed the set ratio or the processing result of the user on the noise reduction prompt does not reach the noise reduction condition, continuing to display the current page; and then, if the noise reduction function is not started on the current page, counting the ratio of the number of gray pixels in the current page to the number of total pixels, determining whether the ratio exceeds a set ratio, if so, indicating that the current page needs to be subjected to noise reduction, sending a noise reduction prompt to a user, updating the noise reduction function according to the processing result when the noise reduction condition is met after determining that the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition, if the noise reduction function of the current page is started, and reducing the noise of the current page by using the noise reduction function after the noise reduction function is started, so that the black-white contrast of the current page is increased, and the display effect of the current page is improved.
In addition, when judging whether the current page needs to be denoised or whether the denoising effect of the current page reaches the expected effect, the method adopts the operation of counting the ratio of the number of gray pixels in the current page to the number of total pixels, and compared with the existing complex denoising algorithm, the method can quickly evaluate the processing effect of the current page, thereby effectively improving the processing efficiency of page denoising, reducing the resource consumption and being more suitable for being used on low-power-consumption mobile equipment.
In one embodiment, the denoising the current page based on the denoising function in S120 may include:
s121: and determining a noise reduction interval corresponding to the noise reduction function and a first gray value interval corresponding to the noise reduction interval, wherein the noise reduction interval is a default noise reduction interval for performing noise reduction processing of a system, or a noise reduction interval for performing noise reduction processing set in response to selection operation of a user.
S122: and acquiring a pixel point set of a visible area in the current page and a gray value corresponding to each pixel point in the pixel point set.
S123: and replacing the gray value of the pixel point with the set gray value in the first gray value interval to reduce the noise of the current page.
In this embodiment, when the noise reduction function is used to reduce noise of the current page, a noise reduction interval corresponding to the noise reduction function and a first gray scale value interval corresponding to the noise reduction interval may be determined first, then a pixel point set of a visible region in the current page and a gray scale value corresponding to each pixel point in the pixel point set are obtained, and finally, a gray scale value of a pixel point of which a gray scale value is in the first gray scale value interval in the pixel point set is replaced with a set gray scale value, so that noise reduction of the current page is achieved.
The noise reduction interval corresponding to the noise reduction function of the present application may be a default noise reduction interval for performing noise reduction processing by the system, or a noise reduction interval for performing noise reduction processing set in response to a selection operation of a user. It can be understood that, when the denoising function is set, a corresponding denoising interval may be set in advance, end point values of the left side and the right side of the denoising interval may be adjusted, and the adjusting instruction may be an instruction automatically set by the system according to a current denoising processing result or an application scene, or an adjusting instruction formed according to a selection operation of a user. When the adjusting instruction is an instruction automatically set by the system, the noise reduction interval corresponding to the noise reduction function is a default noise reduction interval of the system, and when the adjusting instruction is an instruction formed according to the selection operation of the user, the noise reduction interval corresponding to the noise reduction function is the noise reduction interval set in response to the selection operation of the user.
Further, because a corresponding mapping relation is pre-established between the noise reduction interval and the first gray value interval, the end point values of the noise reduction interval are different, and the gray values of the corresponding first gray value interval are also different. For example, when the left end point value of the noise reduction interval is 0 and the right end point value is any value between 0 and 1, the first gray scale value interval corresponding to the noise reduction interval is (0, 15), and when the left and right end point values of the noise reduction interval are both 0, the first gray scale value interval corresponding to the noise reduction interval is 0, and when the left and right end point values of the noise reduction interval are both 1, the first gray scale value interval corresponding to the noise reduction interval is (0, 15).
Furthermore, after the noise reduction interval corresponding to the noise reduction function and the first gray value interval corresponding to the noise reduction interval are determined, in order to perform noise reduction processing on the pixel points corresponding to the first gray value interval in the current page, the method can acquire the pixel point set of the visual area in the current page and the gray value corresponding to each pixel point in the pixel point set, and then replace the gray value of the pixel point of which the gray value is in the first gray value interval in the pixel point set with the set gray value, so that noise reduction on the current page is achieved.
In a specific implementation manner, the gray value of the pixel point with the gray value in the first gray value interval in the pixel point set can be replaced by 0, or the gray value is smaller than 3, 5 and the like, so that all non-black pixel points in the current page can be processed into white or close to white for display, and the black-white contrast of the current page is obviously improved.
In one embodiment, the noise reduction prompt includes a noise reduction function start prompt and a noise reduction interval change prompt, and the noise reduction conditions corresponding to different noise reduction prompts are different.
In this embodiment, before determining that the processing result of the user on the noise reduction prompt reaches the preset noise reduction condition, the application may first obtain the processing result of the user on the noise reduction prompt, and determine whether the processing result reaches the preset noise reduction condition, where the noise reduction prompt may be a noise reduction function start prompt or a noise reduction interval change prompt, and the noise reduction conditions corresponding to different noise reduction prompts are different.
For example, when the noise reduction prompt sent to the user by the present application is a noise reduction function start prompt, the corresponding noise reduction condition may be that the noise reduction function is started, and when the noise reduction prompt sent to the user by the present application is a noise reduction interval change prompt, the corresponding noise reduction condition may be that the changed noise reduction interval is a noise reduction interval capable of performing noise reduction processing, so that the current page may be continuously subjected to noise reduction according to the changed noise reduction interval.
In an embodiment, when the noise reduction prompt is a noise reduction function start prompt, the determining in S140 whether the processing result of the noise reduction prompt by the user reaches a preset noise reduction condition may include:
s141: and if the processing result of the noise reduction function starting prompt by the user is the confirmation of starting the noise reduction function, determining that the processing result of the noise reduction function starting prompt by the user reaches a preset noise reduction condition.
S142: and if the processing result of the user to the noise reduction function starting prompt is to cancel the starting of the noise reduction function, determining that the processing result of the user to the noise reduction function starting prompt does not reach the preset noise reduction condition.
In this embodiment, when the denoising prompt sent to the user by the present application is a denoising function starting prompt, it indicates that the denoising function of the current page is not started, but the current page needs to be denoised, and at this time, after a processing result of the denoising function starting prompt by the user is received, it may be determined whether denoising is needed according to the processing result of the denoising function starting prompt by the user.
For example, when the processing result of the noise reduction function start prompt by the user is to cancel the start of the noise reduction function, it indicates that the user does not need to perform noise reduction on the current page, and at this time, it can be determined that the processing result of the noise reduction function start prompt by the user does not reach the preset noise reduction condition, and the current page does not need to perform noise reduction processing; and when the processing result of the user to the noise reduction function starting prompt is that the noise reduction function is confirmed to be started, indicating that the user wants to reduce noise of the current page, determining that the processing result of the user to the noise reduction function starting prompt reaches a preset noise reduction condition.
In one embodiment, the updating the noise reduction function according to the processing result of reaching the noise reduction condition in S150 may include:
s151: and updating the state of the noise reduction function according to the confirmation of starting the noise reduction function, wherein the state of the noise reduction function comprises an opening state and a closing state.
In this embodiment, when the processing result of the user to turn on the denoising function prompt is to confirm that the denoising function is turned on, it indicates that the user wants to denoise the current page, and it may be determined that the processing result of the user to turn on the denoising function prompt reaches the preset denoising condition at this time.
In an embodiment, when the noise reduction prompt is a noise reduction interval change prompt, the determining in S140 whether the processing result of the noise reduction prompt by the user reaches a preset noise reduction condition may include:
s1041: if the processing result of the user to the noise reduction interval change prompt is to confirm the change of the noise reduction interval, displaying a noise reduction interval change interface in the current page, receiving a change operation triggered in the noise reduction interval change interface by the user, and judging whether the processing result of the user to the noise reduction interval change prompt reaches a preset noise reduction condition according to the change operation.
S1042: and if the processing result of the user to the noise reduction interval change prompt is to cancel the change of the noise reduction interval, determining that the processing result of the user to the noise reduction interval change prompt does not reach the preset noise reduction condition.
In this embodiment, when the noise reduction prompt is the noise reduction interval change prompt, the application may receive a processing result of the user on the noise reduction interval change prompt, where the processing result may be to confirm that the noise reduction interval is changed or to cancel the change of the noise reduction interval. After the user confirms to change the noise reduction interval, in order to further clarify the noise reduction interval which the user wants to change, the application can display a noise reduction interval change interface on the current page, for example, when the user clicks a confirmation key, the current page can jump to the noise reduction interval change interface of the system, or a noise reduction option is displayed on the current page through a separate floating window. After a user executes corresponding change operation in the noise reduction interval change interface, the change operation triggered by the user in the noise reduction interval change interface can be received, and whether the processing result of the change prompt of the noise reduction interval of the user reaches the preset noise reduction condition or not is judged according to the change operation; and when the user cancels the change of the noise reduction interval, the user does not want to continue the noise reduction, and at the moment, the processing result of the change prompt of the noise reduction interval by the user can be determined to not reach the preset noise reduction condition.
Further, in the application, when a user sets a noise reduction interval or changes the noise reduction interval, the corresponding noise-reduced graphical representation can be displayed to the user in advance, and the user can preview the graphical representation effect in real time by dragging the endpoint value of the noise reduction interval so as to determine the final noise reduction interval.
In an embodiment, the determining, according to the change operation, whether a processing result of the noise reduction interval change prompt by the user reaches a preset noise reduction condition in S1041 may include:
s10410: and judging whether the change operation is to coincide the left and right side end points of the noise reduction interval displayed in the noise reduction interval change interface, wherein the gray value corresponding to the left side end point is 0, and the gray value corresponding to the right side end point is 0.
S10411: and if so, determining that the processing result of the change prompt of the noise reduction interval by the user does not reach the preset noise reduction condition.
S10412: otherwise, determining that the processing result of the user to the noise reduction interval change prompt reaches a preset noise reduction condition.
In this embodiment, when the left and right end points of the noise reduction interval are overlapped, the gray value corresponding to the left end point is 0, and the gray value corresponding to the right end point is 0, it indicates that the current page does not need to be subjected to gray processing. Therefore, after receiving a change operation of a user on a noise reduction interval, in order to further determine whether the changed noise reduction interval is a noise reduction interval during noise reduction processing, specific content of the change operation can be judged, and if the change operation is judged to be whether the left and right end points of the noise reduction interval displayed in a noise reduction interval change interface are overlapped, a gray value corresponding to the left end point is 0, and a gray value corresponding to the right end point is 0, if so, the changed noise reduction interval is the noise reduction interval during no noise reduction processing, and then, a processing result prompted by the user on the change of the noise reduction interval can be determined to not reach a preset noise reduction condition; if not, the changed noise reduction interval is the noise reduction interval during noise reduction processing, and at this time, the processing result of the change prompt of the noise reduction interval by the user can be determined to reach the preset noise reduction condition.
In one embodiment, the updating the noise reduction function according to the processing result of reaching the noise reduction condition in S150 may include:
s152: and updating the noise reduction interval corresponding to the noise reduction function according to the noise reduction interval contained in the change operation.
In the application, when it is determined that the processing result of the user to the noise reduction interval change prompt reaches the preset noise reduction condition, the noise reduction interval corresponding to the original noise reduction function can be updated according to the noise reduction interval included in the change operation, so that the updated noise reduction interval is used for performing noise reduction processing on the current page.
In an embodiment, as shown in fig. 2, fig. 2 is a schematic flow chart illustrating a process of determining whether a noise reduction function is enabled on a current page according to an embodiment of the present application; in S110, when it is detected that the current page is displayed in the ink screen, determining whether the current page starts a noise reduction function may include:
s111: and when the current page displayed in the ink screen is detected, acquiring the state of the noise reduction function stored in the system setting.
S112: and judging whether the current page is started with the noise reduction function or not according to the state of the noise reduction function.
In this embodiment, as shown in fig. 2, when it is detected that the current page is displayed in the ink screen, whether the noise reduction function is started on the current page may be determined, and when it is determined that the noise reduction function is started on the current page, the state of the noise reduction function stored in the system setting may be acquired, and whether the noise reduction function is started on the current page may be determined according to the state of the noise reduction function.
The states of the noise reduction function of the application can include an open state and a closed state, and the open state and the closed state can be switched according to an operation instruction of a user or according to default configuration of a system. For example, the user may open or close the noise reduction function according to the noise reduction function opening prompt, and the system may switch the opening state or the closing state of the noise reduction function according to the application scene of the current page or the application program corresponding to the current page, specifically select which manner to switch, and may select according to the actual situation, which is not limited herein.
In one embodiment, the determining whether the noise reduction function is turned on in S110 may include:
s101: and judging whether the noise reduction function is started on the current page or not according to whether the noise reduction function is started on the application program corresponding to the current page or not.
S102: or judging whether the denoising function is started on the current page according to whether the denoising function is started on the application scene corresponding to the current page.
In this embodiment, when determining whether the noise reduction function is turned on in the current page, the determination may be performed according to whether the noise reduction function is turned on in the application program corresponding to the current page, or according to whether the noise reduction function is turned on in the application scene corresponding to the current page.
For example, if the application program corresponding to the current page is a text reading application program, the setting condition of the noise reduction function of the text reading application program can be judged according to the system setting; if the application program corresponding to the current page is an instant messaging application program, judging the setting condition of the noise reduction function of the instant messaging application program according to system setting; or, if the display picture in the current page is a document class, judging according to the setting condition of the noise reduction function of the document class in the system setting; if the display picture in the current page is a video, the judgment can be made according to the setting condition of the noise reduction function of the video in the system setting, and the selection can be made according to the actual condition, without limitation.
In one embodiment, the step of counting the ratio of the number of gray pixels in the current page to the number of total pixels in S130 may include:
s131: and counting the number of gray pixel points in a second gray value interval in the visible area of the current page and the number of total pixel points in the visible area, wherein the second gray value interval is a system default pixel value interval or a pixel value interval preset by a user.
S132: and calculating the ratio of the number of the gray pixels in the current page to the number of the total pixels according to the number of the gray pixels and the number of the total pixels.
In this embodiment, when counting the ratio of the number of gray pixels in the current page to the number of total pixels, the number of gray pixels in the second gray value interval in the visible region of the current page and the number of total pixels in the visible region may be counted first, so that the ratio of the number of gray pixels in the current page to the number of total pixels may be calculated according to the number of gray pixels and the number of total pixels.
Further, the second gray scale interval may be a default gray scale interval of the system, or may be a gray scale interval set by the user. For example, the system may pre-configure a second gray value interval with a gray value close to black, so that the ratio of non-black pixel values in the current page may be roughly counted; or, the user may configure the gray value of the second gray value interval according to the needs of the user, and if the user wants the black-white contrast to be obvious, the second gray value interval may be set to be (0, 15), and when the user does not have high requirements for the black-white contrast and pays more attention to the details of the content displayed on the current page, the right-side end point value of the second gray value interval may be set to be a value smaller than 15, such as 12, 10, and the like, and the setting may be performed according to the actual situation, which is not described herein again.
In one embodiment, the sending the noise reduction prompt to the user in S140 may include:
s411: and judging whether the current page starts a noise reduction function or not.
S412: and if the denoising function is not started, sending a denoising function starting prompt to a user.
S413: and if the noise reduction function is started, sending a noise reduction interval change prompt to a user.
In this embodiment, when sending a noise reduction prompt to a user, the present application may first determine whether a noise reduction function is turned on in a current page, and if the noise reduction function is turned on, it is counted that a ratio of the number of gray pixels in the current page to the number of total pixels exceeds a set ratio, indicating that a current noise reduction effect is not obvious, and in order to further reduce noise, the present application may send a noise reduction interval change prompt to the user, so that the user changes a current noise reduction interval according to the prompt; if the denoising function is not started, a denoising function starting prompt can be sent to a user, so that the user can start the denoising function to denoise the current page.
The following describes the page noise reduction device provided in the embodiment of the present application, and the page noise reduction device described below and the page noise reduction method described above may be referred to correspondingly.
In an embodiment, as shown in fig. 3, fig. 3 is a schematic structural diagram of a page noise reduction device provided in an embodiment of the present application; the application also provides a page noise reduction device, which is applied to electronic ink screen equipment, the device comprises a function detection module 210, a page noise reduction module 220, a first statistic module 230, a noise reduction prompt module 240, a noise reduction function update module 250, a page display module 260 and a second statistic module 270, and the device specifically comprises the following components:
the function detecting module 210 is configured to, when a current page displayed in an ink screen is detected, determine whether the current page starts a noise reduction function.
The page denoising module 220 is configured to denoise the current page based on the denoising function if the denoising function is started.
The first statistical module 230 is configured to, after denoising of the current page, count a ratio of the number of gray pixels in the current page to the number of total pixels, and determine whether the ratio exceeds a set ratio.
And the noise reduction prompting module 240 is configured to send a noise reduction prompt to the user if the noise reduction prompt exceeds the set ratio, and determine whether a processing result of the noise reduction prompt by the user reaches a preset noise reduction condition.
And a denoising function updating module 250, configured to update the denoising function according to the processing result that the denoising condition is achieved, and return to execute the denoising step for the current page based on the denoising function if the current page is not the current page.
And the page display module 260 is configured to continue to display the current page if the ratio does not exceed the set ratio or if the processing result of the user on the noise reduction prompt does not meet the noise reduction condition.
And a second counting module 270, configured to return to perform the step of counting a ratio of the number of gray pixels in the current page to the number of total pixels if the noise reduction function is not turned on.
In the above embodiment, when a current page displayed in an ink screen is detected, whether a noise reduction function is started on the current page may be determined first, if the noise reduction function is started, the noise reduction function may be used to reduce noise on the current page, and after noise reduction is performed, a ratio of the number of gray pixels in the current page to the number of total pixels is counted, whether the ratio exceeds a set ratio is determined, if the ratio exceeds the set ratio, it indicates that the noise reduction effect of the current page does not reach an expected effect, at this time, a noise reduction prompt may be sent to a user, and a processing result of the noise reduction prompt by the user is received, in order to determine whether the user needs to continue to perform noise reduction, the application may determine whether a processing result of the noise reduction prompt by the user reaches a preset noise reduction condition, if the noise reduction condition is reached, the noise reduction function may be updated according to the processing result when the noise reduction condition is reached, if the noise reduction interval of the current noise reduction function is changed, and the noise reduction is performed on the current page according to the changed noise reduction interval, so that characters in the current page are clearer, and the reading experience is stronger; if the ratio does not exceed the set ratio or the processing result of the user on the noise reduction prompt does not reach the noise reduction condition, continuing to display the current page; and then, if the noise reduction function is not started on the current page, counting the ratio of the number of gray pixels in the current page to the number of total pixels, determining whether the ratio exceeds a set ratio, if so, indicating that the current page needs to be subjected to noise reduction, sending a noise reduction prompt to a user, updating the noise reduction function according to the processing result when the noise reduction condition is met after determining that the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition, if the noise reduction function of the current page is started, and reducing the noise of the current page by using the noise reduction function after the noise reduction function is started, so that the black-white contrast of the current page is increased, and the display effect of the current page is improved.
In addition, when judging whether the current page needs to be denoised or whether the denoising effect of the current page reaches the expected effect, the method adopts the operation of counting the ratio of the number of gray pixels in the current page to the number of total pixels, and compared with the existing complex denoising algorithm, the method can quickly evaluate the processing effect of the current page, thereby effectively improving the processing efficiency of page denoising, reducing the resource consumption and being more suitable for being used on low-power-consumption mobile equipment.
In one embodiment, the present application further provides a storage medium having stored therein computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the page denoising method according to any one of the above embodiments.
In one embodiment, the present application further provides an electronic ink screen device comprising: one or more processors, and a memory.
The memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the page denoising method as in any one of the above embodiments.
Fig. 4 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment of the present disclosure, where the computer device 300 may be provided as a server, as shown in fig. 4. Referring to fig. 4, the computer device 300 includes a processing component 302 that further includes one or more processors and memory resources, represented by memory 301, for storing instructions, such as application programs, that are executable by the processing component 302. The application programs stored in memory 301 may include one or more modules that each correspond to a set of instructions. Further, the processing component 302 is configured to execute instructions to perform the page denoising method of any of the embodiments described above.
The computer device 300 may also include a power component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input output (I/O) interface 305. The computer device 300 may operate based on an operating system stored in memory 301, such as Windows Server, unix, linux, free BSDTM, or the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, the embodiments may be combined as needed, and the same and similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (15)
1. A page noise reduction method is applied to an electronic ink screen device, and comprises the following steps:
when a current page displayed in an ink screen is detected, judging whether the current page starts a noise reduction function or not;
if the denoising function is started, denoising the current page based on the denoising function;
after the noise of the current page is reduced, counting the ratio of the number of gray pixel points in the current page to the number of total pixel points, and determining whether the ratio exceeds a set ratio or not;
if the ratio exceeds the set ratio, sending a noise reduction prompt to a user, and judging whether the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition or not;
if so, updating the denoising function according to the processing result of the denoising condition, and returning to execute the denoising step of the current page based on the denoising function;
if the ratio is not more than the set ratio or if the processing result of the user on the noise reduction prompt does not reach the noise reduction condition, continuing to display the current page;
and if the denoising function is not started, returning to the step of performing statistics on the ratio of the number of the gray pixels in the current page to the number of the total pixels.
2. The method of claim 1, wherein the denoising the current page based on the denoising function comprises:
determining a noise reduction interval corresponding to the noise reduction function and a first gray value interval corresponding to the noise reduction interval, wherein the noise reduction interval is a default noise reduction interval for performing noise reduction processing of a system or a noise reduction interval for performing noise reduction processing set in response to selection operation of a user;
acquiring a pixel point set of a visible area in the current page and a gray value corresponding to each pixel point in the pixel point set;
and replacing the gray value of the pixel point with the set gray value in the first gray value interval to reduce the noise of the current page.
3. The method for reducing the noise of the page according to claim 1, wherein the noise reduction prompts comprise noise reduction function starting prompts and noise reduction interval changing prompts, and the noise reduction conditions corresponding to different noise reduction prompts are different.
4. The method for reducing noise of a page according to claim 3, wherein when the noise reduction prompt is a noise reduction function start prompt, the determining whether the processing result of the noise reduction prompt by the user reaches a preset noise reduction condition includes:
if the processing result of the noise reduction function starting prompt of the user is to confirm that the noise reduction function is started, determining that the processing result of the noise reduction function starting prompt of the user reaches a preset noise reduction condition;
and if the processing result of the user to the noise reduction function starting prompt is to cancel the starting of the noise reduction function, determining that the processing result of the user to the noise reduction function starting prompt does not reach the preset noise reduction condition.
5. The method for reducing noise of a page according to claim 4, wherein said updating the noise reduction function according to the processing result of the noise reduction condition comprises:
and updating the state of the noise reduction function according to the confirmation of starting the noise reduction function, wherein the state of the noise reduction function comprises an opening state and a closing state.
6. The method for reducing noise of a page according to claim 3, wherein when the noise reduction prompt is a noise reduction interval change prompt, the determining whether the processing result of the noise reduction prompt by the user reaches a preset noise reduction condition includes:
if the processing result of the noise reduction interval change prompt by the user is to confirm the change of the noise reduction interval, displaying a noise reduction interval change interface in the current page, receiving a change operation triggered by the user in the noise reduction interval change interface, and judging whether the processing result of the noise reduction interval change prompt by the user reaches a preset noise reduction condition according to the change operation;
and if the processing result of the user to the noise reduction interval change prompt is to cancel the change of the noise reduction interval, determining that the processing result of the user to the noise reduction interval change prompt does not reach the preset noise reduction condition.
7. The method for reducing the noise of the page according to claim 6, wherein the determining whether the processing result of the user to the noise reduction interval change prompt reaches a preset noise reduction condition according to the change operation includes:
judging whether the change operation is to coincide the left and right side end points of the noise reduction interval displayed in the noise reduction interval change interface, wherein the gray value corresponding to the left side end point is 0, and the gray value corresponding to the right side end point is 0;
if so, determining that the processing result of the user to the noise reduction interval change prompt does not reach the preset noise reduction condition;
otherwise, determining that the processing result of the user to the noise reduction interval change prompt reaches a preset noise reduction condition.
8. The method for reducing noise of a page according to claim 7, wherein said updating the noise reduction function according to the processing result of the noise reduction condition includes:
and updating the noise reduction interval corresponding to the noise reduction function according to the noise reduction interval contained in the change operation.
9. The method for reducing page noise according to any of claims 1-8, wherein said determining whether the current page has a noise reduction function turned on comprises:
acquiring states of a noise reduction function stored in system setting, wherein the states of the noise reduction function comprise an opening state and a closing state, and the opening state and the closing state are switched according to an operation instruction of a user or default configuration of a system;
and judging whether the noise reduction function is started on the current page or not according to the state of the noise reduction function.
10. The method for reducing page noise according to any of claims 1-8, wherein said determining whether the current page has a noise reduction function turned on comprises:
judging whether the noise reduction function is started on the current page or not according to whether the noise reduction function is started on the application program corresponding to the current page or not;
or judging whether the denoising function is started on the current page according to whether the denoising function is started on the application scene corresponding to the current page.
11. The method for reducing noise of a page according to any one of claims 1 to 8, wherein the calculating a ratio of the number of gray pixels to the number of total pixels in the current page includes:
counting the number of gray pixel points in a second gray value interval in a visible area of the current page and the number of total pixel points in the visible area, wherein the second gray value interval is a system default pixel value interval or a pixel value interval preset by a user;
and calculating the ratio of the number of the gray pixels in the current page to the number of the total pixels according to the number of the gray pixels and the number of the total pixels.
12. The method for reducing page noise according to any of claims 1-8, wherein said sending a noise reduction prompt to a user comprises:
judging whether the current page starts a noise reduction function or not;
if the noise reduction function is not started, sending a noise reduction function starting prompt to a user;
and if the noise reduction function is started, sending a noise reduction interval change prompt to a user.
13. A page noise reduction device is applied to electronic ink screen equipment, and comprises:
the function detection module is used for judging whether a noise reduction function is started on a current page when the current page is displayed in an ink screen;
the page denoising module is used for denoising the current page based on the denoising function if the denoising function is started;
the first statistical module is used for counting the ratio of the number of gray pixel points in the current page to the number of total pixel points after the noise of the current page is reduced, and determining whether the ratio exceeds a set ratio or not;
the noise reduction prompting module is used for sending a noise reduction prompt to a user if the noise reduction prompt exceeds the set ratio, and judging whether the processing result of the user on the noise reduction prompt reaches a preset noise reduction condition or not;
a denoising function updating module, configured to update the denoising function according to the processing result that the denoising condition is met if the current page is in the page, and return to execute the denoising step for the current page based on the denoising function;
the page display module is used for continuously displaying the current page if the set ratio is not exceeded or the processing result of the user on the noise reduction prompt does not reach the noise reduction condition;
and the second statistical module is used for returning to execute the step of counting the ratio of the number of the gray pixel points in the current page to the number of the total pixel points if the noise reduction function is not started.
14. A storage medium, characterized by: the storage medium has stored therein computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the page denoising method of any one of claims 1-12.
15. An electronic ink screen device, comprising: one or more processors, and a memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the page denoising method of any one of claims 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211158238.8A CN115565496B (en) | 2022-09-22 | 2022-09-22 | Page noise reduction method and device, storage medium and electronic ink screen equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211158238.8A CN115565496B (en) | 2022-09-22 | 2022-09-22 | Page noise reduction method and device, storage medium and electronic ink screen equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115565496A true CN115565496A (en) | 2023-01-03 |
CN115565496B CN115565496B (en) | 2023-05-26 |
Family
ID=84741777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211158238.8A Active CN115565496B (en) | 2022-09-22 | 2022-09-22 | Page noise reduction method and device, storage medium and electronic ink screen equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115565496B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116935808A (en) * | 2023-07-28 | 2023-10-24 | 广州文石信息科技有限公司 | Display method, device and equipment of electronic ink screen and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007052202A (en) * | 2005-08-17 | 2007-03-01 | Fuji Xerox Co Ltd | Display driving device and display driving method for display medium having memory property |
CN108847187A (en) * | 2018-06-05 | 2018-11-20 | 掌阅科技股份有限公司 | Screensaver displaying method, ink screen equipment and the storage medium of ink screen equipment |
CN111627399A (en) * | 2020-06-16 | 2020-09-04 | 掌阅科技股份有限公司 | Method, terminal and computer readable storage medium capable of locally transforming display colors |
CN112184595A (en) * | 2020-10-23 | 2021-01-05 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and image display method thereof |
CN113314079A (en) * | 2021-05-31 | 2021-08-27 | 深圳市国华光电科技有限公司 | Picture display method and device, electronic equipment and storage medium |
CN113377485A (en) * | 2021-07-07 | 2021-09-10 | 掌阅科技股份有限公司 | Refreshing display method of ink screen device, electronic device and storage medium |
CN114863432A (en) * | 2022-05-31 | 2022-08-05 | 青岛海信移动通信技术股份有限公司 | Terminal device, contrast adjusting method, device and medium |
-
2022
- 2022-09-22 CN CN202211158238.8A patent/CN115565496B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007052202A (en) * | 2005-08-17 | 2007-03-01 | Fuji Xerox Co Ltd | Display driving device and display driving method for display medium having memory property |
CN108847187A (en) * | 2018-06-05 | 2018-11-20 | 掌阅科技股份有限公司 | Screensaver displaying method, ink screen equipment and the storage medium of ink screen equipment |
CN111627399A (en) * | 2020-06-16 | 2020-09-04 | 掌阅科技股份有限公司 | Method, terminal and computer readable storage medium capable of locally transforming display colors |
CN112184595A (en) * | 2020-10-23 | 2021-01-05 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and image display method thereof |
CN113314079A (en) * | 2021-05-31 | 2021-08-27 | 深圳市国华光电科技有限公司 | Picture display method and device, electronic equipment and storage medium |
CN113377485A (en) * | 2021-07-07 | 2021-09-10 | 掌阅科技股份有限公司 | Refreshing display method of ink screen device, electronic device and storage medium |
CN114863432A (en) * | 2022-05-31 | 2022-08-05 | 青岛海信移动通信技术股份有限公司 | Terminal device, contrast adjusting method, device and medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116935808A (en) * | 2023-07-28 | 2023-10-24 | 广州文石信息科技有限公司 | Display method, device and equipment of electronic ink screen and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115565496B (en) | 2023-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3836534B1 (en) | Imaging control method, electronic device, and computer-readable storage medium | |
CN109242802B (en) | Image processing method, image processing device, electronic equipment and computer readable medium | |
EP2981934B1 (en) | Logo presence detector based on blending characteristics | |
CN105407296B (en) | Real-time video enhancement method and device | |
US8891867B2 (en) | Image processing method | |
US8731248B2 (en) | Method of performing eye circle correction an image and related computing device | |
US11490024B2 (en) | Method for imaging controlling, electronic device, and non-transitory computer-readable storage medium | |
CN112767392B (en) | Image definition determining method, device, equipment and storage medium | |
CN108205998B (en) | Controller for transparent display and related control method | |
CN109618228B (en) | Video enhancement control method and device and electronic equipment | |
CN109640169B (en) | Video enhancement control method and device and electronic equipment | |
CN106412383A (en) | Processing method and apparatus of video image | |
CN110766637B (en) | Video processing method, processing device, electronic equipment and storage medium | |
CN107690804B (en) | Image processing method and user terminal | |
CN107452348B (en) | Method and system for reducing noise of display picture, computer device and readable storage medium | |
CN115565496A (en) | Page noise reduction method and device, storage medium and electronic ink screen equipment | |
WO2016158001A1 (en) | Information processing device, information processing method, program, and recording medium | |
CN112819695B (en) | Image super-resolution reconstruction method and device, electronic equipment and medium | |
US20220058781A1 (en) | Image processing device and image enhancing method thereof | |
US20110286672A1 (en) | Translucent image detection apparatus, translucent image edge detection apparatus, translucent image detection method, and translucent image edge detection method | |
CN112887639A (en) | Image processing method, device, system, electronic device and storage medium | |
CN116504190B (en) | Image processing method and device for electronic ink screen and related equipment | |
US20150029204A1 (en) | Dynamic localized contrast enhancement method for image and computer readable medium of the same | |
CN114418848B (en) | Video processing method and device, storage medium and electronic equipment | |
CN110662115A (en) | Video processing method and device, electronic equipment and storage medium |
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 |