IP Library › Granted Patent US 10,438,377
Granted Patent B2
US 10,438,377 · App. 15/822,043 · Granted Oct 8, 2019

Method and device for processing a page

Inventor: Guosheng Li (Beijing, CN)
Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
G06T11/001G09G3/2003G09G5/02G09G2320/066G09G2320/0626G09G2360/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,438,377
App. No.
15/822,043
Granted
Oct 8, 2019
Kind
B2
Abstract

The disclosure relates to a method and device for processing a page. The method includes calculating an average brightness value of pixels in a page on a display; determining whether the average brightness value exceeds a preset brightness threshold; selecting target pixels from the page when the average brightness value exceeds the preset brightness threshold, wherein the target pixels include at least one of first target pixels and second target pixels, the first target pixels including sub-pixels, any two of which have a brightness difference that is less than a preset difference value, and the second target pixels including background pixels and character pixels; and performing a color reversion operation on the target pixels.

Claims (43)

1. A method for processing a page, comprising:

calculating an average brightness value of pixels in the page on a display;

determining whether the average brightness value exceeds a preset brightness threshold;

selecting target pixels from the page when the average brightness value exceeds the preset brightness threshold, wherein the target pixels include first target pixels, the first target pixels including sub-pixels, any two of sub-pixels in a pixel of the first target pixels have a brightness difference that is less than a preset difference value; and

performing a color reversion operation on the target pixels by:

determining a brightness value of each one of a plurality of sub-pixels in the target pixels;

calculating, for each one of the plurality of sub-pixels in the target pixels, a difference between a preset maximum brightness and the brightness value of the sub-pixel; and

performing a color reversion on the target pixels by using the difference as a reversed color of the sub-pixel.

2. The method of claim 1 , wherein the target pixels comprise the first target pixels, wherein each pixel in the page includes a plurality of sub-pixels, and wherein selecting the target pixels from the page comprises:

determining, for each pixel in the page, a brightness value of each of the plurality of sub-pixels of the pixel;

calculating a brightness difference between each of the plurality of sub-pixels of the pixel; and

selecting the pixel from the page when the brightness difference between each of the plurality of sub-pixels of the pixel is less than the preset difference value.

3. The method according to claim 1 , wherein calculating the average brightness value of the pixels in the page comprises:

calculating a sum of brightness values of all sub-pixels in the page;

calculating a total number of the sub-pixels in the page; and

calculating a ratio of the sum of brightness values of the sub-pixels with respect to the total number of the sub-pixels.

4. A device for processing a page, comprising:

a display;

a processor; and

a memory for storing instructions executable by the processor, wherein the processor is configured to:

calculate an average brightness value of pixels in the page on the display;

determine whether the average brightness value exceeds a preset brightness threshold;

select target pixels from the page when the average brightness value exceeds the preset brightness threshold, wherein the target pixels include first target pixels, the first target pixels-including sub-pixels, any two of sub-pixels in a pixel of the first target pixels have a brightness difference that is less than a preset difference value; and

perform a color reversion operation on the target pixels by:

determining a brightness value of each one of a plurality of sub-pixels in the target pixels;

calculating, for each one of the plurality of sub-pixels in the target pixels, a difference between a preset maximum brightness and the brightness value of the sub-pixel; and

performing a color reversion on the target pixels by using the difference as a reversed color of the sub-pixel.

5. The device of claim 4 , wherein the target pixels comprise the first target pixels, wherein each pixel in the page includes a plurality of sub-pixels, and wherein the processor is further configured to:

determine, for each pixel in the page, a brightness value of each of the plurality of sub-pixels of the pixel;

calculate brightness difference between each of the plurality of sub-pixels of the pixel; and

select the pixel from the page when the brightness difference between each of the plurality of sub-pixels of the pixel is less than the preset difference value.

6. The device according to claim 4 , wherein the processor is further configured to:

calculate a sum of brightness values of all sub-pixels in the page;

calculate a total number of the sub-pixels in the page; and

calculate a ratio of the sum of brightness values of the sub-pixels with respect to the total number of the sub-pixels.

7. A non-transitory computer-readable storage medium having instructions that, when executed by one or more processors of a terminal device, cause the terminal device to:

calculate an average brightness value of pixels in a page on a display;

determine whether the average brightness value exceeds a preset brightness threshold;

select target pixels from the page when the average brightness value exceeds the preset brightness threshold, wherein the target pixels include first target pixels, the first target pixels including sub-pixels, any two of sub-pixels in a pixel of the first target pixels have a brightness difference that is less than a preset difference value; and

perform a color reversion operation on the target pixels by:

determining a brightness value of each one of a plurality of sub-pixels in the target pixels;

calculating, for each one of the plurality of sub-pixels in the target pixels, a difference between a preset maximum brightness and the brightness value of the sub-pixel; and

performing a color reversion on the target pixels by using the difference as a reversed color of the sub-pixel.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 6, 2017
From: LI, GUOSHENG
To: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Reel/Frame 044725/0136 →
Priority Claims (1)
CN 2016 1 1056406 · Nov 25, 2016 · national
Continuity (1)
Related Publication 20180150978A1 · May 31, 2018