Location positioning device for moving body, location positioning system for moving body, location positioning method for moving body and location positioning program for moving body

JP2023106611A5Active Publication Date: 2024-09-09CASIO COMPUTER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023091449
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-03-19
Filing Date
2023-06-02
Publication Date
2024-09-09
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

Conventional surveying and position detection systems require recalibration due to changes in camera orientation caused by factors like cleaning, earthquakes, or aging, which disrupts on-site work by necessitating system shutdowns.

Method used

A mobile positioning device that detects markers in a space using cameras, adjusts for changes in imaging direction without recalibrating by calculating correction values based on initial data and marker positions, allowing continuous position measurement.

Benefits of technology

Enables continuous and accurate position measurement without stopping the system, even when camera orientation changes due to external or aging factors, maintaining positioning accuracy.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

To enable location positioning to be continued excellently even when the direction in which a camera is oriented changes due to various factors from the initial installation state.SOLUTION: A location positioning device for a moving body acquires a photographed image including at least one marker 300a to 300e arranged in a space 500 and at least one moving body 100a to 100c moving in the space 500 by cameras 201a to 201d whose imaging directions change from a first direction to a second direction, detects the change to the second direction from the first direction of the imaging direction on the basis of the photographed image and initial data, and acquires positional data of at least one moving body 100a to 100c on the basis of the photographed image without returning the imaging directions of the cameras 201a to 201d in the actual world from the second direction to the first direction.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a mobile object positioning device, a mobile object positioning system, a mobile object positioning method, and a mobile object positioning program. [Background technology]

[0002] Traditionally, surveying and position detection technologies using visible light have required calibration each time the camera is installed, and measurements are typically taken only for very short periods. Therefore, when using a stationary camera, the camera's installation conditions can deviate from their initial values ​​due to external factors such as camera cleaning and earthquakes, as well as aging factors such as loose screws, leading to a decrease in position detection accuracy. Currently, restoring position detection accuracy requires recalibration.

[0003] Patent Document 1 discloses a camera system that stores a reference image captured of a detection area when the camera is installed, the position information of a reference point set on the reference image, periodically detects the amount of deviation of the reference point between the camera's captured image and the reference image, and drives the pan / tilt head based on the detected amount of deviation. [Prior art documents] [Patent Documents]

[0004] [Patent Document 1] Japanese Patent Publication No. 2013-219628 [Overview of the Initiative] [Problems that the invention aims to solve]

[0005] However, driving the tripod head or performing recalibration requires the system to be shut down for an extended period, which impacts on-site work.

[0006] The present invention has been made in view of the above, and aims to enable reliable positioning even when the direction the camera is facing changes due to various factors from its initial installation state. [Means for solving the problem]

[0007] The mobile body positioning device according to the present invention acquires an image from a camera whose imaging direction has changed from a first direction to a second direction, including at least one marker placed in space and at least one mobile body moving in the space, detects the change in the imaging direction from the first direction to the second direction based on the image and initial data, and acquires position data of the at least one mobile body based on the image without changing the imaging direction of the camera in the real world from the second direction to the first direction. [Effects of the Invention]

[0008] According to the present invention, even if the direction the camera is facing changes due to various factors from its initial installation state, positioning can be maintained reliably. [Brief explanation of the drawing]

[0009] [Figure 1] This figure shows an example of a visible light communication system according to the first embodiment of the present invention. [Figure 2] This figure shows an example of a server according to the first embodiment of the present invention. [Figure 3] This flowchart shows an example of a change detection and correction process for imaging direction according to the first embodiment of the present invention. [Figure 4] This flowchart shows an example of a reliability determination process performed by a server according to a second embodiment of the present invention. [Figure 5] This figure shows an example of a visible light communication system according to a third embodiment of the present invention. [Figure 6] This flowchart shows an example of a change in imaging direction detection and correction process according to a third embodiment of the present invention. [Figure 7] It is a flowchart showing an example of imaging direction change detection and correction processing according to a fourth embodiment of the present invention.

Embodiments for Carrying Out the Invention

[0010] Hereinafter, a visible light communication system as a position positioning system according to an embodiment of the present invention will be described with reference to the drawings.

[0011] (First Embodiment) FIG. 1 is a diagram showing the configuration of a visible light communication system 1. As shown in FIG. 1, the visible light communication system 1 includes mobile bodies 100a, 100b, 100c (hereinafter, when not specifically limiting each of the mobile bodies 100a, 100b, 100c, they are appropriately referred to as "mobile body 100") installed in a space 500, and a server 200 corresponding to a position positioning device.

[0012] A light source 102a is attached to the mobile body 100a, a light source 102b is attached to the mobile body 100b, and a light source 102c is attached to the mobile body 100c (hereinafter, when not specifically limiting each of the light sources 102a, 102b, 102c, they are appropriately referred to as "light source 102"). Cameras 201a, 201b, 201c, 201d corresponding to an imaging device are attached to the server 200 (hereinafter, when not specifically limiting each of the cameras 201a, 201b, 201c, 201d, they are appropriately referred to as "camera 201"). The camera 201 is fixed in the space 500 by an installation device such as a pan-tilt head. In addition, markers 300a, 300b, 300c, 300d, 300e, which are fixed points with unchanging positions, are installed in the space 500 (hereinafter, when not specifically limiting each of the markers 300a, 300b, 300c, 300d, 300e, they are appropriately referred to as "marker 300"). The marker 300 and the light source 102 include an LED (Light Emitting Diode) not shown in the figure. The light source 102 corresponds to the position positioning target.

[0013] In this embodiment, a light source 102 attached to the mobile body 100 transmits information by emitting light corresponding to various types of information to be transmitted, such as the state of the mobile body 100. Meanwhile, the server 200 acquires information emitted by the light source 102 by demodulating the changes in emission color in the light image obtained by the camera 201's time-series continuous imaging.

[0014] In this embodiment, the initial positions and imaging directions of cameras 201a to 201d are unknown. Therefore, prior to acquiring the status of the moving object 100 by the server 200 as described above, the camera parameters of each camera are determined, and calibration is performed to establish a correspondence between the virtual space recognized by cameras 201a to 201d and the real world space. This corrects the image captured by camera 201 so that distortion is reduced. The camera parameters are the intrinsic and extrinsic parameters of each camera. The intrinsic parameters are camera-specific parameters, which are matrices that convert camera coordinates to image coordinates, and include the focal length and the optical center position of the lens, and do not change due to calibration. The extrinsic parameters are matrices that convert world coordinates to camera coordinates and include information on the position and orientation of camera 201 in space 500. The server 200 calculates the camera parameters based on the positions (2D coordinate information) of each image of markers 300a, 300b, 300c, 300d, and 300e in the images obtained by imaging by cameras 201a to 201d. The calculated camera parameters are stored in server 200 as initial data.

[0015] Figure 2 shows an example of the configuration of server 200. As shown in Figure 2, server 200 includes a control unit 202, an image input unit 204, a memory 205, an operation unit 206, a display unit 207, and a communication unit 208. Cameras 201a to 201d are also attached to server 200 via wiring. Server 200 and cameras 201a to 201d may be connected wirelessly.

[0016] Camera 201a includes lens 203a, camera 201b includes lens 203b, camera 201c includes lens 203c, and camera 201d includes lens 203d (hereinafter, unless otherwise specified, lenses 203a, 203b, 203c, and 203d will be referred to as "lens 203"). Lens 203 is composed of a zoom lens or the like. Lens 203 moves by zoom control operation from the operation unit 206 and focus control by the control unit 202. The imaging angle and optical image captured by camera 201 are controlled by the movement of lens 203.

[0017] Cameras 201a to 201d are composed of multiple photodetectors arranged regularly in a two-dimensional array on a light-receiving surface. The photodetectors are imaging devices such as CCDs (Charge Coupled Devices) and CMOSs ​​(Complementary Metal Oxide Semiconductors). Cameras 201a to 201d capture (receive light) an optical image received through the lens 203 within a predetermined imaging angle based on a control signal from the control unit 202, and convert the image signal within that imaging angle into digital data to generate a frame. Furthermore, cameras 201a to 201d perform imaging and frame generation continuously in time, and output the consecutive frames to the image input unit 204 in the server 200.

[0018] The image input unit 204 receives frames (digital data) output from the camera 201 based on control signals from the control unit 202.

[0019] The control unit 202 is composed of, for example, a CPU (Central Processing Unit). The control unit 202 controls the various functions of the server 200 by executing software processing according to a program stored in the memory 205 (for example, a program for realizing the operation of the server 200 shown in Figure 3, which will be described later).

[0020] Memory 205 is, for example, RAM (Random Access Memory) or ROM (Read Only Memory). Memory 205 stores various information (programs, etc.) used for control and other purposes in server 200. In addition, memory 205 stores the captured images and calculated camera parameters taken during the initial calibration of cameras 201a to 201d as initial data.

[0021] The operation unit 206 is an interface used to input user operations, consisting of a numeric keypad, function keys, etc. The display unit 207 is composed of, for example, an LCD (Liquid Crystal Display), a PDP (Plasma Display Panel), or an EL (Electro Luminescence) display. The display unit 207 displays images according to the image signals output from the control unit 202. The communication unit 208 is, for example, a LAN (Local Area Network) card. The communication unit 208 communicates with external communication devices based on the control of the communication control unit 240.

[0022] The control unit 202 includes an image acquisition unit 231, an imaging direction detection unit 232, a correction determination unit 234, a correction value calculation unit 236, a position data acquisition unit 238, and a communication control unit 240.

[0023] The image acquisition unit 231 adjusts the image quality and image size of the frames (digital data) output from the camera 201 and input to the image input unit 204, performing peripheral vignetting correction and distortion correction so that they can be displayed as through images on the display unit 207. In addition, when the image acquisition unit 231 receives a control signal based on a recording instruction operation from the operation unit 206, it has the function of encoding the optical image within the imaging angle of the camera 201 at the time of the recording instruction, or within the display range shown on the display unit 207, using a compression encoding method such as JPEG (Joint Photographic Experts Group), and saving it as a file.

[0024] After camera parameters are determined for each combination of two cameras 201 (camera pair), the position data acquisition unit 238 detects a cyclical pattern of three colors of light contained in each image obtained from the image acquisition unit 231 by imaging with cameras 201a to 201d.

[0025] Light sources 102a, 102b, and 102c, attached to the mobile bodies 100a, 100b, and 100c respectively, emit light that cyclically changes in any pattern of the three colors R (red), G (green), and B (blue), modulated in a way that allows them to uniquely identify themselves. This is just one embodiment, and it is not necessary to cyclically change the emitted light color in any pattern of the three colors R (red), G (green), and B (blue) as long as the light source can uniquely identify itself.

[0026] The position data acquisition unit 238 detects this three-color emission pattern and attempts to demodulate it into an ID. In one embodiment, if the position data acquisition unit 238 can detect the same ID from both images obtained by imaging from the two cameras 201 included in the camera pair, it is considered that the light source 102 corresponding to that ID has been detected. Even if the image is captured from only one camera 201, if one of the fixed point markers is captured in that image, it is possible to calculate the position of the moving object equipped with the light source included in that image.

[0027] Next, the position data acquisition unit 238 acquires, for each camera pair, the position (Xga2, Yga2) of the image of the light source 102 on the imaging plane of one of the two cameras 201 included in the camera pair, and the position (Xgb2, Ygb2) of the image of the light source 102 on the imaging plane of the other camera 201. Furthermore, the position data acquisition unit 238 uses the combination of the positions (Xga2, Yga2) and (Xgb2, Ygb2) of both images, along with the camera parameters, to calculate the world coordinate installation position (Xk2, Yk2, Zk2) of the light source 102 in space 500.

[0028] The imaging direction detection unit 232 detects changes in the imaging direction of cameras 201a to 201d continuously, periodically, or according to user instructions after the cameras 201a to 201d have been installed. By detecting changes in the imaging direction of cameras 201a to 201d, the imaging direction detection unit 232 detects deviations from the initial installation conditions of the cameras due to external factors and aging factors after installation.

[0029] The imaging direction detection unit 232 detects the position (two-dimensional coordinate information) of the marker 300 image in each image obtained by imaging with cameras 201a to 201d. Here, the installation positions (three-dimensional coordinate information in the world coordinate system) of markers 300a, 300b, 300c, 300d, and 300e within space 500 are assumed to be known. Furthermore, markers 300a, 300b, 300c, 300d, and 300e emit light that cyclically changes in a pattern of three colors, R (red), G (green), and B (blue), which is modulated in a way that allows them to uniquely identify themselves.

[0030] The imaging direction detection unit 232 sets a combination of two cameras 201 (camera pair) for cameras 201a to 201d. There are six possible combinations (six ways) of any two cameras 201 from the four cameras 201.

[0031] The imaging direction detection unit 232 detects the cyclical three-color pattern of light contained in each image obtained by imaging with cameras 201a to 201d. Furthermore, the imaging direction detection unit 232 attempts to demodulate this three-color emission pattern into an ID corresponding to it. The memory 205 stores the initial data (including the world coordinate data of each marker, which is a fixed point) with the installation position and ID of each marker 300a, 300b, 300c, 300d, and 300e associated with it.

[0032] The imaging direction detection unit 232 attempts to detect a modulated light region (a pixel region of a specific size and shape with a brightness value higher than or equal to a preset value) from the image obtained from the image acquisition unit 231 by imaging from each of the cameras 201a to 201d, which is light modulated according to the ID. If detection is successful, it is considered that the marker 300 corresponding to that ID has been detected. The imaging direction detection unit 232 then determines the installation position of the marker 300 corresponding to the ID.

[0033] The imaging direction detection unit 232 compares the images captured by cameras 201a to 201d with the initial data, which are the images captured when cameras 201a to 201d were first installed, and detects changes in the imaging direction of each camera 201a to 201d based on the image position or installation position of the marker 300 included in the captured image.

[0034] The correction determination unit 234 determines whether or not to correct the fluctuation in the imaging direction for cameras 201a to 201d based on the change in imaging direction detected by the imaging direction detection unit 232. Here, correction is a process of calculating a correction value that modifies the external parameters, which are information about the position and direction of camera 201 in space 500, in order to eliminate the fluctuation in the imaging direction.

[0035] The correction determination unit 234 determines whether or not to perform correction from two perspectives: (1) whether or not correction is necessary, and (2) whether or not correction is possible. The correction determination unit 234 determines whether or not to perform correction based on whether or not the change (shift) in the image position or installation position of the marker 300 included in the captured image, from the image position or installation position of the marker 300 included in the captured image taken at the time the camera was first installed, reaches a set threshold. The threshold is stored in memory 205 in advance for each camera, and the correction determination unit 234 reads the threshold from memory 205 and performs the determination process. The threshold also includes a threshold for determining whether or not correction is necessary, and a threshold for determining whether or not correction is possible.

[0036] The correction value calculation unit 236 calculates correction values ​​for those for which correction is possible and necessary, based on the judgment of the correction judgment unit 234. As correction values, it calculates correction value parameters that modify the external parameters, which are information about the position and direction of the camera 201. Specifically, the correction values ​​are calculated from the inverse matrix of the variation parameters of the external parameters. This will be explained below.

[0037] Generally, using perspective projection matrices, the relationship between the world coordinates [Wp] in 3D space and the image coordinates [u,v] of a 2D image can be expressed as follows, using the camera's intrinsic parameters [A] and extrinsic parameters [E].

[0038] (Math 1) [u,v] = [A] [E] [Wp] ···(1)

[0039] Next, if, after camera installation, the camera's imaging direction, which is a camera installation condition, changes due to external factors or aging factors, and the image coordinates of the 2D image change from [u,v] to [u',v'], the relationship between the world coordinates [Wp] in 3D space and the image coordinates [u',v'] of the 2D image can be expressed by the following equation.

[0040] (Math 2) [u',v'] = [A] [E] [E'] [Wp] ···(2)

[0041] Here, [E'] is the parameter representing the variation in the external parameter [E] due to changes in the camera's imaging direction. The camera's internal parameter [A] is a parameter specific to the camera and does not change even if the camera's installation conditions change. In equation (2), the reason the image coordinates change from [u,v] to [u',v'] is due to the parameter [E'] representing the variation in the external parameter [E]. Therefore, by calculating the inverse matrix for this variation parameter [E'], the correction value [E'] can be obtained. -1 The system calculates a value and applies a correction to the coordinates by multiplying it by this correction value.

[0042] The correction value [E'] is obtained by finding the inverse matrix. -1 To calculate this, it is necessary that the camera pair captures a common marker, or that one camera captures two or more markers.

[0043] In cases other than those described above, i.e., when one camera is imaging one marker, the correction value [E'] can be obtained by calculating the inverse matrix. -1 It is not possible to calculate this. In this case, the correction value calculation unit 236 exhaustively tries all combinations of rotation angles around each coordinate axis of the camera coordinate system to calculate the correction value [E']. -1 The parameters are selected. Here, if the tripod head that fixes the camera is a rotating platform that can adjust two of the three axes of camera movement (pan, tilt, and roll), the number of combinations to try can be reduced by limiting the combinations to only pan and tilt rotation angles. Furthermore, the number of combinations to try can be narrowed down depending on the range of motion of the pan and tilt adjustments of the tripod head and the adjustment resolution, which is the unit of motion.

[0044] The correction value calculation unit 236 obtains the correction value [E'] by calculating the inverse matrix or by exhaustively trying all combinations of rotation angles. -1 Store this in memory 205.

[0045] Next, the operation of server 200 will be explained with reference to the flowchart. Figure 3 is a flowchart showing an example of the operation of the server 200's imaging direction change detection and correction process. This process may be performed continuously, periodically, or at the user's instruction while positioning of the moving object 100 in space 500 is being performed.

[0046] Cameras 201a to 201d are capturing images within space 500. The imaging direction detection unit 232 in the control unit 202 compares the images captured by cameras 201a to 201d acquired by the image acquisition unit 231 with the initial data read from memory 205, which are the images captured by cameras 201a to 201d at the time of camera installation. Specifically, it compares the image position or installation position of the common ID marker 300 included in the captured images. Based on the comparison, the image acquisition unit 231 detects a change in the imaging direction of cameras 201a to 201d, from the first direction (which was the imaging direction of cameras 201a to 201d at the time of camera installation) to the second direction (step S101). In this specification, the first direction refers to the imaging direction of the camera that was fixed by the fixing means at the time of system installation, system operation, or camera calibration. Initially, the camera 201 was fixed in a first direction by the fixing means that secures the camera 201. However, due to external factors including earthquakes and aging factors including loosening of fixing parts including screws, the direction in which the camera 201 faces may shift from the first direction to a direction other than the first direction (a second direction). In this embodiment, even if the direction in which the fixing means secures the camera physically shifts, there is no need to physically change (return) that shift.

[0047] Next, the correction determination unit 234 in the control unit 202 determines whether or not correction of external parameters is necessary based on the change in imaging direction detected by the imaging direction detection unit 232 (step S102).

[0048] The correction determination unit 234 compares the change (shift) in the image position or installation position of the marker 300 included in the captured image with a threshold value. If the amount of change from the first direction, which is the initial imaging direction of the camera 201, to the second direction, which is the current imaging direction, is greater than or equal to the threshold value, it is determined that correction of the external parameters is necessary (step S102: YES), and then it is determined whether or not correction of the external parameters is possible (step S103). The amount of change from the first direction to the second direction is determined by the amount of movement of the image position or installation position of the marker 300. In addition, if the imaging direction of the camera 201 has shifted significantly, and the marker 300 included in the initial captured image is not included in the current captured image, and there is no common marker 300, the imaging direction detection unit 232 cannot detect the amount of change. Therefore, the correction determination unit 234 also determines that correction is necessary if it cannot detect the amount of change.

[0049] If the change in the imaging direction from the first direction (the initial imaging direction of camera 201) to the current imaging direction (the second direction) is small or nonexistent, and the change is smaller than the threshold, the correction determination unit 234 determines that there is no need to correct the external parameters (step S102: NO) and terminates the process.

[0050] Next, in step S103, the correction determination unit 234 determines whether or not external parameters can be corrected from the current image captured by the camera 201. Specifically, it determines whether the image position of the marker 300 included in the captured image is significantly shifted from the center of the image to the corner of the image, or whether it is outside the field of view. If the position of the marker 300 is significantly shifted from the center of the image and cannot be adjusted by external parameter correction, the correction determination unit 234 determines that correction is impossible (step S103: NO) and warns the user by displaying an error on the display unit 207 (step S104). Note that the warning is not limited to a visual display but may also be audible. After warning the user, the control unit 202 terminates the process. Upon receiving the warning, the user adjusts the installation position of the camera 201.

[0051] When the position of the marker 300 is not significantly deviated from the center of the image such that it cannot be adjusted by correcting the external parameters, the correction determination unit 234 determines that correction is possible (step S103: YES) and proceeds to the correction value calculation process.

[0052] Prior to calculating the correction value, the correction value calculation unit 236 of the control unit 202 determines whether there is a pair of cameras that image the common marker 300 or whether a single camera 201 images two or more markers 300 (step S105). If there is a pair of cameras that image the common marker 300 or if one camera 201 images two or more markers 300 (step S105: YES), an inverse matrix is obtained based on the camera parameters (internal parameters and external parameters), the known world coordinates (true values) of the marker 300 stored in the memory 205, and the world coordinates (after deviation) of the marker 300 calculated from the current captured image, thereby calculating the correction value [E’] -1 (step S106).

[0053] If there is no pair of cameras that image the common marker 300 and the camera 201 images only one marker 300 (step S105: NO), the correction value calculation unit 236 assumes that there is no deviation in the roll direction among the rotation angles around each coordinate axis of the camera coordinate system and tries all combinations of the rotation angles for pan and tilt to select the parameter that is the correction value [E’] -1 In the case of a pan-tilt unit that can also be adjusted in the roll direction, all combinations with the roll direction changed may be tried to select the correction value [E’] -1 (step S107).

[0054] When the correction value [E’] -1 is obtained in step S106 or step S107, the position data acquisition unit 238 executes correction of the camera parameters and acquires the position data of the moving body 100 based on the corrected camera parameters (step S108). The correction value [E’] -1This is the inverse matrix of the parameter [E'] that corresponds to the change in the external parameter [E] due to the change in the imaging direction of the camera 201. Therefore, the coordinates are corrected by multiplying this parameter [E'] by this correction value. The position data acquisition unit 238 uses the position of the image of the light source 102 of the moving object 100 on the imaging plane of the camera 201 and the camera parameter corrected by multiplying it by the correction value to calculate the installation position of the light source 102 in world coordinates within space 500. As a result, even if the imaging direction changes from the first direction when the camera 201 was initially installed to the second direction, the position data of the moving object 100 is acquired based on the captured image without having to return the imaging direction of the camera 201 in the real world from the second direction to the first direction. In this way, even if the direction that the camera 201 is facing changes due to various factors from the initial state when it was installed, calibration is not required, and the positioning accuracy can be restored without stopping the operating system.

[0055] (Second Embodiment) Next, another embodiment will be described. In this embodiment, the visible light communication system 1 is the same as in Figure 1, and the server 200 is the same as in Figure 2. In this embodiment, the installation positions of the marker 300 and light source 102 are calculated for each camera pair, and the reliability of the calculated installation positions is determined.

[0056] Figure 4 is a flowchart showing an example of the operation of the reliability determination process by the server 200 according to another embodiment. The operation shown in Figure 4 is performed for each marker 300.

[0057] For each camera pair, when the two cameras 201 included in the camera pair capture the same marker 300, the captured image is acquired via the image input unit 204, and the imaging direction detection unit 232 of the control unit 202 attempts to identify the marker 300 by acquiring its ID (step S201).

[0058] Next, the imaging direction detection unit 232 selects the camera pair that was able to image the marker 300 and obtain an ID in step S301 (step S202).

[0059] Next, the imaging direction detection unit 232 calculates the placement position of the marker 300 for each camera pair selected in step S202, based on the images captured by the two cameras 201 included in that camera pair (step S203). Specifically, the imaging direction detection unit 232 obtains the position of the marker 300 image in the image obtained by one of the cameras 201 in the camera pair, and the position of the marker 300 image in the image obtained by the other camera 201. Furthermore, the imaging direction detection unit 232 calculates the placement position of the marker 300 using the combination of these two obtained positions and the camera parameters corresponding to the camera pair.

[0060] Next, the imaging direction detection unit 232 determines the installation reliability of the marker 300 whose installation position was calculated in step S203 (step S204). For example, with camera 201a as the center, the installation position of marker 300c calculated based on the camera pair of camera 201a and camera 201b is (Xb, Yb, Zb), the installation position of marker 300c calculated based on the camera pair of camera 201a and camera 201c is (Xc, Yc, Zc), and the installation position of marker 300c calculated based on the camera pair of camera 201a and camera 201d is (Xd, Yd, Zd). Here, it is assumed that all camera pairs are capable of imaging marker 300c at the time of camera installation. Since the installation position of marker 300c has been calculated for all camera pairs, the calculated values ​​should be the same. The installation position of marker 300c is known and is stored in memory 205 beforehand. The imaging direction detection unit 232 reads the installation position of the marker 300c from the memory 205 and calculates the difference between it and the installation positions of the marker 300c calculated by each camera pair (Xb,Yb,Zb), (Xc,Yc,Zc), and (Xd,Yd,Zd).

[0061] The imaging direction detection unit 232 determines whether the imaging direction change detection and correction process shown in Figure 3 is necessary based on whether the difference obtained for each camera pair is 0 or within the error range (step S205). If there is a camera pair where the difference obtained for each camera pair exceeds the error range (step S205: YES), the imaging direction detection unit 232 determines that the imaging direction change detection and correction process is necessary and proceeds to the process shown in Figure 3. For example, in the above example, if the difference obtained for the installation position (Xd, Yd, Zd) of the marker 300c calculated based on the camera pair of camera 201a and camera 201d exceeds the error range, and the difference obtained for the installation position of the marker 300c calculated based on other camera pairs is within the error range, the unit determines that the installation reliability of camera 201d is low and proceeds to the imaging direction change detection and correction process shown in Figure 3.

[0062] If the difference obtained for each camera pair is 0 or within the error range (step S205: NO), it is determined that there is no problem with the installation reliability of cameras 201a to 201d, and the process is terminated.

[0063] In the example above, the difference between the installation position of marker 300 calculated by each camera pair and the known installation position of marker 300 read from memory 205 was calculated. However, the method is not limited to this; the installation positions of marker 300 calculated by each camera pair can be compared, and camera pairs whose calculated installation positions differ from those calculated by other camera pairs may be judged to have low installation reliability. For example, if the installation position of marker 300c (Xb, Yb, Zb) calculated based on the camera pair of cameras 201a and 201b is the same as the installation position of marker 300c (Xc, Yc, Zc) calculated based on the camera pair of cameras 201a and 201c, and only the installation position of marker 300c (Xd, Yd, Zd) calculated based on the camera pair of cameras 201a and 201d differs from the installation positions calculated from other camera pairs by an error margin, then camera 201d may be judged to have low installation reliability.

[0064] Alternatively, the reliability determination process described above may be replaced with steps S101 and S102 of the imaging direction change detection and correction process shown in Figure 3. In this case, in step S103, if the difference from the installation position of a known marker 300 or the difference from the installation position of marker 300 calculated by other camera pairs is too large to be corrected by external parameter correction, it may be determined that correction is impossible and an error warning may be issued.

[0065] (Third embodiment) In the first and second embodiments described above, the camera 201 was fixedly installed within the space 500 (hereinafter referred to as the fixed camera type). In contrast, the third embodiment describes a case in which the camera 201 is fixedly installed on the mobile body 100, and the camera 201 moves in conjunction with the movement of the mobile body 100 (hereinafter referred to as the mobile camera type).

[0066] Figure 5 shows the configuration of the visible light communication system 1 according to this embodiment. Here, a forklift is used as an example of the mobile body 100. As shown in Figure 5, the visible light communication system 1 consists of a mobile body 100 that moves within space 500, a camera 201 attached to the mobile body 100, markers 300a, 300b, 300c, and 300d which are light sources attached to the ceiling, sides, etc., of space 500, and a server 200. The server 200 and the camera 201 are connected wirelessly, and the server 200 is installed outside space 500. Of course, the server 200 may also be installed inside space 500. Other components that are the same as those in Figure 1 are given the same numbers and their explanations are omitted. The configuration of the server 200 is the same as the configuration shown in Figure 2, except that the server 200 and cameras 201a to 201d are connected wirelessly, so its explanation is omitted.

[0067] Camera 201 moves with the mobile body 100, capturing images of multiple markers 300 to measure the camera's position, i.e., the position of the mobile body 100. In the mobile camera type, the camera position can be measured by keeping two or more markers within the camera's field of view. Compared to the fixed camera type, the number of observation points is reduced, so the accuracy requirements for camera parameters are higher. Because camera 201 is attached to the mobile body 100, the installation conditions of camera 201 may deviate from their initial values ​​due to vibrations during the movement of the mobile body 100, and the frequency of problems with reduced position detection accuracy is higher compared to the fixed camera type. Therefore, in the mobile camera type, it is important to correct for deviations in the installation conditions of camera 201 on a daily basis. For example, if the mobile body 100 is a forklift, the position where the forklift is parked at the end of work is often determined by operation. In this case, it is good to correct for deviations in the direction the camera is facing when the forklift returns to its operationally determined parking position (home position). The positions of markers visible from the home position should always be the same. Therefore, when the mobile body 100 returns to its home position, the camera 201 performs the operation of detecting and correcting changes in the imaging direction.

[0068] Figure 6 is a flowchart illustrating an example of the operation of the server 200's detection and correction process for changes in imaging direction. This process is automatically executed when the mobile body 100 returns to its home position, but it may also be executed at the user's instruction.

[0069] When the mobile body 100 returns to its home position, the camera 201 takes images of the space 500 from its home position. The imaging direction detection unit 232 in the control unit 202 compares the image captured by the camera 201 acquired by the image acquisition unit 231 with the initial data read from the memory 205, which is the image captured by the camera 201 at the home position when the camera was first installed. The memory 205 has pre-stored the image captured at the home position and the calculated camera parameters as initial data during the calibration of the camera 201 when it was first installed. The image position or installation position of the common ID marker 300 included in the image is compared and a change in the imaging direction of the camera 201 newly acquired by the image acquisition unit 231 is detected, from the first direction, which is the imaging direction of the camera 201 when it was first installed, to the second direction, which is the current imaging direction (step S301).

[0070] Next, the correction determination unit 234 in the control unit 202 determines whether or not correction of external parameters is necessary based on the change in imaging direction detected by the imaging direction detection unit 232 (step S302).

[0071] The correction determination unit 234 determines that correction of the external parameters is necessary if the detected change from the first direction to the second direction is greater than or equal to a threshold (step S302: YES), and then determines whether or not correction of the external parameters is possible (step S303). If the detected change from the first direction to the second direction is small or there is no change, and the change is less than the threshold, the correction determination unit 234 determines that correction of the external parameters is not necessary (step S302: NO), and terminates the process. The determination of whether or not correction is necessary is the same as in step S102 in Figure 3.

[0072] Next, in step S303, the correction determination unit 234 determines whether or not it is possible to correct the external parameters from the image captured by the camera 201. The determination of whether or not correction is possible is the same as in step S103 in Figure 3. If the position of the marker 300 is significantly off-center from the image and cannot be adjusted by external parameter correction, the correction determination unit 234 determines that correction is impossible (step S303: NO) and warns the user by displaying an error on the display unit 207 (step S304). After warning the user, the control unit 202 terminates the process. If the position of the marker 300 is not significantly off-center from the image to the point where it cannot be adjusted by external parameter correction, the correction determination unit 234 determines that correction is possible (step S303: YES) and proceeds to the correction value calculation process.

[0073] The correction value calculation unit 236 of the control unit 202 calculates the correction value [E'] by determining the inverse matrix based on the camera parameters (internal parameters and external parameters), the known world coordinates (true values) of the markers 300 stored in the memory 205 for two or more markers 300 in the captured image, and the world coordinates (after shift) of the markers 300 calculated from the current captured image. -1 Calculate (Step S305).

[0074] Correction value [E'] in step S305 -1 When this is required, the position data acquisition unit 238 performs correction of the camera parameters and, based on the corrected camera parameters, performs self-positioning to acquire position data for the position of the camera 201, i.e., the position of the moving object 100 (step S306). Correction value [E'] -1 This is the inverse matrix of the parameter [E'] that corresponds to the variation in the external parameter [E] due to the change in the imaging direction of camera 201. Therefore, the coordinates are corrected by multiplying this variation parameter [E'] by this correction value.

[0075] Once the position coordinates of the corrected moving body 100 are determined, they are compared with the position coordinates of the home position to determine whether the determined position coordinates match the home position, i.e., whether the determined position coordinates are correct (step S307). The position coordinates of the home position are stored in memory 205 beforehand. The control unit 202 reads the position coordinates of the home position from memory 205 and performs the above determination. If the determined position coordinates are correct (step S307: YES), the process ends. If the determined position coordinates are incorrect (step S307: NO), the process returns to step S301 and repeats the process from step S301 onwards.

[0076] According to the third embodiment, when the camera 201 is fixedly installed on the mobile body 100, even if the imaging direction changes from the first direction at the time of installation of the camera 201 to the second direction, the position data of the mobile body 100 is acquired based on the captured image without having to return the imaging direction of the camera 201 in the real world from the second direction to the first direction. In this way, even if the direction that the camera 201 is facing changes due to various factors from the initial state of installation, calibration is not required, and the positioning accuracy can be restored without stopping the operating system. Furthermore, since the correction process is performed at the home position to which the camera always returns at the end of work, the correction process is performed on a daily basis. Therefore, it is possible to maintain positioning accuracy even in environments where the orientation of the camera 201 is likely to change due to being installed on the mobile body 100.

[0077] (Fourth embodiment) In the third embodiment described above, a correction value [E'] is used to correct all three rotation angles of pan, tilt, and roll from the captured image. -1 This was determined. In contrast, in the fourth embodiment, an inertial sensor is installed on the camera 201, and a portion of the pan, tilt, and roll are corrected based on the sensor value, and then the correction value [E'] is obtained from the captured image. -1 This calculates the correction value [E']. -1 The calculation process for finding this becomes simpler.

[0078] An acceleration sensor and a gyroscope are installed on camera 201 as inertial sensors. The acceleration sensor and gyroscope measure the movement state of camera 201. Note that the inertial sensors may consist of either an acceleration sensor or a gyroscope, as long as they can detect the orientation of camera 201. The inertial sensors may also be installed on the camera 201's mounting fixture, which moves with camera 201. The acceleration sensor is a 3-axis acceleration sensor, and by detecting acceleration in three mutually orthogonal axes, it measures the change in the camera 201's operating speed while it is moving. The gyroscope is a 3-axis angular velocity sensor, and by detecting the angular velocity of rotation around each of the three axes that define acceleration in the acceleration sensor, it measures the change in the camera 201's operating direction while it is moving.

[0079] Figure 7 is a flowchart illustrating an example of the operation of the server 200 in detecting and correcting changes in imaging direction in this embodiment. Similar to the third embodiment, this process is executed when the mobile body 100 returns to its home position.

[0080] When the mobile body 100 returns to its home position, the amount of change is detected from the sensor values ​​of the accelerometer and gyroscope installed on the camera 201 (step S401).

[0081] Furthermore, camera 201 captures images within space 500 from its home position. The imaging direction detection unit 232 in the control unit 202 compares the image captured by camera 201 acquired by image acquisition unit 231 with the initial data read from memory 205, which is the image captured by camera 201 at the home position when the camera was first installed. Based on this comparison, the image acquisition unit 231 detects a change in the imaging direction of camera 201, which has been newly acquired, from the first direction, which was the imaging direction of camera 201 when the camera was first installed, to the second direction (step S402).

[0082] Next, the correction determination unit 234 in the control unit 202 determines whether or not correction of external parameters is necessary based on the change in imaging direction detected by the imaging direction detection unit 232 (step S403). If the amount of change from the first direction, which is the initial imaging direction of the camera 201 when it was installed, to the second direction is greater than or equal to a threshold, it is determined that correction of external parameters is necessary (step S403: YES), and then it is determined whether or not correction of external parameters is possible (step S404). If the amount of change from the first direction, which is the initial imaging direction of the camera 201 when it was installed, to the second direction is small, or there is no change, and the amount of change is less than the threshold, the correction determination unit 234 determines that correction of external parameters is not necessary (step S403: NO), and the process ends.

[0083] Next, in step S404, the correction determination unit 234 determines whether or not external parameters can be corrected from the image captured by the camera 201. If the position of the marker 300 is significantly off-center from the image and cannot be adjusted by external parameter correction, the correction determination unit 234 determines that correction is impossible (step S404: NO) and warns the user by displaying an error on the display unit 207 (step S405). The control unit 202 terminates the process. If the position of the marker 300 is not significantly off-center from the image to the point where it cannot be adjusted by external parameter correction, the correction determination unit 234 determines that correction is possible (step S404: YES) and proceeds to the tilt and roll correction process based on the sensor values ​​of the acceleration sensor and gyro sensor (step S406).

[0084] In step S406, tilt and roll corrections are performed based on sensor values, but pan correction is not performed. Since the correction process for pan based on sensor values ​​is complex, pan correction is performed by the subsequent correction value calculation process based on the captured image. In step S406, the 3-axis output of the accelerometer and the 3-axis output of the gyroscope are input to a Kalman filter or low-pass filter to calculate 3-axis data of acceleration and 3-axis data of angular velocity relative to the ground, and the direction of gravity is estimated. Alternatively, the direction of gravity may be estimated using an axis estimation method other than a Kalman filter or low-pass filter. Once the direction of gravity is estimated, the attitude is corrected to the estimated direction of gravity based on the data from the accelerometer and gyroscope. This corrects the tilt and roll.

[0085] Next, the correction value calculation unit 236 of the control unit 202 calculates the correction value [E'] by obtaining an inverse matrix based on the camera parameters (internal parameters and external parameters), the known world coordinates (true values) of the markers 300 stored in the memory 205 for two or more markers 300 in the captured image, and the world coordinates (after shift) of the markers 300 calculated from the current captured image. -1 Calculate (step S407). Since tilt and roll have already been corrected in step S406, the correction value [E'] -1 The computational burden required to calculate this value is reduced.

[0086] Correction value [E'] in step S407 -1 When this is requested, the position data acquisition unit 238 performs correction of the camera parameters and, based on the corrected camera parameters, performs self-positioning to acquire position data for the position of the camera 201, i.e., the position of the moving object 100 (step S408).

[0087] Once the position coordinates of the moving object 100 are determined, they are compared with the position coordinates of the home position read from memory 205 to determine whether the determined position coordinates match the home position, i.e., whether the determined position coordinates are correct (step S409). If the determined position coordinates are correct (step S409: YES), the process ends. If the determined position coordinates are incorrect (step S409: NO), the process returns to step S401 and repeats the process from step S401 onwards.

[0088] According to the fourth embodiment, in addition to the effects of the third embodiment, the correction value [E'] -1 By correcting the tilt and roll rotation angles, which are parameters for calculating [E'], based on the sensor values ​​of the inertial sensor, the number of parameters is reduced, and the correction value [E'] -1 The process for calculating this becomes simpler. Also, the calculation process for the pan rotation angle, which is complex in correction based on the sensor value of the inertial sensor, is corrected to the correction value [E']. -1 This correction simplifies the calculation process for corrections based on the sensor values ​​of the inertial sensor.

[0089] In the second, third, and fourth embodiments described above, the stopping accuracy of the mobile body 100 to its home position was not considered. However, video content analysis may be used in conjunction to relax the stopping accuracy of the mobile body 100. For example, by providing a pattern such as a checkerboard at the home position, the stopping posture of the mobile body 100 can be determined, and the rotational deviation in the left-right direction caused by the deviation in the stopping direction of the mobile body 100 can be corrected.

[0090] In the above embodiment, the CPU functioned as the control unit 202 by executing a program stored in RAM or ROM. However, instead of the CPU executing a program stored in RAM or ROM, dedicated hardware such as an ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or various control circuits may be provided, and this dedicated hardware may function as the control unit 202. In this case, some parts may be implemented by the dedicated hardware, and other parts by software or firmware.

[0091] While embodiments of the present invention have been described, the scope of the present invention is not limited to the embodiments described above, but includes the scope of the invention as described in the claims and its equivalents. The invention described in the claims originally attached to this application is listed below. The numbers of the appendices correspond to those in the claims originally attached to this application.

[0092] (Note 1) An image is acquired from a camera whose imaging direction has changed from a first direction to a second direction, including at least one marker placed in space and at least one moving object moving within the space. Based on the captured image and initial data, a change in the imaging direction from the first direction to the second direction is detected. Without changing the imaging direction of the camera in the real world from the second direction to the first direction, position data of the at least one moving object is obtained based on the captured image. A device for determining the position of a moving object.

[0093] (Note 2) A camera fixed to a moving object acquires an image from a camera whose imaging direction has changed from a first direction to a second direction, capturing multiple markers arranged in space. Based on the captured image and initial data, a change in the imaging direction from the first direction to the second direction is detected. Without changing the imaging direction of the camera in the real world from the second direction to the first direction, the position data of the moving object is obtained based on the image captured by the camera. A device for determining the position of a moving object.

[0094] (Note 3) The initial data includes world coordinate data where the marker is placed. A positioning device for a moving object as described in Appendix 1 or 2.

[0095] (Note 4) Due to external factors such as vibration or factors due to aging, the imaging direction of the camera changes from the first direction to the second direction. A positioning device for a moving object as described in any one of the appendices 1 to 3.

[0096] (Note 5) When detecting a change in the second direction, a correction value is calculated to correct for the variation in the camera's imaging direction based on the image coordinate data of the marker included in the captured image and the world coordinate data of the marker. A positioning device for a moving object as described in any one of the appendices 1 to 4.

[0097] (Note 6) The position data is acquired based on the correction value. The positioning device described in Appendix 5.

[0098] (Note 7) The aforementioned captured image is taken when the moving object is in the home position. A positioning device for a moving object as described in Appendix 2.

[0099] (Note 8) The moving body is equipped with an inertial sensor that detects the attitude of the camera, Based on the sensor values ​​of the inertial sensor, the camera's attitude is corrected, excluding at least the roll. A positioning device for a moving object as described in Appendix 2.

[0100] (Note 9) A camera whose imaging direction has changed from the first direction to the second direction, Markers placed within the space, A moving body that moves within the aforementioned space, Equipped with at least one processor, The aforementioned at least one processor is A first image is acquired in which the aforementioned marker is captured. Based on the first captured image and the initial data, a change in the imaging direction from the first direction to the second direction is detected. Without changing the imaging direction of the camera in the real world from the second direction back to the first direction, the position of the moving object is obtained based on the second image acquired by the camera facing the second direction. A system for determining the position of moving objects.

[0101] (Note 10) A first image is acquired using a camera whose imaging direction has changed from the first direction to the second direction, capturing markers placed in space. Based on the first captured image and the initial data, a change in the imaging direction from the first direction to the second direction is detected. Without changing the imaging direction of the camera in the real world from the second direction back to the first direction, the position of the moving object is obtained based on the second image acquired by the camera facing the second direction. A method for determining the position of a moving object.

[0102] (Note 11) At least one processor, A first image is acquired using a camera whose imaging direction has changed from the first direction to the second direction, capturing markers placed in space. Based on the first captured image and the initial data, a change in the imaging direction from the first direction to the second direction is detected. Without changing the imaging direction of the camera in the real world from the second direction back to the first direction, the position of the moving object is obtained based on the second image acquired by the camera facing the second direction. A program for determining the position of a moving object. [Explanation of Symbols]

[0103] 1…Visible light communication system, 100a, 100b, 100c…Moving body, 102a, 102b, 102c…Light source, 200…Server, 201a, 201b, 201c, 201d…Camera, 202…Control unit, 203a, 203b, 203c, 203d…Lens, 204…Image input unit, 205…Memory, 206…Operation unit, 207…Display unit, 208…Communication unit, 231…Image acquisition unit, 232…Imaging direction detection unit, 234…Correction judgment unit, 236…Correction value calculation unit, 238…Position data acquisition unit, 240…Communication control unit, 300a, 300b, 300c, 300d, 300e…Marker, 500…Space

Claims

1. acquiring an image of a plurality of markers arranged in a space from a camera fixed to the moving body, the image capturing direction of which is changed from a first direction to a second direction; Detecting a change in the imaging direction from the first direction to the second direction based on the captured image and initial data; acquiring position data of the moving object based on an image captured by the camera without returning the imaging direction of the camera in the real world from the second direction to the first direction; A mobile positioning device.

2. The initial data includes world coordinate data in which a marker is placed. The position measuring device for a moving body according to claim 1.

3. The imaging direction of the camera changes from the first direction to the second direction due to an external factor such as vibration or an aging factor.

3. The position measuring device for a moving body according to claim 1 or 2.

4. When detecting a change in the second direction, a correction value for correcting a change in the imaging direction of the camera is calculated based on image coordinate data of a marker included in the captured image and world coordinate data of the marker. The position measuring device for a moving body according to any one of claims 1 to 3.

5. obtaining the position data based on the correction value; The positioning device according to claim 4.

6. The captured image is captured when the moving object is located at a home position. The position measuring device for a moving body according to claim 1.

7. the moving body includes an inertial sensor that detects the attitude of the camera; correcting the attitude of the camera, excluding at least roll, based on the sensor value of the inertial sensor; The position measuring device for a moving body according to claim 1.

8. A camera fixed to a moving body, the imaging direction of which is changed from a first direction to a second direction; A plurality of markers arranged in a space; At least one processor; The at least one processor acquiring a captured image of the plurality of markers; Detecting a change in the imaging direction from the first direction to the second direction based on the captured image and initial data; acquiring a position of the moving object based on an image captured by the camera without returning the imaging direction of the camera in the real world from the second direction to the first direction; A mobile positioning system.

9. A camera fixed to a moving body, the imaging direction of which is changed from a first direction to a second direction, and an image of a plurality of markers arranged in a space is acquired by the camera, Detecting a change in the imaging direction from the first direction to the second direction based on the captured image and initial data; acquiring a position of the moving object based on an image captured by the camera without returning the imaging direction of the camera in the real world from the second direction to the first direction; A method for determining the position of a moving object.

10. At least one processor a camera fixed to the moving body, the imaging direction of which is changed from a first direction to a second direction, is used to acquire an image of a plurality of markers arranged in a space; Detecting a change in the imaging direction from the first direction to the second direction based on the captured image and initial data; acquiring a position of the moving object based on an image captured by the camera without returning the imaging direction of the camera in the real world from the second direction to the first direction; A mobile positioning program.