WO2025101108A1 - Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil - Google Patents

Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil Download PDF

Info

Publication number
WO2025101108A1
WO2025101108A1 PCT/SE2024/050946 SE2024050946W WO2025101108A1 WO 2025101108 A1 WO2025101108 A1 WO 2025101108A1 SE 2024050946 W SE2024050946 W SE 2024050946W WO 2025101108 A1 WO2025101108 A1 WO 2025101108A1
Authority
WO
WIPO (PCT)
Prior art keywords
interest
image data
region
dimg
pixels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/SE2024/050946
Other languages
English (en)
Inventor
Arto RAJALA
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
DeLaval Holding AB
Original Assignee
DeLaval Holding AB
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DeLaval Holding AB filed Critical DeLaval Holding AB
Publication of WO2025101108A1 publication Critical patent/WO2025101108A1/fr
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

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 OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/255Detecting or recognising potential candidate objects based on visual cues, e.g. shapes

Definitions

  • the present invention relates generally to automatic milking of dairy animals. Especially, the invention relates to a controller according to the preamble of claim 1 and a corresponding computer- implemented method. The invention also relates to a computer program and a non-volatile data carrier storing such a computer program.
  • WO 2021/032890 shows a rotary milking platform that comprises a plurality of stalls and an RFID animal identifying system for identifying animals entering the stalls of the platform.
  • a microprocessor reads signals from an image capturing device and computes a feature vector from the captured image of each animal.
  • a plurality of reference feature vectors comprising respective matrices of metrics already derived from images of the respective animals captured by the image capturing device are stored and cross-referenced with the identity of the respective animals.
  • the microprocessor compares computed feature vectors of each animal with the stored reference feature vectors until a best match has been determined with one of the reference feature vectors. The identity of the animal of that matching reference feature vector is then determined as the identity of the animal of that computed feature vector.
  • the determined identity of the animal in the relevant stall is compared with the identity of the animal determined for that stall by the RFID system. On a favorable comparison the identity of the animal determined from the captured image of that animal is confirmed as the identity of the animal. In the event of a conflict between the two identities being determined, a conflict alert signal is produced.
  • EP 4 187 505 describes a method and a system for determining an identity of an animal.
  • the method comprises obtaining, via an animal recording module, data associated with an animal moving through a space, the data comprising a video from a two-dimensional imaging sensor; extracting, from the data, a set of parameters by performing the steps comprising: determining a visual feature of the animal from the data; determining instances representing the shape of the animal in the data to form detected instances; identifying a set of reference points in each of the detected instances; determining one or more characteristics of the animal by processing at least some of the sets of identified reference points in a first module, the first module comprising a trained neural network; and generating the set of parameters comprising the visual feature and the determined one or more characteristics; generating an identification vector from the generated set of parameters; selecting known identification vectors from a first database of known identification vectors, each known identification vector corresponding to a unique registered animal; determining a list of matching scores by comparing the generated identification vector with the selected known identification vectors; responsive to determining
  • US 11 ,080,522 discloses a system and a method for identification of individual animals based on images, such as 3D-images, of the animals, especially of cattle and cows. When animals live in areas or enclosures where they freely move around, it can be complicated to identify the individual animal.
  • the present disclosure relates to a method for determining the identity of an individual animal in a population of animals with known identity, the method comprising the steps of acquiring at least one image of the back of a preselected animal, extracting data from said at least one image relating to the anatomy of the back and/or topology of the back of the preselected animal, and comparing and/or matching said extracted data against reference data corresponding to the anatomy of the back and/or topology of the back of the animals with known identity, thereby identifying the preselected animal.
  • the method and system can be used to monitor feed intake, such as feed intake for dairy cows as well as health status.
  • the object of the present invention is therefore to offer a solution that mitigates the above problem, and thus allows efficient and reliable imaged-based control of an automatic milking arrangement.
  • the object is achieved by a controller for an automatic milking arrangement
  • the controller is configured to obtain at least one first frame of image data from a camera, which image data represent at least one body part of a milking animal, and which image data are registered using default exposure and/or ISO settings.
  • the controller is configured to control the automatic milking arrangement with respect to the at least one body part based on the obtained image data.
  • the controller is configured to define at least one region of interest in the at least one first frame of the image data, wherein each of the at least one region of interest includes a respective set of pixels of the at least one first frame of the image data.
  • the at least one region of is defined through a search procedure, which is performed in the at least one first frame of the image data.
  • the search procedure is configured to detect at least one image object that fulfils at least one size-shape criterion, for example relating to a contour of a body, or part thereof; a length, or range of lengths of a body, or part thereof; a width, or range of widths of a body, or part thereof and/or a shape of a body part.
  • the search procedure is performed in three-dimensional image data specifying respective distances between an image sensor plane in the camera and different imaged surfaces represented by the image data.
  • the controller is configured to define the at least one region of interest within the at least one image object that fulfils said at least one size-shape criterion, and check, in each of the at least one region of interest, if the respective set of pixels fulfil at least one quality criterion. If the respective set of pixels in each of the at least one region of interest fulfil the at least one quality criterion, the controller is configured to control the camera to continue to register image data using the default exposure and/or ISO settings, and in parallel, control the automatic milking arrangement with respect to the at least one body part based on the image data registered using the default exposure and/ or ISO settings.
  • the controller is configured to control the camera to adjust its exposure and/or ISO settings such that image data that are registered subsequent to the at least one first frame are estimated to fulfil the at least one quality criterion.
  • the controller is also configured to control the camera to register image data using the adjusted exposure and/or ISO settings, and in parallel, control the automatic milking arrangement with respect to the at least one body part based on the image data registered using the adjusted exposure and/or ISO settings.
  • This controller is advantageous because it quickly tunes the camera for capturing high-quality image data of relevant body parts, for instance the teats, of each animal in a heard.
  • the at least one first frame of the image data contains at least one two-dimensional (2D) image
  • the at least one quality criterion defines a pre-defined range of light intensity levels within which pre-defined range at least a threshold portion of the pixels in the respective set of pixels in each of the at least one region of interest must represent a light intensity level.
  • the controller is configured to check the respective set of pixels in each of the at least one region of interest against the pre-defined range of light intensity levels.
  • the controller is configured to control the camera to adjust its exposure and/or ISO settings to increase the light intensity of the image data that are registered subsequent to the at least one first frame.
  • the controller is instead configured to control the camera to adjust its exposure and/or ISO settings to decrease the light intensity of the image data that are registered subsequent to the at least one first frame. Consequently, adequate camera adjustments may be effected at very low latency.
  • the camera contains an image sensor with a color filter array confi- gured to register the image data in a number of color channels.
  • the controller is further configured to check, with respect to each color channel of said number of color channels and the respective set of pixels in each of the at least one region of interest against the pre-defined range of light intensity levels, if not the threshold portion of the pixels in the respective set of pixels in each of the at least one region of interest in each color channel of said number of color channels represent light intensity levels in the pre-defined range, and the pixels in at least one of the at least one region of interest represent light intensity levels predominantly below the pre-defined range, the controller is configured to control the camera to adjust its exposure and/or ISO settings to increase the light intensity of the image data that are registered subsequent to the at least one first frame.
  • the controller is configured to control the camera to adjust its exposure and/or ISO settings to decrease the light intensity of the image data that are registered subsequent to the at least one first frame.
  • the camera may efficiently be tuned to register high-quality color image data based on which the automatic milking arrangement may be controlled.
  • the check of the respective set of pixels in each of the at least one region of interest against the pre-defined range of light intensity levels involves performing at least one statistical analysis of the light intensity levels represented by the respective set of pixels in each of the at least one region of interest.
  • the controller may be configured to calculate mean, median and/or standard deviation values for the light intensity levels in each region of interest, and based thereon, conclude whether or not the at least one quality criterion is fulfilled.
  • the at least one first frame of the image data contains at least one three-dimensional (3D) image with range data specifying respective distances between an image sensor plane in the camera and different imaged surfaces represented by the image data.
  • the at least one quality criterion defines a threshold degree of graininess that the at least one first frame of the image data must not exceed.
  • the graininess represents a signal-to-noise ratio (SNR), where a high degree of graininess is equivalent to a relatively low SNR, and vice versa.
  • the controller is configured to check the respective set of pixels in each of the at least one region of interest against the threshold degree of graininess, and if the threshold degree of graininess is exceeded, the controller is configured to control the camera to adjust its exposure and/or ISO settings, such that the degree of graininess is expected to decrease.
  • the controller is configured to increase a first parameter specifying an exposure time for the camera, increase a second parameter specifying an aperture value for the camera and/or decrease a third parameter specifying an ISO value for the camera.
  • the checking of the respective set of pixels in each of the at least one region of interest against the threshold degree of graininess involves performing at least one statistical analysis of the distances represented by the respective set of pixels in each of the at least one region of interest.
  • the controller may for example be configured to calculate mean, median and/or standard deviation values for the distance values defined by the respective set of pixels in each of the at least one region of interest, and based thereon, conclude whether or not the at least one quality criterion is fulfilled.
  • the at least one image object that fulfils said at least one size-shape criterion is a teat tip, an entire teat and/or a transition region between a teats and an udder. Namely, this is very useful when controlling an automatic milking arrangement, such as a milking robot, for example to attach teatcups to an animal.
  • the controller is configured control of the automatic milking arrangement with respect to the at least one body part by controlling a robot arm to attach teatcups to the teats of the animal whose at least one body part is represented by the image data and/or selecting a teat liner for the animal whose at least one body part is represented by the image data.
  • the invention may both be actively employed in the actual milk extraction as such, and in an adjustment procedure preceding the milk extraction.
  • the controller is configured to conduct a voting procedure, wherein an adjustment of the exposure and/or ISO settings called for by each region of interest is weighted by a centering factor.
  • the centering factor is delimited within a predefined range, say 1 to 5, and is based on a distance between a respective center of the region of interest and a center of the at least one first frame of the image data.
  • the centering factor influences the exposure and/or ISO settings called for by each region of interest by a relationship that is inversely proportional to said distance.
  • the controller is configured to count the votes from all the regions of interest, each of which votes reflects a respective amount and direction of adjustment weighted by the centering factor,
  • the controller is the configured to determine an adjustment of the exposure and/ or ISO settings with respect to an amount and direction, i.e. brighter or darker, in relation to a current setting thereof based on a majority ruling of said votes.
  • pixels located centrally in the frame have greater influence on any adjustment of the exposure and/or ISO settings than pixels located relatively far from a center of the frame, by for instance being located near the edges of the frame.
  • the regions of interest are organized in first, second and third sets of regions of interest, where the first set of regions of interest are located in a central zone of the image data, the second set of regions of interest are located in an outer zone surrounding the central zone and the third set of regions of interest are located in peripheral zone surrounding the outer zone.
  • the controller is configured to conduct a voting procedure, wherein an adjustment of the exposure and/or ISO settings called for by each region of interest in the central zone is given a first weight factor, an adjustment of the exposure and/or ISO settings called for by each region of interest in the outer zone is given a second weight factor and an adjustment of the exposure and/or ISO settings called for by each region of interest in the peripheral zone is given a third weight factor, which first weight factor is larger than the second weight factor and which second weight factor is larger than the third weight factor.
  • the controller is further configured to count the votes from all the regions of interest, each of which votes reflects a respective amount and direction of adjustment, and determine an adjustment of the exposure and/or ISO settings with respect to an amount and direction in relation to a current setting thereof based on a majority ruling of said votes.
  • pixels located centrally in the frame have greater influence on any adjustment of the exposure and/or ISO settings than pixels located relatively far from a center of the frame, by for instance being located near the edges of the frame.
  • the object is achieved by a computer-implemented method, which is performed in a processing unit in a controller, which controller, in turn, is arranged to control an automatic milking arrangement.
  • the method involves obtaining at least one first frame of image data from a camera, which image data represent at least one body part of a milking animal, and which image data are registered using default exposure and/or ISO settings.
  • the method further involves controlling the automatic milking arrangement with respect to the at least one body part based on the obtained image data.
  • the method involves defining at least one region of interest in the at least one first frame of the image data, wherein each of the at least one region of interest includes a respective set of pixels of the at least one first frame of the image data.
  • the at least one region of interest is defined by performing a search procedure in the at least one first frame of the image data, which search procedure is configured to detect at least one image object that fulfils at least one size-shape criterion.
  • the search procedure is performed in 3D image data specifying respective distances between an image sensor plane in the camera and different imaged surfaces represented by the image data.
  • the at least one region of interest is defined within the at least one image object that fulfils said at least one size-shape criterion.
  • the method further involves checking, in each of the at least one region of interest, if the respective set of pixels fulfil at least one quality criterion.
  • the camera is controlled to register image data subsequent to the at least one first frame of image data, and in parallel, the automatic milking arrangement is controlled with respect to the at least one body part based on the image data registered using the default exposure and/ or ISO settings. If, however, the respective set of pixels in at least one of the at least one region of interest do not fulfil the at least one quality criterion, the camera is controlled to adjust its exposure and/or ISO settings such that image data that are registered subsequent to the at least one first frame are estimated to fulfil the at least one quality criterion. Moreover, the camera is controlled to register image data using the adjusted exposure and/or ISO settings, and in parallel, the automatic milking arrangement is controlled with respect to the at least one body part based on the image data registered using the adjusted exposure and/or ISO settings.
  • the object is achieved by a computer program loadable into a non-volatile data carrier communicatively connected to a processing unit.
  • the computer program includes software for executing the above method when the program is run on the processing unit.
  • the object is achieved by a non-volatile data carrier containing the above computer program.
  • Figure 1 schematically illustrates an automatic milking arrangement that is controllable by a controller according to one embodiment of the invention
  • Figures 2a-b illustrate how different regions of interest may be defined in the image data according to embodiments of the invention
  • Figures 3a-d illustrate aspects of a quality criterion related to ranges of light intensity levels of the image data according to embodiments of the invention.
  • Figure 4 illustrates, by means of a flow diagram, the general method according to the invention.
  • FIG. 1 shows a simplified automatic milking arrangement 110 in respect of which the invention may be implemented.
  • the automatic milking arrangement 110 is represented by a robot arm that is controllable by a controller 100 according to one embodiment of the invention.
  • the robot arm may be configured to carry one or more teatcups.
  • the controller 100 is configured to control the automatic milking arrangement 1 10 with respect to at least one body part of an animal based on image data Di mg .
  • the controller 100 is specifically configured to control the robot arm 1 10 to attach teatcups to the teats 131 , 132, 133 and 134 respectively of the animal’s udder 130.
  • the controller 100 is configured to obtain image data Dimg from a camara 140, which image data Dimg are registered using default exposure and/or ISO settings xs in the camera 140.
  • the default exposure and/or ISO settings xs are selected to values estimated to be suitable for registering image data Dimg of relevant body parts, such as the teats 131 , 132, 133 and 134 and/or the udder 130 of a dairy animal.
  • the exposure and/or ISO settings IDi :xsi influence the brightness of the image data Dimg produced by an image sensor array in a camera 140.
  • the exposure and/or ISO settings IDi :xsi may contain one or more of three variable parameters of which exposure time for the camera 140 represents a first parameter.
  • An aperture value represents a second parameter.
  • the exposure time and the aperture value are similar to one another in that they both determine an amount of light that reaches an image sensor array in the camera 140.
  • the amount of light that reaches the image sensor array may either be increased by prolonging the exposure time or increasing the aperture value, or both.
  • each photosensor in the image sensor array may produce a voltage that is proportional to the amount of light hitting the photosensor.
  • an overall increased amount of light results in higher voltage outputs from the photosensors in the image sensor array.
  • the ISO value is thus the third parameter of said three variable parameters.
  • the ISO value is a mapping, which instructs the image sensor array how bright a resulting image shall be given a particular exposure setting in terms of exposure time and aperture value.
  • the ISO value may be seen as a bias level for a dynamic range of the image data Di mg between completely black and completely white. An increase of the ISO value shifts the entire dynamic range upwards toward white, whereas decrease of the ISO value shifts the entire dynamic range downwards toward black.
  • Each of the parameters: exposure time, aperture value and ISO value is associated with its particular pros and cons. While a prolonged exposure time is advantageous because it increases the amount of light that reaches the image sensor array, a prolonged exposure time is disadvantageous because it risks causing motion artefacts in the form of blur. An increased aperture value is advantageous because it also increases the amount of light that reaches the image sensor array. However, the larger the aperture value, the shallower the depth of field. Le. for large aperture values, only objects within a very short distance range from the camera will be depicted in focus. In contrast to the other two parameters, a variation of the ISO value does not influence the amount of light that reaches the image sensor array.
  • Each image sensor array has a so-called base ISO value, which represents a technically optimal mapping of the light-to-image data readout from the image sensor array.
  • the base ISO value represents a lowest recommended ISO value for a given image sensor array. Any ISO value above the base ISO value renders the image data brighter, however at the expense of a reduced dynamic range, possibly even clipped/blown out highlights, and a deteriorated sig- nal-to-noise ratio (SNR), which often appears as an increased degree of graininess in the image data.
  • SNR sig- nal-to-noise ratio
  • the controller 100 is configured to obtain image data Di mg from the camera 140, which image data Dimg represent the at least one body part, such as the teats 131 , 132, 133 and 134 respectively.
  • the image data D img are registered using the default exposure and/or ISO settings xs.
  • the controller 100 is configured to control the camera 140 to register at least one first frame, i.e. still image, of the image data D img using the default exposure and/or ISO settings xs.
  • the controller 100 is configured to define at least one region of interest in the at least one first frame of the image data Dimg .
  • Figures 2a and 2b illustrate how different regions of interest ROI 1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively may be defined in the image data D img according to embodiments of the invention.
  • the controller 100 is configured to define at least one region of interest, e.g. ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively in the at least one first frame of the image data D img by performing a search procedure in the at least one first frame of the image data Dimg .
  • the search procedure is configured to detect image objects that fulfil at least one size-shape criterion.
  • the search procedure is performed in three-dimensional image data specifying respective distances between an image sensor plane in the camera 140 and different imaged surfaces represented by the image data Dimg . This means that a TOF camera data may be used.
  • the controller 100 is configured to define one or more regions of interest within one of more of the image object that fulfil the at least one size-shape criterion.
  • the controller 100 is configured to define the at least one region of interest within the at least one image object that fulfils the at least one size-shape criterion.
  • the size-shape criterion may relate to: a contour of a body, or part thereof; a length, or range of lengths of a body, or part thereof; a width, or range of widths of a body, or part thereof; and/or a shape of a body part.
  • the search procedure may detect teats represented by image objects being 1 to 4 centimeters wide and extending from a relatively large object - presumably of a size and shape of a typical udder.
  • the controller 100 is configured to check, in each of the at least one region of interest ROI 1 , ROI2, ROI3, ROI4, ROI5 and ROI6, if the respective set of pixels fulfil at least one quality criterion, for example relating to light intensity and/or graininess/SNR.
  • the controller 100 is configured to control the camera 140 to continue to register image data Di mg using the default exposure and/or ISO settings xs, and in parallel, control the automatic milking arrangement 110 with respect to the at least one body part 131 , 132, 133 and/or 134 based on the image data Dimg registered using the default exposure and/ or ISO settings xs.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings xs’ such that image data D img that are registered subsequent to the at least one first frame are estimated to fulfil the at least one quality criterion.
  • the controller 100 is further configured to control the camera 140 to register image data Dimg using the adjusted exposure and/or ISO settings xs’, and in parallel, control the automatic milking arrangement 110 with respect to the at least one body part 131 , 132, 133 and/or 134 based on the image data Dimg registered using the adjusted exposure and/or ISO settings xs’.
  • the light conditions and/or the light reflecting characteristics of the at least one body part 131 , 132, 133 and/or 134 may vary substantively throughout the at least one first frame of image data Di mg . For instance, therefore, the pixels in one or more regions of interest may be underexposed while the pixels in one or more other regions of interest are overexposed.
  • the regions of interest are preferably weighted differently depending on their respective distance to the center of the frame.
  • the controller 100 may conduct a voting procedure, wherein an adjustment of the exposure and/or ISO settings called for by each region of interest is weighted by a centering factor.
  • the centering factor is delimited within a pre-defined range, say between 1 and 5, and is based on a distance between a respective center of the region of interest and the center C of the at least one first frame of the image data Dimg.
  • the centering factor influences the exposure and/or ISO settings called for by each region of interest by a relationship being inversely proportional to said distance, such that a region of interest located relatively close to the center C, for instance ROI4 attains a centering factor of a high value, say 4 or 5, and regions of interest located relatively far from the center C, for instance ROI1 , ROI5 and ROI6 attain centering factors of low value, say 1 or 2.
  • a center C4 of the region of interest ROI4 is located at a distance d4 from the center C and a center C5 of the region of interest ROI5 is located at a distance ds from the center C, where ds is 2.5 times d4.
  • the region of interest ROI4 has a centering factor 3.5
  • the region of interest ROI5 may have a centering factor 1.5.
  • Figure 2b also exemplifies image data Dimg in the form of a still image frame with regions of interest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively.
  • the regions of inte- rest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 are organized in first, second and third sets of regions of interest.
  • the first set of regions of interest ROI3 and ROI4 are located in a central zone 203 of the still image frame
  • the second set of regions of interest ROI1 and ROI2 are located in an outer zone 202 of the still image frame, which outer zone 202 surrounds the central zone 203
  • the third set of regions of interest ROI5 and ROI6 are located in a peripheral zone 201 of the still image frame, which peripheral zone 201 surrounds the outer zone 202.
  • Each of said regions of interest contains a respective set of pixels of the image data Dimg, where the respective sets of pixels may contain different numbers of pixels depending on the result of the above discussed search procedure.
  • the camera 140 has such a position and field of view in relation to the animal that the at least one body part 131 , 132, 133 and 134 are located relatively close to the center C of the still image frame. It is therefore generally preferable that pixels located centrally in the frame have greater influence on any adjustment of the exposure and/or ISO settings than pixels located relatively far from a center of the frame, e.g. pixels located near the edges of the still image frame.
  • the depicted at least one body part 131 , 132, 133 and 134 in the form of teats may have mutually different skin tones and may hide one another more or less from being depicted by the camera 140 and/or at least partially obstruct light from being reflected to the camera 140.
  • one or more illuminators on the camera 140 may emit infrared (IR) light towards the at least one body part.
  • IR infrared
  • the camera 140 and the at least one body part, different body parts, or portions thereof may not be sufficiently illuminated by the IR light.
  • the controller 100 is configured to check, in each of the regions of interest respectively, if the respective set of pixels fulfil at least one quality criterion, e.g. relating to the light intensity levels represented by the pixels in the respective set of pixels in each of the regions of interest, and/or the SNR of the image data in each of the regions of interest.
  • at least one quality criterion e.g. relating to the light intensity levels represented by the pixels in the respective set of pixels in each of the regions of interest, and/or the SNR of the image data in each of the regions of interest.
  • the light conditions and/or the light reflecting characteristics of the at least one body part 131 , 132, 133 and 134 may vary substantively throughout the at least one first frame of image data Di mg .
  • the pixels in one or more regions of interest may be underexposed while the pixels in one or more other regions of interest are overexposed.
  • the regions of interest are preferably weighted differently depending on their respective distance to the center of the frame.
  • the controller 100 may conduct a voting procedure, where an adjustment called for by each region of interest in the central zone 203 is given a first weight factor, an adjustment called for by each region of interest in the outer zone 202 is given a second weight factor, and an adjustment called for by each region of interest in the peripheral zone 201 is given a third weight factor, which first weight factor is larger than the second weight factor and which second weight factor is larger than the third weight factor.
  • the first weight factor may be 3
  • the second weight factor may be 2
  • the third weight factor may be 1.
  • any other specific weight factors are equally well conceivable provided that they have the above indicated relative proportions.
  • the controller 100 counts the votes from all the regions of interest, each of which votes reflects a respective amount and direction of adjustment, i.e. light intensity up or down.
  • a majority ruling determines a final adjusting of the exposure and/or ISO settings with respect to the amount and direction in relation to a current setting thereof.
  • teat tips and/or the entire teats 131 , 132, 133 and 134 are identified in the image data Dimg, and a robot arm is controlled to attach teatcups 111 , 112, 113 and 114 to the teats of the animal whose unique identity is reflected by the identification IDi, it is generally advantageous to define regions of interest covering the teat tips and/or the teats respectively.
  • control of the robot arm is normally made first after that the camera’s 140 exposure and/or ISO settings have been adjusted according to the present invention.
  • the at least one first frame of the image data Di mg contains one or more two-dimensional (2D) images.
  • the at least one quality criterion defines a pre-defined range R of light intensity levels I within which pre-defined range R at least a threshold portion of the pixels in the respective set of pixels in each region of ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively must represent a light intensity level to fulfil the quality criterion.
  • the controller 100 is configured to check the respective set of pixels in each of the at least one region of interest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively against the pre-defined range R of light intensity levels I.
  • the controller 100 is further configured to determine if the pixels in the regions of interest represent light intensity levels I predominantly below or above the predefined range R.
  • Figure 3a shows an example where a histogram 310 represents light intensity levels I predominantly below the predefined range R
  • Figure 3b shows an example where a histogram 320 represents light intensity levels I predominantly above the pre-defined range R.
  • Figure 3c shows a monochrome example of a histogram 330 that represents light intensity levels I predominantly within the pre-defined range R, i.e. where no adjustment of the exposure or ISO settings for the camera 140 is needed.
  • Figure 3d shows an example corresponding to that in Figure 3c, however where three separate histograms 341 , 342 and 343 reflect a respective color channel, e.g. red, green and blue respectively, and a histogram 340 reflects a combined channel, where all of said channels represent light intensity levels I predominantly within the pre-defined range R.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings to increase the light intensity of the image data Di mg that are registered subsequent to the at least one first frame. In practice, this may involve increasing one or more of the following parameters for the camera 140: the first parameter specifying the exposure time, the second parameter specifying the aperture value, and the third parameter specifying the ISO value.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings to decrease the light intensity of the image data Dimg that are registered subsequent to the at least one first frame. In practice, this may involve decreasing one or more of the first, second and/or third parameters for the camera 140.
  • the checking of the threshold portion of the pixels in the respective set of pixels in each of the regions of interest against the light intensity levels in the pre-defined range R may also involve the above-described voting procedure.
  • the camera 140 includes an image sensor with a color filter array configured to register the image data Dimg in a number of color channels 341 , 342 and 343, for example red green and blue.
  • the controller 100 is configured to check, with respect to each color channel of said number of color channels 341 , 342 and 343 respectively and the respective set of pixels in each of the at least one region of interest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 against the predefined range R of light intensity levels I.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings xs’ to increase the light intensity of the image data Di mg that are registered subsequent to the at least one first frame.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings xs’ to decrease the light intensity of the image data Dimg that are registered subsequent to the at least one first frame.
  • the check of whether the respective set of pixels in each of the regions of interest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively against the quality criterion pertaining to the pre-defined range R of light intensity levels I preferably involves performing at least one statistical analysis of the light intensity levels I represented by the respective set of pixels in each of said regions of interest.
  • the controller 100 may be configured to calculate mean, median and/or standard deviation values for the light intensity levels in each region of interest, and based thereon, conclude whether or not the at least one quality criterion is fulfilled.
  • regions of interest may be advantageous if for example one, or a few regions of interest contain pixel values with light intensity levels I that differ substantively from the light intensity levels I represented by the pixels in the other regions of interest in the at least one first frame of the image data Di mg . Namely, thereby regions of interest that represent outlier data may be given less weight, or be disregarded completely, instead of risking to deteriorate the data quality of the remaining regions of interest in the image data Dimg .
  • the at least one first frame of the image data Dimg may contain at least one three-dimensional (3D) image with range data specifying respective distances between an image sensor plane in the camera 140 and different imaged surfaces represented by the image data Dimg .
  • the at least one quality criterion defines a threshold degree of graininess that the at least one first frame of the image data Dimg must not exceed.
  • the degree of graininess is typically correlated with the SNR of the image data Dimg . This may for example mean that an SNR below a particular value is equivalent to a degree of graininess above a threshold level.
  • the controller 100 is configured to check the respective set of pixels in each of the regions of interest ROI1 , ROI2, ROI3, ROI4, ROI5 and ROI6 respectively against the threshold degree of graininess.
  • the controller 100 is configured to control the camera 140 to adjust its exposure and/or ISO settings, such that image data Dimg that are registered subsequent to the at least one first frame are estimated to fulfil the quality criterion.
  • the controller 100 may increase the first parameter specifying the exposure time for the camera 140, increase the second parameter specifying the aperture value for the camera 140 and/or decrease the third parameter specifying the ISO value for the camera 140.
  • the controller may conduct a voting procedure to resolve situations where the pixel values in some regions of interest indicate that the degree of graininess is exceeded and the pixel values in some other regions of interest in the same the image data Di mg indicate that the degree of graininess is not exceeded.
  • the controller 100 may include a memory unit 105, i.e. non-volatile data carrier, storing a computer program 103, which, in turn, contains software for making processing circuitry in the form of at least one processor 101 in the controller 100 execute the actions mentioned in this disclosure when the computer program 103 is run on the at least one processor 101 .
  • a memory unit 105 i.e. non-volatile data carrier
  • a computer program 103 which, in turn, contains software for making processing circuitry in the form of at least one processor 101 in the controller 100 execute the actions mentioned in this disclosure when the computer program 103 is run on the at least one processor 101 .
  • a first step 410 at least one first frame of image data are obtained from a camera, which image data represent at least one body part of a milking animal, and which image data are registered using default exposure and/or ISO settings.
  • a subsequent step 420 it is checked if at least one quality criterion is fulfilled.
  • the checking involves defining at least one region of interest in the at least one first frame of the image data, wherein each of the at least one region of interest includes a respective set of pixels of the at least one first frame of the image data.
  • the at least one region of interest is defined by performing a search procedure in the at least one first frame of the image data, which search procedure is configured to detect at least one image object fulfilling at least one size-shape criterion.
  • the search procedure is performed in 3D image data specifying respective dis- tances between an image sensor plane in the camera and different imaged surfaces represented by the image data.
  • the at least one region of interest is defined within the at least one image object that fulfils said at least one size-shape criterion. Finally, it is checked, in each of the at least one region of interest, if the respective set of pixels fulfil at least one quality criterion, e.g. relating to brightness and/or graininess/SNR as discussed above.
  • at least one quality criterion e.g. relating to brightness and/or graininess/SNR as discussed above.
  • the procedure continues to a step 440.
  • the procedure continues to a step 450.
  • step 440 the camera is controlled to adjust its exposure and/or ISO settings such that image data that are registered subsequent to the at least one first frame will be brighter and/or less noisy and thus estimated to fulfil the at least one quality criterion. Then, the procedure continues to step 460.
  • step 450 the camera is controlled to adjust its exposure and/or ISO settings such that image data that are registered subsequent to the at least one first frame will be darker and/or less noisy and thus estimated to fulfil the at least one quality criterion. Then, the procedure continues to step 460.
  • step 460 image data are registered using the stored exposure and/or ISO settings, i.e. the default ones, the ones produced in step 440, or the ones produced in step 450, and in parallel the automatic milking arrangement is controlled with respect to the at least one body part based on the registered image data. Thereafter, the procedure loops back to step 410 for a repeated quality check of the quality of the image data.
  • the process steps described with reference to Figure 4 may be controlled by means of a programmed processor.
  • the embodiments of the invention described above with reference to the drawings comprise processor and processes performed in at least one processor, the invention thus also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice.
  • the program may be in the form of source code, object code, a code intermediate source and object code such as in partially compiled form, or in any other form suitable for use in the implementation of the process according to the invention.
  • the program may either be a part of an operating system, or be a separate application.
  • the carrier may be any entity or device capable of carrying the program.
  • the carrier may comprise a storage medium, such as a Flash memory, a ROM (Read Only Memory), for example a DVD (Digital Video/Versatile Disk), a CD (Compact Disc) or a semiconductor ROM, an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a magnetic recording medium, for example a floppy disc or hard disc.
  • the carrier may be a transmissible carrier such as an electrical or optical signal which may be conveyed via electrical or optical cable or by radio or by other means.
  • the carrier When the program is embodied in a signal, which may be conveyed, directly by a cable or other device or means, the carrier may be constituted by such cable or device or means.
  • the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant processes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Husbandry (AREA)
  • Environmental Sciences (AREA)
  • Studio Devices (AREA)

Abstract

Une caméra (140) enregistre au moins une première trame de données d'image (Dimg) représentant une partie de corps (131, 132, 133, 134) d'un animal de traite (130). Les données d'image (Dimg) sont enregistrées à l'aide de réglages (xs) ISO et/ou d'exposition par défaut, et sur la base de ceux-ci, un dispositif de commande (100) commande un agencement de traite automatique (110) par rapport à la partie de corps (131, 132, 133, 134). Le dispositif de commande (100) définit au moins une région d'intérêt dans ladite première trame des données d'image (Dimg) par l'intermédiaire d'une procédure de recherche conçue pour détecter au moins un objet d'image satisfaisant au moins un critère de forme et de taille, et ladite procédure de recherche est effectuée dans des données d'image 3D. Ladite région d'intérêt est définie à l'intérieur dudit objet d'image qui satisfait ledit critère de forme et de taille. Le dispositif de commande (100) vérifie, dans chaque région d'intérêt, si les données à l'intérieur de celles-ci satisfont un critère de qualité. Si le critère de qualité est satisfait, la caméra (140) continue à enregistrer des données d'image (Dimg) à l'aide de réglages (xs) ISO et/ou d'exposition. Si le critère de qualité n'est pas satisfait, le dispositif de commande (100) commande la caméra (140) pour qu'elle ajuste les réglages (xs') ISO et/ou d'exposition de telle sorte que des données d'image enregistrées ultérieurement (Dimg) soient estimées pour satisfaire le critère de qualité.
PCT/SE2024/050946 2023-11-10 2024-11-05 Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil Pending WO2025101108A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
SE2351289 2023-11-10
SE2351289-0 2023-11-10

Publications (1)

Publication Number Publication Date
WO2025101108A1 true WO2025101108A1 (fr) 2025-05-15

Family

ID=93563487

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SE2024/050946 Pending WO2025101108A1 (fr) 2023-11-10 2024-11-05 Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil

Country Status (1)

Country Link
WO (1) WO2025101108A1 (fr)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548270B2 (en) * 2005-09-08 2009-06-16 Delphi Technologies, Inc. Method of exposure control for an imaging system
US10127446B2 (en) * 2011-04-28 2018-11-13 Technologies Holdings Corp. System and method for filtering data captured by a 2D camera
US10630903B2 (en) * 2018-01-12 2020-04-21 Qualcomm Incorporated Systems and methods for image exposure
WO2021032890A2 (fr) 2019-08-21 2021-02-25 Dairymaster Procédé et appareil pour déterminer l'identité d'un animal d'un troupeau d'animaux
US11080522B2 (en) 2015-07-01 2021-08-03 Viking Genetics Fmba System and method for identification of individual animals based on images of the back
EP4187505A1 (fr) 2021-11-26 2023-05-31 Cattle Eye Ltd Procédé et système d'identification d'animaux

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548270B2 (en) * 2005-09-08 2009-06-16 Delphi Technologies, Inc. Method of exposure control for an imaging system
US10127446B2 (en) * 2011-04-28 2018-11-13 Technologies Holdings Corp. System and method for filtering data captured by a 2D camera
US11080522B2 (en) 2015-07-01 2021-08-03 Viking Genetics Fmba System and method for identification of individual animals based on images of the back
US10630903B2 (en) * 2018-01-12 2020-04-21 Qualcomm Incorporated Systems and methods for image exposure
WO2021032890A2 (fr) 2019-08-21 2021-02-25 Dairymaster Procédé et appareil pour déterminer l'identité d'un animal d'un troupeau d'animaux
EP4187505A1 (fr) 2021-11-26 2023-05-31 Cattle Eye Ltd Procédé et système d'identification d'animaux

Similar Documents

Publication Publication Date Title
EP3565236B1 (fr) Procédé de commande, dispositif de commande, dispositif mobile, et support de stockage lisible par ordinateur
JP7043191B2 (ja) 画像認識装置、学習装置、画像認識方法、学習方法及びプログラム
US7894666B2 (en) Image processing method and apparatus, image sensing apparatus, and program
US8290267B2 (en) Detecting redeye defects in digital images
US9864376B2 (en) Control system for an autonomous vehicle and a method for generating a control signal and autonomous vehicle equipped with such control system
CA3249690A1 (fr) Méthode et système d’évaluation automatisée des animaux
US20160295109A1 (en) Wide Field Retinal Image Capture System and Method
US9256928B2 (en) Image processing apparatus, image processing method, and storage medium capable of determining a region corresponding to local light from an image
US8885971B2 (en) Image processing apparatus, image processing method, and storage medium
US11893716B2 (en) Image processing apparatus and image processing method, and image capturing apparatus
US11570373B2 (en) Information processing apparatus, image capturing apparatus, method, and storage medium
JP7387170B2 (ja) 発情検知装置、発情検知方法、発情検知プログラム、及び記録媒体
WO2025101108A1 (fr) Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil
WO2025101110A1 (fr) Dispositif de commande pour sélectionner une identité d'animal unique, procédé mis en œuvre par ordinateur, programme informatique et porteuse de données non volatile
WO2025101107A1 (fr) Dispositif de commande pour un agencement de traite automatique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatil
WO2025101109A1 (fr) Dispositif de commande pour sélectionner une identité d'animal unique, procédé mis en œuvre par ordinateur, programme informatique et support de données non volatile
CN113422908B (zh) 一种数据处理方法及装置
JP6731683B1 (ja) 鑑別装置、情報処理装置、プログラム、教師データおよび鑑別方法
JP2016092513A5 (fr)
EP3968761B1 (fr) Système et procédé de fourniture d'une base de décision pour commander un bras robotique
CN109640636B (zh) 用于根据尺寸测量对乳头进行分类的装置和方法
JP7297566B2 (ja) 画像処理装置、撮像装置、画像処理方法およびプログラム
CN111314608B (zh) 一种图像定焦提示方法、计算机装置及计算机可读存储介质
IL300296A (en) image processor, an image processing method implemented on a computer, a computer program, and a non-volatile data provider
JP2018098744A (ja) 画像処理装置、及び画像処理方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24808759

Country of ref document: EP

Kind code of ref document: A1