Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for extracting the color of picture characters

A text color, picture technology, applied in the field of picture processing

Inactive Publication Date: 2019-03-08
ZHEJIANG KOUBEI NETWORK TECH CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides a method and device for extracting the color of text in pictures, the main purpose of which is to solve the problem of how to accurately restore the color information of text in pictures

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
  • A method and device for extracting the color of picture characters
  • A method and device for extracting the color of picture characters
  • A method and device for extracting the color of picture characters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0058] The embodiment of the present invention provides a method for extracting the color of the text in the picture, which can achieve the purpose of accurately restoring the color information of the text in the picture, such as figure 1 As shown, the method includes:

[0059] 101. Acquire a text area in a picture, and map the text area into an image matrix, and the image matrix corresponds to position information in the picture. ...

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 and device for extracting the color of the picture characters, which relates to the technical field of picture processing and can accurately restore the color information of the characters in the picture. The method comprises the following steps of acquiring a text region in a picture, and mapping the text region into an image matrix, wherein the image matrix corresponds to the position information in the picture; according to the position information corresponding to the image matrix, counting the distribution of pixel color values within a preset boundary range of the image matrix, and extracting the pixel color values with the most distribution in the image matrix as background colors of the text region; calculating a degree of difference between a pixelcolor value in the image matrix and a background color of the text region, and extracting a pixel color value whose degree of difference meets a preset condition as a foreground color of the text region.

Description

technical field [0001] The invention relates to the technical field of picture processing, in particular to a method and device for extracting the color of picture characters. Background technique [0002] In every software application, the user interface (UI) is an essential part, and it is the scene where the terminal interacts with the user and interacts with the user. The most basic component for creating a user interface is a view, and through the layout of multiple levels of views, multiple interfaces required to be displayed by a software application are generated. [0003] Image view is used as the basic component for creating user interface to display any drawable object on the screen. In the process of creating a user interface in the prior art, the color of the text in the picture is usually converted into the form of a description mark, and then the obtained picture is directly generated according to the description mark to generate a picture view, and a machine...

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 Applications(China)
IPC IPC(8): G06K9/46G06K9/34
CPCG06V30/153G06V10/56
Inventor 贺三元张桀宁黄建锋罗晗璐
Owner ZHEJIANG KOUBEI NETWORK TECH CO LTD