01.12.2012 Views

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.6. MEASURING 91<br />

fcor(x) =−(c1x 2 + c2x)+c1s 2 + c2s (4.22)<br />

where s is the x-coordinate of the peak of f(x) withs = −c2/(2c1), i.e. the point where<br />

the first-derivative of f(x) is zero. Thus, fcor is the 180 ◦ rotated version of f(x) whichis<br />

shifted so that fcor(s) = 0 as can be seen in Figure 4.25(b).<br />

This function applied to the measurements has the effect of all values being adjusted<br />

to approximately one length l(s). The corrected length values lcor(x) areshowninFigure<br />

4.25(c). As one can see, the mean value over all measurements describes the data<br />

much better after perspective correction.<br />

To reduce the computational load the correction function is computed only once for<br />

each position at discrete steps and stored in a look up table for fast access.<br />

4.6.3. Tube Tracking<br />

Assuming a sufficient frame rate, one tube is measured several times at different positions<br />

while moving through the visual field of the camera. One constraint in Section 4.2.2<br />

regarding the image content states that only one tube is allowed to be measurable at one<br />

time. The question is whether the current measurement belongs to an already inspected<br />

tube or if there is a new tube in the visual field of the camera. Since there is no external<br />

trigger, this task has to be solved by the software.<br />

Consecutive tubes appear quite equal in shape, size, or texture (especially black tubes).<br />

Itisdifficultuptoimpossibletofindreliablefeaturesinformofanuniquefingerprint<br />

that can be used to distinguish between tubes. In addition the extraction and comparison<br />

of such fingerprints would be computational expensive. Standard tracking approaches<br />

such as Kalman filtering [24] or condensation [8] are also not suited in this particular<br />

application, since such approaches are quite complex and are worthwhile only if an object<br />

is expected to be in the scene over a certain time period. At faster velocities, however, a<br />

tube is in the image for about 4-7 frames only.<br />

Since processing time is highly limited, it is a better choice to develop fast heuristics<br />

based on model-knowledge that replace the problem of tube tracking by detecting when<br />

a tube has left the visual field. Therefore, the following very fast heuristics have been<br />

defined:<br />

1. Backward motion<br />

2. Timeout<br />

Backward motion Since the conveyor moves always in one direction (e.g. from left to<br />

right in the image), it is impossible that a tube moves backward. Thus, if the horizontal<br />

image position of the tube at time t is smaller than at time t − 1(i.e. thetubewouldhave<br />

moved further to the left), this can be used as indicator that the current measurement<br />

belongs to the next tube. The position of a tube can be defined as the x-coordinate of<br />

the left measuring point. Hence with the image content assumption the tube measured at<br />

time t − 1 has left the visual field if xpL (t)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!