Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and electronic device for processing subject resources

Active Publication Date: 2018-01-02
BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present application provides a method for processing theme resources and an electronic device, which solves the problems in the prior art when a theme is applied to a certain type of skin, which causes difficulty in writing due to the consistent color tone of the theme and the text on the skin. identified technical issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and electronic device for processing subject resources
  • Method and electronic device for processing subject resources
  • Method and electronic device for processing subject resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] This embodiment provides a method for processing subject resources, which is applied to electronic equipment, wherein the electronic equipment can be a computer (for example: tablet computer, desktop computer, notebook computer, palmtop computer, vehicle-mounted computer, etc.), or Mobile phones (such as feature phones, smart phones, etc.), smart TVs, digital cameras, game consoles, etc., the embodiment of the present application does not specifically limit what kind of electronic device the electronic device is.

[0075] Specifically, as figure 1 shown, including:

[0076] Step S101: When the current skin resource or the current theme resource of the application is changed, extract the theme picture from the current theme resource of the application.

[0077] For example, the application program may be: browser application program, game application program, music application program, video application program, shopping application program, system optimization applicat...

Embodiment approach

[0083] The first one, the step S102, includes:

[0084] Read the RGB (Red-Green-Blue, red-green-blue) value of each pixel in the subject picture; convert the RGB value of each pixel into the each pixel according to the color space conversion formula the gray value; count the first pixel number Ca whose gray value is greater than the preset gray value in the subject picture, and the second pixel number Cb whose gray value is less than or equal to the preset gray value; if If Ca>Cb, it is determined that the color system of the theme picture is a light color system; otherwise, it is determined that the color system of the theme picture is a dark color system. Wherein, the value range of the preset grayscale value is: 120-130, for example: 120, 125, 130. The embodiment of the present application does not specifically limit the specific value of the grayscale value.

[0085] The second type, the step S102, includes:

[0086] Read the RGB value of each pixel in the theme picture;...

Embodiment 2

[0106] The embodiment of the present application provides an electronic device, such as figure 2 shown, including:

[0107] The first extracting unit 201 is used to extract theme pictures from current theme resources of the application;

[0108] The first determination unit 202 is configured to determine the color system of the theme picture;

[0109] The second determination unit 203 is configured to determine that the color of the text information is the first color based on the color system of the theme picture, wherein the text information is text information on an interface element of the application program, and the text information is the first color. The contrast between the first color and the color system of the theme picture is greater than a preset contrast;

[0110] The second extracting unit 204 is configured to extract a first sub-skin resource corresponding to the first color from the current skin resource of the application program based on the first color,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for processing theme resources, comprising: extracting theme pictures from current theme resources of an application program; determining the color system of the theme picture; and determining the color of the text information based on the color system of the theme picture The color is a first color, and the text information is text information on an interface element of the application; based on the first color, a second color corresponding to the first color is extracted from a current skin resource of the application. A sub-skin resource, the current parameter of the preset configuration item in the first sub-skin resource is the first color parameter corresponding to the first color, and the preset configuration item is used to control the color of the text information; Apply the first sub-skin resource. At the same time, the invention also discloses an electronic device.

Description

technical field [0001] The present invention relates to the field of electronic technology, in particular to a method for processing subject resources and electronic equipment. Background technique [0002] Related technical terms: [0003] Skin resources: including a complete set of image resources, and configuration files used to control the color values ​​and layout parameters of each interface element of the application. The skin can be used to control the layout of each interface element (for example: the position and shape of each control, etc.) . [0004] Theme resource: It includes a picture displayed on the background color of the main interface and under the foreground control. Different theme resources can be used under the same skin resource, and different skin resources can be used under the same theme resource. [0005] In existing browsers, skinning is a basic function, providing various browser layouts and styles to meet different user preferences. Usually...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445G06T7/90G06T11/00
Inventor 陈建军柯津津苗金泉
Owner BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products