CN102306296A - Color catching method and system thereof - Google Patents

Color catching method and system thereof Download PDF

Info

Publication number
CN102306296A
CN102306296A CN201110169841A CN201110169841A CN102306296A CN 102306296 A CN102306296 A CN 102306296A CN 201110169841 A CN201110169841 A CN 201110169841A CN 201110169841 A CN201110169841 A CN 201110169841A CN 102306296 A CN102306296 A CN 102306296A
Authority
CN
China
Prior art keywords
color
catching
rgb value
preset
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201110169841A
Other languages
Chinese (zh)
Inventor
陈佳文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI DONGYOU SOFTWARE TECHNOLOGY CO LTD
Original Assignee
SHANGHAI DONGYOU SOFTWARE TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI DONGYOU SOFTWARE TECHNOLOGY CO LTD filed Critical SHANGHAI DONGYOU SOFTWARE TECHNOLOGY CO LTD
Priority to CN201110169841A priority Critical patent/CN102306296A/en
Publication of CN102306296A publication Critical patent/CN102306296A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a color catching method and a system thereof. The method comprises the steps of: (1) presetting a color; converting the preset color into a RGB value; setting a region to be caught; (2) catching an image of the current region; (3) analyzing the RGB value for catching an image pixel; (4) judging whether the current caught region has the preset color or not according to the RGB value of the color; if yes, executing step (5); if not, executing step (6); (5) catching successfully; and (6) catching unsuccessfully. The system comprises a region setting module for setting the image catching region, a region catching module for catching the image catching region, a color presetting module for presetting the color and converting the preset color into the color with the RGB value, and a color catching module for judging whether the current caught region has the preset color according to the RGB value of the color. According to the invention, the RGB value of the color is directly set for catching the color, which is color catching in real meaning; the steps are simple; and the identifying efficiency is high.

Description

Color method for catching and system thereof
Technical field
The present invention relates to field of image recognition, especially a kind of color method for catching and system thereof.
Background technology
Image recognition is to utilize computing machine that image is handled, analyzed and understands, with the target of discerning various different modes with to the technology of picture.Image recognition is a key areas of artificial intelligence.In order to work out the computer program of simulating human image recognition activity, people have proposed the pictures different model of cognition.
Pictorial stimulus acts on sense organ, and it is the process of a certain figure crossed of experience that people recognize it, also makes image re-recognize.In image recognition, the information that got into sense organ at that time should be arranged, also canned data in the memory to be arranged.Have only the process that compares through canned data and current information, could realize re-recognizing image.
Color is caught and to be belonged to a kind of of image recognition, and prior art needs sample to color earlier, as catches red the time; Earlier the object that will catch is sampled; Recognition image is converted into gray-scale map, the gray-scale map that obtains is discerned, could begin then to catch.
The color that prior art does not belong to is truly in theory caught, but the seizure of regional mosaic, and before catching, need sample relatively loaded down with trivial details earlier.
In view of this, this area inventor provides a kind of color method for catching and system thereof to the problems referred to above.
Summary of the invention
The invention provides a kind of color method for catching and system thereof, overcome the difficulty of prior art, the rgb value that color directly is set comes color is caught, and is color seizure truly, and step is easy, and recognition efficiency is high.
The present invention adopts following technical scheme:
The invention provides a kind of color method for catching, may further comprise the steps:
(1) preset color, and will preset color and be converted into rgb value, be provided with the zone that will catch;
(2) image of seizure current region;
(3) analyze the rgb value of catching image pixel;
(4) judge according to the rgb value of color whether current zone of catching has preset color, if, execution in step (5) then, if not, execution in step (6) then;
(5) catch successfully;
(6) catch failure.
The present invention also provides a kind of color capture system, it is characterized in that, comprising:
The zone that the picture catching zone is set is provided with module;
The regional capture module that the picture catching zone is caught;
Preset color, and will preset the color settings module that color is converted into rgb value; And
RGB according to color judges whether current zone of catching has the color capture module of preset color.
Owing to adopted above-mentioned technology, the rgb value that color method for catching of the present invention and system thereof directly are provided with color comes color is caught, and is color seizure truly, and step is easy, and recognition efficiency is high.
Further specify the present invention below in conjunction with accompanying drawing and embodiment.
Description of drawings
Fig. 1 is the process flow diagram of color method for catching of the present invention;
Fig. 2 is a color capture system module map of the present invention.
Embodiment
Introduce specific embodiment of the present invention through Fig. 1 to 2 below.
As shown in Figure 1, a kind of color method for catching of the present invention may further comprise the steps:
(1) preset color, and will preset color and be converted into rgb value, be provided with the zone that will catch;
(2) image of seizure current region;
(3) analyze the rgb value of catching image pixel;
(4) judge according to the rgb value of color whether current zone of catching has preset color, if, execution in step (5) then, if not, execution in step (6) then;
(5) catch successfully;
(6) catch failure.
As shown in Figure 2, a kind of color capture system of the present invention comprises: the zone that the picture catching zone is set is provided with module; The regional capture module that the picture catching zone is caught; Preset color, and will preset the color settings module that color is converted into rgb value; And judge according to the RGB of color whether current zone of catching has the color capture module of preset color.
The rgb color pattern (also is translated as " RGB "; Fewer usefulness) be a kind of color standard of industry member; Be to obtain color miscellaneous through variation and their stacks each other to red (R), green (G), blue (B) three Color Channels; RGB promptly is a color of representing three passages of red, green, blue; This standard almost comprised human eyesight can perception all colours, be one of the widest color system of utilization at present.
The rgb color pattern uses the RGB model to distribute one 0~255 intensity level in the scope as the RGB component of each pixel in the image.The RGB image only uses three kinds of colors, just can make them according to different mixed, on screen, reappears 16777216 kinds of colors.
Under the RGB pattern, every kind of RGB composition all can use the value from 0 (black) to 255 (whites).For example, shiny red uses R value 255, G value 0 and B value 0.When becoming score value to equate for all three kinds, produce gray shade.When the value of all the components was 255, the result was a pure white; When this value was 0, the result was an ater.
The present invention through function setup current region and current color such as X1=100, X2=1000, Y1=200, Y2=500, R=225, G=20, B=20, R1=10, G1=10, the B1=10 notes: R1G1B1 represents error.
This section coded representation is caught the color of (225,20,20) color lump in (100,1000,200,500) this rectangular region, the error of color lump is no more than 10.
Appear at as the color within the error in the middle of the zone of camera, camera will capture this color, and in this piece zone, follows the tracks of this color always.
Principle of work is that the camera per second is caught 60 pictures.Give Computer Processing the picture that captures.When Computer Processing, finding has current color lump in current region, program can be sent the order of seizure, then catches current color lump.
Instantiation: in the Yoga recreation, have red wrister on hand, hand lifted top, the crown when keeping for 5 seconds when a Yoga action needs the user, then in these 5 seconds overhead zone such as (800,900,300,400) seizure (225,20,20) redness.Per second returns the numerical value between (0-20).If red wrister was all arranged in 5 seconds, then return 100, if all do not have, then return 0.Last player can obtain the number between the 0-100, judges whether this action of player handles properly.
Can know that to sum up owing to adopted above-mentioned technology, the rgb value that color method for catching of the present invention and system thereof directly are provided with color comes color is caught, be color seizure truly, and step is easy, and recognition efficiency is high.
Above-described embodiment only is used to illustrate technological thought of the present invention and characteristics; Its purpose is to make those skilled in the art can understand content of the present invention and implements according to this; Can not only limit claim of the present invention with present embodiment; Be all equal variation or modifications of doing according to disclosed spirit, still drop in the claim of the present invention.

Claims (2)

1. a color method for catching is characterized in that, may further comprise the steps:
(1) preset color, and will preset color and be converted into rgb value, be provided with the zone that will catch;
(2) image of seizure current region;
(3) analyze the rgb value of catching image pixel;
(4) judge according to the rgb value of color whether current zone of catching has preset color, if, execution in step (5) then, if not, execution in step (6) then;
(5) catch successfully;
(6) catch failure.
2. a color capture system is characterized in that, comprising:
The zone that the picture catching zone is set is provided with module;
The regional capture module that the picture catching zone is caught;
Preset color, and will preset the color settings module that color is converted into rgb value; And
RGB according to color judges whether current zone of catching has the color capture module of preset color.
CN201110169841A 2011-06-22 2011-06-22 Color catching method and system thereof Pending CN102306296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110169841A CN102306296A (en) 2011-06-22 2011-06-22 Color catching method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110169841A CN102306296A (en) 2011-06-22 2011-06-22 Color catching method and system thereof

Publications (1)

Publication Number Publication Date
CN102306296A true CN102306296A (en) 2012-01-04

Family

ID=45380156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110169841A Pending CN102306296A (en) 2011-06-22 2011-06-22 Color catching method and system thereof

Country Status (1)

Country Link
CN (1) CN102306296A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459709A (en) * 2018-02-02 2018-08-28 河南大学 The wearable input unit and method with processing are captured based on optical imagery

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437169A (en) * 2008-12-19 2009-05-20 深圳市迅雷网络技术有限公司 Method and apparatus for implementing black and white of color image
CN201654846U (en) * 2009-05-18 2010-11-24 姜宁 Color property testing and judging system
CN102096822A (en) * 2010-12-24 2011-06-15 华为终端有限公司 Color discrimination method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437169A (en) * 2008-12-19 2009-05-20 深圳市迅雷网络技术有限公司 Method and apparatus for implementing black and white of color image
CN201654846U (en) * 2009-05-18 2010-11-24 姜宁 Color property testing and judging system
CN102096822A (en) * 2010-12-24 2011-06-15 华为终端有限公司 Color discrimination method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459709A (en) * 2018-02-02 2018-08-28 河南大学 The wearable input unit and method with processing are captured based on optical imagery

Similar Documents

Publication Publication Date Title
CN102142084B (en) Method for gesture recognition
CN104282002B (en) A kind of quick beauty method of digital picture
CN101882315B (en) The detection method of area of skin color
CN106503693A (en) The offer method and device of video front cover
US11334973B2 (en) Image colorizing method and device
EP1507232A3 (en) Method for classifying a digital image
CN111164563B (en) Image color adjusting system and color adjusting method of intelligent terminal
CN105844242A (en) Method for detecting skin color in image
JP5701181B2 (en) Image processing apparatus, image processing method, and computer program
CN102088539B (en) Method and system for evaluating pre-shot picture quality
JP7181157B2 (en) Inspection device and coating device equipped with the same
CN105451094B (en) Subtitle color adjustment method and device
CN103745430A (en) Rapid beautifying method of digital image
CN108647689A (en) Magic square restored method and its device based on GoogLeNet neural networks
CN107767356A (en) A kind of image processing method and device
CN108830908A (en) A kind of magic square color identification method based on artificial neural network
CN107256539B (en) Image sharpening method based on local contrast
CN101968849B (en) Picture red eye removal method based on 3G smart phone
CN107146258B (en) Image salient region detection method
CN102306296A (en) Color catching method and system thereof
CN111062926B (en) Video data processing method, device and storage medium
CN110689001B (en) Method for generating license plate training sample in complex environment
CN107578379A (en) A kind of processing method of chess robot to checkerboard image
CN103325101A (en) Extraction method and device of color characteristics
CN102005029A (en) Image processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120104

WD01 Invention patent application deemed withdrawn after publication