US 12,327,301 B2
Method and apparatus for configuring color, device, medium and product
Yanyan Li, Beijing (CN); and Dejing Dou, Beijing (CN)
Assigned to Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed by Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed on Feb. 7, 2022, as Appl. No. 17/650,214.
Claims priority of application No. 202110734333.7 (CN), filed on Jun. 30, 2021.
Prior Publication US 2022/0156988 A1, May 19, 2022
Int. Cl. G06T 11/00 (2006.01); G06T 7/90 (2017.01); G06T 11/20 (2006.01)
CPC G06T 11/001 (2013.01) [G06T 7/90 (2017.01); G06T 11/206 (2013.01); G06T 2207/30176 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method for configuring a color, performed by a server, the method comprising: constructing a preset target function based on a color entropy and a constraint condition, wherein the color entropy is for measuring a degree of differentiation between colors, and the constraint condition is constructed based on parameters including an entity vector and a color vector and is for measuring a degree of association between a color and an entity; acquiring a set of chart entities in a chart; determining target color information corresponding to the chart entities in the set of the chart entities based on the preset target function and the constraint condition, wherein the preset target function is an optimization function with an optimization purpose of maximizing the degree of differentiation between colors and maximizing degrees of associations between colors and entities; and configuring colors corresponding to the chart entities in the set of the chart entities based on the target color information, and displaying the chart entities and the colors correspondingly on a terminal wherein the determining the target color information corresponding to the chart entities in the set of the chart entities based on the preset target function and the constraint condition comprises: determining respective target entity vectors corresponding to the chart entities in the set of the chart entities; substituting the respective target entity vectors into the preset target function under the constraint condition, solving an extreme value of the preset target function, determining color vectors obtained from the preset target function when the preset target function is at the extreme value in a situation where the constraint condition is satisfied as target color vectors, and determining the target color vectors as the target color information corresponding to the chart entities in the set of the chart entities.