IP Library Granted Patent US 11,615,513
Granted Patent B2
US 11,615,513 · App. 17/041,984 · Granted Mar 28, 2023

Control display method and electronic device

Inventors: Xuan Zhou (Shenzhen, CN); Chunliang Liu (Shanghai, CN); Yubo Zhang (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06T5/009G06T5/40G06T5/50H04N9/643H04N9/646
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 11,615,513
App. No.
17/041,984
Filed
Sep 25, 2020
Granted
Mar 28, 2023
Kind
B2
Examiner
LIU, LI
Art Unit
2666
USPC
382/274
Abstract

This application provides a control display method and an electronic device. The method includes: determining a display position of a control on a background picture; and then determining a display scene of the background picture at the display position of the control, where the display scene of the background picture at the display position of the control is determined based on display parameters of the background picture at the display position of the control; determining display parameters of the control based on the display scene of the background picture at the display position of the control, so that a contrast between the background picture displayed at the display position of the control and the control displayed based on the display parameters meets a first preset condition; and displaying the control based on the determined display parameters of the control. This application is applicable to control display of the electronic device.

Claims (25)

1. A control display method, comprising:

determining a display region of a control;

when a background picture at the display region of the control meets a second preset condition, determining that a display scene of the background picture at the display region of the control is a scene without a dominant color, wherein the second preset condition comprises a total quantity of pixels comprised in an interval with a largest quantity of pixels in a hue statistical histogram of the background picture at the display region of the control is less than or equal to a third quantity;

when the display scene of the background picture at the display region of the control is the scene without the dominant color, determining that a saturation value of a dominant color of the control is 0, and a hue value of the dominant color of the control is any value in an available value range, wherein the available value range comprises integers from 0 to 360; and when a maximum value value of the background picture at the display region of the control is greater than a second threshold, determining that a value value of the dominant color of the control is 0; and

displaying the control based on display parameters of the control, wherein the display parameters comprise the saturation value of the dominant color of the control, the hue value of the dominant color of the control and the value value of the dominant color of the control.

2. The method according to claim 1 , wherein the display parameters of the control further comprise at least one of a dominant color shadow of the control and a dominant color highlight of the control.

3. An electronic device, comprising:

a processor, configured to

determine a display region of a control;

when a background picture at the display region of the control meets a second preset condition, determining that a display scene of the background picture at the display region of the control a scene of a control region is a scene without a dominant color, wherein the second preset condition comprises a total quantity of pixels comprised in an interval with a largest quantity of pixels in a hue statistical histogram of the background picture at the display region of the control is less than or equal to a third quantity;

when the display scene of the background picture at the display region of the control is the scene without the dominant color, determining that a saturation value of a dominant color of the control is 0, and a hue value of the dominant color of the control is any value in an available value range, wherein the available value range comprises integers from 0 to 360; and when a maximum value value of the background picture at the display position of the control is greater than a second threshold, determining that a value value of the dominant color of the control is 0; and

a display, configured to display the control based on display parameters of the control determined by the processor, wherein the display parameters comprise the saturation value of the dominant color of the control, the hue value of the dominant color of the control and the value value of the dominant color of the control.

4. A non-transitory computer readable storage medium storing an instruction, which when executed on an electronic device, cause the electronic device to perform operations, the operations comprising:

determining a display region of a control;

when a background picture at the display region of the control meets a second preset condition, determining that a display scene of the background picture at the display region of the control is a scene without a dominant color, wherein the second preset condition comprises a total quantity of pixels comprised in an interval with a largest quantity of pixels in a hue statistical histogram of the background picture at the display region of the control is less than or equal to a third quantity;

when the display scene of the background picture at the display region of the control is the scene without the dominant color, determining that a saturation value of a dominant color of the control is 0, and a hue value of the dominant color of the control is any value in an available value range, wherein the available value range comprises integers from 0 to 360; and when a maximum value value of the background picture at the display region of the control is greater than a second threshold, determining that a value value of the dominant color of the control is 0; and

displaying the control based on display parameters of the control, wherein the display parameters comprise the saturation value of the dominant color of the control, the hue value of the dominant color of the control and the value value of the dominant color of the control.

5. The method according to claim 2 , wherein a saturation value of the dominant color shadow of the control is the saturation value of the dominant color of the control plus 30, a value of the dominant color shadow of the control is 30, and a hue value of the dominant color shadow of the control is the same as the hue value of the dominant color of the control.

6. The method according to claim 2 , wherein a saturation value of the dominant color highlight of the control is the saturation value of the dominant color of the control minus 30, and a value of the dominant color highlight of the control is 100, and a hue value of the dominant color highlight of the control is the same as the hue value of the dominant color of the control.

7. The electronic device according to 3 , wherein the display parameters further comprise at least one of a dominant color shadow of the control and a dominant color highlight of the control.

8. The electronic device according to claim 7 , wherein a saturation value of the dominant color shadow of the control is the saturation value of the dominant color of the control plus 30, a value of the dominant color shadow of the control is 30, and a hue value of the dominant color shadow of the control is the same as the hue value of the dominant color of the control.

9. The electronic device according to claim 7 , wherein a saturation value of the dominant color highlight of the control is the saturation value of the dominant color of the control minus 30, and a value of the dominant color highlight of the control is 100, and a hue value of the dominant color highlight of the control is the same as the hue value of the dominant color of the control.

10. The non-transitory computer readable storage medium according to 4 , wherein the display parameters further comprise at least one of a dominant color shadow of the control and a dominant color highlight of the control.

11. The non-transitory computer readable storage medium according to claim 10 , wherein a saturation value of the dominant color shadow of the control is the saturation value of the dominant color of the control plus 30, a value of the dominant color shadow of the control is 30, and a hue value of the dominant color shadow of the control is the same as the hue value of the dominant color of the control.

12. The non-transitory computer readable storage medium according to claim 10 , wherein a saturation value of the dominant color highlight of the control is the saturation value of the dominant color of the control minus 30, and a value of the dominant color highlight of the control is 100, and a hue value of the dominant color highlight of the control is the same as the hue value of the dominant color of the control.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 12, 2021
From: ZHOU, XUAN; LIU, CHUNLIANG; ZHANG, YUBO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 055572/0763 →
Priority Claims (1)
CN 201810266983.1 · Mar 28, 2018 · national
Continuity (1)
Related Publication 20210090224A1 · Mar 25, 2021