RU2346326C2 - Method of calibrating radial distortion of computer vision system optical subsystem - Google Patents

Method of calibrating radial distortion of computer vision system optical subsystem Download PDF

Info

Publication number
RU2346326C2
RU2346326C2 RU2007107774/09A RU2007107774A RU2346326C2 RU 2346326 C2 RU2346326 C2 RU 2346326C2 RU 2007107774/09 A RU2007107774/09 A RU 2007107774/09A RU 2007107774 A RU2007107774 A RU 2007107774A RU 2346326 C2 RU2346326 C2 RU 2346326C2
Authority
RU
Russia
Prior art keywords
image
radial distortion
calibration
points
calibration object
Prior art date
Application number
RU2007107774/09A
Other languages
Russian (ru)
Other versions
RU2007107774A (en
Inventor
Виталий Семенович Титов (RU)
Виталий Семенович Титов
Максим Игоревич Труфанов (RU)
Максим Игоревич Труфанов
Елена Ивановна Бугаенко (RU)
Елена Ивановна Бугаенко
Original Assignee
Виталий Семенович Титов
Максим Игоревич Труфанов
Елена Ивановна Бугаенко
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 Виталий Семенович Титов, Максим Игоревич Труфанов, Елена Ивановна Бугаенко filed Critical Виталий Семенович Титов
Priority to RU2007107774/09A priority Critical patent/RU2346326C2/en
Publication of RU2007107774A publication Critical patent/RU2007107774A/en
Application granted granted Critical
Publication of RU2346326C2 publication Critical patent/RU2346326C2/en

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Input (AREA)

Abstract

FIELD: physics, computer technology.
SUBSTANCE: invention refers to the sphere of computer engineering and provides for estimate of radial distortion factor with optical subsystems in the course of computer vision systems setup and operation. Integration of the option of arbitrary displacement of the optoelectronic sensor viewing direction into a method of adaptive calibration of radial distortion of computer vision system optical subsystems envisaging computer input of image, calculation of the lens radial distortion out of expression
Figure 00000043
, contour extraction and image binarisation, selection of calibration object from among the sceneshifter objects based on fuzzy logic mathematical tools techniques, definition of the calibration object centre point through arithmetical average of all the points of the object, localisation of the calibration object centre point in the image for the "n" viewing direction and estimate of radial distortion factors. The method ensures the object framing maintenance providing for the principal optic axes and the original direction principal optic axis remaining within the same plane after each displacement.
EFFECT: expansion of the method application field due to possibility of rectilinear displacement of the optoelectronic sensor in an arbitrary direction and precision enhancement resulting from compensation of errors related to necessity to provide for the optoelectronic sensor displacement being truly horizontal (vertical).
4 dwg

Description

Изобретение относится к вычислительной технике и может быть использовано для определения коэффициента радиальной дисторсии оптических подсистем при настройке и в процессе функционирования систем технического зрения.The invention relates to computer technology and can be used to determine the coefficient of radial distortion of the optical subsystems during configuration and during the operation of vision systems.

Известен способ калибровки коэффициента радиальной дисторсии (De Xu, You Fu Li, Min Tan, Method for calibrating cameras with large lens distortion. Optical Engineering 45(4), 043602, April 2006), согласно которому коэффициент радиальной дисторсии определяется итерационно, путем подбора такой его величины, при которой искаженное изображение будет более всего похоже на истинное. Первоначально коэффициент радиальной дисторсии приравнивают к нулю, затем, итерационно прибавляя к нему некоторую величину, искажают кривую на изображении, используя этот коэффициент и координаты точек, принадлежащих этой кривой, вычисляют степень дисторсии и, если степень дисторсии визуально достаточно мала, то итерации прекращают и искомым коэффициентом считают тот, который был использован последним.A known method for calibrating the radial distortion coefficient (De Xu, You Fu Li, Min Tan, Method for calibrating cameras with large lens distortion. Optical Engineering 45 (4), 043602, April 2006), according to which the radial distortion coefficient is determined iteratively, by selecting such its magnitude, at which the distorted image will most likely resemble the true one. Initially, the radial distortion coefficient is equated to zero, then, adding a certain value iteratively to it, the curve in the image is distorted using this coefficient and the coordinates of the points belonging to this curve, the degree of distortion is calculated, and if the degree of distortion is visually small enough, then the iteration stops the coefficient is considered the one that was used last.

Недостатком этого способа является необходимость визуальной оценки степени дисторсии на изображении, что требует участия при определении величины коэффициента оператора и увеличивает время, затрачиваемое на процесс определения.The disadvantage of this method is the need for a visual assessment of the degree of distortion in the image, which requires participation in determining the magnitude of the coefficient of the operator and increases the time spent on the determination process.

Наиболее близким к предлагаемому является способ автоматической калибровки дисторсии (патент №2289111 «Способ адаптивной калибровки радиальной дисторсии оптической подсистемы системы технического зрения» от 10.12.2006), в котором выполняют шаги: ввод изображения в ЭВМ, определение радиальной дисторсии линз по формулеClosest to the proposed one is a method of automatic calibration of distortion (patent No. 2289111 "A method for adaptive calibration of radial distortion of an optical subsystem of a vision system" dated 10.12.2006), in which the steps are taken: input an image into a computer, determination of radial distortion of lenses by the formula

Figure 00000001
,
Figure 00000001
,

где k1, … - коэффициенты радиальной дисторсии, rа=(xa2+yа2)1/2 - радиальное расстояние, (Δxra, Δyra) - отклонение точки изображения от ее истинного положения - положения, которое занимала бы точка при отсутствии дисторсии, выделение контуров и бинаризация изображения, выбор калибровочного объекта из объектов рабочей сцены на основе математического аппарата нечеткой логики, определение центральной точки калибровочного объекта как среднего арифметического всех точек объекта, позиционирование видеокамеры СТЗ в n направлениях наблюдения (горизонтальном или вертикальном) при постоянно находящемся в кадре калибровочном объекте, определение координат центральной точки калибровочного объекта на изображении для n разных направлений наблюдения (горизонтального или вертикального) и определение коэффициентов радиальной дисторсии.where k 1 , ... are the radial distortion coefficients, r a = (x a 2 + y a 2 ) 1/2 is the radial distance, (Δx ra , Δy ra ) is the deviation of the image point from its true position - the position that would occupy a point in the absence of distortion, the selection of contours and binarization of the image, the choice of a calibration object from objects of the working scene based on the mathematical apparatus of fuzzy logic, the definition of the central point of the calibration object as the arithmetic average of all points of the object, the positioning of the STZ camera in n directions of observation (burn horizontal or vertical) with the calibration object constantly in the frame, determining the coordinates of the center point of the calibration object in the image for n different observation directions (horizontal or vertical) and determining the radial distortion coefficients.

Недостатками этого способа является смещение ОЭД только в заданных направлениях - вертикальном или горизонтальном, что на практике требует специально подготовленного устройства для реализации этого способа, за счет чего область применения сужается.The disadvantages of this method is the displacement of OED only in predetermined directions - vertical or horizontal, which in practice requires a specially prepared device to implement this method, due to which the scope is narrowed.

Технической задачей изобретения является расширение области применения способа за счет смещения ОЭД в произвольном направлении вдоль прямой линии и повышение точности вследствие исключения ошибок, связанных с необходимостью обеспечения строго горизонтального (или вертикального) смещения ОЭД.An object of the invention is to expand the scope of the method due to the displacement of the OED in an arbitrary direction along a straight line and increase accuracy due to the elimination of errors associated with the need to ensure strictly horizontal (or vertical) displacement of the OED.

Задача решается тем, что в известный способ адаптивной калибровки радиальной дисторсии оптической подсистемы системы технического зрения, включающий ввод изображения в ЭВМ, определение радиальной дисторсии линз по формулеThe problem is solved in that in a known method for adaptive calibration of radial distortion of the optical subsystem of a vision system, including inputting an image into a computer, determining radial distortion of lenses by the formula

Figure 00000002
,
Figure 00000002
,

где k1, … - коэффициенты радиальной дисторсии, ra=(xа2+yа2)1/2 - радиальное расстояние, (Δxra, Δyra) - отклонение точки изображения от ее истинного положения - положения, которое занимала бы точка при отсутствии дисторсии, выделение контуров и бинаризацию изображения, выбор калибровочного объекта из объектов рабочей сцены на основе математического аппарата нечеткой логики, определение центральной точки калибровочного объекта как среднего арифметического всех точек объекта, определение координат центральной точки калибровочного объекта на изображении для n направлений наблюдения и определение коэффициентов радиальной дисторсии, добавляют произвольное смещение направления наблюдения ОЭД, сохраняя калибровочный объект в кадре, таким образом, чтобы главные оптические оси после каждого смещения находились в одной плоскости между собой и с главной оптической осью первоначального направления.where k 1 , ... are the radial distortion coefficients, r a = (x a 2 + y a 2 ) 1/2 is the radial distance, (Δx ra , Δy ra ) is the deviation of the image point from its true position - the position that would occupy a point in the absence of distortion, the selection of contours and binarization of the image, the choice of a calibration object from objects of the working scene based on the mathematical apparatus of fuzzy logic, the definition of the center point of the calibration object as the arithmetic average of all points of the object, the coordinates of the center point of the calibration object n image to n viewing directions and defining radial distortion coefficients, are added by an arbitrary displacement direction of observation EDI, keeping the calibration object in the frame, so that the main optical axis after each displacement are coplanar with each other and with the original main optical axis direction.

Изобретение может быть использовано для определения коэффициента радиальной дисторсии оптических подсистем при настройке и функционировании систем технического зрения и соответствует критерию «промышленная применимость».The invention can be used to determine the coefficient of radial distortion of the optical subsystems during the setup and operation of vision systems and meets the criterion of "industrial applicability".

Сущность изобретения поясняется чертежами, где на фиг.1 изображен алгоритм калибровки радиальной дисторсии, на фиг.2 и фиг.4 показаны рисунки, поясняющие процесс определения коэффициента радиальной дисторсии, на фиг.3 представлен рисунок, поясняющий процесс идентификации контуров на разных изображениях.The invention is illustrated by drawings, where Fig. 1 shows a calibration algorithm for radial distortion, Fig. 2 and Fig. 4 are figures illustrating the process of determining the radial distortion coefficient, Fig. 3 is a drawing explaining a process of identifying contours in different images.

Искажения, вызванные радиальной дисторсией, определяются [R.Y.Tsai. «A versatile camera calibration technique for high-accuracy 3D machine vision metrology using off-the-shelf TV cameras and lenses», IEEE Trans. Rob. Autom, RA-3(4), p.323-344, 1987] по формуле:Distortion caused by radial distortion is determined by [R.Y.Tsai. “A versatile camera calibration technique for high-accuracy 3D machine vision metrology using off-the-shelf TV cameras and lenses”, IEEE Trans. Rob. Autom, RA-3 (4), p.323-344, 1987] according to the formula:

Figure 00000003
Figure 00000003

где (Δxr, Δyr) - отклонение точки изображения от ее истинного положения - положения, которое занимала бы точка при отсутствии радиальной дисторсии, k1, k2, … kn - коэффициенты радиальной дисторсии, r=(x2+y2)1/2 - расстояние от центра кадра до точки с координатами (x, y).where (Δx r , Δy r ) is the deviation of the image point from its true position - the position that the point would occupy in the absence of radial distortion, k 1 , k 2 , ... k n - radial distortion coefficients, r = (x 2 + y 2 ) 1/2 - the distance from the center of the frame to the point with coordinates (x, y).

Согласно [Vark Reeves, Andrew J. Moore, Duncan P. Hand, Julian D.C.Jones. "Dynamic shape measurement system for laser materials processing", Opt. Eng. 42(10), p.2923-2929, 2003 (стр.2926, текст между 4 и 5 формулами)] для практического применения достаточно определять только коэффициент k1.According to [Vark Reeves, Andrew J. Moore, Duncan P. Hand, Julian DCJones. "Dynamic shape measurement system for laser materials processing", Opt. Eng. 42 (10), p.2923-2929, 2003 (p. 2926, text between 4 and 5 formulas)] for practical use, it is sufficient to determine only the coefficient k 1 .

Блок-схема алгоритма калибровки радиальной дисторсии представлена на фиг.1.The block diagram of the calibration algorithm for radial distortion is presented in figure 1.

В блоке 1 (фиг.1) вводят цифровое изображение в контроллер. Изображение получают с помощью оптико-электронного датчика (ОЭД). Получение происходит путем аналого-цифрового преобразования сигнала, характеризующего изображение, и сохранения изображения в цифровой форме.In block 1 (figure 1) enter a digital image in the controller. The image is obtained using an optical-electronic sensor (OED). Obtaining occurs by analog-to-digital conversion of a signal characterizing an image and storing the image in digital form.

Под изображением понимают матрицу значений яркостей пикселей цифрового изображения:An image is understood as a matrix of pixel brightness values of a digital image:

I=I(x,y),I = I (x, y),

Figure 00000004
Figure 00000004

где x, y - координаты пикселя изображения по горизонтали и вертикали, соответственно,where x, y are the horizontal and vertical coordinates of the image pixel, respectively,

Figure 00000005
,
Figure 00000006
,
Figure 00000005
,
Figure 00000006
,

Х, Y - размерность изображения по горизонтали и вертикали, соответственно.X, Y - horizontal and vertical dimension of the image, respectively.

В блоке 2 (фиг.1) производят выделение контуров объектов на изображении стандартным оператором, например, оператором Лапласа [Методы компьютерной обработки изображений / Под. ред. В.А.Сойфера. - М.: Физматлит, 2001], и бинаризация. Это действие выполняет контроллер автоматически. Из выделенных контуров формируют множество K.In block 2 (Fig. 1), the contours of objects in the image are extracted by a standard operator, for example, the Laplace operator [Methods of computer image processing / Under. ed. V.A.Soyfera. - M .: Fizmatlit, 2001], and binarization. This action is performed by the controller automatically. The set K is formed from the selected contours.

Множество контуров K, состоит из элементов (контуров) Kl.The set of circuits K, consists of elements (circuits) K l .

Figure 00000007
,
Figure 00000007
,

где Nk - количество контуров.where N k is the number of circuits.

Под контуром Kl понимают совокупность отличных от фона изображения точек, таких, что для каждой точки (xi, yi) найдется не менее одной соседней точки (xj, yj), расположенной на расстоянии 1 пиксель:The contour K l is understood as a set of points different from the background of the image, such that for each point (x i , y i ) there is at least one adjacent point (x j , y j ) located at a distance of 1 pixel:

Figure 00000008
,
Figure 00000009
,
Figure 00000010
,
Figure 00000011
.
Figure 00000008
,
Figure 00000009
,
Figure 00000010
,
Figure 00000011
.

Каждый контур описывается множеством из Nkl пар координат точек (хi, yi):Each contour is described by a set of N kl pairs of coordinate points (x i , y i ):

Figure 00000012
,
Figure 00000012
,

где Nkl - количество пар координат точек, составляющих контур.where N kl is the number of coordinate pairs of points making up the contour.

После выделения контуров осуществляется переход к выбору калибровочного контура. В блоке 3 (фиг.1) производится выбор калибровочного объекта (контура) из объектов рабочей сцены на основе математического аппарата нечеткой логики [Алтунин А.Е., Семухин М.В. Модели и алгоритмы принятия решений в нечетких условиях: Монография. Тюмень: Издательство Тюменского государственного университета, 2000].After selecting the contours, the transition to the selection of the calibration circuit. In block 3 (Fig. 1), a calibration object (contour) is selected from the objects of the working scene based on the mathematical apparatus of fuzzy logic [Altunin A.E., Semukhin M.V. Models and decision-making algorithms in fuzzy conditions: Monograph. Tyumen: Publishing House of the Tyumen State University, 2000].

Введем лингвистическую переменную (ЛП) «калибровочный контур» для выбора калибровочного контура из множества контуров на изображении. Калибровочный контур должен удовлетворять следующим условиям:We introduce the linguistic variable (LP) “calibration loop” to select the calibration loop from the set of loops in the image. The calibration loop must satisfy the following conditions:

- иметь оптимальную площадь и размер, определяемый размером описанного вокруг объекта прямоугольника;- have an optimal area and size, determined by the size of the rectangle described around the object;

- находиться на оптимальном расстоянии от края кадра изображения.- be at an optimal distance from the edge of the image frame.

Функция принадлежности ЛП «калибровочный контур» µkk равна:The membership function of the LP “calibration loop” µ kk is equal to:

Figure 00000013
Figure 00000013

гдеWhere

µs - функция принадлежности терму «оптимальная площадь»,µ s - membership function of the term “optimal area”,

µw - функция принадлежности терму «оптимальное окно»,µ w - membership function of the term “optimal window”,

µkp - функция принадлежности терму «оптимальное положение в кадре».µ kp - membership function of the term “optimal position in the frame”.

Функция принадлежности µs терма «оптимальная площадь», зависящая от площади контура S, равна:The membership function µ s of the term “optimal area”, depending on the area of the contour S, is:

Figure 00000014
,
Figure 00000014
,

Figure 00000015
,
Figure 00000015
,

Функция принадлежности µw терму «оптимальное окно» определяют размерами по горизонтали и вертикали описанного вокруг объекта прямоугольника:The membership function µ w of the term “optimal window” is determined by the horizontal and vertical dimensions of the rectangle described around the object:

Figure 00000016
,
Figure 00000016
,

Figure 00000017
, при а=6.8, b=1.5,
Figure 00000017
, with a = 6.8, b = 1.5,

Figure 00000018
,
Figure 00000018
,

где Wx, Wy - размеры описанного вокруг контура прямоугольника по горизонтали и вертикали, соответственно, параметры а, b подобраны экспериментально.where W x , W y are the dimensions of the horizontal and vertical rectangles described around the contour, respectively, the parameters a, b are selected experimentally.

ФП µkp терму «оптимальное положение в кадре» позволяет выбрать контуры, расположенные близко к краю кадра, и равна:FP µ kp the term "optimal position in the frame" allows you to select contours located close to the edge of the frame, and is equal to:

Figure 00000019
,
Figure 00000019
,

Figure 00000020
,
Figure 00000020
,

Figure 00000021
,
Figure 00000021
,

приat

а1=0.2,a 1 = 0.2,

b1=0.05,b 1 = 0.05,

a2=0.8,a 2 = 0.8,

b2=0.07,b 2 = 0.07,

где (x, y) - координаты центра описанного вокруг контура прямоугольника, параметры а, b подобраны экспериментально.where (x, y) are the coordinates of the center of the rectangle described around the contour, the parameters a, b are selected experimentally.

В блоке 4 (фиг.1) производят определение центральной точки (ЦТ) калибровочного контура. В качестве ЦТ выбирается точка изображения, являющаяся центром тяжести [Дегтярев С.В., Садыков С.С., Тевс С.С., Ширабакина Т.А. Методы цифровой обработки изображений: Учебное пособие. Ч.1 / Курск. Гос. Техн. Ун-т. Курск, 2001] калибровочного контура и определяемая средними координатами всех точек калибровочного контура по горизонтали и вертикали. Действия, представленные в блоках 3, 4 (фиг.1), выполняет контроллер.In block 4 (figure 1) determine the center point (CT) of the calibration circuit. The image point, which is the center of gravity, is selected as the CT [Degtyarev S.V., Sadykov S.S., Tevs S.S., Shirabakina T.A. Digital Image Processing Methods: A Tutorial. Part 1 / Kursk. Gos. Tech. Un-t. Kursk, 2001] of the calibration circuit and determined by the average coordinates of all points of the calibration circuit horizontally and vertically. The actions presented in blocks 3, 4 (Fig. 1) are performed by the controller.

В блоке 5 (фиг.1) дважды производят смещение направления наблюдения ОЭД, сохраняя калибровочный объект в кадре, таким образом, чтобы главные оптические оси после каждого смещения находились в одной плоскости между собой и с главной оптической осью первоначального направления. После каждого смещения получают изображения.In block 5 (FIG. 1), the direction of observation of the OED is biased twice, keeping the calibration object in the frame, so that the main optical axes after each offset are in the same plane with each other and with the main optical axis of the original direction. After each offset, images are obtained.

При этом для идентификации калибровочного объекта после смещения введена ЛП «идентичность смещенного объекта»At the same time, to identify the calibration object after the displacement, the LP “identity of the displaced object” was introduced

Figure 00000022
Figure 00000022

гдеWhere

µид - функция принадлежности терму «идентичность объекта»,µ id - membership function of the term “object identity”,

µn - функция принадлежности терму «ожидаемое положение», характеризующая полученное положение калибровочного объекта после смещения и ожидаемое положение калибровочного объекта.µ n is the membership function of the term “expected position”, which characterizes the obtained position of the calibration object after displacement and the expected position of the calibration object.

Для описания контура Kl определяется множество векторов νij с i-й точки Ti(xi,yi) контура на j-ю точку Tj(xj,yj) этого же контура:To describe the contour K l , the set of vectors ν ij from the i-th point T i (x i , y i ) of the contour to the j-th point T j (x j , y j ) of the same contour is determined:

νij={dij,dij},ν ij = {d ij , d ij },

i=1…Nkl,i = 1 ... N kl ,

j=1…Nkl,j = 1 ... N kl ,

i≠j,i ≠ j,

где dij - расстояние между точками Тi и Tj, αij - направление с i-й точки контура на j-ю точку.where d ij is the distance between the points T i and T j , α ij is the direction from the i-th point of the contour to the j-th point.

Расстояние dij равно:The distance d ij is equal to:

Figure 00000023
.
Figure 00000023
.

Углом с i-ой точки объекта на j-ую точку считается угол между вертикальной осью кадра и направлением на j-ую точку (фиг.3). По теореме косинусов из треугольника ΔТfTiTj The angle from the i-th point of the object to the j-th point is the angle between the vertical axis of the frame and the direction to the j-th point (figure 3). By the theorem of cosines from the triangle ΔТ f T i T j

Figure 00000024
.
Figure 00000024
.

Функция принадлежности терму «идентичность объекта» µид определяется как идентичность расстояний dij между i-й j-й точками и идентичность углов αij:The membership function of the term “object identity” µ id is defined as the identity of the distances d ij between the i-th j-th points and the identity of the angles α ij :

Figure 00000025
,
Figure 00000025
,

гдеWhere

Figure 00000026
Figure 00000026

Figure 00000027
Figure 00000027

|dij-dijсм| - разность расстояний между точками до смещения и после смещения в пикселях,| d ij -d ijcm | - the difference between the points between the displacement and after the displacement in pixels,

ijijсм| - разность величин углов между точками до смещения и после смещения в радианах.| α ijijcm | - the difference between the angles between the points before the offset and after the offset in radians.

Функция принадлежности µn терму «ожидаемое положение» характеризуется разностью ожидаемого и фактического положения калибровочного объекта:The membership function µ n of the term “expected position” is characterized by the difference between the expected and actual position of the calibration object:

Figure 00000028
,
Figure 00000028
,

где

Figure 00000029
- предполагаемое среднее значение горизонтальных координат множества составляющих контур точек;
Figure 00000030
- фактическое среднее значение горизонтальных координат множества составляющих контур точек.Where
Figure 00000029
- the estimated average value of the horizontal coordinates of the set of points making up the contour;
Figure 00000030
- the actual average value of the horizontal coordinates of the set of points making up the contour.

Расчет xn производится на основе информации об угловой скорости Vx смещения направления наблюдения и времени смещения t:The calculation of x n is based on information about the angular velocity V x of the displacement of the observation direction and the displacement time t:

Figure 00000031
.
Figure 00000031
.

В блоке 6 (фиг.1) производят определение координат (x/, y/) ЦТ на изображениях после смещений ОЭД. Т.к. главные оптические оси в первоначальном направлении наблюдения и после каждого смещения направления наблюдения находятся в одной плоскости, то пересечение этой плоскости с картинной плоскостью будет иметь вид прямой, это означает, что если перенести на одно изображение все три полученные центральные точки, то они должны лежать на одной прямой (фиг.4). Основываясь на этом, в блоке 7 (фиг.1) вычисляют коэффициент радиальной дисторсии, путем решения системы уравнений.In block 6 (Fig. 1), the coordinates (x / , y / ) of the CT are determined in the images after the displacements of the OED. Because the main optical axes in the initial direction of observation and after each shift of the direction of observation are in the same plane, then the intersection of this plane with the picture plane will be in the form of a straight line, which means that if you transfer all three obtained center points to one image, then they should lie on one straight line (figure 4). Based on this, in block 7 (Fig. 1), the radial distortion coefficient is calculated by solving a system of equations.

Искажения, вызванные радиальной дисторсией в декартовой системе координат, исходя из (1) определяют по формулам:The distortions caused by radial distortion in the Cartesian coordinate system, based on (1), are determined by the formulas:

Figure 00000032
Figure 00000032

где (х',y') - координаты точки, измеряемые по изображению.where (x ', y') are the coordinates of the point, measured in the image.

Обозначим центральную точку калибровочного контура при первоначальном направлении наблюдения А(хA, yA), после первого смещения направления наблюдения - В(хB, yB), после второго - С(хC, yC). При отсутствии радиальной дисторсии на изображении точки лежат на одной прямой (фиг.4).Let us designate the central point of the calibration circuit at the initial observation direction A (x A , y A ), after the first shift of the observation direction - B (x B , y B ), after the second - C (x C , y C ). In the absence of radial distortion in the image, the points lie on one straight line (Fig. 4).

Условие принадлежности одной прямой для трех точек в декартовой системе координат записывают:The condition that one line belongs to three points in a Cartesian coordinate system is written:

Figure 00000033
Figure 00000033

Под влиянием радиальной дисторсии положения точек А, В и С будут искажены, обозначим их положение на изображении А', В' и С'. Связь истинных абсцисс точек А, В и C с абсциссами точек А', В' и С' на изображении (фиг.2) с учетом формулы (5) выражают:Under the influence of radial distortion, the positions of points A, B and C will be distorted, we denote their position in the image A ', B' and C '. The relationship of the true abscissas of points A, B and C with the abscissas of points A ', B' and C 'in the image (figure 2), taking into account the formula (5), express:

Figure 00000034
Figure 00000034

Т.к. ΔОВХB и ΔОСХC - прямоугольные (фиг.2), то:Because Δ OWX B and Δ OX C - rectangular (figure 2), then:

Figure 00000035
Figure 00000035

Из(8)следует:From (8) it follows:

Figure 00000036
Figure 00000036

Выполнив подстановку (9) в (7) и (6), составим систему уравнений:After substituting (9) in (7) and (6), we compose the system of equations:

Figure 00000037
Figure 00000037

Первые три уравнения из системы (10) являются кубическими уравнениями (если их решать относительно xA, xB, xC соответственно) и имеют по одному корню [И.Н.Бронштейн, К.А.Семендяев. Справочник по математике, издание седьмое, стереотипное. М.: Гос. изд-во технико-теоретической лит-ры, 1957, с.138]. Корни вычисляют:The first three equations from system (10) are cubic equations (if they are solved with respect to x A , x B , x C, respectively) and have one root each [I.N. Bronstein, K.A.Semendyaev. Handbook of Mathematics, seventh edition, stereotyped. M .: State. publishing house of technical and theoretical literature, 1957, p.138]. The roots calculate:

Figure 00000038
Figure 00000038

Полученные корни xA, xB, xC подставляют в четвертое уравнение системы (10) и получают уравнение с одной неизвестной k1, которое решают с использованием численных методов [Демидович Б.П., Марон И.А. Основы вычислительной математики. - М.: Наука. Гл. ред. физ.-мат.лит., 1966].The obtained roots x A , x B , x C substitute in the fourth equation of system (10) and get an equation with one unknown k 1 , which is solved using numerical methods [Demidovich BP, Maron I.A. Fundamentals of Computational Mathematics. - M .: Science. Ch. ed. Phys.-Math. Lit., 1966].

Исходя из того, что контроллер выполняет вычислительные операции, он может быть реализован на базе микроконтроллера, описанного в справочнике «Системы технического зрения» [Системы технического зрения: Справочник / В.И.Сырямкин, B.C.Титов., Ю.Г.Якушенков и др. // Под общей редакцией В.И.Сырямкина, B.C.Титова. Томск: МГП «РАСКО», 1992. 367 с.: ил.] на с.93-100 в главе 3.6.Based on the fact that the controller performs computational operations, it can be implemented on the basis of the microcontroller described in the reference manual “Vision systems” [Vision systems: Reference / V.I.Syryamkin, BCTitov., Yu.G. Yakushenkov, etc. . // Under the general editorship of V.I.Syryamkin, BCTitov. Tomsk: MGP "RASCO", 1992. 367 pp., Ill.] On pp. 93-100 in chapter 3.6.

В результате выполнения последовательности действий, рассмотренных в рамках предложенного способа, выполняют калибровку радиальной дисторсии. Точность калибровки можно повысить за счет увеличения числа смещений ОЭД.As a result of the sequence of actions considered in the framework of the proposed method, perform the calibration of radial distortion. Calibration accuracy can be improved by increasing the number of OED offsets.

Таким образом, изобретение позволяет расширить область применения способа за счет смещения ОЭД в произвольном направлении вдоль прямой линии и повысить точность вследствие исключения ошибок, связанных с необходимостью обеспечения строго горизонтального (или вертикального) смещения ОЭД.Thus, the invention allows to expand the scope of the method due to the displacement of the OED in an arbitrary direction along a straight line and to increase the accuracy due to the elimination of errors associated with the need to ensure strictly horizontal (or vertical) displacement of the OED.

Claims (1)

Способ калибровки радиальной дисторсии оптической подсистемы системы технического зрения, включающий ввод изображения в ЭВМ, определение радиальной дисторсии линз по формуле
Figure 00000039
,
где k1, … - коэффициенты радиальной дисторсии, rа=(xa2+yа2)1/2 - радиальное расстояние, (Δxra, Δyra) - отклонение точки изображения от ее истинного положения - положения, которое занимала бы точка при отсутствии дисторсии, выделение контуров и бинаризацию изображения, выбор калибровочного объекта из объектов рабочей сцены на основе математического аппарата нечеткой логики, определение центральной точки калибровочного объекта как среднего арифметического всех точек объекта, определение координат центральной точки калибровочного объекта на изображении для n направлений наблюдения и определение коэффициентов радиальной дисторсии, отличающийся тем, что произвольно смещают направление наблюдения ОЭД, сохраняя калибровочный объект в кадре, таким образом, чтобы главные оптические оси после каждого смещения находились в одной плоскости между собой и с главной оптической осью первоначального направления, вычисляют дисторсии k1 посредством решения системы уравнений
Figure 00000040

где (xA, yA), (хB, yB), (хC, yС) - координаты центральных точек А, В и С калибровочных контуров при первоначальном направлении наблюдения, после первого смещения направления наблюдения, после второго соответственно, (xA', yA'), (хB', yB'), (хC', yС') - координаты этих точек на изображении, искаженном радиальной дисторсией, αA, αB, αС - углы между осью абсцисс и прямыми, образованными точкой начала отсчета координат и точками А, В и С соответственно.
A method for calibrating the radial distortion of the optical subsystem of a vision system, including inputting an image into a computer, determining radial distortion of lenses by the formula
Figure 00000039
,
where k 1 , ... are the radial distortion coefficients, r a = (x a 2 + y a 2 ) 1/2 is the radial distance, (Δx ra , Δy ra ) is the deviation of the image point from its true position - the position that would occupy a point in the absence of distortion, the selection of contours and binarization of the image, the choice of a calibration object from objects of the working scene based on the mathematical apparatus of fuzzy logic, the definition of the center point of the calibration object as the arithmetic average of all points of the object, the coordinates of the center point of the calibration object n image for n observation directions and determining the radial distortion coefficients, characterized in that they randomly shift the direction of observation of the OED, keeping the calibration object in the frame, so that the main optical axes after each offset are in the same plane with each other and with the main optical axis of the original direction distortions k 1 are calculated by solving a system of equations
Figure 00000040

where (x A , y A ), (x B , y B ), (x C , y C ) are the coordinates of the central points A, B and C of the calibration contours at the initial direction of observation, after the first shift in the direction of observation, after the second, respectively, (x A ', y A '), (x B ', y B '), (x C ', y C ') - the coordinates of these points in the image distorted by radial distortion, α A , α B , α С - angles between the abscissa axis and the lines formed by the coordinate origin and points A, B and C, respectively.
RU2007107774/09A 2007-03-01 2007-03-01 Method of calibrating radial distortion of computer vision system optical subsystem RU2346326C2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2007107774/09A RU2346326C2 (en) 2007-03-01 2007-03-01 Method of calibrating radial distortion of computer vision system optical subsystem

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2007107774/09A RU2346326C2 (en) 2007-03-01 2007-03-01 Method of calibrating radial distortion of computer vision system optical subsystem

Publications (2)

Publication Number Publication Date
RU2007107774A RU2007107774A (en) 2008-09-10
RU2346326C2 true RU2346326C2 (en) 2009-02-10

Family

ID=39866516

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2007107774/09A RU2346326C2 (en) 2007-03-01 2007-03-01 Method of calibrating radial distortion of computer vision system optical subsystem

Country Status (1)

Country Link
RU (1) RU2346326C2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2637989C2 (en) * 2012-09-21 2017-12-08 ЗетТиИ Корпорейшн Method and device for identifying target object in image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2637989C2 (en) * 2012-09-21 2017-12-08 ЗетТиИ Корпорейшн Method and device for identifying target object in image

Also Published As

Publication number Publication date
RU2007107774A (en) 2008-09-10

Similar Documents

Publication Publication Date Title
US10825198B2 (en) 3 dimensional coordinates calculating apparatus, 3 dimensional coordinates calculating method, 3 dimensional distance measuring apparatus and 3 dimensional distance measuring method using images
Kim et al. SLAM-driven robotic mapping and registration of 3D point clouds
US10237532B2 (en) Scan colorization with an uncalibrated camera
JP2014013147A5 (en)
JP2012058076A (en) Three-dimensional measurement device and three-dimensional measurement method
CN104574393A (en) Three-dimensional pavement crack image generation system and method
JP6937642B2 (en) Surface evaluation method and surface evaluation device
CN113256740A (en) Calibration method of radar and camera, electronic device and storage medium
JP2020134187A (en) Flaw inspection device and method
KR102420856B1 (en) Method and Device for Examining the Existence of 3D Objects Using Images
JP2007212187A (en) Stereo photogrammetry system, stereo photogrammetry method, and stereo photogrammetry program
CN101882309A (en) Calibration pattern of camera and calibration and detection method based on same
JP6278880B2 (en) Water level measuring device
EP3408610A1 (en) A method and apparatus for single camera optical measurements
US20220215576A1 (en) Information processing device, information processing method, and computer program product
Wang et al. Structured-light three-dimensional scanning for process monitoring and quality control in precast concrete production.
RU2346326C2 (en) Method of calibrating radial distortion of computer vision system optical subsystem
JP6089819B2 (en) Behavior analysis method and behavior analysis apparatus for bearing components
Percoco et al. Image analysis for 3D micro-features: A new hybrid measurement method
JP4550081B2 (en) Image measurement method
RU2289111C2 (en) Method of adaptive graduation of radial distortion of optical subsystem of technical vision system
RU2365998C2 (en) Method of forming panoramic images
CN112805607A (en) Measurement device, measurement method, and microscope system
RU2685761C1 (en) Photogrammetric method of measuring distances by rotating digital camera
CN117455921B (en) Large-depth-of-field imaging detection method and system based on small-field lens

Legal Events

Date Code Title Description
MM4A The patent is invalid due to non-payment of fees

Effective date: 20090302