Calculation apparatus, image processing apparatus, imaging system, calculation method, and program
The calculation device determines the mirror shape to facilitate camera installation and distortion correction in limited spaces, addressing installation challenges and ensuring clear imaging in varying store layouts.
Patent Information
- Application Number
- JP2023019995
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-13
- Publication Date
- 2024-08-23
AI Technical Summary
Existing imaging systems face challenges in installing cameras and mirrors in stores with limited space, as they require power supply and optimal positioning to minimize distortion, which is difficult due to varying store layouts.
A calculation device determines the shape of a mirror to be used for imaging, considering the positional relationship between the camera and the imaging target area, allowing for installation flexibility and distortion correction through digital processing.
Enables appropriate imaging of areas regardless of store layout by determining the mirror shape to accommodate camera installation and correct distortion, ensuring clear and focused images are captured.
Smart Images

Figure 2024114313000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a calculation device, an image processing device, an imaging system, a calculation method, and a program. [Background technology]
[0002] There are systems that deliver images of products displayed in a store to users who have difficulty visiting the store in person, enabling them to purchase the products online. As imaging devices used in such systems, small computing devices such as smartphones and tablets that can perform image processing and network transmission independently and can be installed in a small space may be adopted.
[0003] When capturing images of products on display shelves, tables, and other target areas using a camera with a fixed angle of view, such as a smartphone, the camera is installed in the air in front of the target area, which can make it difficult to install a camera that requires a power supply. In addition, if you try to capture images with minimal distortion of the target area, you must install the camera on a ceiling or wall far away from the target area, which can make it difficult to install the camera in a store with limited space.
[0004] One possible solution to this problem is to install a mirror in front of the area to be imaged and use a camera to capture the area to be imaged reflected in the mirror. This allows the camera to be installed on the side of the area to be imaged, such as a display shelf or a table, making it easier to supply power to the camera. Patent Document 1 discloses a technology in which a distorted image is captured by an image sensor via a lens or a curved mirror, and the distortion is corrected by digital processing. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2006-129411 A Summary of the Invention [Problem to be solved by the invention]
[0006] However, the layout of each store is different, and the store is not designed with the assumption that the display shelves will be imaged. When trying to install cameras and other equipment later in a store with limited space, there are often limited locations where mirrors and cameras can be installed, making it difficult to properly image the target area.
[0007] The present invention has been made in consideration of the above-mentioned circumstances, and aims to provide a calculation device, an image processing device, an imaging system, a calculation method, and a program that can appropriately image an imaging target area according to the respective positional relationships between the imaging target area, the camera, and the mirror. [Means for solving the problem]
[0008] A calculation device of the present invention is a calculation device that derives the shape of a mirror used in a system that captures an image of an image capture target area through a mirror, and the calculation device defines an arbitrary coordinate on an imaging surface of a camera as a first pixel coordinate, defines a line segment connecting the installation position of the camera and the first pixel coordinate as a first line segment, defines a distance from the installation position of the camera to the installation position of the mirror as an assumed mirror distance, defines a point on the first line segment that is at the assumed mirror distance from the installation position of the camera as a first pixel corresponding point on the mirror, defines a position in the image capture target area that corresponds to the first pixel coordinate as a first pixel corresponding position, and performs local estimation at the first pixel corresponding point so that reflected light that is specularly reflected at the first pixel corresponding point reaches the first pixel corresponding position when light is irradiated along the first line segment from the installation position of the camera. a second surface determination unit that determines a surface direction of a fixed mirror surface, a coordinate near the first pixel coordinate on the imaging surface of the camera as a second pixel coordinate, a line segment connecting the installation position of the camera and the second pixel coordinate as a second line segment, a point on a spherical surface of a sphere that is tangent to the local estimated mirror surface at the first pixel corresponding point as a second pixel corresponding point on the mirror, and a position in the imaging target area corresponding to the second pixel coordinate as a second pixel corresponding position, and determines a position of the second pixel corresponding point such that when light is irradiated from the installation position of the camera along the second line segment, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; and a mirror shape determination unit that determines a shape of the mirror based on the position coordinates of the first pixel corresponding point and the second pixel corresponding point.
[0009] The image processing device of the present invention includes a memory unit that stores a lookup table indicating the optical path length for each coordinate on the imaging plane of the camera, which is specified based on the shape of the mirror determined by the calculation device described above, an imaging control unit that controls the camera so that the imaging target area is imaged at different focal lengths based on focal lengths corresponding to the optical path lengths stored in the lookup table, and an image synthesis unit that synthesizes multiple images captured by the camera in accordance with the control of the imaging control unit based on the optical path lengths stored in the lookup table.
[0010] The image processing device of the present invention comprises a memory unit that stores distribution information regarding the distribution of pixel corresponding positions in the imaging target area, which is used for calculating the mirror by the calculation device described above, an imaging control unit that controls the camera so that the imaging target area is imaged, and an image correction unit that corrects the image captured by the camera based on the distribution information in accordance with the control of the imaging control unit.
[0011] The imaging system of the present invention comprises the mirror, the shape of which is determined by the calculation device described above, the camera arranged so as to be able to image the imaging target area through the mirror, and a control device that controls imaging by the camera.
[0012] A calculation method of the present invention is a calculation method performed by a calculation device that derives the shape of a mirror used in a system that captures an image of an image capture area through a mirror, the calculation method including: defining an arbitrary coordinate on an image capture surface of a camera as a first pixel coordinate; defining a line segment that connects an installation position of the camera and the first pixel coordinate as a first line segment; defining a distance from the installation position of the camera to an installation position of the mirror as an assumed mirror distance; defining a point on the first line segment that is at the assumed mirror distance from the installation position of the camera as a first pixel corresponding point on the mirror; defining a position in the image capture area that corresponds to the first pixel coordinate as a first pixel corresponding position; a second line segment that connects the installation position of the camera and the second pixel coordinate; a point on a spherical surface of a sphere that is tangent to the local estimated mirror surface at the first pixel corresponding point is determined as a second pixel corresponding point on the mirror; a position in the imaging target area that corresponds to the second pixel coordinate is determined as a second pixel corresponding position; a second surface determination unit determines the position of the second pixel corresponding point so that when light is irradiated along the second line segment from the installation position of the camera, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; and a mirror shape determination unit determines the shape of the mirror based on the position coordinates of the first pixel corresponding point and the second pixel corresponding point.
[0013] The program of the present invention causes a computer, which is a calculation device for deriving a shape of a mirror used in a system for capturing an image of an image capturing area through a mirror, to perform the following steps: define arbitrary coordinates on an imaging surface of a camera as first pixel coordinates, define a line segment connecting an installation position of the camera and the first pixel coordinates as a first line segment, define a distance from the installation position of the camera to an installation position of the mirror as an assumed mirror distance, define a point on the first line segment that is at the assumed mirror distance from the installation position of the camera as a first pixel corresponding point on the mirror, define a position in the imaging target area that corresponds to the first pixel coordinates as a first pixel corresponding position, and define the first pixel corresponding position as a first pixel corresponding position such that when light is irradiated from the installation position of the camera along the first line segment, reflected light that is specularly reflected at the first pixel corresponding point reaches the first pixel corresponding position. a second line segment that connects the installation position of the camera and the second pixel coordinate; a point on a spherical surface of a sphere that is tangent to the local estimated mirror surface at the first pixel corresponding point is a second pixel corresponding point on the mirror; a position in the imaging target area that corresponds to the second pixel coordinate is a second pixel corresponding position; the position of the second pixel corresponding point is determined so that when light is irradiated along the second line segment from the installation position of the camera, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; and a shape of the mirror is determined based on the position coordinates of the first pixel corresponding point and the second pixel corresponding point. Effect of the Invention
[0014] According to the present invention, it is possible to appropriately capture an image of an imaging target area in accordance with the positional relationship between the imaging target area, the camera, and the mirror. [Brief description of the drawings]
[0015] [Figure 1] 1 is a block diagram showing an example of the configuration of a computing device 10 according to a first embodiment. [Diagram 2] FIG. 2 is a diagram for explaining a process performed by the computing device 10 of the first embodiment. [Diagram 3] FIG. 2 is a diagram for explaining a process performed by the computing device 10 of the first embodiment. [Figure 4] FIG. 2 is a diagram for explaining a process performed by the computing device 10 of the first embodiment. [Diagram 5] FIG. 2 is a diagram for explaining a process performed by the computing device 10 of the first embodiment. [Figure 6] FIG. 2 is a diagram for explaining a process performed by the computing device 10 of the first embodiment. [Figure 7] FIG. 4 is a diagram illustrating an example of information stored in a calculation information storage unit 105 according to the first embodiment. [Figure 8] FIG. 4 is a diagram showing an example of information stored in a mirror shape information storage unit 106 according to the first embodiment. [Figure 9] 4 is a flowchart showing the flow of processing performed by a computing device 10 according to the first embodiment. [Figure 10] FIG. 11 is a block diagram showing an example of the configuration of an imaging system 1 according to a second embodiment. [Figure 11A] FIG. 11 is a diagram for explaining a process performed by the image processing device 20 of the second embodiment. [Figure 11B] FIG. 11 is a diagram for explaining a process performed by the image processing device 20 of the second embodiment. [Figure 12] FIG. 11 is a diagram for explaining a process performed by the image processing device 20 of the second embodiment. [Figure 13] FIG. 11 is a diagram illustrating an example of the configuration of an imaging system 100 according to a third embodiment. [Figure 14] FIG. 13 is a diagram illustrating an example of the configuration of an imaging system 100 according to a first modified example of the third embodiment. [Figure 15] FIG. 13 is a diagram illustrating an example of the configuration of an imaging system 100 according to a second modified example of the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0017] (First embodiment) First, a first embodiment will be described. This embodiment relates to a calculation device 10 that is applied to the design stage of a mirror.
[0018] (Configuration of the computing device 10) The calculation device 10 will be described with reference to Figs. 1 to 6. Fig. 1 is a block diagram showing an example of the configuration of the calculation device 10 according to the first embodiment. Figs. 2 to 6 are diagrams for explaining the process performed by the calculation device 10 according to the first embodiment. The calculation device 10 is a computer that calculates the shape of a mirror that can appropriately capture an image of an area to be captured, based on the relationship between the area to be captured and the respective installation locations of the camera and the mirror. For example, a server device, a cloud, a PC (personal computer), etc. can be applied as the calculation device 10.
[0019] As shown in FIG. 1, the calculation device 10 includes, for example, an acquisition unit 101, a first surface determination unit 102, a second surface determination unit 103, a mirror shape determination unit 104, a calculation information storage unit 105, and a mirror shape information storage unit 106.
[0020] The acquisition unit 101 acquires information for calculating the shape of the mirror. The information for calculating the shape of the mirror will be described with reference to FIG.
[0021] 2 shows a schematic diagram of the relationship between the installation locations of the imaging target area SA, the camera CM, and the mirror MR. As shown in the example of this figure, the mirror MR is installed at a position where the camera CM receives the reflected light that has come from the imaging target area SA. As a result, an image corresponding to the light received by the camera CM is captured on the imaging surface SS. In other words, the shape of the mirror is determined so that when light is irradiated from the installation position of the camera CM toward the mirror MR, the reflected light reflected by the mirror MR reaches the imaging target area SA.
[0022] The information for calculating the shape of the mirror includes, for example, the following information: Camera CM installation position, orientation, imaging surface SS size uv -Size of the imaging areaUV ·Calculation resolution d Virtual mirror distance L
[0023] The virtual mirror distance L is the distance from the installation position of the camera CM to the mirror MR. The calculation resolution d is an index indicating the degree of resolution at which the shape is calculated in the process of calculating the shape of the mirror MR. For example, when calculating the mirror shape (local mirror surface direction) for each position of the mirror MR corresponding to all pixels in the camera CM, the calculation resolution d=1. When calculating the mirror shape of the mirror position corresponding to a pixel selected every 10th pixel out of all pixels in the camera CM, the calculation resolution d=10.
[0024] The acquiring unit 101 acquires information for calculating the shape of the mirror, for example, from the calculation information storage unit 105 described later. Alternatively, the acquiring unit 101 may be configured to acquire information for calculating the shape of the mirror input from an input device such as a keyboard included in the calculation device 10. Also, the information for calculating the shape of the mirror may be stored in a portable storage medium such as a USB memory, and the acquiring unit 101 may be configured to acquire the information for calculating the shape of the mirror via this storage medium.
[0025] Returning to FIG. 1, the first surface determination unit 102 determines the surface direction of the first surface. The first surface is a local mirror surface (local estimated mirror surface MRA in FIG. 3) at an arbitrary point on the mirror (pixel corresponding point Mpt in FIG. 3). A method for determining the surface direction of the first surface will be described with reference to FIG. 3.
[0026] FIG. 3 shows a schematic diagram of the path of light received by the camera CM when the imaging target area SA is imaged.
[0027] First, the first surface determination unit 102 selects an arbitrary pixel coordinate pt on the imaging surface SS as a point (starting point) from which the shape calculation of the mirror MR is to be started. In the example of this figure, an example is shown in which a pixel at pixel coordinate pt(x, y) on the imaging surface SS is selected as the starting point. For example, when the center of the imaging surface SS is set as the starting point, the pixel coordinate pt(x, y) is (u×0.5, v×0.5). Any coordinate on the imaging surface SS can be set as the starting point.
[0028] Next, the first side determination unit 102 specifies the following: -Pixel correspondence points Mpt Pixel Corresponding Position PT
[0029] The pixel corresponding point Mpt is a point on the mirror MR that corresponds to the pixel coordinate pt. Specifically, the pixel corresponding point Mpt is a point that passes through the starting point on the imaging surface SS from the installation position (viewpoint) of the camera, and is located at the end of the virtual mirror distance L. For example, the first plane determination unit 102 determines a line segment (first line segment) that connects the installation position of the camera CM and the pixel coordinate pt (x, y) that is the starting point, as the optical axis OA (x, y) that corresponds to the starting point. Then, the first plane determination unit 102 determines a point on the first line segment that is at the assumed mirror distance from the installation position of the camera CM as the pixel corresponding point Mpt (x, y) on the mirror MR.
[0030] In this way, by selecting the pixel coordinate pt as the starting point and determining the position of the pixel corresponding point Mpt corresponding to the selected pixel coordinate pt based on the optical axis OA and the virtual mirror distance L, it is possible to easily grasp the approximate position of the entire shape of the mirror MR at an early stage of calculation.
[0031] The pixel corresponding position PT is a position in the imaging target area SA that corresponds to the pixel coordinate pt. Specifically, when the pixel coordinates are pt(u×0.5, v×0.5), the pixel corresponding position is PT(U×0.5, V×0.5). When the pixel coordinates are pt(x, y), the pixel corresponding position is PT(x, y).
[0032] Then, the first surface determination unit 102 determines the surface direction of the first surface, that is, the local estimated mirror surface MRA(x, y) at the pixel corresponding point Mpt(x, y). The first surface determination unit 102 determines the surface direction of the local estimated mirror surface based on the positional relationship between the pixel coordinates pt, the pixel corresponding point Mpt, and the pixel corresponding position PT. The first surface determination unit 102 determines the surface direction of the local estimated mirror surface MRA(x, y) at the pixel corresponding point Mpt(x, y) so that, when light is irradiated along OA(x, y) from the installation position of the camera, the reflected light specularly reflected at the pixel corresponding point Mpt(x, y) reaches the pixel corresponding position PT(x, y). The surface direction can be specified, for example, by a normal vector at the local estimated mirror surface MRA(x, y).
[0033] For example, the first surface determination unit 102 determines a surface having a line segment nv that bisects an angle (2α) formed at the pixel corresponding point Mpt by connecting the pixel coordinates pt(x, y), the pixel corresponding point Mpt(x, y), and the pixel corresponding position PT(x, y) as the local estimated mirror surface MRA(x, y). In this case, the surface direction of the local estimated mirror surface MRA(x, y) is, for example, the direction of the surface perpendicular to the normal vector nv.
[0034] Returning to Fig. 1, the second surface determination unit 103 determines the position of the pixel corresponding point corresponding to the second surface. The second surface is a local mirror surface (local estimated mirror surface MRA# in Fig. 4) at a point (pixel corresponding point Mpt# in Fig. 4) on the mirror that is in the vicinity of the pixel corresponding point Mpt corresponding to the first surface. A method for determining the position of the pixel corresponding point Mpt# corresponding to the second surface will be described with reference to Figs. 4 and 5.
[0035] FIG. 4 shows a schematic diagram of the path of light received by the camera CM when the imaging target area SA is imaged.
[0036] The second plane determination unit 103 next selects, on the imaging plane SS, a point (pixel coordinate pt#) located in the vicinity of the pixel coordinate pt used in the previous calculation as a pixel corresponding point Mpt# corresponding to the second plane.
[0037] For example, when the surface direction of the first surface was determined by the first surface determination unit 102 in the previous calculation, the second surface determination unit 103 selects pixel coordinates pt#(x±d, y±d) in the vicinity of the pixel coordinates pt(x, y) set as the starting point. In this case, the calculation device 10 may select a point at a position shifted by the calculation resolution d in only one of the u direction and the v direction on the imaging surface SS.
[0038] Alternatively, if the position of pixel coordinate pt# was determined by the second plane determination unit 103 in the previous calculation, the second plane determination unit 103 selects pixel coordinate pt## (x±2d, y±2d) in the vicinity of the pixel coordinate pt# selected in the previous calculation. In this case, the calculation device 10 may select a point at a position shifted by the calculation resolution d×2 in only one of the u direction and the v direction on the imaging plane SS.
[0039] The second surface determination unit 103 locally approximates the mirror surface as being spherical, and determines the position of pixel corresponding point Mpt# that corresponds to the second surface.
[0040] 5, multiple spheres SP (spheres SP1 to SP3) that are in contact with the local estimated mirror surface MRA determined in the previous calculation are shown in schematic form. As shown in the example of this figure, the second surface determination unit 103 may use the multiple spheres SP to assume that a point on the surface of any one of the spheres is the pixel corresponding point Mpt#.
[0041] Then, the second plane determination unit 103 determines the second plane, that is, the position of the pixel corresponding point Mpt#(x±d, y±d), in a similar manner to the first plane determination unit 102.
[0042] Specifically, first, the second surface determination unit 103 selects pixel coordinates pt# for use in calculating the mirror shape. The pixel coordinates pt# are points in the vicinity of the pixel coordinates pt used in the previous calculation.
[0043] Next, the second face determination unit 103 specifies the following: ·Pixel correspondence points Mpt# Pixel Corresponding Position PT#
[0044] The pixel corresponding point Mpt# is a point on the mirror MR that corresponds to pixel coordinate pt# and is a point on the surface of a sphere tangent to the locally estimated mirror surface MRA that corresponds to the pixel coordinate pt used in the previous calculation.
[0045] The pixel-corresponding position PT# is a position in the imaging target area SA that corresponds to pixel coordinates pt#.
[0046] Then, the second surface determination unit 103 determines the second surface, that is, the position of the local estimated mirror surface MRA#(x±d, y±d) at the pixel corresponding point Mpt#(x±d, y±d). The second surface determination unit 103 determines the position of the pixel corresponding point Mpt# based on the positional relationship between the pixel coordinates pt#, the pixel corresponding point Mpt#, and the pixel corresponding position PT#.
[0047] The second surface determination unit 103 determines the position of pixel corresponding point Mpt#(x±d, y±d) so that light reflected specularly from pixel corresponding point Mpt#(x±d, y±d) on the sphere SP reaches pixel corresponding position PT#(x±d, y±d) when light is irradiated along OA#(x±d, y±d) from the installation position of the camera. The normal vector of the local estimated mirror surface MRA#(x±d, y±d) at pixel corresponding point Mpt#(x±d, y±d) is the direction from the center of the sphere SP toward pixel corresponding point Mpt#(x±d, y±d).
[0048] For example, the second surface determination unit 103 selects a pixel corresponding point Mpt#(x±d, y±d) such that the angle formed at the pixel corresponding point Mpt# by connecting the pixel coordinates pt#(x±d, y±d), the pixel corresponding point Mpt#(x±d, y±d), and the pixel corresponding position PT#(x±d, y±d) is bisected by the normal vector of the locally estimated mirror surface MRA#(x±d, y±d) at the pixel corresponding point Mpt#(x±d, y±d).
[0049] Here, the shape of the sphere SP assumed by the second surface determination unit 103 does not necessarily have to be concave in the direction from the mirror MR to the camera CM. The shape of the sphere SP may be convex in the direction from the mirror MR to the camera CM. There may be pixel correspondence that satisfies the solution at a point on the surface of the convex sphere SP. The solution here is a solution that satisfies a relationship in which light irradiated from the installation position of the camera is reflected by the mirror MR, and the reflected light reaches the pixel corresponding position. In this case, it is assumed that the shape of the mirror MR will be a wavy shape with a mixture of concaves and convexes.
[0050] Furthermore, in cases where no solution exists even when both concave and convex spherical surfaces are assumed due to constraints corresponding to the assumption that pixel corresponding point Mpt# is on the surface of a sphere SP, the calculation device 10 may be configured to change the settings of the initial parameters, such as the virtual mirror distance L, the calculation resolution d, the size of the imaging surface SS, the size of the imaging target area SA, etc., and redo the calculations.
[0051] In this case, for example, the second surface determination unit 103 performs a calculation to derive the position of the pixel corresponding point Mpt# corresponding to the second surface, and when it is determined that the solution does not exist, it displays that fact on a display unit (not shown) of the calculation device 10. In this case, the calculation device 10 displays a message prompting the user to change the initial parameters. The calculation device 10 acquires, for example, information for calculating the shape of the mirror, which is input from an input device such as a keyboard according to the display, as changed initial parameters via the acquisition unit 101. The calculation device 10 executes the calculation to determine the shape of the mirror MR again using the acquired changed initial parameters.
[0052] The second surface determination unit 103 repeatedly executes such calculations to determine the positions of various pixel corresponding positions PT# on the mirror MR. This makes it possible to determine a mesh-like mirror shape in which the positions of pixel corresponding points Mpt are determined at intervals according to the calculation resolution d.
[0053] Returning to Fig. 1, the mirror shape determination unit 104 determines the shape of the mirror MR. The mirror shape determination unit 104 determines the shape of the mirror MR based on the position coordinates of each of the pixel corresponding points determined by the first plane determination unit 102 or the second plane determination unit 103. A method for determining the shape of the mirror MR will be described with reference to Fig. 6.
[0054] 6 is a schematic diagram showing the positions of various pixel corresponding points Mpt (pixel corresponding points Mpt1 to Mpt4) on the mirror MR determined by the first plane determination unit 102 or the second plane determination unit 103. As shown in the example of this figure, the pixel corresponding points Mpt are discretely arranged at intervals according to the calculation resolution d, and are not consecutive.
[0055] For this reason, the mirror shape determination unit 104 uses an approximation surface to interpolate between one pixel corresponding point and another pixel corresponding point so that the mirror MR has a smooth shape. For example, the mirror shape determination unit 104 uses a cubic spline surface that passes through each of the pixel corresponding points Mpt to interpolate points that indicate the shape of the mirror MR.
[0056] For example, as shown in the example on the left side of Figure 6, if the discrete pixel corresponding points Mpt1 to Mpt4 are connected by a spherical surface Y (for example, all or part of the spherical surface of the sphere SP used in the calculation) or a plane X, the mirror MR will not have a smooth shape overall.
[0057] In response to this, the mirror shape determination unit 104 connects the discrete pixel corresponding points Mpt1 to Mpt4 with an approximated curved surface CS, as shown in the example on the right side of Fig. 6. This makes it possible to give the mirror MR a smooth shape.
[0058] It should be noted that when it is determined that interpolation is not necessary, such as when the interval between pixel corresponding points, that is, the interval according to the calculation resolution d, is sufficiently small compared to the size of the mirror MR, it is not necessarily necessary to perform the interpolation.
[0059] In addition, the shape of the mirror MR is smoothed by the interpolation, which may cause a local geometric error from the calculated shape, but if the error is smaller than a threshold, the image correction may be performed to address the error. As the image correction in this case, for example, there is an image correction using a correction pattern.
[0060] Returning to Fig. 1, the calculation information storage unit 105 stores information for calculating the shape of the mirror. The mirror shape information storage unit 106 stores information indicating the shape of the mirror. The calculation information storage unit 105 and the mirror shape information storage unit 106 are configured by a storage medium such as a hard disk drive (HDD), a flash memory, an electrically erasable programmable read only memory (EEPROM), a random access read / write memory (RAM), a read only memory (ROM), or a combination of these.
[0061] Fig. 7 is a diagram showing an example of information stored in the calculation information storage unit 105 according to the first embodiment. As shown in the example of Fig. 7, the calculation information storage unit 105 stores, for example, the installation position and attitude of the camera CM, the size uv of the imaging surface SS, the size UV of the imaging target area, the calculation resolution d, and the virtual mirror distance L.
[0062] FIG. 8 is a diagram showing an example of information stored in the mirror shape information storage unit 106 according to the first embodiment. As shown in the example of FIG. 8, the mirror shape information storage unit 106 stores, for example, pixel coordinates pt on the imaging surface SS of the camera CM, pixel corresponding points Mpt on the mirror MR, pixel corresponding positions PT in the imaging target area SA, and a vector MRA indicating a surface direction on the local estimated mirror surface. The vector MRA is, for example, a normal vector on the local estimated mirror surface MRA. The mirror shape information storage unit 106 stores the position of the corresponding pixel corresponding point Mpt for each pixel coordinate pt selected corresponding to the calculation resolution d. In addition, the mirror shape information storage unit 106 stores the surface direction on the local estimated mirror surface for the pixel coordinate pt set as the starting point of the calculation.
[0063] For example, when the surface direction on the first surface is determined by the first surface determination unit 102, information indicating the surface direction on the local estimated mirror surface (e.g., a normal vector) is stored in the mirror shape information storage unit 106 by the first surface determination unit 102. In addition, the pixel coordinates pt, pixel corresponding point Mpt, and pixel corresponding position PT used in the calculation are stored in the mirror shape information storage unit 106 by the first surface determination unit 102.
[0064] Furthermore, when the second surface determination unit 103 determines the position of pixel corresponding point Mpt# corresponding to the second surface, information indicating the position of the pixel corresponding point Mpt# is stored by the second surface determination unit 103 in the mirror shape information storage unit 106. Furthermore, the pixel coordinate pt#, pixel corresponding position PT#, and information indicating the surface direction on the locally estimated mirror surface at the pixel corresponding point Mpt# (for example, a normal vector) used in the calculation are stored by the second surface determination unit 103 in the mirror shape information storage unit 106.
[0065] Here, the flow of processing performed by the computing device 10 will be described with reference to Fig. 9. Fig. 9 is a flowchart showing the flow of processing performed by the computing device 10 according to the first embodiment.
[0066] First, the calculation device 10 acquires initial parameters (step S10). The initial parameters are information for calculating the shape of the mirror, such as information indicating the installation position and attitude of the camera CM, the size uv of the imaging surface SS, the size uv of the imaging target area, the calculation resolution d, the virtual mirror distance L, and the like.
[0067] Next, the calculation device 10 selects pixel coordinates pt (start point) to be used in the first calculation (step S11). The calculation device 10 can select any coordinate point on the imaging surface SS as the pixel coordinates pt (start point) to be used in the first calculation. The calculation device 10 determines the surface direction of the first surface based on the selected start point (step S12). The calculation device 10 determines the surface direction of the local estimated mirror surface MRA (first surface) at the pixel corresponding point Mpt, which is determined based on the pixel coordinates pt (start point) and the virtual mirror distance L, so that when light is irradiated from the camera CM at the pixel corresponding point Mpt, the reflected light that is specularly reflected at the pixel corresponding point Mpt reaches the pixel corresponding position PT.
[0068] Next, the calculation device 10 selects a point (neighborhood point) in the vicinity of the pixel coordinates used in the previous calculation (step S13). The calculation device 10 determines the position of the pixel corresponding point M corresponding to the second surface based on the selected neighboring point (step S14). The calculation device 10 assumes that a pixel corresponding point Mpt# corresponding to the neighboring point exists on the surface of the sphere SP that is in contact with the surface of the pixel corresponding point Mpt based on the surface direction of the pixel corresponding point Mpt determined by the previous calculation. The calculation device 10 selects, from among the points on the surface of the sphere SP, a point at which reflected light that is specularly reflected at the pixel corresponding point Mpt# reaches the pixel corresponding position PT# when light is irradiated from the camera CM, as the pixel corresponding point Mpt.
[0069] Next, the calculation device 10 judges whether or not the position of the pixel corresponding point corresponding to the pixel coordinates and the surface direction at the pixel corresponding point have been determined for all pixel coordinates used in the calculation (step S15). All pixel coordinates used in the calculation are determined based on, for example, the calculation resolution d.
[0070] In step S15, when the positions of pixel corresponding points corresponding to the pixel coordinates and the surface directions at the pixel corresponding points are determined for all pixel coordinates used in the calculation, the calculation device 10 determines the shape of the mirror MR (step S16). Based on the positions of the pixel corresponding points Mpt and the surface directions of the pixel corresponding points Mpt determined by the calculation, the calculation device 10 interpolates between one pixel corresponding point and another pixel corresponding point using an approximation surface, for example, a cubic spline surface.
[0071] On the other hand, in step S15, if the position of the pixel corresponding point has not yet been determined among the pixel coordinates used in the calculation, the calculation device 10 returns to step S13 and executes a process for determining the position of the pixel corresponding point.
[0072] The shape of the mirror MR is derived by the above-mentioned method. A method of actually creating the mirror MR based on the derived shape can be, for example, to output a mold shape using a 3D printer, and to create a desired mirror shape using a processing technique for transparent resin plate material such as heat pressing or vacuum forming using the output mold shape. By using such a processing technique for transparent resin plate material, it becomes easier to prototype and manufacture a relatively large mirror MR or a curved mirror MR (curved mirror). The mirror MR can be manufactured by applying vapor deposition plating or mirror coating to a part of the outer surface of the transparent mirror shape created in this way, for example, the back surface.
[0073] In addition, in the process of molding such a mirror MR, the shape of the mirror MR is smoothed. For this reason, a low-precision 3D printer may be used as a means for outputting the mold shape. In addition, there is no need to perform excessive smoothing at the time when the shape is designed by the calculation device 10.
[0074] As described above, the calculation device 10 of the first embodiment is a calculation device that derives the shape of the mirror MR. The mirror MR is used in the imaging system 1 that images the imaging target area SA via the mirror MR. The calculation device 10 includes a first surface determination unit 102, a second surface determination unit 103, and a mirror shape determination unit 104.
[0075] The first surface determination unit 102 determines the surface direction of the first surface. The first surface determination unit 102 determines an arbitrary coordinate on the imaging surface of the camera CM as pixel coordinate pt (first pixel coordinate). The line segment connecting the installation position of the camera CM and the pixel coordinate pt (first pixel coordinate) is determined as the optical axis OA (first line segment). The distance from the installation position of the camera CM to the installation position of the mirror MR is determined as the virtual mirror distance L. The point on the optical axis OA (first line segment) that is at the virtual mirror distance L from the installation position of the camera CM is determined as the pixel corresponding point Mpt (first pixel corresponding point) on the mirror MR. The position corresponding to the pixel coordinate pt (first pixel coordinate) in the imaging target area SA is determined as the pixel corresponding position PT (first pixel corresponding position). The first surface determination unit 102 determines the surface direction of the local estimated mirror surface MRA (first surface) at the pixel corresponding point Mpt (first pixel corresponding point) so that, when light is irradiated along the optical axis OA (first line segment) from the installation position of the camera CM, the reflected light that is specularly reflected at the pixel corresponding point Mpt (first pixel corresponding point) reaches the pixel corresponding position PT (first pixel corresponding position).
[0076] The second surface determination unit 103 determines the surface direction of the second surface. The first surface determination unit 102 determines a point in the vicinity of the pixel coordinate pt (first pixel coordinate) on the imaging surface SS as the pixel coordinate pt# (second pixel coordinate). The line segment connecting the installation position of the camera CM and the pixel coordinate pt# (second pixel coordinate) is determined as the optical axis OA# (second line segment). The point on the surface (spherical surface) of the sphere that is in contact with the local estimated mirror surface at the pixel corresponding point Mpt (first pixel corresponding point) is determined as the pixel corresponding point Mpt# (second pixel corresponding point) on the mirror MR. The position corresponding to the pixel coordinate pt# in the imaging target area SA is determined as the pixel corresponding position PT# (second pixel corresponding position). The second surface determination unit 103 determines the position of the pixel corresponding point Mpt# (second pixel corresponding point) so that light reflected specularly from the pixel corresponding point Mpt# (second pixel corresponding point) reaches the pixel corresponding position PT# (second pixel corresponding position) when light is irradiated from the installation position of the camera CM along the optical axis OA# (second line segment). The mirror shape determination unit 104 determines the shape of the mirror MR based on the position coordinates of the pixel corresponding point Mpt (first pixel corresponding point) and the pixel corresponding point Mpt# (second pixel corresponding point).
[0077] As a result, in the computing device 10 of the first embodiment, the shape of the mirror MR can be determined so that the reflected light reflected from the installation position of the camera CM at the pixel corresponding point Mpt of the mirror MR reaches the pixel corresponding position PT of the imaging target area SA. In other words, the reflected light that reaches the pixel corresponding point Mpt of the mirror MR from the pixel corresponding position PT of the imaging target area SA and is reflected at the pixel corresponding point Mpt can be received by the pixel at the pixel coordinate pt of the camera CM. Therefore, by using the mirror MR whose shape is determined in this way, the imaging target area can be appropriately imaged. In other words, it is possible to appropriately image the imaging target area according to the respective positional relationships between the imaging target area, the camera, and the mirror.
[0078] Furthermore, by selecting a pixel coordinate pt as the starting point and determining the position of the pixel corresponding point Mpt corresponding to the selected pixel coordinate pt based on the optical axis OA and the virtual mirror distance L, it is possible to easily grasp the approximate position of the entire shape of the mirror MR at an early stage of calculation.
[0079] In addition, by setting the pixel corresponding point Mpt# corresponding to the second surface to be a point on the surface of the sphere SP that is in contact with the pixel corresponding point Mpt on the first surface determined by the previous calculation, it is possible to select, from among multiple candidates that can become the pixel corresponding point Mpt#, a pixel corresponding point Mpt# that is continuous with the pixel corresponding point Mpt derived previously and has a reflecting surface that irradiates reflected light onto a specific reflection target. In other words, it is possible to appropriately capture an image of the imaging target area and to make the mirror MR have a smooth shape.
[0080] Furthermore, in the calculation device 10 of the first embodiment, the second surface determination unit 103 determines the position of pixel corresponding point Mpt## corresponding to pixel coordinates pt## different from the pixel coordinates pt# used in the previous calculation, based on the results of the calculation performed previously by the second surface determination unit 103.
[0081] The second surface determination unit 103 determines the coordinates near the pixel coordinate pt# (second pixel coordinate) on the imaging surface SS of the camera CM as pixel coordinate pt## (third pixel coordinate). The line segment connecting the installation position of the camera CM and the pixel coordinate pt## (third pixel coordinate) is determined as the optical axis OA## (third line segment). At the pixel corresponding point Mpt# (second pixel corresponding point), a point on the spherical surface of the sphere that is in contact with the local estimated mirror surface at the pixel corresponding point Mpt# (second pixel corresponding point) is determined as the pixel corresponding point Mpt## (third pixel corresponding point) on the mirror MR. The coordinates corresponding to the pixel coordinate pt## (third pixel coordinate) in the imaging target area SA are determined as the pixel corresponding position PT### (third pixel corresponding position). The second surface determination unit 103 determines the position of pixel corresponding point Mpt## (third pixel corresponding point) so that when light is irradiated along the optical axis OA## (third line segment) from the installation position of the camera CM, the reflected light that is specularly reflected at pixel corresponding point Mpt## (third pixel corresponding point) reaches pixel corresponding position PT### (third pixel corresponding position).
[0082] As a result, in the calculation device 10 of the first embodiment, the position of another pixel corresponding point Mpt## on the mirror MR can be determined using the previous calculation result. Then, by repeatedly performing such calculations using the previous calculation result, it becomes possible to determine the positions of various pixel corresponding points Mpt## on the mirror MR. Therefore, the shape of the entire mirror MR can be calculated by a simple process of repeatedly executing the process performed by the second surface determination unit 103.
[0083] Furthermore, in the calculation device 10 of the first embodiment, the mirror shape determination unit 104 uses an approximation surface to interpolate between the pixel corresponding position PT (first pixel corresponding position) and the pixel corresponding position PT# (second pixel corresponding position) based on the position coordinates of the pixel corresponding position PT (first pixel corresponding position) and the pixel corresponding position PT# (second pixel corresponding position). This allows the calculation device 10 of the first embodiment to determine the shape of the mirror MR so that the pixel corresponding position PT (first pixel corresponding position) and the pixel corresponding position PT# (second pixel corresponding position) are smoothly connected.
[0084] Furthermore, in the calculation device 10 of the first embodiment, the mirror shape determination unit 104 determines whether or not to interpolate between the pixel corresponding position PT (first pixel corresponding position) and the pixel corresponding position PT# (second pixel corresponding position) using an approximated curved surface, depending on the distance from the pixel corresponding position PT (first pixel corresponding position) to the pixel corresponding position PT# (second pixel corresponding position). As a result, in the calculation device 10 of the first embodiment, when the pixel corresponding position PT (first pixel corresponding position) and the pixel corresponding position PT# (second pixel corresponding position) are closely continuous with each other, and therefore the interpolation using the approximated curved surface is not necessary, it can be omitted.
[0085] Second Embodiment Here, a second embodiment will be described. This embodiment relates to an imaging system 1 that processes an image of an imaging target area SA captured by using a mirror MR having a shape determined in the first embodiment.
[0086] (Configuration of imaging system 1) The imaging system 1 will be described with reference to Fig. 10. Fig. 10 is a block diagram showing an example of the configuration of the imaging system 1 according to the second embodiment. As shown in Fig. 10, the imaging system 1 includes, for example, a calculation device 10 and an image processing device 20.
[0087] The image processing device 20 is a computer that performs image processing of an image captured through a mirror MR whose shape is determined by the calculation device 10. As the image processing device 20, for example, a server device, a cloud, a PC (personal computer), etc. can be applied.
[0088] The acquisition unit 201 acquires image information of an image of the imaging target area SA captured via the mirror MR.
[0089] The image capture control unit 202 controls image capture by the camera CM. For example, the image capture control unit 202 specifies image capture conditions for the camera CM, such as focal length, ISO sensitivity, F value, shutter speed, and the like, and instructs the camera CM to capture an image.
[0090] The image synthesis unit 203 synthesizes images. When a plurality of images are captured according to the control of the imaging control unit 202, the image synthesis unit 203 generates one image (synthetic image) by synthesizing the plurality of images. For example, the image synthesis unit 203 generates a synthetic image to handle a case (a case corresponding to a locally occurring difference in optical path length) described later. A specific method for handling a case corresponding to a locally occurring difference in optical path length will be described later.
[0091] The image correction unit 204 corrects the image. The image correction unit 204 corrects the captured image in accordance with the control of the imaging control unit 202. For example, the image correction unit 204 corrects the image to accommodate a case (a case corresponding to local resolution control) described later. A specific method for accommodating a case corresponding to local resolution control will be described later.
[0092] The optical path length lookup table storage unit 205 stores an optical path length lookup table. The optical path length lookup table is a lookup table that indicates the optical path length of each pixel on the imaging surface SS. The optical path length is a distance corresponding to the optical path of light from the pixel corresponding position PT to the camera CM via the mirror MR. The optical path length lookup table is used to handle the following cases (cases corresponding to locally occurring differences in optical path length):
[0093] The coordinate distribution information storage unit 206 stores coordinate distribution information. The coordinate distribution information is information about the distribution of coordinate points on the imaging surface SS used in the calculation when calculating the shape of the mirror MR. The coordinate distribution information is used to handle the following cases (cases corresponding to control of local resolution).
[0094] The mirror shape information storage unit 106 stores information indicating the shape of the mirror. The calculation information storage unit 105 and the mirror shape information storage unit 106 are configured by a storage medium such as a HDD, a flash memory, an EEPROM, a RAM, a ROM, or a combination of these.
[0095] Here, the case where image processing is performed in this embodiment will be described below. - Cases dealing with locally occurring differences in optical path length - Cases where local resolution control is supported
[0096] (For cases where localized differences in optical path length occur) Fig. 11 (Fig. 11A and Fig. 11B) are diagrams for explaining the processing performed by the image processing device 20 of the second embodiment. Using Fig. 11, the processing corresponding to the case corresponding to the locally occurring difference in the optical path length will be explained.
[0097] FIG. 11A shows a schematic diagram of a plurality of optical paths R (optical paths R11, R12, R13, and R14). An optical path R11 is an optical path that reaches the camera CM via a pixel corresponding point Mpt11. A pixel corresponding position PT11 is a corresponding point on the mirror MR that corresponds to pixel coordinates pt11 (u11, v11) on the imaging surface SS. The optical path R12 is an optical path that reaches the camera CM via the pixel corresponding point Mpt12. The pixel corresponding position PT12 is a corresponding point on the mirror MR that corresponds to the pixel coordinates pt12 (u12, v12) on the imaging surface SS. An optical path R13 is an optical path that reaches the camera CM via a pixel corresponding point Mpt13. The pixel corresponding position PT13 is a corresponding point on the mirror MR that corresponds to pixel coordinates pt13 (u13, v13) on the imaging surface SS. An optical path R14 is an optical path that reaches the camera CM via a pixel corresponding point Mpt14. A pixel corresponding position PT11 is a corresponding point on the mirror MR that corresponds to pixel coordinates pt14 (u14, v14) on the imaging surface SS.
[0098] As shown in FIG. 11A, the length of the optical path R varies depending on the pixel coordinates. When imaging is performed using a mirror MR whose shape is determined by the calculation device 10, extreme differences in optical path length may occur locally at pixel points on the imaging surface SS. For example, lenses mounted on general cameras are often designed to focus on a plane perpendicular to the optical axis. When imaging is performed using such a camera via the mirror MR, extreme differences in optical path length may occur locally at pixel points on the imaging surface SS depending on the shape of the mirror MR, and the difference in optical path length at each pixel point may cause localized focus loss.
[0099] In contrast, the image processing device 20 of this embodiment captures a plurality of images with different focal lengths and performs image processing to combine the captured plurality of images, thereby generating an image that is locally in focus.
[0100] For example, the image processing device 20 calculates the optical path length at each pixel coordinate on the imaging surface SS in advance based on the shape of the mirror MR, and stores a lookup that associates the pixel coordinate with the optical path length in the optical path length lookup table storage unit 205.
[0101] 11B shows an example of an optical path length lookup table stored in the optical path length lookup table storage unit 205. As shown in the example of this figure, the optical path length lookup table is a lookup table in which, for example, pixel coordinates are associated with the optical path length of the pixel.
[0102] The imaging control unit 202 controls the camera CM so that the imaging target area SA is imaged at different focal lengths. The optical path length lookup table storage unit 205 acquires, for example, the optical path length of each pixel stored in the optical path length lookup table storage unit 205. The optical path length lookup table storage unit 205 classifies the acquired pixels into a plurality of groups according to the optical path length, and determines a focal length at which the image is in focus within the range of the optical path length of each of the classified groups. The imaging control unit 202 determines a focal length at which the image is in focus within the range of the optical path length of each of the classified groups, using a correspondence table showing the correspondence between the optical path length and the focal length. The imaging control unit 202 controls the camera CM so that an image is captured at each of the determined focal lengths.
[0103] The image synthesis unit 203 generates one image by synthesizing multiple images with different focal lengths captured under the control of the imaging control unit 202. The image synthesis unit 203 extracts in-focus points from each of the multiple images and generates a synthesized image by connecting the extracted points.
[0104] (For cases where local resolution control is supported) Fig. 12 is a diagram for explaining the process performed by the image processing device 20 of the second embodiment. The process corresponding to the case corresponding to the local resolution control will be explained with reference to Fig. 12.
[0105] An image with locally different resolution is shown diagrammatically in Fig. 12. In this example, an image with a high resolution region exists on the left side and a low resolution region exists on the right side.
[0106] When the calculation device 10 calculates the shape of the mirror MR, a pixel corresponding position PT that corresponds to a pixel coordinate pt on the imaging surface SS used in the calculation is specified. In this case, by setting the UV distribution, which is the position coordinate of the pixel corresponding position PT in the imaging target area SA, to be non-uniform, it is possible to create a local resolution difference in the imaging target area SA captured in the image.
[0107] In the imaging target area SA, there may be important areas and unimportant areas. For example, when capturing an image of a display shelf installed in a store as the imaging target area SA, the area on the display shelf where the products are lined up is an important area. The area where the products are not lined up is an unimportant area.
[0108] In such a case, if the important area can be imaged with high resolution, it is possible to obtain an image in which the important area is imaged in more detail. For example, when an important area is specified in the imaging target area SA, the shape of the mirror MR is determined so that the important area is imaged with high resolution and the unimportant area is imaged with low resolution. By imaging the imaging target area SA through such a mirror MR, it is possible to image the important area in the imaging target area SA with high resolution.
[0109] When an image having such locally different resolutions is captured, the image correction unit 204 corrects the image so that the resolution becomes uniform, with the corrected image being an image having a higher resolution than the captured image.
[0110] For example, the image processing device 20 stores information indicating the distribution of pixel corresponding positions PT in the imaging target area SA, which was used in the calculation for determining the shape of the mirror MR, in the mirror shape information storage unit 106. The imaging control unit 202 controls the camera CM so that the imaging target area SA is imaged. The image correction unit 204 corrects the image captured under the control of the imaging control unit 202 by inversely converting the image based on the distribution stored in the mirror shape information storage unit 106, so that the distortion, i.e., the locally different resolution, becomes a uniform resolution.
[0111] As described above, the image processing device 20 in the second embodiment includes the optical path length lookup table storage unit 205, the imaging control unit 202, and the image synthesis unit 203. The optical path length lookup table storage unit 205 stores an optical path length lookup table. The optical path length lookup table is a lookup table indicating an optical path length for each coordinate on the imaging surface SS of the camera CM, which is specified based on the shape of the mirror MR determined by the calculation device 10. The imaging control unit 202 controls the camera CM so that the imaging target area SA is imaged at different focal lengths based on the focal length corresponding to the optical path length stored in the optical path length lookup table. The image synthesis unit 203 synthesizes a plurality of images captured by the camera CM according to the control of the imaging control unit 202 based on the optical path length stored in the optical path length lookup table. As a result, the image processing device 20 of the second embodiment can generate a composite image in focus in all areas by synthesizing in-focus areas, even if there is a large difference in optical path length between pixels in an image and it is difficult to capture an image in focus in all pixels.
[0112] Moreover, the image processing device 20 in the second embodiment includes a coordinate distribution information storage unit 206, an imaging control unit 202, and an image correction unit 204. The coordinate distribution information storage unit 206 stores coordinate distribution information. The coordinate distribution is information indicating the distribution of each pixel corresponding position PT in the imaging target area SA, which is specified based on the shape of the mirror MR determined by the calculation device 10. The imaging control unit 202 controls the camera CM so that the imaging target area SA is imaged. The image correction unit 204 corrects the image captured by the camera CM according to the control of the imaging control unit 202 based on the distribution information. Thereby, the image processing device 20 according to the second embodiment can capture an important area in the imaging target area SA with high resolution, and can correct distortion due to differences in resolution in the captured image. Therefore, it is possible to grasp details of the important area, and to generate an image of the imaging target area SA without distortion.
[0113] (Third embodiment) Here, a third embodiment will be described. This embodiment relates to an imaging system 100 that captures an image of an imaging target area SA using a mirror MR having a shape determined in the first embodiment.
[0114] (Configuration of imaging system 100) The imaging system 100 will be described with reference to Fig. 13. Fig. 13 is a diagram showing an example of the configuration of the imaging system 100 according to the third embodiment. As shown in Fig. 13, the imaging system 100 includes, for example, a mirror MR, a camera CM, and an imaging robot RT. The mirror MR is a mirror having a shape calculated by a calculation device 10. The camera CM is an imaging device installed so as to be able to image the imaging target area SA via the mirror MR.
[0115] The imaging robot RT includes a moving means. The moving means may be realized using any technology such as a motor. The imaging robot RT is, for example, a self-propelled robot. The imaging robot RT is equipped with a mirror MR and a camera CM, and is configured to be movable with these mounted.
[0116] The imaging robot RT also has a function for controlling imaging by the camera CM, for example, a function equivalent to the image processing device 20 or the imaging control unit 202.
[0117] In the imaging robot RT, for example, the camera CM is installed close to the robot body RTA. Also, a mirror MR, which is relatively light compared to the camera CM and does not require a power source or control, is installed on the upper part RTB of the robot. This makes it possible to lower the center of gravity of the imaging robot RT and improve stability and safety during running.
[0118] For example, in a space in which a plurality of imaging target areas SA are arranged along a passage RD, an imaging robot RT is equipped with a mirror MR and a camera CM and moves along the passage RD to sequentially capture images of the plurality of imaging target areas SA.
[0119] As described above, the imaging system 100 according to the third embodiment includes a mirror MR, a camera CM, and an imaging robot RT (control device). The mirror MR is a mirror whose shape is determined by the calculation device 10. The camera CM is an imaging device installed so as to be able to image the imaging target area SA via the mirror MR. The imaging robot RT controls imaging by the camera CM. In this way, the imaging system 100 according to the third embodiment can image the imaging target area SA located at a specific position relative to the position where the imaging robot RT is present. For example, the imaging target area SA can be imaged by placing the imaging robot RT in a space that has a specific positional relationship with the imaging target area SA.
[0120] Moreover, the imaging system 100 according to the third embodiment includes a mirror MR, a camera CM, and an imaging robot RT. The mirror MR is a mirror whose shape is determined by the calculation device 10. The camera CM is an imaging device installed so as to be able to image the imaging target area SA through the mirror MR. The imaging robot RT includes a moving means, and in a space in which a plurality of imaging target areas SA are arranged along an aisle RD, the imaging robot RT is equipped with the mirror MR and the camera CM and images the imaging target area SA while moving along the aisle RD. As a result, the imaging system 100 according to the third embodiment can sequentially image the plurality of imaging target areas SA arranged along the aisle RD while moving along the aisle RD.
[0121] (Modification 1 of the third embodiment) Here, a first modified example of the third embodiment will be described. In this modified example, the mirror MR and the camera CM are installed by utilizing an existing shelf or ceiling.
[0122] Fig. 14 is a diagram showing a configuration example of an imaging system 100 according to a first modified example of the third embodiment. As shown in Fig. 14, in the imaging system 100, for example, a camera CM is installed on the top of a shelf TN. The mirror MR is installed on the top front of the shelf TN by installing a boom-shaped structure (support mechanism MV) that supports the mirror MR on the top of the shelf TN. The mirror MR is also suspended and fixed to a ceiling CE by a hanging bracket or the like.
[0123] Thus, in the imaging system 100 according to the first modified example of the third embodiment, the camera CM, the support mechanism MV, and the mirror MR are arranged in a positional relationship that allows imaging of the imaging target area SA, and are installed above the shelf TN. This makes it possible to image the imaging target area SA below the shelf TN. Therefore, even in stores with various layouts, it is possible to image the state of products lined up on the display shelf by utilizing the area above the product display shelf.
[0124] (Modification 2 of the third embodiment) Here, a second modified example of the third embodiment will be described. In this modified example, a mirror MR and a camera CM are installed in a space in which shelves are arranged facing each other.
[0125] Fig. 15 is a diagram showing a configuration example of an imaging system 100 according to Modification 2 of the third embodiment. As shown in Fig. 15, in the imaging system 100, for example, a camera CM is installed on the top of a shelf TNA. A mirror MR is installed on the top of a shelf TNB installed facing the shelf TNA that is the imaging target area SA. The mirror MR may be installed on a wall that is installed facing the TNA. If there is a fixture or a wall in a position facing the shelf TNA that is the imaging target area SA, it is possible to omit the installation of a support mechanism MV for supporting the mirror MR by installing the mirror MR on the fixture or wall.
[0126] Although the imaging system 1 according to the embodiment has been described above, the specific configuration is not limited to this embodiment, and includes designs within the scope of the gist of the present invention.
[0127] In the above-mentioned imaging system 1 (100), imaging is performed with a mirror MR interposed between the camera CM and the imaging target area SA that is the imaging target. As a result, during imaging, in addition to the possibility that the imaging target area SA, such as the camera CM and the display shelves of the products that are the imaging target, may vibrate, the mirror MR may also vibrate. When these vibrate each other during imaging, blurring may be amplified in the captured image. As a countermeasure against this, an image with less blurring can be obtained by using a shooting blur correction technique such as multi-stage shooting synthesis with a short shutter speed. For example, a short shutter speed is set to capture multiple images continuously, and a composite image is generated by synthesizing areas that are not blurred in the captured multiple images. By such image processing, an image with less blurring can be obtained.
[0128] The imaging system 1 and the computing device 10 in the above-mentioned embodiment may be realized in whole or in part by a computer. In that case, a program for realizing the function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above-mentioned program may be a program for realizing a part of the above-mentioned function, or may be a program that can realize the above-mentioned function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA.
[0129] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Explanation of symbols]
[0130] 1, 100...imaging system 10...Calculating device 101…Acquisition Department 102…First side determination section 103…Second Side Decision Section 104...Mirror shape determination unit 105…Calculation information storage unit 106...Mirror shape information storage unit 20...Image processing device 201…Acquisition Department 202...imaging control unit 203...Image synthesis unit 204...Image correction unit 205...optical path length lookup table storage unit 206...Coordinate distribution information storage unit
Claims
1. 1. A calculation device for deriving a shape of a mirror used in a system for imaging a target area through a mirror, the calculation device comprising: Any coordinates on the imaging surface of the camera are defined as first pixel coordinates, a line segment connecting the installation position of the camera and the first pixel coordinate is defined as a first line segment; The distance from the installation position of the camera to the installation position of the mirror is defined as an assumed mirror distance, a point on the first line segment that is at the assumed mirror distance from the installation position of the camera is defined as a first pixel corresponding point on the mirror; A position in the imaging target area that corresponds to the first pixel coordinates is defined as a first pixel corresponding position; a first surface determination unit that determines a surface direction of a local estimated mirror surface at the first pixel corresponding point such that, when light is irradiated along the first line segment from an installation position of the camera, reflected light that is specularly reflected at the first pixel corresponding point reaches the first pixel corresponding position; A coordinate that is in the vicinity of the first pixel coordinate on the imaging surface of the camera is set as a second pixel coordinate, a line segment connecting the installation position of the camera and the second pixel coordinates is defined as a second line segment; A point on a spherical surface of a sphere tangent to the local estimated mirror surface at the first pixel corresponding point is defined as a second pixel corresponding point on the mirror; a position in the imaging target area that corresponds to the second pixel coordinates is defined as a second pixel corresponding position; a second surface determination unit that determines a position of the second pixel corresponding point such that, when light is irradiated from an installation position of the camera along the second line segment, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; a mirror shape determination unit that determines a shape of the mirror based on position coordinates of the first pixel corresponding point and the second pixel corresponding point; A computing device comprising:
2. The second surface determination unit is coordinates in the vicinity of the second pixel coordinates on the imaging surface of the camera are set as third pixel coordinates; a line segment connecting the installation position of the camera and the third pixel coordinate is defined as a third line segment; A point on a spherical surface of a sphere tangent to a local estimated mirror surface at the second pixel corresponding point is determined as a third pixel corresponding point on the mirror; A coordinate corresponding to the third pixel coordinate in the imaging target area is defined as a third pixel corresponding position; determining a position of the third pixel corresponding point such that, when light is irradiated from an installation position of the camera along the third line segment, reflected light that is specularly reflected at the third pixel corresponding point reaches the third pixel corresponding position; The computing device of claim 1 .
3. the mirror shape determination unit interpolates between the first pixel corresponding points and the second pixel corresponding points using an approximation surface based on position coordinates of the first pixel corresponding points and the second pixel corresponding points; The computing device of claim 1 .
4. the mirror shape determination unit determines whether or not to perform interpolation between the first pixel corresponding point and the second pixel corresponding point using an approximation surface, depending on a distance from the first pixel corresponding point to the second pixel corresponding point. The computing device of claim 1 .
5. a storage unit that stores a lookup table indicating an optical path length for each coordinate on the imaging plane of the camera, the optical path length being specified based on the shape of the mirror determined by the calculation device according to claim 1; an imaging control unit that controls the camera so that the imaging target area is imaged at different focal lengths based on a focal length corresponding to the optical path length stored in the lookup table; an image synthesis unit that synthesizes a plurality of images captured by the camera in accordance with the control of the imaging control unit based on the optical path length stored in the lookup table; An image processing device is provided.
6. a storage unit that stores distribution information regarding a distribution of pixel corresponding positions in the imaging target area, the distribution information being used in the calculation of the mirror by the calculation device according to claim 1; an imaging control unit that controls the camera so that the imaging target area is imaged; an image correction unit that corrects the image captured by the camera based on the distribution information in accordance with control of the imaging control unit; An image processing device comprising:
7. The mirror, the shape of which is determined by the computing device of claim 1; the camera arranged so as to be able to capture an image of the imaging target area via the mirror; A control device for controlling the imaging by the camera; An imaging system comprising:
8. The imaging robot further includes a moving means. the imaging robot is equipped with the mirror and the camera in a space in which a plurality of the imaging target areas are arranged along a passage, and images the imaging target areas while moving along the passage; The imaging system according to claim 7 .
9. A calculation method for deriving a shape of a mirror used in a system for imaging a target area through a mirror, the method being performed by a calculation device, the method comprising: Any coordinates on the imaging surface of the camera are defined as first pixel coordinates, a line segment connecting the installation position of the camera and the first pixel coordinate is defined as a first line segment; The distance from the installation position of the camera to the installation position of the mirror is defined as an assumed mirror distance, a point on the first line segment that is at the assumed mirror distance from the installation position of the camera is defined as a first pixel corresponding point on the mirror; A position in the imaging target area that corresponds to the first pixel coordinates is defined as a first pixel corresponding position; a first surface determination unit determines a surface direction of a local estimated mirror surface at the first pixel corresponding point such that, when light is irradiated from an installation position of the camera along the first line segment, reflected light that is specularly reflected at the first pixel corresponding point reaches the first pixel corresponding position; A coordinate that is in the vicinity of the first pixel coordinate on the imaging surface of the camera is set as a second pixel coordinate, a line segment connecting the installation position of the camera and the second pixel coordinates is defined as a second line segment; A point on a spherical surface of a sphere tangent to the local estimated mirror surface at the first pixel corresponding point is defined as a second pixel corresponding point on the mirror; a position in the imaging target area that corresponds to the second pixel coordinates is defined as a second pixel corresponding position; a second surface determination unit determines a position of the second pixel corresponding point such that, when light is irradiated from an installation position of the camera along the second line segment, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; a mirror shape determination unit that determines a shape of the mirror based on position coordinates of the first pixel corresponding point and the second pixel corresponding point; Calculation method.
10. A computer, which is a calculation device that derives a shape of a mirror used in a system that captures an image of an imaging target area through a mirror, Any coordinates on the imaging surface of the camera are defined as first pixel coordinates, a line segment connecting the installation position of the camera and the first pixel coordinate is defined as a first line segment; The distance from the installation position of the camera to the installation position of the mirror is defined as an assumed mirror distance, a point on the first line segment that is at the assumed mirror distance from the installation position of the camera is defined as a first pixel corresponding point on the mirror; A position in the imaging target area that corresponds to the first pixel coordinates is defined as a first pixel corresponding position; determining a surface direction of a local estimated mirror surface at the first pixel corresponding point such that, when light is irradiated along the first line segment from an installation position of the camera, reflected light that is specularly reflected at the first pixel corresponding point reaches the first pixel corresponding position; A coordinate that is in the vicinity of the first pixel coordinate on the imaging surface of the camera is set as a second pixel coordinate, a line segment connecting the installation position of the camera and the second pixel coordinates is defined as a second line segment; A point on a spherical surface of a sphere tangent to the local estimated mirror surface at the first pixel corresponding point is defined as a second pixel corresponding point on the mirror; a position in the imaging target area that corresponds to the second pixel coordinates is defined as a second pixel corresponding position; determining a position of the second pixel corresponding point such that, when light is irradiated from an installation position of the camera along the second line segment, reflected light that is specularly reflected at the second pixel corresponding point reaches the second pixel corresponding position; determining a shape of the mirror based on position coordinates of the first pixel corresponding point and the second pixel corresponding point; program.
Citation Information
Patent Citations
Reconfigurable image sensor
JP2006129411A
