CN102431034A - Color recognition-based robot tracking method - Google Patents

Color recognition-based robot tracking method Download PDF

Info

Publication number
CN102431034A
CN102431034A CN201110259748XA CN201110259748A CN102431034A CN 102431034 A CN102431034 A CN 102431034A CN 201110259748X A CN201110259748X A CN 201110259748XA CN 201110259748 A CN201110259748 A CN 201110259748A CN 102431034 A CN102431034 A CN 102431034A
Authority
CN
China
Prior art keywords
robot
image
particular color
position coordinates
color
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.)
Granted
Application number
CN201110259748XA
Other languages
Chinese (zh)
Other versions
CN102431034B (en
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 Pa Xing Information technology company limited
Original Assignee
Tianjin University of Technology
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 Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN201110259748XA priority Critical patent/CN102431034B/en
Publication of CN102431034A publication Critical patent/CN102431034A/en
Application granted granted Critical
Publication of CN102431034B publication Critical patent/CN102431034B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Manipulator (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention relates to a color recognition-based robot tracking method. The method comprises the following steps of: step 1, capturing an image by using a camera mounted on a robot; step 2, analyzing the captured image and obtaining position coordinates of a specific color object; and step 3, generating a control instruction according to the position coordinates of the specific color object, controlling action of the robot, circularly executing the steps 1 to 3, and stopping the motion of the robot until the distance from the robot to the specific color object is less than a set value. The method is rational in design; by adopting a color recognition-based navigation tracking mode, the method can be realized by capturing the image with the camera and easily analyzing and processing and the captured image; the problems of complex algorithm, large operation and high consumption of system resource existing in the conventional visual navigation mode are solved; and the method has the characteristics of simple algorithm, small operation, high real-time property, small occupancy of the system resource and the like.

Description

Robot method for tracing based on color identification
Technical field
The invention belongs to the robot field, especially a kind of suitable robot navigation's robot method for tracing based on color identification.
Background technology
The development of Along with computer technology and Digital Image Processing hardware is paid close attention in the robot navigation based on the navigate mode of vision widely.With respect to the navigation of traditional guide rail, based on modes such as sensing data navigation, satellite navigations, vision guided navigation more flexibly, easier, and with low cost.Yet navigate through robotic vision, need carry out processing procedures such as colour system code conversion, color are cut apart, filtering to image, its complex algorithm, operand are big, need the system resource of labor, have reduced robot motion's real-time.Therefore, have higher requirement, press for a kind of convenient and swift, tracing algorithm that real-time is high for real-time based on the robot tracing system of vision.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, provide that a kind of real-time is high, algorithm is simple, operand is little and be applicable to robot navigation's under the specific environment robot method for tracing based on color identification.
The present invention solves its technical problem and takes following technical scheme to realize:
A kind of robot method for tracing based on color identification may further comprise the steps:
Step 1: utilize the camera of installing in the robot to grasp piece image;
Step 2: the position coordinates of the image that grasps being analyzed and obtained the particular color object;
Step 3: generate control command and control robot motion according to the position coordinates of particular color object, circulation execution in step 1 is to step 3, until the distance of robot and particular color object during less than setting value, and the robot stop motion.
And said particular color object is red object, green object or blue object.
And said step 2 comprises following processing procedure:
(1) be the YUV color-code with the rgb color code conversion;
(2) according to the color of particular color object, find marginal position X2, the X1 of particular color object, Y2, Y1, and then obtain the position coordinates of particular color object in this image: (X2-X1)/2, (Y2-Y1)/2.
And said step 3 comprises following processing procedure according to the position coordinates generation control command of particular color object:
(1) piece image is divided into left field, zone, front side and right side area on X-direction;
(2) if the position coordinates of particular color object is positioned at the right side area of image, then generate dextrorotary control command; If the position coordinates of particular color object is positioned at left field, then robot generates the control command to anticlockwise; Otherwise the position coordinates of particular color object is positioned at the zone, front side, and then robot generates proal control command.
And described left field, zone, front side and the ratio of right side area on the image X-direction are: 7/16,1/8,7/16.
Advantage of the present invention and good effect are:
The present invention adopts the navigation trace mode based on color identification; Utilize camera to grasp image and the image that grasps is carried out simple analysis handle and to realize; It is big and consumed the problem of a large amount of system resource to have solved complex algorithm, operand that traditional vision guided navigation mode exists; Overcome the problem that the guide rail navigate mode needs mounting guide rail and limited by the place simultaneously; Also overcome the sensor navigate mode and need use big quantity sensor and need carry out the problem that cycle is long, workload is big that a large amount of test corrected parameters exists, had that algorithm is simple, operand is little, real-time and system resource taken characteristics such as little sensor.In addition; The present invention only need increase a camera module for robot and can realize; Do not need other hardware device, than other navigate mode, it is simple in structure, with low cost; Can be widely used in robot system, be specially adapted under the specific occasion tracking for the particular color object with camera.
Description of drawings
Fig. 1 is a process chart of the present invention;
Fig. 2 is the area schematic of image division of the present invention.
The specific embodiment
Below in conjunction with accompanying drawing the embodiment of the invention is done further detailed description.
A kind of robot method for tracing based on color identification like Fig. 1, may further comprise the steps:
Step 1, utilize the camera installed in the robot to grasp piece image.
This step is utilized the camera of installing in the robot to be taken pictures in camera the place ahead and is grasped image; The resolution ratio of this image situation according to the actual requirements is provided with, and resolution ratio is high more, and navigation accuracy is also high more; But the requirement to hardware is also high more, and operand is also big more.Image with 1280x1024 resolution ratio describes below.
Step 2, the image that grasps analyzed and obtains the position coordinates of particular color object.
The particular color object can that is to say that this method for tracing can carry out tracing navigation to red object, green object and blue object for red body, green object and blue object.
This step specifically comprises following processing procedure:
(1) be the YUV color-code with the rgb color code conversion:
Because the image of general camera collection all is all to adopt the rgb color coding, therefore, need convert the rgb color coded system to YUV color-code mode according to following transformational relation:
Y=0.299*R+0.587*G+0.114*B;
U=-0.147*R-0.289*G+0.436*B=0.492*(B-Y);
V=0.615*R-0.515*G-0.100*B=0.877*(R-Y);
(2) according to follow the trail of the scope of object color; Find marginal position X2, the X1 of particular color object, Y2, Y1, and then obtain the position coordinates of particular color object in this field of view for (X2-X1)/2; (Y2-Y1)/2; In the following formula, X1, X2 are the coordinate of reflection left and right edges in image of object, Y1, Y2 be the reflection of object in image on the coordinate of lower limb.
In order to find the marginal position of particular color object, need to set in advance to follow the trail of the color gamut of object.Wherein, red object color gamut is:
ymin=75,ymax=225;
umin=100,umax=150;
vmin=175,vmax=250;
Green object color scope:
ymin[ix]=25,ymax[ix]=45;
umin[ix]=65,umax[ix]=85;
vmin[ix]=15,vmax[ix]=35;
Blue object color scope:
ymin[ix]=55,ymax[ix]=65;
umin[ix]=175,umax[ix]=185;
vmin[ix]=95,vmax[ix]=105。
Step 3, generate control command and control robot motion according to the position coordinates of particular color object.
(1) for robot is carried out navigation processing, need with piece image on the image X-direction, promptly transversely be divided into left field, zone, front side, right side area, as shown in Figure 2.Left field, zone, front side, the ratio of right side area on image X-direction (laterally) are: 7/16,1/8,7/16; Image with 1280x1024 resolution ratio is an example; Then left field, zone, front side, right side area are respectively 1 to 560 (size is 56); The zone, front side is 561 to 720 (size is 160), and right side area is 721 to 1280 (size is 560).
(2) position coordinates according to the particular color object generates control command and execution: if position coordinates (X2-X1)/2>720; Explain that then the position coordinates of particular color object is positioned at the right side area of image; Promptly generate dextrorotary control command; The control robot is rotational time T1 to the right, jumps to step 1 then; If (X2-X1)/2<560, explain that then the position coordinates of particular color object is positioned at the left field of image, then robot generates the control command to anticlockwise, and the control robot is rotational time T1 left, jumps to step 1 then; Otherwise the position coordinates of particular color object is positioned at the zone, front side, and then robot generates proal control command; The control robot time T 2 that travels forward is come the roughly distance of judgment object and robot through the size of (X2-X1) and setting value x relatively then, if (X2-X1)<setting value x; Robot and object then are described beyond risk distance, can be continued to move ahead, jump to step 1 then; Otherwise robot stops to move ahead.In the present embodiment, the T1 value is 50ms-70ms; The T2 value is 0.8s-1.2s, time T 1, and T2 is related to robot after action, and in desired zone, concrete value can be provided with in the afore mentioned rules scope according to actual conditions object.
Can realize robot tracking function through above-mentioned steps based on color identification.
Embodiment of the present invention is illustrative, rather than determinate, so the present invention is not limited to the embodiment described in the specific embodiment.Other embodiments that every technical scheme according to the present invention draws belong to the scope that the present invention protects equally.

Claims (5)

1. robot method for tracing based on color identification is characterized in that: may further comprise the steps:
Step 1: utilize the camera of installing in the robot to grasp piece image;
Step 2: the position coordinates of the image that grasps being analyzed and obtained the particular color object;
Step 3: generate control command and control robot motion according to the position coordinates of particular color object, circulation execution in step 1 is to step 3, until the distance of robot and particular color object during less than setting value, and the robot stop motion.
2. the robot method for tracing based on color identification according to claim 1, it is characterized in that: said particular color object is red object, green object or blue object.
3. the robot method for tracing based on color identification according to claim 1, it is characterized in that: said step 2 comprises following processing procedure:
(1) be the YUV color-code with the rgb color code conversion;
(2) according to the color of particular color object, find marginal position X2, the X1 of particular color object, Y2, Y1, and then obtain the position coordinates of particular color object in this image: (X2-X1)/2, (Y2-Y1)/2.
4. the robot method for tracing based on color identification according to claim 1 is characterized in that: said step 3 comprises following processing procedure according to the position coordinates generation control command of particular color object:
(1) piece image is divided into left field, zone, front side and right side area on X-direction;
(2) if the position coordinates of particular color object is positioned at the right side area of image, then generate dextrorotary control command; If the position coordinates of particular color object is positioned at left field, then robot generates the control command to anticlockwise; Otherwise the position coordinates of particular color object is positioned at the zone, front side, and then robot generates proal control command.
5. the robot method for tracing based on color identification according to claim 4, it is characterized in that: described left field, zone, front side and the ratio of right side area on the image X-direction are: 7/16,1/8,7/16.
CN201110259748XA 2011-09-05 2011-09-05 Color recognition-based robot tracking method Expired - Fee Related CN102431034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110259748XA CN102431034B (en) 2011-09-05 2011-09-05 Color recognition-based robot tracking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110259748XA CN102431034B (en) 2011-09-05 2011-09-05 Color recognition-based robot tracking method

Publications (2)

Publication Number Publication Date
CN102431034A true CN102431034A (en) 2012-05-02
CN102431034B CN102431034B (en) 2013-11-20

Family

ID=45979565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110259748XA Expired - Fee Related CN102431034B (en) 2011-09-05 2011-09-05 Color recognition-based robot tracking method

Country Status (1)

Country Link
CN (1) CN102431034B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789234A (en) * 2012-08-14 2012-11-21 广东科学中心 Robot navigation method and robot navigation system based on color coding identifiers
CN105241449A (en) * 2015-11-25 2016-01-13 北京工商大学 Vision navigation method and system of inspection robot under parallel architecture
CN105825213A (en) * 2016-03-14 2016-08-03 深圳市华讯方舟科技有限公司 Human body identification and positioning method, robot and characteristic clothing
CN106780601A (en) * 2016-12-01 2017-05-31 北京未动科技有限公司 A kind of locus method for tracing, device and smart machine
CN107305378A (en) * 2016-04-20 2017-10-31 上海慧流云计算科技有限公司 A kind of method that image procossing follows the trail of the robot of object and follows the trail of object
CN110163291A (en) * 2019-05-28 2019-08-23 北京史河科技有限公司 A kind of indicator light recognition methods and device
CN110355765A (en) * 2019-05-27 2019-10-22 西安交通大学 A kind of identification of view-based access control model follows barrier-avoiding method and robot automatically
CN111002349A (en) * 2019-12-13 2020-04-14 中国科学院深圳先进技术研究院 Robot following steering method and robot system adopting same
CN112859861A (en) * 2021-01-15 2021-05-28 深圳壹智云科技有限公司 Robot automatic recharging system and method based on auxiliary positioning
CN115762085A (en) * 2022-11-16 2023-03-07 云南电网有限责任公司德宏供电局 Computer vision alarm system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000218575A (en) * 1999-01-28 2000-08-08 Minolta Co Ltd Image display device
CN1721144A (en) * 2004-07-13 2006-01-18 中国科学院自动化研究所 A kind of fast tracking method and device based on color of object surface
CN101081512A (en) * 2006-05-29 2007-12-05 发那科株式会社 Work-piece picking device and method
CN101377813A (en) * 2008-09-24 2009-03-04 上海大学 Method for real time tracking individual human face in complicated scene
CN101442609A (en) * 2008-11-07 2009-05-27 南京大学 Method for tracking window division and recombination

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000218575A (en) * 1999-01-28 2000-08-08 Minolta Co Ltd Image display device
CN1721144A (en) * 2004-07-13 2006-01-18 中国科学院自动化研究所 A kind of fast tracking method and device based on color of object surface
CN101081512A (en) * 2006-05-29 2007-12-05 发那科株式会社 Work-piece picking device and method
CN101377813A (en) * 2008-09-24 2009-03-04 上海大学 Method for real time tracking individual human face in complicated scene
CN101442609A (en) * 2008-11-07 2009-05-27 南京大学 Method for tracking window division and recombination

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789234B (en) * 2012-08-14 2015-07-08 广东科学中心 Robot navigation method and robot navigation system based on color coding identifiers
CN102789234A (en) * 2012-08-14 2012-11-21 广东科学中心 Robot navigation method and robot navigation system based on color coding identifiers
CN105241449A (en) * 2015-11-25 2016-01-13 北京工商大学 Vision navigation method and system of inspection robot under parallel architecture
CN105825213B (en) * 2016-03-14 2020-09-11 华讯方舟科技有限公司 Human body identification and positioning method, robot and characteristic clothes
CN105825213A (en) * 2016-03-14 2016-08-03 深圳市华讯方舟科技有限公司 Human body identification and positioning method, robot and characteristic clothing
CN107305378A (en) * 2016-04-20 2017-10-31 上海慧流云计算科技有限公司 A kind of method that image procossing follows the trail of the robot of object and follows the trail of object
CN106780601A (en) * 2016-12-01 2017-05-31 北京未动科技有限公司 A kind of locus method for tracing, device and smart machine
CN106780601B (en) * 2016-12-01 2020-03-27 北京未动科技有限公司 Spatial position tracking method and device and intelligent equipment
CN110355765A (en) * 2019-05-27 2019-10-22 西安交通大学 A kind of identification of view-based access control model follows barrier-avoiding method and robot automatically
CN110163291A (en) * 2019-05-28 2019-08-23 北京史河科技有限公司 A kind of indicator light recognition methods and device
CN110163291B (en) * 2019-05-28 2021-02-09 北京史河科技有限公司 Indicator lamp identification method and device
CN111002349A (en) * 2019-12-13 2020-04-14 中国科学院深圳先进技术研究院 Robot following steering method and robot system adopting same
CN112859861A (en) * 2021-01-15 2021-05-28 深圳壹智云科技有限公司 Robot automatic recharging system and method based on auxiliary positioning
CN115762085A (en) * 2022-11-16 2023-03-07 云南电网有限责任公司德宏供电局 Computer vision alarm system and method

Also Published As

Publication number Publication date
CN102431034B (en) 2013-11-20

Similar Documents

Publication Publication Date Title
CN102431034B (en) Color recognition-based robot tracking method
CN103135759B (en) Control method for playing multimedia and system
CN102131101A (en) Intelligent video image quality automatic analysis system and method
CN103581627A (en) Image and information fusion display method for high-definition video
CN102423987B (en) Precision engraving machine for processing glass panel and method for processing glass panel by using same
CN104013424B (en) A kind of ultrasonic wide-scene imaging method based on depth information
CN111452034A (en) Double-camera machine vision intelligent industrial robot control system and control method
CN105068139B (en) A kind of characterization processes of piston cooling nozzle installment state
CN201653377U (en) Cable sleeve joint thread quality detecting system
WO2009125132A3 (en) Method for determining a three-dimensional representation of an object using a sequence of cross-section images, computer program product, and corresponding method for analyzing an object and imaging system
CN105807989A (en) Gesture touch method and system
CN202246415U (en) Glass panel processing fine engraving machine
CN103140049B (en) A kind of chip mounter quick positioning system based on FPGA and method
CN104858877B (en) High-tension line drop switch changes the control method of control system automatically
CN209648746U (en) A kind of vision robot's remote monitoring system
CN206517524U (en) A kind of fish movement video image acquisition device under water
Mao et al. Design of visual navigation system of farmland tracked robot based on raspberry pie
CN204669681U (en) With the machine vision light source controller that brightness detects
CN202335090U (en) Chip mounter quick positioning system based on field programmable gate array (FPGA)
CN110901372A (en) Mecanum wheel AGV trolley applied to limited space logistics sorting
CN103685884A (en) Intelligent camera based on on-chip visual system
CN203310809U (en) Radio flaw detector trolley
CN106342328B (en) Electronics racemization method for parallel processing based on TIDSP
CN202004914U (en) Intelligent video image quality automatic analysis system
CN108230228B (en) Miniaturized real-time target tracking processing system based on probability density statistics

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHANGHAI PAXING INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: TIANJIN UNIVERSITY OF TECHNOLOGY

Effective date: 20150820

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150820

Address after: 201114 No. three Lu Lu, Minhang District, Shanghai, 5715

Patentee after: Shanghai Pa Xing Information technology company limited

Address before: 300384 Tianjin city Xiqing District West Binshui Road No. 391

Patentee before: Tianjin University of Technology

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131120

Termination date: 20170905

CF01 Termination of patent right due to non-payment of annual fee