WO2005094565A9 - Arrangement and method for determining positions of the teats of a milking animal - Google Patents

Arrangement and method for determining positions of the teats of a milking animal

Info

Publication number
WO2005094565A9
WO2005094565A9 PCT/SE2005/000427 SE2005000427W WO2005094565A9 WO 2005094565 A9 WO2005094565 A9 WO 2005094565A9 SE 2005000427 W SE2005000427 W SE 2005000427W WO 2005094565 A9 WO2005094565 A9 WO 2005094565A9
Authority
WO
WIPO (PCT)
Prior art keywords
teats
milking animal
images
arrangement
milking
Prior art date
Application number
PCT/SE2005/000427
Other languages
French (fr)
Other versions
WO2005094565A1 (en
Inventor
Maria Pettersson
Dinerf Johan Andren
Original Assignee
Delaval Holding Ab
Maria Pettersson
Dinerf Johan Andren
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
Priority claimed from SE0400821A external-priority patent/SE0400821D0/en
Priority claimed from SE0400819A external-priority patent/SE527840C2/en
Priority claimed from SE0400820A external-priority patent/SE528237C2/en
Application filed by Delaval Holding Ab, Maria Pettersson, Dinerf Johan Andren filed Critical Delaval Holding Ab
Priority to US10/594,881 priority Critical patent/US20080314324A1/en
Priority to EP05722263A priority patent/EP1729562A1/en
Publication of WO2005094565A1 publication Critical patent/WO2005094565A1/en
Publication of WO2005094565A9 publication Critical patent/WO2005094565A9/en
Priority to US12/662,430 priority patent/US8210122B2/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01JMANUFACTURE OF DAIRY PRODUCTS
    • A01J5/00Milking machines or devices
    • A01J5/017Automatic attaching or detaching of clusters
    • A01J5/0175Attaching of clusters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • G06T7/593Depth or shape recovery from multiple images from stereo images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • G06T7/85Stereo camera calibration
    • 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
    • G06T2207/10021Stereoscopic video; Stereoscopic 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/30108Industrial image inspection

Definitions

  • the present invention generally relates to dairy farm robot milking and to automatic attachment of teat cups related thereto.
  • a robot arm with a gripper is provided to grip and hold teat cups during the attachment of the teat cups.
  • a laser emitting laser light and a video camera provided to register laser light as reflected from the teats of the milking animal are mounted on the robot arm.
  • the positions of the teats can be calculated.
  • the movement of the robot arm can then be controlled in response to the calculated positions to be capable of finding the teats for teat cup attachments.
  • a drawback of such a milking system is that the camera, while being moved close to the milk ⁇ ng animal, is exposed to dirt and possibly physical contact with the milking animal since the milking animal can make sudden movements. Further, the video camera can only be in active mode to seek for the teats when the robot arm already has collected a teat cup and initiated a movement towards the teats since the camera is fixedly mounted on the robot arm. Still further, the video camera occupies a considerable space on the robot arm, which may limit the use of the system. In Research Disclosure, July 2002, p. 1162 is disclosed the use of an arrangement comprising a number of cameras fixedly mounted in the milking stall instead of using a video camera mounted on a movable robot arm.
  • two or three video cameras can be mounted at each side of the milking animal to be milked, preferably on the walls of the milking stall or just outside thereof.
  • the video cameras are directed diagonally upwards towards the region where the teats are when the milking animal has been positioned in the milking stall.
  • a computer is provided for e.g. selecting two cameras, which together creates a stereoscopic image, which by means of image processing enables a substantially exact determination of the position of a teat.
  • Two further cameras may be used to confirm the three-dimensional position of a teat.
  • a robot arm is then moved to the teat based on the determined position.
  • a milking environment is a very difficult environment to perform stereo vision measurements.
  • the environment is non-clean and dirt may settle on camera lenses. Further the cows are moving, and teats may not be visible to the cameras due to self- occlusion.
  • it is an object of the present invention to provide an arrangement and a method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on dynamically determined positions of the teats of the milking animal, which arrangement and method are based on stereo vision and solve at least some of the problems of the prior art as set forward above.
  • Figs. 1-4 display each schematically an automated milking station including an arrangement for determining positions of the teats of a milking animal according to a respective preferred embodiment of the present invention.
  • Figs. 1, 3 and 4 are perspective views, whether Fig. 2 is a top view.
  • the milking station is only schematically outlined in Figs. 2-4.
  • Fig. 5 is a schematic diagram illustrating various image processing methods, among them methods included in further preferred embodiments of the present invention.
  • Figs. 6-7 are each a pair of images as taken by a camera pair as comprised in any of the arrangements shown in Figs. 1-4 and illustrate yet a preferred embodiment of the invention.
  • Fig. 8 is a side view of the lower part of a teat of a milking animal illustrating self-occlusion, a phenomenon which is compensated for by still a preferred embodiment of the invention.
  • Fig. 1 a milking system or station 3 arranged for voluntary milking of freely walking animals such as e.g. cows, i.e. the animals enter the milking station 3 in order to be milked on a voluntary basis.
  • the milking station 3 comprises an enclosure having an inlet gate 4 and an outlet gate 5, which are both capable of being opened automatically.
  • the front end of the milking station 3 is denoted by 3a, the back end is denoted by 3b, the left side is denoted by 3c and the right side is denoted by 3d.
  • the milking station 3 comprises further an automatic milking machine (not explicitly illustrated) including teat cups 11 connected to an end unit by means of milk lines (only the portions attached to the teat cups 11 are shown in Fig. 1).
  • the milking station further includes a milking robot or automatic handling device 14 having a robot arm 15 provided with a gripper.
  • the milking robot 14 is arranged to automatically apply the teat cups 11 of the milking machine to the teats of a cow 8 present in the milking station 3 prior to milking.
  • Fig. 1 three of the teat cups 11 are arranged in a teat cup rack or magazine 16, whereas the fourth one is held by the gripper of the robot arm 15.
  • a teat cleaning device including e.g. a teat cleaning cup 21 or brushes 22 may be provided for cleaning the teats of the cow 8 prior to milking.
  • the milking station 3 comprises an identifice ⁇ tion member provided to identify a cow approaching the milking station 3, and a central processing and control device 19, which is responsible for central processing and controlling of the animal arrangement, which inter alia includes the initiation of various activities in connection with the milking such as e.g. opening and closing of the gates 4 and 5, and control of the milking machine and its handling device 14.
  • the central processing and control device 19 comprises typically a microcomputer, suitable software, and a database including information of each of the cows milked by the milking machine, such as e.g. when the respective cow was milked last time, when she was fed last time, her milk production, her health, etc.
  • a cow approaching the milking station is thus identified by the identification member, and the central processing and control device 19 may then, depending on the identification, give the cow access to the milking station 3 by means of opening the inlet gate 4.
  • the teats may be cleaned by the teat cleaning device, after which the teat cups 19 are applied to the teats of the cow 8 in the milking station 9 under control of the central processing and control device 19.
  • the attachment is enabled by means of locating the teats of the cow 8 by a camera pair 23 directed towards the teats of the cow
  • the camera pair 23 is provided to repeatedly record pairs of images and may for instance comprise two CCD or video cameras.
  • the central processing and control device 19 or other control or image processing device detects repeatedly the teats of the cow 8 and determines their positions by a stereoscopic calculation method based on the repeatedly recorded pairs of images. This position information is used by the central processing and control device
  • the robot arm 5 also has to move the teat cleaning cup 21 or the brushes 22 to the teats of the cow 8. This may be performed in the very same manner as the teat cups are moved.
  • milk is drawn from the teats of the cow 8 by means of vacuum being applied to the teat cups 11 via the milk lines, and the milk drawn is collected in the end unit.
  • the teats of the cow may be subjected to after treatment, e.g. a spray of disinfectant, and then the outlet gate 5 is opened and the cow 8 may leave the milking station 3. 2.
  • a spray of disinfectant e.g. a spray of disinfectant
  • the location and orientation of the camera pair are very important features.
  • the task is to design an arrangement that should be capable of detecting and locating every teat for each cow. Firstly, all teats must be seen by the cameras used.
  • the teats must be visualized in a manner that makes the image analysis easier.
  • the implementation should also strive to maintain a low-cost profile in order to enable potential industrial production at the same cost as the prior art systems used today.
  • the camera pair 23 is mounted below the teats of the cow 8 and behind the cow when being located in the position to be milked so that the camera pair 23 is directed diagonally upwards towards the teats of the cow 8 when being located in the position to be milked.
  • the immediate position behind the cow 8 is in terms of image analysis a good location.
  • the teats wouid be close to the cameras and by placing the cameras below the udders, directed diagonally upwards, both high and low udders can be detected in most cases.
  • a typical distance between the camera pair 23 and the teats of the cow 8 is 30 cm.
  • a further advantage of this camera position is that the cameras will not be in the way of the robot arm 15 or the inlet gate 4.
  • the camera pair 23 may be movable up and down, depending on the height of the udder, to attain a good contrast between the teats and background simply by moving the camera pair up or down.
  • each camera pair 23, 24 is provided to repeatedly record pairs of images, and an image processing device is provided for repeatedly detecting the teats of the cow and determining their positions by a stereoscopic calculation method based on the pairs of images repeatedly recorded by each of the camera pairs 23, 24.
  • the • first camera pair 23 is arranged behind the cow, whereas the second camera pair is arranged at the side of the cow. A typical distance between the second camera pair 24 and the teats of the cow is 80 cm.
  • At least two camera pairs may be necessary to obtain a high number of successful teat cup attachments. This is because the teats can occlude each other. More camera pairs may also relax the demands on the image processing.
  • the preferred embodiment of Fig. 3 differs from the embodiment of Fig. 2 in that the second camera pair 24 is mounted at a height so that the teats of the cow will belong to the outer contour of the cow in the repeatedly recorded pairs of images by that camera pair 24. Such measures would facilitate image processing considerably.
  • the second camera pair 24 is preferably movable vertically in order to be positioned at a height so that the teats of the cow will belong to the outer contour of the cow in the repeatedly recorded pairs of images. Different cows have their udders at different heights and in order to secure that a teat contour is recorded the camera pair 24 should be movable in the vertical plane.
  • Figs. 2-3 would not only improve the detection rate of the system but would also give more reliable stereo calculations since distance calculations from two independent systems would be used.
  • the movable cameras could be trained for each cow or be trained the first time a cow enters the milking station 3.
  • the result could be stored in a database and be updated after each milking.
  • each of the two camera pairs here denoted by 41 and 42, comprises three cameras 41a-c and 42a-c.
  • three stereoscopic position calculations can be made for each camera pair 41, 42, and thus in total six calculations can be made provided that each camera 41a-c and 42a-c can see the teat in question. It would of course be even better to use even more camera pairs to achieve even further stereoscopic position calculations, or at least render it most likely that two cameras in one camera pair can always detect a teat of a cow.
  • the camera pair is located straight below the cow's udder, and the cameras are directed upwards.
  • the camera pair may be located in the floor of the milking station behind a translucent protecting window provided with cleaning means such as wipers.
  • the camera pair together with the protecting window could be raised by a telescopic arrangement to be positioned closer to the teats of the cow.
  • Such camera pair would always be capable of detecting all four teats of the cow.
  • the position is extremely vulnerable for dirt and damages.
  • the cameras of each camera pair in the preferred embodiments described above are advantageously arranged vertically one above the other.
  • the image processing device may then, for each teat and for each pair of images, define the position of the lower tip of the teat contour in the pair of images as conjugate points for the stereoscopic calculation, and find the conjugate points along a substantially vertical epipofar line. This increases the accuracy and precision of the teat position determination considerably. This is discussed in detail in section 5 with reference to Figs. 6 and 7.
  • the cameras of each camera pair are arranged so that the image planes of the cameras of each camera pair are coplanar. This is not a prerequisite for the stereoscopic calculations, but it facilitates the same.
  • the cameras are typically video cameras or solid state cameras such as e.g. CCD cameras sensitive to visible light.
  • CCD cameras CCD cameras sensitive to visible light.
  • Lightning is an issue of both suppressing natural light differences and enhancing the image quality to facilitate image analysis.
  • the milking station 3 is typically arranged in a barn. Therefore, an artificial light source particularly provided for illuminating the udder of the cow to thereby increase the contrast in the repeatedly recorded pairs of images may be needed and used.
  • a light source 25 is provided, which may emit white light, colored light or UV light.
  • the light source 25 ought to create a back lighting or sidelight for each camera pair.
  • the light source 25 is arranged at a low position at the left side 3c of the milking station, but further ahead of the second camera pair 24. The light is directed backwards and diagonally upwards toward the teats of the cow. Thus, a back lighting is obtained for the first camera pair 23 and a sidelight is obtained for the second camera pair 24.
  • the light source 25 could be movable and capable of being directed toward different directions in order to find an appropriate illumination of the teats of the cow.
  • An external light source for the particular purpose of illuminating the teats of the cow is preferred but not compulsory. However, if such light source is not used image analysis has to be used to counteract various lightning effects. Methods that can be used include e.g. histogram equalization, a method used to divide the grey levels equally within the entire range. However, since both color and texture of the teats are similar to the surface of the udder the contrast between them may in some instance be too low.
  • thermal cameras are provided for visualizing the natural infrared radiation from the cow (as compared to the radiation from surrounding objects).
  • images of the temperature radiation emitted from objects in front of the cameras are captured. No external light sources are needed and problems with scattered and stray light are avoided.
  • the thermal cameras can be used during conditions of low levels of light and even in complete darkness, e.g. during night time. So-called active thermal cameras wherein reflected infrared or other radiation is used for visualization is a further option for the present invention. 3.
  • Image processing teat detection
  • the first step is pre-processing.
  • This stage aims to enhance the image by removing noise or distortions.
  • the main idea is to • increase the chances to have success in the later processing steps by apply methods to suppress some data and to enhance other.
  • Common techniques are transformations for enhanced contrast and noise removal.
  • the transformations can be combinations of smoothing, different edge detectors or logical operations.
  • segmentation there is a group of processing techniques commonly referred to as segmentation. These techniques intend to divide a digital image into objects, i.e. "interesting areas", and background.
  • descriptors could be size, grey levels, roundness etc.
  • each object is given a unique identification number called a label. This step is referred to as representation and description.
  • a classification algorithm is applied to the object list. This is a way to use object information to associate the objects with objects in the milking station which have been imaged by the camera pair.
  • some pre-knowledge of the images recorded is needed to create a good classification algorithm.
  • the pre-knowledge is important in image analysis, not just for the classification step. The more information available regarding a specific type of images, the better the image analysis can be made.
  • Fig. 5 shows various methods that can be used for teat detection and to which of the processing steps they belong. The most preferred methods are indicated in Fig. 5 and outlined below.
  • Mean filtering is a blurring pre-processing method, which softens sharp areas in an image. If used properly it could remove noise from the image and potentially improve the image before it is processed by other methods.
  • the method uses the spatial relationship of pixels to smooth an image.
  • a filter mask of size M x N pixels is applied.
  • Motion detection is a pre-processing method for removal of superfluous information in the images by utilizing the cow's movement. Two images are recorded after one another, with a small time difference, the fact that the grey level values will have changed were movement has occurred is utilized in the method. Since a cow never is stationary, because of breathing or balance correction the time between the two consecutive images can be small.
  • a black and white image is created, where white pixels represent important areas Ji.e. areas where the cow's udder likely is) and black pixels represent uninteresting background areas. This is performed by changing pixels to white in areas were the absolute value of pixel ⁇ ⁇ - PiXeI 1109962 exceeds a given constant and every other pixel is changed to black.
  • Such a template image will be used to extract the interesting areas in the original image. Since the binary template image is scattered, it needs further processing to be useful. A good manner to remove scatter is to relax the image.
  • a relaxation method gives the center pixel, in a neighborhood, the value of the most occurring value in that neighborhood. The larger the neighborhood is, the coarser the image becomes.
  • contour creation firstly copies the black and white template image and then performs a number of binary erosions on the copy. The result is a smaller copy of the original, where every white area has shrunk. By subtracting the shrunken image from the original template image, the result is an image with white bands around the contour of the cow. By combining this band template Image with the originally recorded image and exchanging every white pixel with its corresponding grey pixel, an image with a band of grey levels is created. This image is further processed.
  • This last step can typically not be applied fully to images taken from the rear position since the teats in those images are not part of the outer contour of the cow.
  • background areas are removed from the image, which still reduces the amount of data considerably.
  • an image processing device is provided to perform any of the above mentioned steps to reduce the area in which the teats likely are.
  • phase plays an important role in the perception of visual features.
  • the most common features in images consist of combinations of steps, roofs and ramp profiles as well as mach band effects.
  • phase component of the Fourier Transform these features can be extracted.
  • the phase plays a decisive role in the perception of visual features. If a human was asked to draw a sketch of the image, localizing precisely the edges or markings of interest as seen in the scene, then chosen points would be those where there is maximal order in the phase components of a frequency-based representation of the signal.
  • the phase congruency model is hard to implement but could be approximated with local energy in a signal.
  • phase congruency feature detector is therefore suitable to be used in combination with a canny edge detection algorithm, see below.
  • One issue that needs to be handled is that in combination with the motion detection method erroneous edges will be created where data has been removed. Since removed data is represented as black sections within the image, edges will occur in the contact area between the black edge and the important data area.
  • an image processing device for each time the teats are to be detected, to apply an edge detection algorithm based on the phase congruency model of feature detection to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the cow.
  • a preferred edge-detection method is a Canny detection algorithm.
  • a representation and description processing method is applied for calculating features of the edges and corners found in the recorded pair of images.
  • a labeling algorithm such as a connected-components labeling method, and a feature vector method are used.
  • a classification method is applied for identifying edges and corners of the found edges and corners in the recorded pair of images which belong to the teats of the cow based on the calculated features.
  • the classification method includes typically a low-level classification algorithm and a high-level classification algorithm such as a hierarchical chamfer matching algorithm. 4. Image processing: calibration
  • stereo vision is to be useful, calibration is a decisive component. Stereo vision or stereoscopic calculation strongly relies on accuracy in calibration and measurements.
  • the basic idea is built on the ideal case: a pinhole camera that is perfectly aligned. This is not the case in reality. To calculate scene point coordinates, additional information is needed. There are the camera constant and the baseline distance. In reality the relative position of the cameras differs more than just the baseline displacement. The camera also has other important parameters other than the camera constant. The image center can be displaced and there are probably many types of distortions in the image. There are for example radial distortion and de-centering distortion. Radial distortion is seen as a scene point being imaged closer or • further out from the image centre than it should have been. This distortion is dependent on the distance from the image center.
  • the camera intrinsic parameters are collected with the Interior calibration. This gives the actual image center and other distortions parameters. These are calculated to be able to reconstruct the actual image.
  • the relation between the camera positions has to be determined. This is achieved by relative calibration. Here both parameters that describe the rotation and displacement are estimated.
  • the calculated distance to a scene point should be useful, its relation to another coordinate system is significant.
  • the absolute calibration is used to determine this relation, both rotation and transformation, between two coordinate systems. In this case the relation between a stereo vision system and the robot coordinate system is of interest.
  • the present invention proposes a manner of operation, which remedies this problem.
  • An image processing device is provided in an initial stage of a teat cup attachment to roughly determine the absolute position of a teat of the cow in a coordinate system of the milking station, by aid of which the robot may fetch a teat cup and move it to a position close to a teat of the cow present in the milking station.
  • the image processing device is then provided, i.e. in a later stage of the teat cup attachment when the robot arm is close to attach the teat cup to the teat of the cow, to repeatedly and accurately determine the position of the teat of the cow relative to the robot arm or the teat cup.
  • the position of the teat of the cow relative to the robot arm or the teat cup is more exact than what the absolute position can be measured.
  • the image processing device is provided, in the later stage when the robot arm is ⁇ close to attach the teat cup to the teat of the cow, to repeatedly determine the relative position of the teat of the cow in a coordinate system of the camera pair used, and to repeatedly detect the robot arm or the teat cup and determine its relative position in the coordinate system of the camera pair by the stereoscopic calculation method of the present invention.
  • the camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, the positions of the well defined points being known in the coordinate system of the milking station, and the image processing device is provided to perform an absolute calibration process, in which the positions of the image planes of the cameras of the camera pair are determined in the coordinate system of the milking system to thereby be capable of determining the absolute position of the teat of the cow.
  • the camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, and the image processing device is provided to perform a relative calibration process, in which the positions of the image planes of the cameras of the camera pair are determined relative to each other to thereby be capable of determining the position of the teat of the cow relative to another measured position.
  • a relative calibration process in which the positions of the image planes of the cameras of the camera pair are determined relative to each other to thereby be capable of determining the position of the teat of the cow relative to another measured position.
  • Stereo vision is the recovery of three- dimensional information of a scene from multiple images of the same scene.
  • Stereo vision in computer systems tries to copy the human way when calculating distance.
  • the principle is based on triangulation. Points on the surface of objects are imaged in different relative positions in the images recorded depending on their distance from the viewing system.
  • the basic model is two ideal pinhole cameras viewing the same scene, only with a baseline distance separating them.
  • the image plane should preferably be coplanar, which means that there is no relative rotation between the cameras.
  • One scene point is imaged in different locations in a first image and a second image recorded by differently placed cameras.
  • the scene point in the first image plane and in the second image plane are both placed on the epipolar line and is called a conjugate pair or conjugate point.
  • the epipolar line is the line that connects the scene point in the first and second images. If the scene point is found in the first image, the scene point in the second image is on the epipolar line. In the ideal model this means that if the cameras are arranged horizontally side by side the first and second image points are on the same image row.
  • Conjugate points are a pair of image coordinates, one from each image, which are each a projection from the same point in space onto the respective image plane. The displacement between the image points is called the disparity and will finally give the depth information.
  • the choice of the points that constitutes the conjugate pair is important. They have to represent interesting measuring points and should not result bring any additional error to the distance errors.
  • the conjugate points should also be easy to find.
  • the position of the lower tip of the teat contour in the pair of images is defined as conjugate points.
  • Fig. 6 shows a pair of images 91a-b as taken by a camera pair mounted horizontally side by side.
  • the contour images of the teats are denoted 92a and 93a in the left hand image 91a, and 92b and 93b in the right hand image 91b.
  • the epipolar lines are denoted by 94 for the teat images 92a-b and by 95 for the teat images 93a-b.
  • the cameras of each camera pair are arranged vertically one above the other as has been disclosed in section 2 above.
  • Fig. 7 shows a pair of images 101a-b as taken by a camera pair mounted vertically one above the other.
  • the contour images of the teats are denoted 102a and 103a in the upper image 101a, and 102b and 103b in the lower image 91b.
  • the epipolar lines are denoted by 104 for the teat images 102a-b and by 105 for the teat images 103a-b.
  • the epipolar lines become orthogonal to the lines representing the lower tips of the teat contours. This will increase the accuracy and simplifies the conjugate point detection.
  • Additional information or conjugate points may be needed. This can be achieved by selecting further points on the lines representing the lower tips of the teat contours.
  • the teats internal orientation will indicate on which teat line the conjugate point is to be found.
  • the thickness and teat angle are two interesting parameters. These parameters should not be difficult to extract from the teat tip lines.
  • stereovision systems different kinds of occlusion occur. Depending on the cameras relative positions the two images from a stereo-camera pair differ. One teat can be visible in one image but bee partly or fully occluded in the other stereo- image pair. Ano ⁇ her issue is the fact that edges from a teat visualized in two images, are in fact not the same physical edge.
  • Fig. 8 is a side view of the lower part of a teat of a milking animal illustrating self-occlusion.
  • the teat tip 111 is modeled as a half sphere.
  • Two projection lines 112a and 112b from cameras at different heights illustrate the fact that the lower tip of the teat contour in the images recorded by the cameras at different height does not correspond to the same physical scene point on the teat of the cow.
  • the image by the upper camera point 113a will be recorded as the lower tip of the teat contour
  • the lower camera point 113b will be recorded as the lower tip of the teat contour. This leads inevitably to errors in the calculation of the positions of the teats.
  • An image processing device can be provided, for each teat and for each pair of images, to compensate for any deviations caused by the fact that the lower tip of the teat contour in the pair of images corresponds to different objection or scene points on the teat due to different perspective views, in which the pair of images are recorded, by means of creating a mathematical model of the characteristic form of the teat, and to calculate the compensation based on the mathematical model, the different perspectives, and the distance to the teat.
  • the exact distance to the teat is typically unknown, whereupon the image processing device can be provided to determine the positions of the teats of the milking animal, and to calculate the compensation for any deviations caused by the fact that the lower tip of the " teat contour in the pair of images corresponds to different objection points on the teat, in an iterative process, wherein better teat positions and better compensation can be obtained for each iteration.
  • an image processing device can be provided to automatically detect injuries and/or dirt on the teats of the cow by an image processing method based on one or several of the repeatedly recorded pairs of images.
  • a single image could be used to discover visual defects, such as redness, cuts, sores or wounds, on the teats and the udders of the cows.
  • the camera system may also surveillance the milking process or inspect almost any part of the milking station. This would be easier if the cameras could be rotated independently of each other.
  • the teat cleaning device of the milking station may be designed to be capable of cleaning teats of cows according to anyone of a plurality of different teat cleaning schemes, and then one of the plurality of different teat cleaning schemes can be selected for the cleaning of the teats of the cow based on the automatic detection of injuries and/or dirt on the teats of the cow. Teat cleaning can in this manner not only be performed on a cow individual basis but also on a teat individual basis.
  • the stereo vision system can also be used to create 3D images of objects. In those images the teat thickness and deformations can be analyzed.
  • the stereo vision system can be used when a technician monitors the milking station, or inspects the milking station for errors.
  • the stereo vision system can operate as a simple surveillance system. It can easily detect any movement around the robot and trespassers could be detected.
  • the stereo vision system is vulnerable to dirt or damages on the lenses of the cameras. By using image information dirt could be detected and allow for the system to attend to the problem.
  • a lens is an easy object to automatically detect and it is possible to create a method for detecting dirt on an otherwise very clean surface.

Abstract

An arrangement for determining positions of the teats of an animal is provided in a robot-based milking system. The arrangement comprises a camera pair directed towards the teats of the animal for repeatedly recording pairs of images, and an image processing device for repeatedly detecting the teats of the animal and determining their positions by a stereoscopic calculation method based on the recorded pairs of images. The image processing device may be provided to initially determine the absolute position of a teat of the milking animal in a coordinate system of the milking system, and to later determine the position of the teat of the milking animal relative to the robot arm or the teat cup repeatedly, wherein the position of the teat of the milking animal relative to the robot arm or the teat cup is more exact than the absolute position. The camera pair may be comprised of a pair of thermal or infrared cameras.

Description

ARRANGEMENT AND METHOD FOR DETERMINING POSITIONS OF THE TEATS OF A MILKING ANIMAL
TECHNICAL FIELD OF THE INVENTION
The present invention generally relates to dairy farm robot milking and to automatic attachment of teat cups related thereto.
DESCRIPTION OF RELATED ART AND BACKGROUND OF THE INVENTION
In a known milking system, wherein teat cups are automatically attached to the teats of a milking animal to be milked, a robot arm with a gripper is provided to grip and hold teat cups during the attachment of the teat cups. A laser emitting laser light and a video camera provided to register laser light as reflected from the teats of the milking animal are mounted on the robot arm. By aid of a method known as laser triangulation, the positions of the teats can be calculated. The movement of the robot arm can then be controlled in response to the calculated positions to be capable of finding the teats for teat cup attachments.
A drawback of such a milking system is that the camera, while being moved close to the milkάng animal, is exposed to dirt and possibly physical contact with the milking animal since the milking animal can make sudden movements. Further, the video camera can only be in active mode to seek for the teats when the robot arm already has collected a teat cup and initiated a movement towards the teats since the camera is fixedly mounted on the robot arm. Still further, the video camera occupies a considerable space on the robot arm, which may limit the use of the system. In Research Disclosure, July 2002, p. 1162 is disclosed the use of an arrangement comprising a number of cameras fixedly mounted in the milking stall instead of using a video camera mounted on a movable robot arm. For instance, two or three video cameras can be mounted at each side of the milking animal to be milked, preferably on the walls of the milking stall or just outside thereof. Advantageously, the video cameras are directed diagonally upwards towards the region where the teats are when the milking animal has been positioned in the milking stall. A computer is provided for e.g. selecting two cameras, which together creates a stereoscopic image, which by means of image processing enables a substantially exact determination of the position of a teat. Two further cameras may be used to confirm the three-dimensional position of a teat. A robot arm is then moved to the teat based on the determined position.
While such an arrangement has several advantages such as a faster determination of the teats of the milking animal, a smaller and lighter robot arm, possibilities to better protect the cameras from dirt and from being damaged by kicks from the milking animal, and capabilities to monitor the complete milking operation for e.g. detecting a teat cup falling off the teat, it may be difficult to obtain a sufficiently robust, accurate, precise, and fast implementation, which is capable of controlling the robot arm to obtain a sufficiently high number of correct teat cup attachments.
SUMMARY OF THE INVENTION
A milking environment is a very difficult environment to perform stereo vision measurements. The environment is non-clean and dirt may settle on camera lenses. Further the cows are moving, and teats may not be visible to the cameras due to self- occlusion.
Another problem arises since each cow's physiology differs; the udders of the cows may be located at quite different locations, which put limitations on the positions of the cameras. For instance, the area where the teats most likely are has been found by empirical studies to be at least 500 x 600 x 480 mm3 large.
Another problem arises since both color and texture of the teats are similar to the surface of the udder, which means that teat detection will be an arduous task: the contrast is low and color filters are of no use. The situation is even more complicated by the fact that the size, shape, color structure, morphological structure and texture may vary quite much from animal to animal.
Accordingly, it is an object of the present invention to provide an arrangement and a method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on dynamically determined positions of the teats of the milking animal, which arrangement and method are based on stereo vision and solve at least some of the problems of the prior art as set forward above.
It is in this respect a particular object of the invention to provide such an arrangement and such a method, which use a stereoscopic calculation method based on repeatedly recorded pairs of images, wherein for each teat and for each pair of images, conjugate points in the pair of images for the stereoscopic calculation can be found easily, efficiently, and fastIy.
It is a further object of the invention to provide such an arrangement and such a method, which are robust, effective, fast, precise, accurate, reliable, safe, easy to use, and of low cost.
It is still a further object of the invention to provide such an arrangement and such a method, which are capable of obtaining a very high number of correct teat cup attachments.
These objects among others are, according to the' present invention, attained by arrangements and methods as claimed in the appended patent claims.
Further characteristics of the invention and advantages thereof, will be evident from the following detailed description of preferred embodiments of the present invention given hereinafter and the accompanying Figs. 1-8, which are given by way of illustration only and are thus not limitative of the present invention.
BRIEF DESCRIPTION OF THE DRAWINGS
Figs. 1-4 display each schematically an automated milking station including an arrangement for determining positions of the teats of a milking animal according to a respective preferred embodiment of the present invention. Figs. 1, 3 and 4 are perspective views, whether Fig. 2 is a top view. The milking station is only schematically outlined in Figs. 2-4.
Fig. 5 is a schematic diagram illustrating various image processing methods, among them methods included in further preferred embodiments of the present invention. Figs. 6-7 are each a pair of images as taken by a camera pair as comprised in any of the arrangements shown in Figs. 1-4 and illustrate yet a preferred embodiment of the invention.
Fig. 8 is a side view of the lower part of a teat of a milking animal illustrating self-occlusion, a phenomenon which is compensated for by still a preferred embodiment of the invention.
DETAILED DESCRIPTION OF EMBODIMENTS
The outline of this description is as follows. Firstly, a milking system wherein arrangements and methods for determining positions of the teats of a cow according to the present invention may be implemented is overviewed. Thereafter, various camera arrangements as used in the invention are considered. The following four sections are mainly devoted to image processing. The first of these sections deals with image processing in general and teat detection in particular. Thereafter, stereoscopic calculation methods for determining teat positions are considered. The following section deals with various calibration methods used in the invention. Finally, image processing methods for obtaining further functionality are disclosed.
1. The milking system
In Fig. 1 is shown a milking system or station 3 arranged for voluntary milking of freely walking animals such as e.g. cows, i.e. the animals enter the milking station 3 in order to be milked on a voluntary basis. The milking station 3 comprises an enclosure having an inlet gate 4 and an outlet gate 5, which are both capable of being opened automatically. The front end of the milking station 3 is denoted by 3a, the back end is denoted by 3b, the left side is denoted by 3c and the right side is denoted by 3d.
The milking station 3 comprises further an automatic milking machine (not explicitly illustrated) including teat cups 11 connected to an end unit by means of milk lines (only the portions attached to the teat cups 11 are shown in Fig. 1). The milking station further includes a milking robot or automatic handling device 14 having a robot arm 15 provided with a gripper. The milking robot 14 is arranged to automatically apply the teat cups 11 of the milking machine to the teats of a cow 8 present in the milking station 3 prior to milking. In Fig. 1 three of the teat cups 11 are arranged in a teat cup rack or magazine 16, whereas the fourth one is held by the gripper of the robot arm 15.
Typically, a teat cleaning device including e.g. a teat cleaning cup 21 or brushes 22 may be provided for cleaning the teats of the cow 8 prior to milking.
Further, the milking station 3 comprises an identifice\tion member provided to identify a cow approaching the milking station 3, and a central processing and control device 19, which is responsible for central processing and controlling of the animal arrangement, which inter alia includes the initiation of various activities in connection with the milking such as e.g. opening and closing of the gates 4 and 5, and control of the milking machine and its handling device 14. The central processing and control device 19 comprises typically a microcomputer, suitable software, and a database including information of each of the cows milked by the milking machine, such as e.g. when the respective cow was milked last time, when she was fed last time, her milk production, her health, etc. A cow approaching the milking station is thus identified by the identification member, and the central processing and control device 19 may then, depending on the identification, give the cow access to the milking station 3 by means of opening the inlet gate 4. The teats may be cleaned by the teat cleaning device, after which the teat cups 19 are applied to the teats of the cow 8 in the milking station 9 under control of the central processing and control device 19.
The attachment is enabled by means of locating the teats of the cow 8 by a camera pair 23 directed towards the teats of the cow
8 when being located in the position to be milked. The camera pair 23 is provided to repeatedly record pairs of images and may for instance comprise two CCD or video cameras. The central processing and control device 19 or other control or image processing device detects repeatedly the teats of the cow 8 and determines their positions by a stereoscopic calculation method based on the repeatedly recorded pairs of images. This position information is used by the central processing and control device
19 to send signals to the milking robot to move the robot arm to each teat after having gripped a respective teat cup.
Note that the robot arm 5 also has to move the teat cleaning cup 21 or the brushes 22 to the teats of the cow 8. This may be performed in the very same manner as the teat cups are moved.
During milking, milk is drawn from the teats of the cow 8 by means of vacuum being applied to the teat cups 11 via the milk lines, and the milk drawn is collected in the end unit. After the milking has been completed the teats of the cow may be subjected to after treatment, e.g. a spray of disinfectant, and then the outlet gate 5 is opened and the cow 8 may leave the milking station 3. 2. The camera arrangement
The location and orientation of the camera pair are very important features. The task is to design an arrangement that should be capable of detecting and locating every teat for each cow. Firstly, all teats must be seen by the cameras used.
Secondly, the teats must be visualized in a manner that makes the image analysis easier. The implementation should also strive to maintain a low-cost profile in order to enable potential industrial production at the same cost as the prior art systems used today.
In the preferred embodiment of Fig. 1, the camera pair 23 is mounted below the teats of the cow 8 and behind the cow when being located in the position to be milked so that the camera pair 23 is directed diagonally upwards towards the teats of the cow 8 when being located in the position to be milked. The immediate position behind the cow 8 is in terms of image analysis a good location. The teats wouid be close to the cameras and by placing the cameras below the udders, directed diagonally upwards, both high and low udders can be detected in most cases. A typical distance between the camera pair 23 and the teats of the cow 8 is 30 cm. A further advantage of this camera position is that the cameras will not be in the way of the robot arm 15 or the inlet gate 4.
The camera pair 23 may be movable up and down, depending on the height of the udder, to attain a good contrast between the teats and background simply by moving the camera pair up or down.
In the preferred embodiment of Fig. 2, a first 23 and a second
24 camera pairs are directed towards the teats of the cow when being located in the position to be milked, wherein the each camera pair 23, 24 is provided to repeatedly record pairs of images, and an image processing device is provided for repeatedly detecting the teats of the cow and determining their positions by a stereoscopic calculation method based on the pairs of images repeatedly recorded by each of the camera pairs 23, 24. The first camera pair 23 is arranged behind the cow, whereas the second camera pair is arranged at the side of the cow. A typical distance between the second camera pair 24 and the teats of the cow is 80 cm.
At least two camera pairs may be necessary to obtain a high number of successful teat cup attachments. This is because the teats can occlude each other. More camera pairs may also relax the demands on the image processing.
The preferred embodiment of Fig. 3 differs from the embodiment of Fig. 2 in that the second camera pair 24 is mounted at a height so that the teats of the cow will belong to the outer contour of the cow in the repeatedly recorded pairs of images by that camera pair 24. Such measures would facilitate image processing considerably. The second camera pair 24 is preferably movable vertically in order to be positioned at a height so that the teats of the cow will belong to the outer contour of the cow in the repeatedly recorded pairs of images. Different cows have their udders at different heights and in order to secure that a teat contour is recorded the camera pair 24 should be movable in the vertical plane.
The preferred embodiments of Figs. 2-3 would not only improve the detection rate of the system but would also give more reliable stereo calculations since distance calculations from two independent systems would be used.
The movable cameras could be trained for each cow or be trained the first time a cow enters the milking station 3. The result could be stored in a database and be updated after each milking. Thus, by having the possibility to move the cameras of the camera pairs relative to the milking station 3 and to the cow when being located in a position to be milked, and optionally relative to each other, the number of failed teat position determinations due to teats being obscured can be reduced.
The preferred embodiment of Fig. 4 differs from the embodiment of Fig. 3 in that each of the two camera pairs, here denoted by 41 and 42, comprises three cameras 41a-c and 42a-c. By such a stereo vision system three stereoscopic position calculations can be made for each camera pair 41, 42, and thus in total six calculations can be made provided that each camera 41a-c and 42a-c can see the teat in question. It would of course be even better to use even more camera pairs to achieve even further stereoscopic position calculations, or at least render it most likely that two cameras in one camera pair can always detect a teat of a cow.
According to yet a preferred embodiment of the invention, the camera pair is located straight below the cow's udder, and the cameras are directed upwards. For instance the camera pair may be located in the floor of the milking station behind a translucent protecting window provided with cleaning means such as wipers. The camera pair together with the protecting window could be raised by a telescopic arrangement to be positioned closer to the teats of the cow. Such camera pair would always be capable of detecting all four teats of the cow. However, the position is extremely vulnerable for dirt and damages.
It shall be noted that the cameras of each camera pair in the preferred embodiments described above are advantageously arranged vertically one above the other. The image processing device may then, for each teat and for each pair of images, define the position of the lower tip of the teat contour in the pair of images as conjugate points for the stereoscopic calculation, and find the conjugate points along a substantially vertical epipofar line. This increases the accuracy and precision of the teat position determination considerably. This is discussed in detail in section 5 with reference to Figs. 6 and 7.
Further, the cameras of each camera pair are arranged so that the image planes of the cameras of each camera pair are coplanar. This is not a prerequisite for the stereoscopic calculations, but it facilitates the same.
The cameras are typically video cameras or solid state cameras such as e.g. CCD cameras sensitive to visible light. Thus, neither the choice of location nor the indoor/outdoor lighting should affect the performance of the stereo vision system. Lightning is an issue of both suppressing natural light differences and enhancing the image quality to facilitate image analysis.
The milking station 3 is typically arranged in a barn. Therefore, an artificial light source particularly provided for illuminating the udder of the cow to thereby increase the contrast in the repeatedly recorded pairs of images may be needed and used.
In the preferred embodiment of Fig. 2, a light source 25 is provided, which may emit white light, colored light or UV light. In order to obtain a good contrast between the teats and the udder or other kind of background, the light source 25 ought to create a back lighting or sidelight for each camera pair. In Fig. 2 the light source 25 is arranged at a low position at the left side 3c of the milking station, but further ahead of the second camera pair 24. The light is directed backwards and diagonally upwards toward the teats of the cow. Thus, a back lighting is obtained for the first camera pair 23 and a sidelight is obtained for the second camera pair 24.
The light source 25 could be movable and capable of being directed toward different directions in order to find an appropriate illumination of the teats of the cow.
An external light source for the particular purpose of illuminating the teats of the cow is preferred but not compulsory. However, if such light source is not used image analysis has to be used to counteract various lightning effects. Methods that can be used include e.g. histogram equalization, a method used to divide the grey levels equally within the entire range. However, since both color and texture of the teats are similar to the surface of the udder the contrast between them may in some instance be too low.
Alternatively, or additionally, thermal cameras are provided for visualizing the natural infrared radiation from the cow (as compared to the radiation from surrounding objects). Thus, images of the temperature radiation emitted from objects in front of the cameras are captured. No external light sources are needed and problems with scattered and stray light are avoided. Further, the thermal cameras can be used during conditions of low levels of light and even in complete darkness, e.g. during night time. So-called active thermal cameras wherein reflected infrared or other radiation is used for visualization is a further option for the present invention. 3. Image processing: teat detection
Fundamental steps in image processing include the following different processing steps.
> Pre-processing
> Segmentation
> Representation and description
> Classification
The first step is pre-processing. This stage aims to enhance the image by removing noise or distortions. The main idea is to increase the chances to have success in the later processing steps by apply methods to suppress some data and to enhance other. Common techniques are transformations for enhanced contrast and noise removal. The transformations can be combinations of smoothing, different edge detectors or logical operations.
Next, there is a group of processing techniques commonly referred to as segmentation. These techniques intend to divide a digital image into objects, i.e. "interesting areas", and background.
Once the image is divided into objects and background the objects need to be described using descriptors. These descriptors could be size, grey levels, roundness etc. Simultaneously as the descriptors are calculated each object is given a unique identification number called a label. This step is referred to as representation and description.
Finally, a classification algorithm is applied to the object list. This is a way to use object information to associate the objects with objects in the milking station which have been imaged by the camera pair. Typically, some pre-knowledge of the images recorded is needed to create a good classification algorithm. The pre-knowledge is important in image analysis, not just for the classification step. The more information available regarding a specific type of images, the better the image analysis can be made.
In order to accurately detect teats, an automatic method has do be created. The accuracy of the detection system should preferably be no less than prior art systems of today. To solve such a complex problem it is necessary to divide it into smaller processing steps described above. Fig. 5 shows various methods that can be used for teat detection and to which of the processing steps they belong. The most preferred methods are indicated in Fig. 5 and outlined below.
Mean filtering is a blurring pre-processing method, which softens sharp areas in an image. If used properly it could remove noise from the image and potentially improve the image before it is processed by other methods. The method uses the spatial relationship of pixels to smooth an image. A filter mask of size M x N pixels is applied. A pixel, usually the center pixel, in that mask achieves a new pixel value, which represents the mean value of the pixel values within the mask. The bigger the filter mask the more the image is blurred.
Motion detection is a pre-processing method for removal of superfluous information in the images by utilizing the cow's movement. Two images are recorded after one another, with a small time difference, the fact that the grey level values will have changed were movement has occurred is utilized in the method. Since a cow never is stationary, because of breathing or balance correction the time between the two consecutive images can be small.
A black and white image is created, where white pixels represent important areas Ji.e. areas where the cow's udder likely is) and black pixels represent uninteresting background areas. This is performed by changing pixels to white in areas were the absolute value of pixel^^ - PiXeI1109962 exceeds a given constant and every other pixel is changed to black. Such a template image will be used to extract the interesting areas in the original image. Since the binary template image is scattered, it needs further processing to be useful. A good manner to remove scatter is to relax the image. A relaxation method gives the center pixel, in a neighborhood, the value of the most occurring value in that neighborhood. The larger the neighborhood is, the coarser the image becomes.
Since it is critical to include the udder area in the final image it is a good idea to increase the white area in the template by a pixel expanding algorithm. This could be done by dividing the image into K x L squares, with an actual size of M x N and changing the pixels of the entire area to white if there is any occurrence of white pixels inside the area.
If the teats are located in the outer part of the cow's contour, all other remaining information about the cow is here superfluous. This information is removed by applying a method, which is called contour creation. Contour creation firstly copies the black and white template image and then performs a number of binary erosions on the copy. The result is a smaller copy of the original, where every white area has shrunk. By subtracting the shrunken image from the original template image, the result is an image with white bands around the contour of the cow. By combining this band template Image with the originally recorded image and exchanging every white pixel with its corresponding grey pixel, an image with a band of grey levels is created. This image is further processed.
This last step can typically not be applied fully to images taken from the rear position since the teats in those images are not part of the outer contour of the cow. By only using the first three steps of the motion detection method background areas are removed from the image, which still reduces the amount of data considerably.
Thus, according to the present invention, an image processing device is provided to perform any of the above mentioned steps to reduce the area in which the teats likely are.
Experiments have shown that the phase plays an important role in the perception of visual features. The most common features in images consist of combinations of steps, roofs and ramp profiles as well as mach band effects. There is no single linear feature detector that can detect those combinations. But by using the phase component of the Fourier Transform these features can be extracted. The phase plays a decisive role in the perception of visual features. If a human was asked to draw a sketch of the image, localizing precisely the edges or markings of interest as seen in the scene, then chosen points would be those where there is maximal order in the phase components of a frequency-based representation of the signal. Unfortunately, the phase congruency model is hard to implement but could be approximated with local energy in a signal. So instead of searching for local maxima in the phase congruency function, local maxima in the local energy function should be found. The outputs of this method are two images, one containing magnitude and one orientation of the features. So the phase congruency feature detector is therefore suitable to be used in combination with a canny edge detection algorithm, see below. One issue that needs to be handled is that in combination with the motion detection method erroneous edges will be created where data has been removed. Since removed data is represented as black sections within the image, edges will occur in the contact area between the black edge and the important data area.
Thus, according to the present invention, an image processing device is provided, for each time the teats are to be detected, to apply an edge detection algorithm based on the phase congruency model of feature detection to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the cow.
A preferred edge-detection method is a Canny detection algorithm.
Next, a representation and description processing method is applied for calculating features of the edges and corners found in the recorded pair of images. Preferably, a labeling algorithm, such as a connected-components labeling method, and a feature vector method are used.
Finally, a classification method is applied for identifying edges and corners of the found edges and corners in the recorded pair of images which belong to the teats of the cow based on the calculated features. The classification method includes typically a low-level classification algorithm and a high-level classification algorithm such as a hierarchical chamfer matching algorithm. 4. Image processing: calibration
If stereo vision is to be useful, calibration is a decisive component. Stereo vision or stereoscopic calculation strongly relies on accuracy in calibration and measurements.
The basic idea is built on the ideal case: a pinhole camera that is perfectly aligned. This is not the case in reality. To calculate scene point coordinates, additional information is needed. There are the camera constant and the baseline distance. In reality the relative position of the cameras differs more than just the baseline displacement. The camera also has other important parameters other than the camera constant. The image center can be displaced and there are probably many types of distortions in the image. There are for example radial distortion and de-centering distortion. Radial distortion is seen as a scene point being imaged closer or further out from the image centre than it should have been. This distortion is dependent on the distance from the image center.
The camera intrinsic parameters are collected with the Interior calibration. This gives the actual image center and other distortions parameters. These are calculated to be able to reconstruct the actual image.
Before the resulting images can be used and distance calculations can be done, the relation between the camera positions has to be determined. This is achieved by relative calibration. Here both parameters that describe the rotation and displacement are estimated.
If the calculated distance to a scene point should be useful, its relation to another coordinate system is significant. The absolute calibration is used to determine this relation, both rotation and transformation, between two coordinate systems. In this case the relation between a stereo vision system and the robot coordinate system is of interest.
It has been found experimentally that absolute calibration is much more difficult than relative calibration, and that much more reference points in the milking station are needed. Further, the stereo vision system must be continuously calibrated due to movements and other disturbances, which do occur in the milking station, and which affects calibration points placed therein. The accuracy of the calibration points must be 10 times higher then the accuracy demand on -the teat positioning. The parameters needed in the stereo calculation, is the position and rotation of both cameras in the milking station coordinate system, the image center and the radial and de- centering distortion factors.
Due to the difficulties obtained when performing absolute calibration to obtain highly accurate absolute teat positions, the present invention proposes a manner of operation, which remedies this problem.
An image processing device is provided in an initial stage of a teat cup attachment to roughly determine the absolute position of a teat of the cow in a coordinate system of the milking station, by aid of which the robot may fetch a teat cup and move it to a position close to a teat of the cow present in the milking station. The image processing device is then provided, i.e. in a later stage of the teat cup attachment when the robot arm is close to attach the teat cup to the teat of the cow, to repeatedly and accurately determine the position of the teat of the cow relative to the robot arm or the teat cup. Thus, the position of the teat of the cow relative to the robot arm or the teat cup is more exact than what the absolute position can be measured.
The image processing device is provided, in the later stage when the robot arm is^close to attach the teat cup to the teat of the cow, to repeatedly determine the relative position of the teat of the cow in a coordinate system of the camera pair used, and to repeatedly detect the robot arm or the teat cup and determine its relative position in the coordinate system of the camera pair by the stereoscopic calculation method of the present invention.
During each absolute calibration, the camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, the positions of the well defined points being known in the coordinate system of the milking station, and the image processing device is provided to perform an absolute calibration process, in which the positions of the image planes of the cameras of the camera pair are determined in the coordinate system of the milking system to thereby be capable of determining the absolute position of the teat of the cow.
Similarly, during each relative calibration, the camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, and the image processing device is provided to perform a relative calibration process, in which the positions of the image planes of the cameras of the camera pair are determined relative to each other to thereby be capable of determining the position of the teat of the cow relative to another measured position. Advantageous by this process is that a very fast and accurate teat cup attachment is enabled, while no extremely high demands are put on the calibration process.
5. Image processing: stereo calculation
Once the teats of the cow have been detected their positions have to be determined by a stereo vision or stereoscopic calculation method. Stereo vision is the recovery of three- dimensional information of a scene from multiple images of the same scene. Stereo vision in computer systems tries to copy the human way when calculating distance. The principle is based on triangulation. Points on the surface of objects are imaged in different relative positions in the images recorded depending on their distance from the viewing system. The basic model is two ideal pinhole cameras viewing the same scene, only with a baseline distance separating them. The image plane should preferably be coplanar, which means that there is no relative rotation between the cameras.
In order to compute the best baseline distance for a system a number of parameters are to be considered. Camera positions, type of cameras, image area, relative positions, milking station constraints and distance-accuracy demands. The baseline is therefore a trade-off of the mentioned parameters. Measurements have shown that a baseline distance of about 5-20 cm would be a suitable choice. Further investigations have shown that the baseline distance should be about 1/5 of the distance from the cameras to the object of interest. The camera pair placed on the side of the milking station would then have a baseline distance of approximately 80/5 cm = 16 cm. The rear camera pair behind the cow is closer to the object and should have a baseline distance of about 30/5 cm = 6 cm. If the disparity increases the probability of finding and detecting the conjugate pair decreases.
One scene point is imaged in different locations in a first image and a second image recorded by differently placed cameras. The scene point in the first image plane and in the second image plane are both placed on the epipolar line and is called a conjugate pair or conjugate point. The epipolar line is the line that connects the scene point in the first and second images. If the scene point is found in the first image, the scene point in the second image is on the epipolar line. In the ideal model this means that if the cameras are arranged horizontally side by side the first and second image points are on the same image row. Conjugate points are a pair of image coordinates, one from each image, which are each a projection from the same point in space onto the respective image plane. The displacement between the image points is called the disparity and will finally give the depth information.
For the stereo vision calculations the choice of the points that constitutes the conjugate pair is important. They have to represent interesting measuring points and should not result bring any additional error to the distance errors. The conjugate points should also be easy to find.
According to the invention the position of the lower tip of the teat contour in the pair of images is defined as conjugate points.
The usual manner to model a stereo vision system is to have a horizontal displacement of the cameras. Fig. 6 shows a pair of images 91a-b as taken by a camera pair mounted horizontally side by side. The contour images of the teats are denoted 92a and 93a in the left hand image 91a, and 92b and 93b in the right hand image 91b. The epipolar lines are denoted by 94 for the teat images 92a-b and by 95 for the teat images 93a-b. This would result in difficulties to find the conjugate points because the lines representing the lower tips of the teat contours are essentially horizontal and the epipolar lines are horizontal- Since these lines are almost parallel it is difficult to select a correct conjugate point.
According to a preferred embodiment of the present invention, the cameras of each camera pair are arranged vertically one above the other as has been disclosed in section 2 above. Fig. 7 shows a pair of images 101a-b as taken by a camera pair mounted vertically one above the other. The contour images of the teats are denoted 102a and 103a in the upper image 101a, and 102b and 103b in the lower image 91b. The epipolar lines are denoted by 104 for the teat images 102a-b and by 105 for the teat images 103a-b. This results in difficulties to find the conjugate points because the lines representing the lower tips of the teat contours are essentially horizontal and the epipolar lines are horizontal. Since these lines are almost parallel it is difficult to select a correct conjugate point.
Through this arrangement of the cameras, the epipolar lines become orthogonal to the lines representing the lower tips of the teat contours. This will increase the accuracy and simplifies the conjugate point detection.
Additional information or conjugate points may be needed. This can be achieved by selecting further points on the lines representing the lower tips of the teat contours. The teats internal orientation will indicate on which teat line the conjugate point is to be found. The thickness and teat angle are two interesting parameters. These parameters should not be difficult to extract from the teat tip lines. In stereovision systems different kinds of occlusion occur. Depending on the cameras relative positions the two images from a stereo-camera pair differ. One teat can be visible in one image but bee partly or fully occluded in the other stereo- image pair. AnoΕher issue is the fact that edges from a teat visualized in two images, are in fact not the same physical edge.
Fig. 8 is a side view of the lower part of a teat of a milking animal illustrating self-occlusion. The teat tip 111 is modeled as a half sphere. Two projection lines 112a and 112b from cameras at different heights illustrate the fact that the lower tip of the teat contour in the images recorded by the cameras at different height does not correspond to the same physical scene point on the teat of the cow. In the image by the upper camera point 113a will be recorded as the lower tip of the teat contour, whereas in the image by the lower camera point 113b will be recorded as the lower tip of the teat contour. This leads inevitably to errors in the calculation of the positions of the teats.
The phenomenon which may be compensated for, by still a preferred embodiment of the invention. An image processing device can be provided, for each teat and for each pair of images, to compensate for any deviations caused by the fact that the lower tip of the teat contour in the pair of images corresponds to different objection or scene points on the teat due to different perspective views, in which the pair of images are recorded, by means of creating a mathematical model of the characteristic form of the teat, and to calculate the compensation based on the mathematical model, the different perspectives, and the distance to the teat. The exact distance to the teat is typically unknown, whereupon the image processing device can be provided to determine the positions of the teats of the milking animal, and to calculate the compensation for any deviations caused by the fact that the lower tip of the" teat contour in the pair of images corresponds to different objection points on the teat, in an iterative process, wherein better teat positions and better compensation can be obtained for each iteration.
6. Image processing: further functions
When using a stereo vision camera system it is possible to expand the functionality to more than locating teats and robot arms or teat cups. For instance, an image processing device can be provided to automatically detect injuries and/or dirt on the teats of the cow by an image processing method based on one or several of the repeatedly recorded pairs of images. A single image could be used to discover visual defects, such as redness, cuts, sores or wounds, on the teats and the udders of the cows. The camera system may also surveillance the milking process or inspect almost any part of the milking station. This would be easier if the cameras could be rotated independently of each other.
Furthermore, the teat cleaning device of the milking station may be designed to be capable of cleaning teats of cows according to anyone of a plurality of different teat cleaning schemes, and then one of the plurality of different teat cleaning schemes can be selected for the cleaning of the teats of the cow based on the automatic detection of injuries and/or dirt on the teats of the cow. Teat cleaning can in this manner not only be performed on a cow individual basis but also on a teat individual basis. The stereo vision system can also be used to create 3D images of objects. In those images the teat thickness and deformations can be analyzed.
Further, the stereo vision system can be used when a technician monitors the milking station, or inspects the milking station for errors. Thus, the stereo vision system can operate as a simple surveillance system. It can easily detect any movement around the robot and trespassers could be detected.
The stereo vision system is vulnerable to dirt or damages on the lenses of the cameras. By using image information dirt could be detected and allow for the system to attend to the problem.
By recording an image of the milking station e.g. when it is empty, a good reference image is created. The image can then be compared with later images. If the images do not differ more than to a given extent, no dirt has settled on the lens. This method is suitable for detecting lumps of dirt but it will probably not work well when it comes to detect slowly smeared lenses. Since this kind of dirt seldom appears suddenly, but is rather a slow deterioration in image quality. However, a smeared image could be compared to a strong blurring filter: the number of edges found in an image would be smaller the blurrier the lens is. Thus, by using images of the empty milking station it is probably possible to discover lumps of dirt and smeared areas by applying two different techniques.
If the cameras can be rotated around their own axes it is also possible to rotate them into such positions where they could detect dirt on each other. A lens is an easy object to automatically detect and it is possible to create a method for detecting dirt on an otherwise very clean surface.

Claims

1. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked', wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, characteri zed in that
- said image processing device is provided in an initial stage to determine the absolute position of a teat of the milking animal in a coordinate system of the milking system; and
- said image processing device is provided, in a later stage when the robot arm is close to attach a teat cup to the teat of the milking animal, to repeatedly determine the position of the teat of the milking animal relative to the robot arm or the teat cup, wherein
- said the position of the teat of the milking animal relative to the robot arm or the teat cup is more exact than said absolute position. .
2. The arrangement of claim 1 wherein said image processing device is provided, in the later stage when the robot arm is close to attach the teat cup to the teat of the milking animal, to repeatedly determine the relative position of the teat of the milking animal in a coordinate system of the camera pair; and to repeatedly detect the robot arm or the teat cup and determine its relative position in the coordinate system of the first camera pair by said stereoscopic calculation method based on said repeatedly recorded pairs of images.
3. The arrangement of claim 1 or 2 wherein
- said camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, the positions of the well defined points being known in the coordinate system of the milking system; and
- said image processing device is provided to perform an absolute calibration process, in which the positions of the image planes of the cameras of the camera pair are determined in the coordinate system of the milking system to thereby be capable of determining the absolute position of the teat of the milking animal.
4. The arrangement of any of claims 1-3 wherein
- said camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair; and
- said image processing device is provided to perform a relative calibration process, in which the positions of the image planes of the cameras of the camera pair are determined relative to each other to thereby be capable of determining the position -of the teat of the milking animal relative to another measured position.
5. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being characteri zed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- the absolute position of a teat of the milking animal is initially determined in a coordinate system of the milking system; and
- the position of the teat of the milking animal is determined relative to the robot arm or the teat cup repeatedly in a later stage when the robot arm is close to attach a teat cup to the teat of the milking animal, the position of the teat of the milking animal relative to the robot arm or the teat cup being more exact than said absolute position.
6. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, charac teri z ed in that
- said camera pair is comprised of a pair of thermal or infrared cameras, each responsive to infrared radiation propagating towards the camera.
7. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being c haracteri zed by the steps of:
- directing a camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the camera pair; and - repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- said camera pair is comprised of a pair of thermal or infrared cameras, each responsive to temperatures in the field of vision of the camera; and
- said repeatedly recorded pairs of images are thermal images.
8. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, c harac teri z ed in that
- said first camera pair is mounted below the teats of, and behind, the milking animal when being located in ' the position to be milked so that said first camera pair is directed diagonally upwards towards the teats of the milking animal when being located in the position to be milked.
9. The arrangement of claim 8 wherein the cameras of said first camera pair are movable relative to the milking system and to the milking animal when being located in a position to be milked, and optionally relative to each other, in order to be capable of reducing the number of failed teat position determinations due to teats being obscured, while pairs of images are recorded, by means of finding positions for said cameras where no teats are obscured.
10. The arrangement of claim 8 or 9 further comprising a third camera mounted adjacent said first camera pair mounted below the teats of, and behind, the milking animal, and directed towards the teats of the milking animal when being located in the position to be milked, for repeatedly record images simultaneously with the recording of said pairs of images, wherein said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on one of said repeatedly recorded pairs of images and said repeatedly recorded images by said third camera.
11. The arrangement of claim 10 wherein said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on another one of said repeatedly recorded pairs of images and said repeatedly recorded images by said third camera.
12. The arrangement of any of claims 8-11 further comprising a second camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the second camera pair is provided to repeatedly record pairs of images, wherein said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said pairs of images repeatedly recorded by said second camera pair.
13. The arrangement of claim 12 wherein said second camera pair is mounted below the milking animal, particularly in the floor of the milking system, when being located in the position to be milked.
14. The arrangement of claim 12 wherein said second camera pair is mounted at the side of the milking animal when being located in the position to be milked.
15. The arrangement of claim 14 wherein said second camera pair is mounted at a height so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images.
16. The arrangement of claim 14 or 15 wherein said second camera pair is movable vertically in order to be positioned at a height so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images.
17. The arrangement of any of claims 8-16 wherein said image processing device is provided in an initial stage to determine the absolute position of a teat of the milking animal in a coordinate system of the milking system; and
- said image processing device is provided, in a later stage when the robot arm is close to attach a teat cup to the teat of the milking animal, to repeatedly determine the position of the teat of the milking animal relative to the robot arm or the teat cup, wherein - the position of the teat of the milking animal relative to the robot arm or the teat cup is more exact than said absolute position.
18. The arrangement of claim 17 wherein said image processing device is provided, in the later stage when the robot arm is close to attach the teat cup to the teat of the milking animal, to repeatedly determine the relative position of the teat of the milking animal in a coordinate system of the camera pair; and to repeatedly detect the robot arm or the teat cup and determine its relative position in the coordinate system of the first camera pair by said stereoscopic calculation method based on said repeatedly recorded pairs of images.
19. The arrangement of claim 17 or 18 wherein
- said camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair, the positions of the well defined points being known in the coordinate system of the milking system; and
- said image processing device is provided to perform an absolute calibration process, in which the positions of the image planes of the cameras of the camera pair are determined in the coordinate system of the milking system to thereby be capable of determining the absolute position of the teat of the milking animal.
20. The arrangement of any of claims 17-19 wherein
- said camera pair is provided to record a pair of images, wherein several well defined points are located in the common field of vision of the camera pair; and - said image processing device is provided to perform a relative calibration process, in which the positions of the image planes of the cameras of the camera pair are determined relative to each other to thereby be capable of determining the position of the teat of the milking animal relative to another measured position.
21. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being characteri zed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- said first camera pair is arranged below the teats of, and behind, the milking animal when being located in the position to be milked; and is directed diagonally upwards towards the teats of the milking animal when being located in the position to be milked.
22. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, char acteri zed in that
- the cameras of said first camera pair are arranged vertically one above the other; and
- said image processing device is provided, for each teat and for each pair of images, to define the position of the lower tip of the teat contour in the pair of images as conjugate points for said stereoscopic calculation, and to find said conjugate points along a substantially vertical epipolar line.
23. The arrangement of claim 22 wherein said image processing device is provided, for each teat and for each pair of images, to compensate for any deviations caused by the fact that the lower tip of the teat contour in the pair of images corresponds to different objection points on the teat due to different perspective views, in which the pair of images are recorded, by means of creating a mathematical model of the characteristic form of the teat, and to calculate the compensation based on the mathematical model, the different perspectives, and the distance to the teat.
24. The arrangement of claim 23 wherein said image processing device is provided to determine the positions of the teats of the milking animal, and to calculate the compensation for any deviations caused by the fact that the lower tip of the teat contour in the pair of images corresponds to different objection points on the teat, in an iterative process.
25. The arrangement of any of claims 22-24 wherein said first camera pair is mounted below the teats of, and behind, the milking animal when being located in the position to be milked so that said first camera pair is directed diagonally upwards towards the teats of the milking animal when being located in the position to be milked.
26. The arrangement of claim 25 wherein the cameras of said first camera pair are movable relative to the milking system and to the milking animal when being located in a position to be milked, and optionally relative to each other, in order to be capable of reducing the number of failed teat position determinations due to teats being obscured, while pairs of images are recorded, by means of finding positions for said cameras where no teats are obscured.
27. The arrangement of any of claims 22-26 further comprising a third camera mounted adjacent said first camera pair, and directed towards the teats of the milking animal when being located in the position to be milked, for repeatedly record images simultaneously with the recording of said pairs of images, wherein said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on one of said repeatedly recorded pairs of images and said repeatedly recorded images by said third camera.
28. The arrangement of claim 27 wherein said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on another one of said repeatedly recorded pairs of images and said repeatedly recorded images by said third camera.
29- The arrangement of any of claims 22-28 further comprising a second camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the second camera pair is provided to repeatedly record pairs of images, and said image processing device is provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said pairs of images repeatedly recorded by said second camera pair.
30. The arrangement of claim 29 wherein said second camera pair is mounted below the milking animal, particularly in the floor of the milking system, when being located in the position to be milked.
31. The arrangement of claim 29 wherein said second camera pair is mounted at the side of the milking animal when being located in the position to be milked.
32. The arrangement of claim 31 wherein said second camera pair is mounted at a height so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images.
33. The arrangement of claim 31 or 32 wherein said second camera pair is movable vertically in order to be positioned at a height so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images."
34. The arrangement of any of claims 22-33 further comprising at least one light source provided for illuminating the udder of the milking animal to thereby increase the contrast in the repeatedly recorded pairs of images.
35. The arrangement of claim 34 wherein said light source emits white light.
36. The arrangement of claim 34 wherein said light source emits UV light.
37. The arrangement of any of claims 34-36 wherein said light source creates a back lighting for said first camera pair.
38. The arrangement of any of claims 34-36 wherein said light source is movable and/or capable of being directed toward different directions.
39. The arrangement of any of claims 22-38 wherein the image planes of the cameras of said first camera pair are coplanar.
40. The arrangement of any of claims 22-39 wherein said image processing device is provided, for each time the teats are to be detected, to apply a motion detection algorithm to reduce the area in which the teats likely are, wherein the difference between two images recorded one after the other by one camera of said camera pair is analyzed, and the area in which the teats likely are is reduced by discarding areas in the two images wherein substantially no movement has occurred.
41. The arrangement of claim 40 wherein said image processing device is provided to reduce scatter in the reduced area in which the teats likely are by applying a relaxation algorithm.
42. The arrangement of claim 40 or 41 wherein said image processing device is provided to enlarge the reduced area in which the teats likely are by a pixel expanding algorithm.
43. The arrangement of any of claims 40-42 wherein
- said camera pair directed towards the teats of the milking animal when being located in the position to be milked is directed so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images; and
- said image processing device is provided to further reduce the area in which the teats likely are by a contour creation algorithm.
44. The arrangement of any of claims 22-43 wherein said image processing device is provided, for each time the teats are to be detected, to apply an edge detection algorithm based on the phase congruency model of feature detection to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the milking animal.
45. The arrangement of claim 44 wherein said image processing device is provided, for each time the teats are to be detected, to apply a Canny detection algorithm to thereby find edges in a recorded pair of images that most likely include those of the teats of the milking animal.
46. The arrangement of claim 44 or 45 wherein said image processing device is provided, for each time the teats are to be detected, to apply a labeling algorithm for calculating features of the found edges and corners in the recorded pair of images.
47. The arrangement of claim 46 wherein said image processing device is provided, for each time the teats are to be detected, to apply a hierarchical chamfer matching algorithm for identifying edges and corners of the found edges and corners in the recorded pair of images which belong to the teats of the milking animal based on said calculated features.
48. The arrangement of any of claims 22-47 wherein said image processing device is provided in an initial stage to determine the absolute position of a teat of the milking animal in a coordinate system of the milking system; and
- said image processing device is provided, in a later stage when the robot arm is close to attach a teat cup to the teat of the milking animal, to repeatedly determine the position of the teat of the milking animal relative to the robot arm or the teat cup, wherein
- the position of the teat of the milking animal relative to the robot arm or the teat cup is more exact than said absolute position.
49. The arrangement of any of claims 22-48 wherein said image processing device is provided to automatically detect the condition of the teats, particularly if they are swell up or if injuries and/or dirt subsist on the teats, of the milking animal by an image processing method based on said repeatedly recorded pairs of images.
50. The arrangement of claim 49 wherein said injuries are any of wounds, cuts, sores, or red spots.
51. The arrangement of claim 49 or 50 wherein said milking system comprises at least one teat cleaning device capable of cleaning teats of milking animals according to anyone of a plurality of different teat cleaning schemes, said arrangement comprising means provided to select one of said plurality of different teat cleaning schemes for the cleaning of the teats of said milking animal based on said automatic detection of the condition of the teats of said milking animal.
52. The arrangement of any of claims 22-51 wherein said image processing device is provided to automatically detect dirt or damages on the lenses of said camera pair by an image processing method based on repeatedly recorded pairs of images.
53. The arrangement of claim 52 wherein said image processing device is provided, for each one of the cameras of said camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on comparisons of repeatedly recorded images by that camera.
54. The arrangement of claim 52 or 53 wherein
- the cameras of said camera pair are rotatable to be capable of being directed towards each other; and
- said image processing device is provided, for each one of the cameras of said camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on repeatedly recorded images by the other camera.
55. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being charac t eri z ed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of" images, wherein
- the position of the lower tip of the teat contour in each pair of images is defined as conjugate points for said stereoscopic calculation; and
- the cameras of said first camera pair are arranged vertically one above the other, wherein the conjugate points are found, for each teat and for each pair of images, along a substantially vertical epipolar line.
56. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images; and
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, char acteri z ed in that
- said image processing device is provided, for each time the teats are to be detected, to apply a motion detection algorithm to reduce the area in which the teats likely are, wherein the difference between two images recorded one after the other by one camera of said first camera pair is analyzed, and the area in which the teats likely are, is reduced by discarding areas in the two images wherein substantially no movement has occurred.
57. The arrangement of claim 56 wherein said image processing device is provided to reduce scatter in the reduced area in which the teats likely are by applying a relaxation algorithm.
58. The arrangement of claim 56 or 57 wherein said image processing device is provided to enlarge the reduced area in which the teats likely are by a pixel expanding algorithm.
59. The arrangement of any of claims 56-58 wherein
- said first camera pair is directed towards the teats of the milking animal when being located in the position to be milked is directed so that the teats of the milking animal belong to the outer contour of the milking animal in the repeatedly recorded pairs of images; and
- said image processing device is provided to further reduce the area in which the teats likely are by a contour creation algorithm.
60. The arrangement of any of claims 56-59 wherein said image processing device is provided, for each time -the teats are to be detected, to apply an edge detection algorithm based on the phase congruency model of feature detection to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the milking animal.
61. The arrangement of claim 60 wherein said image processing device is provided, for each time the teats are to be detected, to apply a Canny detection algorithm to thereby find edges in a recorded pair of images that most likely include those of the teats of the milking animal.
62. The arrangement of claim 60 or 61 wherein said image processing device is provided, for each time the teats are to be detected, to apply a labeling algorithm for calculating features of the found edges and corners in the recorded pair of images.
63. The arrangement of claim 62 wherein said image processing device is provided, for each time the teats are to be detected, to apply a hierarchical chamfer matching algorithm for identifying edges and corners of the found edges and corners in the recorded pair of images which belong to the teats of the milking animal based on said calculated features.
64. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being c haracteri z ed by the steps of: - directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- a motion detection algorithm is applied each time the teats are to be detected to reduce the area in which the teats likely are, in which the difference between two images recorded one after the other by one camera of said first camera pair is analyzed, and the area in which the teats likely are, is reduced by discarding areas in the two images wherein substantially no movement has occurred.
65. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on det'ermined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, characteri z ed in that
- said image processing device is provided, for each time the teats are to be detected, to apply an edge detection algorithm based on the phase congruency model of feature detection to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the milking animal.
66. The arrangement of claim 65 wherein said image processing device is provided, for each time the teats are to be detected, to apply a Canny detection algorithm to thereby find edges in a recorded pair of images that most likely include those of the teats of the milking animal.
67. The arrangement of claim 65 or 66 wherein said image processing device is provided, for each time the teats are to be detected, to apply a labeling algorithm for calculating features of the found edges and corners in the recorded pair of images.
68. The arrangement of claim 67 wherein said image processing device is provided, for each time the teats are to be detected, to apply a hierarchical chamfer matching algorithm for identifying edges and corners of the found edges and corners in the recorded pair of images which belong to the teats of the milking animal based on said calculated features.
69. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being characteri z ed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- an edge detection algorithm based on the phase congruency model of feature detection is applied each time the .teats are to be detected to thereby find edges and corners in a recorded pair of images that most likely include those of the teats of the milking animal.
70. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling- the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, ch aracteri z ed in that
- said image processing device is provided to automatically detect a condition of the teats of the milking animal by an image processing method based on said repeatedly recorded pairs of images .
71. The arrangement of claim 70 wherein said image processing device is provided to automatically detect injuries and/or dirt on the teats of the milking animal by an image processing method based on said repeatedly recorded pairs of images.
72. The arrangement of claim 71 wherein said injuries are any of wounds, cuts, sores, or red spots.
73. The arrangement of claim 70 wherein said image processing device is provided to automatically detect if a teat of the milking animal is swell up by an image processing method based on said repeatedly recorded pairs of images.
74. The arrangement of any of claims 70-73 wherein said milking system comprises at least one teat cleaning device capable of cleaning teats of milking animals according to anyone of a plurality of different teat cleaning schemes, said arrangement comprising means provided to select one of said plurality of different teat cleaning schemes for the cleaning of the teats of said milking animal based on said automatic detection of the condition of the teats of said milking animal.
75. The arrangement of any of claims 70-74 wherein said image processing device is provided to automatically detect dirt or damages on the lenses of said first camera pair by an image processing method based on repeatedly recorded pairs of images by said first camera pair.
76. The arrangement of claim 75 wherein said image processing device is provided, for each one of the cameras of said first camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on comparisons of repeatedly recorded images by that camera.
77. The arrangement of claim 75 or 76 wherein
- the cameras of said first camera pair are rotatable to be capable of being directed towards each other; and
- said image processing device is provided, for each one of the cameras of said first camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on repeatedly recorded images by the other camera.
78. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being characteri zed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein - injuries and/or dirt on the teats of the milking animal are automatically detected by an image processing method based on said repeatedly recorded pairs of images.
79. An arrangement for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said arrangement comprising:
- a first camera pair directed towards the teats of the milking animal when being located in the position to be milked, wherein the first camera pair is provided to repeatedly record pairs of images;
- an image processing device provided for repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, char ac teri z ed in that
- said image processing device is provided to automatically detect dirt or damages on the lenses of said first camera pair by an image processing method based on repeatedly recorded pairs of images by said first camera pair.
80. The arrangement of claim 79 wherein said image processing device is provided, for each one of the cameras of said first camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on comparisons of repeatedly recorded images by that camera.
81. The arrangement of claim 79 or 80 wherein - the cameras of said first camera pair are rotatable to be capable of being directed towards each other; and
- said image processing device is provided, for each one of the cameras of said first camera pair, to automatically detect dirt or damages on the lens of that camera by an image processing method based on repeatedly recorded images by the other camera.
82. A method for determining positions of the teats of a milking animal in a milking system comprising a robot arm for automatically attaching teat cups to the teats of a milking animal when being located in a position to be milked, and a control device for controlling the movement of said robot arm based on determined positions of the teats of the milking animal, said method being characteri zed by the steps of:
- directing a first camera pair towards the teats of the milking animal when being located in the position to be milked;
- repeatedly recording pairs of images by the first camera pair;
- repeatedly detecting the teats of the milking animal and determining their positions by a stereoscopic calculation method based on said repeatedly recorded pairs of images, wherein
- dirt or damages on the lenses of said first camera pair is/are automatically detected by an image processing method based on repeatedly recorded pairs of images by said first camera pair.
PCT/SE2005/000427 2004-03-30 2005-03-23 Arrangement and method for determining positions of the teats of a milking animal WO2005094565A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US10/594,881 US20080314324A1 (en) 2004-03-30 2005-03-23 Arrangement and Method for Determining Positions of the Teats of a Milking Animal
EP05722263A EP1729562A1 (en) 2004-03-30 2005-03-23 Arrangement and method for determining positions of the teats of a milking animal
US12/662,430 US8210122B2 (en) 2004-03-30 2010-04-16 Arrangement and method for determining positions of the teats of a milking animal

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
SE0400819-9 2004-03-30
SE0400821A SE0400821D0 (en) 2004-03-30 2004-03-30 Arrangement and method for determining positions of the teats of a milking animal
SE0400821-5 2004-03-30
SE0400819A SE527840C2 (en) 2004-03-30 2004-03-30 Teat position determining arrangement for use in milking system, includes image processor to determine position of teat of milking animal relative to robot arm, when fixing teat cup to teat
SE0400820A SE528237C2 (en) 2004-03-30 2004-03-30 Teat position determining arrangement for use in milking system, includes image processor to determine position of teat of milking animal relative to robot arm, when fixing teat cup to teat
SE0400820-7 2004-03-30

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US10/594,881 A-371-Of-International US20080314324A1 (en) 2004-03-30 2005-03-23 Arrangement and Method for Determining Positions of the Teats of a Milking Animal
US12/662,430 Division US8210122B2 (en) 2004-03-30 2010-04-16 Arrangement and method for determining positions of the teats of a milking animal

Publications (2)

Publication Number Publication Date
WO2005094565A1 WO2005094565A1 (en) 2005-10-13
WO2005094565A9 true WO2005094565A9 (en) 2006-01-19

Family

ID=35063438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SE2005/000427 WO2005094565A1 (en) 2004-03-30 2005-03-23 Arrangement and method for determining positions of the teats of a milking animal

Country Status (3)

Country Link
US (2) US20080314324A1 (en)
EP (3) EP2526762A1 (en)
WO (1) WO2005094565A1 (en)

Families Citing this family (64)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2626286C (en) * 2005-10-24 2014-05-27 Delaval Holding Ab Arrangement and method for visual detection in a milking system
CA2539645C (en) 2006-03-15 2020-04-28 Lmi Technologies Inc. Time of flight teat location system
SE530339C2 (en) * 2006-07-13 2008-05-06 Delaval Holding Ab An apparatus and method for recognizing and determining a position
NL1032435C2 (en) 2006-09-05 2008-03-06 Maasland Nv Device for automatically milking a dairy animal.
WO2009093967A1 (en) * 2008-01-22 2009-07-30 Delaval Holding Ab Arrangement and method for determining the position of an animal
WO2009120129A1 (en) * 2008-03-27 2009-10-01 Delaval Holding Ab Positioning of teat cups
NL1035702C2 (en) * 2008-07-15 2010-01-18 Lely Patent Nv Dairy animal i.e. cow, treatment system, has pair of three-dimensional sensors including image fields whose central lines diverge and enclose view angle that is smaller than maximum angle of view of image fields in horizontal plane
AU2009271840B2 (en) * 2008-07-15 2014-02-06 Lely Patent N.V. Dairy animal treatment system
WO2010031632A1 (en) * 2008-09-19 2010-03-25 Delaval Holding Ab Camera test arrangement, device and method in an automated milking system
WO2010139602A2 (en) * 2009-06-05 2010-12-09 Delaval Holding Ab Safety system
RU2551565C2 (en) 2010-01-29 2015-05-27 Геа Хоул Инк. Rotary milking station, kit for its mounting and methods of its mounting and operation
US9161511B2 (en) 2010-07-06 2015-10-20 Technologies Holdings Corp. Automated rotary milking system
US8707905B2 (en) 2010-08-31 2014-04-29 Technologies Holdings Corp. Automated system for applying disinfectant to the teats of dairy livestock
US8800487B2 (en) 2010-08-31 2014-08-12 Technologies Holdings Corp. System and method for controlling the position of a robot carriage based on the position of a milking stall of an adjacent rotary milking platform
US10111401B2 (en) 2010-08-31 2018-10-30 Technologies Holdings Corp. System and method for determining whether to operate a robot in conjunction with a rotary parlor
US9149018B2 (en) 2010-08-31 2015-10-06 Technologies Holdings Corp. System and method for determining whether to operate a robot in conjunction with a rotary milking platform based on detection of a milking claw
SE535435C2 (en) 2010-12-15 2012-08-07 Agricam Ab A system and method for controlling an automatic milking system
EP2685810B1 (en) 2011-03-17 2020-09-09 Mirobot Ltd. Human assisted milking robot and method
EP2685811B1 (en) * 2011-03-17 2016-03-02 Mirobot Ltd. System and method for three dimensional teat modeling for use with a milking system
US9968069B2 (en) 2011-03-18 2018-05-15 Gea Farm Technologies Gmbh Milking cluster and milking parlor having such a milking cluster
GB2489668A (en) * 2011-03-28 2012-10-10 Delaval Holding Ab A method and apparatus for locating the teats of an animal
US8885891B2 (en) 2011-04-28 2014-11-11 Technologies Holdings Corp. System and method for analyzing data captured by a three-dimensional camera
US9043988B2 (en) 2011-04-28 2015-06-02 Technologies Holdings Corp. Milking box with storage area for teat cups
US8683946B2 (en) 2011-04-28 2014-04-01 Technologies Holdings Corp. System and method of attaching cups to a dairy animal
US9049843B2 (en) 2011-04-28 2015-06-09 Technologies Holdings Corp. Milking box with a robotic attacher having a three-dimensional range of motion
US8903129B2 (en) 2011-04-28 2014-12-02 Technologies Holdings Corp. System and method for filtering data captured by a 2D camera
US9258975B2 (en) 2011-04-28 2016-02-16 Technologies Holdings Corp. Milking box with robotic attacher and vision system
US9357744B2 (en) * 2011-04-28 2016-06-07 Technologies Holdings Corp. Cleaning system for a milking box stall
US9215861B2 (en) 2011-04-28 2015-12-22 Technologies Holdings Corp. Milking box with robotic attacher and backplane for tracking movements of a dairy animal
US9107378B2 (en) 2011-04-28 2015-08-18 Technologies Holdings Corp. Milking box with robotic attacher
US9058657B2 (en) 2011-04-28 2015-06-16 Technologies Holdings Corp. System and method for filtering data captured by a 3D camera
US8671885B2 (en) 2011-04-28 2014-03-18 Technologies Holdings Corp. Vision system for robotic attacher
US9265227B2 (en) 2011-04-28 2016-02-23 Technologies Holdings Corp. System and method for improved attachment of a cup to a dairy animal
US10127446B2 (en) 2011-04-28 2018-11-13 Technologies Holdings Corp. System and method for filtering data captured by a 2D camera
US9107379B2 (en) 2011-04-28 2015-08-18 Technologies Holdings Corp. Arrangement of milking box stalls
US8746176B2 (en) 2011-04-28 2014-06-10 Technologies Holdings Corp. System and method of attaching a cup to a dairy animal according to a sequence
US9681634B2 (en) 2011-04-28 2017-06-20 Technologies Holdings Corp. System and method to determine a teat position using edge detection in rear images of a livestock from two cameras
US10357015B2 (en) 2011-04-28 2019-07-23 Technologies Holdings Corp. Robotic arm with double grabber and method of operation
US9161512B2 (en) 2011-04-28 2015-10-20 Technologies Holdings Corp. Milking box with robotic attacher comprising an arm that pivots, rotates, and grips
JP5953658B2 (en) * 2011-05-25 2016-07-20 ソニー株式会社 ROBOT CONTROL DEVICE, ROBOT DEVICE CONTROL METHOD, COMPUTER PROGRAM, PROGRAM STORAGE MEDIUM, AND ROBOT DEVICE
JP5711104B2 (en) * 2011-12-14 2015-04-30 株式会社東芝 Image display apparatus, method, program, and image processing apparatus
DE102012110502A1 (en) * 2012-03-14 2013-09-19 Gea Farm Technologies Gmbh Divider of a milking parlor arrangement and milking parlor arrangement
US9510553B2 (en) * 2012-06-12 2016-12-06 Delaval Holding Ab Arrangement and method for a milking system
SE1550114A1 (en) * 2012-07-20 2015-02-04 Lely Patent Nv Milking arrangement
NL2010157C2 (en) * 2013-01-22 2014-07-23 Lely Patent Nv Method of and animal treatment system for performing an animal related action on an animal part in an animal space.
US8885925B2 (en) 2013-03-12 2014-11-11 Harris Corporation Method for 3D object identification and pose detection using phase congruency and fractal analysis
CA2908329C (en) * 2013-04-10 2021-07-13 Viking Genetics Fmba System for determining feed consumption of at least one animal
US9648842B1 (en) * 2013-06-25 2017-05-16 Phil G. Mlsna Externally monitored and controlled milking applicator
AU2016286295B2 (en) 2015-07-01 2019-09-26 Viking Genetics Fmba System and method for identification of individual animals based on images of the back
US10306863B2 (en) * 2016-07-07 2019-06-04 Technologies Holdings Corp. System and method for preparation cup attachment
US9936670B2 (en) * 2016-08-17 2018-04-10 Technologies Holdings Corp. Vision system with teat detection
US10817970B2 (en) 2016-08-17 2020-10-27 Technologies Holdings Corp. Vision system with teat detection
US9807971B1 (en) 2016-08-17 2017-11-07 Technologies Holdings Corp. Vision system with automatic teat detection
US10558855B2 (en) 2016-08-17 2020-02-11 Technologies Holdings Corp. Vision system with teat detection
US10349615B2 (en) * 2016-08-17 2019-07-16 Technologies Holdings Corp. Vision system for teat detection
US10349614B2 (en) * 2016-08-17 2019-07-16 Technologies Holdings Corp. Vision system for teat detection
WO2018035336A1 (en) * 2016-08-17 2018-02-22 Technologies Holdings Corp. Vision system for teat detection
US10499607B2 (en) 2016-08-17 2019-12-10 Technologies Holdings Corp. Vision system for teat detection
US10499609B2 (en) * 2016-08-17 2019-12-10 Technologies Holdings Corp. Vision system for teat detection
US10349613B2 (en) * 2016-08-17 2019-07-16 Technologies Holdings Corp. Vision system for teat detection
US10477827B2 (en) 2016-08-17 2019-11-19 Technologies Holdings Corp. Vision system for teat detection
US10653102B2 (en) * 2018-01-31 2020-05-19 Technologies Holdings Corp. Robotic arm
US11458635B2 (en) * 2018-05-09 2022-10-04 Intelligrated Headquarters, Llc Method and system for manipulating articles
US11318620B2 (en) 2018-05-09 2022-05-03 Intelligrated Headquarters, Llc Method and system for manipulating items

Family Cites Families (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4601055A (en) * 1984-04-10 1986-07-15 The United States Of America As Represented By The Secretary Of Commerce Image processor
NL8600076A (en) * 1986-01-16 1987-08-17 Lely Nv C Van Der METHOD AND APPARATUS FOR MILKING AN ANIMAL.
FR2595197B1 (en) * 1986-03-07 1988-11-18 Cemagref AUTOMATIC MILKING INSTALLATION
DE3742867C3 (en) * 1987-12-17 1998-04-09 Fraunhofer Ges Forschung Device for joining elements into corresponding receiving elements of an object
GB8900084D0 (en) * 1989-01-04 1989-03-01 British Res Agricult Eng Milking
DE4113700A1 (en) * 1991-04-26 1992-10-29 Dieter Dipl Ing Schillingmann Automatic milking using milking robot - using stored data to position milking cups for each individual cow
US5205779A (en) * 1991-09-04 1993-04-27 Texas Beef Group Method and apparatus for automatically segmenting animal carcasses
GB9224406D0 (en) * 1992-11-20 1993-01-13 Silsoe Research Inst Examination of milking animals
NL9500006A (en) 1995-01-02 1996-08-01 Gascoigne Melotte Bv Method and device for positioning teat cups.
DE19523676A1 (en) * 1995-07-03 1997-01-16 Duevelsdorf & Sohn Gmbh & Co K Method for locating an object
SE9503792D0 (en) * 1995-10-27 1995-10-27 Tetra Laval Holdings & Finance Teat location for milking
DE69619391T2 (en) * 1995-10-27 2002-11-21 Delaval Holding Ab ANALYSIS OF COLORS IN IMAGES FOR USE IN ANIMAL FARMING
NL1001912C2 (en) * 1995-12-15 1997-06-17 Maasland Nv Device for milking animals.
DE19548347A1 (en) * 1995-12-22 1997-07-03 Westfalia Separator Ag Mechanical automatic or robot method of application of milking suction attachment to udder teats of animal being milked
NL1004406C2 (en) * 1996-08-01 1998-02-05 Maasland Nv Device for automatic milking of animals.
SE9603077D0 (en) * 1996-08-29 1996-08-29 Tetra Laval Holdings & Finance An apparatus for and method of performing an animal-related action regarding at least a portion of the body of an animal
WO1998045808A1 (en) * 1997-04-04 1998-10-15 Alfa Laval Agri Ab Method and apparatus for generating image information when carrying out animal related operations
SE9701547D0 (en) * 1997-04-23 1997-04-23 Alfa Laval Agri Ab Apparatus and method for recognizing and determining the positon of a part of an animal
SE9702628D0 (en) * 1997-07-07 1997-07-07 Alfa Laval Agri Ab An animal related apparatus
SE517179C2 (en) * 1998-07-24 2002-04-23 Alfa Laval Agri Ab Device and method for determining a site for an animal-related organ
JP2001119614A (en) 1999-10-19 2001-04-27 Fuji Photo Film Co Ltd Device and method for image-pickup
SE0000153L (en) 2000-01-19 2001-07-20 Delaval Holding Ab A method and apparatus for locating the teats of a dairy animal
US6678414B1 (en) * 2000-02-17 2004-01-13 Xerox Corporation Loose-gray-scale template matching
NL1015559C2 (en) * 2000-06-28 2002-01-02 Idento Electronics Bv Milk system with three-dimensional imaging.
SE0002720D0 (en) * 2000-07-19 2000-07-19 Delaval Holding Ab A method and apparatus for examining milking animals
US6707459B1 (en) * 2001-02-01 2004-03-16 Apple Computer, Inc. Adjustment of color values for optimized image processing
US7542586B2 (en) * 2001-03-13 2009-06-02 Johnson Raymond C Touchless identification system for monitoring hand washing or application of a disinfectant
SE0102162D0 (en) * 2001-06-19 2001-06-19 Delaval Holding Ab System and method for milking animals
SE0103614D0 (en) * 2001-10-31 2001-10-31 Delaval Holding Ab A method for performing milking operations and performing aftertreatment operations
WO2003055297A1 (en) 2001-12-28 2003-07-10 Idento Electronics B.V. Method and apparatus for detection of teats
EP1332667A1 (en) * 2002-02-05 2003-08-06 Lely Enterprises AG A method of and a device for performing an animal related action on an animal
JP2005530261A (en) * 2002-06-21 2005-10-06 アイシス イノヴェイション リミテッド Improvements in or related to image processing
GB0318733D0 (en) * 2003-08-11 2003-09-10 Icerobotics Ltd Improvements in or relating to milking machines

Also Published As

Publication number Publication date
US20080314324A1 (en) 2008-12-25
EP2526762A1 (en) 2012-11-28
EP2263448A2 (en) 2010-12-22
EP1729562A1 (en) 2006-12-13
US20100199915A1 (en) 2010-08-12
WO2005094565A1 (en) 2005-10-13
EP2263448A3 (en) 2012-07-18
US8210122B2 (en) 2012-07-03

Similar Documents

Publication Publication Date Title
US8210122B2 (en) Arrangement and method for determining positions of the teats of a milking animal
Bac et al. Stem localization of sweet-pepper plants using the support wire as a visual cue
CN108416791B (en) Binocular vision-based parallel mechanism moving platform pose monitoring and tracking method
US9478035B2 (en) 2D/3D localization and pose estimation of harness cables using a configurable structure representation for robot operations
EP1656014B1 (en) Improvements in or relating to milking machines
CA2931529C (en) 3d corrected imaging
RU2595621C2 (en) Method and device for optical determination of position and/or orientation of object in space
Doignon et al. Segmentation and guidance of multiple rigid objects for intra-operative endoscopic vision
Santos et al. 3D plant modeling: localization, mapping and segmentation for plant phenotyping using a single hand-held camera
US11151405B1 (en) Method and system for machine vision detection
Kohan et al. Robotic harvesting of rosa damascena using stereoscopic machine vision
CN110648362B (en) Binocular stereo vision badminton positioning identification and posture calculation method
Nguyen et al. Comparison of structure-from-motion and stereo vision techniques for full in-field 3d reconstruction and phenotyping of plants: An investigation in sunflower
Azouz et al. Development of a teat sensing system for robotic milking by combining thermal imaging and stereovision technique
KR20150105190A (en) Camera calibration method and apparatus using a color-coded structure
KR102044852B1 (en) Automatic Detect Device and Method of dairy cow teat
WO2010023122A2 (en) Arrangement and method for determining positions of the teats of a milking animal
US10204405B2 (en) Apparatus and method for parameterizing a plant
Zhu et al. Research on cotton row detection algorithm based on binocular vision
CN107330919B (en) Method for acquiring pistil motion track
CN111784749A (en) Space positioning and motion analysis system based on binocular vision
KR101706511B1 (en) Method of calculating position data of harvested object using stereo images
Costa et al. Stereovision system for estimating tractors and agricultural machines transit area under orchards canopy
Han et al. 3D reconstruction of a citrus canopy
Furtado et al. Low resolution tool tracking for microsurgical training in a simulated environment

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
COP Corrected version of pamphlet

Free format text: PAGES 5-8 AND 15, DESCRIPTION, REPLACED BY CORRECT PAGES 5-8 AND 15

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

WWE Wipo information: entry into national phase

Ref document number: 2005722263

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2005722263

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 10594881

Country of ref document: US