Dimensional-histogram-statistic-based touch pen color recognition method

A histogram statistics and color recognition technology, applied in the field of image processing, can solve the problems of unfavorable touch color, high manufacturing cost, low accuracy, etc., achieve high recognition accuracy, fast processing speed, and avoid misjudgment effects

Inactive Publication Date: 2011-04-20
GUANGDONG VTRON TECH CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the color recognition of the touch pen mainly has the following methods: (1) through magnetic pen recognition, that is, by placing a special magnetic pen on the touch panel to realize pen color recognition, but this method has a high manufacturing cost; (2) Through infrared induction recognition, the touch pen is placed in a special tray, and each tray corresponds to a color. When the infrared induction tray detects that the touch pen is removed from the tray, the color of the touch pen is confirmed, but this method The disadvantage is that it is easy to make mistakes because the touch pen is placed on the wrong tray, and it is necessary to realize that the number of recognized colors is proportional to the number of trays, which is not conducive to the increase of touch colors; (3) the touch pen is photographed by the camera. The method extracts the color of the touch pen and realizes pen color recognition. This method is popular because it can recognize any color and has the advantages of low cost. The image captured without a touch pen and the captured image with a touch pen are subtracted, and the position of the maximum difference is used as the position of the touch pen, and then the color of the image in a certain area near the position is extracted as the color of the touch pen
This method has two disadvantages: on the one hand, using the difference operation, it is easy to cause the obtained position to be only the place where the image noise is superimposed, rather than the real position of the touch pen; on the other hand, the average value of the image color in a certain area is taken as the The accuracy of the pen color is not high, especially when the pen body is illuminated by light, a large part of the pen body will appear off-white in the image. If the average value of the image color in a certain area is simply taken as the pen color, it will There is a big error with the actual pen color

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
  • Dimensional-histogram-statistic-based touch pen color recognition method
  • Dimensional-histogram-statistic-based touch pen color recognition method
  • Dimensional-histogram-statistic-based touch pen color recognition method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Such as figure 1 As shown, a color recognition method of a touch pen based on histogram statistics, first, set a search template to search the black frame range of the touch device in the image captured by the camera, and use the area of ​​the maximum sum of the RGB values ​​of the search template as the touch pen The area where the pen head is located takes the center point of the area as the center, and a certain pixel point as the radius as the sampling area. The sampling area is segmented by setting the saturation threshold, and then the color of the segmented image is enhanced. Finally, the histogram statistical technique is used. Determines the stylus color.

[0043] Specifically include the following steps:

[0044] (1) Determination of the position of the pen tip: the camera set on the edge or corner of the touch device captures the image at the border of the touch device, and then sets a search template to search for the black border range of the touch device ...

Embodiment 2

[0071] The structure of this embodiment is the same as that of Embodiment 1 except for the following features: in the step (2), the radius of the sampling area is 30 pixels.

Embodiment 3

[0073] The structure of this embodiment is the same as that of Embodiment 1 except for the following features: in the step (2), the radius of the sampling area is 60 pixels.

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 dimensional-histogram-statistic-based touch pen color recognition method, which comprises: setting a searching template to search for a black border range of a touch device in an image taken by a camera; using the region, in which the searching template is positioned and in which the sum of the red-green-blue (RGB) values of all pixels is maximum, as the region in which the pen head of the touch pen is positioned, and determining a sampling region by using the central point in the region as a center of a circle and by using a set pixel point as a radium; dividing the sampling region by setting a saturation threshold; enhancing the colors of the divided images; and determining the color of the touch pen by dimensional histogram statistic technology. In the invention, the adoption of color enhancement technology improves the anti-noise capacity and the adoption of the dimensional histogram statistic technology effectively avoids the influences of white-pixel-oriented display of the body of the pen in the image due to the light radiation of the body of the pen, so that the touch pen color recognition accuracy is high and the region wherein the pen head of the touch pen is positioned can be determined accurately and effectively; and the method also has the advantages of simplicity of operation, high processing speed, and the like.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a touch pen color recognition method based on histogram statistics. Background technique [0002] At present, the color recognition of the touch pen mainly has the following methods: (1) through magnetic pen recognition, that is, by placing a special magnetic pen on the touch panel to realize pen color recognition, but this method has a high manufacturing cost; (2) Through infrared induction recognition, the touch pen is placed in a special tray, and each tray corresponds to a color. When the infrared induction tray detects that the touch pen is removed from the tray, the color of the touch pen is confirmed, but this method The disadvantage is that it is easy to make mistakes because the touch pen is placed on the wrong tray, and it is necessary to realize that the number of recognized colors is proportional to the number of trays, which is not conducive to the increase of touch c...

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): G06T7/40
Inventor 肖平钟杰婷
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products