CN106469457B - A method of repairing touch-control system contact mistake track - Google Patents

A method of repairing touch-control system contact mistake track Download PDF

Info

Publication number
CN106469457B
CN106469457B CN201610842069.8A CN201610842069A CN106469457B CN 106469457 B CN106469457 B CN 106469457B CN 201610842069 A CN201610842069 A CN 201610842069A CN 106469457 B CN106469457 B CN 106469457B
Authority
CN
China
Prior art keywords
coordinate
control system
host
contact
current frame
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.)
Active
Application number
CN201610842069.8A
Other languages
Chinese (zh)
Other versions
CN106469457A (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.)
Beijing Zen-Ai Technology Co Ltd
Original Assignee
Beijing Zen-Ai 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 Beijing Zen-Ai Technology Co Ltd filed Critical Beijing Zen-Ai Technology Co Ltd
Priority to CN201610842069.8A priority Critical patent/CN106469457B/en
Publication of CN106469457A publication Critical patent/CN106469457A/en
Application granted granted Critical
Publication of CN106469457B publication Critical patent/CN106469457B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30241Trajectory

Abstract

The invention discloses a kind of methods for repairing touch-control system contact mistake track, key step are as follows: contact in video camera photographed screen coordinate and coordinate in the current frame in previous frame image, it is transferred to host, host detects the image transmitted, tracking, judge whether tracking result is correct according to whether track following line intersects, then calculated result is transferred to screen, show correct result, the present invention solves the prior art and can not fundamentally avoid by apart from caused tracking Problem-Error, by the geometrical relationship for analyzing two kinds of motion profiles, then certain computerized algorithm is designed with correlation geometrical principle, it solves the problems, such as insoluble with other methods.

Description

A method of repairing touch-control system contact mistake track
Technical field
The present invention relates to motion tracking technology field, especially a kind of method for repairing touch-control system contact mistake track.
Background technique
With the development of computer technology and digital image processing techniques, the application field of computer vision technique is rapid It widens, target following has become one very active project of computer vision field.Moving target automatically tracks control system The realization purpose of system is to acquire the sequence of video images of target with camera, and analyzes the fortune of target in real time by computer It is dynamic, the kinematic parameter of target is obtained, is directed toward target always according to control camera in this, as main.
Tracking technique depends on the judgement adjusted the distance to determine the trace point for belonging to some specific motion profile at present, but real Work as hypotelorism during border or because the problem of shooting frame rate, starting with from Distance Judgment solves tracking problem and can inevitably encounter The bottleneck of accuracy rate, be embodied in when belong to point of the point of another motion profile apart from this motion profile previous frame it is closer when It waits, will occur to track mistake.
Summary of the invention
To solve the above-mentioned problems, the invention proposes a kind of methods for repairing touch-control system contact mistake track.
Concrete scheme of the invention is as follows:
A method of touch-control system contact mistake track being repaired, the touch-control system includes screen 1, video camera 2 and master Machine 3, video camera 2 are connect with host 3 by data line, and host 3 is connect with screen 1 by video line, and steps are as follows:
S1: video camera 2 captures the image of two contacts of previous frame and present frame of two contacts on the screen 1, is transferred to The host 3, wherein the coordinate of two contacts described in previous frame image is respectively A (x1, y1), B (x2, y2), current The coordinate of two contacts described in frame is respectively C (x3, y3), D (x4, y4);
S2: the host 3 receives the image that the video camera 2 transmits, and is detected, is tracked to image, the previous frame The contact coordinate of contact A (x1, y1) in the current frame is C (x3, y3), contact B (x2, y2) in the previous frame image in image Contact coordinate in the current frame is D (x4, y4);
S3: the host 3 judges whether the result of tracking is correct according to above-mentioned tracking result, and the method for judgement is to connectWithIfWithDo not intersect, then tracking result does not have mistake, and the coordinate of coordinate A (x1, y1) in the current frame is C (x3, y3), the coordinate of coordinate B (x2, y2) in the current frame are D (x4, y4);IfWithIntersect, then tracking result mistake, The coordinate reparation of coordinate A (x1, y1) in the current frame is D (x4, y4), and the coordinate reparation of coordinate B (x2, y2) in the current frame is C (x3, y3), while calculated result is transferred to the screen (1);
S4: the screen 1 receives the tracking result that the host 3 transmits and display.
Preferably, judge in the step S3WithThe formula of intersection is
Preferably, judge in the step S3WithThe formula of intersection is
Preferably, judge in the step S3WithThe formula of intersection is
Preferably, judge in the step S3WithThe formula of intersection is
Compared with the prior art, the present invention has the following beneficial effects:
A kind of method for repairing touch-control system contact mistake track proposed by the present invention, by analyzing arithmetic result And internal realization intelligent Matching, solving the prior art can not fundamentally avoid by leading to apart from caused tracking Problem-Error The geometrical relationship of two kinds of motion profiles of analysis is crossed, then certain computerized algorithm is designed with correlation geometrical principle, solves use Other insoluble problems of method.
Detailed description of the invention
Fig. 1 is a kind of specific steps flow chart of the method for reparation touch-control system contact mistake track of the invention;
Fig. 2 is the schematic diagram of touch-control system of the invention;
Fig. 3 is a kind of schematic diagram of the first embodiment of the method for repairing touch-control system contact mistake track of the present invention;
Fig. 4 is a kind of schematic diagram of second of embodiment of the method for repairing touch-control system contact mistake track of the present invention;
Fig. 5 is a kind of schematic diagram of the third embodiment of the method for repairing touch-control system contact mistake track of the present invention;
Fig. 6 is a kind of schematic diagram of 4th kind of embodiment of the method for repairing touch-control system contact mistake track of the present invention;
Fig. 7 is a kind of schematic diagram of 5th kind of embodiment of the method for repairing touch-control system contact mistake track of the present invention;
Fig. 8 is a kind of schematic diagram of 6th kind of embodiment of the method for repairing touch-control system contact mistake track of the present invention.
Specific embodiment
Below in conjunction with the specific embodiment technical solution that present invention be described in more detail.It should be appreciated that being described herein as Specific embodiment be only used to explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of specific steps flow chart of the method for reparation touch-control system contact mistake track of the invention;Fig. 2 is The schematic diagram of touch-control system of the invention.As depicted in figs. 1 and 2, video camera 2 is connect with host 3 by data line, host 3 with Screen 1 is connected by video line.Video camera 2 captures the image on screen 1, is transferred to host 3, host 3 transmits video camera 2 Image is calculated, and calculated result is transferred to screen 1 and is shown.
Two contacts in 2 photographed screen 1 of video camera coordinate A (x1, y1) in previous frame image, B (x2, y2) and working as Coordinate C (x3, y3) in previous frame, D (x4, y4), are transferred to host 3, and host 3 receives the image that video camera 2 transmits, to image into Row detection tracks, and the contact coordinate of contact A (x1, y1) in the current frame is C (x3, y3), previous frame image in previous frame image The contact coordinate of middle contact B (x2, y2) in the current frame is D (x4, y4).Host (3) judges to track according to above-mentioned tracking result Result it is whether correct, method particularly includes: as shown in figure 3, two rectangles are done by diagonal line of AC and BD, if two rectangles do not have Intersection, explanationWithDo not intersect, track following result does not have mistake, and the coordinate of coordinate A (x1, y1) in the current frame is C (x3, y3), the coordinate of coordinate B (x2, y2) in the current frame are D (x4, y4);As shown in figure 4, if two rectangles have part phase It hands over, butWithDo not intersect, illustrates that track following result does not have mistake, the coordinate of coordinate A (x1, y1) in the current frame is C (x3, y3), the coordinate of coordinate B (x2, y2) in the current frame are D (x4, y4);As shown in figure 5, two rectangles have part intersection, AndWithIntersection, that is, meet formulaOrIllustrate track following result mistake, the coordinate of coordinate A (x1, y1) in the current frame Repairing is D (x4, y4), and the coordinate reparation of coordinate B (x2, y2) in the current frame is C (x3, y3);If vectorIt is full Foot positional relationship shown in fig. 6, that is, meet formulaIllustrate track following result Mistake, the coordinate reparation of coordinate A (x1, y1) in the current frame are D (x4, y4), the coordinate of coordinate B (x2, y2) in the current frame Repair is C (x3, y3);If A, C, B three point on a straight line, meets positional relationship shown in Fig. 7, that is, meet formulaIt says Bright track following result mistake, the coordinate reparation of coordinate A (x1, y1) in the current frame are D (x4, y4), and coordinate B (x2, y2) exists Coordinate reparation in present frame is C (x3, y3), and similarly, any three point on a straight line all illustrates track following result mistake;Such as Fig. 8 institute Show, if A, C, D three point on a straight line, using AC and CD as bevel edge, is two right angled triangle Rt △ ACE and Rt △ CDF respectively, the two Right angled triangle meets formulaTherefore, ifIt sets up, illustrates track following result Mistake, the coordinate reparation of coordinate A (x1, y1) in the current frame are D (x4, y4), the coordinate of coordinate B (x2, y2) in the current frame Repairing is C (x3, y3), while calculated result is transferred to screen 1 by host 3, shows correct tracking result.
The above are the embodiments of two contacts, and the present invention is not limited to two contacts, can shoot simultaneously more than or equal to two The motion profile of contact.
If contact number is greater than two, principle with it is above-mentioned similar, and selection matches two-by-two, and then judges track following As a result there is inerrancy.
In conclusion a kind of method for repairing touch-control system contact mistake track proposed by the present invention, by algorithm knot Fruit analyze and internal realization intelligent Matching, and solving the prior art can not fundamentally avoid by wrong apart from caused tracking Then accidentally problem designs certain computerized algorithm with correlation geometrical principle by analyzing the geometrical relationship of two kinds of motion profiles, It solves the problems, such as insoluble with other methods.
Above embodiment is the preferred embodiment of the present invention, is not intended to limit patent protection model of the invention It encloses.Those skilled in the art belonging to any present invention, in the premise for not departing from spirit and scope disclosed in this invention Under, the transformation of the equivalent structure and equivalent steps that done to the contents of the present invention each falls within claimed the scope of the patents Within.

Claims (5)

1. it is a kind of repair touch-control system contact mistake track method, the touch-control system include screen (1), video camera (2) and Host (3), video camera (2) are connect with host (3) by data line, and host (3) is connect with screen (1) by video line, special Sign is that steps are as follows:
S1: video camera (2) captures the image of previous frame and present frame two contact of two contacts on screen (1), is transferred to The host (3), wherein the coordinate of two contacts described in previous frame image is respectively A (x1, y1), and B (x2, y2) is working as The coordinate of two contacts described in previous frame is respectively C (x3, y3), D (x4, y4);
S2: the host (3) receives the image that the video camera (2) is transmitted, and is detected, is tracked to image, the previous frame The contact coordinate of contact A (x1, y1) in the current frame is C (x3, y3), contact B (x2, y2) in the previous frame image in image Contact coordinate in the current frame is D (x4, y4);
S3: the host (3) judges whether the result of tracking is correct according to above-mentioned tracking result, and the method for judgement is to connect WithIfWithDo not intersect, then tracking result does not have a mistake, the coordinate of coordinate A (x1, y1) in the current frame be C (x3, Y3), the coordinate of coordinate B (x2, y2) in the current frame is D (x4, y4);IfWithIntersect, then tracking result mistake, coordinate A The coordinate reparation of (x1, y1) in the current frame be D (x4, y4), the coordinate reparation of coordinate B (x2, y2) in the current frame be C (x3, Y3), while by calculated result it is transferred to the screen (1);
S4: the screen (1) receives the tracking result that the host (3) is transmitted and display.
2. a kind of method for repairing touch-control system contact mistake track according to claim 1, which is characterized in that the step Judge in rapid S3WithThe formula of intersection is
3. a kind of method for repairing touch-control system contact mistake track according to claim 1, which is characterized in that the step Judge in rapid S3WithThe formula of intersection is
4. a kind of method for repairing touch-control system contact mistake track according to claim 1, which is characterized in that the step Judge in rapid S3WithThe formula of intersection is
5. a kind of method for repairing touch-control system contact mistake track according to claim 1, which is characterized in that the step Judge in rapid S3WithThe formula of intersection is
CN201610842069.8A 2016-09-22 2016-09-22 A method of repairing touch-control system contact mistake track Active CN106469457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610842069.8A CN106469457B (en) 2016-09-22 2016-09-22 A method of repairing touch-control system contact mistake track

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610842069.8A CN106469457B (en) 2016-09-22 2016-09-22 A method of repairing touch-control system contact mistake track

Publications (2)

Publication Number Publication Date
CN106469457A CN106469457A (en) 2017-03-01
CN106469457B true CN106469457B (en) 2019-02-19

Family

ID=58230241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610842069.8A Active CN106469457B (en) 2016-09-22 2016-09-22 A method of repairing touch-control system contact mistake track

Country Status (1)

Country Link
CN (1) CN106469457B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384317A (en) * 2006-02-15 2009-03-11 科乐美数码娱乐株式会社 Trace information processing device, trace information processing method, information recording method, and program
CN102073405A (en) * 2010-11-30 2011-05-25 广东威创视讯科技股份有限公司 Image zooming and rotating judgment method
CN102542265A (en) * 2011-12-26 2012-07-04 广东威创视讯科技股份有限公司 Multi-touch eraser identification method based on camera positioning and device therefor
CN103164022A (en) * 2011-12-16 2013-06-19 国际商业机器公司 Multi-finger touch method, device and portable type terminal device
CN103593131A (en) * 2012-08-15 2014-02-19 北京汇冠新技术股份有限公司 Touch track tracking method
CN105378611A (en) * 2013-07-12 2016-03-02 触觉实验室股份有限公司 Fast multi-touch post processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384317A (en) * 2006-02-15 2009-03-11 科乐美数码娱乐株式会社 Trace information processing device, trace information processing method, information recording method, and program
CN102073405A (en) * 2010-11-30 2011-05-25 广东威创视讯科技股份有限公司 Image zooming and rotating judgment method
CN103164022A (en) * 2011-12-16 2013-06-19 国际商业机器公司 Multi-finger touch method, device and portable type terminal device
CN102542265A (en) * 2011-12-26 2012-07-04 广东威创视讯科技股份有限公司 Multi-touch eraser identification method based on camera positioning and device therefor
CN103593131A (en) * 2012-08-15 2014-02-19 北京汇冠新技术股份有限公司 Touch track tracking method
CN105378611A (en) * 2013-07-12 2016-03-02 触觉实验室股份有限公司 Fast multi-touch post processing

Also Published As

Publication number Publication date
CN106469457A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
US9047507B2 (en) Upper-body skeleton extraction from depth maps
JP2008009849A (en) Person tracking device
US20170163949A1 (en) Apparatus using a projector, method, and storage medium
GB2529943A (en) Tracking processing device and tracking processing system provided with same, and tracking processing method
CN104346816A (en) Depth determining method and device and electronic equipment
JP2015212849A (en) Image processor, image processing method and image processing program
CN102073414B (en) Multi-touch tracking method based on machine vision
Wang et al. Point cloud and visual feature-based tracking method for an augmented reality-aided mechanical assembly system
CN104423569A (en) Pointing position detecting device, method and computer readable recording medium
CN103810718B (en) A kind of strenuous exercise's object detection method and device
TW201800975A (en) Human hand detection tracking method and device
JP2012150837A (en) Gesture recognition device, gesture recognition method and program therefor
Griesser et al. Automatic interactive calibration of multi-projector-camera systems
CN104376323A (en) Object distance determining method and device
CN106780538A (en) A kind of method of error hiding during solution image trace
CN106469457B (en) A method of repairing touch-control system contact mistake track
CN110111364A (en) Method for testing motion, device, electronic equipment and storage medium
US20150253861A1 (en) Detecting device and detecting method
CN108255352A (en) Multiple point touching realization method and system in a kind of projection interactive system
CN103543883B (en) Optical touch method and system thereof
CN105092604B (en) Line information and non-line area information acquisition method and line defect detection method
US11587240B2 (en) Moving body detecting device, moving body detecting method, and moving body detecting program
Soetedjo et al. Implementation of sensor on the gun system using embedded camera for shooting training
CN103389793A (en) Human-computer interaction method and human-computer interaction system
Wang et al. Fingertip-based interactive projector-camera system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant