WO2017110071A1 - 寸法測定装置、宅配ボックス装置、寸法測定方法 - Google Patents

寸法測定装置、宅配ボックス装置、寸法測定方法 Download PDF

Info

Publication number
WO2017110071A1
WO2017110071A1 PCT/JP2016/005154 JP2016005154W WO2017110071A1 WO 2017110071 A1 WO2017110071 A1 WO 2017110071A1 JP 2016005154 W JP2016005154 W JP 2016005154W WO 2017110071 A1 WO2017110071 A1 WO 2017110071A1
Authority
WO
WIPO (PCT)
Prior art keywords
surface portion
corner
line
image
dimension measuring
Prior art date
Application number
PCT/JP2016/005154
Other languages
English (en)
French (fr)
Inventor
門脇 信諭
Original Assignee
パナソニックIpマネジメント株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2015254673A external-priority patent/JP6643673B2/ja
Priority claimed from JP2016032501A external-priority patent/JP6624562B2/ja
Priority claimed from JP2016032502A external-priority patent/JP6624563B2/ja
Application filed by パナソニックIpマネジメント株式会社 filed Critical パナソニックIpマネジメント株式会社
Priority to US16/062,714 priority Critical patent/US10748297B2/en
Priority to CN201680076223.3A priority patent/CN108474647B/zh
Priority to EP16877976.7A priority patent/EP3396310B1/en
Publication of WO2017110071A1 publication Critical patent/WO2017110071A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/10Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property
    • G07F17/12Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned
    • G07F17/13Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned the containers being a postal pick-up locker
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65GTRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
    • B65G1/00Storing articles, individually or in orderly arrangement, in warehouses or magazines
    • B65G1/02Storage devices
    • B65G1/04Storage devices mechanical
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65GTRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
    • B65G1/00Storing articles, individually or in orderly arrangement, in warehouses or magazines
    • B65G1/02Storage devices
    • B65G1/04Storage devices mechanical
    • B65G1/137Storage devices mechanical with arrangements or automatic control means for selecting which articles are to be removed
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/045Correction of measurements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/80Geometric correction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0036Checkout procedures
    • G07G1/0045Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader
    • G07G1/0054Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader with control of supplementary check-parameters, e.g. weight or number of articles
    • G07G1/0063Checkout procedures with a code reader for reading of an identifying code of the article to be registered, e.g. barcode reader or radio-frequency identity [RFID] reader with control of supplementary check-parameters, e.g. weight or number of articles with means for detecting the geometric dimensions of the article of which the code is read, such as its size or height, for the verification of the registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30112Baggage; Luggage; Suitcase
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker

Definitions

  • the present invention relates to a dimension measuring apparatus, a delivery box apparatus equipped with the dimension measuring apparatus, and a dimension measuring method.
  • a dimension measuring device including an image processing unit to perform is known (for example, see Patent Document 1).
  • An object of the present invention is to provide a dimension measuring device that can accurately obtain the size of an object to be measured, a delivery box device equipped with the dimension measuring device, and a dimension measuring method.
  • the dimension measuring device has the following configuration.
  • the dimension measuring device includes a storage chamber that allows a measured object to be freely inserted and removed, and an imaging unit that is provided in the storage chamber and images the measured object that is accommodated in the storage chamber.
  • the dimension measuring device includes an image processing unit that performs image processing based on information of an image captured by the imaging unit and measures the size of the object to be measured.
  • the storage chamber has a rectangular lower surface portion on which the object to be measured is placed, a rectangular first side surface portion extending upward from the lower surface portion, and an upward extension from the lower surface portion, A rectangular second side surface adjacent to the side surface.
  • the storage chamber includes a first corner formed by the lower surface portion and the first side surface portion, a second corner formed by the lower surface portion and the second side surface portion, the first side surface portion, and the A third corner formed by the second side surface portion.
  • the storage chamber is formed at a portion where the first corner, the second corner, and the third corner intersect, and has a reference corner serving as a reference point for arranging the object to be measured at a predetermined position.
  • the accommodation chamber has a marker provided on the first side surface portion, the second side surface portion, and the lower surface portion to display the position of each side.
  • the delivery box device has a plurality of types of delivery delivery storage units that store the delivery items according to the size of the delivery item that is the measurement object measured by the dimension measurement device.
  • the dimension measuring method according to another aspect of the present invention uses a dimension measuring apparatus.
  • the dimension measuring device includes a storage chamber in which an object to be measured is freely inserted and removed, and an imaging unit that is provided in the storage chamber and images the object to be measured that is accommodated in the accommodation chamber.
  • the dimension measuring device includes an image processing unit that performs image processing based on information of an image captured by the imaging unit and measures the size of the object to be measured.
  • the storage chamber has a rectangular lower surface portion on which the object to be measured is placed, a rectangular first side surface portion extending upward from the lower surface portion, and an upward extension from the lower surface portion, A rectangular second side surface adjacent to the side surface.
  • the storage chamber includes a first corner formed by the lower surface portion and the first side surface portion, a second corner formed by the lower surface portion and the second side surface portion, the first side surface portion, and the A third corner formed by the second side surface portion.
  • the storage chamber is formed at a portion where the first corner, the second corner, and the third corner intersect, and has a reference corner serving as a reference point for arranging the object to be measured at a predetermined position.
  • the accommodation chamber has a marker provided on the first side surface portion, the second side surface portion, and the lower surface portion to display the position of each side.
  • the image processing unit creates a binary image by binarizing the image captured by the imaging unit in a state before the object to be measured is arranged in the storage chamber, and Identify the marker in the value image.
  • the image processing unit identifies edges corresponding to sides of the first side surface portion, the second side surface portion, and the lower surface portion in the binary image from the marker, and performs distortion correction based on the distortion of the edge.
  • Create data The image processing unit creates a binary image by binarizing the image captured by the imaging unit in a state where the object to be measured is arranged in the storage chamber.
  • the image processing unit acquires a corrected image by correcting the distortion of the edge of the measured object identified in the binary image based on the distortion correction data.
  • the image processing unit measures the size of the object to be measured by scanning in a plane corresponding to the first side surface portion, the second side surface portion, and the lower surface portion of the corrected image.
  • FIG. 1 is a perspective view showing a dimension measuring apparatus according to the first embodiment.
  • FIG. 2 is a block diagram showing the same imaging unit and image processing unit.
  • FIG. 3 is a flowchart of the correction mode of the dimension measurement method described above.
  • FIG. 4 is an explanatory diagram showing a binary image captured by the imaging unit and binarized.
  • FIG. 5 is an explanatory diagram showing a binary image corrected in the correction mode.
  • FIG. 6A is an explanatory diagram illustrating a measurement image obtained by capturing an image of the object to be measured in the storage chamber with the imaging unit.
  • FIG. 6B is an explanatory diagram showing a binary image in a state in which the object to be measured is arranged in the storage chamber.
  • FIG. 1 is a perspective view showing a dimension measuring apparatus according to the first embodiment.
  • FIG. 2 is a block diagram showing the same imaging unit and image processing unit.
  • FIG. 3 is a flowchart of the correction mode of the dimension measurement method described above.
  • FIG. 7 is a flowchart of the size measurement mode of the dimension measuring method.
  • FIG. 8A is a side view of the first side portion of the binary image of FIG. 6B.
  • FIG. 8B is a plan view of the lower surface portion of the binary image of FIG. 6B.
  • FIG. 8C is a plan view of the lower surface portion of the binary image of FIG. 6B.
  • FIG. 9 is a flowchart showing another example of the correction mode of the dimension measuring method.
  • FIG. 10 is an explanatory diagram of a state in which the virtual line C obtained by translating the edge A13 is superimposed on the edge A16.
  • FIG. 11A is a perspective view showing another example of the marker of the dimension measuring device.
  • FIG. 11B is a perspective view showing another example of the marker of the dimension measuring device.
  • FIG. 11A is a perspective view showing another example of the marker of the dimension measuring device.
  • FIG. 11C is a perspective view showing another example of the marker of the dimension measuring device.
  • FIG. 12 is a perspective view of a dimension measuring apparatus according to the second embodiment of the present invention.
  • FIG. 13 is a block diagram illustrating an imaging unit and an image processing unit.
  • FIG. 14 is a flowchart of the size measurement mode for measuring the size of the object to be measured.
  • FIG. 15 is an explanatory diagram of an edge image created based on an image captured by the imaging unit.
  • FIG. 16A is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 16B is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 16C is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 16A is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 16B is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 16C is a perspective view showing still another example of the same dimension measuring apparatus.
  • FIG. 17A is a perspective view showing a further application example of the same dimension measuring apparatus.
  • FIG. 17B is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 18A is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 18B is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 19A is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 19B is a perspective view showing a further application example of the same dimension measuring apparatus.
  • FIG. 20A is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 20B is a perspective view showing a further application example of the above-described dimension measuring apparatus.
  • FIG. 21A is a perspective view of a delivery box device equipped with the same dimension measuring device.
  • FIG. 21B is a perspective view illustrating a dimension measuring device used in the
  • the first embodiment relates to a dimension measuring apparatus and a dimension measuring method.
  • image processing is performed on an image of a measurement object captured by the imaging unit, a rectangular parallelepiped storage chamber for storing an object to be measured such as a delivery product, an imaging unit fixed at one vertex of the upper surface of the storage chamber
  • a dimension measuring device including an image processing unit to perform is known (for example, see Japanese Patent Application Laid-Open No. 2006-119792).
  • the first embodiment aims to provide a dimension measuring apparatus that can accurately obtain the size of an object to be measured.
  • the dimension measuring apparatus 101 measures the size of the measurement object 150 such as a delivery item.
  • the size of the device under test 150 is the vertical, horizontal, and height dimensions of the device under test 150.
  • the shape of the DUT 150 is a cube or a rectangular parallelepiped.
  • the dimension measuring device 101 includes a storage chamber 111 as shown in FIG.
  • the storage chamber 111 includes an outer body 1111 that forms an outer surface of the dimension measuring apparatus 101, and an internal space 1112 that is formed inside the outer body 1111.
  • the shape of the outer body 1111 is a rectangular parallelepiped.
  • the outer body 1111 has a lower wall part 120, a side wall part 121, and an upper wall part 125.
  • the side wall 121 of the outer body 1111 is formed with an entrance / exit 1261 which is an opening for allowing the object 150 to be taken in and out of the internal space 1112.
  • the side on which the entrance / exit 1261 is provided is the front F, and the opposite side is the rear B. Then, the right side R and the left side L are defined with reference to when the user stands toward the entrance / exit 1261 of the dimension measuring apparatus 101.
  • the vertical dimension of the DUT 150 is the dimension of the DUT 150 in the front-rear direction.
  • the horizontal dimension of the measurement object 150 is the horizontal dimension of the measurement object 150.
  • the height dimension of the device under test 150 is the vertical dimension of the device under test 150.
  • the lower wall portion 120 is formed in a rectangular shape when viewed from below.
  • a surface on the inner space 1112 side (upper side) of the lower wall portion 120 is a lower surface portion 1201.
  • An object to be measured 150 is placed on the lower surface portion 1201.
  • the side wall 121 has a right wall 122, a left wall 123, and a rear wall 124.
  • the right wall portion 122 extends upward from the right end portion of the lower wall portion 120.
  • the left wall portion 123 extends upward from the left end portion of the lower wall portion 120.
  • the rear wall portion 124 extends upward from the rear end portion of the lower wall portion 120.
  • the right wall portion 122 is formed in a rectangular shape when viewed from the right side.
  • a surface on the inner space 1112 side (left side) is a right surface portion 1221.
  • the left wall 123 is formed in a rectangular shape when viewed from the left.
  • a surface on the internal space 1112 side (right side) is a left surface portion 1231.
  • the rear wall portion 124 is formed in a rectangular shape when viewed from the rear. In the rear wall portion 124, the inner space 1112 side (front side) surface is referred to as a rear surface portion 1241.
  • the upper wall 125 is connected to the upper edge of the right wall 122, the upper edge of the left wall 123, and the upper edge of the rear wall 124.
  • the upper wall portion 125 is formed in a rectangular shape as viewed from above.
  • the inner space 1112 side (lower side) surface is referred to as an upper surface portion 1251.
  • the outer body 1111 has a rectangular parallelepiped shape opened to the front F, and the opening to the front F is defined as an entrance / exit 1261.
  • the outer body 1111 is provided with a door for opening and closing the entrance / exit 1261.
  • the door is attached to the front end portion of the right wall portion 122 and rotates about the front end portion of the right wall portion 122 as a shaft 1262.
  • the door is formed in a rectangular shape when viewed from the front in the closed state.
  • the door constitutes the front wall portion 126 of the outer body 1111 in the closed state.
  • a surface on the internal space 1112 side (rear side) is a front surface portion 1263.
  • the interior space 1112 of the storage chamber 111 is formed by being surrounded by a lower surface portion 1201, a right surface portion 1221, a left surface portion 1231, a rear surface portion 1241, an upper surface portion 1251, and a front surface portion 1263.
  • the internal space 1112 is formed in a rectangular parallelepiped shape.
  • the rear surface portion 1241 is described as a first side surface portion 1242
  • the left surface portion 1231 is described as a second side surface portion 1232.
  • the outer body 1111 has a first corner 112 formed at a portion where the lower surface portion 1201 and the first side surface portion 1242 intersect.
  • the outer body 1111 has a second corner 113 formed at a portion where the lower surface portion 1201 and the second side surface portion 1232 intersect.
  • the outer body 1111 has a third corner 114 formed at a portion where the first side surface portion 1242 and the second side surface portion 1232 intersect.
  • a portion where the first entering corner 112, the second entering corner 113, and the third entering corner 114 intersect with each other is defined as a reference corner 115.
  • a reference point serving as a reference for placing the DUT 150 at a predetermined position is set in the reference corner 115.
  • the measurement object 150 placed in alignment with the reference corner 115 comes into contact with the lower surface 1201, the first side surface 1242, and the second side surface 1232, so that the vertical position, the horizontal position, and the height are measured. Positioning is performed.
  • the position of the object 150 to be measured is a predetermined position of the object 150 to be measured.
  • a marker 116 is provided on the inner surface of the storage chamber 111 as shown in FIG.
  • the marker 116 is provided on the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201.
  • the marker 116 provided on the first side surface portion 1242 is referred to as a first marker 1161
  • the marker 116 provided on the second side surface portion 1232 is referred to as a second marker 1162
  • the marker 116 provided on the lower surface portion 1201 is referred to as a third marker 1163.
  • the marker 116 has a rectangular frame shape.
  • the first marker 1161 is drawn along a line along the third corner 114, and a line parallel to the first corner 112 is drawn from each of the upper end portion and the lower end portion thereof. A line connecting the right ends is drawn.
  • the second marker 1162 is drawn along a line along the third entering corner 114, and a line parallel to the second entering corner 113 is drawn from each of the upper end portion and the lower end portion thereof. A line connecting the front ends is drawn.
  • the third marker 1163 is drawn along the first entering corner 112, and a line parallel to the second entering corner 113 is drawn from each of the left end and the right end thereof, and the front end of each line. A line connecting the two is drawn.
  • the first marker 1161, the second marker 1162, and the third marker 1163 of the first embodiment have the same color tone, but it is preferable that the color tones are different from each other.
  • the color tone means color tone such as lightness and saturation of the color.
  • the dimension measuring apparatus 101 is provided with an imaging unit 103 in a storage chamber 111.
  • the imaging unit 103 is disposed at a position where the entire interior of the storage chamber 111 can be imaged.
  • the imaging unit 103 is installed at a corner formed by the upper surface portion 1251, the right surface portion 1221, and the front surface portion 1263 which are diagonal to the reference corner portion 115.
  • the imaging unit 103 includes a camera body 131 and a lighting tool 132.
  • the camera body 131 a camera capable of imaging the entire interior of the storage chamber 111 is used.
  • the camera body 131 is a camera that can image the entire object to be measured 150, the lower surface portion 1201, the first side surface portion 1242, and the second side surface portion 1232.
  • a CCD (Charge-Coupled Device) camera is used as the camera body 131.
  • a wide-angle lens is used so that the entire interior of the storage chamber 111 can be easily photographed.
  • the illuminator 132 is electrically connected to the control unit of the camera body 131.
  • the lighting tool 132 brightens the inside of the storage chamber 111.
  • the illuminator 132 includes an object to be measured 150, a first entry corner 112, a second entry corner 113, a third entry corner 114, a first marker 1161, a second marker 1162, and a third marker 1163 on the camera body 131.
  • White LED Light Emitting Diode is used for the lighting device 132.
  • the dimension measuring apparatus 101 includes an image processing unit 104 as shown in FIG.
  • the image processing unit 104 includes a microcomputer.
  • the microcomputer has a CPU (Central Processing Unit), a memory, and the like.
  • the microcomputer performs control by the CPU executing a program stored in the memory.
  • the image processing unit 104 performs image processing on the image captured by the imaging unit 103. Further, the image processing unit 104 has a correction mode 141 having a program for correcting an image of the device under test 150 stored in the memory.
  • the image processing unit 104 causes the imaging unit 103 to image the lower surface part 1201, the first side surface part 1242, the second side surface part 1232, and the marker 116 before the DUT 150 is placed in the storage chamber 111. Get the original image. Based on this original image, the correction mode 141 shown in FIG. 3 is started in step S101.
  • noise is removed from the original image (grayscale image) in step S102. Then, filtering is performed based on the luminance value which is one piece of information of the image from which noise has been removed.
  • the correction mode 141 detects an edge by performing binarization on the image on which the filter processing has been performed in step S103.
  • An image subjected to such processing is referred to as a binary image 142 (see FIG. 4).
  • the binary image 142 is a two-dimensional image. Data of the binary image 142 is stored in the memory of the image processing unit 104.
  • step S104 the marker 116 in the binary image 142 is identified by pattern matching based on the shape and luminance value information of the marker 116 acquired in advance.
  • the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201 in the binary image 142 are identified from the first marker 1161, the second marker 1162, and the third marker 1163 identified in step S105. Identify edges.
  • the edges A11 to A19 in the binary image 142 are identified.
  • the correction mode 141 includes internal parameters including optical axis center coordinates, focal length, lens distortion coefficient, and the like that relate the coordinates of the binary image 142 before distortion correction and the binary image 142 after distortion correction. adjust.
  • the internal parameter for example, the position of the intersection of the checkerboard pattern in the checkerboard photographed image whose grid size is known is detected, and the internal parameter is calculated so that the intervals of the intersection are equal.
  • the correction mode in step S ⁇ b> 16, the previously determined internal parameters are used for the storage chamber 111 having a known size and further adjusted to be optimal for the storage chamber 111. In this case, the internal parameter is distortion correction data.
  • step S107 the distortion of the edges A11 to A19 is corrected using the internal parameters, and the edges A11 to A19 are linearized to obtain the corrected binary image 142 shown in FIG.
  • a known method using an internal parameter for example, Japanese Patent Laid-Open No. 2015-35685
  • another known method for example, Japanese Patent Laid-Open No. 2011-25428 described later
  • Publication may be used.
  • the measurement object 150 is disposed at a predetermined position in the storage chamber 111, and the lower surface portion 1201, the first side surface portion 1242, the second side surface portion 1232, the marker 116, and the object to be measured.
  • An image for measurement is acquired by causing the imaging unit 103 to image the measurement object 150.
  • the correction mode 141 acquires a binary image 142 as shown in FIG. 6A by performing noise removal, filtering, and binarization on the measurement image.
  • step S19 the distortions of the edges A11 to A19 and the edges T1 to T8 of the DUT 150 are corrected using internal parameters (distortion correction data).
  • the correction mode 141 acquires the corrected image 144 shown in FIG. 6B in which the edges A11 to A19 and the edges T1 to T8 in the measurement image are corrected.
  • image processing is performed on the binary image 142 corrected in the correction mode 141, and a size measurement mode 143 for measuring the size of the object 150 shown in FIG. 7 is performed.
  • the size measurement mode 143 the first side surface portion 1242 of the corrected binary image 142 in which the measurement object 150 is arranged as shown in FIG. A side view (see FIG. 8A) viewed from the right front is obtained. Further, the size measurement mode 143 includes a first plan view (see FIG. 8B) of the lower surface 1201 of the corrected binary image 142 viewed from above, and a second view of the lower surface 1201 of the corrected binary image 142 viewed from above. A plan view (see FIG. 8C) is obtained.
  • step S113 the pixels arranged along the length direction of the edge A13 in the side view are scanned.
  • a first change amount H1 which is a difference between the length based on the number of pixels from the edge A19 to the edge T8 and the length based on the number of pixels from the edge A19 to the edge A12 is obtained.
  • the size measurement mode 143 also scans pixels arranged along the length direction of the edge A12 in the first plan view. At this time, as shown in FIG. 8B, a second change amount H2 that is a difference between the length based on the number of pixels from the edge A15 to the edge T5 and the length based on the number of pixels from the edge A15 to the edge A11 is obtained.
  • a third change amount H3 which is the difference between the length based on the number of pixels from edge A14 to edge T4 and the length based on the number of pixels from edge A14 to edge A12, is obtained.
  • step S114 shown in FIG. 7 from the ratio between the length based on the number of pixels of the edge A13 in the corrected binary image 142 shown in FIG.
  • the height of the measurement object 150 is obtained based on the one change amount H1.
  • the vertical length of the device under test 150 is obtained based on the second change amount H2
  • the horizontal length of the device under test 150 is obtained based on the third change amount H3.
  • step S116 to step S120 are the same as step S101 to step S105 described above, and thus description thereof is omitted.
  • the edges A11 to A19 and the straight lines corresponding to the edges A11 to A19 are compared to determine the distortion amount Y for the straight lines.
  • the amount of distortion Y is obtained by superimposing a straight virtual line C on the edge A16 (see FIG. 10).
  • the correction mode 141 obtains a correction coefficient K that makes the edge A16 a straight line based on the distortion amount Y.
  • the same operation is performed for the other edges, and the respective correction coefficients K are obtained.
  • the corrected binary image 142 shown in FIG. 6B is obtained by correcting the distortion of the edges A11 to A19 from the respective correction coefficients K and making the edges A11 to A19 linear in step S123. .
  • the correction coefficient K becomes distortion correction data.
  • edges identified by the image processing unit 104 are straight lines that are not easily distorted even when the imaging unit 103 captures images using a wide-angle lens.
  • the distortion amount Y may be obtained by using this.
  • step S124 the measured object 150 is disposed at a predetermined position in the storage chamber 111, and the lower surface portion 1201, the first side surface portion 1242, the second side surface portion 1232, the marker 116, and the object to be measured.
  • the measurement object shown in FIG. 6A is acquired by causing the imaging unit 103 to image the measurement object 150.
  • the correction mode 141 uses the correction coefficient K (distortion correction data) in step S125 to correct the distortion of the edges A11 to A19 and the edges T1 to T8 of the DUT 150 as shown in FIG. 6B.
  • Edges A11 to A19 are corrected with a correction coefficient K corresponding to each.
  • the correction coefficient K of the edge T1 is obtained by regarding the positional relationship of the edge T1 with respect to the edges A13 and A16 and the correction coefficient K of the edge A13 and the correction coefficient K of the edge A16 as a proportional relationship.
  • the correction coefficient K is determined based on the positional relationship with respect to two of the edges A11 to A19.
  • the method of determining the correction coefficients for the edges T1 to T8 is not limited to the method described above.
  • the configuration of the dimension measuring apparatus 101 of the first embodiment is not limited to the above-described one aspect, and may be the following aspect.
  • noise removal of an image captured by the imaging unit 103 may be performed by a moving average filter or a median filter.
  • a Sobel filter or a Prewitt filter is used as a primary difference operator.
  • a secondary difference operator may be used.
  • the binarization of the filtered image may be binarization using a moving average method or binarization using two threshold values.
  • the shape of the marker 116 is not limited to a circular shape or a rectangular shape, and may be another polygonal shape.
  • the shape of the object to be measured 150 is not limited to a cube or a rectangular parallelepiped, and the shape of the three surfaces imaged by the imaging unit 103 may be substantially rectangular.
  • the shape of the outer body 1111 is a rectangular parallelepiped, but may be a cube, and the shape is not limited. Moreover, the shape which has a protrusion partially may be sufficient.
  • the shape of the internal space 1112 is a rectangular parallelepiped, but may be a cube, and the shape is not limited.
  • the reference corner 115 may be any one of four corners formed by the lower surface 1201, the right surface 1221, the left surface 1231, the rear surface 1241, and the front surface 1263.
  • the camera body 131 may be a CMOS (Complementary Metal Metal Oxide Semiconductor) camera.
  • CMOS Complementary Metal Metal Oxide Semiconductor
  • an image to be captured may be grayscale or color.
  • the image picked up by the image pickup unit 103 is color, it is preferable to convert the image into a grayscale image when performing image processing.
  • the control unit of the camera body 131 and the illumination tool 132 are connected, and ON / OFF of the illumination tool 132 is operated by the control unit of the camera body 131, but the illumination tool 132 and the image processing unit 104 are operated. And the lighting device 132 may be operated by the image processing unit 104.
  • control unit of the camera body 131 and the illumination tool 132 may be connected wirelessly.
  • the camera body 131 and the illumination tool 132 may be provided separately.
  • Fluorescent lamps, light bulbs, and other color LEDs may be used for the lighting fixture 132.
  • the lighting device 132 preferably has a color or brightness that allows the image processing unit 104 to easily detect an edge of an image captured by the camera body 131.
  • the edges A11 to A19 corresponding to the sides of the lower surface portion 1201, the first side surface portion 1242, and the second side surface portion 1232 in the binary image 142 can be easily identified. . This facilitates the processing for correcting the distortion of the edges A11 to A19 and the edges T1 to T8 in the binary image 142, so that the measurement of the size of the object 150 can be accelerated.
  • the edges A11 to A19 corresponding to the sides of the lower surface portion 1201, the first side surface portion 1242, and the second side surface portion 1232 are further identified. It becomes easy to do.
  • the dimension measuring apparatus 101 has the following configuration.
  • the dimension measuring apparatus 101 of the first embodiment has the following first feature.
  • the dimension measuring apparatus 101 includes a storage chamber 111 in which the measurement target 150 is detachably stored, and an imaging unit that is provided in the storage chamber 111 and images the measurement target 150 stored in the storage chamber 111.
  • the dimension measuring apparatus 101 includes an image processing unit 104 that performs image processing based on information on an image captured by the imaging unit 103 and measures the size of the measurement object 150.
  • the storage chamber 111 has a rectangular lower surface portion 1201 on which the object 150 to be measured is placed, a rectangular first side surface portion 1242 extending upward from the lower surface portion 1201, and an upper surface extending from the lower surface portion 1201. And a rectangular second side surface portion 1232 adjacent to the first side surface portion 1242.
  • the storage chamber 111 includes a first corner 112 formed by the lower surface portion 1201 and the first side surface portion 1242, a second corner 113 formed by the lower surface portion 1201 and the second side surface portion 1232, and a first side surface portion 1242. And a third entering corner 114 formed by the second side surface portion 1232.
  • the storage chamber 111 is formed at a portion where the first entering corner 112, the second entering corner 113, and the third entering corner 114 intersect, and has a reference corner 115 serving as a reference point at which the DUT 150 is arranged at a predetermined position.
  • the storage chamber 111 includes a marker 116 that displays the positions of the sides of the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201.
  • the distortion in the binary image 142 can be easily corrected by using the marker 116.
  • the dimension measuring apparatus 101 having the first feature has the following additional second feature.
  • the markers 116 are lines, circles or polygons.
  • the marker 116 can be configured easily.
  • the dimension measuring apparatus 101 having the first or second feature has the following additional third feature.
  • the markers 116 provided on different surfaces have different colors.
  • the edges A11 to A19 corresponding to the sides of the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201 in the binary image 142 can be easily identified.
  • the dimension measuring apparatus 101 having the first to third features has the following additional fourth feature.
  • the storage chamber 111 is opposed to the rectangular upper surface portion 1251 extending from the upper edges of the first side surface portion 1242 and the second side surface portion 1232 and the first side surface portion 1242, and the object 150 to be measured And an entrance / exit 1261 for taking in and out the door.
  • the imaging unit 103 is provided at the end of the upper surface 1251 opposite to the reference corner 115 at the end of the entrance / exit 1261.
  • the imaging unit 103 can easily capture the entire lower surface portion 1201, the first side surface portion 1242, the second side surface portion 1232, the measured object 150, and the marker 116.
  • the dimension measuring apparatus 101 having the first to fourth characteristics has the following additional fifth characteristics.
  • the imaging unit 103 includes a lighting device 132 that illuminates the storage chamber 111.
  • the dimension measuring apparatus 101 having the fifth feature, even if the amount of light in the storage chamber 111 is insufficient, the shortage of light amount can be resolved by illuminating the interior of the storage chamber 111 with the illumination tool 132.
  • the dimension measuring apparatus 101 having the first to fifth features has the following additional sixth feature.
  • the object 150 to be measured is disposed at the back corner of the lower surface portion 1201.
  • the imaging unit 103 can easily capture the entire measured object 150.
  • the dimension measuring method of the first embodiment has the following configuration.
  • the dimension measuring method of the first embodiment has the following sixth feature.
  • a storage chamber 111 in which the object to be measured 150 is freely inserted and removed an imaging unit 103 that is provided in the storage chamber 111 and images the object 150 to be stored in the storage chamber 111, and the imaging unit 103
  • An image processing unit 104 that performs image processing based on the information of the image captured in step S ⁇ b> 1 and measures the size of the DUT 150 is used.
  • the storage chamber 111 has a rectangular lower surface portion 1201 on which the object 150 to be measured is placed, a rectangular first side surface portion 1242 extending upward from the lower surface portion 1201, and an upper surface extending from the lower surface portion 1201. And a rectangular second side surface portion 1232 adjacent to the first side surface portion 1242.
  • the storage chamber 111 includes a first corner 112 formed by the lower surface portion 1201 and the first side surface portion 1242, a second corner 113 formed by the lower surface portion 1201 and the second side surface portion 1232, and a first side surface portion 1242. And a third entering corner 114 formed by the second side surface portion 1232.
  • the storage chamber 111 is formed at a portion where the first entering corner 112, the second entering corner 113, and the third entering corner 114 intersect, and has a reference corner 115 serving as a reference point at which the DUT 150 is arranged at a predetermined position.
  • the storage chamber 111 includes a marker 116 that displays the positions of the sides of the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201.
  • the image processing unit 104 creates a binary image 142 by binarizing the image captured by the imaging unit 103 in a state before the DUT 150 is placed in the storage chamber 111.
  • the image processing unit 104 identifies the markers 116 in the binary image 142, and the edges A11 to A11 corresponding to the sides of the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201 in the binary image 142 from the marker 116.
  • A19 is identified, and distortion correction data is created based on the distortion of the edges A11 to A19.
  • the image processing unit 104 creates a binary image 142 by binarizing the image picked up by the image pickup unit 103 in a state where the DUT 150 is placed in the storage chamber 111.
  • the image processing unit 104 obtains the corrected image 144 by correcting the distortion of the edges T1 to T8 of the device under test 150 identified in the binary image 142 based on the distortion correction data.
  • the image processing unit 104 measures the size of the object to be measured 150 by scanning the surface corresponding to the first side surface portion 1242, the second side surface portion 1232, and the lower surface portion 1201 of the corrected image 144.
  • the distortion in the binary image 142 can be easily corrected by using the marker 116.
  • the dimension measuring method having the sixth feature has the following additional seventh feature.
  • the storage chamber 111 faces the rectangular upper surface portion 1251 extending from the upper edges of the first side surface portion 1242 and the second side surface portion 1232, and the first side surface portion 1242, and the DUT 150 And an entrance / exit 1261 for taking in and out the door.
  • the imaging unit 103 is provided at the end of the upper surface 1251 opposite to the reference corner 115 at the end of the entrance / exit 1261.
  • the imaging unit 103 can easily capture the entire bottom surface 1201, the first side surface 1242, the second side surface 1232, the DUT 150, and the marker 116.
  • the marker 116 provided in the dimension measuring apparatus 101 of the first embodiment described above may be in a mode as shown in FIGS. 11A to 11C, for example (this is another example).
  • the dimension measuring apparatus 101 of this other example particularly relates to the shape of the marker 116.
  • a plurality of markers 116 may be provided on the inner surface of the storage chamber 111 as shown in FIG. 11A.
  • the marker 116 has a circular shape.
  • a plurality of first markers 1161 are provided on the first side surface portion 1242.
  • the first markers 1161 are provided at the four corners of the first side surface portion 1242.
  • the second markers 1162 are provided at the four corners of the second side surface portion 1232.
  • the third markers 1163 are provided at the four corners of the lower surface part 1201.
  • a plurality of markers 116 may be provided on the inner surface of the storage chamber 111 as shown in FIG. 11B.
  • the marker 116 has a circular shape, but unlike FIG. 9A, the third marker 1163 provided at the four corners of the lower surface 1201 is not colored.
  • a plurality of markers 116 may be provided on the inner surface of the storage chamber 111 as shown in FIG. 11C.
  • the marker 116 has a circular shape.
  • the first marker 1161 is provided at both end portions of the first side surface portion 1242 opposite to the third entering corner 114.
  • the second marker 1162 is provided at both end portions of the end portion of the second side surface portion 1232 opposite to the third entering corner 114.
  • the third marker 1163 is not provided on the lower surface portion 1201.
  • the marker 116 may be a polygonal shape including a triangular shape as shown in FIG. 11D.
  • the marker 116 may be a recess formed on the inner surface of the storage chamber 111 as shown in FIG. 11E.
  • the marker 116 may be a convex portion formed on the inner surface of the storage chamber 111 as shown in FIG. 11F.
  • the second embodiment of the present invention described below particularly relates to a dimension measuring apparatus that measures the size of an object to be measured based on an image captured by an imaging unit, and a home delivery box apparatus including the dimension measuring apparatus.
  • the dimension measuring apparatus 1 measures the size of the object 80 to be measured.
  • the size of the device under test 80 is the vertical, horizontal, and height dimensions of the device under test 80.
  • the shape of the DUT 80 is a cube or a rectangular parallelepiped.
  • the dimension measuring device 1 includes a storage chamber 11 as shown in FIG.
  • the storage chamber 11 includes an outer body 2 that constitutes an outer shell of the dimension measuring device 1 and an internal space 10 that is formed inside the outer body 2.
  • the shape of the outer body 2 is a rectangular parallelepiped.
  • the outer body 2 has a lower wall portion 21, a side wall portion 22, and an upper wall portion 26.
  • an entrance / exit 12 that is an opening for allowing the object 80 to be taken in and out of the internal space 10 is formed.
  • the side where the doorway 12 is provided is the front F, and the opposite side is the rear B. Then, the right side R and the left side L are defined with reference to the time when the user stands toward the entrance / exit 12 of the dimension measuring device 1.
  • the vertical dimension of the DUT 80 is the dimension of the DUT 80 in the front-rear direction.
  • the horizontal dimension of the measurement object 80 is the horizontal dimension of the measurement object 80.
  • the height dimension of the DUT 80 is the vertical dimension of the DUT 80.
  • the lower wall portion 21 is formed in a rectangular shape when viewed from below.
  • a surface on the inner space 10 side (upper side) of the lower wall portion 21 is a lower surface portion 20.
  • An object 80 to be measured is placed on the lower surface portion 20.
  • the side wall part 22 has a right wall part 23, a left wall part 24 and a rear wall part 25.
  • the right wall portion 23 extends upward from the right end portion of the lower wall portion 21.
  • the left wall portion 24 extends upward from the left end portion of the lower wall portion 21.
  • the rear wall portion 25 extends upward from the rear end portion of the lower wall portion 21.
  • the right wall portion 23 is formed in a rectangular shape when viewed from the right side.
  • the surface on the inner space 10 side (left side) is defined as a right surface portion 23a.
  • the left wall portion 24 is formed in a rectangular shape when viewed from the left.
  • the surface on the inner space 10 side (right side) is defined as a left surface portion 24b.
  • the rear wall portion 25 is formed in a rectangular shape when viewed from the rear.
  • the surface on the internal space 10 side (front side) is defined as a rear surface portion 25b.
  • the upper wall portion 26 is connected to the upper edge portion of the right wall portion 23, the upper edge portion of the left wall portion 24, and the upper edge portion of the rear wall portion 25.
  • the upper wall portion 26 is formed in a rectangular shape as viewed from above.
  • the surface on the inner space 10 side (lower side) is defined as an upper surface portion 26a.
  • the outer body 2 has a rectangular parallelepiped shape opened to the front, and the front opening is defined as the entrance 12.
  • the outer body 2 is provided with a door 13 for opening and closing the entrance 12.
  • the door 13 is attached to the front end portion of the right wall portion 23 and rotates around the front end portion of the right wall portion 23 as an axis.
  • the door 13 is formed in a rectangular shape when viewed from the front in the closed state. Further, the door 13 constitutes a front wall portion 27 of the outer body 2 in a closed state.
  • the surface on the internal space 10 side (rear side) is defined as a front surface portion 27a.
  • the inner space 10 of the storage chamber 11 is formed by being surrounded by a lower surface portion 20, a right surface portion 23a, a left surface portion 24b, a rear surface portion 25b, an upper surface portion 26a, and a front surface portion 27a.
  • the internal space 10 is formed in a rectangular parallelepiped shape.
  • a reference point serving as a reference for placing the object 80 to be measured at a predetermined position is set.
  • the reference point of the second embodiment is a left back corner formed by the lower surface portion 20, the rear surface portion 25b, and the left surface portion 24b.
  • the side where the rear surface part 25b is provided is the first side 20a
  • the side where the left surface part 24b is provided is the second side 20b.
  • the first side 20a and the second side 20b are linear.
  • the first side 20a and the second side 20b are orthogonal to each other.
  • the rear surface portion 25b is described as a first side surface portion 25a
  • the left surface portion 24b is described as a second side surface portion 24a.
  • the outer body 2 has a first corner 31 formed at a portion where the lower surface portion 20 and the first side surface portion 25a intersect each other.
  • the outer body 2 has a second corner 32 formed at a portion where the lower surface portion 20 and the second side surface portion 24a intersect each other.
  • the outer body 2 has a third corner 33 formed at a portion where the first side surface portion 25a and the second side surface portion 24a intersect each other.
  • a portion where the first entering corner 31, the second entering corner 32, and the third entering corner 33 intersect is defined as a reference corner portion 30.
  • the measurement object 80 placed in alignment with the reference corner 30 comes into contact with the lower surface portion 20, the first side surface portion 25 a, and the second side surface portion 24 a, so that the vertical position, the horizontal position, and the height are measured. Positioning is performed.
  • the position of the object 80 to be measured is a predetermined position of the object 80 to be measured.
  • a reference line 4 is drawn as a reference for measuring the object 80 to be measured arranged at a predetermined position.
  • a straight line such as a third line 53 (see FIG. 19B) parallel to the direction is used.
  • the reference line 4 functions as a marker that displays the positions of the sides of the first side surface portion 25a, the second side surface portion 24a, and the lower surface portion 20.
  • the first line 51 is drawn to either one or both of the lower surface portion 20 and the first side surface portion 25a.
  • the first line 51 When the first line 51 is drawn to the lower surface portion 20, the first line 51 extends rightward from the second corner 32.
  • the first line 51 is arranged at a predetermined distance forward from the first corner 31. Further, a color different from that of the lower surface portion 20 is used for the first line 51.
  • the color of the first line 51 is a color whose luminance value is far from the luminance value of the lower surface portion 20.
  • the first line 51 When the first line 51 is drawn to the first side surface portion 25a, the first line 51 extends rightward from the third corner 33.
  • the first line 51 is disposed at a predetermined distance upward from the first corner 31.
  • a color different from the color of the surface of the first side surface portion 25a is used for the first line 51.
  • a color whose luminance value is far from the luminance value of the color of the surface of the first side surface portion 25a is used for the color of the first line 51.
  • the second line 52 is drawn to either one or both of the lower surface portion 20 and the second side surface portion 24a.
  • the second line 52 extends forward from the first corner 31 when drawn to the lower surface portion 20.
  • the second line 52 is arranged at a predetermined distance from the second corner 32 to the right. Further, a color different from that of the lower surface portion 20 is used for the second line 52. In particular, as the color of the second line 52, a color whose luminance value is far from the luminance value of the lower surface portion 20 is used.
  • the second line 52 When the second line 52 is pulled by the second side surface portion 24a, the second line 52 extends forward from the third corner 33.
  • the second line 52 is disposed at a predetermined distance upward from the second entering corner 32. Further, a color different from the color of the surface of the second side surface portion 24a is used for the second line 52.
  • the color of the second line 52 is a color whose luminance value is far from the luminance value of the surface color of the second side surface portion 24a.
  • the third line 53 is drawn to either one or both of the first side surface portion 25a and the second side surface portion 24a.
  • the third line 53 extends upward from the first corner 31 when pulled by the first side face portion 25a.
  • the third line 53 is arranged at a predetermined distance from the third corner 33 to the right.
  • the third line 53 uses a color different from that of the first side surface portion 25a.
  • the color of the third line 53 is a color whose luminance value is far from the luminance value of the first side surface portion 25a.
  • the third line 53 extends upward from the second corner 32 when drawn to the second side surface portion 24a.
  • the third line 53 is arranged with a predetermined distance forward from the third corner 33.
  • a color different from the color of the surface of the third side surface portion is used for the third line 53.
  • a color whose luminance value is far from the luminance value of the surface color of the second side surface portion 24a is used for the color of the third line 53.
  • a solid line is preferably used as the line type of the reference line 4.
  • a reference line 4 (hereinafter referred to as a first reference line 41) is drawn on the lower surface portion 20, as shown in FIG.
  • the first reference line 41 is L-shaped when viewed from above.
  • the first reference line 41 is a line obtained by combining the first line 51 and the second line 52. In the first reference line 41, the first line 51 and the second line 52 intersect at a right angle.
  • a plurality of first reference lines 41 are drawn on the lower surface portion 20.
  • five first reference lines 41 are drawn on the lower surface portion 20.
  • the plurality of first reference lines 41 are arranged at equal intervals.
  • the first lines 51 of the first reference line 41 of the second embodiment are arranged at equal intervals forward from the reference corner 30.
  • the first lines 51 of the plurality of first reference lines 41 are arranged at an interval of 5 cm.
  • Table 1 shows the relationship between the order from the reference corner 30 of the first line 51 of the first reference line 41 and the distance from the first corner 31 at that position.
  • the second lines 52 of the first reference line 41 of the second embodiment are arranged at equal intervals from the reference corner 30 to the right.
  • the second lines 52 of the plurality of first reference lines 41 are arranged at intervals of 5 cm.
  • Table 2 shows the relationship between the order from the reference corner 30 of the second line 52 of the first reference line 41 and the distance from the second entering corner 32 at that position.
  • a reference line 4 (hereinafter referred to as a second reference line 42) is drawn on the first side face portion 25a.
  • the second reference line 42 is the first line 51.
  • a plurality of second reference lines 42 are drawn on the first side surface portion 25a.
  • six second reference lines 42 are drawn on the first side surface portion 25a.
  • the plurality of second reference lines 42 are arranged at equal intervals.
  • the second reference lines 42 of the second embodiment are arranged at equal intervals upward from the reference corner 30.
  • the plurality of second reference lines 42 are arranged at intervals of 5 cm.
  • Table 3 shows the relationship between the order from the reference corner 30 of the second reference line 42 and the distance from the first corner 31 at that position.
  • a reference line 4 (hereinafter referred to as a third reference line 43) is drawn on the second side surface portion 24a.
  • the third reference line 43 is the second line 52.
  • a plurality of third reference lines 43 are drawn on the second side surface portion 24a.
  • six third reference lines 43 are drawn on the second side surface portion 24a.
  • the plurality of third reference lines 43 are arranged at equal intervals.
  • the third reference lines 43 of the second embodiment are arranged at equal intervals upward from the reference corner 30.
  • the plurality of third reference lines 43 are arranged at intervals of 5 cm.
  • Table 4 shows the relationship between the order of the third reference line 43 from the reference corner 30 and the distance from the second corner 32 at that position.
  • the first line 51 and the second line 52 among the first line 51, the second line 52, and the third line 53 are used in the storage chamber 11 of the second embodiment. Yes.
  • the dimension measuring apparatus 1 is provided with an imaging unit 6 in the storage chamber 11.
  • the imaging unit 6 is disposed at a position where the entire interior of the storage chamber 11 can be imaged.
  • the imaging unit 6 is installed at a corner formed by the upper surface portion 26a, the right surface portion 23a, and the front surface portion 27a.
  • the imaging unit 6 includes a camera body 61 and a lighting tool 62 as shown in FIGS.
  • the camera body 61 is a camera that can image the entire interior of the storage chamber 11.
  • the camera body 61 is a camera that can image the entire object 80, the lower surface portion 20, the first side surface portion 25a, and the second side surface portion 24a.
  • the camera body 61 is a CCD (Charge-Coupled Device) camera.
  • a wide-angle lens is used so that the entire interior of the storage chamber 11 can be easily photographed.
  • the illuminator 62 is electrically connected to the control unit of the camera body 61.
  • the lighting tool 62 brightens the inside of the storage chamber 11.
  • the illuminator 62 includes a device under test 80, a first entry corner 31, a second entry corner 32, a third entry corner 33, a first line 51, a second line 52, and a third line 53. It is used for causing the main body 61 to clearly capture an image.
  • a white LED Light Emitting Diode
  • the dimension measuring apparatus 1 has an image processing unit 7 as shown in FIG.
  • the image processing unit 7 includes a microcomputer.
  • the microcomputer has a CPU (Central Processing Unit), a memory, and the like.
  • the microcomputer performs control by the CPU executing a program stored in the memory.
  • the image processing unit 7 image processing is performed on the image captured by the imaging unit 6.
  • the image processing unit 7 also has a size measurement mode 71 having a program for obtaining the size of the device under test 80 stored in the memory.
  • the edges and vertices of the image captured by the imaging unit 6 are detected, and the vertical, horizontal, and height dimensions of the DUT 80 are obtained based on the detected edges and vertices.
  • the data in Table 1, the data in Table 2, the data in Table 3, and the data in Table 4 are written in advance in the memory of the image processing unit 7 by the designer.
  • the size measurement mode 71 is started in step S1.
  • step S2 the lighting fixture 62 is turned on to adjust the brightness of the storage chamber 11.
  • step S ⁇ b> 3 the imaging unit 6 is caused to image the inside of the storage chamber 11, thereby acquiring an image in which the inner surface of the storage chamber 11 and the measurement object 80 are captured.
  • step S4 noise removal is performed on the captured image (grayscale image). Then, filtering is performed based on the luminance value, which is one piece of information of the image from which noise has been removed, to detect edges.
  • step S4 the binarization is performed on the filtered image, so that the edge becomes clear.
  • An image subjected to such processing is defined as an edge image 60 (see FIG. 15).
  • the edge image 60 is a two-dimensional image.
  • the data of the edge image 60 is stored in the memory of the image processing unit 7.
  • step S5 edges and vertices of the measurement object 80 on the image are detected from the edge image 60 shown in FIG.
  • the edge and vertex detection method will be described.
  • the upper side of the imaging unit 6 is upward and the lower side is downward with respect to the state in which the imaging unit 6 is opposed to the measurement object 80 and the measurement object 80 is viewed from the imaging unit 6.
  • the right side is defined as the right direction and the left side as the left direction.
  • step S5 a polygon (hexagon) surrounded by six edges is detected in the edge image 60.
  • step S5 a hexagon in which each edge extending from three vertices of six hexagonal vertices intersects at one point is detected from the detected hexagons.
  • An object 80 to be measured on the edge image 60 is represented by six edges constituting the hexagon and three edges extending from three vertices.
  • step S5 the six edges constituting the hexagon are changed to the edge E1, the edge E2, the edge E3, the edge E4, the edge E5, and the edge E6 in the clockwise direction from the upper right edge.
  • the intersection of the edge E1 and the edge E2 is the vertex P1
  • the intersection of the edge E2 and the edge E3 is the vertex P2
  • the intersection of the edge E3 and the edge E4 is the vertex P3.
  • the intersection of the edge E4 and the edge E5 is the vertex P4
  • the intersection of the edge E5 and the edge E6 is the vertex P5
  • the intersection of the edge E6 and the edge E1 is the vertex P6.
  • step S5 the intersection point of the edge E7 extending from the vertex P1, the edge E8 extending from the vertex P3, and the edge E9 extending from the vertex P5 is set as the vertex P0.
  • step S6 vertices and edges of the outer body 2 are detected from the edge image 60 shown in FIG.
  • step S6 an edge A1 extending obliquely downward to the right from the vertex P2 is detected as the edge of the outer body 2.
  • step S6 an edge A2 extending obliquely downward to the left from the vertex P4 is detected as the edge of the outer body 2.
  • step S6 an edge A3 extending upward from the vertex P6 is detected as the edge of the outer body 2.
  • step S6 the end of the outer body 2 opposite to the vertex P2 in the edge A1 is set as the vertex S1.
  • step 6 the end of the outer body 2 opposite to the vertex P4 at the edge A2 is set as the vertex S2.
  • step 6 the end of the outer body 2 opposite to the vertex P6 at the edge A3 is set as the vertex S3.
  • step S6 the intersection of the edge A4 extending diagonally downward to the left from the vertex S1 and the edge A5 extending diagonally downward to the right from the vertex S2 as the vertex of the outer body 2 is defined as the vertex S4.
  • step S6 the end on the opposite side to the vertex S1 of the edge A6 extending upward from the vertex S1 as the vertex of the outer body 2 is detected as the vertex S5.
  • step 6 the end of the edge A7 that extends upward from the vertex S2 as the vertex of the outer body 2 is the vertex S6 opposite to the vertex S1.
  • step S6 the edge from the vertex S5 to the vertex S3 is detected as the edge A8 as the edge of the outer body 2.
  • step S6 the edge from the vertex S6 to the vertex S3 is detected as the edge A9 as the edge of the outer body 2.
  • step S7 the edge of the reference line 4 is detected from the edge image 60 shown in FIG.
  • step S7 as an edge of the reference line 4, an edge L1 parallel to the edge A1 is detected at edges other than the edges E1 to E9 and the edges A1 to A9.
  • step S7 as an edge of the reference line 4, an edge L2 parallel to the edge A2 is detected at edges other than the edges E1 to E9 and the edges A1 to A9.
  • step S8 the vertical dimension of the DUT 80 is obtained from the detection result based on the edge image 60 and the data shown in Table 1.
  • step S8 it is detected that the vertex P4 is located between the third edge L1 and the fourth edge L1 from the vertex S2 in the plurality of edges L1 between the edge A1 and the edge A5. From this detection result and the data of the order of the first line 51 in Table 1, it is determined in step S8 that the vertex P2 is located between the second edge L1 and the third edge L1 from the reference corner 30. .
  • step S8 based on Table 1, the vertical dimension of the DUT 80 is determined to be in the range of 10 to 15 cm.
  • step S9 the horizontal dimension of the DUT 80 is obtained from the detection result based on the edge image 60 and the data in Table 2.
  • step S9 it is detected that the vertex P2 is located between the third edge L2 and the fourth edge L2 from the vertex S1 in the plurality of edges L2 between the edge A2 and the edge A4. From this detection result and the data of the order of the second line 52 in Table 2, in step S9, it is determined that the vertex P2 is located between the second edge L2 and the third edge L2 from the reference corner 30. .
  • step S9 based on Table 2, the horizontal dimension of the DUT 80 is determined to be in the range of 10 to 15 cm.
  • step S10 the height dimension of the measurement object 80 is obtained from the detection result based on the edge image 60 and the data in Table 3.
  • step S10 it is detected that the vertex P6 is located between the fourth edge L1 and the fifth edge L1 from the vertex S3 in the plurality of edges L1 between the edge A1 and the edge A8. From this detection result and the data of the order of the first line 51 in Table 3, it is determined in step S10 that the vertex P6 is located between the second edge L1 and the third edge L1 from the reference corner 30. .
  • step 10 based on Table 3, the height dimension of the DUT 80 is determined to be in the range of 10 to 15 cm.
  • the size measurement mode 71 proceeds to step S11 and ends.
  • the intervals between the plurality of first reference lines 41 are set to 5 cm
  • the intervals between the plurality of second reference lines 42 are set to 5 cm
  • the intervals between the plurality of third reference lines 43 are set to 5 cm.
  • the measurement accuracy of the dimension of the dimension measuring apparatus 1 can be improved by narrowing the interval therebetween.
  • the configuration of the dimension measuring apparatus 1 of the second embodiment is not limited to the above-described one aspect, and may be the following aspect.
  • the reference line 4 is selected from the lower surface portion 20, the first side surface portion 25a, and the second side surface portion 24a as shown in FIG. 16A. There may be one surface that is not provided.
  • the interval between the first lines 51 in the plurality of first reference lines 41 may not be 5 cm.
  • the interval between the second lines 52 in the plurality of first reference lines 41 may not be 5 cm.
  • the interval between the plurality of second reference lines 42 may not be 5 cm.
  • the interval between the plurality of third reference lines 43 may not be 5 cm.
  • the intervals between the first lines 51 in the plurality of first reference lines 41 do not have to be equal, and it is only necessary to know the distances from the respective first corners 31.
  • the intervals between the second lines 52 in the plurality of first reference lines 41 do not have to be equal, and it is only necessary to know the distance from each second corner 32.
  • the intervals between the plurality of second reference lines 42 do not have to be equal, and it is only necessary to know the distance from each first corner 31.
  • the intervals between the plurality of third reference lines 43 do not have to be equal, and it is only necessary to know the distances from the respective second corners 32.
  • the dimension measuring apparatus 1 has one first line 51 drawn on the lower surface portion 20, one third line 53 drawn on the first side surface portion 25 a, and the second It may be a dimension measuring device in which one second line 52 is drawn on the side surface portion 24a.
  • the dimension measuring apparatus 1 for example, if any of the vertical, horizontal, and height dimensions of the object 80 to be measured is equal to or larger than the reference line 4, it is determined as the L size. It is divided into S size and size.
  • the dimension measuring apparatus 1 it is sufficient that at least one of the first line 51, the second line 52, and the third line 53 is used. For example, as shown in FIG. A dimension measuring device in which one line 52 is drawn may be used. In this case, in the dimension measuring apparatus 1, the measurement object 80 is sized according to whether the height of the measurement object 80 is greater than or less than a predetermined dimension.
  • the line type of the reference line 4 may be not only a solid line but also a line type line such as a dotted line or a chain line.
  • the dotted line has an interval such that the interval between the points is several times larger than the size of the point. It may be a large dotted line.
  • the first line 51 may be extended from a position away from the second entering corner 32 or the third entering corner 33.
  • the second line 52 may extend from a position away from the first corner 31 or the third corner 33.
  • the third line 53 may be extended from a position away from the first corner 31 or the second corner 32.
  • the shape of the measurement object 80 is not limited to a cube or a rectangular parallelepiped, and the shape of the three surfaces imaged by the imaging unit 6 may be a rectangular shape.
  • the shape of the outer body 2 is a rectangular parallelepiped, but may be a cube, and the shape is not limited.
  • the shape of the internal space 10 is a rectangular parallelepiped shape, but may be a cubic shape, and the shape is not limited.
  • the reference corner 30 may be any one of the four corners formed by the lower surface 20, the right surface 23a, the left surface 24b, the rear surface 25b, and the front surface 27a.
  • the first side 20a may not be the rear side of the lower surface portion 20
  • the second side 20b may not be the left side of the lower surface portion 20
  • the first side surface portion 25a is not the rear surface portion 25b.
  • the second side surface portion 24a may not be the left surface portion 24b.
  • the rear side of the lower surface portion 20 is the first side 20a
  • the right side of the lower surface portion 20 is the second side.
  • Side 20b is the rear surface portion 25b
  • the right surface portion 23a is the second side surface portion 24a.
  • the imaging unit 6 images at least the reference line 4, the vertices P0 to P6 and the edges E1 to E9 of the object 80, the edges A1 to A7 of the storage chamber 11, and the vertices S1, vertices S2, and S4 of the storage chamber 11. What is necessary is just to arrange
  • the camera body 61 may be a CMOS (Complementary Metal Oxide Semiconductor) camera.
  • CMOS Complementary Metal Oxide Semiconductor
  • the image to be captured may be grayscale or color.
  • the image picked up by the image pickup unit 6 is color, it is preferable to convert the image into a gray scale image when performing image processing.
  • the control unit of the camera body 61 and the illumination tool 62 are connected, and ON / OFF of the illumination tool 62 is operated by the control unit of the camera body 61, but the illumination tool 62 and the image processing unit 7 are operated. And the lighting device 62 may be operated by the image processing unit 7.
  • control unit of the camera body 61 and the lighting fixture 62 may be connected wirelessly.
  • the camera body 61 and the lighting fixture 62 may be provided separately.
  • Fluorescent lamps, light bulbs, and other color LEDs may be used for the lighting fixture 62.
  • the illumination tool 62 preferably has a color or brightness that allows the image processing unit 7 to easily detect an edge of an image captured by the camera body 61.
  • the size measurement mode 71 is not limited to the processing of the flowchart shown in FIG.
  • the vertex P0 on the edge image 60 is indicated by a marker or the like, thereby detecting the vertex or edge of the object 80 and the edge of the reference line 4, and measuring the size of the object 80. May be.
  • the processing in the size measurement mode 71 may be processing that detects only edges from the image captured by the imaging unit 6 and does not detect vertices.
  • the size is determined by detecting the number of the edge L1 between the edge E1.
  • noise removal of an image captured by the imaging unit 6 may be performed by a moving average filter or a median filter.
  • a Sobel filter or a Prewitt filter is used as a primary difference operator.
  • a secondary difference operator may be used.
  • the binarization of the filtered image may be binarization using a moving average method or binarization using two threshold values.
  • the hexagon detected in the size measurement mode 71 may be a regular hexagon or an irregular hexagon.
  • the first line 51, the second line 52, and the third line 53, which are the reference lines 4 are drawn in the storage chamber 11, and the measured object is based on them. Measure 80 sizes. Therefore, in the dimension measuring apparatus 1, even if distortion occurs in the image captured by the imaging unit 6, it is possible to suppress a decrease in the measurement accuracy of the size of the measurement object 80.
  • the internal space 10 of the image capturing unit 6 can be imaged widely, but the captured image is distorted, thereby suppressing a decrease in measurement accuracy. High effect.
  • the distance between the camera body 61 and the object 80 to be measured is shortened, and the captured image is greatly distorted. .
  • the size of the DUT 80 is measured in detail by measuring the vertical, horizontal, and height of the DUT 80 using the plurality of first lines 51 and the plurality of second lines 52. Can be requested. In addition, by providing any one of the first line 51, the second line 52, or the third line 53 in the storage chamber 11, a specific dimension among the vertical, horizontal, and height of the object 80 to be measured. Can also be requested.
  • the coordinates of the vertex of the object 80 to be measured in the image are obtained, and the vertical, horizontal and height dimensions of the object 80 in the image are calculated from these coordinates. It was necessary to convert the dimensions to the dimensions of the object 80 to be measured in real space.
  • the object 80 in the dimension measuring apparatus 1 of the second embodiment, is measured from the positional relationship between the vertex P2 and the edge L2, the vertex P4 and the edge L1, and the vertex P6 and the edge L1 on the edge image 60. Can be measured.
  • the dimension measuring apparatus 1 according to the second embodiment can measure the size of the measurement object 80 more easily than the conventional dimension measuring apparatus 1.
  • the dimension measuring apparatus 1 has the following configuration.
  • the dimension measuring device 1 of the second embodiment has the following first feature.
  • the dimension measuring device 1 includes the following first feature.
  • the dimension measuring apparatus 1 includes a storage chamber 11 in which a measurement object 80 is freely inserted and removed, and an imaging unit that is provided in the storage chamber 11 and images the measurement object 80 stored in the storage chamber 11. 6.
  • the dimension measuring apparatus 1 includes an image processing unit 7 that performs image processing based on information of an image captured by the imaging unit 6 and measures the size of the object 80 to be measured.
  • the storage chamber 11 has a rectangular lower surface portion 20 on which the object 80 to be measured is placed, a rectangular first side surface portion 25 a extending upward from the lower surface portion 20, and extending upward from the lower surface portion 20.
  • the storage chamber 11 includes a first corner 31 formed by the lower surface 20 and the first side surface 25a, a second corner 32 formed by the lower surface 20 and the second side surface 24a, and a first side surface 25a. And a third entering corner 33 formed by the second side surface portion 24a.
  • the storage chamber 11 has a reference corner 30 that is formed at a portion where the first input corner 31, the second input corner 32, and the third input corner 33 intersect with each other and serves as a reference point for placing the object 80 to be measured at a predetermined position.
  • the storage chamber 11 has a marker (reference line 4) for displaying the positions of the sides of the first side surface portion 25a, the second side surface portion 24a, and the lower surface portion 20.
  • the marker (reference line 4) is parallel to the length direction of the first corner 31 and includes a first line 51 provided on either one or both of the lower surface portion 20 and the first side surface portion 25a, and a second line.
  • the image captured by the imaging unit 6 is distorted by measuring the size of the measurement object 80 with reference to the reference line 4 provided in the storage chamber 11. Even if it occurs, a decrease in the measurement accuracy of the size of the measurement object 80 can be suppressed. Moreover, in the dimension measuring apparatus 1 having the first feature, by using the marker (reference line 4), the sides of the first side surface portion 25a, the second side surface portion 24a, and the lower surface portion 20 can be easily recognized.
  • the dimension measuring apparatus 1 having the first feature of the second embodiment has the following additional second feature.
  • the reference line 4 includes at least two of the first line 51, the second line 52, and the third line 53.
  • the measurement object 80 can be measured in more detail. Can be sized.
  • the dimension measuring apparatus 1 having the first and second features of the second embodiment has the following additional third feature.
  • the imaging unit 6 includes a lighting tool 62 that illuminates the storage chamber 11.
  • the dimension measuring apparatus 1 having the third feature, even if the amount of light in the storage chamber 11 is insufficient, the shortage of light amount can be resolved by illuminating the interior of the storage chamber 11 with the illumination tool 62.
  • the first line 51, the second line 52, or the third line is provided on at least one of the lower surface portion 20, the first side surface portion 25a, or the second side surface portion 24a.
  • a pattern using the line 53 is formed.
  • a pattern is formed on the lower surface portion 20 using the first line 51 and the second line 52 as shown in FIGS. 17A and 17B.
  • the pattern of the lower surface portion 20 illustrated in FIG. 17A is a first pattern 20c
  • the pattern of the lower surface portion 20 illustrated in FIG. 17B is a second pattern 20d.
  • the first pattern 20c is the same as the first reference line 41 shown in the second embodiment as shown in FIG. 17A. That is, the first line 51 and the second line 52 are combined.
  • the first reference line 41 includes a first line 51 protruding rightward from the second entering corner 32, and a second line 52 protruding from the protruding tip of the first line to the first entering corner 31. .
  • a plurality of first reference lines 41 are arranged diagonally to the right from the reference corner 30.
  • first lines 51 in the first reference line 41 are arranged forward from the reference corner 30 and the length of each first line 51 is located on the front side. It will be about 51 longer.
  • a plurality of second lines 52 in the first reference line 41 are arranged from the reference corner 30 to the right, and the length of each second line 52 is located on the right side. Line 52 becomes longer.
  • Such a first pattern 20c is formed on the lower surface portion 20, whereby a visual effect that makes it easy for the user to grasp the position of the reference corner portion 30 of the dimension measuring device 1 can be generated.
  • the visual effect on the user can be increased by coloring between the plurality of first reference lines 41.
  • the luminance value of the color is preferably significantly different from the luminance value of the first line 51 and the luminance value of the second line 52.
  • the second pattern 20d is different from the first pattern 20c in which the first line 51 and the second line 52 are combined as shown in FIG. 17B.
  • a plurality of first lines 51 are arranged forward from the reference corner 30 and each first line 51 extends from the second corner 32 to the opposite corner.
  • a plurality of second lines 52 are arranged from the reference corner 30 to the right, and each second line 52 extends from the first corner 31 to the opposite corner.
  • the second pattern 20d is a lattice-like pattern with a plurality of first lines 51 and a plurality of second lines 52.
  • the plurality of lattices 20e are arranged in the left-right direction, and the plurality of lattices 20e are arranged in the front-rear direction.
  • the second pattern 20d functions as a grid line, and it is easy to understand that the user placed the object 80 to be measured obliquely. . Thereby, it is possible to generate a visual effect for the user to correctly align with the reference corner 30 of the dimension measuring device 1.
  • the detection accuracy of the first line 51 and the second line 52 can be increased by coloring the plurality of lattices 20e.
  • every other grid 20e arranged in the front-rear direction is colored every other corner from the first corner 31.
  • every other grid 20e arranged in the left-right direction is colored every other corner from the second corner 32.
  • the luminance value of the color is preferably significantly different from the luminance value of the first line 51 and the luminance value of the second line 52.
  • a pattern is formed on the first side face portion 25a using the first line 51 or the third line 53.
  • the pattern of the first side surface portion 25a shown in FIG. 19A is a third pattern 25c
  • the pattern of the first side surface portion 25a shown in FIG. 19B is a fourth pattern 25d.
  • the third pattern 25c is a pattern formed by the first line 51 as shown in FIG. 19A.
  • a plurality of first lines 51 are arranged upward from the reference corner 30, and each first line 51 extends from the third corner 33 to the opposite corner.
  • a third pattern 25c as shown in FIG. 20A, by adding a color between the plurality of first lines 51, the detection accuracy of the first lines 51 can be enhanced.
  • every other 1st line 51 arranged in the up-down direction is colored every other from the 1st entering corner 31.
  • the luminance value of the color is preferably greatly different from the luminance value of the first line 51.
  • the fourth pattern 25d is a pattern in which the first line 51 and the third line 53 are combined, and has the same lattice pattern as the second pattern 20d.
  • a plurality of first lines 51 are arranged upward from the reference corner 30 and each first line 51 extends from the third corner 33 to the opposite corner.
  • a plurality of third lines 53 are arranged from the reference corner 30 to the right, and each third line 53 extends from the first corner 31 to the opposite corner.
  • the fourth pattern 25d is a lattice-like pattern with a plurality of first lines 51 and a plurality of third lines 53.
  • the plurality of lattices 25e are arranged in the left-right direction, and the plurality of lattices 25e are arranged in the up-down direction.
  • the detection accuracy of the first line 51 and the third line 53 can be increased by coloring the plurality of lattices 25e.
  • the fourth pattern 25d it is preferable that every other grid 25e arranged in the left-right direction is colored every other corner from the third corner 33.
  • every other grid 25e arranged in the vertical direction is colored every other corner from the first corner 31.
  • the luminance value of the color is preferably significantly different from the luminance values of the first line 51 and the third line 53.
  • the configuration of the dimension measuring apparatus 1 of the application example of the second embodiment is not limited to the above-described one aspect, and may be the following aspect.
  • the first pattern 20c and the third pattern 25c or the fourth pattern 25d may be combined.
  • the second pattern 20d and the third pattern 25c or the fourth pattern 25d may be combined.
  • the portions to be colored may be reversed.
  • the side wall portion 22 on which the third pattern 25 c and the fourth pattern 25 d are formed is preferably the first side surface portion 25 a facing the doorway 12, but the second side surface instead of the first side surface portion 25 a.
  • a pattern may be formed on the portion 24a.
  • the third pattern 25c may be formed on the first side surface portion 25a, and the fourth pattern 25d may be formed on the second side surface portion 24a, or vice versa. .
  • FIG. 21A and FIG. 21B the same parts as those in the above-described second embodiment and the application example of the second embodiment are denoted by the same reference numerals, description thereof is omitted, and different parts are described.
  • the delivery box device 9 is a public delivery box device that is installed in a number of different public places that can be used by unspecified people and that can be used by unspecified number of people to deliver home deliverables. .
  • the home delivery box device 9 includes the above-described dimension measuring device 1 and a plurality of types of home delivery storage units 91 having different sizes.
  • the home delivery box device 9 selects the home delivery item, which is the measurement object 80 measured by the dimension measuring device 1, from among a plurality of home delivery storage units 91 having different sizes according to the size of the home delivery item 91. It is a device to store in.
  • the home delivery box device 9 has a home delivery storage unit 91 of two kinds of sizes.
  • the two types of delivery items storage units 91 have the same shape and size when viewed from above the respective storage spaces 92.
  • the height dimensions when viewed from the front of the respective storage spaces 92 are different.
  • the two types of delivery delivery storage units 91 include a first delivery delivery storage unit 91a having a high height, a second delivery delivery storage unit 91b having a lower height than the first delivery delivery storage unit 91a, There is.
  • the dimension measurement device 1 measures the vertical, horizontal, and height dimensions of the delivery item, and the optimum one of the two types of first delivery delivery unit 91a and second delivery delivery unit 91b.
  • the home delivery storage unit 91 is selected.
  • the door is automatically opened to notify the user of the position. In this way, in the home delivery box device 9, the home delivery is stored in the home delivery storage unit 91 suitable for the home delivery by the user.
  • the configuration of the home delivery box device 9 is not limited to the one aspect described above, and may be the following aspect.
  • the delivery box device 9 may be installed and used in a private place (non-public place) that can be used only by a limited number of specific people.
  • the first delivery product storage unit 91a and the second delivery product storage unit 91b have the same storage space 92 in depth and left and right dimensions, and have different storage space 92 heights. Therefore, in the dimension measuring apparatus 1, as shown in FIG. 21B, only one second line 52 may be drawn on the second side surface portion 24a. In this case, if the height of the delivery item is lower than the second line 52 of the second side surface portion 24a, the second delivery item storage unit 91b is selected. If the height of the delivery item is equal to or higher than the second line 52 of the second side surface 24a, the first delivery item storage unit 91a is selected.
  • the plurality of types of delivery delivery storage units 91 may include not only the first delivery delivery storage unit 91a and the second delivery delivery storage unit 91b but also three or more types of delivery delivery storage units 91 having different heights.
  • the plurality of types of home delivery storage units 91 may include a plurality of types of home delivery storage units 91 that differ in depth, left and right, and height. In this case, in the delivery box device 9, the dimension measurement device 1 measures the vertical, horizontal, and height dimensions of the delivered item, and the optimum delivered item storage unit 91 is selected from a plurality of types of delivered product storage units 91. .
  • the delivery line storage unit 91 having a size suitable for the delivery package size is selected by drawing the reference line 4 in the storage room 11 and using the reference line 4 as a reference. For this reason, in the delivery box device 9, even if the image captured by the imaging unit 6 is distorted, it is possible to suppress a decrease in the measurement accuracy of the size of the delivery product, and the delivery product storage unit 91 having a size suitable for the delivery product is provided. Easy to choose.
  • the delivery box device 9 can measure the size of the delivery product from the positional relationship between the apex of the delivery product and the reference line, the size of the delivery product can be measured more easily than the conventional delivery box device 9.
  • the delivery box device 9 provided with the dimension measuring device 1 having the first to third features of the second embodiment described above has the following additional fourth feature.
  • the delivery box device 9 includes a plurality of types of delivery delivery storage units 91 that store the delivery items according to the size of the delivery delivered by the dimension measuring device 1.
  • the delivery box device 9 having the fourth feature even if the image captured by the imaging unit 6 is distorted, it is possible to suppress a decrease in the measurement accuracy of the size of the delivery product.
  • the delivery item storage unit 91 is easily selected.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Geometry (AREA)
  • Mechanical Engineering (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本発明の課題は、精度良く被測定物のサイズが得られる寸法測定装置、その寸法測定装置を備えた宅配ボックス装置、寸法測定方法を提供することである。本発明に係る寸法測定装置(101)は、収容室(111)と、収容室(111)に収容される被測定物(150)を撮像する撮像部(103)と、撮像部(103)で撮像された画像を処理する画像処理部と、を備える。収容室(111)は、矩形状の下面部(1201)と、矩形状の第1側面部(1242)と、矩形状の第2側面部(1232)と、を有する。収容室(111)は、下面部(1201)および第1側面部(1242)で形成される第1入隅(112)と、下面部(1201)および第2側面部(1232)で形成される第2入隅(113)と、第1側面部(1242)および第2側面部(1232)で形成される第3入隅(114)と、を有する。収容室(111)は、第1入隅(112)、第2入隅(113)および第3入隅(114)が交差した部分に基準隅部(115)を有する。収容室(111)は、第1側面部(1242)、第2側面部(1232)および下面部(1201)の辺の位置を表示するマーカー(116)を有する。

Description

寸法測定装置、宅配ボックス装置、寸法測定方法
 本発明は、寸法測定装置、その寸法測定装置を備えた宅配ボックス装置、寸法測定方法に関する。
 従来、宅配物等の被測定物を収容する直方体の収容室と、収容室の上面の一頂点に固定される撮像部と、撮像部で撮像された被測定物の画像に対して画像処理を行う画像処理部と、を備えた寸法測定装置が知られている(例えば特許文献1参照)。
 特許文献1に記載の寸法測定装置では、撮像部で撮像した画像に歪みが発生すると、精度良く被測定物のサイズを得ることが困難であった。
日本国特許出願公開番号2006-119792
 本発明は、精度良く被測定物のサイズが得られる寸法測定装置、その寸法測定装置を備えた宅配ボックス装置、寸法測定方法を提供することを目的とする。
 本発明の一態様に係る寸法測定装置は、以下のような構成を備える。
 寸法測定装置は、被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、を備える。前記寸法測定装置は、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部を備える。
 前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、を有する。前記収容室は、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、を有する。前記収容室は、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部を有する。前記収容室は、前記第1側面部、前記第2側面部および前記下面部に設けられそれぞれの辺の位置を表示するマーカーを有することを特徴とする。
 また、本発明の他の態様に係る宅配ボックス装置は、前記寸法測定装置で測定された被測定物である宅配物のサイズに応じて収納する複数種類の宅配物収納部を有する。
 また、本発明の他の態様に係る寸法測定方法は、寸法測定装置を用いる。
 前記寸法測定装置は、被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、を備える。前記寸法測定装置は、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部と、を備える。
 前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、を有する。前記収容室は、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、を有する。前記収容室は、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部を有する。前記収容室は、前記第1側面部、前記第2側面部および前記下面部に設けられそれぞれの辺の位置を表示するマーカーを有する。
 前記画像処理部は、前記収容室に前記被測定物が配置される前の状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内の前記マーカーを識別する。前記画像処理部は、前記マーカーから前記二値画像内の前記第1側面部、前記第2側面部および前記下面部の辺に対応するエッジを識別して、前記エッジの歪みを基に歪み補正用データを作成する。前記画像処理部は、前記収容室に前記被測定物が配置された状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成する。前記画像処理部は、前記二値画像内で識別された前記被測定物のエッジの歪みを前記歪み補正用データを基に補正することで補正画像を取得する。前記画像処理部は、前記補正画像の前記第1側面部、前記第2側面部および前記下面部に対応する面内を走査することで前記被測定物のサイズを測定することを特徴とする。
図1は第1実施形態に係る寸法測定装置を示した斜視図である。 図2は同上の撮像部と画像処理部とを示したブロック図である。 図3は同上の寸法測定方法の補正モードのフローチャートである。 図4は撮像部で撮像し二値化を行なった二値画像を示した説明図である。 図5は補正モードで補正した二値画像を示した説明図である。 図6Aは収容室に被測定物を配置した状態を撮像部で撮像した測定用画像を示した説明図である。図6Bは収容室に被測定物を配置した状態の二値画像を示した説明図である。 図7は寸法測定方法のサイズ測定モードのフローチャートである。 図8Aは図6Bの二値画像の第1側面部の側面図である。図8Bは図6Bの二値画像の下面部の平面図である。図8Cは図6Bの二値画像の下面部の平面図である。 図9は寸法測定方法の補正モードの他例を示したフローチャートである。 図10はエッジA13を平行移動した仮想線CをエッジA16に重ね合わせた状態の説明図である。 図11Aは寸法測定装置のマーカーの他例を示した斜視図である。図11Bは寸法測定装置のマーカーの他例を示した斜視図である。図11Cは寸法測定装置のマーカーの他例を示した斜視図である。 図12は本発明の第2実施形態の寸法測定装置の斜視図である。 図13は撮像部と画像処理部とを示したブロック図である。 図14は被測定物のサイズを測定するサイズ測定モードのフローチャートである。 図15は撮像部で撮像した画像に基づいて作成されたエッジ画像の説明図である。 図16Aは同上の寸法測定装置のさらに他例を示した斜視図である。図16Bは同上の寸法測定装置のさらに他例を示した斜視図である。図16Cは同上の寸法測定装置のさらに他例を示した斜視図である。 図17Aは同上の寸法測定装置のさらに応用例を示した斜視図である。図17Bは同上の寸法測定装置のさらに応用例を示した斜視図である。 図18Aは同上の寸法測定装置のさらに応用例を示した斜視図である。図18Bは同上の寸法測定装置のさらに応用例を示した斜視図である。 図19Aは同上の寸法測定装置のさらに応用例を示した斜視図である。図19Bは同上の寸法測定装置のさらに応用例を示した斜視図である。 図20Aは同上の寸法測定装置のさらに応用例を示した斜視図である。図20Bは同上の寸法測定装置のさらに応用例を示した斜視図である。 図21Aは同上の寸法測定装置を備えた宅配ボックス装置の斜視図である。図21Bは前記宅配ボックス装置に用いられる寸法測定装置を例示した斜視図である。
 <第1実施形態>
 第1実施形態は、寸法測定装置および寸法測定方法に関する。
 従来、宅配物等の被測定物を収容する直方体の収容室と、収容室の上面の一頂点に固定される撮像部と、撮像部で撮像された被測定物の画像に対して画像処理を行う画像処理部と、を備えた寸法測定装置が知られている(例えば特開2006-119792号公報参照)。
 特開2006-119792号に記載の寸法測定装置および寸法測定方法では、撮像部で撮像した画像に歪みが発生すると、精度良く被測定物のサイズを得ることが困難であった。
 上記従来の問題点に鑑みて、第1実施形態では、精度良く被測定物のサイズが得られる、寸法測定装置を提供することを目的とする。
 以下、添付した図1~図7、図8A~図8Cに基づき第1実施形態の寸法測定装置について説明する。
 寸法測定装置101は、宅配物等の被測定物150のサイズを測定する。ここで、被測定物150のサイズとは、被測定物150の縦、横および高さの寸法となっている。被測定物150の形状は、立方体または直方体となっている。
 寸法測定装置101は、図1に示すように、収容室111を備える。
 収容室111は、寸法測定装置101の外郭を構成する外郭体1111と、外郭体1111の内側に形成される内部空間1112と、を有する。外郭体1111の形状は、直方体である。外郭体1111は、下壁部120、側壁部121および上壁部125を有する。ここで、外郭体1111の側壁部121には、被測定物150を内部空間1112に出し入れさせるための開口である出入口1261が形成される。
 第1実施形態の寸法測定装置101では、出入口1261が設けられる側を前方F、その反対側を後方Bとする。そして、ユーザーが寸法測定装置101の出入口1261に向かって立ったときを基準として、右方R、左方Lを定義する。ここで、被測定物150の縦の寸法は、被測定物150の前後方向の寸法とする。被測定物150の横の寸法は、被測定物150の左右方向の寸法とする。被測定物150の高さの寸法は、被測定物150の上下方向の寸法とする。
 下壁部120は、その形状が下方から視て矩形状に形成される。下壁部120の内部空間1112側(上側)の面は、下面部1201である。下面部1201には、被測定物150が置かれる。
 側壁部121は、右壁部122、左壁部123および後壁部124を有する。右壁部122は下壁部120の右側端部から上方に延出される。左壁部123は下壁部120の左側端部から上方に延出される。後壁部124は下壁部120の後側端部から上方に延出される。
 右壁部122は、右方から視て矩形状に形成される。右壁部122において、その内部空間1112側(左側)の面を右面部1221とする。左壁部123は、左方から視て矩形状に形成される。左壁部123において、その内部空間1112側(右側)の面を左面部1231とする。後壁部124は、後方から視て矩形状に形成される。後壁部124において、その内部空間1112側(前側)の面を後面部1241とする。
 上壁部125は、右壁部122の上縁部、左壁部123の上縁部および後壁部124の上縁部に接続される。上壁部125は、上方から視て矩形状に形成される。上壁部125において、その内部空間1112側(下側)の面を上面部1251とする。
 外郭体1111は、前方Fに開口した直方体状であり、その前方Fへの開口を出入口1261とする。外郭体1111には、出入口1261を開閉する扉が設けられる。扉は、右壁部122の前側端部に取り付けられ、右壁部122の前側端部を軸1262として回転する。扉は、閉じた状態において、前方から視て矩形状に形成される。また、扉は、閉じた状態において、外郭体1111の前壁部126を構成する。扉において、その内部空間1112側(後側)の面を前面部1263とする。
 収容室111の内部空間1112は、下面部1201、右面部1221、左面部1231、後面部1241、上面部1251および前面部1263で囲まれて形成される。内部空間1112は、直方体状に形成される。以下の記載において、後面部1241を第1側面部1242と記載し、左面部1231を第2側面部1232と記載する。
 外郭体1111は、下面部1201と第1側面部1242とが交差した部分に形成される第1入隅112を有する。外郭体1111は、下面部1201と第2側面部1232とが交差した部分に形成される第2入隅113を有する。外郭体1111は、第1側面部1242と第2側面部1232とが交差した部分に形成される第3入隅114を有する。外郭体1111において、第1入隅112、第2入隅113および第3入隅114が交差した部分を基準隅部115とする。
 収容室111では、被測定物150を所定位置に配置するための基準となる基準点が基準隅部115に設定される。
 収容室111では、基準隅部115に合わせて置かれた被測定物150は、下面部1201、第1側面部1242および第2側面部1232に接触することで、縦位置、横位置および高さ位置の位置決めが行われる。この位置決めされた被測定物150の位置が、被測定物150の所定位置となる。
 収容室111の内面には、図1に示すように、マーカー116が設けられる。マーカー116は、第1側面部1242、第2側面部1232および下面部1201に設けられる。第1側面部1242に設けられるマーカー116を第1マーカー1161とし、第2側面部1232に設けられるマーカー116を第2マーカー1162とし、下面部1201に設けられるマーカー116を第3マーカー1163とする。
 マーカー116は、矩形枠状となっている。第1側面部1242において、第1マーカー1161は第3入隅114に沿うラインが引かれ、その上端部および下端部のそれぞれから第1入隅112に平行なラインが引かれ、それぞれのラインの右端部を繋ぐラインが引かれる。
 第2側面部1232において、第2マーカー1162は第3入隅114に沿うラインが引かれ、その上端部および下端部のそれぞれから第2入隅113に平行なラインが引かれ、それぞれのラインの前端部を繋ぐラインが引かれる。
 下面部1201において、第3マーカー1163は第1入隅112に沿うラインが引かれ、その左端部および右端部のそれぞれから第2入隅113に平行なラインが引かれ、それぞれのラインの前端部を繋ぐラインが引かれる。
 第1実施形態の第1マーカー1161、第2マーカー1162および第3マーカー1163は、同じ色調であるが、それぞれの色調は異なった色調である方が好ましい。ここで、色調とは、色の明度と彩度などの色の調子のことを意味する。
 寸法測定装置101には、図1に示すように、収容室111に撮像部103が設置される。撮像部103は、収容室111の内部を全体的に撮像できる位置に配置される。第1実施形態の寸法測定装置101では、撮像部103が基準隅部115の対角となる上面部1251、右面部1221および前面部1263で形成される隅部に設置される。
 撮像部103は、カメラ本体131と、照明具132と、を有する。
 カメラ本体131には、収容室111内の全体を撮像可能なカメラが用いられる。特に、カメラ本体131には、被測定物150、下面部1201、第1側面部1242および第2側面部1232のそれぞれの全体を撮像可能なカメラが用いられる。カメラ本体131には、CCD(Charge-Coupled Device)カメラが用いられる。カメラ本体131では、収容室111内の全体を撮影し易いように広角レンズが用いられる。
 照明具132は、カメラ本体131の制御部と電気的に接続される。照明具132は、収容室111内を明るくする。特に、照明具132は、被測定物150、第1入隅112、第2入隅113、第3入隅114、第1マーカー1161、第2マーカー1162および第3マーカー1163を、カメラ本体131に明瞭に撮像させるために用いられる。照明具132には、白色LED(Light Emitting Diode)が用いられる。
 寸法測定装置101は、図2に示すように、画像処理部104を有する。画像処理部104は、マイクロコンピューターを備える。マイクロコンピューターは、CPU(Central Processing Unit)、メモリ等を有する。マイクロコンピューターは、メモリに格納されたプログラムをCPUが実行することにより制御を行なう。
 画像処理部104では、撮像部103で撮像された画像に対して画像処理が行われる。また、画像処理部104は、メモリに格納された被測定物150の画像の補正を行うプログラムを有する補正モード141を有する。
 画像処理部104は、収容室111に被測定物150が配置される前の状態で、下面部1201、第1側面部1242、第2側面部1232およびマーカー116を撮像部103で撮像させることで原画像を取得する。この原画像に基づいて図3に示す補正モード141がステップS101で開始される。
 補正モード141は、ステップS102において、原画像(グレースケール画像)に対しノイズ除去を行なう。そして、ノイズ除去をした画像の情報の一つである輝度値に基づいてフィルター処理が行われる。
 補正モード141は、ステップS103において、フィルター処理が行われた画像に対して二値化が行なわれることで、エッジを検出する。このような処理を行なった画像を二値画像142(図4参照)とする。二値画像142は、二次元画像である。二値画像142のデータは、画像処理部104のメモリに格納される。
 補正モード141は、ステップS104において、事前に取得していたマーカー116の形状や輝度値の情報により、二値画像142内のマーカー116をパターンマッチングにより識別する。
 補正モード141は、ステップS105において、識別された第1マーカー1161、第2マーカー1162および第3マーカー1163から、二値画像142内の第1側面部1242、第2側面部1232および下面部1201の辺を識別する。ここで、補正モード141では、二値画像142内のエッジA11~A19が識別される。
 補正モード141は、ステップS16において、歪み補正前の二値画像142と歪み補正後の二値画像142の座標を関連付ける、光軸中心座標、焦点距離、レンズ歪み係数などで構成される内部パラメーターを調整する。内部パラメーターは、例えば、マス目サイズが既知のチェッカーボードの撮影画像における、チェッカーボードのパターンの交点の位置を検出し、交点の間隔が均等になるように内部パラメーターを算出する。補正モードでは、ステップS16において、この事前に求めた内部パラメーターをサイズが既知の収容室111に用いてさらに収容室111に対して最適になるように調整する。この場合、内部パラメータが歪み補正用データとなる。
 補正モード141は、ステップS107において、内部パラメーターを用いてエッジA11~A19の歪みを補正し、エッジA11~A19を直線状とすることで、図5に示す補正した二値画像142を取得する。なお、第1実施形態では補正モード141の方法として内部パラメーターを用いる公知の方法(例えば特開2015-35685号公報)を用いたが、他の公知の方法(例えば後述する特開2011-25428号公報)を用いてもよい。
 次に、補正モード141は、ステップS18において、収容室111の所定位置に被測定物150が配置された状態で、下面部1201、第1側面部1242、第2側面部1232、マーカー116および被測定物150を撮像部103で撮像させることで測定用画像を取得する。そして、補正モード141は、測定用画像に対してノイズ除去、フィルター処理および二値化を行なうことで、図6Aに示すような二値画像142を取得する。
 補正モード141は、ステップS19において、図6Bに示すように、内部パラメーター(歪み補正用データ)を用いてエッジA11~A19、被測定物150のエッジT1~T8の歪みを補正する。
 このようにして、補正モード141は、測定用画像内のエッジA11~A19,エッジT1~T8を補正した図6Bに示す補正画像144を取得する。
 次に、画像処理部104では、補正モード141で補正された二値画像142に対して画像処理が行われ、図7に示す被測定物150のサイズを測定するサイズ測定モード143が行なわれる。
 サイズ測定モード143は、ステップS108において、同次座標を用いた射影変換処理を行うことで、図6Bに示す、被測定物150が配置された補正した二値画像142の第1側面部1242を右斜め前方から視た側面図(図8A参照)を得る。さらに、サイズ測定モード143は、補正した二値画像142の下面部1201を上方から視た第1平面図(図8B参照)、補正した二値画像142の下面部1201を上方から視た第2平面図(図8C参照)を得る。
 サイズ測定モード143は、ステップS113において、側面図のエッジA13の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Aに示すように、エッジA19からエッジT8までのピクセル数に基づく長さとエッジA19からエッジA12までのピクセル数に基づく長さとの差である第1変化量H1を求める。
 サイズ測定モード143は、また、第1平面図のエッジA12の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Bに示すように、エッジA15からエッジT5までのピクセル数に基づく長さとエッジA15からエッジA11までのピクセル数に基づく長さとの差である第2変化量H2を求める。
 サイズ測定モード143は、第2平面図のエッジA11の長さ方向に沿って並ぶピクセルを走査する。このとき、図8Cに示すように、エッジA14からエッジT4までのピクセル数に基づく長さとエッジA14からエッジA12までのピクセル数に基づく長さとの差である第3変化量H3を求める。
 サイズ測定モード143では、図7に示すステップS114において、図6Bに示す補正した二値画像142内のエッジA13のピクセル数に基づく長さと実際の第3入隅114の長さとの比から、第1変化量H1に基づいて被測定物150の高さが求まる。また、同様に第2変化量H2に基づいて被測定物150の縦の長さ、第3変化量H3に基づいて被測定物150の横の長さが求まる。
 なお、補正モード141の他例として、図9に示す歪みの補正方法がある。
 この補正モード141では、ステップS116~ステップS120が上記したステップS101~ステップS105と同様であるので、説明を省略する。
 補正モード141は、ステップS121において、エッジA11~A19とエッジA11~A19に対応する直線とを比較しその直線に対する歪み量Yを求める。例えば、エッジA16に対して直線である仮想線Cを重ね合わせる(図10参照)ことで歪み量Yが求められる。そして、補正モード141は、ステップS122において、この歪み量Yに基づいてエッジA16を直線とする補正係数Kを求める。補正モード141は、他のエッジに対しても同様のことを行ない、それぞれの補正係数Kを求める。
 補正モード141は、ステップS123において、それぞれの補正係数KからエッジA11~A19の歪みを補正し、エッジA11~A19を直線状とすることで、図6Bに示す補正した二値画像142を取得する。この場合、補正係数Kが歪み補正用データとなる。
 なお、画像処理部104で識別されたエッジのうちエッジA11,エッジA12,エッジA13は、撮像部103が広角レンズを用いて撮像したとしても歪み難く直線となっているため、エッジA11~A13を用いて歪み量Yを求めてもよい。
 次に、補正モード141は、ステップS124において、収容室111の所定位置に被測定物150が配置された状態で、下面部1201、第1側面部1242、第2側面部1232、マーカー116および被測定物150を撮像部103で撮像させることで図6Aに示す測定用画像を取得する。
 補正モード141は、ステップS125において、補正係数K(歪み補正用データ)を用いることで、図6Bに示すように、エッジA11~A19、被測定物150のエッジT1~T8の歪みを補正する。
 エッジA11~A19は、それぞれに対応する補正係数Kで補正する。エッジT1の補正係数Kは、例えば、エッジA13とエッジA16に対するエッジT1の位置関係と、エッジA13の補正係数KおよびエッジA16の補正係数Kと、を比例関係とみて求める。そして、他のエッジT2~T8に関しても同様に、エッジA11~A19のうちの二つのエッジに対する位置関係に基づいて、補正係数Kを決定する。
 なお、エッジT1~T8の補正係数の決定の方法は上記した方法に限定されない。
 第1実施形態の寸法測定装置101の構成は、上記した一態様に限定されず、以下に示す態様であってもよい。
 補正モード141では、撮像部103で撮像した画像のノイズ除去が移動平均フィルターやメディアンフィルターで行われてもよい。
 補正モード141のフィルター処理では、例えば一次差分オペレータとして、SobelフィルターやPrewittフィルターが用いられる。また、フィルター処理では、二次差分オペレータが用いられてもよい。
 補正モード141では、フィルター処理が行われた画像の二値化が、移動平均法による二値化や、閾値を二つ用いた二値化であってもよい。
 マーカー116の形状は、円状や矩形状に限定されず、他の多角形であってもよい。
 被測定物150の形状は、立方体または直方体に限定されず、撮像部103で撮像される三面の形状が略矩形状であればよい。
 外郭体1111の形状は、直方体となっているが立方体でもよく、その形状は限定されない。また、部分的に突起を有するような形状でもよい。
 内部空間1112の形状は、直方体状となっているが立方体状であってもよく、その形状は限定されない。
 基準隅部115は、下面部1201、右面部1221、左面部1231、後面部1241および前面部1263で形成される4つの隅部の内のいずれか1つの隅部であればよい。
 カメラ本体131は、CMOS(Complementary Metal Oxide Semiconductor)カメラでもよい。
 撮像部103では、撮像する画像はグレースケールでもよいし、カラーでもよい。ここで、撮像部103で撮像する画像がカラーの場合、画像処理を行う際にグレースケール画像への変換をすることが好ましい。
 撮像部103では、カメラ本体131の制御部と照明具132とが接続され、照明具132のON・OFFは、カメラ本体131の制御部で操作されているが、照明具132と画像処理部104とが接続され、画像処理部104で照明具132を操作してもよい。
 撮像部103では、カメラ本体131の制御部と照明具132とが無線で接続されてもよい。
 撮像部103では、カメラ本体131と照明具132とは別体で設けられてもよい。
 照明具132には、蛍光灯や電球や他の色のLEDが用いられてもよい。なお、照明具132は、画像処理部104において、カメラ本体131で撮像した画像のエッジが検出され易い色や明るさであることが好ましい。
 画像処理部104のCPUには、公知の様々なマイクロコンピューターが適宜利用可能される。
 上記した寸法測定装置101では、マーカー116を用いることで容易に二値画像142内の下面部1201、第1側面部1242および第2側面部1232の辺に対応するエッジA11~A19を識別し易い。そのため、二値画像142内のエッジA11~A19,エッジT1~T8の歪みを補正するための処理が容易になるので、被測定物150のサイズの測定を早めることができる。
 また、第1マーカー1161、第2マーカー1162および第3マーカー1163の色調を変えることで、下面部1201、第1側面部1242および第2側面部1232の辺に対応するエッジA11~A19をより識別し易くなる。
 以上説明したように、第1実施形態の寸法測定装置101は以下に示す構成を備える。
 第1実施形態の寸法測定装置101は、次の第1の特徴を備える。第1の特徴では、寸法測定装置101は、被測定物150を出し入れ自在に収容する収容室111と、収容室111に設けられ、収容室111に収容される被測定物150を撮像する撮像部103と、を備える。寸法測定装置101は、撮像部103で撮像された画像の情報に基づいて画像処理を行ない被測定物150のサイズを測定する画像処理部104と、を備える。
 収容室111は、被測定物150が置かれる矩形状の下面部1201と、下面部1201から上方に延出される矩形状の第1側面部1242と、下面部1201から上方に延出され、第1側面部1242に隣接する矩形状の第2側面部1232と、を有する。収容室111は、下面部1201および第1側面部1242で形成される第1入隅112と、下面部1201および第2側面部1232で形成される第2入隅113と、第1側面部1242および第2側面部1232で形成される第3入隅114と、を有する。収容室111は、第1入隅112、第2入隅113および第3入隅114が交差した部分に形成され、被測定物150を所定位置に配置する基準点となる基準隅部115を有する。収容室111は、第1側面部1242、第2側面部1232および下面部1201の辺の位置を表示するマーカー116を有する。
 第1の特徴を有する寸法測定装置101では、マーカー116を用いることで、容易に二値画像142内の歪みを補正することができる。
 第1の特徴を有する寸法測定装置101は、以下の付加的な第2の特徴を有する。第2の特徴では、マーカー116が、ライン、円または多角形である。
 第2の特徴を有する寸法測定装置101では、マーカー116を簡単に構成することができる。
 第1または第2の特徴を有する寸法測定装置101は、以下の付加的な第3の特徴を有する。第3の特徴では、異なる面に設けられたマーカー116は、それぞれ色調が異なる。
 第3の特徴を有する寸法測定装置101では、容易に二値画像142内の第1側面部1242、第2側面部1232および下面部1201の辺に対応するエッジA11~A19を識別できる。
 第1~第3の特徴を有する寸法測定装置101は、以下の付加的な第4の特徴を有する。第4の特徴では、収容室111は、第1側面部1242および第2側面部1232の上縁から延出される矩形状の上面部1251と、第1側面部1242に対向し、被測定物150を出し入れするための出入口1261と、を有する。
 撮像部103は、上面部1251の出入口1261側の端部における基準隅部115とは反対側の端部に設けられる。
 第4の特徴を有する寸法測定装置101では、下面部1201、第1側面部1242、第2側面部1232、被測定物150およびマーカー116の全体を撮像部103が撮像し易くなる。
 第1~第4の特徴を有する寸法測定装置101は、以下の付加的な第5の特徴を有する。第5の特徴では、撮像部103が、収容室111を照らす照明具132を有する。
 第5の特徴を有する寸法測定装置101では、収容室111内の光量が不足していたとしても、照明具132で収容室111内を照らすことで光量不足を解消できる。
 第1~第5の特徴を有する寸法測定装置101は、以下の付加的な第6の特徴を有する。第6の特徴では、収容室111では、被測定物150が下面部1201の奥隅に配置される。
 第6の特徴を有する寸法測定装置101では、被測定物150の全体を撮像部103が撮像し易くなる。
 また、第1実施形態の寸法測定方法は以下に示す構成を備える。
 第1実施形態の寸法測定方法は、次の第6の特徴を備える。第6の特徴では、被測定物150を出し入れ自在に収容する収容室111と、収容室111に設けられ、収容室111に収容される被測定物150を撮像する撮像部103と、撮像部103で撮像された画像の情報に基づいて画像処理を行ない被測定物150のサイズを測定する画像処理部104と、を備えた寸法測定装置101を用いる。
 収容室111は、被測定物150が置かれる矩形状の下面部1201と、下面部1201から上方に延出される矩形状の第1側面部1242と、下面部1201から上方に延出され、第1側面部1242に隣接する矩形状の第2側面部1232と、を有する。収容室111は、下面部1201および第1側面部1242で形成される第1入隅112と、下面部1201および第2側面部1232で形成される第2入隅113と、第1側面部1242および第2側面部1232で形成される第3入隅114と、を有する。収容室111は、第1入隅112、第2入隅113および第3入隅114が交差した部分に形成され、被測定物150を所定位置に配置する基準点となる基準隅部115を有する。収容室111は、第1側面部1242、第2側面部1232および下面部1201の辺の位置を表示するマーカー116を有する。
 画像処理部104は、収容室111に被測定物150が配置される前の状態で、撮像部103で撮像した画像に対して二値化を行なうことで二値画像142を作成する。画像処理部104は、二値画像142内のマーカー116を識別し、マーカー116から二値画像142内の第1側面部1242、第2側面部1232および下面部1201の辺に対応するエッジA11~A19を識別して、エッジA11~A19の歪みを基に歪み補正用データを作成する。画像処理部104は、収容室111に被測定物150が配置された状態で、撮像部103で撮像した画像に対して二値化を行なうことで二値画像142を作成する。画像処理部104は、二値画像142内で識別された被測定物150のエッジT1~T8の歪みを歪み補正用データを基に補正することで補正画像144を取得する。画像処理部104は、補正画像144の第1側面部1242、第2側面部1232および下面部1201に対応する面内を走査することで被測定物150のサイズを測定する。
 第6の特徴を有する寸法測定方法では、マーカー116を用いることで、容易に二値画像142内の歪みを補正することができる。
 第6の特徴を有する寸法測定方法は、以下の付加的な第7の特徴を有する。第7の特徴では、収容室111は、第1側面部1242および第2側面部1232の上縁から延出される矩形状の上面部1251と、第1側面部1242に対向し、被測定物150を出し入れするための出入口1261と、を有する。
 撮像部103は、上面部1251の出入口1261側の端部における基準隅部115とは反対側の端部に設けられる。
 第7の特徴を有する寸法測定方法では、下面部1201、第1側面部1242、第2側面部1232、被測定物150およびマーカー116の全体を撮像部103が撮像し易くなる。
 上記した第1実施形態の寸法測定装置101の設けられるマーカー116は、例えば図11A~図11Cに示すような態様であってもよい(これを他例とする)。本他例の寸法測定装置101は、特に、マーカー116の形状に関する。
 収容室111の内面には、図11Aに示すように、複数のマーカー116が設けられてもよい。ここで、マーカー116は、円状となっている。第1マーカー1161は、第1側面部1242に複数設けられる。第1マーカー1161は、第1側面部1242の四隅に設けられる。第2マーカー1162は、第2側面部1232の四隅に設けられる。第3マーカー1163は、下面部1201の四隅に設けられる。
 また、収容室111の内面には、図11Bに示すように、複数のマーカー116が設けられてもよい。ここで、マーカー116は、円状となっているが、図9Aとは異なり下面部1201の四隅に設けられる第3マーカー1163が円の内部に色が塗られていない。
 また、収容室111の内面には、図11Cに示すように、複数のマーカー116が設けられてもよい。ここで、マーカー116は、円状となっている。第1マーカー1161は、第1側面部1242の第3入隅114とは反対側の両端部に設けられる。第2マーカー1162は、第2側面部1232の第3入隅114とは反対側の端部の両端部に設けられる。第3マーカー1163は、下面部1201に設けられていない。
 また、マーカー116は、図11Dに示すように三角形状をしたものをはじめ多角形状をしたものでもよい。
 また、マーカー116は、図11Eに示すように、収容室111の内面に形成される凹部でもよい。
 また、マーカー116は、図11Fに示すように、収容室111の内面に形成される凸部でもよい。
 <第2実施形態>
 以下に示す本発明の第2実施形態は、特に、撮像部で撮像された画像に基づいて被測定物のサイズを測定する寸法測定装置およびその寸法測定装置を備えた宅配ボックス装置に関する。
 以下、添付した図12~図15、図16A~図16Cに基づき第2実施形態の寸法測定装置1について説明する。
 寸法測定装置1は、被測定物80のサイズを測定する。ここで、被測定物80のサイズとは、被測定物80の縦、横および高さの寸法となっている。被測定物80の形状は、立方体または直方体となっている。
 寸法測定装置1は、図12に示すように、収容室11を備える。
 収容室11は、寸法測定装置1の外郭を構成する外郭体2と、外郭体2の内側に形成される内部空間10と、を有する。外郭体2の形状は、直方体である。外郭体2は、下壁部21、側壁部22および上壁部26を有する。ここで、外郭体2の側壁部22には、被測定物80を内部空間10に出し入れさせるための開口である出入口12が形成される。
 第2実施形態の寸法測定装置1では、出入口12が設けられる側を前方F、その反対側を後方Bとする。そして、ユーザーが寸法測定装置1の出入口12に向かって立ったときを基準として、右方R、左方Lを定義する。ここで、被測定物80の縦の寸法は、被測定物80の前後方向の寸法とする。被測定物80の横の寸法は、被測定物80の左右方向の寸法とする。被測定物80の高さの寸法は、被測定物80の上下方向の寸法とする。
 下壁部21は、その形状が下方から視て矩形状に形成される。下壁部21の内部空間10側(上側)の面は、下面部20である。下面部20には、被測定物80が置かれる。
 側壁部22は、右壁部23、左壁部24および後壁部25を有する。右壁部23は下壁部21の右側端部から上方に延出される。左壁部24は下壁部21の左側端部から上方に延出される。後壁部25は下壁部21の後側端部から上方に延出される。
 右壁部23は、右方から視て矩形状に形成される。右壁部23において、その内部空間10側(左側)の面を右面部23aとする。左壁部24は、左方から視て矩形状に形成される。左壁部24において、その内部空間10側(右側)の面を左面部24bとする。後壁部25は、後方から視て矩形状に形成される。後壁部25において、その内部空間10側(前側)の面を後面部25bとする。
 上壁部26は、右壁部23の上縁部、左壁部24の上縁部および後壁部25の上縁部に接続される。上壁部26は、上方から視て矩形状に形成される。上壁部26において、その内部空間10側(下側)の面を上面部26aとする。
 外郭体2は、前方に開口した直方体状であり、その前方への開口を出入口12とする。外郭体2には、出入口12を開閉する扉13が設けられる。扉13は、右壁部23の前側端部に取り付けられ、右壁部23の前側端部を軸として回転する。扉13は、閉じた状態において、前方から視て矩形状に形成される。また、扉13は、閉じた状態において、外郭体2の前壁部27を構成する。扉13において、その内部空間10側(後側)の面を前面部27aとする。
 収容室11の内部空間10は、下面部20、右面部23a、左面部24b、後面部25b、上面部26aおよび前面部27aで囲まれて形成される。内部空間10は、直方体状に形成される。
 収容室11には、被測定物80を所定位置に配置するための基準となる基準点が設定される。第2実施形態の基準点は、図12に示すように、下面部20、後面部25bおよび左面部24bで形成される左奥の隅部である。ここで、下面部20における、後面部25bが設けられる辺が第1の辺20aであり、左面部24bが設けられる辺が第2の辺20bである。第1の辺20aおよび第2の辺20bは、直線状である。第1の辺20aと第2の辺20bとは直交する。
 以下の記載において、後面部25bを第1側面部25aと記載し、左面部24bを第2側面部24aと記載する。
 外郭体2は、下面部20と第1側面部25aとが交差した部分に形成される第1入隅31を有する。外郭体2は、下面部20と第2側面部24aとが交差した部分に形成される第2入隅32を有する。外郭体2は、第1側面部25aと第2側面部24aとが交差した部分に形成される第3入隅33を有する。外郭体2において、第1入隅31、第2入隅32および第3入隅33が交差した部分を基準隅部30とする。
 収容室11では、基準隅部30に合わせて置かれた被測定物80は、下面部20、第1側面部25aおよび第2側面部24aに接触することで、縦位置、横位置および高さ位置の位置決めが行われる。この位置決めされた被測定物80の位置が、被測定物80の所定位置である。
 第2実施形態の収容室11には、所定位置に配置された被測定物80を測定する基準となる基準線4が引かれる。基準線4には、第1入隅31の長さ方向に平行な第1のライン51、第2入隅32の長さ方向に平行な第2のライン52および第3入隅33の長さ方向に平行な第3のライン53(図19B参照)といった直線が用いられる。この基準線4は、第1側面部25a、第2側面部24aおよび下面部20の辺の位置を表示するマーカーとして機能する。
 第1のライン51は、下面部20または第1側面部25aのいずれか一方または両方に引かれる。
 第1のライン51は、下面部20に引かれる場合、第2入隅32から右方に延出される。第1のライン51は、第1入隅31から前方に所定距離をあけて配置される。また、第1のライン51には、下面部20とは異なる色が用いられる。特に、第1のライン51の色には、その輝度値が下面部20の輝度値とは大きく離れた値の色が用いられる。
 第1のライン51は、第1側面部25aに引かれる場合、第3入隅33から右方に延出される。第1のライン51は、第1入隅31から上方に所定距離をあけて配置される。また、第1のライン51には、第1側面部25aの表面の色とは異なる色が用いられる。特に、第1のライン51の色には、その輝度値が第1側面部25aの表面の色の輝度値とは大きく離れた値の色が用いられる。
 第2のライン52は、下面部20または第2側面部24aのいずれか一方または両方に引かれる。
 第2のライン52は、下面部20に引かれる場合、第1入隅31から前方に延出される。第2のライン52は、第2入隅32から右方に所定距離をあけて配置される。また、第2のライン52には、下面部20とは異なる色が用いられる。特に、第2のライン52の色には、その輝度値が下面部20の輝度値とは大きく離れた値の色が用いられる。
 第2のライン52は、第2側面部24aに引かれる場合、第3入隅33から前方に延出される。第2のライン52は、第2入隅32から上方に所定距離をあけて配置される。また、第2のライン52には、第2側面部24aの表面の色とは異なる色が用いられる。特に、第2のライン52の色には、その輝度値が第2側面部24aの表面の色の輝度値とは大きく離れた値の色が用いられる。
 第3のライン53は、第1側面部25aまたは第2側面部24aのいずれか一方または両方に引かれる。
 第3のライン53は、第1側面部25aに引かれる場合、第1入隅31から上方に延出される。第3のライン53は、第3入隅33から右方に所定距離をあけて配置される。また、第3のライン53には、第1側面部25aとは異なる色が用いられる。特に、第3のライン53の色には、その輝度値が第1側面部25aの輝度値とは大きく離れた値の色が用いられる。
 第3のライン53は、第2側面部24aに引かれる場合、第2入隅32から上方に延出される。第3のライン53は、第3入隅33から前方に所定距離をあけて配置される。また、第3のライン53には、第3側面部の表面の色とは異なる色が用いられる。特に、第3のライン53の色には、その輝度値が第2側面部24aの表面の色の輝度値とは大きく離れた値の色が用いられる。
 基準線4の線種には、実線が用いられることが好ましい。
 寸法測定装置1では、図12に示すように、下面部20に基準線4(以下、第1基準線41と記載する。)が引かれる。第1基準線41は、上方から視てL字状である。第1基準線41は、第1のライン51と第2のライン52とを合わせた線である。第1基準線41では、第1のライン51と第2のライン52とが直角に交わる。
 第1基準線41は、下面部20に複数本引かれる。第2実施形態の寸法測定装置1では、第1基準線41が下面部20に5本引かれる。複数の第1基準線41は、それぞれが等間隔で並ぶ。
 第2実施形態の第1基準線41の第1のライン51は、基準隅部30から前方に等間隔で並ぶ。複数の第1基準線41の第1のライン51は、それぞれが5cmの間隔をあけて並ぶ。表1は、第1基準線41の第1のライン51の基準隅部30からの順番とその位置での第1入隅31からの距離との関係を示す。
Figure JPOXMLDOC01-appb-T000001
 第2実施形態の第1基準線41の第2のライン52は、基準隅部30から右方に等間隔で並ぶ。複数の第1基準線41の第2のライン52は、それぞれが5cmの間隔をあけて並ぶ。表2は、第1基準線41の第2のライン52の基準隅部30からの順番とその位置での第2入隅32からの距離との関係を示す。
Figure JPOXMLDOC01-appb-T000002
 寸法測定装置1では、第1側面部25aに基準線4(以下、第2基準線42と記載する。)が引かれる。第2基準線42は、第1のライン51である。第2基準線42は、第1側面部25aに複数本引かれる。第2実施形態の寸法測定装置1では、第2基準線42が第1側面部25aに6本引かれる。複数の第2基準線42は、それぞれが等間隔で並ぶ。
 第2実施形態の第2基準線42は、基準隅部30から上方に等間隔で並ぶ。複数の第2基準線42は、それぞれが5cmの間隔をあけて並ぶ。表3は、第2基準線42の基準隅部30からの順番とその位置での第1入隅31からの距離との関係を示す。
Figure JPOXMLDOC01-appb-T000003
 寸法測定装置1では、第2側面部24aに基準線4(以下、第3基準線43と記載する。)が引かれる。第3基準線43は、第2のライン52である。第3基準線43は、第2側面部24aに複数本引かれる。第2実施形態の寸法測定装置1では、第3基準線43が第2側面部24aに6本引かれる。複数の第3基準線43は、それぞれが等間隔で並ぶ。
 第2実施形態の第3基準線43は、基準隅部30から上方に等間隔で並ぶ。複数の第3基準線43は、それぞれが5cmの間隔をあけて並ぶ。表4は、第3基準線43の基準隅部30からの順番とその位置での第2入隅32からの距離との関係を示す。
Figure JPOXMLDOC01-appb-T000004
 このように、第2実施形態の収容室11には、第1のライン51、第2のライン52および第3のライン53のうち、第1のライン51および第2のライン52が用いられている。
 寸法測定装置1には、図12に示すように、収容室11に撮像部6が設置される。撮像部6は、収容室11の内部を全体的に撮像できる位置に配置される。第2実施形態の寸法測定装置1では、撮像部6が上面部26a、右面部23aおよび前面部27aで形成される隅部に設置される。
 撮像部6は、図12,図13に示すように、カメラ本体61と、照明具62と、を有する。
 カメラ本体61には、収容室11内の全体を撮像可能なカメラが用いられる。特に、カメラ本体61には、被測定物80、下面部20、第1側面部25aおよび第2側面部24aのそれぞれの全体を撮像可能なカメラが用いられる。カメラ本体61には、CCD(Charge-Coupled Device)カメラが用いられる。カメラ本体61では、収容室11内の全体を撮影し易いように広角レンズが用いられる。
 照明具62は、カメラ本体61の制御部と電気的に接続される。照明具62は、収容室11内を明るくする。特に、照明具62は、被測定物80、第1入隅31、第2入隅32、第3入隅33、第1のライン51、第2のライン52および第3のライン53を、カメラ本体61に明瞭に撮像させるために用いられる。照明具62には、白色LED(Light Emitting Diode)が用いられる。
 寸法測定装置1は、図13に示すように、画像処理部7を有する。画像処理部7は、マイクロコンピューターを備える。マイクロコンピューターは、CPU(Central Processing Unit)、メモリ等を有する。マイクロコンピューターは、メモリに格納されたプログラムをCPUが実行することにより制御を行なう。
 画像処理部7では、撮像部6で撮像された画像に対して画像処理が行われる。また、画像処理部7は、メモリに格納された被測定物80のサイズを求めるプログラムを有するサイズ測定モード71を有する。
 サイズ測定モード71では、例えば図14のフローチャートに示す処理に従って、被測定物80の縦、横および高さの寸法が求められる。サイズ測定モード71では、撮像部6で撮像された画像のエッジと頂点を検出し、検出されたエッジと頂点に基づいて被測定物80の縦、横および高さの寸法が求められる。
 以下に、図12に示す寸法測定装置1に被測定物80を入れ、被測定物80のサイズを測定する処理について説明する。ここで、寸法測定装置1では、表1のデータ、表2のデータ、表3のデータおよび表4のデータが、事前に設計者により画像処理部7のメモリに書き込まれる。
 サイズ測定モード71は、ステップS1で開始される。次にステップS2において、照明具62を点灯させて収容室11の明るさが調節される。ステップS3において、撮像部6に収容室11内を撮像させることで、収容室11の内面および被測定物80を撮像した画像が取得される。
 ステップS4において、撮像した画像(グレースケール画像)に対しノイズ除去が行なわれる。そして、ノイズ除去をした画像の情報の一つである輝度値に基づいてフィルター処理が行われエッジが検出される。
 ステップS4において、フィルター処理が行われた画像に対して2値化が行なわれることで、エッジが明瞭になる。このような処理を行なった画像をエッジ画像60(図15参照)とする。エッジ画像60は、二次元画像である。エッジ画像60のデータは、画像処理部7のメモリに格納される。
 ステップS5において、図15に示すエッジ画像60から、画像上の被測定物80のエッジおよび頂点が検出される。以下、そのエッジおよび頂点の検出方法について説明する。
 エッジ画像60について説明する際、撮像部6が被測定物80と相対し、撮像部6から被測定物80を視た状態を基準として、撮像部6の上側を上方向、下側を下方向、右側を右方向および左側を左方向と定義する。
 ステップS5では、エッジ画像60において、6本のエッジで囲まれた多角形(六角形)が検出される。ステップS5では、検出された六角形の中から、六角形の6個の頂点のうち3個の頂点から延びたそれぞれのエッジが、一点で交わっている六角形が検出される。エッジ画像60上での被測定物80は、この六角形を構成する6本のエッジおよび3個の頂点から延びた3本のエッジにより表される。
 ステップS5では、六角形を構成する6本のエッジが右上のエッジから時計回りに、エッジE1、エッジE2、エッジE3、エッジE4、エッジE5、エッジE6とされる。さらに、ステップS5では、エッジE1とエッジE2との交点が頂点P1、エッジE2とエッジE3との交点が頂点P2、エッジE3とエッジE4との交点が頂点P3とされる。また、ステップS5では、エッジE4とエッジE5との交点が頂点P4、エッジE5とエッジE6との交点が頂点P5、エッジE6とエッジE1との交点が頂点P6とされる。
 ステップS5では、頂点P1から延びたエッジE7と頂点P3から延びたエッジE8と頂点P5から延びたエッジE9との交点が頂点P0とされる。
 ステップS6において、図15に示すエッジ画像60から外郭体2の頂点およびエッジが検出される。
 ステップS6では、外郭体2のエッジとして頂点P2から右斜め下方に延びたエッジA1が検出される。ステップS6では、外郭体2のエッジとして頂点P4から左斜め下方に延びたエッジA2が検出される。ステップS6では、外郭体2のエッジとして頂点P6から上方に延びたエッジA3が検出される。
 ステップS6では、外郭体2の頂点としてエッジA1における頂点P2とは反対側の端部が頂点S1とされる。ステップ6では、外郭体2の頂点としてエッジA2における頂点P4とは反対側の端部が頂点S2とされる。ステップ6では、外郭体2の頂点としてエッジA3における頂点P6とは反対側の端部が頂点S3としてされる。
 ステップS6では、外郭体2の頂点として頂点S1から左斜め下方に延びるエッジA4と頂点S2から右斜め下方に延びるエッジA5との交点が頂点S4とされる。
 ステップS6では、外郭体2の頂点として頂点S1から上方に延びるエッジA6における頂点S1とは反対側の端部が頂点S5として検出される。ステップ6では、外郭体2の頂点として頂点S2から上方に延びるエッジA7における頂点S1とは反対側の端部が頂点S6とされる。
 ステップS6では、外郭体2のエッジとして頂点S5から頂点S3までのエッジがエッジA8と検出される。ステップS6では、外郭体2のエッジとして頂点S6から頂点S3までのエッジがエッジA9と検出される。
 ステップS7において、図15に示すエッジ画像60から基準線4のエッジが検出される。ステップS7では、基準線4のエッジとして、エッジE1~エッジE9およびエッジA1~エッジA9以外のエッジで、エッジA1と平行なエッジL1が検出される。ステップS7では、基準線4のエッジとして、エッジE1~エッジE9およびエッジA1~エッジA9以外のエッジで、エッジA2と平行なエッジL2が検出される。
 ステップS8において、エッジ画像60に基づく検出結果と表1のデータから被測定物80の縦の寸法が求められる。ステップS8では、エッジA1とエッジA5との間にある複数のエッジL1において、頂点P4が頂点S2から三番目のエッジL1と四番目のエッジL1との間に位置することが検出される。この検出結果および表1の第1のライン51の順番のデータから、ステップS8では、頂点P2が基準隅部30から二番目のエッジL1と三番目のエッジL1との間に位置すると判断される。
 ステップS8では、表1に基づいて、被測定物80の縦の寸法は、10~15cmの範囲にあると求められる。
 ステップS9において、エッジ画像60に基づく検出結果と表2のデータから被測定物80の横の寸法が求められる。
 ステップS9では、エッジA2とエッジA4との間にある複数のエッジL2において、頂点P2が頂点S1から三番目のエッジL2と四番目のエッジL2との間に位置することが検出される。この検出結果および表2の第2のライン52の順番のデータから、ステップS9では、頂点P2が基準隅部30から二番目のエッジL2と三番目のエッジL2との間に位置すると判断される。
 ステップS9では、表2に基づいて、被測定物80の横の寸法は、10~15cmの範囲にあると求められる。
 ステップS10において、エッジ画像60に基づく検出結果と表3のデータから被測定物80の高さの寸法が求められる。
 ステップS10では、エッジA1とエッジA8との間にある複数のエッジL1において、頂点P6が頂点S3から四番目のエッジL1と五番目のエッジL1との間に位置することが検出される。この検出結果および表3の第1のライン51の順番のデータから、ステップS10では、頂点P6が基準隅部30から二番目のエッジL1と三番目のエッジL1との間に位置すると判断される。
 ステップ10では、表3に基づいて、被測定物80の高さの寸法は、10~15cmの範囲にあると求められる。
 以上のように、被測定物80の縦、横および高さの寸法が求まると、サイズ測定モード71はステップS11に移行し終了する。
 第2実施形態では、複数の第1基準線41のそれぞれの間隔を5cm、複数の第2基準線42のそれぞれの間隔を5cm、複数の第3基準線43のそれぞれの間隔を5cmとした。なお、寸法測定装置1では、それらの間隔を狭めることにより、寸法測定装置1の寸法の測定精度を向上させることができる。
 第2実施形態の寸法測定装置1の構成は、上記した一態様に限定されず、以下に示す態様であってもよい。
 寸法測定装置1では、縦、横および高さの寸法が求まるのであれば、図16Aに示すように、下面部20、第1側面部25aおよび第2側面部24aのうちで、基準線4が設けられない面が一つあってもよい。
 複数の第1基準線41における第1のライン51同士の間隔は、5cmでなくともよい。複数の第1基準線41における第2のライン52同士の間隔は、5cmでなくともよい。
 複数の第2基準線42同士の間隔は5cmでなくともよい。
 複数の第3基準線43同士の間隔は5cmでなくともよい。
 複数の第1基準線41における第1のライン51同士の間隔は等間隔でなくともよく、それぞれの第1入隅31からの距離がわかればよい。複数の第1基準線41における第2のライン52同士の間隔は等間隔でなくともよく、それぞれの第2入隅32からの距離がわかればよい。
 複数の第2基準線42同士の間隔は等間隔でなくともよく、それぞれの第1入隅31からの距離がわかればよい。
 複数の第3基準線43同士の間隔は等間隔でなくともよく、それぞれの第2入隅32からの距離がわかればよい。
 寸法測定装置1は、例えば図16Bに示すように、下面部20に一本の第1のライン51が引かれ、第1側面部25aに一本の第3のライン53が引かれ、第2側面部24aに一本の第2のライン52が引かれる寸法測定装置であってもよい。この場合、寸法測定装置1では、例えば被測定物80の縦、横および高さの寸法のいずれかが基準線4以上であれば、Lサイズと判断し、全てが基準線4未満であればSサイズとサイズ分けされる。
 寸法測定装置1では、第1のライン51、第2のライン52および第3のライン53のうち少なくとも一つが用いられればよく、例えば図16Cに示すように、第2側面部24aに第2のライン52が一本引かれる寸法測定装置であってもよい。この場合、寸法測定装置1では、被測定物80の高さの寸法が所定寸法以上か未満化で被測定物80がサイズ分けされる。
 基準線4の線種としては、実線だけでなく、点線、鎖線などといった線種のラインであってもよく、このうち点線は、点の大きさよりも点の間隔が数倍大きいような間隔の大きな点線でってもよい。
 第1のライン51は、第2入隅32または第3入隅33から離れた位置から延出されてもよい。
 第2のライン52は、第1入隅31または第3入隅33から離れた位置から延出されてもよい。
 第3のライン53は、第1入隅31または第2入隅32から離れた位置から延出されてもよい。
 被測定物80の形状は、立方体または直方体に限定されず、撮像部6で撮像される三面の形状が矩形状であればよい。
 外郭体2の形状は、直方体となっているが立方体でもよく、その形状は限定されない。
 内部空間10の形状は、直方体状となっているが立方体状であってもよく、その形状は限定されない。
 基準隅部30は、下面部20、右面部23a、左面部24b、後面部25bおよび前面部27aで形成される4つの隅部の内のいずれか1つの隅部であればよい。
 寸法測定装置1では、第1の辺20aが下面部20の後辺でなく、第2の辺20bが下面部20の左辺でなくともよく、また、第1側面部25aが後面部25bでなく、第2側面部24aが左面部24bでなくともよい。
 このような寸法測定装置1としては、例えば、基準隅部30が右奥の隅部であった場合、下面部20における後辺が第1の辺20aであり、下面部20における右辺が第2の辺20bである。そして、この場合の寸法測定装置1では、後面部25bが第1側面部25aであり、右面部23aが第2側面部24aである。
 撮像部6は、少なくとも基準線4、被測定物80の頂点P0~頂点P6およびエッジE1~エッジE9、収容室11のエッジA1~A7および収容室11の頂点S1、頂点S2、頂点S4を撮像できる位置に配置されればよい。
 カメラ本体61は、CMOS(Complementary Metal Oxide Semiconductor)カメラでもよい。
 撮像部6では、撮像する画像はグレースケールでもよいし、カラーでもよい。ここで、撮像部6で撮像する画像がカラーの場合、画像処理を行う際にグレースケール画像への変換をすることが好ましい。
 撮像部6では、カメラ本体61の制御部と照明具62とが接続され、照明具62のON・OFFは、カメラ本体61の制御部で操作されているが、照明具62と画像処理部7とが接続され、画像処理部7で照明具62を操作してもよい。
 撮像部6では、カメラ本体61の制御部と照明具62とが無線で接続されてもよい。
 撮像部6では、カメラ本体61と照明具62とは別体で設けられてもよい。
 照明具62には、蛍光灯や電球や他の色のLEDが用いられてもよい。なお、照明具62は、画像処理部7において、カメラ本体61で撮像した画像のエッジが検出され易い色や明るさであることが好ましい。
 画像処理部7のCPUには、公知の様々なマイクロコンピューターが適宜利用可能される。
 サイズ測定モード71は、図14に示すフローチャートの処理に限定されない。サイズ測定モード71では、例えばマーカーなどでエッジ画像60上における頂点P0を指示することで、被測定物80の頂点やエッジおよび基準線4のエッジを検出し、被測定物80のサイズを測定してもよい。
 また、サイズ測定モード71の処理は、撮像部6で撮像された画像からのエッジのみを検出し、頂点を検出しない処理でもよい。この場合例えば、エッジE1が何番目のエッジL1の間にあるかを検出して大きさを判断する。
 サイズ測定モード71では、撮像部6で撮像した画像のノイズ除去が移動平均フィルターやメディアンフィルターで行われてもよい。
 サイズ測定モード71のフィルター処理では、例えば一次差分オペレータとして、SobelフィルターやPrewittフィルターが用いられる。また、フィルター処理では、二次差分オペレータが用いられてもよい。
 サイズ測定モード71では、フィルター処理が行われた画像の二値化が、移動平均法による二値化や、閾値を二つ用いた二値化であってもよい。
 サイズ測定モード71で検出される六角形は、正六角形でもよいし、いびつな形状の六角形でもよい。
 上記した構成を備える寸法測定装置1では、収容室11に基準線4である第1のライン51や第2のライン52や第3のライン53を引き、それらを基準にすることで被測定物80のサイズを測定する。そのため、寸法測定装置1では、撮像部6で撮像した画像に歪みが生じたとしても、被測定物80のサイズの測定精度の低下を抑制できる。特に、寸法測定装置1では、撮像部6のカメラ本体61に広角のカメラを用いると、撮像部6の内部空間10を広く撮像できるが撮像した画像が歪んでしまうため、測定精度の低下を抑制できる効果が高い。また、大きさが大きな被測定物80が収納された場合、カメラ本体61と被測定物80の距離が短くなり、撮像した画像が大きく歪んでしまうため、測定精度の低下を抑制できる効果が高い。
 また、寸法測定装置1では、複数の第1のライン51および複数の第2のライン52で、被測定物80の縦、横および高さを測定することで、被測定物80のサイズを詳細に求めることができる。なお、第1のライン51、第2のライン52または第3のライン53のいずれか一つを収容室11に設けることで、被測定物80の縦、横および高さのうちの特定の寸法を求めることもできる。
 また、従来の寸法測定装置1では、画像内の被測定物80の頂点の座標を求め、それらの座標から画像内の被測定物80の縦、横および高さの寸法を算出し、それらの寸法を実空間の被測定物80の寸法に変換する必要があった。しかし、第2実施形態の寸法測定装置1では、サイズ測定モード71において、エッジ画像60上の頂点P2とエッジL2、頂点P4とエッジL1および頂点P6とエッジL1との位置関係から被測定物80のサイズを測定できる。
 そのため、第2実施形態の寸法測定装置1は、従来の寸法測定装置1よりも容易に被測定物80のサイズを測定できる。
 以上説明したように、第2実施形態の寸法測定装置1は以下に示す構成を備える。
 第2実施形態の寸法測定装置1は、次の第1の特徴を備える。第1の特徴では、寸法測定装置1は、次の第1の特徴を備える。第1の特徴では、寸法測定装置1は、被測定物80を出し入れ自在に収容する収容室11と、収容室11に設けられ、収容室11に収容される被測定物80を撮像する撮像部6と、を備える。寸法測定装置1は、撮像部6で撮像された画像の情報に基づいて画像処理を行ない被測定物80のサイズを測定する画像処理部7と、を備える。
 収容室11は、被測定物80が置かれる矩形状の下面部20と、下面部20から上方に延出される矩形状の第1側面部25aと、下面部20から上方に延出され、第1側面部25aに隣接する矩形状の第2側面部24aと、を有する。収容室11は、下面部20および第1側面部25aで形成される第1入隅31と、下面部20および第2側面部24aで形成される第2入隅32と、第1側面部25aおよび第2側面部24aで形成される第3入隅33と、を有する。収容室11は、第1入隅31、第2入隅32および第3入隅33が交差した部分に形成され、被測定物80を所定位置に配置する基準点となる基準隅部30を有する。収容室11は、第1側面部25a、第2側面部24aおよび下面部20の辺の位置を表示するマーカー(基準線4)を有する。
 マーカー(基準線4)は、第1入隅31の長さ方向に平行であり、下面部20または第1側面部25aのうちいずれか一方または両方に設けられる第1のライン51と、第2入隅32の長さ方向に平行であり、下面部20または第2側面部24aのうちいずれか一方または両方に設けられる第2のライン52と、第3入隅33の長さ方向に平行であり、第1側面部25aまたは第2側面部24aのうちいずれか一方または両方に設けられる第3のライン53と、のうち少なくとも一つ有する。
 この第1の特徴を有する寸法測定装置1によれば、収容室11に設けられる基準線4を基準にして被測定物80のサイズを測定することで、撮像部6で撮像した画像に歪みが生じたとしても、被測定物80のサイズの測定精度の低下を抑制できる。また、第1の特徴を有する寸法測定装置1では、マーカー(基準線4)を用いることで、第1側面部25a、第2側面部24aおよび下面部20の辺の認識が容易となる。
 第2実施形態の第1の特徴を有する寸法測定装置1は、以下の付加的な第2の特徴を有する。第2の特徴では、基準線4は、第1のライン51、第2のライン52および第3のライン53のうち少なくとも二つを有する。
 この第2の特徴を有する寸法測定装置1によれば、被測定物80の縦、横および高さの寸法に基づいて被測定物80のサイズを測定できるため、より詳細に被測定物80のサイズ分けを行なえる。
 第2実施形態の第1~第2の特徴を有する寸法測定装置1は、以下の付加的な第3の特徴を有する。第3の特徴では、撮像部6が、収容室11を照らす照明具62を有する。
 この第3の特徴を有する寸法測定装置1によれば、収容室11内の光量が不足していたとしても、照明具62で収容室11内を照らすことで光量不足を解消できる。
 <第2実施形態の応用例>
 以下に、上記した第2実施形態の応用例について図17A、図17B、図18A、図18B、図19A、図19B、図20A、図20Bに基づいて説明する。なお、第2実施形態の応用例は上記した第2実施形態と大部分において同じであるため、同じ部分については同符号を付して説明を省略し、異なる部分について説明する。
 第2実施形態の応用例の寸法測定装置1は、下面部20、第1側面部25aまたは第2側面部24aの少なくとも一つに、第1のライン51、第2のライン52または第3のライン53を用いた模様が形成される。
 寸法測定装置1では、図17A,図17Bに示すように、第1のライン51および第2のライン52を用いて下面部20に模様が形成される。ここで、寸法測定装置1では、図17Aに示す下面部20の模様を第1の模様20cとし、図17Bに示す下面部20の模様を第2の模様20dとする。
 第1の模様20cは、図17Aに示すように上記した第2実施形態で示した第1基準線41と同様である。すなわち、第1のライン51と第2のライン52とを合わせた模様である。第1基準線41は、第2入隅32から右方に突出した第1のライン51と、第1のラインの突出先端から第1入隅31まで突出した第2のライン52と、を有する。第1の模様20cは、第1基準線41を基準隅部30から右斜め前方に複数並べたものとなっている。
 第1の模様20cでは、第1基準線41における第1のライン51が基準隅部30から前方に向かって複数並び、それぞれの第1のライン51の長さが前側に位置する第1のライン51程長くなる。第1の模様20cでは、第1基準線41における第2のライン52が基準隅部30から右方に向かって複数並び、それぞれの第2のライン52の長さが右側に位置する第2のライン52程長くなる。
 このような第1の模様20cが下面部20に形成されることで、利用者が寸法測定装置1の基準隅部30の位置を把握し易くなる視覚効果を発生させることができる。特に、図18Aに示すように、複数の第1基準線41同士の間に色を付けることにより、利用者に対する視覚効果を増加させることができる。ここで、第1の模様20cでは、複数の第1基準線41同士の間において、基準隅部30から一つ置きに色が付けられることが好ましい。また、色の輝度値は、第1のライン51の輝度値および第2のライン52の輝度値と大きく異なることが好ましい。
 第2の模様20dは、図17Bに示すように、第1のライン51と第2のライン52とを合わせた第1の模様20cとは異なる模様である。
 第2の模様20dでは、第1のライン51が基準隅部30から前方に向かって複数並び、それぞれの第1のライン51が第2入隅32から反対側の入隅まで延びる。第2の模様20dでは、第2のライン52が基準隅部30から右方に向かって複数並び、それぞれの第2のライン52が第1入隅31から反対側の入隅まで延びる。
 第2の模様20dは、図17Bに示すように、複数の第1のライン51および複数の第2のライン52により格子状の模様となっている。ここで、第2の模様20dでは、複数の格子20eが左右方向に並ぶと共に、複数の格子20eが前後方向に並ぶ。
 このような格子状の第2の模様20dが下面部20に形成されることで、第2の模様20dがグリッド線として機能し、利用者が被測定物80を斜めに置いたことがわかり易くなる。これにより、利用者に対して、寸法測定装置1の基準隅部30に正しく位置合わせする視覚効果を発生させることができる。特に、図18Bに示すように、複数の格子20eに色を付けることにより、第1のライン51や第2のライン52の検出精度を高めることができる。ここで、第2の模様20dでは、前後方向に並ぶ複数の格子20eにおいて、第1入隅31から一つ置きに色が付けられることが好ましい。また、第2の模様20dでは、左右方向に並ぶ複数の格子20eにおいて、第2入隅32から一つ置きに色が付けられることが好ましい。また、色の輝度値は、第1のライン51の輝度値および第2のライン52の輝度値と大きく異なることが好ましい。
 寸法測定装置1では、図19A,図19Bに示すように、第1のライン51または第3のライン53を用いて第1側面部25aに模様が形成される。ここで、寸法測定装置1では、図19Aに示す第1側面部25aの模様を第3の模様25cとし、図19Bに示す第1側面部25aの模様を第4の模様25dとする。
 第3の模様25cは、図19Aに示すように、第1のライン51により形成される模様である。
 第3の模様25cでは、第1のライン51が基準隅部30から上方に向かって複数並び、それぞれの第1のライン51が第3入隅33から反対側の入隅まで延びる。
 このような第3の模様25cにおいて、図20Aに示すように、複数の第1のライン51同士の間に色を付けることにより、第1のライン51の検出精度を高めることができる。ここで、第3の模様25cでは、上下方向に並ぶ複数の第1のライン51同士の間において、第1入隅31から一つ置きに色が付けられることが好ましい。また、色の輝度値は、第1のライン51の輝度値と大きく異なることが好ましい。
 第4の模様25dは、図19Bに示すように、第1のライン51と第3のライン53とを合わせた模様であり、第2の模様20dと同じ格子状の模様である。
 第4の模様25dでは、第1のライン51が基準隅部30から上方に向かって複数並び、それぞれの第1のライン51が第3入隅33から反対側の入隅まで延びる。第4の模様25dでは、第3のライン53が基準隅部30から右方に向かって複数並び、それぞれの第3のライン53が第1入隅31から反対側の入隅まで延びる。
 第4の模様25dは、図19Bに示すように、複数の第1のライン51および複数の第3のライン53により格子状の模様となっている。ここで、第4の模様25dでは、複数の格子25eが左右方向に並ぶと共に、複数の格子25eが上下方向に並ぶ。
 このような格子状の第4の模様25dにおいて、図20Bに示すように、複数の格子25eに色を付けることにより、第1のライン51および第3のライン53の検出精度を高めることができる。ここで、第4の模様25dでは、左右方向に並ぶ複数の格子25eにおいて、第3入隅33から一つ置きに色が付けられることが好ましい。第4の模様25dでは、上下方向に並ぶ複数の格子25eにおいて、第1入隅31から一つ置きに色が付けられることが好ましい。また、色の輝度値は、第1のライン51および第3のライン53の輝度値と大きく異なることが好ましい。
 第2実施形態の応用例の寸法測定装置1の構成は、上記した一態様に限定されず、以下に示す態様であってもよい。
 寸法測定装置1では、第1の模様20cと第3の模様25cまたは第4の模様25dとを組み合わせてもよい。
 寸法測定装置1では、第2の模様20dと第3の模様25cまたは第4の模様25dとを組み合わせてもよい。
 第1の模様20c、第2の模様20d、第3の模様25cおよび第4の模様25dでは、色を付ける部分を逆にしてもよい。
 寸法測定装置1では、第3の模様25cおよび第4の模様25dが形成される側壁部22は、出入口12に対向する第1側面部25aが好適だが、第1側面部25aではなく第2側面部24aに模様を形成してもよい。
 寸法測定装置1では、第1側面部25aに第3の模様25cを形成し、第2側面部24aに第4の模様25dが形成されてもよいし、その逆に模様が形成されてもよい。
 <宅配ボックス装置>
 以下に、上記した第2実施形態の寸法測定装置を備えた宅配ボックス装置について図21A,図21Bに基づいて説明する。なお、宅配ボックス装置では、上記した第2実施形態および第2実施形態の応用例と同じ部分については同符号を付して説明を省略し、異なる部分について説明する。
 宅配ボックス装置9は、不特定の人が利用可能な多数の異なる公衆の場所に設置し、不特定多数の人が宅配物の発送をするために利用できる公衆利用の宅配ボックス装置となっている。
 宅配ボックス装置9は、図21Aに示すように、上記した寸法測定装置1と、大きさの異なる複数種類の宅配物収納部91と、を備える。宅配ボックス装置9は、寸法測定装置1で測定した被測定物80である宅配物を、その大きさに応じて大きさの異なる複数の宅配物収納部91のうちから最適な宅配物収納部91に収納する装置である。
 宅配ボックス装置9は、二種類の大きさの宅配物収納部91を有する。二種類の宅配物収納部91では、それぞれの収納空間92の上方から視たときの形状および大きさが同じである。二種類の宅配物収納部91では、それぞれの収納空間92の前方から視たときの高さの寸法が異なる。二種類の宅配物収納部91には、高さの寸法が高い第1宅配物収納部91aと、第1宅配物収納部91aよりも高さの寸法が低い第2宅配物収納部91bと、がある。
 宅配ボックス装置9では、寸法測定装置1により宅配物の縦、横および高さの寸法が測定され、二種類の大きさの第1宅配物収納部91aおよび第2宅配物収納部91bのうち最適な宅配物収納部91が選択される。宅配ボックス装置9では、最適な宅配物収納部91が選択されると、その扉が自動的に開くことで、その位置が利用者に報知される。このようにして、宅配ボックス装置9において、利用者により宅配物に適した宅配物収納部91に宅配物が収納される。
 宅配ボックス装置9の構成は、上記した一態様に限定されず、以下に示す態様であってもよい。
 宅配ボックス装置9は、限られた特定の人のみが利用可能な私的な場所(非公衆の場所)に設置して利用してもよい。
 第1宅配物収納部91aおよび第2宅配物収納部91bは、それぞれの収納空間92の奥行きと左右の寸法が同じであり、収納空間92の高さが異なる。そのため、寸法測定装置1では、図21Bに示すように、第2側面部24aに第2のライン52を一本引くだけでもよい。この場合、宅配物の高さが、第2側面部24aの第2のライン52よりも下なら第2宅配物収納部91bが選択される。また、宅配物の高さが、第2側面部24aの第2のライン52以上なら第1宅配物収納部91aが選択される。
 複数種類の宅配物収納部91には、第1宅配物収納部91aおよび第2宅配物収納部91bだけでなく、高さの異なる宅配物収納部91が三種類以上あってもよい。また、複数種類の宅配物収納部91には、奥行き、左右および高さのうち2つ以上が異なる複数種類の宅配物収納部91があってもよい。この場合、宅配ボックス装置9では、寸法測定装置1により宅配物の縦、横および高さの寸法が測定され、複数種類の宅配物収納部91のうち最適な宅配物収納部91が選択される。
 上記した構成を備える宅配ボックス装置9では、収容室11に基準線4を引き、基準線4を基準にすることで宅配物のサイズに適した大きさの宅配物収納部91が選択される。そのため、宅配ボックス装置9では、撮像部6で撮像した画像に歪みが生じたとしても、宅配物のサイズの測定精度の低下を抑制でき、宅配物に適した大きさの宅配物収納部91が選択され易い。
 また、宅配ボックス装置9では、宅配物の頂点と基準線との位置関係から宅配物のサイズを測定できるので、従来の宅配ボックス装置9よりも容易に宅配物のサイズが測定される。
 上記した第2実施形態の第1~第3の特徴を有する寸法測定装置1を備えた宅配ボックス装置9は、以下の付加的な第4の特徴を有する。第4の特徴では、宅配ボックス装置9が、寸法測定装置1で測定された宅配物のサイズに応じて収納する複数種類の宅配物収納部91を有する。
 この第4の特徴を有する宅配ボックス装置9では、撮像部6で撮像した画像に歪みが生じたとしても、宅配物のサイズの測定精度の低下を抑制できるので、宅配物に適した大きさの宅配物収納部91が選択され易い。
 1 寸法測定装置
 101 寸法測定装置
 103 撮像部
 104 画像処理部
 11 収容室
 111 収容室
 112 第1入隅
 113 第2入隅
 114 第3入隅
 115 基準隅部
 116 マーカー
 1201 下面部
 1232 第2側面部
 1242 第1側面部
 1251 上面部
 1261 出入口
 132 照明具
 142 二値画像
 144 補正画像
 150 被測定物
 20 下面部
 211 下面部
 211a 第1の辺
 211b 第2の辺
 24a 第2側面部
 240 第2側面部
 25a 第1側面部
 250 第1側面部
 30 基準隅部
 31 第1入隅
 32 第2入隅
 33 第3入隅
 4 基準線
 51 第1のライン
 52 第2のライン
 53 第3のライン
 6 撮像部
 62 照明具
 7 画像処理部
 80 被測定物
 9 宅配ボックス装置
 91 宅配物収納部
 A11 エッジ
 T1 エッジ

Claims (11)

  1.  被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部と、を備え、
     前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部と、前記第1側面部、前記第2側面部および前記下面部の辺の位置を表示するマーカーと、を有することを特徴とする寸法測定装置。
  2.  前記マーカーが、ライン、円または多角形であることを特徴とする請求項1記載の寸法測定装置。
  3.  異なる面に設けられた前記マーカーは、それぞれ色調が異なることを特徴とする請求項1または請求項2に記載の寸法測定装置。
  4.  前記収容室は、前記第1側面部および前記第2側面部の上縁から延出される矩形状の上面部と、前記第1側面部に対向し、前記被測定物を出し入れするための出入口と、を有し、
     前記撮像部は、前記上面部の前記出入口側の端部における前記基準隅部とは反対側の端部に設けられることを特徴とする請求項1ないし請求項3のいずれか一項に記載の寸法測定装置。
  5.  前記マーカーは、前記第1入隅の長さ方向に平行であり、前記下面部または前記第1側面部のうちいずれか一方または両方に設けられる第1のラインと、前記第2入隅の長さ方向に平行であり、前記下面部または前記第2側面部のうちいずれか一方または両方に設けられる第2のラインと、前記第3入隅の長さ方向に平行であり、前記第1側面部または前記第2側面部のうちいずれか一方または両方に設けられる第3のラインと、のうち少なくとも一つ有することを特徴とする請求項1記載の寸法測定装置。
  6.  前記基準線は、前記第1のライン、前記第2のラインおよび前記第3のラインのうち少なくとも二つ有することを特徴とする請求項5記載の寸法測定装置。
  7.  前記撮像部が、前記収容室を照らす照明具を有することを特徴とする請求項1ないし請求項6のいずれか一項に記載の寸法測定装置。
  8.  前記収容室では、被測定物を前記下面部の奥隅に配置されることを特徴とする請求項1ないし請求項7のいずれか一項に記載の寸法測定装置。
  9.  請求項1ないし請求項8のいずれか一項に記載の前記寸法測定装置を備えた宅配ボックス装置であって、
     前記寸法測定装置で測定された被測定物である宅配物のサイズに応じて収納する複数種類の宅配物収納部を有することを特徴とする宅配ボックス装置。
  10.  被測定物を出し入れ自在に収容する収容室と、前記収容室に設けられ、前記収容室に収容される前記被測定物を撮像する撮像部と、前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物のサイズを測定する画像処理部と、を備えた寸法測定装置を用い、
     前記収容室は、前記被測定物が置かれる矩形状の下面部と、前記下面部から上方に延出される矩形状の第1側面部と、前記下面部から上方に延出され、前記第1側面部に隣接する矩形状の第2側面部と、前記下面部および前記第1側面部で形成される第1入隅と、前記下面部および前記第2側面部で形成される第2入隅と、前記第1側面部および前記第2側面部で形成される第3入隅と、前記第1入隅、前記第2入隅および前記第3入隅が交差した部分に形成され、前記被測定物を所定位置に配置する基準点となる基準隅部と、前記第1側面部、前記第2側面部および前記下面部の辺の位置を表示するマーカーと、を有し、
     前記画像処理部は、前記収容室に前記被測定物が配置される前の状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内の前記マーカーを識別し、前記マーカーから前記二値画像内の前記第1側面部、前記第2側面部および前記下面部の辺に対応するエッジを識別して、前記エッジの歪みを基に歪み補正用データを作成し、前記収容室に前記被測定物が配置された状態で、前記撮像部で撮像した前記画像に対して二値化を行なうことで二値画像を作成し、前記二値画像内で識別された前記被測定物のエッジの歪みを前記歪み補正用データを基に補正することで補正画像を取得し、前記補正画像の前記第1側面部、前記第2側面部および前記下面部に対応する面内を走査することで前記被測定物のサイズを測定することを特徴とする寸法測定方法。
  11.  前記収容室は、前記第1側面部および前記第2側面部の上縁から延出される矩形状の上面部と、前記第1側面部に対向し、前記被測定物を出し入れするための出入口と、を有し、
     前記撮像部は、前記上面部の出入口側の端部における前記基準隅部とは反対側の端部に設けられることを特徴とする請求項10記載の寸法測定方法。
PCT/JP2016/005154 2015-12-25 2016-12-16 寸法測定装置、宅配ボックス装置、寸法測定方法 WO2017110071A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US16/062,714 US10748297B2 (en) 2015-12-25 2016-12-16 Dimension measurement device, parcel locker system, and dimension measurement method
CN201680076223.3A CN108474647B (zh) 2015-12-25 2016-12-16 尺寸测量装置、包裹柜***和尺寸测量方法
EP16877976.7A EP3396310B1 (en) 2015-12-25 2016-12-16 Dimension measurement device, parcel locker system and dimension measurement method

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
JP2015254673A JP6643673B2 (ja) 2015-12-25 2015-12-25 測定装置、宅配ボックス装置
JP2015-254673 2015-12-25
JP2016-032502 2016-02-23
JP2016032501A JP6624562B2 (ja) 2016-02-23 2016-02-23 寸法測定装置
JP2016-032501 2016-02-23
JP2016032502A JP6624563B2 (ja) 2016-02-23 2016-02-23 寸法測定方法

Publications (1)

Publication Number Publication Date
WO2017110071A1 true WO2017110071A1 (ja) 2017-06-29

Family

ID=59089899

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/005154 WO2017110071A1 (ja) 2015-12-25 2016-12-16 寸法測定装置、宅配ボックス装置、寸法測定方法

Country Status (4)

Country Link
US (1) US10748297B2 (ja)
EP (1) EP3396310B1 (ja)
CN (1) CN108474647B (ja)
WO (1) WO2017110071A1 (ja)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019187826A1 (ja) * 2018-03-30 2019-10-03 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
JP2019184556A (ja) * 2018-03-30 2019-10-24 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
WO2020003753A1 (ja) * 2018-06-29 2020-01-02 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
CN111872944A (zh) * 2020-05-26 2020-11-03 清华大学 物品存取及测量装置
EP3438602B1 (en) * 2017-08-03 2022-05-11 Toshiba TEC Kabushiki Kaisha Dimension measurement apparatus and control method of the same
US11514596B2 (en) * 2017-12-27 2022-11-29 Panasonic Intellectual Property Management Co., Ltd. Shape identification device and delivery box

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019015553A (ja) * 2017-07-05 2019-01-31 ソニーセミコンダクタソリューションズ株式会社 情報処理装置、情報処理方法および個体撮像装置
US11468376B2 (en) * 2018-10-12 2022-10-11 Ricoh Company, Ltd. High-density dynamic mail services
EP3702985A1 (en) * 2019-02-28 2020-09-02 Accenture Global Solutions Limited Augmented reality enabled cargo loading optimization
US20230114432A1 (en) * 2020-06-22 2023-04-13 Hitachi High-Tech Corporation Dimension measurement apparatus, semiconductor manufacturing apparatus, and semiconductor device manufacturing system
CN111921873B (zh) * 2020-07-31 2022-04-19 杭州海康机器人技术有限公司 包裹分拣方法及***
EP4141774A1 (de) * 2021-08-28 2023-03-01 SQlab GmbH Verfahren und system zum auswählen eines fahrradprodukts
CN113989979A (zh) * 2021-10-29 2022-01-28 元气森林(北京)食品科技集团有限公司 智能柜及其物品管理方法、电子设备、介质、产品

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01141307A (ja) * 1987-11-27 1989-06-02 Nishiyama:Kk 体積の測定方法及びその装置
JPH10214349A (ja) * 1996-11-27 1998-08-11 Fujitsu Ltd 撮影パラメータ測定方法及び装置並びに記録媒体
JP2001264018A (ja) * 2000-03-15 2001-09-26 Yokogawa Gijutsu Joho:Kk ゲージ並びに該ゲージを用いた寸法校正装置及び寸法校正方法
JP2002250621A (ja) * 2000-12-18 2002-09-06 Olympus Optical Co Ltd 光学素子及びその型の形状測定方法及び装置
JP2006119792A (ja) * 2004-10-20 2006-05-11 Seiko Epson Corp キオスク端末、プログラムおよび配送受付処理システム
JP2007192832A (ja) * 2007-03-06 2007-08-02 Iwate Univ 魚眼カメラの校正方法。
JP2009222525A (ja) * 2008-03-14 2009-10-01 Nuflare Technology Inc 基板検査方法および基板検査装置
JP2011179980A (ja) * 2010-03-01 2011-09-15 Saxa Inc 立体マーカを利用した位置計測システム
JP2012168800A (ja) * 2011-02-15 2012-09-06 Panasonic Corp 宅配ボックス装置
JP2013000851A (ja) * 2011-06-20 2013-01-07 Sanyo Mach Works Ltd 締付作業支援装置および締付作業支援方法
JP2014035196A (ja) * 2012-08-07 2014-02-24 Chuo Spring Co Ltd 形状計測装置
JP2014052270A (ja) * 2012-09-06 2014-03-20 Shinko Denshi Kk 寸法測定装置

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5661561A (en) * 1995-06-02 1997-08-26 Accu-Sort Systems, Inc. Dimensioning system
US6097850A (en) 1996-11-27 2000-08-01 Fujitsu Limited Measuring method and apparatus of photographic parameter and computer memory product
US6571196B2 (en) * 1999-11-29 2003-05-27 Hitachi Kokusai Electric Inc. Size inspection/measurement method and size inspection/measurement apparatus
US7391424B2 (en) * 2003-08-15 2008-06-24 Werner Gerhard Lonsing Method and apparatus for producing composite images which contain virtual objects
JP4522140B2 (ja) * 2004-05-14 2010-08-11 キヤノン株式会社 指標配置情報推定方法および情報処理装置
CN101346620A (zh) * 2005-12-23 2009-01-14 皇家飞利浦电子股份有限公司 光学测量设备
JP2007256116A (ja) 2006-03-23 2007-10-04 Brother Ind Ltd 3次元形状検出装置
JP5412757B2 (ja) * 2008-07-25 2014-02-12 Jfeスチール株式会社 光学系歪補正方法および光学系歪補正装置
KR101442895B1 (ko) * 2009-02-18 2014-09-19 아사히 가라스 가부시키가이샤 직사각형 판상물의 외형 형상 측정 방법 및 촬상 수단의 상대 위치 교정 방법
JPWO2010113756A1 (ja) * 2009-03-30 2012-10-11 シャープ株式会社 二次元測定機および二次元測定方法
EP2437037B1 (fr) * 2010-09-30 2018-03-14 Neopost Technologies Procédé et dispositif de détermination des trois dimensions d'un colis
EP2439503A1 (fr) * 2010-09-30 2012-04-11 Neopost Technologies Dispositif de détermination des trois dimensions d'un colis
US9696897B2 (en) * 2011-10-19 2017-07-04 The Regents Of The University Of California Image-based measurement tools
JP6037683B2 (ja) * 2012-07-02 2016-12-07 オリンパス株式会社 計測装置、計測装置の作動方法、およびプログラム
US9741134B2 (en) * 2013-12-16 2017-08-22 Symbol Technologies, Llc Method and apparatus for dimensioning box object
US11176655B2 (en) * 2014-01-27 2021-11-16 Cognex Corporation System and method for determining 3D surface features and irregularities on an object
DE102015101144A1 (de) * 2014-02-24 2015-08-27 Bvs Verpackungs-Systeme Gmbh Pack-Wägestation mit Volumenerkennung und Verfahren
US9881235B1 (en) * 2014-11-21 2018-01-30 Mahmoud Narimanzadeh System, apparatus, and method for determining physical dimensions in digital images

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01141307A (ja) * 1987-11-27 1989-06-02 Nishiyama:Kk 体積の測定方法及びその装置
JPH10214349A (ja) * 1996-11-27 1998-08-11 Fujitsu Ltd 撮影パラメータ測定方法及び装置並びに記録媒体
JP2001264018A (ja) * 2000-03-15 2001-09-26 Yokogawa Gijutsu Joho:Kk ゲージ並びに該ゲージを用いた寸法校正装置及び寸法校正方法
JP2002250621A (ja) * 2000-12-18 2002-09-06 Olympus Optical Co Ltd 光学素子及びその型の形状測定方法及び装置
JP2006119792A (ja) * 2004-10-20 2006-05-11 Seiko Epson Corp キオスク端末、プログラムおよび配送受付処理システム
JP2007192832A (ja) * 2007-03-06 2007-08-02 Iwate Univ 魚眼カメラの校正方法。
JP2009222525A (ja) * 2008-03-14 2009-10-01 Nuflare Technology Inc 基板検査方法および基板検査装置
JP2011179980A (ja) * 2010-03-01 2011-09-15 Saxa Inc 立体マーカを利用した位置計測システム
JP2012168800A (ja) * 2011-02-15 2012-09-06 Panasonic Corp 宅配ボックス装置
JP2013000851A (ja) * 2011-06-20 2013-01-07 Sanyo Mach Works Ltd 締付作業支援装置および締付作業支援方法
JP2014035196A (ja) * 2012-08-07 2014-02-24 Chuo Spring Co Ltd 形状計測装置
JP2014052270A (ja) * 2012-09-06 2014-03-20 Shinko Denshi Kk 寸法測定装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3396310A4 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3438602B1 (en) * 2017-08-03 2022-05-11 Toshiba TEC Kabushiki Kaisha Dimension measurement apparatus and control method of the same
US11514596B2 (en) * 2017-12-27 2022-11-29 Panasonic Intellectual Property Management Co., Ltd. Shape identification device and delivery box
WO2019187826A1 (ja) * 2018-03-30 2019-10-03 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
JP2019184556A (ja) * 2018-03-30 2019-10-24 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
JP7054881B2 (ja) 2018-03-30 2022-04-15 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
WO2020003753A1 (ja) * 2018-06-29 2020-01-02 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
JPWO2020003753A1 (ja) * 2018-06-29 2021-05-13 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
JP7113316B2 (ja) 2018-06-29 2022-08-05 パナソニックIpマネジメント株式会社 宅配ボックスの寸法測定装置
CN111872944A (zh) * 2020-05-26 2020-11-03 清华大学 物品存取及测量装置

Also Published As

Publication number Publication date
US20180374232A1 (en) 2018-12-27
EP3396310A4 (en) 2018-12-19
EP3396310B1 (en) 2020-11-25
EP3396310A1 (en) 2018-10-31
CN108474647B (zh) 2020-08-04
US10748297B2 (en) 2020-08-18
CN108474647A (zh) 2018-08-31

Similar Documents

Publication Publication Date Title
WO2017110071A1 (ja) 寸法測定装置、宅配ボックス装置、寸法測定方法
JP6643673B2 (ja) 測定装置、宅配ボックス装置
CN108445007B (zh) 一种基于图像融合的检测方法及其检测装置
JP5073996B2 (ja) 画像処理装置
JP6184289B2 (ja) 三次元画像処理装置、三次元画像処理方法、三次元画像処理プログラム及びコンピュータで読み取り可能な記録媒体並びに記録した機器
JP4150390B2 (ja) 外観検査方法及び外観検査装置
JP2010237210A (ja) 検査方法
TWI687660B (zh) 配光特性測定裝置以及配光特性測定方法
JP6624562B2 (ja) 寸法測定装置
JP2018152055A (ja) ビジョンシステムにおいてカラー画像と対照してカラーの候補ポーズをスコアリングするためのシステム及び方法
TW201705088A (zh) 基於場景之立體影像所產生之差異圖
KR102037560B1 (ko) 곡립 외관 측정 장치
JP2010133751A (ja) 形状測定装置およびプログラム
JP6624563B2 (ja) 寸法測定方法
JP6308880B2 (ja) 画像検査装置
JP6045429B2 (ja) 撮像装置、画像処理装置及び画像処理方法
JP2018527572A (ja) レンチキュラレンズシートの回転位置の測定
JP6771905B2 (ja) 検査装置、検査方法及び物品の製造方法
JP2012220479A (ja) 撮像対象物の境界検知装置および境界検知方法
JP2007298376A (ja) 境界の位置決定装置、境界の位置を決定する方法、当該装置としてコンピュータを機能させるためのプログラム、および記録媒体
US20220326145A1 (en) Inspection method, program, and inspection system
JP2019514012A (ja) 品物の外観検査装置及びそれを用いた品物の外観検査方法
JP2004012143A (ja) 立体計測装置
JP6908357B2 (ja) 位置特定装置及び位置特定方法
JP5509706B2 (ja) 画像処理装置および画像処理方法

Legal Events

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

Ref document number: 16877976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016877976

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016877976

Country of ref document: EP

Effective date: 20180725