Marker, edge detector, and edge detection method

The marker and edge detection method address the challenge of accurately specifying boundaries in markers by employing regions with defined color change thresholds, improving edge detection precision.

JP2024144100APending Publication Date: 2024-10-11PANASONIC AUTOMOTIVE SYST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023223571
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2023-12-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing edge detection methods struggle to accurately specify the position of boundaries between multiple regions in a marker due to variations in color characteristics caused by chromatic aberration in camera optics.

Method used

A marker design with adjacent regions having specific thresholds for color characteristic changes, allowing accurate edge detection by distinguishing between regions using defined color change patterns, and an edge detection device/method that utilizes these thresholds to identify boundaries.

Benefits of technology

Enables precise specification of boundaries in markers, even when affected by chromatic aberration, enhancing accuracy in edge detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144100000001_ABST
    Figure 2024144100000001_ABST
Patent Text Reader

Abstract

To provide a marker capable of precisely identifying the position of the boundary of multiple regions a marker has.SOLUTION: A marker 100 is a marker that has N first areas (N is an integer equal to or greater than 3) lined up next to each other in a predetermined direction. At each of the (N-1) first boundaries between the N first areas, the amount of change in color characteristics depending on the position in the predetermined direction is equal to or greater than a first threshold value. In each of the N first areas, the change in color characteristics depending on the predetermined direction is less than or equal to a second threshold value, which is smaller than the first threshold value. In N first areas, the pattern of change in color characteristics depending on the position in the predetermined direction is common.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a marker, an edge detection device, and an edge detection method. [Background technology]

[0002] Patent document 1 discloses a method for calculating the actual dimensions of a subject by photographing the subject together with a marker consisting of a long strip of multiple rectangles of known length and identifying the rectangles of the marker in the obtained image. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2015-227787 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the technique of Patent Document 1, boundaries of a plurality of rectangular regions of known lengths are identified, and the actual dimensions of the subject are calculated by comparing the identified boundaries with the outer shape of the subject.

[0005] However, with the technique of Patent Document 1, it is difficult to accurately identify the positions of the boundaries between multiple regions in the marker.

[0006] In view of this, the present disclosure provides a marker or the like that allows the positions of the boundaries between multiple regions contained in the marker to be identified with high accuracy. [Means for solving the problem]

[0007] A marker according to one embodiment of the present disclosure is a marker having N first regions (N is an integer greater than or equal to 3) arranged adjacent to each other in a predetermined direction, and at each of (N-1) first boundaries between the N first regions, the amount of change in color characteristics depending on the position in the predetermined direction is greater than or equal to a first threshold, and at each of the N first regions, the amount of change in color characteristics depending on the position in the predetermined direction is less than or equal to a second threshold that is smaller than the first threshold, and the N first regions have a common pattern of change in color characteristics depending on the position in the predetermined direction.

[0008] Moreover, an edge detection device according to one embodiment of the present disclosure is an edge detection device that detects edges from an image captured by a camera using an image of the above-mentioned marker, and determines that there is an edge between two adjacent pixels in the image if the amount of change in color characteristics between the two pixels is equal to or greater than a first threshold, and determines that there is no edge between the two pixels if the amount of change is equal to or less than a second threshold.

[0009] Moreover, an edge detection method according to one embodiment of the present disclosure is an edge detection method that detects edges from an image of the above-mentioned marker captured by a camera using the image, and determines that there is an edge between two adjacent pixels in the image if the amount of change in color characteristics between the two pixels is equal to or greater than a first threshold, and determines that there is no edge between the two pixels if the amount of change is equal to or less than a second threshold.

[0010] In addition, these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a non-transitory recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a non-transitory recording medium. Effect of the Invention

[0011] The marker of the present disclosure can accurately identify the boundaries between the multiple regions of the marker. Furthermore, the edge detection device and edge detection method can accurately identify the boundaries between the multiple regions of the marker. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram illustrating an example of a schematic configuration of a measurement system according to the first embodiment. [Diagram 2] FIG. 2 is a diagram showing an example of a configuration of the marker according to the first embodiment. [Diagram 3] FIG. 3 is a block diagram illustrating an example of a configuration of the information processing device according to the first embodiment. As shown in FIG. [Figure 4] FIG. 4 is a block diagram illustrating an example of a functional configuration of the information processing device according to the first embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of an image in which the marker and the object according to the first embodiment are captured. [Figure 6] FIG. 6 is a diagram showing an example of an edge image according to the first embodiment. [Figure 7] FIG. 7 is a flowchart showing an example of the operation of the information processing device according to the first embodiment. [Figure 8] FIG. 8 is a diagram for explaining the problem with the marker of the comparative example. [Figure 9] FIG. 9 is a graph showing the amount of change in color characteristics depending on the position in a predetermined direction at both ends of the white area of ​​the marker of the comparative example. [Figure 10] FIG. 10 is a graph showing first derivative values ​​of luminance according to a predetermined direction in regions near a plurality of boundaries of the marker according to the first embodiment. [Figure 11] FIG. 11 is a diagram showing an example of a configuration of a marker according to the second embodiment. [Figure 12] FIG. 12 is a block diagram illustrating an example of a configuration of an information processing device according to the second embodiment. As shown in FIG. [Figure 13] FIG. 13 is a block diagram illustrating an example of a functional configuration of the information processing device according to the second embodiment. As illustrated in FIG. [Figure 14] FIG. 14 is a flowchart showing an example of the operation of the information processing device according to the second embodiment. [Figure 15] FIG. 15 is a diagram showing an example of a configuration of a marker according to the first modification of the second embodiment. [Figure 16] FIG. 16 is a block diagram showing an example of a configuration of an information processing device according to Modification 1 of Embodiment 2. As shown in FIG. [Figure 17] FIG. 17 is a block diagram illustrating an example of a functional configuration of an information processing device according to the first modification of the second embodiment. As shown in FIG. [Figure 18] FIG. 18 is a flowchart showing an example of the operation of the information processing device according to the first modification of the second embodiment. [Figure 19] FIG. 19 is a diagram showing an example of a configuration of a marker according to the second modification of the second embodiment. In FIG. [Figure 20] FIG. 20 is a diagram showing an example of a configuration of a marker according to the second modification of the second embodiment. [Figure 21] FIG. 21 is a diagram showing an example of a configuration of a marker according to the third modification of the second embodiment. In FIG. [Figure 22] FIG. 22 is a diagram showing an example of a configuration of a marker according to the third modification of the second embodiment. In FIG. [Figure 23] FIG. 23 is a diagram showing another example of the configuration of the marker according to the third modification of the second embodiment. In FIG. [Figure 24] FIG. 24 is a diagram showing another example of the configuration of the marker according to the third modification of the second embodiment. In FIG. [Diagram 25] FIG. 25 is a diagram showing an example of a configuration of a marker according to the fourth modification of the second embodiment. In FIG. [Figure 26] FIG. 26 is a diagram showing an example of a configuration of a marker according to the fourth modification of the second embodiment. In FIG. [Figure 27] FIG. 27 is a diagram showing another example of the configuration of the marker according to the fourth modification of the second embodiment. In FIG. [Figure 28] FIG. 28 is a diagram showing another example of the configuration of the marker according to the fourth modification of the second embodiment. In FIG. [Figure 29]FIG. 29 is a diagram showing an example of a configuration of a marker according to the fifth modification of the second embodiment. In FIG. [Diagram 30] FIG. 30 is a diagram showing an example of a configuration of a marker according to the fifth modification of the second embodiment. In FIG. [Diagram 31] FIG. 31 is a diagram showing another example of the configuration of the marker according to the fifth modification of the second embodiment. In FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] A marker according to a first aspect of the present disclosure is a marker having N first regions (N is an integer greater than or equal to 3) arranged adjacent to each other in a predetermined direction, wherein at each of (N-1) first boundaries between the N first regions, the amount of change in color characteristics according to position in the predetermined direction is greater than or equal to a first threshold, and at each of the N first regions, the amount of change in color characteristics according to position in the predetermined direction is less than or equal to a second threshold that is smaller than the first threshold, and the N first regions have a common pattern of change in color characteristics according to position in the predetermined direction.

[0014] According to this, in N first regions of the marker, the amount of change in color characteristics according to a predetermined direction is equal to or greater than a first threshold at (N-1) first boundaries between the N first regions, and the amount of change in color characteristics within one first region is equal to or less than a second threshold. As a result, by detecting the position where the amount of change in color characteristics is equal to or greater than the first threshold, it is possible to identify the (N-1) first boundaries. Furthermore, since the N first regions have a common pattern of change in color characteristics according to the position in the predetermined direction, it is possible to standardize the manner of change in color characteristics at (N-1) first boundaries between the N first regions. As a result, even if an image is obtained that is affected by chromatic aberration caused by the optical system of the camera when the marker is photographed with the camera, the manner of change in color characteristics in the image can be standardized, so that the positions of the (N-1) first boundaries in the marker can be accurately identified.

[0015] A marker according to a second aspect of the present disclosure is a marker according to the first aspect, wherein in each of the N first regions, the color characteristics gradually increase or decrease from one end to the other end in the specified direction.

[0016] For this reason, it is possible to make it difficult for the first boundary to be erroneously detected in each of the N first regions.

[0017] A marker according to a third aspect of the present disclosure is a marker according to the first or second aspect, wherein at each of the (N-1) first boundaries, a position where the color characteristic is maximum in one of two first regions adjacent to the first boundary is adjacent to a position where the color characteristic is minimum in the other first region.

[0018] In order to standardize the manner in which the color characteristics change in the (N-1) first boundaries, it is necessary to provide an area in each of the N first regions in which the color characteristics change below a second threshold value depending on the position in a predetermined direction. In this way, since the marker has an area in which the color characteristics change below a second threshold value depending on the position in a predetermined direction, it is possible to make it easier to identify the (N-1) first boundaries by maximizing the amount of change in the color characteristics in the (N-1) first boundaries. Therefore, it is possible to accurately identify the positions of the (N-1) first boundaries.

[0019] A marker according to a fourth aspect of the present disclosure is a marker according to any one of the first to third aspects, further comprising M (M is an integer equal to or greater than 3) second regions aligned in the predetermined direction, and a reference line, the reference line being located between the N first regions and the M second regions and being arranged so as to intersect with an optical axis of a camera, the marker being arranged at a position to be photographed by the camera, the N first regions being arranged on the predetermined direction side of a reference position where the reference line intersects with the optical axis, the M second regions being arranged on the opposite side of the marker from the predetermined direction side of the reference position, In each of the (M-1) second boundaries between the M second regions, the amount of change in the color characteristics depending on the position in the specified direction is greater than or equal to the first threshold, and in each of the M second regions, the amount of change in the color characteristics depending on the position in the specified direction is less than or equal to the second threshold, and the M second regions have a common pattern of change in the color characteristics depending on the position in the specified direction, and a first pattern of change in the color characteristics in each of the N first regions and a second pattern of change in the color characteristics in each of the M second regions in a direction away from the reference position are common to each other.

[0020] When a marker is photographed by a camera, the chromatic aberration caused by the optical system of the camera tends to be opposite on one side and the other side in the direction perpendicular to the optical axis of the optical system. Therefore, by arranging N first regions and M second regions on both sides of the optical axis of the camera, the state of change in color characteristics at (N-1) first boundaries and (M-1) second boundaries in the image obtained by photographing can be made common. As a result, even if an image affected by chromatic aberration caused by the optical system of the camera is obtained when the marker is photographed by the camera, the state of change in color characteristics in the image can be made common. Therefore, the positions of the (N-1) first boundaries and the (M-1) second boundaries in the marker can be accurately identified.

[0021] A marker according to a fifth aspect of the present disclosure is a marker according to the fourth aspect, further comprising a plurality of third regions separated by a plurality of circles having different diameters centered on the reference position, and each of the plurality of third regions includes one first region among the N first regions that corresponds to the third region, and one second region among the M second regions that corresponds to the third region.

[0022] A marker according to a sixth aspect of the present disclosure is a marker according to the fourth or fifth aspect, wherein the color characteristic is lightness, and in each of the (N-1) first boundaries and each of the (M-1) second boundaries, a position of minimum lightness and a position of maximum lightness are adjacent to each other in the direction away from the reference position.

[0023] The amount of change in color characteristics at the boundary formed by the position of minimum brightness and the position of maximum brightness adjacent to each other in the direction away from the reference position can be reduced to one peak, and the positions of (N-1) first boundaries and (M-1) second boundaries can be identified with higher accuracy.

[0024] A marker according to a seventh aspect of the present disclosure is the marker according to the first aspect, wherein the marker is used for camera calibration of a camera equipped in a vehicle.

[0025] A marker according to an eighth aspect of the present disclosure is a marker according to the seventh aspect, further comprising M (M is an integer greater than or equal to 3) second areas arranged in the specified direction, and a passing area for the vehicle to pass through between the N first areas and the M second areas.

[0026] A marker according to a ninth aspect of the present disclosure is a marker according to the seventh or eighth aspect, wherein the camera is a camera that photographs the front or rear of the vehicle, and the specified direction is along the left-right direction of the vehicle.

[0027] A marker according to a tenth aspect of the present disclosure is a marker according to the seventh or eighth aspect, wherein the camera is a camera that photographs the side of the vehicle, and the specified direction is along the fore-and-aft direction of the vehicle.

[0028] A marker according to an eleventh aspect of the present disclosure is the marker according to the ninth aspect, wherein the marker is arranged along a floor surface on which the vehicle is placed.

[0029] A marker according to a twelfth aspect of the present disclosure is the marker according to the ninth aspect, wherein the marker is arranged upright on a floor surface on which the vehicle is placed.

[0030] A marker according to a thirteenth aspect of the present disclosure is a marker according to the seventh or eighth aspect, wherein the camera is a camera that photographs the front or rear of the vehicle, the specified direction is along the fore-and-aft direction of the vehicle, and the marker is arranged upright on a floor surface on which the vehicle is placed.

[0031] An edge detection device according to a fourteenth aspect of the present disclosure is an edge detection device that detects edges from an image captured by a camera of a marker according to any one of the first to sixth aspects, and determines that there is an edge between two adjacent pixels in the image if the amount of change in color characteristics between the two pixels is greater than or equal to a first threshold, and determines that there is no edge between the two pixels if the amount of change is less than or equal to a second threshold.

[0032] This makes it possible to accurately identify the positions of the (N-1) first boundaries in the marker.

[0033] An edge detection method according to a fifteenth aspect of the present disclosure is an edge detection method that detects edges from an image of the above-mentioned marker captured by a camera, and if the amount of change in color characteristics between two adjacent pixels in the image is greater than or equal to a first threshold, it is determined that there is an edge between the two pixels, and if the amount of change is less than or equal to a second threshold, it is determined that there is no edge between the two pixels.

[0034] This makes it possible to accurately identify the positions of the (N-1) first boundaries in the marker.

[0035] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, component arrangement and connection forms, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present disclosure. Furthermore, among the components in the following embodiments, components that are not described in the independent claims are described as optional components.

[0036] In addition, each drawing is a schematic diagram and is not necessarily a precise illustration. In addition, in each drawing, the same components are denoted by the same reference numerals.

[0037] Hereinafter, the embodiment will be specifically described with reference to the drawings.

[0038] (Embodiment 1) [1-1. Configuration] FIG. 1 is a diagram illustrating an example of a schematic configuration of a measurement system according to the first embodiment.

[0039] The measurement system 1 is a system that measures the external dimensions of the object 10 by photographing the object 10 to be measured together with the marker 10 using a camera 200 and performing image processing on the image 50 obtained by the camera 200 using an information processing device 300. In this embodiment, the object 10 is an orange. The object 10 is not limited to an orange, and may be any object that has a shape. The measurement system 1 includes the marker 100, the camera 200, and the information processing device 300.

[0040] The marker 100 is placed within the shooting range of the camera 200 and is placed facing the camera 200. The marker 100 is placed so as to face the camera 200, specifically, so as to be perpendicular to the optical axis of the camera 200. The distance of the marker 100 to the camera 200 is approximately the same as the distance from the object 10, the dimension of which is to be measured, to the camera 200. The details of the configuration of the marker 100 will be described later with reference to FIG. 2.

[0041] The camera 200 captures an image of a shooting range including the marker 100, and generates an image 50 as a result of the shooting. As shown in FIG. 1, when an object 10 is placed in a shooting range including the marker 100, the camera 200 captures the marker 100 and the object 10, and generates an image 50 including the marker 100 and the object 10. The camera 200 includes an optical system (not shown) including a lens, and an image sensor (not shown) that converts light converged by the optical system into a digital signal. The image sensor may be a color image sensor in which each of a plurality of pixels includes sub-pixels that detect each of the RGB colors, or may be a monochrome image sensor. In other words, the camera 200 may be a color camera or a monochrome camera.

[0042] The information processing device 300 acquires the image 50 generated by the camera 200 from the camera 200, and performs a predetermined image processing on the image 50 to calculate the external dimensions of the object 10. Note that, regardless of the external shape of the object 10, if the information processing device 300 can identify a part of the external shape of the object 10, it can also calculate the dimensions of the external shape of the part.

[0043] FIG. 2 is a diagram showing an example of a configuration of the marker according to the first embodiment.

[0044] The marker 100 has six regions A11 to A16 arranged adjacent to each other in a predetermined direction (horizontal direction in this embodiment). The marker 100 forms a plane and has six regions A11 to A16 on the plane. For example, the marker 100 has a plurality of regions A11 to A16 arranged on the surface of a member (for example, a plate-shaped member) whose surface is flat. The number of regions in the marker 100 is not limited to six, but may be three or more (that is, N (N is an integer of three or more). The six regions A11 to A16 are an example of N first regions. The predetermined direction is the horizontal direction in this embodiment, but may be a vertical direction or another direction. Since the marker 100 is arranged facing the camera 200, the predetermined direction may be any direction that intersects with the optical axis of the camera 200 when the marker 100 is photographed by the camera 200.

[0045] The six regions A11-A16 have the same size in the predetermined direction. That is, the six regions A11-A16 have the same width in the predetermined direction. The width in the predetermined direction is a specified width. In other words, the width in the predetermined direction of the six regions A11-A16 is a width that is specified in advance for the marker 100, and is a known width. For example, the information processing device 300 may store dimensional information indicating the actual dimensions of the width in the predetermined direction of the six regions A11-A16 of the marker 100.

[0046] Each of the six regions A11 to A16 has a pattern of change in color characteristics according to the position in a predetermined direction. In this embodiment, the color characteristic is lightness. Note that the color characteristic may be at least one of lightness, hue, and saturation.

[0047] The six regions A11 to A16 have a common pattern of change in color characteristics according to positions in a predetermined direction, so the following will only describe region A11, and will omit descriptions of the other regions A12 to A16.

[0048] Region A11 has a pattern of change in color characteristics in which the brightness decreases the closer it is to the adjacent region A12 in the predetermined direction. In other words, region A11 has a pattern of change in color characteristics in which the brightness decreases the further it is in the predetermined direction. Furthermore, in region A11, the amount of change in brightness according to the position in the predetermined direction is equal to or less than a second threshold value that is smaller than the first threshold value. For example, in region A11, the brightness gradually decreases from one end to the other end in the predetermined direction. Furthermore, region A11 has the highest brightness at one end on the negative side of the predetermined direction and the lowest brightness at the other end on the positive side of the predetermined direction.

[0049] Next, the five boundaries Bo11 to Bo15 between the six regions A11 to A16 will be described. The five boundaries Bo11 to Bo15 are an example of the (N-1) first boundaries.

[0050] In each of the five boundaries Bo11 to Bo15 between the six regions A11 to A16, the amount of change in a specific image quality characteristic, which is color or brightness, according to the position in the predetermined direction is equal to or greater than a first threshold value. In each of the six regions A11 to A16, the brightness is highest at one end on the negative side of the predetermined direction, and the brightness is lowest at the other end on the positive side of the predetermined direction. Therefore, in each of the five boundaries Bo11 to Bo15, the position where the brightness is maximum in one of the two regions adjacent to each other at the boundary is adjacent to the position where the brightness is minimum in the other region. In other words, in the boundary Bo11, the position where the brightness is maximum in the region A12 is adjacent to the position where the brightness is minimum in the region A11. In addition, in the boundary Bo12, the position where the brightness is maximum in the region A13 is adjacent to the position where the brightness is minimum in the region A12. Also, at boundary Bo13, the position where the brightness is maximum in region A14 is adjacent to the position where the brightness is minimum in region A13. Also, at boundary Bo14, the position where the brightness is maximum in region A15 is adjacent to the position where the brightness is minimum in region A14. Also, at boundary Bo15, the position where the brightness is maximum in region A16 is adjacent to the position where the brightness is minimum in region A15.

[0051] Next, the configuration of the information processing device 300 according to the first embodiment will be described.

[0052] FIG. 3 is a block diagram illustrating an example of a configuration of the information processing device according to the first embodiment. As shown in FIG.

[0053] 3, the information processing device 300 includes, as a hardware configuration, a processor 301, a main memory 302, a storage 303, and a communication IF (Interface) 304. The information processing device 300 may further include an input IF (Interface) 305 and a display 306. The information processing device 300 is an example of an edge detection device.

[0054] The processor 301 is a processor that executes a program stored in the storage 303 or the like.

[0055] The main memory 302 is a volatile storage area used for temporarily storing data generated during processing by the processor 301, used as a work area used when the processor 301 executes a program, and used for temporarily storing data received by the communication IF 304.

[0056] The storage 303 is a non-volatile storage area that holds various data such as programs. The storage 303 stores various data including, for example, various data generated as a result of processing by the processor 301 and the image 50 received by the communication IF 304. The storage 303 may also store characteristic information indicating characteristics of the marker 100. The characteristic information may be, for example, dimensional information indicating the width of each of the six regions A11 to A16 that constitute the marker 100, or information indicating the positions (coordinates) in the marker 100 of five boundaries Bo11 to Bo15 that separate the six regions A11 to A16.

[0057] The communication IF 304 is a communication interface for receiving the image 50 from the camera 200. The communication IF 304 is also a communication interface for connecting a smartphone, a tablet, a PC (Personal The communication IF 304 may be a communication interface for transmitting data between an external device such as a USB (Universal Serial Bus) or a server. The communication IF 304 may be an interface for wireless communication such as a wireless LAN interface or a Bluetooth (registered trademark) interface. The communication IF 304 may be an interface for wired communication such as a USB (Universal Serial Bus) or a wired LAN interface.

[0058] The input IF 305 is an interface for receiving input from a person, and may be a pointing device such as a mouse, a touch pad, a touch panel, or a trackball, or may be a keyboard.

[0059] The display 306 is a liquid crystal display, an organic EL display, or the like.

[0060] FIG. 4 is a block diagram illustrating an example of a functional configuration of the information processing device according to the first embodiment.

[0061] As shown in FIG. 4, the information processing device 300 functionally includes an acquisition unit 311, an object boundary detection unit 312, a marker boundary detection unit 313, a size calculation unit 314, and an output unit 315.

[0062] The acquisition unit 311 acquires the image 50 from the camera 200. The acquisition unit 311 is realized by, for example, the communication IF 304.

[0063] FIG. 5 is a diagram showing an example of an image in which the marker and the object according to the first embodiment are captured.

[0064] The object boundary detection unit 312 applies edge detection processing to the image 50 using a predetermined algorithm, thereby generating an edge image 51 in which edges are enhanced.

[0065] Fig. 6 is a diagram showing an example of an edge image according to embodiment 1. Note that in Fig. 6, the marker area is omitted and the edges of the marker do not appear.

[0066] For example, edge image 51 is an image that includes luminance change amounts as pixel values. Edge image 51 is an image that indicates that pixels whose pixel values ​​are greater than a predetermined threshold have edges. Edge image 51 has an array of the same number of pixels as image 50. Specifically, image 50 and edge image 51 have the same number of pixels in the vertical direction and the same number of pixels in the horizontal direction.

[0067] The object boundary detection unit 312 specifies, among pixels in the edge image 51 having a luminance change amount higher than a predetermined threshold, a pixel having a minimum coordinate in a predetermined direction (horizontal direction in this embodiment) and a pixel having a maximum coordinate in the predetermined direction as the object boundary in the predetermined direction of the object 10. In other words, when the end of the edge image 51 on the negative side in the predetermined direction is set as the origin, the object boundary detection unit 312 specifies a pixel closest to the origin and a pixel farthest from the origin among pixels having a pixel value higher than a predetermined threshold. This specifies a pixel at a minimum position P11 and a pixel at a maximum position P12 in the predetermined direction of the object 10 in the image 50. Note that the minimum position P11 in the predetermined direction indicates the position of the end of the object 10 on the negative side in the predetermined direction, and the maximum position P12 in the predetermined direction indicates the position of the end of the object 10 on the positive side in the predetermined direction. The object boundary includes the minimum position P11 and the maximum position P12 of the object 10 in the predetermined direction.

[0068] Note that object boundary detection unit 312 may perform the above process only on the area of ​​edge image 51 that includes object 10. In this case, the area of ​​edge image 51 that includes object 10 may be specified by a user or may be set in advance. When the area of ​​edge image 51 that includes object 10 is set in advance, object 10 needs to be positioned so that object 10 is included in the preset area when camera 200 captures object 10.

[0069] Marker boundary detection unit 313 identifies an area in image 50 that includes marker 100. The area in image 50 that includes marker 100 may be specified by a user or may be set in advance. When the area in image 50 that includes marker 100 is set in advance, it is necessary to determine the positional relationship between marker 100 and camera 200 so that marker 100 is included in the preset area when camera 200 captures marker 100.

[0070] Then, the marker boundary detection unit 313 calculates the range of the marker 100 corresponding to the object boundary identified by the object boundary detection unit 312 within the region including the identified marker 100. Specifically, the marker boundary detection unit 313 calculates the range from the minimum position P11 to the maximum position P12 in a predetermined direction of the object 10 as the range of the marker 100.

[0071] The marker boundary detection unit 313 detects (searches for) the boundary of the marker 100 from the image 50 within a search range based on the calculated range of the marker 100. The search range may be a range from the minimum position P11 to the maximum position P12 to detect the boundaries of the marker 100 on both sides, one by one. In other words, this search detects boundaries Bo12 to Bo14 within the range from the minimum position P11 to the maximum position P12, and boundaries Bo11 and Bo15 one on the outside of that range.

[0072] The marker boundary detection unit 313 calculates, for example, a first derivative of a luminance change in a predetermined direction in a range of the marker 100 corresponding to a boundary in a predetermined direction of an area including the marker 100 in the image 50. The first derivative is calculated, for example, by Equation 1 or Equation 2.

[0073] f'(x0)=|f(x0+1)-f(x0)| (Formula 1)

[0074] f'(x0)=|f(x0+1)-f(x0-1)|...(Formula 2)

[0075] In Equation 1 and Equation 2, x0 indicates a position in a predetermined direction. f(x0) indicates the luminance of the pixel at position x0. For example, when image 50 is a color image, the luminance is calculated based on the pixel values ​​of each of the RGB sub-pixels, and when image 50 is a monochrome image, the luminance is the pixel value.

[0076] Then, marker boundary detection unit 313 may detect a peak position in a graph of the first derivative of luminance according to a position in a predetermined direction as the boundary of marker 100. Note that marker boundary detection unit 313 may determine whether or not the first derivative value of luminance at the peak position is equal to or greater than a first threshold. If the first derivative value of luminance at the peak position is equal to or greater than the first threshold, marker boundary detection unit 313 detects the peak position as the boundary of marker 100, and if the first derivative value of luminance at the peak position is not equal to or greater than the first threshold, does not detect the peak position as the boundary of marker 100.

[0077] Furthermore, the marker boundary detection unit 313 may detect the position of the center of gravity calculated using a predetermined window size centered on the peak position in the graph of the first derivative of the luminance as the boundary of the marker 100. The position of the center of gravity is calculated, for example, by the following formula 3.

[0078]

number

[0079] Here, x0 indicates the reference position of the window in a predetermined direction (the position to be calculated), w indicates half the width of the window, and x indicates the position in the predetermined direction.

[0080] In this manner, positions P21 to P25 of the boundaries Bo11 to Bo15 in the predetermined direction are identified, respectively.

[0081] The size calculation unit 314 specifies the position P21 of the boundary Bo11 that is closest to the minimum position P11 of the object boundary among the boundaries Bo11 to Bo15, and calculates the first number of pixels between the minimum position P11 and the position P21 in the predetermined direction. Here, the boundary Bo11 is the boundary on the outer side (the left side in FIG. 5) of the minimum position P11 with respect to the object 10. In other words, the boundary Bo11 is the boundary that is closest to the minimum position P11 among one or more boundaries smaller than the minimum position P11. In addition, the size calculation unit 314 calculates the second number of pixels between the positions P21 and P22. Since the width W of the area A12 is known, the length L per pixel in the predetermined direction of the area A12 can be calculated by dividing the width W by the second number of pixels. Therefore, the length from the position P21 to the position P11 can be calculated by multiplying the length L by the first number of pixels, and the length from the position P11 to the position P22 can be calculated by subtracting the calculated length from the width W.

[0082] Similarly, the length between the maximum position P12 and position P25 of boundary Bo15 closest to the maximum position P12 can be calculated, and the length from position P24 to position P12 can be calculated. Here, boundary Bo15 is the boundary on the outer side (the right side in FIG. 5) of the maximum position P12 with respect to the object 10. In other words, boundary Bo15 is the boundary closest to the maximum position P12 among one or more boundaries greater than the maximum position P12.

[0083] The length from position P22 to position P24 is the length of two areas, so it can be calculated by multiplying the width W by 2, and the length from position P11 to position P12 can be calculated by adding together the length from position P11 to position P22, the length from position P22 to position P24, and the length from position P24 to position P12.

[0084] In this manner, size calculation section 314 can calculate the length from position P11 to position P12 as the dimension of object 10 in a predetermined direction.

[0085] The object boundary detection unit 312, the marker boundary detection unit 313, and the size calculation unit 314 are realized by the processor 301, the main memory 302, the storage 303, and the like.

[0086] The output unit 315 outputs the dimensions calculated by the size calculation unit 314. The output unit 315 may transmit information indicating the dimensions to an external device, or may display the dimensions on the display 306. The output unit 315 may be realized by the communication IF 304, or may be realized by the display 306.

[0087] [1-2. Operation] FIG. 7 is a flowchart showing an example of the operation of the information processing device according to the first embodiment.

[0088] The information processing device 300 acquires an image 50 from the camera 200 (S1). The process of step S1 is a process performed by the acquisition unit 311.

[0089] Next, the information processing device 300 generates an edge image 51 by applying edge detection processing to the image 50 (S2). The processing in step S2 is processing performed by the object boundary detection unit 312.

[0090] Next, the information processing device 300 calculates the boundary of the object 10 in a predetermined direction in the edge image 51 (S3). The process of step S3 is a process performed by the object boundary detection unit 312.

[0091] Next, the information processing device 300 calculates the range of the marker 100 that corresponds to the boundary of the object 10 in the image 50 (S4). The process of step S4 is a process performed by the marker boundary detection unit 313.

[0092] Next, the information processing device 300 detects the boundaries Bo11 to Bo15 of the marker 100 within the range calculated in step S4 (S5).

[0093] Next, the information processing device 300 associates the positions P11, P12 of the boundaries of the object 10 with the positions P21 to P25 of the boundaries Bo11 to Bo15 on the marker 100 (S6).

[0094] Next, the information processing device 300 calculates the size of the object 10 based on the positions P11, P12, and P21 to P25 and the known width W of each area (S7).

[0095] [1-3. Effects, etc.] Here, the effects of the marker 100 in this embodiment will be described together with the problems with the conventional technology.

[0096] FIG. 8 is a diagram for explaining the problem with the marker of the comparative example.

[0097] The marker 101 of the comparative example is composed of a combination of two color areas, black areas A101, A103, A105 and white areas A102, A104, which are adjacent to each other in a predetermined direction. The difference in brightness between the black areas A101, A103, A105 and the white areas A102, A104 is a predetermined amount or more.

[0098] In this marker 101, for example, the white area A102 is adjacent to two black areas A101 and A103. Therefore, at the boundary between the white area A102 and the black area A101 adjacent to the white area A102, and at the boundary between the white area A102 and the black area A103 adjacent to the white area A102, the amount of change in brightness in a predetermined direction is equal to or greater than a first threshold value, and the position of the boundary can be detected by analyzing the image obtained by photographing the marker 101.

[0099] Incidentally, when the marker 101 is photographed, the light is collected by an optical system such as the lens 201 of the camera 200 in the camera 200 photographing the marker 101, and is received by an image sensor. The white light from the white area A102 is a mixture of three primary colors, i.e., red, green, and blue, and the refractive index differs depending on the wavelength when passing through the lens 201. Therefore, as shown in FIG. 8, the ranges of the three colors of red, green, and blue after passing through the lens 201 are not in the same position. For this reason, the white light 1 from the area A102 close to the boundary Bo101 is divided into, for example, a red component light R1, a green component light G1, and a blue component light B1. Similarly, the white light 2 from the area A102 close to the boundary Bo102 is divided into, for example, a red component light R2, a green component light G2, and a blue component light B2. Light 1 and light 2 are light from both ends of the white area A102 in a predetermined direction, and since the adjacent areas A101 and A103 are black and there is almost no light from the areas A101 and A103, the pixels at both ends of the pixel detected in the white area in the image sensor receive light of red and yellow components and light blue and blue components, respectively. In this way, when the white area A102 is received by the image sensor, both ends of the area of ​​the pixel detected as white are composed of an area of ​​red and yellow components and an area of ​​light blue and blue components, so that the image generated by the image sensor also includes areas in the order of red component area, yellow component area, white area, light blue component area, and blue component area. For this reason, in the image generated by the camera 200, the pattern of change in color characteristics is different between the area near the boundary Bo101 of the marker 101 and the area near the boundary Bo102 of the marker 101. In addition, the areas of red and yellow components with longer wavelengths are refracted to a position closer to the optical axis Ax1 of camera 200 than the white area, and the areas of light blue and blue components with shorter wavelengths are refracted to a position farther from the optical axis Ax1 than the white area.

[0100] 9 is a graph showing the amount of change in color characteristics depending on the position in a predetermined direction at both ends of the white area of ​​the marker of the comparative example. The amount of change in color characteristics is, for example, a first derivative value of luminance.

[0101] 9(a) is a diagram showing an outline of an image of the marker 101 of the comparative example generated by the camera 200. As described above, the area near the boundary Bo101 of the white area is an area of ​​red and yellow components, and the area near the boundary Bo102 of the white area is an area of ​​light blue and blue components. The boundary Bo101 is closer to the optical axis Ax of the camera 200 than the white area, and the boundary Bo102 is farther from the optical axis Ax of the camera 200 than the white area.

[0102] Fig. 9(b) is a graph showing the first derivative of luminance as a function of position in a predetermined direction in an area near the boundary Bo101. Fig. 9(c) is a graph showing the first derivative of luminance as a function of position in a predetermined direction in an area near the boundary Bo102.

[0103] As shown in these graphs, the pattern of change in the first differential value of luminance according to the position in a predetermined direction is different between the vicinity of boundary Bo101 and the vicinity of boundary Bo102. Near boundary Bo101, a graph having a shape in which the peak of the first differential value of luminance can be identified as a single point is obtained, whereas near boundary Bo102, the peak of the first differential value of luminance exists over a range in the predetermined direction, and the graph having a shape in which it is difficult to identify the peak of the first differential value of luminance as a single point is obtained. Therefore, near boundary Bo102, it is necessary to identify the boundary by calculating the center of gravity of the peaks.

[0104] As such, in the comparative example marker 101, the pattern of change in color characteristics depending on the position in a specified direction may differ depending on the boundary, so there is a problem that even a simple boundary search cannot accurately identify the position of the boundary.

[0105] The marker 100 in this embodiment has six regions A11-A16 arranged adjacent to one another in a predetermined direction. In each of five boundaries Bo11-Bo15 between the six regions A11-A16, the amount of change in brightness according to the position in the predetermined direction is equal to or greater than a first threshold. In each of the six first regions, the amount of change in brightness according to the position in the predetermined direction is equal to or less than a second threshold that is smaller than the first threshold. The six first regions have a common pattern of change in brightness according to the position in the predetermined direction.

[0106] According to this, in the six regions A11 to A16 of the marker 100, the amount of change in brightness according to a predetermined direction is equal to or greater than the first threshold value in five boundaries Bo11 to Bo15 between the six regions A11 to A16, and the amount of change in brightness within one first region is equal to or less than the second threshold value. As a result, the five boundaries Bo11 to Bo15 can be identified by detecting the positions at which the amount of change in brightness is equal to or greater than the first threshold value. Furthermore, since the six regions A11 to A16 have a common pattern of change in brightness according to the position in the predetermined direction, the manner of change in brightness can be made common in the five boundaries Bo11 to Bo15 between the six regions A11 to A16. As a result, even if an image affected by chromatic aberration caused by the optical system of the camera is obtained when the marker 100 is photographed by the camera, the manner of change in brightness in the image can be made common, so that the positions of the five boundaries Bo11 to Bo15 in the marker 100 can be identified with high accuracy.

[0107] Fig. 10 is a graph showing first derivative values ​​of luminance according to a predetermined direction in regions near multiple boundaries of the marker according to embodiment 1. Fig. 10(a) is a graph near boundary Bo11 of the marker 100, Fig. 10(b) is a graph near boundary Bo12, and Fig. 10(c) is a graph near boundary Bo13.

[0108] 10, it can be seen that the graphs obtained make it easy to determine peaks P1 to P3 at single points at each of the boundaries Bo11 to Bo13. In this way, it can be seen that the patterns of change in brightness near the boundaries Bo11 to Bo13 can be made common.

[0109] In marker 100 of the present embodiment, in each of six regions A11 to A16, the brightness gradually increases or decreases from one end to the other end in a predetermined direction.

[0110] Therefore, it is possible to make it difficult for erroneous detection of boundaries to occur within each of the six areas A11 to A16.

[0111] In the marker 100 of this embodiment, at each of the five boundaries Bo11 to Bo15, a position where the brightness is maximum in one of the two adjacent regions at the boundary is adjacent to a position where the brightness is minimum in the other region.

[0112] In order to standardize the manner in which the brightness changes in the five boundaries Bo11-Bo15, it is necessary to provide each of the six regions A11-A16 with a region in which the brightness changes below a second threshold value depending on the position in a predetermined direction. In this way, in the marker 100, a region in which the brightness changes below a second threshold value depending on the position in a predetermined direction is provided, so that by maximizing the amount of change in brightness in the five boundaries Bo11-Bo15, it is possible to easily identify the five boundaries Bo11-Bo15. Therefore, it is possible to accurately identify the positions of the five boundaries Bo11-Bo15.

[0113] (Embodiment 2) In the first embodiment, the marker 100 is a marker for measuring the size of the object 10. However, the marker 100A according to the second embodiment is used for camera calibration of the camera 200.

[0114] [2-1. Configuration] FIG. 11 is a diagram showing an example of a configuration of a marker according to the second embodiment.

[0115] The marker 100A is disposed at a position on the optical axis Ax1 of the camera 200 where it is photographed by the camera 200. The marker 100A has six areas A21 to A26 and six areas A31 to A36 that are adjacent to each other in a predetermined direction (horizontal direction in this embodiment), and a reference line BL1. In the marker 100A, the reference line BL1 is disposed so as to intersect with the optical axis Ax1 of the camera 200. The reference line BL1 is located between the six areas A21 to A26 and the six areas A31 to A36, and is disposed so as to intersect with the optical axis Ax1 of the camera 200. Here, the point where the reference line BL1 and the optical axis Ax1 of the camera 200 intersect is defined as a reference position O1. The six areas A21 to A26 are disposed on an extension of the reference line BL1 on the predetermined direction side of the reference position O1 on the optical axis Ax1 of the camera 200 in the marker 100A. The six regions A31 to A36 are arranged on an extension of the reference line BL1 on the opposite side to the predetermined direction side of the reference position O1 on the marker 100A. That is, the six regions A21 to A26 are arranged on the opposite side of the optical axis Ax1 of the camera 200 from the six regions A31 to A36 across the reference position O1. The six regions A21 to A26 are an example of N first regions, and the six regions A31 to A36 are an example of M second regions (M is an integer equal to or greater than 3).

[0116] The six regions A21 to A26 are the same as the six regions A11 to A16 of the marker 100. Moreover, the six regions A31 to A36 have a configuration in which the six regions A21 to A26 are inverted with respect to the reference position O1.

[0117] That is, the following can be said about the six regions A21-A26 and the six regions A31-A36. In each of the five boundaries between the six regions A31-A36, the amount of change in brightness according to the position in the predetermined direction is equal to or greater than a first threshold. In each of the six regions A31-A36, the amount of change in brightness according to the position in the predetermined direction is equal to or less than a second threshold. In the marker 100A, the six regions A21-A26 have a common pattern of change in brightness according to the position in the predetermined direction. In the direction away from the reference position O1, the first pattern of change in brightness in each of the six regions A21-A26 and the second pattern of change in brightness in each of the six regions A31-A36 are common to each other.

[0118] At each of the boundaries between the six regions A21 to A26 and each of the boundaries between the six regions A31 to A36, a position of minimum brightness and a position of maximum brightness are adjacent to each other in that order in the direction away from the reference position O1.

[0119] Next, the configuration of the information processing device 300A according to the second embodiment will be described.

[0120] FIG. 12 is a block diagram illustrating an example of a configuration of an information processing device according to the second embodiment. As shown in FIG.

[0121] The hardware configuration of the information processing device 300A is the same as that of the information processing device 300, and therefore a description thereof will be omitted.

[0122] FIG. 13 is a block diagram illustrating an example of a functional configuration of the information processing device according to the second embodiment. As illustrated in FIG.

[0123] As shown in FIG. 13, the information processing device 300A functionally includes an acquisition unit 311, a marker boundary detection unit 313, a feature point calculation unit 316, a camera calibration unit 317, and an output unit 315.

[0124] The acquisition unit 311 acquires an image from the camera 200. The acquisition unit 311 is realized by, for example, the communication IF 304.

[0125] Marker boundary detection unit 313 detects reference line BL1, sets the direction of the detected reference line BL1 as a predetermined direction for boundary detection, and detects five boundaries on the extension of reference line BL1 of six areas A21-A26 in marker 100A, and five boundaries on the extension of reference line BL1 of six areas A31-A36 in the opposite direction from reference position O1, using luminance changes, as in the first embodiment. Note that if the positional relationship between marker 100A and camera 200 is fixed, marker boundary detection unit 313 may set a specific direction as the predetermined direction for boundary detection. In other words, marker boundary detection unit 313 does not need to detect reference line BL1.

[0126] Based on feature information indicating the features of the marker 100A, the feature point calculation unit 316 acquires physical coordinates of the marker 100A corresponding to the feature points of the marker 100A, and associates the positions of the total of ten boundaries detected by the marker boundary detection unit 313 with the physical coordinates. The feature points are provided at positions that coincide with the positions of the boundaries of the marker 100A.

[0127] The camera calibration unit 317 calculates the external parameters and the internal parameters of the camera 200 by using the result of associating the positions of the ten boundaries detected by the marker boundary detection unit 313 with the physical coordinates. The camera calibration unit 317 calculates the external parameters and the internal parameters by using at least one of the perspective camera model, the Zhang method, and the Scaramuzza model, for example. Calculate the parameters.

[0128] The calculated external parameters and internal parameters are outputted to the output unit 315. The output unit 315 may be realized by the communication IF 304, or may be realized by the display 306. Also, the output unit 315 may be stored in the storage 303.

[0129] The marker boundary detection unit 313, the feature point calculation unit 316, and the camera calibration unit 317 are realized by the processor 301, the main memory 302, the storage 303, and the like.

[0130] [2-2. Operation] FIG. 14 is a flowchart showing an example of the operation of the information processing device according to the second embodiment.

[0131] The information processing device 300A acquires an image from the camera 200 (S11). The process of step S11 is a process performed by the acquisition unit 311.

[0132] Next, the information processing device 300A detects a reference line BL1, sets the direction of the detected reference line BL1 as a predetermined direction for boundary detection, and detects five boundaries of the six regions A21 to A26 and five boundaries of the six regions A31 to A36 in the marker 100A (S12). The process of step S12 is performed by the marker boundary detection unit 313.

[0133] Next, the information processing device 300A acquires physical coordinates of the marker 100A corresponding to the feature points of the marker 100A based on feature information indicating the features of the marker 100A, and associates the positions of the total of ten boundaries detected by the marker boundary detection unit 313 with the physical coordinates (S13). The process of step S13 is a process performed by the feature point calculation unit 316.

[0134] Next, the information processing device 300A calculates the external parameters and the internal parameters of the camera 200 (S14). The process of step S14 is a process performed by the camera calibration unit 317.

[0135] [2-3. Effects, etc.] The marker 100A in this embodiment has six regions A21 to A26 arranged in a predetermined direction, six regions A31 to A36, and a reference line BL1. The marker 100A is disposed at a position where it is photographed by the camera 200 so that the reference line BL1 intersects with the optical axis Ax1 of the camera 200. The six regions A21 to A26 are disposed on the marker 100A on the predetermined direction side of the reference position O1 on the optical axis Ax1 of the camera 200. The six regions A31 to A36 are disposed on the opposite side of the marker 100A from the predetermined direction side of the reference position O1. At each of the five boundaries between the six regions A31 to A36, the amount of change in brightness according to the position in the predetermined direction is equal to or greater than a first threshold. At each of the six regions A31 to A36, the amount of change in brightness according to the position in the predetermined direction is equal to or less than a second threshold. The six regions A31 to A36 have a common pattern of change in brightness according to the position in the predetermined direction. A first pattern of change in brightness in each of the six regions A21 to A26 and a second pattern of change in brightness in each of the six regions A31 to A36 in the direction away from the reference position O1 are common to each other.

[0136] When the marker 100A is photographed by the camera 200, the chromatic aberration caused by the optical system (lens) of the camera 200 tends to be opposite on one side and the other side in the direction perpendicular to the optical axis Ax1 of the optical system. Therefore, by arranging the six regions A21 to A26 and the six regions A31 to A36 on both sides of the reference position O1 on the optical axis Ax1 of the camera 200 as the center, it is possible to standardize the manner of change in brightness at the ten boundaries in the image obtained when the marker 100A is photographed. As a result, even if an image affected by the chromatic aberration caused by the optical system of the camera 200 is obtained when the marker 100A is photographed by the camera 200, it is possible to standardize the manner of change in brightness in the image. Therefore, it is possible to accurately identify the positions of the ten boundaries in the marker 100A.

[0137] In the marker 100A of the present embodiment, the color characteristic is lightness. At each of the ten boundaries, a position of minimum lightness and a position of maximum lightness are adjacent to each other in the direction away from the reference position O1.

[0138] The brightness change amount at the boundary formed by the position of minimum brightness and the position of maximum brightness adjacent to each other in the direction away from the reference position O1 can be reduced to one peak, and the positions of the 10 boundaries can be identified with greater accuracy.

[0139] [2-4. Variation 1] FIG. 15 is a diagram showing an example of a configuration of a marker according to the first modification of the second embodiment.

[0140] The marker 100B according to the first modification has a plurality of third regions A41 to A44, which are divided by a plurality of circles having different diameters centered on the reference position O2. Each of the plurality of third regions A41 to A44 includes a region having a similar configuration to one of the six regions A21 to A26 described in the second embodiment, and a region having a similar configuration to one of the six regions A31 to A36. Specifically, each of the plurality of third regions A41 to A44 is configured so that the brightness decreases in a direction away from the reference position O2. That is, in the third region A41, the region on the predetermined direction side of the reference position O2 and the region on the opposite side in the predetermined direction are configured symmetrically with respect to the reference position O2. This also applies to the other third regions A42 to A44. Therefore, it can be said that the marker 100B includes a configuration similar to that of the marker 100A. The marker 100B also includes two reference lines L01 and L02 that cross-pass the reference position O2. The number of third regions is not limited to 4, and may be N (N>3). Furthermore, each of the third regions may be configured so that the brightness increases in the direction away from the reference position O2.

[0141] Next, a configuration of the information processing device 300B according to the first modification of the second embodiment will be described.

[0142] FIG. 16 is a block diagram showing an example of a configuration of an information processing device according to Modification 1 of Embodiment 2. As shown in FIG.

[0143] The hardware configuration of the information processing device 300B is the same as that of the information processing device 300, and therefore a description thereof will be omitted.

[0144] FIG. 17 is a block diagram illustrating an example of a functional configuration of an information processing device according to the first modification of the second embodiment. As shown in FIG.

[0145] As shown in FIG. 17, the information processing device 300B functionally comprises an acquisition unit 311, a reference line detection unit 318, a feature point calculation unit 316, a feature point physical coordinate calculation unit 319, a camera calibration unit 317, and an output unit 315.

[0146] The acquisition unit 311 acquires an image from the camera 200. The acquisition unit 311 is realized by, for example, the communication IF 304.

[0147] The reference line detection unit 318 detects two reference lines L01 and L02 on the marker 100B.

[0148] Based on the reference lines L01 and L02 detected by the reference line detection unit 318, the feature point calculation unit 316 sets the virtual line L1, which is an extension of the reference line L01, and the virtual line L2, which is an extension of the reference line L02, as the boundary detection direction (predetermined direction). Then, like the marker boundary detection unit 313, the feature point calculation unit 316 detects six concentric boundaries of the multiple areas A41 to A44 in the marker 100B for each set direction, and detects the intersections of the six boundaries and the two virtual lines L1 and L2 as feature points. Based on the two reference lines L01 and L02, the feature point calculation unit 316 generates two virtual lines L3 and L4, and detects the intersections of the two virtual lines L3 and L4 and the six concentric boundaries as feature points. The two virtual lines L3 and L4 are generated by rotating the two virtual lines L1 and L2 by 45 degrees around the reference position O2.

[0149] Feature point physical coordinate calculation unit 319 acquires feature information indicating the features of marker 100B based on reference lines L01 and L02 of marker 100B, acquires physical coordinates of marker 100B corresponding to the feature points of marker 100B calculated by feature point calculation unit 316 based on the feature information, and associates each of the detected feature points with the physical coordinates of the feature points. The feature information indicating the features of marker 100B includes, for example, information on the sizes of the reference line and the third region of the marker, and the positional relationship with reference position O2.

[0150] The camera calibration unit 317 calculates the external parameters and the internal parameters of the camera 200 by using the result of associating each of the detected feature points with the physical coordinates of the feature points. The camera calibration unit 317 calculates the external parameters and the internal parameters by using at least one of the perspective camera model, the Zhang method, and the Scaramuzza model, for example. do.

[0151] The calculated external parameters and internal parameters are outputted to the output unit 315. The output unit 315 may be realized by the communication IF 304, or may be realized by the display 306. Also, the output unit 315 may be stored in the storage 303.

[0152] The reference line detection unit 318, the feature point calculation unit 316, the feature point physical coordinate calculation unit 319, and the camera calibration unit 317 are realized by the processor 301, the main memory 302, the storage 303, and the like.

[0153] FIG. 18 is a flowchart showing an example of the operation of the information processing device according to the first modification of the second embodiment.

[0154] The information processing device 300B acquires an image from the camera 200 (S21). The process of step S21 is a process performed by the acquisition unit 311.

[0155] Next, the information processing device 300B detects two reference lines L01 and L02 on the marker 100B (S22). The process of step S22 is a process performed by the reference line detection unit 318.

[0156] Next, the information processing device 300B detects six concentric boundaries of the multiple regions A41-A44 in the marker 100B for each boundary detection direction (predetermined direction) set by the virtual lines L1, L2 based on the detected reference lines L01, L02, in the same manner as in the processing of the first embodiment, and detects the intersections of the six boundaries with the two virtual lines L1, L2 as feature points (S23). The processing of step S23 is processing by the feature point calculation unit 316.

[0157] Next, the information processing device 300B generates two more virtual lines L3 and L4 based on the two virtual lines L1 and L2, detects the above-mentioned six concentric boundaries for each boundary detection direction (predetermined direction) set by the two virtual lines L3 and L4, as in the processing of the first embodiment, and detects the intersections of the six boundaries with the two virtual lines L3 and L4 as feature points (S24). The processing of step S24 is processing by the feature point calculation unit 316.

[0158] Next, the information processing device 300B acquires feature information indicating the features of the marker 100B based on the reference lines L01 and L02 of the marker 100B, acquires physical coordinates of the marker 100B corresponding to feature points of the marker 100B based on the feature information, and associates each of the detected feature points with the physical coordinates of the feature point (S25). The process of step S25 is performed by the feature point physical coordinate calculation unit 319.

[0159] Next, the information processing device 300B calculates the external parameters and the internal parameters of the camera 200 (S26). The process of step S26 is a process performed by the camera calibration unit 317.

[0160] [2-5. Variation 2] The marker 100A according to the second embodiment has been described as being used for the camera calibration of a standalone camera 200, but the present invention is not limited to this and may be used for the camera calibration of the camera 200 provided in the vehicle 400. The camera 200 is a camera that captures an image ahead of the vehicle 400.

[0161] Fig. 19 is a diagram showing an example of a configuration of a marker according to Modification 2 of Embodiment 2. Fig. 19 is a plan view of the marker and the vehicle as viewed from above.

[0162] The marker 100C, like the marker A, has six regions A21-A26 and six regions A31-A36 that are adjacent to each other in a predetermined direction (the horizontal direction in this embodiment). The marker 100C differs from the marker 100A in that a passing region A40 for the vehicle 400 to pass through is provided between the six regions A21-A26 and the six regions A31-A36. The passing region A40 is defined by two straight lines L21, L22 that extend along the front-rear direction of the vehicle 400. In other words, the passing region A40 is set between the two straight lines L21, L22 in the marker 100C.

[0163] The marker 100C also has a reference line BL21 arranged in a position close to the six areas A21 to A26 arranged on the right side of the vehicle 400, and a reference line BL22 arranged in a position close to the six areas A31 to A36 arranged on the left side of the vehicle 400. The reference lines BL21 and BL22 are straight lines parallel to a predetermined direction (the horizontal direction in this embodiment).

[0164] Here, the point where the reference line BL21 and the straight line L21 intersect is defined as the reference position O21, and the point where the reference line BL22 and the straight line L22 intersect is defined as the reference position O22. The reference lines BL21 and BL22 may be formed of a single straight line. Also, instead of the straight lines L21 and L22, a straight line may be provided that passes through the horizontal center of the marker 100C and extends parallel to the front-rear direction of the vehicle 400. In this case, the reference position may be determined as the position of the intersection between the straight line that passes through the horizontal center of the marker 100C and the single straight line.

[0165] The marker 100C according to the second modification of the second embodiment is placed, for example, along the floor surface on which the vehicle 400 is placed.

[0166] As shown in Fig. 20, the marker 100C may be used in the configuration of a camera 200 that captures an image of the rear of a vehicle 400. Fig. 20 is a plan view of the marker and the vehicle as viewed from above.

[0167] [2-6. Variation 3] In the second modification of the second embodiment, the marker 100C is used for camera calibration of the camera 200 equipped on the vehicle 400, but this is not limited thereto. As shown in Fig. 21, the marker 100A according to the second embodiment may be used for camera calibration of the camera 200 that captures an image in front of the vehicle 400. Also, as shown in Fig. 22, the marker 100A according to the second embodiment may be used for camera calibration of the camera 200 that captures an image behind the vehicle 400. Figs. 21 and 22 are plan views of the marker and the vehicle as viewed from above.

[0168] 23 and 24, the marker 100A according to the second embodiment may be used for camera calibration of the camera 200 that captures the side of the vehicle 400. FIGS. 23 and 24 are plan views of the marker and the vehicle as viewed from above. FIG. 23 is a plan view of the marker and the vehicle as viewed from above when the camera 200 is installed on the left side of the vehicle 400. FIG. 24 is a plan view of the marker and the vehicle as viewed from above when the camera 200 is installed on the right side of the vehicle 400.

[0169] The marker 100A according to the third modification of the second embodiment is placed, for example, along the floor surface on which the vehicle 400 is placed.

[0170] [2-7. Variation 4] The marker 100C of the second modification of the second embodiment and the marker 100A of the third modification of the second embodiment are arranged along the floor surface on which the vehicle 400 is arranged, but this is not limited thereto. As shown in Figs. 25 and 26, the marker 100D may be arranged upright on the floor surface. The marker 100D is provided on the vehicle 400 side surface of the plate-shaped member 500 that is arranged upright on the floor surface so as to be perpendicular to the front-rear direction of the vehicle 400. In the marker 100D of the fourth modification, the reference positions O31 and O32 may be set at the center in the height direction of the side closer to the vehicle 400 out of two sides of the plate-shaped member 500 extending in the height direction.

[0171] Fig. 25 is a diagram of the marker and the vehicle as viewed from the front and rear, and Fig. 26 is a plan view of the marker and the vehicle as viewed from above.

[0172] Although FIG. 26 illustrates a camera 200 that captures an image in front of the vehicle 400, the present invention is not limited to this example, and the marker 100D of the fourth modification may also be applied to a camera 200 that captures an image behind the vehicle 400.

[0173] The marker 100A of the fourth modification may also be applied to the camera 200 that captures the side of the vehicle 400. As shown in Fig. 27 and Fig. 28, the marker 100A may be provided upright on the floor surface so as to be parallel to the front-rear direction of the vehicle 400.

[0174] [2-8. Variation 5] The plate-like member 500 provided with the marker 100D of the fourth modification of the second embodiment is set upright on the floor surface so as to be perpendicular to the front-rear direction of the vehicle 400, but this is not limited thereto. As shown in Fig. 29 and Fig. 30, the plate-like member 500 may be set upright on the floor surface so as to be parallel to the front-rear direction of the vehicle 400. In the marker 100D of the fifth modification, the reference positions O31, O32 may be set at the center in the height direction of the side farther from the vehicle 400 out of two sides of the plate-like member 500 extending in the height direction.

[0175] Although FIG. 30 illustrates a camera 200 that captures an image in front of the vehicle 400, the present invention is not limited to this example, and the marker 100D of the fourth modification may also be applied to a camera 200 that captures an image behind the vehicle 400.

[0176] When the vehicle 400 is provided with cameras 200 for capturing images of the front, left and right sides, and rear of the vehicle, as shown in Fig. 31, two markers 100C may be placed at the front and rear of the vehicle 400, and two markers 100A may be placed at the left and right sides of the vehicle 400. Instead of placing two markers 100C at the front and rear of the vehicle 400, two markers 100A may be placed.

[0177] The plane on which the markers are provided may be the road surface or may be parallel to the road surface. The plate-like member on which the markers are provided may be placed on a predetermined floor surface or may be erected. The plate-like member on which the markers are provided may be erected on the side of the vehicle so as to be parallel to the front-rear direction of the vehicle.

[0178] [3.Other] In the above embodiment 1, the amount of change in lightness was given as an example of the amount of change in a color characteristic, but the amount of change may be the amount of change in hue, the amount of change in saturation, or a combination of at least two of lightness, hue, and saturation.

[0179] In the above embodiment 1, each region is configured so that the brightness decreases as it progresses in a predetermined direction, but each region may be configured so that the brightness increases as it progresses in a predetermined direction. In embodiment 2, the direction in which the brightness decreases is not limited to the direction away from the reference position, and may be the direction approaching the reference position.

[0180] In the above-mentioned embodiment 1, a common method is used to detect the boundaries between the multiple regions of the marker, but the method of detecting the boundaries may be changed by using the position in the image corresponding to the optical axis of the camera 200 as the boundary. That is, as described in FIG. 9, since the tendency of the first differential value according to the position in a predetermined direction differs between one side and the other side of the optical axis of the lens, the detection method of the boundary may be switched to match this tendency. This can be applied when the marker 100 has a common brightness pattern in multiple regions regardless of the position of the optical axis, as in the embodiment 1. That is, in the pattern in which the peak of the first differential value is detected in FIG. 9(b), the boundary may be detected by executing a process of detecting the peak, and in the pattern in which the peak of the first differential value is detected in FIG. 9(c), the boundary may be detected by further executing a process of calculating the center of gravity based on the peak.

[0181] In the above first and second embodiments, the markers may be drawn directly on the floor, wall, or surface of a plate-like member with paint or the like.

[0182] In the above embodiment, each component may be realized by a dedicated hardware or by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory.

[0183] Each component may be a circuit (or an integrated circuit). These circuits may form a single circuit as a whole, or each may be a separate circuit. Each of these circuits may be a general-purpose circuit or a dedicated circuit.

[0184] In addition, the general or specific aspects of the present disclosure may be realized in a system, an apparatus, a method, an integrated circuit, a computer program, or a non-transitory recording medium such as a computer-readable CD-ROM, or in any combination of a system, an apparatus, a method, an integrated circuit, a computer program, and a computer-readable non-transitory recording medium.

[0185] For example, the present disclosure may be realized as an edge detection method executed by an edge detection device (computer or DSP), or as a program for causing a computer or DSP to execute the edge detection method.

[0186] In the above embodiment, the process executed by a specific processing unit may be executed by another processing unit. In addition, the order of multiple processes in the operation of the control system described in the above embodiment may be changed, and multiple processes may be executed in parallel.

[0187] In addition, the present disclosure also includes forms obtained by applying various modifications to each embodiment that a person skilled in the art may conceive, or forms realized by arbitrarily combining the components and functions of each embodiment within the scope that does not deviate from the spirit of the present disclosure. [Industrial Applicability]

[0188] The present disclosure is useful as a marker capable of accurately identifying the boundaries of multiple regions that the marker has, and an edge detection device and edge detection method capable of accurately identifying the boundaries of multiple regions that the marker has. [Explanation of symbols]

[0189] 1. Measurement system 10 objects 50 images 51 Edge Images 100, 100A~100D markers 200 Cameras 201 Lens 300, 300A, 300B Information processing device 301 Processor 302 Main Memory 303 Storage 304 Communication Interface 305 Input IF 306 Display 311 Acquisition Department 312 Object Boundary Detection Unit 313 Marker boundary detection unit 314 Size Calculation Section 315 Output section 316 Feature Point Calculation Unit 317 Camera Calibration Department 318 Reference Line Detector 319 Feature Point Physical Coordinate Calculation Unit 400 vehicles 500 Plate-shaped member A11~A16, A21~A26, A31~A36, A41~A44 area A40 passing area Bo11~Bo15 boundary BL1, BL21, BL22, L01, L02 Reference lines L1, L2, L3, L4 virtual lines L21, L22 straight line O1, O2, O21, O22, O31, O32 reference position P11, P12, P21~P25 position

Claims

1. A marker having N first regions (N is an integer of 3 or more) arranged adjacent to each other in a predetermined direction, At each of the (N-1) first boundaries between the N first regions, a change in color characteristic according to a position in the predetermined direction is equal to or greater than a first threshold value; In each of the N first regions, a change amount of the color characteristic according to a position in the predetermined direction is equal to or less than a second threshold value that is smaller than the first threshold value, The N first regions have a common pattern of change in the color characteristics according to the position in the predetermined direction. marker.

2. In each of the N first regions, the color characteristic gradually increases or decreases from one end to the other end in the predetermined direction. The marker of claim 1.

3. At each of the (N-1) first boundaries, a position where the color characteristic is maximum in one first region of two first regions adjacent to each other at the first boundary is adjacent to a position where the color characteristic is minimum in the other first region. The marker according to claim 1 or 2.

4. The marker further includes M (M is an integer of 3 or more) second regions aligned in the predetermined direction and a reference line; the reference line is located between the N first regions and the M second regions and is disposed so as to intersect with an optical axis of the camera; The marker is disposed at a position where it can be photographed by the camera, the N first regions are disposed on the predetermined direction side of a reference position where the reference line intersects with the optical axis, the M second regions are disposed on the marker on a side opposite to the predetermined direction side of the reference position, At each of the (M-1) second boundaries between the M second regions, a change amount of the color characteristic according to a position in the predetermined direction is equal to or greater than the first threshold value; In each of the M second regions, a change amount of the color characteristic according to a position in the predetermined direction is equal to or less than the second threshold value, the M second regions have a common pattern of change in the color characteristics according to positions in the predetermined direction; A first pattern of the change in the color characteristic in each of the N first regions and a second pattern of the change in the color characteristic in each of the M second regions in a direction away from the reference position are common to each other. The marker according to claim 1 or 2.

5. moreover, a plurality of third regions defined by a plurality of circles having different radii centered on the reference position; Each of the third regions includes one first region among the N first regions that corresponds to the third region, and one second region among the M second regions that corresponds to the third region. The marker according to claim 4.

6. the color characteristic is lightness; In each of the (N-1) first boundaries and each of the (M-1) second boundaries, a position of minimum brightness and a position of maximum brightness are adjacent to each other in a direction away from the reference position. The marker according to claim 4.

7. The markers are used for camera calibration of the vehicle's camera. The marker of claim 1.

8. The marker further includes M (M is an integer of 3 or more) second regions arranged in the predetermined direction, and a passing region for the vehicle to pass between the N first regions and the M second regions. The marker of claim 7.

9. the camera is a camera that photographs a front or rear of the vehicle, The predetermined direction is along the left-right direction of the vehicle. A marker according to claim 7 or 8.

10. The camera is a camera that photographs a side of the vehicle, The predetermined direction is along the front-rear direction of the vehicle. A marker according to claim 7 or 8.

11. The markers are arranged along the floor surface on which the vehicle is placed. The marker according to claim 9.

12. The marker is disposed upright on the floor surface on which the vehicle is placed. The marker according to claim 9.

13. the camera is a camera that photographs a front or rear of the vehicle, the predetermined direction is along a front-rear direction of the vehicle, The marker is disposed upright on the floor surface on which the vehicle is placed. A marker according to claim 7 or 8.

14. 2. An edge detection device for detecting edges from an image of a marker according to claim 1, comprising: determining that there is an edge between two adjacent pixels in the image when a change in color characteristic between the two adjacent pixels is equal to or greater than the first threshold; If the amount of change is equal to or less than a second threshold, it is determined that there is no edge between the two pixels. Edge detector.

15. 2. An edge detection method for detecting edges from an image of a marker according to claim 1 captured by a camera, comprising: determining that there is an edge between two adjacent pixels in the image when a change in color characteristic between the two adjacent pixels is equal to or greater than the first threshold; If the amount of change is equal to or less than a second threshold, it is determined that there is no edge between the two pixels. Edge detection methods.

Citation Information

Patent Citations

  • Size measurement method, camera-equipped electronic device, program for camera-equipped electronic device, and marker for size measurement

    JP2015227787A