Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7054881B2 - Delivery box dimension measuring device - Google Patents
[go: Go Back, main page]

JP7054881B2 - Delivery box dimension measuring device - Google Patents

Delivery box dimension measuring device Download PDF

Info

Publication number
JP7054881B2
JP7054881B2 JP2018123732A JP2018123732A JP7054881B2 JP 7054881 B2 JP7054881 B2 JP 7054881B2 JP 2018123732 A JP2018123732 A JP 2018123732A JP 2018123732 A JP2018123732 A JP 2018123732A JP 7054881 B2 JP7054881 B2 JP 7054881B2
Authority
JP
Japan
Prior art keywords
measured
image
unit
measuring device
image processing
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP2018123732A
Other languages
Japanese (ja)
Other versions
JP2019184556A (en
Inventor
健志 西村
信諭 門脇
英亮 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to PCT/JP2019/006498 priority Critical patent/WO2019187826A1/en
Publication of JP2019184556A publication Critical patent/JP2019184556A/en
Application granted granted Critical
Publication of JP7054881B2 publication Critical patent/JP7054881B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Description

本開示は、宅配ボックスの寸法測定装置に関する。 The present disclosure relates to a dimensional measuring device for a delivery box.

従来から、特許文献1に記載されているように、不特定の人が利用可能な公衆の場所に設置され、複数の収容室(収容部)を有する宅配ボックスが知られている。この宅配ボックスは、不特定の多数の人が宅配物を発送するために利用できる。発送人が、宅配ボックスの測定装置の収容部に宅配物を入れると、寸法測定装置により宅配物の寸法が測定される。これにより、二種類の大きさの宅配物収納部のうち、最適な宅配物収納部が選択され、その扉が自動的に開く。発送人はその宅配物収納部に宅配物を収納する。 Conventionally, as described in Patent Document 1, a delivery box that is installed in a public place that can be used by an unspecified person and has a plurality of accommodation rooms (accommodation units) is known. This delivery box can be used by an unspecified number of people to ship deliveries. When the sender puts the parcel in the storage part of the measuring device of the parcel box, the dimension measuring device measures the dimensions of the parcel. As a result, the most suitable delivery storage unit is selected from the two sizes of delivery storage units, and the door is automatically opened. The sender stores the parcels in the parcel storage section.

特許文献2には、宅配物等の被測定物の寸法を測定する装置であって、被測定物を収容する収容室と、収容室内を撮像する撮像部と、撮像部で撮像された画像の情報に基づいて画像処理を行って被測定物の寸法を測定する画像処理部とを備える装置が記載されている。 Patent Document 2 describes a device for measuring the dimensions of an object to be measured such as a home-delivered object, which includes a storage room for accommodating the object to be measured, an image pickup unit for imaging the accommodation room, and an image captured by the image pickup unit. Described is an apparatus including an image processing unit that performs image processing based on information and measures the dimensions of an object to be measured.

特開2017-116482号公報Japanese Unexamined Patent Publication No. 2017-116482 特開2017-150908号公報JP-A-2017-150908

特許文献2に記載された寸法測定装置によれば、被測定物の寸法を、撮像部で撮像した画像から自動で測定できる。しかしながら、このような寸法測定装置では、被測定物の寸法測定を可能とするために、被測定物を収容室内の予め決められた所定位置に置く必要がある。具体的には、収容室には基準隅部が設定され、基準隅部で互いに交差する下面部、第1側面部及び第2側面部に被測定物の3つの側面をほぼ接触させて被測定物を置く必要がある。一方、収容室において被測定物が所定位置からずれた状態で置かれていると、被測定物の寸法を高精度に測定できない。 According to the dimension measuring device described in Patent Document 2, the dimension of the object to be measured can be automatically measured from the image captured by the image pickup unit. However, in such a dimensional measuring device, in order to enable dimensional measurement of the object to be measured, it is necessary to place the object to be measured at a predetermined predetermined position in the accommodation chamber. Specifically, a reference corner is set in the accommodation chamber, and the three side surfaces of the object to be measured are substantially brought into contact with the lower surface portion, the first side surface portion, and the second side surface portion that intersect each other at the reference corner to be measured. You need to put things down. On the other hand, if the object to be measured is placed in the accommodation chamber in a state of being displaced from a predetermined position, the dimensions of the object to be measured cannot be measured with high accuracy.

本開示の目的は、収容室に収容された被測定物の寸法を高精度に測定できる宅配ボックスの寸法測定装置を提供することである。 An object of the present disclosure is to provide a dimension measuring device for a delivery box capable of measuring the dimensions of an object to be measured housed in a containment chamber with high accuracy.

本開示の宅配ボックスの寸法測定装置は、被測定物を出し入れ可能に収容する収容室と、収容室に収容される被測定物を撮像する撮像部と、撮像部で撮像された画像の情報に基づいて画像処理を行ない被測定物の寸法を測定するとともに、画像の情報に基づいて、被測定物の予め決められた所定位置からの位置ずれの有無を検知する画像処理部と、画像処理部により位置ずれを検知した際に、被測定物を置き直すか否かの問い合わせを報知する報知部とを備える。 The dimensional measuring device of the delivery box of the present disclosure includes a storage chamber for accommodating an object to be measured in and out, an image pickup unit for capturing an image of the object to be measured housed in the accommodation chamber, and information of an image captured by the image pickup unit. An image processing unit and an image processing unit that perform image processing based on the above to measure the dimensions of the object to be measured and detect the presence or absence of a positional deviation of the object to be measured from a predetermined predetermined position based on the image information. It is provided with a notification unit for notifying an inquiry as to whether or not to replace the object to be measured when the misalignment is detected.

本開示に係る宅配ボックスの寸法測定装置によれば、収容室に被測定物を置いた状態で、被測定物が所定位置からずれている場合には、報知部により被測定物を置き直すか否かの問い合わせが報知される。これに応じて、ユーザが被測定物をその報知がされなくなるまで置き直すことができるので、寸法測定装置は、所定位置に正確に置かれた被測定物の寸法を高精度に測定することができる。 According to the dimension measuring device of the delivery box according to the present disclosure, if the object to be measured is displaced from a predetermined position while the object to be measured is placed in the accommodation chamber, whether the object to be measured is replaced by the notification unit. An inquiry as to whether or not is notified. In response to this, the user can reposition the object to be measured until the notification is stopped, so that the dimension measuring device can measure the dimension of the object to be measured accurately placed in a predetermined position with high accuracy. can.

本開示の実施形態の寸法測定装置を備える宅配ボックスの斜視図である。It is a perspective view of the delivery box provided with the dimension measuring apparatus of the embodiment of this disclosure. 寸法測定装置の収容室の1例を示す斜視図である。It is a perspective view which shows an example of the accommodation chamber of a dimension measuring apparatus. 本開示の実施形態の寸法測定装置の構成図である。It is a block diagram of the dimension measuring apparatus of embodiment of this disclosure. 実施形態における位置ずれ検知と寸法測定とを示すフローチャートである。It is a flowchart which shows the position displacement detection and the dimension measurement in an embodiment. (a)は、収容室に被測定物を配置した状態を撮像部で撮像した測定用画像に基づく二値画像を示す図であり、(b)は、(a)に示す二値画像に基づく補正画像を示す図である。(A) is a diagram showing a binary image based on a measurement image captured by an imaging unit in a state where an object to be measured is arranged in a containment chamber, and (b) is a diagram based on the binary image shown in (a). It is a figure which shows the corrected image. 収容室の所定位置に被測定物が配置された場合における補正画像において、寸法測定のための4種類の走査線方向を示す図である。It is a figure which shows four kinds of scanning line directions for dimension measurement in the correction image when the object to be measured is arranged at the predetermined position of a containment chamber. (a)は、図6に示す第1走査線の長さの変化を示す第1高さグラフを示す図であり、(b)は、図6に示す第2走査線の長さの変化を示す第2高さグラフを示す図であり、(c)は、図6に示す第3走査線の長さの変化を示す幅グラフを示す図であり、(d)は、図6に示す第4走査線の長さの変化を示す奥行きグラフを示す図である。(A) is a diagram showing a first height graph showing a change in the length of the first scanning line shown in FIG. 6, and (b) is a diagram showing a change in the length of the second scanning line shown in FIG. It is a figure which shows the 2nd height graph which shows, (c) is the figure which shows the width graph which shows the change of the length of the 3rd scanning line shown in FIG. 6, (d) is the figure which shows | 4 It is a figure which shows the depth graph which shows the change of the length of a scanning line. 収容室の所定位置からずれた位置に被測定物が配置された場合における位置ずれ検知の第1例を示す図であって、図6に対応する図である。It is a figure which shows the 1st example of the position deviation detection in the case where the object to be measured is arranged at the position shifted from the predetermined position of the accommodation chamber, and is the figure corresponding to FIG. 図8に示す第4走査線の長さの変化を示す奥行きグラフを示す図である。It is a figure which shows the depth graph which shows the change of the length of the 4th scanning line shown in FIG. 収容室の所定位置からずれた位置に被測定物が配置された場合における位置ずれ検知の第2例を示す図であって、図6に対応する図である。It is a figure which shows the 2nd example of the position deviation detection in the case where the object to be measured is arranged at the position shifted from the predetermined position of the accommodation chamber, and is the figure corresponding to FIG. (a)は、図10に示す第1走査線の長さの変化を示す第1高さグラフを示す図であり、(b)は、図10に示す第2走査線の長さの変化を示す第2高さグラフを示す図である。(A) is a diagram showing a first height graph showing a change in the length of the first scanning line shown in FIG. 10, and (b) is a diagram showing a change in the length of the second scanning line shown in FIG. It is a figure which shows the 2nd height graph which shows. 収容室の所定位置からずれた位置であって、第1側面部及び第2側面部に対し斜めに被測定物が配置された場合における位置ずれ検知の方法を示す図であって、図6に対応する図である。FIG. 6 is a diagram showing a method of detecting misalignment when the object to be measured is placed diagonally with respect to the first side surface portion and the second side surface portion at a position deviated from a predetermined position of the accommodation chamber. It is a corresponding figure. 図12に示す第4走査線の長さの変化を示す奥行きグラフを示す図である。It is a figure which shows the depth graph which shows the change of the length of the 4th scanning line shown in FIG. 実施形態の別例の宅配ボックスの斜視図である。It is a perspective view of the delivery box of another example of embodiment. 実施形態の別例の寸法測定装置の収容室を示す斜視図である。It is a perspective view which shows the accommodation chamber of the dimension measuring apparatus of another example of embodiment. 実施形態の別例の寸法測定のための測定用画像を生成する手順を示すフローチャートである。It is a flowchart which shows the procedure which generates the image for measurement for the dimension measurement of another example of embodiment. 実施形態の別例の寸法測定のための測定用画像の生成手順において生成された荷物なし画像(画像A)を示す図である。It is a figure which shows the image without baggage (image A) generated in the process of generating the image for measurement for the dimension measurement of another example of embodiment. 実施形態の別例の寸法測定のための測定用画像の生成手順において生成された荷物あり画像(画像B)を示す図である。It is a figure which shows the image with luggage (image B) generated in the generation procedure of the image for measurement for the dimension measurement of another example of embodiment. 図17の画像と図18の画像との差分から生成された画像(画像C)を示す図である。It is a figure which shows the image (image C) generated from the difference between the image of FIG. 17 and the image of FIG. 図19の画像において、収容室内の3面の各画像からエッジを検出する方法を示す図である。In the image of FIG. 19, it is a figure which shows the method of detecting an edge from each image of three surfaces in a containment chamber. 図20において、検出されたエッジを強調して示す図である。20 is a diagram showing the detected edges emphasized in FIG. 20. 図21において、荷物付近の画像を拡大して示す図である。FIG. 21 is an enlarged view showing an image of the vicinity of a luggage.

以下、図面を用いて本開示の実施形態を説明する。以下で説明する形状及び個数は、説明のための例示であって、寸法測定装置を含む宅配ボックスの仕様に応じて適宜変更することができる。以下ではすべての図面において同等の要素には同一の符号を付して説明する。また、本文中の説明においては、必要に応じてそれ以前に述べた符号を用いるものとする。 Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. The shapes and numbers described below are examples for explanation and can be appropriately changed according to the specifications of the delivery box including the dimension measuring device. In the following, the equivalent elements will be described with the same reference numerals in all the drawings. In addition, in the explanation in the text, the reference numerals described earlier shall be used as necessary.

以下の説明及び図面で、Rは、宅配ボックスに向かって見た場合の右側であり、Lは、同じく左側であり、Fは、宅配ボックスの正面側であり、Bは、宅配ボックスの裏側である。R及びLを結ぶ方向と、F及びBを結ぶ方向とは互いに直交する。 In the following description and drawings, R is the right side when viewed toward the delivery box, L is also the left side, F is the front side of the delivery box, and B is the back side of the delivery box. be. The direction connecting R and L and the direction connecting F and B are orthogonal to each other.

図1は、本開示の実施形態の寸法測定装置20を含む宅配ボックス12の斜視図である。宅配ボックス12は、不特定の人が利用可能な公衆の場所に設置され不特定の多数の人が宅配物を発送するために利用できる。 FIG. 1 is a perspective view of a delivery box 12 including the dimension measuring device 20 according to the embodiment of the present disclosure. The delivery box 12 is installed in a public place that can be used by an unspecified number of people, and can be used by an unspecified number of people to ship the delivery.

図1に示すように、宅配ボックス12は、略直方体状の外装体(本体)13、複数の宅配用収容室14、各宅配用収容室14の開口を開閉する扉15、寸法測定装置20、及び、操作表示部17を含む。以下、寸法測定装置20は、測定装置20と記載する場合がある。宅配用収容室14は、被測定物90(図2)を出し入れ可能に収容する箱状である。実施形態では、被測定物90は、外形が直方体の宅配物である。 As shown in FIG. 1, the delivery box 12 includes a substantially rectangular parallelepiped exterior body (main body) 13, a plurality of delivery storage chambers 14, a door 15 for opening and closing the openings of each delivery containment chamber 14, and a dimension measuring device 20. And, the operation display unit 17 is included. Hereinafter, the dimension measuring device 20 may be referred to as a measuring device 20. The delivery storage room 14 has a box shape that allows the object to be measured 90 (FIG. 2) to be taken in and out. In the embodiment, the object to be measured 90 is a delivery product having a rectangular parallelepiped outer shape.

扉15は、宅配用収容室14の正面側Fの開口を塞いでいる。扉15は、宅配ボックス12に取り付けられる片開き型であり、上下方向の軸(図示せず)を中心として揺動することで、宅配用収容室14の開口を開閉可能である。宅配用収容室14の扉15は、電気錠18(図3)で施錠される。電気錠18は、後述の操作表示部17(図1)におけるユーザの操作等によって解錠される。なお、電気錠18は、バーコード、QRコード(登録商標)、スマートフォン等の携帯端末とのBluetooth(登録商標)等を用いた無線信号の送受信、電波または赤外線を用いたタッチレスキー、ICカード、テンキーでの入力等を用いて解除できる構成としてもよい。 The door 15 closes the opening on the front side F of the delivery storage room 14. The door 15 is a single-door type attached to the delivery box 12, and can open and close the opening of the delivery storage chamber 14 by swinging around a vertical axis (not shown). The door 15 of the delivery storage room 14 is locked with an electric lock 18 (FIG. 3). The electric lock 18 is unlocked by a user operation or the like on the operation display unit 17 (FIG. 1) described later. The electric lock 18 is a bar code, a QR code (registered trademark), a wireless signal transmission / reception using Bluetooth (registered trademark) with a mobile terminal such as a smartphone, a touchless key using radio waves or infrared rays, and an IC card. , It may be configured so that it can be canceled by inputting with a ten key or the like.

また、宅配用収容室14の内部には荷物センサ19(図3)が設けられる。荷物センサ19は、対応する宅配用収容室14内の宅配物等の荷物の有無を検知する。荷物センサ19は、例えば歪みゲージで構成される。歪みゲージは、金属抵抗材料を含み、金属抵抗材料は外部から圧縮力を加えられると縮み、その抵抗値は減少する。荷物センサ19の検知情報は、宅配ボックス12の制御装置30(図3)に送信される。 Further, a luggage sensor 19 (FIG. 3) is provided inside the delivery storage room 14. The luggage sensor 19 detects the presence or absence of luggage such as parcels delivered in the corresponding parcel delivery accommodation room 14. The luggage sensor 19 is composed of, for example, a strain gauge. The strain gauge contains a metal resistance material, and the metal resistance material shrinks when an external compressive force is applied, and its resistance value decreases. The detection information of the luggage sensor 19 is transmitted to the control device 30 (FIG. 3) of the delivery box 12.

制御装置30は、該電気信号に基づいて宅配用収容室14内に配置された荷物の重量から、荷物の有無を検知し、荷物が検知された場合には荷物検知情報に変換する。荷物センサ19で検知された情報は、制御装置30ではなく、荷物センサ用制御部(図示せず)に送信されてもよい。この場合には、荷物センサ用制御部が、荷物センサ19の検知情報を荷物検知情報に変換する。荷物センサ19は、宅配用収容室14内に設けられ、赤外線センサ等の光センサによって宅配用収容室14内の荷物の有無を検出する構成であってもよい。 The control device 30 detects the presence or absence of a parcel from the weight of the parcel arranged in the delivery accommodation room 14 based on the electric signal, and if the parcel is detected, converts it into baggage detection information. The information detected by the baggage sensor 19 may be transmitted to the baggage sensor control unit (not shown) instead of the control device 30. In this case, the cargo sensor control unit converts the detection information of the cargo sensor 19 into the cargo detection information. The parcel sensor 19 may be provided in the parcel delivery accommodation chamber 14 and may be configured to detect the presence or absence of parcel in the parcel delivery accommodation chamber 14 by an optical sensor such as an infrared sensor.

測定装置20は、宅配ボックス12の左側L端部の下端部に左右方向に隣り合って配置された2つの計測用収容室51と、計測用収容室51の正面側Fの開口を開閉可能に塞ぐ扉52とを有する。この扉52の構成及び機能は、宅配用収容室14の扉15と同様である。また、計測用収容室51の内部にも宅配用収容室14と同様に荷物センサ19(図3)が設けられる。計測用収容室51の扉52は施錠しない構成としてもよい。測定装置20の構成は、後で詳しく説明する。 The measuring device 20 can open and close two measurement storage chambers 51 arranged adjacent to each other in the left-right direction at the lower end of the left L end of the delivery box 12 and an opening on the front side F of the measurement storage chamber 51. It has a door 52 to close. The configuration and function of the door 52 are the same as those of the door 15 of the delivery accommodation room 14. Further, a luggage sensor 19 (FIG. 3) is also provided inside the measurement accommodation chamber 51 as in the delivery accommodation chamber 14. The door 52 of the measurement storage chamber 51 may be configured to be unlocked. The configuration of the measuring device 20 will be described in detail later.

操作表示部17は、宅配ボックス12の正面側Fにおいて、測定装置20より上側に配置される。操作表示部17は、タッチパネルディスプレイ等により構成され、ユーザの操作による入力を受け付ける機能と、表示部の機能とを有する。操作表示部17の下側には、決済部70が配置される。決済部70は、例えばユーザが持つICカードとの間で無線信号を送受信して電子マネーの決済を行う。なお、操作表示部17の代わりに、液晶ディスプレイ(LCD)により構成される表示部と、テンキー等により構成される操作部とを有する構成としてもよい。また、決済部70は、テンキーでクレジットカードの識別番号及びパスワードを入力することにより決済される構成としてもよい。 The operation display unit 17 is arranged above the measuring device 20 on the front side F of the delivery box 12. The operation display unit 17 is composed of a touch panel display or the like, and has a function of receiving input by a user's operation and a function of a display unit. A settlement unit 70 is arranged below the operation display unit 17. The payment unit 70, for example, sends and receives a wireless signal to and from an IC card owned by the user to settle electronic money. Instead of the operation display unit 17, a display unit composed of a liquid crystal display (LCD) and an operation unit composed of a numeric keypad or the like may be provided. Further, the settlement unit 70 may be configured to be settled by inputting the identification number and password of the credit card with the numeric keypad.

宅配業者の顧客である宅配物の発送人が、宅配ボックス12を用いて宅配物の発送依頼を行う場合には、次のようにして行う。例えば、発送人が、宅配ボックス12の操作表示部17に表示されたメニュー画面から「発送」の表示部を選択すると、測定装置20の扉52が自動で開く。発送人が計測用収容室51に宅配物を収容し扉52を閉じると、測定装置20が、宅配物を撮像部23(図3)により撮像する。そして、画像処理部32(図3)が、撮像部23で撮像された画像の情報に基づいて、宅配物の予め決められた所定位置からの位置ずれの有無を検知する。この位置ずれがないと検知された場合には、測定装置20は、撮像部23で撮像された画像の情報に基づいて宅配物の寸法を測定する。測定装置20で測定された寸法の測定結果等は、操作表示部17に表示される。 When a delivery person who is a customer of a delivery company makes a delivery request for a delivery using the delivery box 12, the delivery request is performed as follows. For example, when the sender selects the "shipping" display unit from the menu screen displayed on the operation display unit 17 of the delivery box 12, the door 52 of the measuring device 20 automatically opens. When the sender accommodates the delivery item in the measurement storage room 51 and closes the door 52, the measuring device 20 takes an image of the delivery item by the image pickup unit 23 (FIG. 3). Then, the image processing unit 32 (FIG. 3) detects the presence or absence of a position shift from a predetermined predetermined position of the delivery item based on the information of the image captured by the image pickup unit 23. When it is detected that there is no such misalignment, the measuring device 20 measures the dimensions of the delivery item based on the information of the image captured by the image pickup unit 23. The measurement result of the dimension measured by the measuring device 20 is displayed on the operation display unit 17.

発送人は、操作表示部17を使って発送先の住所等を入力した後、計測用収容室51から宅配物を取り出す。なお、発送人が、操作表示部17ではなく、インターネットを用いた事前予約等により、発送先の住所等を事前登録できる構成としてもよい。そして、発送人は、操作表示部17を用いて宅配用収容室14の1つを選択する。これによって、選択された宅配用収容室14の扉15が解錠され、扉15が自動的に開くので、発送人は、その宅配用収容室14に宅配物を収容する。宅配用収容室14に宅配物が収容されたことは荷物センサ19で検知される。その後、操作表示部17で発送料金が表示されるので、発送人は、その発送料金を決済部70で決済する。図1では、宅配ボックス12が2つの計測用収容室51を備える場合を示しているが、計測用収容室51及びその開口を塞ぐ扉52は、それぞれ1つのみとしてもよい。 The sender inputs the delivery address and the like using the operation display unit 17, and then takes out the delivery from the measurement storage room 51. It should be noted that the sender may be configured to be able to pre-register the shipping address and the like by making a reservation in advance using the Internet instead of the operation display unit 17. Then, the sender selects one of the delivery accommodation rooms 14 by using the operation display unit 17. As a result, the door 15 of the selected delivery storage room 14 is unlocked and the door 15 is automatically opened, so that the sender accommodates the delivery in the delivery storage room 14. It is detected by the luggage sensor 19 that the parcel delivery is stored in the parcel delivery storage room 14. After that, since the shipping fee is displayed on the operation display unit 17, the sender setstle the shipping fee on the settlement unit 70. FIG. 1 shows a case where the delivery box 12 includes two measurement storage chambers 51, but the measurement storage chamber 51 and the door 52 that closes the opening thereof may be only one each.

宅配物が決済された場合には、宅配ボックス12から通信ネットワークを介して宅配業者の端末装置、発送人の端末装置、及び管理サーバに宅配物の発送依頼の情報が通知される。そこで、宅配業者が宅配ボックス12の設置場所に行き、該当する宅配用収容室14の扉15をあけて、宅配用収容室14から宅配物を取り出し、発送先への配送作業を行う。 When the delivery is settled, the delivery box 12 notifies the delivery company's terminal device, the sender's terminal device, and the management server of the delivery request information via the communication network. Therefore, the delivery company goes to the installation location of the delivery box 12, opens the door 15 of the corresponding delivery storage room 14, takes out the delivery from the delivery storage room 14, and performs the delivery work to the delivery destination.

次に、測定装置20を詳しく説明する。図2は、計測用収容室51の1例を示す斜視図である。図3は、測定装置20の構成図である。測定装置20は、上記の計測用収容室51及び扉52と、撮像部23と、制御装置30(図3)とを含んでいる。制御装置30は、画像処理部32(図3)を有する。画像処理部32は、後述する位置ずれ検知部33(図3)を有する。 Next, the measuring device 20 will be described in detail. FIG. 2 is a perspective view showing an example of the measurement accommodation chamber 51. FIG. 3 is a block diagram of the measuring device 20. The measuring device 20 includes the above-mentioned measuring accommodating chamber 51 and door 52, an imaging unit 23, and a control device 30 (FIG. 3). The control device 30 has an image processing unit 32 (FIG. 3). The image processing unit 32 has a position shift detection unit 33 (FIG. 3), which will be described later.

計測用収容室51は、被測定物90を出し入れ可能に収容する箱状である。上記で説明したように、計測用収容室51の正面側Fの開口は扉52で塞がれる。計測用収容室51の扉52は、電気錠で施解錠され、その電気錠が操作表示部17(図1)におけるユーザの操作等によって解錠される構成としてもよい。 The measurement storage chamber 51 has a box shape that allows the object to be measured 90 to be taken in and out. As described above, the opening on the front side F of the measurement accommodation chamber 51 is closed by the door 52. The door 52 of the measurement storage chamber 51 may be locked and unlocked with an electric lock, and the electric lock may be unlocked by a user operation or the like on the operation display unit 17 (FIG. 1).

計測用収容室51は、底板部53と、3つの側壁部である右壁部54、左壁部55、及び後壁部56と、天板部57とにより囲まれた直方体状の空間である。底板部53、各壁部54,55,56、及び天板部57は、いずれも矩形状である。底板部53の上面は下面部53aである。下面部53aには、宅配物である被測定物90が置かれる。 The storage chamber 51 for measurement is a rectangular parallelepiped space surrounded by a bottom plate portion 53, a right wall portion 54, a left wall portion 55, and a rear wall portion 56, which are three side wall portions, and a top plate portion 57. .. The bottom plate portion 53, the wall portions 54, 55, 56, and the top plate portion 57 are all rectangular. The upper surface of the bottom plate portion 53 is the lower surface portion 53a. The object to be measured 90, which is a delivery item, is placed on the lower surface portion 53a.

右壁部54は、底板部53の右端から上方に延出される。後壁部56は、底板部53の後端から上方に延出される。左壁部55は、底板部53の左端から上方に延出される。左壁部55の計測用収容室51側の面は第1側面部55aである。後壁部56の計測用収容室51側の面は第2側面部56aである。 The right wall portion 54 extends upward from the right end of the bottom plate portion 53. The rear wall portion 56 extends upward from the rear end of the bottom plate portion 53. The left wall portion 55 extends upward from the left end of the bottom plate portion 53. The surface of the left wall portion 55 on the measurement accommodation chamber 51 side is the first side surface portion 55a. The surface of the rear wall portion 56 on the measurement accommodation chamber 51 side is the second side surface portion 56a.

第1側面部55a、第2側面部56a及び下面部53aは、基準隅部58で交差する。基準隅部58は、計測用収容室51で被測定物90を置く場合に、被測定物90を押し込む位置である。計測用収容室51では、基準隅部58に合わせるように被測定物90が置かれて、被測定物90の下面、及び隣接する2つの側面との3面が、計測用収容室51の下面部53a、第1側面部55a、第2側面部56aにそれぞれ接触する。このときの被測定物90の位置が、寸法測定のために予め決定された所定位置である。 The first side surface portion 55a, the second side surface portion 56a and the lower surface portion 53a intersect at the reference corner portion 58. The reference corner 58 is a position where the object to be measured 90 is pushed in when the object to be measured 90 is placed in the measurement storage chamber 51. In the measurement storage chamber 51, the object to be measured 90 is placed so as to be aligned with the reference corner portion 58, and the lower surface of the object to be measured 90 and the three adjacent side surfaces are the lower surface of the measurement accommodation chamber 51. It comes into contact with the portion 53a, the first side surface portion 55a, and the second side surface portion 56a, respectively. The position of the object to be measured 90 at this time is a predetermined position determined in advance for dimensional measurement.

計測用収容室51の内面のうち、第1側面部55aと、第2側面部56aと、下面部53aとの周縁部には、それぞれ矩形枠状の第1マーカー61、第2マーカー62、第3マーカー63が表示される。各マーカー61,62,63は、後述のように、撮像画像における被測定物90の外形の歪補正等のための補正データを作成するために用いられる。第1、第2、及び第3マーカー61,62,63は、それぞれ第1側面部55a、第2側面部56a、及び下面部53aを規定する矩形と相似形で、この矩形より少し小さい矩形状に表示される。各マーカー61,62,63の各辺は、第1側面部55a、第2側面部56a、下面部53aを規定する矩形の対応する辺と平行である。 Of the inner surface of the measurement accommodating chamber 51, the peripheral portions of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a have a rectangular frame-shaped first marker 61, a second marker 62, and a second marker, respectively. 3 The marker 63 is displayed. As described later, the markers 61, 62, and 63 are used to create correction data for correcting the distortion of the outer shape of the object to be measured 90 in the captured image. The first, second, and third markers 61, 62, and 63 are similar to the rectangle defining the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a, respectively, and have a rectangular shape slightly smaller than this rectangle. Is displayed in. Each side of each marker 61, 62, 63 is parallel to the corresponding side of the rectangle defining the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a.

第1、第2、第3マーカー61,62,63は、同じ色調としているが、互いに異なる色調とすることが好ましい。ここで、色調とは、色の明度と彩度などの色の調子を意味する。 The first, second, and third markers 61, 62, and 63 have the same color tone, but it is preferable that they have different color tones. Here, the color tone means a color tone such as lightness and saturation of a color.

図3に示すように、撮像部23は、カメラ本体24と、照明装置25とを有する。カメラ本体24は、例えば計測用収容室51の開口側の上部における隅部であって、基準隅部58と対向する位置である右側Rの端部(図2の右端部)から被測定物90を撮像するように、斜め下側に向けて配置される。カメラ本体24には、例えばCCDカメラが用いられる。カメラ本体24は、CMOSカメラであってもよい。カメラ本体24の動作は制御装置30により制御され、カメラ本体24は、計測用収容室51に収容される被測定物90を撮像する。カメラ本体24で撮像された画像の情報は、制御装置30に送信される。カメラ本体24で撮像する画像はグレースケールでもよいし、カラーでもよい。画像がカラーの場合には、画像処理を行う際にグレースケール画像に変換する構成としてもよい。制御装置30は、例えば計測用収容室51の上端を構成する天板部57(図2)、または、図1に示す宅配ボックス12の操作表示部17の周辺に配置することができる。 As shown in FIG. 3, the image pickup unit 23 includes a camera body 24 and a lighting device 25. The camera body 24 is, for example, a corner portion in the upper portion of the measurement accommodation chamber 51 on the opening side, and the object to be measured 90 is from the end portion of the right side R (the right end portion in FIG. 2) which is a position facing the reference corner portion 58. It is arranged diagonally downward so as to image. For the camera body 24, for example, a CCD camera is used. The camera body 24 may be a CMOS camera. The operation of the camera body 24 is controlled by the control device 30, and the camera body 24 captures an image of the object to be measured 90 housed in the measurement storage chamber 51. The information of the image captured by the camera body 24 is transmitted to the control device 30. The image captured by the camera body 24 may be grayscale or color. When the image is color, it may be converted into a grayscale image when performing image processing. The control device 30 can be arranged, for example, around the top plate portion 57 (FIG. 2) constituting the upper end of the measurement storage chamber 51 or the operation display portion 17 of the delivery box 12 shown in FIG.

照明装置25は、計測用収容室51の上部において、撮像部23の一部として、カメラ本体24に隣接してカメラ本体24と一体に配置される。照明装置25は、計測用収容室51の内部、特に下側部分を照明して明るくする。照明装置25は、制御装置30によりオンオフが制御される。照明装置25には、例えば白色LEDが用いられる。照明装置25には、蛍光灯や、電球や、他の色のLEDが用いられてもよい。なお、寸法測定装置は、撮像部23とは異なる装置として、計測用収容室51内を照明する照明装置が配置された構成としてもよい。 The lighting device 25 is arranged integrally with the camera body 24 adjacent to the camera body 24 as a part of the image pickup unit 23 in the upper part of the measurement accommodation chamber 51. The lighting device 25 illuminates and brightens the inside of the measurement accommodation chamber 51, particularly the lower portion. The lighting device 25 is controlled on and off by the control device 30. For the lighting device 25, for example, a white LED is used. Fluorescent lamps, light bulbs, and LEDs of other colors may be used for the lighting device 25. The dimension measuring device may be configured such that a lighting device for illuminating the inside of the measurement accommodating chamber 51 is arranged as a device different from the imaging unit 23.

また、撮像部23は、計測用収容室51に被測定物90が配置される前の状態で、予め下面部53a、第1側面部55a、第2側面部56a及び各マーカー61,62,63を撮像して、原画像を取得する。原画像の情報は、後述の制御装置30に送信され、制御装置30の記憶部35に記憶される。原画像は、後述の補正モードで用いられる。 Further, the image pickup unit 23 has a lower surface portion 53a, a first side surface portion 55a, a second side surface portion 56a, and markers 61, 62, 63 in advance in a state before the object to be measured 90 is arranged in the measurement accommodation chamber 51. Is imaged and the original image is acquired. The information of the original image is transmitted to the control device 30 described later and stored in the storage unit 35 of the control device 30. The original image is used in the correction mode described later.

図3に示すように、制御装置30は、例えばMCU(Micro Controller Unit)で構成される演算処理部31と、記憶部35とを含んで構成される。記憶部35は、RAM、ROM等であってもよい。演算処理部31は、記憶部35に予め記憶されたプログラム等を読み出して実行する機能を有する。記憶部35は、読み出したプログラムや処理データを一時的に記憶する機能と、制御プログラムや所定の閾値等を予め記憶する機能を有する。 As shown in FIG. 3, the control device 30 includes, for example, an arithmetic processing unit 31 composed of an MCU (Micro Controller Unit) and a storage unit 35. The storage unit 35 may be a RAM, a ROM, or the like. The arithmetic processing unit 31 has a function of reading and executing a program or the like stored in advance in the storage unit 35. The storage unit 35 has a function of temporarily storing the read program and processing data, and a function of storing a control program, a predetermined threshold value, and the like in advance.

制御装置30が、プログラムを実行することによって、本開示における装置、システム、または方法の主体の機能が実現される。演算処理部31は、プログラムを実行することによって機能を実現することができれば、その種類は問わない。例えば、演算処理部は、CPUであってもよい。演算処理部は、半導体集積回路(IC)、又はLSI(large scale integration)を含む1つまたは複数の電子回路で構成されてもよい。複数の電子回路は、1つのチップに集積されてもよいし、複数のチップに設けられてもよい。複数のチップは1つの装置に集約されていてもよいし、複数の装置に備えられていてもよい。記憶部として、光ディスク、ハードディスクドライブなどの非一時的記録媒体が用いられてもよい。制御装置30には、記憶部として外部記憶装置が接続されてもよい。プログラムは、記録媒体に予め格納されていてもよいし、インターネット等を含む広域通信網を介して記録媒体に供給されてもよい。 By executing the program by the control device 30, the main function of the device, system, or method in the present disclosure is realized. The type of the arithmetic processing unit 31 does not matter as long as the function can be realized by executing the program. For example, the arithmetic processing unit may be a CPU. The arithmetic processing unit may be composed of one or a plurality of electronic circuits including a semiconductor integrated circuit (IC) or an LSI (large scale integration). A plurality of electronic circuits may be integrated on one chip or may be provided on a plurality of chips. A plurality of chips may be integrated into one device, or may be provided in a plurality of devices. A non-temporary recording medium such as an optical disk or a hard disk drive may be used as the storage unit. An external storage device may be connected to the control device 30 as a storage unit. The program may be stored in a recording medium in advance, or may be supplied to the recording medium via a wide area communication network including the Internet or the like.

制御装置30は、インターフェイス36も含んでいる。演算処理部31には、インターフェイス36を介して、操作表示部17(図1)が接続される。演算処理部には、インターフェイスを介して、パーソナルコンピュータ(PC)、入力装置、ディスプレイであるモニターのうち、少なくとも1つが接続されてもよい。 The control device 30 also includes an interface 36. An operation display unit 17 (FIG. 1) is connected to the arithmetic processing unit 31 via the interface 36. At least one of a personal computer (PC), an input device, and a monitor, which is a display, may be connected to the arithmetic processing unit via an interface.

さらに、演算処理部31は、画像処理部32を含む。画像処理部32は、位置ずれ検知部33と、寸法測定部34とを有する。寸法測定部34は、カメラ本体24で撮像された画像の情報に基づいて画像処理を行い、計測用収容室51(図2)に収容された被測定物90の寸法を測定する。 Further, the arithmetic processing unit 31 includes an image processing unit 32. The image processing unit 32 has a position shift detecting unit 33 and a dimension measuring unit 34. The dimension measuring unit 34 performs image processing based on the information of the image captured by the camera main body 24, and measures the dimensions of the object to be measured 90 accommodated in the measurement accommodating chamber 51 (FIG. 2).

位置ずれ検知部33は、上記の寸法測定を行う前に、カメラ本体24で撮像された画像の情報に基づいて、被測定物90の予め決められた所定位置からの位置ずれの有無を検知する。 The misalignment detection unit 33 detects the presence or absence of misalignment of the object to be measured 90 from a predetermined predetermined position based on the information of the image captured by the camera body 24 before performing the above-mentioned dimensional measurement. ..

さらに、測定装置20は、報知部37と、再撮像ボタン38とを備える。報知部37は、例えば宅配ボックス12の正面側に配置された液晶ディスプレイ(LCD)等により構成される表示部である。報知部37は、画像処理部32により被測定物90の位置ずれが検知された際に、ユーザに被測定物90を置き直すか否かの問い合わせを報知する。例えば、報知部37には、「宅配物が正規の位置からずれています。宅配物を置き直しますか?」等の表示がされる。 Further, the measuring device 20 includes a notification unit 37 and a re-imaging button 38. The notification unit 37 is a display unit composed of, for example, a liquid crystal display (LCD) arranged on the front side of the delivery box 12. When the image processing unit 32 detects the positional deviation of the object to be measured 90, the notification unit 37 notifies the user of an inquiry as to whether or not to replace the object to be measured 90. For example, the notification unit 37 may display a message such as "The delivery item is out of the proper position. Do you want to replace the delivery item?"

再撮像ボタン38は、再撮像指示部に相当し、再撮像ボタン38が操作されたことを表す信号は、制御装置30に送信される。再撮像ボタン38は、ユーザによって操作された場合に、被測定物90の再撮像を、制御装置30を介して、撮像部23に指示する。再撮像ボタン38は、ユーザが被測定物90を置き直すと決定したことを制御装置30に送信する置き直し通知機能も有する。具体的には、制御装置30は、再撮像ボタン38が操作された場合に、撮像部23に計測用収容室51内の再撮像を指示する。画像処理部32は、撮像部23で再撮像された画像の情報に基づいて、被測定物90の所定位置からの位置ずれの有無を再検知する。これにより、ユーザが被測定物90を上記の問い合わせの報知がなくなるまで置き直すことができるので、測定装置20は、所定位置に正確に置かれた被測定物90の寸法を高精度に測定できる。なお、報知部は、上記の操作表示部17(図1)におけるディスプレイとしてもよい。また、報知部は、表示部ではなく、音声出力部として、ユーザに被測定物90を置き直すか否かの問い合わせを音声で報知するようにしてもよい。 The reimaging button 38 corresponds to the reimaging instruction unit, and a signal indicating that the reimaging button 38 has been operated is transmitted to the control device 30. When operated by the user, the reimaging button 38 instructs the imaging unit 23 to reimage the object 90 to be measured via the control device 30. The reimaging button 38 also has a repositioning notification function of transmitting to the control device 30 that the user has decided to reposition the object to be measured 90. Specifically, when the re-imaging button 38 is operated, the control device 30 instructs the imaging unit 23 to re-imaging in the measurement accommodating chamber 51. The image processing unit 32 re-detects the presence or absence of a positional deviation of the object to be measured 90 from a predetermined position based on the information of the image re-imaged by the image pickup unit 23. As a result, the user can reposition the object to be measured 90 until the above inquiry is no longer notified, so that the measuring device 20 can measure the dimension of the object to be measured 90 accurately placed at a predetermined position with high accuracy. .. The notification unit may be the display in the operation display unit 17 (FIG. 1). Further, the notification unit may be used as a voice output unit instead of the display unit to notify the user by voice of an inquiry as to whether or not to replace the object to be measured 90.

図4を用いて、実施形態における位置ずれ検知と寸法測定の方法とを説明する。図4は、実施形態における位置ずれ検知と寸法測定とを示すフローチャートである。ステップS11では、制御装置30が、計測用収容室51内の被測定物90を検知したか否かを判定する。計測用収容室51に被測定物90を置いて扉52を閉じた場合には、荷物センサ19によって荷物がありと検知されるので、ステップS11の判定結果が肯定であり、ステップS12に進む。ステップS11の判定結果が否定の場合には、ステップS11の処理が繰り返される。なお、計測用収容室51内の例えば上端部に重量表示部を配置して、荷物センサ19で被測定物の重量を検知した場合に、その重量が表示されるようにしてもよい。 A method of detecting misalignment and measuring dimensions in the embodiment will be described with reference to FIG. 4. FIG. 4 is a flowchart showing positional deviation detection and dimensional measurement in the embodiment. In step S11, it is determined whether or not the control device 30 has detected the object to be measured 90 in the measurement accommodation chamber 51. When the object 90 to be measured is placed in the measurement storage chamber 51 and the door 52 is closed, the luggage sensor 19 detects that there is luggage, so the determination result in step S11 is affirmative, and the process proceeds to step S12. If the determination result in step S11 is negative, the process of step S11 is repeated. A weight display unit may be arranged, for example, at the upper end of the measurement storage chamber 51 so that the weight is displayed when the weight of the object to be measured is detected by the luggage sensor 19.

ステップS12では、照明装置25が点灯した後、ステップS13でカメラ本体24が計測用収容室51内を撮像する。 In step S12, after the lighting device 25 is turned on, the camera body 24 takes an image of the inside of the measurement accommodation chamber 51 in step S13.

次いで、ステップS14で画像処理部32によって、測定用画像、二値画像40(図5(a))、及び補正画像41(図5(b))を取得する。具体的には、画像処理部32は、カメラ本体24で撮像された画像に基づいて、補正モードを実行する。補正モードは、予め記憶部35(図3)に記憶された原画像において、計測用収容室の第1側面部55a、第2側面部56a及び下面部53aの各辺であるエッジを直線状に補正するための歪補正用データを算出する。補正モードは、その歪補正用データを用いて、計測用収容室に被測定物が置かれた状態を撮像した測定用画像を補正する。 Next, in step S14, the image processing unit 32 acquires a measurement image, a binary image 40 (FIG. 5 (a)), and a corrected image 41 (FIG. 5 (b)). Specifically, the image processing unit 32 executes the correction mode based on the image captured by the camera body 24. In the correction mode, in the original image stored in the storage unit 35 (FIG. 3) in advance, the edges of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a of the measurement accommodation chamber are linearly aligned. Calculate the distortion correction data for correction. In the correction mode, the strain correction data is used to correct a measurement image obtained by capturing a state in which the object to be measured is placed in the measurement accommodation chamber.

より具体的には、補正モードは、記憶部35に記憶された原画像に対しノイズ除去及び輝度値に基づくフィルタ処理を行う。次に、フィルタ処理後の画像に二値化を行ってエッジを検出し、エッジを含む画像である二値画像を取得する。補正モードは、次に、予め記憶部35に記憶していた各マーカーの形状及び輝度値の情報から二値画像のマーカー61,62,63をパターンマッチングにより識別する。次に、識別された各マーカー61,62,63から、二値画像内の第1側面部55a、第2側面部56a及び下面部53aのエッジA1~A9を識別する。 More specifically, in the correction mode, noise reduction and filter processing based on the luminance value are performed on the original image stored in the storage unit 35. Next, the filtered image is binarized to detect an edge, and a binary image which is an image including the edge is acquired. Next, in the correction mode, the markers 61, 62, 63 of the binary image are identified by pattern matching from the information of the shape and the luminance value of each marker stored in the storage unit 35 in advance. Next, from each of the identified markers 61, 62, 63, the edges A1 to A9 of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a in the binary image are identified.

補正モードは、次に、歪補正前の二値画像と歪補正後の二値画像の座標を関連付ける内部パラメータを算出することで調整する。内部パラメータは、光軸中心座標、焦点距離、レンズ歪係数などで構成される。例えば、チェッカーボードの撮影画像において、そのパターンの交点の位置を検出し、交点の間隔が均等になるように内部パラメータを算出する。このとき、内部パラメータが補正用データとなる。 The correction mode is then adjusted by calculating an internal parameter that associates the coordinates of the binary image before distortion correction with the binary image after distortion correction. Internal parameters are composed of optical axis center coordinates, focal length, lens distortion coefficient, and the like. For example, in the captured image of the checkerboard, the positions of the intersections of the pattern are detected, and the internal parameters are calculated so that the intervals of the intersections are even. At this time, the internal parameter becomes the correction data.

補正モードは、次に、内部パラメータを用いて第1側面部55a、第2側面部56a及び下面部53aのエッジA1~A9の歪を補正し、エッジA1~A9を直線状とすることで補正後の二値画像を取得する。なお、補正モードは、内部パラメータ以外でエッジA1~A9の歪を補正した二値画像を取得してもよい。 Next, the correction mode corrects the distortion of the edges A1 to A9 of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a by using the internal parameters, and corrects the edges A1 to A9 by making them linear. Get the later binary image. In the correction mode, a binary image in which the distortions of the edges A1 to A9 are corrected by other than the internal parameters may be acquired.

次に、補正モードは、計測用収容室51の所定位置に被測定物90を配置した状態で、下面部53a、第1側面部55a、第2側面部56a、マーカー61,62,63及び被測定物90を撮像部23で撮像させて、測定用画像を取得する。次いで、補正モードは、測定用画像に対してノイズ除去、フィルタ処理及び二値化を行うことで、図5(a)に示すような二値画像40を取得する。この二値画像40では、第1側面部55a、第2側面部56a及び下面部53aのエッジA1~A9と、被測定物のエッジT1~T8とが識別される。 Next, in the correction mode, the lower surface portion 53a, the first side surface portion 55a, the second side surface portion 56a, the markers 61, 62, 63 and the subject are placed in a state where the object to be measured 90 is arranged at a predetermined position in the measurement accommodation chamber 51. The measurement object 90 is imaged by the image pickup unit 23, and a measurement image is acquired. Next, in the correction mode, the binary image 40 as shown in FIG. 5A is acquired by performing noise reduction, filtering, and binarization on the measurement image. In the binary image 40, the edges A1 to A9 of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a are identified, and the edges T1 to T8 of the object to be measured are identified.

補正モードは、次に、二値画像と上記で取得した補正用データとを用いて、第1側面部55a、第2側面部56a及び下面部53aのエッジA1~A9と、被測定物のエッジT1~T9の歪を補正して、図5(b)に示すような補正後の二値画像である補正画像41を取得する。なお、後述の被測定物90の寸法測定では、図5(b)で矢印C1,C2,C3で示す方向について、被測定物90のエッジ長さを算出することで、被測定物90の寸法を測定することができる。 Next, in the correction mode, using the binary image and the correction data acquired above, the edges A1 to A9 of the first side surface portion 55a, the second side surface portion 56a, and the lower surface portion 53a, and the edge of the object to be measured are used. The distortion of T1 to T9 is corrected, and the corrected image 41, which is a corrected binary image as shown in FIG. 5B, is acquired. In the dimension measurement of the object to be measured 90, which will be described later, the dimension of the object to be measured 90 is calculated by calculating the edge length of the object to be measured 90 in the directions indicated by the arrows C1, C2, and C3 in FIG. 5 (b). Can be measured.

次いで、図4のステップS15で、画像処理部32によって、被測定物90の所定位置からの位置ずれの有無を検知する。 Next, in step S15 of FIG. 4, the image processing unit 32 detects the presence or absence of a positional deviation of the object to be measured 90 from a predetermined position.

図6は、計測用収容室51の所定位置に被測定物90が配置された場合における補正画像において、寸法測定のための4種類の走査線方向を示す図である。図7(a)は、図6に示す第1走査線E1の長さの変化を示す第1高さグラフを示す図であり、図7(b)は、図6に示す第2走査線E2の長さの変化を示す第2高さグラフを示す図である。図7(c)は、図6に示す第3走査線E3の長さの変化を示す幅グラフを示す図であり、図7(d)は、図6に示す第4走査線E4の長さの変化を示す奥行きグラフを示す図である。 FIG. 6 is a diagram showing four types of scanning line directions for dimensional measurement in a corrected image when the object to be measured 90 is arranged at a predetermined position in the measurement accommodation chamber 51. 7 (a) is a diagram showing a first height graph showing a change in the length of the first scanning line E1 shown in FIG. 6, and FIG. 7 (b) is a diagram showing a second scanning line E2 shown in FIG. It is a figure which shows the 2nd height graph which shows the change of the length of. 7 (c) is a diagram showing a width graph showing a change in the length of the third scanning line E3 shown in FIG. 6, and FIG. 7 (d) is a diagram showing the length of the fourth scanning line E4 shown in FIG. It is a figure which shows the depth graph which shows the change of.

図6に示す補正画像では、被測定物90が所定位置に正確に配置されている。このような補正画像を用いれば、被測定物90の寸法を高精度に測定できる。このとき、画像処理部32は、画像における画像処理方向の走査線であって、ピクセルを走査する走査線を用いる。例えば、画像処理部32は、第1側面部55aのエッジA1の長さ方向に沿って並ぶピクセルを走査する複数の第1走査線E1を用いることができる。また、図6では、下面部53aにチェッカーボードの模様が表示されているが、この模様の表示は省略してもよい。 In the corrected image shown in FIG. 6, the object to be measured 90 is accurately arranged at a predetermined position. By using such a corrected image, the dimensions of the object to be measured 90 can be measured with high accuracy. At this time, the image processing unit 32 uses scanning lines for scanning pixels, which are scanning lines in the image processing direction of the image. For example, the image processing unit 32 can use a plurality of first scanning lines E1 that scan pixels arranged along the length direction of the edge A1 of the first side surface portion 55a. Further, in FIG. 6, the checkerboard pattern is displayed on the lower surface portion 53a, but the display of this pattern may be omitted.

図6では、第1走査線E1を実線矢印で示している。第1走査線E1は、エッジA2からエッジA4に向かって、複数のエッジA1~A9、T1~T8のいずれかのエッジに達するまで走査される。そして画像処理部32は、複数の第1走査線E1の長さを算出することで、図7(a)に示す第1高さグラフを取得する。第1高さグラフでは、基準座標Gが基準隅部58(図2)に対応し、基準座標GからエッジA4に沿って離れる場合に、基準座標Gに近い側で走査線長さは小さい第1長さL1に維持される。このとき、第1走査線E1は、被測定物90の上端によって長さが規定される。一方、基準座標Gから所定長さ離れた位置では、第1走査線E1が被測定物90から外れるので、走査線長さがステップ状に大きい第2長さL2となり、基準座標Gからそれ以上に離れてもその第2長さL2で走査線長さが維持される。このため、第1高さグラフで第2長さL2と第1長さL1との差を算出することで、被測定物90の高さH1が算出可能となる。高さH1は、図5(b)の矢印C1方向における被測定物90の寸法である。 In FIG. 6, the first scanning line E1 is indicated by a solid arrow. The first scanning line E1 is scanned from the edge A2 toward the edge A4 until it reaches any one of the plurality of edges A1 to A9 and T1 to T8. Then, the image processing unit 32 acquires the first height graph shown in FIG. 7A by calculating the lengths of the plurality of first scanning lines E1. In the first height graph, when the reference coordinate G corresponds to the reference corner portion 58 (FIG. 2) and is separated from the reference coordinate G along the edge A4, the scanning line length is small on the side closer to the reference coordinate G. It is maintained at 1 length L1. At this time, the length of the first scanning line E1 is defined by the upper end of the object to be measured 90. On the other hand, at a position separated from the reference coordinate G by a predetermined length, the first scanning line E1 deviates from the object to be measured 90, so that the scanning line length becomes a stepwise larger second length L2, which is longer than the reference coordinate G. The scanning line length is maintained at the second length L2 even if it is separated from the above. Therefore, the height H1 of the object to be measured 90 can be calculated by calculating the difference between the second length L2 and the first length L1 on the first height graph. The height H1 is the dimension of the object to be measured 90 in the direction of the arrow C1 in FIG. 5 (b).

画像処理部32は、第2側面部56aのエッジA1の長さ方向に沿って並ぶピクセルを走査する複数の第2走査線E2を用いることもできる。図6では、第2走査線E2を一点鎖線矢印で示している。第2走査線E2は、エッジA6からエッジA7に向かって、複数のエッジA1~A9、T1~T8のいずれかのエッジに達するまで走査される。そして画像処理部32は、複数の第2走査線E2の長さを算出することで、図7(b)に示す第2高さグラフを取得する。第2高さグラフでは、基準座標GからエッジA7に沿って離れる場合に、基準座標Gに近い側で走査線長さは小さい第1長さL1に維持される。このとき、第2走査線E2は、被測定物90の上端によって長さが規定される。一方、基準座標Gから所定長さ離れた位置では、第2走査線E2が被測定物90から外れるので、走査線長さがステップ状に大きい第2長さL2となり、基準座標Gからそれ以上に離れてもその第2長さL2で走査線長さが維持される。このため、第2高さグラフで第2長さL2と第1長さL1との差を算出することによっても、被測定物90の高さH1が算出可能となる。 The image processing unit 32 can also use a plurality of second scanning lines E2 that scan pixels arranged along the length direction of the edge A1 of the second side surface portion 56a. In FIG. 6, the second scanning line E2 is indicated by an alternate long and short dash arrow. The second scanning line E2 is scanned from the edge A6 toward the edge A7 until it reaches any one of the plurality of edges A1 to A9 and T1 to T8. Then, the image processing unit 32 acquires the second height graph shown in FIG. 7B by calculating the lengths of the plurality of second scanning lines E2. In the second height graph, when the distance from the reference coordinate G is along the edge A7, the scan line length is maintained at the small first length L1 on the side closer to the reference coordinate G. At this time, the length of the second scanning line E2 is defined by the upper end of the object to be measured 90. On the other hand, at a position separated from the reference coordinate G by a predetermined length, the second scanning line E2 deviates from the object to be measured 90, so that the scanning line length becomes a stepwise larger second length L2, which is longer than the reference coordinate G. The scanning line length is maintained at the second length L2 even if it is separated from the above. Therefore, the height H1 of the object to be measured 90 can also be calculated by calculating the difference between the second length L2 and the first length L1 on the second height graph.

画像処理部32は、下面部53aのエッジA4の長さ方向に沿って並ぶピクセルを走査する複数の第3走査線E3を用いることもできる。図6では、第3走査線E3を二点鎖線矢印で示している。第3走査線E3は、エッジA9からエッジA7に向かって、複数のエッジA1~A9、T1~T8のいずれかのエッジに達するまで走査される。そして画像処理部32は、複数の第3走査線E3の長さを算出することで、図7(c)に示す幅グラフを取得する。幅グラフでは、基準座標GからエッジA7に沿って離れる場合に、基準座標に近い側で走査線長さは小さい第3長さL3に維持される。このとき、第3走査線E3は、被測定物90の前端のエッジT5によって長さが規定される。一方、基準座標Gから所定長さ離れた位置では、第3走査線E3が被測定物90から外れるので、走査線長さがステップ状に大きい第4長さL4となり、基準座標Gからそれ以上に離れてもその第4長さL4で走査線長さが維持される。このため、幅グラフで第4長さL4と第3長さL3との差を算出することによって、被測定物90の前後方向寸法H2が算出可能となる。前後方向寸法H2は、図5(b)の矢印C2方向における被測定物90の寸法である。 The image processing unit 32 can also use a plurality of third scanning lines E3 that scan pixels arranged along the length direction of the edge A4 of the lower surface portion 53a. In FIG. 6, the third scanning line E3 is indicated by a two-dot chain arrow. The third scanning line E3 is scanned from the edge A9 toward the edge A7 until it reaches any one of the plurality of edges A1 to A9 and T1 to T8. Then, the image processing unit 32 acquires the width graph shown in FIG. 7 (c) by calculating the lengths of the plurality of third scanning lines E3. In the width graph, when the distance from the reference coordinate G is along the edge A7, the scan line length is maintained at the small third length L3 on the side closer to the reference coordinate. At this time, the length of the third scanning line E3 is defined by the edge T5 at the front end of the object to be measured 90. On the other hand, at a position separated from the reference coordinate G by a predetermined length, the third scanning line E3 deviates from the object to be measured 90, so that the scanning line length becomes a stepwise larger fourth length L4, which is longer than the reference coordinate G. The scanning line length is maintained at the fourth length L4 even if it is separated from the above. Therefore, by calculating the difference between the fourth length L4 and the third length L3 on the width graph, the dimension H2 in the front-rear direction of the object to be measured 90 can be calculated. The front-back dimension H2 is the dimension of the object to be measured 90 in the direction of arrow C2 in FIG. 5 (b).

画像処理部32は、下面部53aのエッジA7の長さ方向に沿って並ぶピクセルを走査する複数の第4走査線E4を用いることもできる。図6では、第4走査線E4を長破線矢印で示している。第4走査線E4は、エッジA8からエッジA4に向かって、複数のエッジA1~A9、T1~T8のいずれかのエッジに達するまで走査される。そして画像処理部32は、複数の第4走査線E4の長さを算出することで、図7(d)に示す奥行きグラフを取得する。奥行きグラフでは、基準座標GからエッジA4に沿って離れる場合に、基準座標Gに近い側で走査線長さは小さい第5長さL5に維持される。このとき、第4走査線E4は、被測定物90の右端のエッジT4によって長さが規定される。一方、基準座標Gから所定長さ離れた位置では、第4走査線E4が被測定物90から外れるので、走査線長さがステップ状に大きい第6長さL6となり、基準座標Gからそれ以上に離れてもその第6長さL6で走査線長さが維持される。このため、奥行きグラフで第6長さL6と第5長さL5との差を算出することによって、被測定物90の左右方向寸法H3が算出可能となる。左右方向寸法H3は、図5(b)の矢印C3方向における被測定物90の寸法である。なお、図6、図7では、第2~第4走査線E2,E3,E4を、一点鎖線、二点鎖線、長破線でそれぞれ示しているが、実際には、各走査線は実線で示すことができる。また、第1~第4走査線E1~E4は、色の違いで識別可能としてもよい。 The image processing unit 32 can also use a plurality of fourth scanning lines E4 that scan pixels arranged along the length direction of the edge A7 of the lower surface portion 53a. In FIG. 6, the fourth scanning line E4 is indicated by a long dashed arrow. The fourth scanning line E4 is scanned from the edge A8 toward the edge A4 until it reaches any one of the plurality of edges A1 to A9 and T1 to T8. Then, the image processing unit 32 acquires the depth graph shown in FIG. 7D by calculating the lengths of the plurality of fourth scanning lines E4. In the depth graph, when the distance from the reference coordinate G is along the edge A4, the scan line length is maintained at the small fifth length L5 on the side closer to the reference coordinate G. At this time, the length of the fourth scanning line E4 is defined by the rightmost edge T4 of the object to be measured 90. On the other hand, at a position separated from the reference coordinate G by a predetermined length, the fourth scanning line E4 deviates from the object to be measured 90, so that the scanning line length becomes the sixth length L6, which is stepwise larger, and is longer than the reference coordinate G. The scanning line length is maintained at the sixth length L6 even if it is separated from the above. Therefore, by calculating the difference between the sixth length L6 and the fifth length L5 on the depth graph, the left-right dimension H3 of the object to be measured 90 can be calculated. The left-right dimension H3 is the dimension of the object to be measured 90 in the direction of arrow C3 in FIG. 5 (b). In FIGS. 6 and 7, the second to fourth scanning lines E2, E3, and E4 are indicated by a one-dot chain line, a two-dot chain line, and a long dashed line, respectively, but in reality, each scanning line is indicated by a solid line. be able to. Further, the first to fourth scanning lines E1 to E4 may be distinguishable by the difference in color.

上記のように計測用収容室51の所定位置に被測定物90が正確に置かれていれば、被測定物90の寸法を高精度に測定できる。一方、実際には、ユーザが被測定物90を計測用収容室51内の所定位置からずれた位置に置いてしまう場合があり、その場合には被測定物90の寸法を高精度に測定できない。実施形態では、このような場合に、上記の補正図面を用いて画像処理部32の位置ずれ検知部33が、被測定物90の位置ずれの有無を検知する。 If the object to be measured 90 is accurately placed at a predetermined position in the measurement accommodation chamber 51 as described above, the dimensions of the object to be measured 90 can be measured with high accuracy. On the other hand, in reality, the user may place the object to be measured 90 at a position deviated from a predetermined position in the measurement accommodation chamber 51, and in that case, the dimensions of the object to be measured 90 cannot be measured with high accuracy. .. In the embodiment, in such a case, the position shift detection unit 33 of the image processing unit 32 detects the presence or absence of the position shift of the object to be measured 90 by using the above-mentioned correction drawing.

図8は、計測用収容室51の所定位置からずれた位置に被測定物90が配置された場合における位置ずれ検知の第1例を示す図であって、図6に対応する図である。図9は、図8に示す第4走査線E4の長さの変化を示す奥行きグラフを示す図である。図8に示すように被測定物90がエッジA1、A7を含む第2側面部56aから離れて配置される場合がある。この場合、画像処理部32では、図9に示すような、第4走査線E4に基づく奥行きグラフが取得される。図7(d)と図9とを比較すれば明らかなように、図9の奥行きグラフでは、基準座標Gから近い部分で第4走査線E4が被測定物90のエッジT4に到達せず、走査線長さが急激に長くなっている。位置ずれ検知部33は、奥行きグラフの走査線長さの変化を計測することにより、被測定物90の位置ずれを検知する。例えば、走査線長さの変化を示すグラフに対応するデータから、基準座標Gの近くで基準座標Gに近づくほど走査線長さが上昇する変化が計測されたときに、位置ずれがあると検知される。 FIG. 8 is a diagram showing a first example of position deviation detection when the object to be measured 90 is arranged at a position deviated from a predetermined position of the measurement accommodation chamber 51, and is a diagram corresponding to FIG. FIG. 9 is a diagram showing a depth graph showing a change in the length of the fourth scanning line E4 shown in FIG. As shown in FIG. 8, the object to be measured 90 may be arranged away from the second side surface portion 56a including the edges A1 and A7. In this case, the image processing unit 32 acquires a depth graph based on the fourth scanning line E4 as shown in FIG. As is clear from a comparison between FIG. 7 (d) and FIG. 9, in the depth graph of FIG. 9, the fourth scanning line E4 does not reach the edge T4 of the object to be measured 90 near the reference coordinate G. The scanning line length is rapidly increasing. The misalignment detection unit 33 detects the misalignment of the object 90 to be measured by measuring the change in the scanning line length of the depth graph. For example, from the data corresponding to the graph showing the change in the scan line length, it is detected that there is a misalignment when the change in which the scan line length increases as the reference coordinate G approaches the reference coordinate G is measured. Will be done.

図10は、計測用収容室51の所定位置からずれた位置に被測定物90が配置された場合における位置ずれ検知の第2例を示す図であって、図6に対応する図である。図11(a)は、図10に示す第1走査線E1の長さの変化を示す第1高さグラフを示す図であり、図11(b)は、図10に示す第2走査線E2の長さの変化を示す第2高さグラフを示す図である。 FIG. 10 is a diagram showing a second example of position deviation detection when the object to be measured 90 is arranged at a position deviated from a predetermined position of the measurement accommodation chamber 51, and is a diagram corresponding to FIG. 11 (a) is a diagram showing a first height graph showing a change in the length of the first scanning line E1 shown in FIG. 10, and FIG. 11 (b) is a diagram showing a second scanning line E2 shown in FIG. It is a figure which shows the 2nd height graph which shows the change of the length of.

図10に示す例でも、図8に示す例と同様に、被測定物90が第2側面部56aから離れて配置されている。この場合、画像処理部32では、第1走査線E1と第2走査線E2とを用いて、図11(a)(b)に示すような、第1高さグラフと第2高さグラフとが取得される。図7(a)と図11(a)とを比較すれば明らかなように、図11(a)の第1高さグラフでは、基準座標Gから近い部分で第1走査線E1が被測定物90のエッジT8に到達せず、走査線長さが急激に長くなっている。位置ずれ検知部33は、第1高さグラフの走査線長さの変化を計測することにより、被測定物90の位置ずれを検知する。例えば、走査線長さの変化を示すグラフに対応するデータから、基準座標Gの近くで基準座標に近づくほど走査線長さが上昇する変化が計測されたときに、位置ずれがあると検知される。 In the example shown in FIG. 10, the object to be measured 90 is arranged away from the second side surface portion 56a, as in the example shown in FIG. In this case, the image processing unit 32 uses the first scanning line E1 and the second scanning line E2 to form a first height graph and a second height graph as shown in FIGS. 11A and 11B. Is obtained. As is clear from a comparison between FIGS. 7 (a) and 11 (a), in the first height graph of FIG. 11 (a), the first scanning line E1 is the object to be measured at a portion close to the reference coordinate G. The edge T8 of 90 is not reached, and the scanning line length is sharply increased. The misalignment detection unit 33 detects the misalignment of the object 90 to be measured by measuring the change in the scanning line length of the first height graph. For example, from the data corresponding to the graph showing the change in the scan line length, it is detected that there is a misalignment when the change in which the scan line length increases as it approaches the reference coordinate near the reference coordinate G is measured. To.

さらに、図11(a)(b)を比較すれば明らかなように、第2高さグラフで、被測定物90のエッジT2に到達することで設定される第2走査線E2の最小長さL1aは、第1高さグラフで被測定物90のエッジT8に到達することで設定される第1走査線E1の最小長さL1より大きくなっている。この理由は、被測定物90が第2側面部56aから離れているためである。このことから、位置ずれ検知部33は、第1高さグラフと第2高さグラフとの走査線長さの変化を計測してもよい。このとき、位置ずれ検知部33は、第1高さグラフの第1走査線E1の最小長さL1と、第2高さグラフの第2走査線E2の最小長さL1aとの差Haの絶対値が、予め設定された所定値以上の場合に、位置ずれがあると検知してもよい。 Further, as is clear from comparing FIGS. 11A and 11B, the minimum length of the second scanning line E2 set by reaching the edge T2 of the object 90 to be measured in the second height graph. L1a is larger than the minimum length L1 of the first scanning line E1 set by reaching the edge T8 of the object to be measured 90 in the first height graph. The reason for this is that the object to be measured 90 is separated from the second side surface portion 56a. For this reason, the misalignment detection unit 33 may measure the change in the scanning line length between the first height graph and the second height graph. At this time, the misalignment detection unit 33 has an absolute difference Ha between the minimum length L1 of the first scanning line E1 of the first height graph and the minimum length L1a of the second scanning line E2 of the second height graph. When the value is equal to or more than a preset predetermined value, it may be detected that there is a misalignment.

また、図8、図10に示すように、被測定物90が第2側面部56aから離れて配置される場合、図6に示した第3走査線E3に基づく幅グラフ(図7(c)参照)では、基準座標Gに近い部分で走査線長さが短くなる。一方、その走査線長さの良否を幅グラフだけでは検知できない。このため、幅グラフだけでは、被測定物90が第2側面部56aから離れて配置される場合における被測定物90の位置ずれを検出しにくい。 Further, as shown in FIGS. 8 and 10, when the object to be measured 90 is arranged away from the second side surface portion 56a, a width graph based on the third scanning line E3 shown in FIG. 6 (FIG. 7 (c)). (See), the scanning line length becomes shorter near the reference coordinate G. On the other hand, the quality of the scanning line length cannot be detected only by the width graph. Therefore, it is difficult to detect the misalignment of the object to be measured 90 when the object to be measured 90 is arranged away from the second side surface portion 56a only by the width graph.

一方、上記では、被測定物90が第2側面部56aから離れて配置される場合を説明したが、被測定物90が第1側面部55aから離れて配置される場合もある。この場合には、第3走査線E3に基づく幅グラフ、または、第1走査線E1、第2走査線E2に基づく第1及び第2高さグラフの一方、または両方を用いて、被測定物90の位置ずれの検知が可能となる。 On the other hand, in the above, the case where the object to be measured 90 is arranged away from the second side surface portion 56a has been described, but the object to be measured 90 may be arranged away from the first side surface portion 55a. In this case, the object to be measured may be a width graph based on the third scanning line E3, or one or both of the first and second height graphs based on the first scanning line E1 and the second scanning line E2. It is possible to detect the misalignment of 90.

このように、位置ずれ検知部33は、第1~第4走査線E1~E4の一部の走査線のみを用いて被測定物90の位置ずれの有無を検知できる場合があるが、第1~第4走査線E1~E4のすべてを用いて位置ずれを検出する方が、検知精度を高くする面から好ましい。 As described above, the misalignment detection unit 33 may be able to detect the presence or absence of misalignment of the object to be measured 90 by using only a part of the scanning lines E1 to E4 of the first to fourth scanning lines. It is preferable to detect the positional deviation by using all of the fourth scanning lines E1 to E4 from the viewpoint of improving the detection accuracy.

次に、図4のステップS16では、制御装置30は、被測定物90の位置ずれがあるか否かを判定する。上記のように位置ずれがあると判定された場合には、ステップS17に移行し、制御装置30は、報知部37(図3)によって位置ずれがあることを報知させ、被測定物90を置き直すか否かの問い合わせを報知させる。 Next, in step S16 of FIG. 4, the control device 30 determines whether or not there is a positional deviation of the object to be measured 90. When it is determined that there is a misalignment as described above, the process proceeds to step S17, the control device 30 notifies the notification unit 37 (FIG. 3) that there is a misalignment, and the object to be measured 90 is placed. Notify you of an inquiry as to whether or not to fix it.

次いで、図4のステップS18において、制御装置30は、再撮像ボタン38(図3)による再撮像の指示があったか否かを判定する。再撮像ボタン38による再撮像の指示があったと判定された場合には、ステップS11に戻って、処理を繰り返す。これにより、画像処理部32は、撮像部23で再撮像された画像の情報に基づいて、被測定物90の所定位置からの位置ずれの有無を再検知する。 Next, in step S18 of FIG. 4, the control device 30 determines whether or not there is an instruction for re-imaging by the re-imaging button 38 (FIG. 3). When it is determined that the reimaging instruction is given by the reimaging button 38, the process returns to step S11 and the process is repeated. As a result, the image processing unit 32 re-detects the presence or absence of a positional deviation of the object to be measured 90 from a predetermined position based on the information of the image re-imaged by the image pickup unit 23.

一方、ステップS18において、再撮像ボタン38による再撮像の指示がないと判定された場合と、ステップS16において、被測定物90の位置ずれがないと判定された場合とでは、ステップS19に移行する。 On the other hand, in step S18, it is determined that there is no instruction for reimaging by the reimaging button 38, and in step S16, it is determined that there is no misalignment of the object to be measured 90. ..

ステップS19では、画像処理部32の寸法測定部34(図3)によって、上記のように補正画像から被測定物90の寸法を測定する。 In step S19, the dimension measuring unit 34 (FIG. 3) of the image processing unit 32 measures the dimensions of the object to be measured 90 from the corrected image as described above.

その後、ステップS20において、制御装置30は、被測定物90の寸法の測定結果を、操作表示部17(図1)に表示させる。制御装置30は、その寸法の測定結果を用いて、被測定物90の発送料金を算出してもよい。また、その寸法の測定結果を用いて、被測定物90の容積が算出されてもよい。 After that, in step S20, the control device 30 causes the operation display unit 17 (FIG. 1) to display the measurement result of the dimensions of the object to be measured 90. The control device 30 may calculate the shipping fee of the object to be measured 90 by using the measurement result of the dimension. Further, the volume of the object to be measured 90 may be calculated using the measurement result of the dimension.

上記の宅配ボックスの寸法測定装置20によれば、計測用収容室51に被測定物90を置いた状態で、被測定物90が所定位置からずれている場合には、報知部37により被測定物90を置き直すか否かの問い合わせが報知される。これに応じて、ユーザが被測定物90をその報知がされなくなるまで置き直すことができるので、寸法測定装置20は、所定位置に正確に置かれた被測定物90の寸法を高精度に測定することができる。 According to the dimension measuring device 20 of the delivery box described above, when the object to be measured 90 is displaced from a predetermined position when the object to be measured 90 is placed in the measurement storage chamber 51, the notification unit 37 measures the object to be measured. An inquiry as to whether or not to replace the object 90 is notified. Accordingly, the user can reposition the measured object 90 until the notification is stopped, so that the dimension measuring device 20 measures the dimension of the measured object 90 accurately placed at a predetermined position with high accuracy. can do.

図12は、計測用収容室51の所定位置からずれた位置であって、第1側面部55a及び第2側面部56aに対し斜めに被測定物90が配置された場合における位置ずれ検知の方法を示す図であって、図6に対応する図である。図13は、図12に示す第4走査線E4の長さの変化を示す奥行きグラフを示す図である。 FIG. 12 shows a method of detecting the positional deviation when the object to be measured 90 is diagonally arranged with respect to the first side surface portion 55a and the second side surface portion 56a at a position deviated from a predetermined position of the measurement accommodating chamber 51. It is a figure which corresponds to FIG. FIG. 13 is a diagram showing a depth graph showing a change in the length of the fourth scanning line E4 shown in FIG.

図12に示すように、被測定物90が第1側面部55a及び第2側面部56aに対し斜めに置かれた場合、画像処理部32では、第4走査線E4を用いて、図13に示すような、奥行きグラフが取得される。図7(d)と図13とを比較すれば明らかなように、図13の奥行きグラフでは、基準座標Gから近い部分で第4走査線E4が被測定物90のエッジT4に到達せず、走査線長さが急激に長くなっている。さらに、基準座標Gから離れた位置で被測定物90のエッジT4までの走査線長さが、基準座標Gから離れるほど大きくなる。位置ずれ検知部33は、奥行きグラフの走査線長さの変化を計測することにより、被測定物90の位置ずれだけでなく、斜め置きも検知できる。例えば、図13に示す走査線長さの変化を示すグラフに対応するデータから、基準座標Gの近くで基準座標Gに近づくほど走査線長さが上昇する変化が計測されたときに、位置ずれがあると検知される。これとともに、図13に示す走査線長さの変化を示すグラフに対応するデータから、基準座標Gから離れた範囲で、基準座標Gから離れるほど走査線長さが徐々に上昇する変化が計測されたときには、被測定物90の斜め置きがあると検知される。 As shown in FIG. 12, when the object to be measured 90 is placed obliquely with respect to the first side surface portion 55a and the second side surface portion 56a, the image processing unit 32 uses the fourth scanning line E4 to show FIG. A depth graph as shown is obtained. As is clear from a comparison between FIG. 7 (d) and FIG. 13, in the depth graph of FIG. 13, the fourth scanning line E4 does not reach the edge T4 of the object to be measured 90 near the reference coordinate G. The scanning line length is rapidly increasing. Further, the scanning line length from the reference coordinate G to the edge T4 of the object to be measured 90 increases as the distance from the reference coordinate G increases. By measuring the change in the scanning line length of the depth graph, the misalignment detection unit 33 can detect not only the misalignment of the object 90 to be measured but also the oblique placement. For example, from the data corresponding to the graph showing the change in the scanning line length shown in FIG. 13, the position shift is measured when the change in which the scanning line length increases as the reference coordinate G approaches the reference coordinate G is measured. Is detected. At the same time, from the data corresponding to the graph showing the change in the scanning line length shown in FIG. 13, the change in which the scanning line length gradually increases as the distance from the reference coordinate G G increases is measured in the range away from the reference coordinate G. At that time, it is detected that the object to be measured 90 is placed diagonally.

なお、上記では被測定物90が直方体である場合を説明したが、被測定物の外形はこれに限定せず、他の形状、例えば円柱等としてもよい。 Although the case where the object to be measured 90 is a rectangular parallelepiped has been described above, the outer shape of the object to be measured is not limited to this, and other shapes such as a cylinder may be used.

また、被測定物の再撮像を指示する再撮像指示部は、再撮像ボタン38に限定せず、操作表示部17でのタッチパネル上の操作表示部等としてもよい。 Further, the reimaging instruction unit for instructing the reimaging of the object to be measured is not limited to the reimaging button 38, and may be an operation display unit or the like on the touch panel of the operation display unit 17.

図14は、実施形態の別例の宅配ボックス12aの斜視図である。宅配ボックス12aは、外装体13aの左側Lに、複数の宅配用収容室14a、14bが上下に並んで配置される。外装体13aの右側Rには、操作表示部17aを含む操作パネル部16と、寸法測定装置20aとが上下に並んで配置される。操作パネル部16には、バーコードリーダ72、ICカードリーダ73、プリンタ74、及びセキュリティカメラ75が取り付けられる。 FIG. 14 is a perspective view of another delivery box 12a of the embodiment. In the delivery box 12a, a plurality of delivery storage chambers 14a and 14b are arranged side by side on the left side L of the exterior body 13a. On the right side R of the exterior body 13a, an operation panel unit 16 including an operation display unit 17a and a dimension measuring device 20a are arranged vertically side by side. A barcode reader 72, an IC card reader 73, a printer 74, and a security camera 75 are attached to the operation panel unit 16.

操作表示部17aには、例えば、メニュー画面が表示され、ユーザがメニュー画面で表示された複数の項目からタッチして選択したときに、制御装置30(図3参照)はその選択に応じた処理を実行する。例えば、メニュー画面には、寸法計測の開始のトリガーとなる「計測」が表示される。 For example, a menu screen is displayed on the operation display unit 17a, and when the user touches and selects from a plurality of items displayed on the menu screen, the control device 30 (see FIG. 3) processes according to the selection. To execute. For example, on the menu screen, "measurement" that triggers the start of dimension measurement is displayed.

宅配用収容室14a、14bの扉は、電気錠で施錠され、バーコード、ICカード等を用いて解錠される構成としてもよい。プリンタ74は、宅配物の発送人が操作表示部17a等を操作して、発送料金を決済した際に、決済情報が印刷されるようにしてもよい。セキュリティカメラ75は、宅配ボックス12aの付近での不審者の有無を監視するために用いられる。 The doors of the delivery storage chambers 14a and 14b may be locked with an electric lock and unlocked with a bar code, an IC card, or the like. The printer 74 may print the payment information when the sender of the delivery item operates the operation display unit 17a or the like to settle the shipping fee. The security camera 75 is used to monitor the presence or absence of a suspicious person in the vicinity of the delivery box 12a.

図15は、実施形態の別例の寸法測定装置20aの計測用収容室51aを示す斜視図である。計測用収容室51aは、扉52aで塞がれる。扉52aをあけた状態で計測用収容室51aの上側には、パネル部76が露出し、そのパネル部76には液晶表示部で構成される重量表示部77が配置される。計測用収容室51aの底部には、重量測定部78が配置される。重量測定部78は、例えば上面に上下方向に移動可能な可動部を有し、可動部は、下側の固定部との間に弾性部材(図示せず)を有する。被測定物に相当する荷物91の重量が大きくなるほど、可動部は弾性部材の弾力に逆らって下側に移動する。これにより、可動部の上下方向の位置から荷物91の重量が測定される。測定された重量は、重量表示部77で表示される。可動部の上面が、計測用収容室51aの底面に相当する。重量測定部78は、測定された重量が所定値以上の場合に、計測用収容室51aに荷物91があることを検出する荷物センサとして機能する。 FIG. 15 is a perspective view showing a measurement accommodating chamber 51a of another dimension measuring device 20a of the embodiment. The measurement accommodation chamber 51a is closed by the door 52a. A panel portion 76 is exposed on the upper side of the measurement storage chamber 51a with the door 52a open, and a weight display portion 77 composed of a liquid crystal display portion is arranged on the panel portion 76. A weight measuring unit 78 is arranged at the bottom of the measuring storage chamber 51a. The weight measuring unit 78 has, for example, a movable portion movable in the vertical direction on the upper surface thereof, and the movable portion has an elastic member (not shown) between the movable portion and the fixed portion on the lower side. As the weight of the load 91 corresponding to the object to be measured increases, the movable portion moves downward against the elasticity of the elastic member. As a result, the weight of the luggage 91 is measured from the vertical position of the movable portion. The measured weight is displayed on the weight display unit 77. The upper surface of the movable portion corresponds to the lower surface of the measurement storage chamber 51a. The weight measuring unit 78 functions as a luggage sensor for detecting that there is a luggage 91 in the measuring storage chamber 51a when the measured weight is equal to or more than a predetermined value.

計測用収容室51aの上部で開口端部の左側Lには、撮像部23が取り付けられる。撮像部23のカメラ本体は、計測用収容室51aの下部で奥側の右隅部に置かれた荷物91を撮影するように、斜め下側に向けて配置される。撮像部23に接続された制御装置30(図3)は、画像処理部32(図3)を有する。撮像部23は、照明装置25(図3参照)も有する。計測用収容室51aの下面部53bは、例えば鉄または鋼等の金属板により形成される。下面部53bは、例えば銀色である。下面部53bは、模様がない他の色としてもよい。 An imaging unit 23 is attached to the left side L of the opening end in the upper part of the measurement accommodating chamber 51a. The camera body of the image pickup unit 23 is arranged diagonally downward so as to take a picture of the luggage 91 placed in the right corner on the back side at the lower part of the measurement storage chamber 51a. The control device 30 (FIG. 3) connected to the image pickup unit 23 has an image processing unit 32 (FIG. 3). The image pickup unit 23 also has a lighting device 25 (see FIG. 3). The lower surface portion 53b of the measurement accommodating chamber 51a is formed of, for example, a metal plate such as iron or steel. The lower surface portion 53b is, for example, silver. The lower surface portion 53b may be another color having no pattern.

画像処理部32は、撮像部23で取得された荷物91のエッジを含む画像から荷物91の寸法を測定する。このために、画像処理部32では、荷物91の境界線を表すエッジを含む測定用画像が生成される。この際、後述のように、画像処理部32は、光の反射により計測用収容室51aの底面である下面部53bに表れる荷物91の反射像の線と、計測用収容室51aの下面部53b及び荷物91の実物との境界線との区別を行うために閾値を設定する。そして、画像処理部32は、撮像部23で撮像された画像のエッジとエッジに隣接する部分との明度の差が閾値を越えた場合に、エッジが荷物91の境界線を表すものと認識する。そして、画像処理部32は、境界線を表すエッジに基づいて荷物91の寸法を測定する。これにより、荷物91の寸法をより精度よく測定できる。 The image processing unit 32 measures the dimensions of the luggage 91 from the image including the edge of the luggage 91 acquired by the imaging unit 23. For this purpose, the image processing unit 32 generates a measurement image including an edge representing the boundary line of the luggage 91. At this time, as will be described later, the image processing unit 32 has a line of the reflected image of the luggage 91 appearing on the lower surface portion 53b which is the bottom surface of the measurement accommodation chamber 51a due to the reflection of light, and the lower surface portion 53b of the measurement accommodation chamber 51a. And a threshold is set to distinguish the baggage 91 from the actual boundary line. Then, the image processing unit 32 recognizes that the edge represents the boundary line of the luggage 91 when the difference in brightness between the edge of the image captured by the image pickup unit 23 and the portion adjacent to the edge exceeds the threshold value. .. Then, the image processing unit 32 measures the dimensions of the luggage 91 based on the edge representing the boundary line. As a result, the dimensions of the luggage 91 can be measured more accurately.

図16は、実施形態の別例の寸法測定のための測定用画像を生成する手順を示すフローチャートである。測定用画像は、図14、図15に示した寸法測定装置20aを用いて生成される。以下では、図3、図14、図15の符号を用いて説明する。ステップS30では、ユーザが計測用収容室51aに荷物91を入れず扉52aを閉じた状態で、操作表示部17aのメニュー画面で「計測」を選択する。 FIG. 16 is a flowchart showing a procedure for generating a measurement image for dimension measurement of another embodiment of the embodiment. The measurement image is generated by using the dimension measuring device 20a shown in FIGS. 14 and 15. Hereinafter, the reference numerals of FIGS. 3, 14, and 15 will be used for description. In step S30, the user selects "measurement" on the menu screen of the operation display unit 17a with the door 52a closed without inserting the luggage 91 into the measurement storage chamber 51a.

これによって、制御装置30は、ステップS31において、その選択の操作をトリガーとして、撮像部23により計測用収容室51aを撮影させ、その撮影画像により図17に示す荷物なし画像である画像Aを取得する。 As a result, in step S31, the control device 30 causes the image pickup unit 23 to take a picture of the measurement storage chamber 51a with the selection operation as a trigger, and acquires the image A which is the image without luggage shown in FIG. 17 from the taken image. do.

次いで、図16のステップS32において、ユーザは、計測用収容室51aの下面部53b上の基準隅部58(図17)の付近に、第1側面部55aと第2側面部56aとにほぼ接触するように、すなわち奥角に沿って、荷物91を置く。これによって、重量測定部78は、荷物91があることを検出し、その検出信号が制御装置30に送信される。 Next, in step S32 of FIG. 16, the user substantially contacts the first side surface portion 55a and the second side surface portion 56a in the vicinity of the reference corner portion 58 (FIG. 17) on the lower surface portion 53b of the measurement accommodation chamber 51a. That is, the luggage 91 is placed along the back corner. As a result, the weight measuring unit 78 detects that the cargo 91 is present, and the detection signal is transmitted to the control device 30.

そして、ステップS33において、荷物91があることが検出された状態で扉52aが閉められたときに、制御装置30が撮像部23により計測用収容室51aと荷物91とを撮影させる。そして、制御装置30は、その撮影画像により、図18に示す荷物あり画像である画像Bを取得する。図18では、計測用収容室51aに直方体状の荷物91が配置された場合を示している。 Then, in step S33, when the door 52a is closed while it is detected that the luggage 91 is present, the control device 30 causes the image pickup unit 23 to take a picture of the measurement storage chamber 51a and the luggage 91. Then, the control device 30 acquires the image B, which is the image with luggage shown in FIG. 18, from the captured image. FIG. 18 shows a case where a rectangular parallelepiped luggage 91 is arranged in the measurement storage chamber 51a.

その後、図16のステップS34において、制御装置30は、画像Aと画像Bとの差分から、図19に示すように、計測用収容室51a及び荷物91のうち荷物91だけがある画像Cを作成する。画像Cでは、第1側面部、第2側面部及び下面部のそれぞれの面に沿うように形成された3つの矩形枠81,82,83が表示される。例えば3つの矩形枠81,82,83は、赤、青、緑等、互いに色が異なる実線により描かれる。矩形枠81,82,83は、制御装置30の画像処理部32が、荷物91の外形のエッジの位置を決定するために用いられる。 After that, in step S34 of FIG. 16, the control device 30 creates an image C having only the luggage 91 out of the measurement storage chamber 51a and the luggage 91 from the difference between the image A and the image B, as shown in FIG. do. In the image C, three rectangular frames 81, 82, and 83 formed along the respective surfaces of the first side surface portion, the second side surface portion, and the lower surface portion are displayed. For example, the three rectangular frames 81, 82, and 83 are drawn by solid lines having different colors such as red, blue, and green. The rectangular frames 81, 82, and 83 are used by the image processing unit 32 of the control device 30 to determine the position of the edge of the outer shape of the luggage 91.

次いで、図16のステップS35において、第1側面部、第2側面部、下面部に対応する矩形枠81,82,83の面内の各画像で、画像内の変化部分を見つけてエッジを検出する。図20は、図19の画像Cにおいて、計測用収容室内の3面の各画像からエッジを検出する方法を示す図である。 Next, in step S35 of FIG. 16, in each image in the plane of the rectangular frames 81, 82, 83 corresponding to the first side surface portion, the second side surface portion, and the lower surface portion, the change portion in the image is found and the edge is detected. do. FIG. 20 is a diagram showing a method of detecting an edge from each of the three images in the measurement accommodation chamber in the image C of FIG. 19.

画像処理部32は、第1側面部55a(図17)及び第2側面部56a(図17)に対応する2つの矩形枠81,82のそれぞれの面内において、複数の第1走査線E1、及び複数の第2走査線E2を用いて、荷物91から遠い側のエッジA2、A6から荷物91付近のエッジA4、A7に向けて、エッジA1の長さ方向に沿ってピクセルを走査する。そして、画像処理部32は、2つの矩形枠81,82の面内のそれぞれで画像内の輝度が変わる等の変化部分を見つけて、その位置を荷物のエッジT8a、T2aとして検出する。 The image processing unit 32 has a plurality of first scanning lines E1 in the planes of the two rectangular frames 81 and 82 corresponding to the first side surface portion 55a (FIG. 17) and the second side surface portion 56a (FIG. 17). And the plurality of second scanning lines E2 are used to scan pixels along the length direction of the edge A1 from the edges A2 and A6 on the side far from the luggage 91 toward the edges A4 and A7 near the luggage 91. Then, the image processing unit 32 finds a change portion such that the brightness in the image changes in each of the planes of the two rectangular frames 81 and 82, and detects the position as the edge T8a and T2a of the load.

また、画像処理部32は、下面部53b(図17)に対応する矩形枠83の面内において、複数の第3走査線E3、及び複数の第4走査線E4を用いて、荷物91から遠い側のエッジA9、A8から荷物91付近のエッジA7、A4に向けて、エッジA4、A7の長さ方向に沿ってピクセルを走査する。そして、画像処理部32は、矩形枠83の面内において、画像内の輝度が変わる等の変化部分を見つけて、その位置を荷物のエッジT5a、T4aとして検出する。 Further, the image processing unit 32 is far from the luggage 91 by using the plurality of third scanning lines E3 and the plurality of fourth scanning lines E4 in the plane of the rectangular frame 83 corresponding to the lower surface portion 53b (FIG. 17). Pixels are scanned along the length direction of the edges A4 and A7 from the side edges A9 and A8 toward the edges A7 and A4 near the luggage 91. Then, the image processing unit 32 finds a change portion in the image such as a change in brightness in the plane of the rectangular frame 83, and detects the position as the edges T5a and T4a of the load.

これとともに、画像処理部32は、荷物91について検出されたエッジT2a、T4a、T5a、T8aと、エッジT2a、T4a、T5a、T8aに隣接する部分との明度差に基づいて、荷物91と計測用収容室51aの面との境界線を表すエッジを認識する。 At the same time, the image processing unit 32 is for measuring the luggage 91 based on the difference in brightness between the edges T2a, T4a, T5a, T8a detected for the luggage 91 and the portions adjacent to the edges T2a, T4a, T5a, T8a. The edge representing the boundary line with the surface of the containment chamber 51a is recognized.

図21は、図20において、荷物91について検出されたエッジT2a、T4a、T5a、T8aを強調して示す図である。図22は、図21において、荷物91付近の画像を拡大して示す図である。画像処理部32は、上記の荷物91のエッジを認識する際に、光の反射により計測用収容室の下面部に表れる荷物91の反射像92の線93と、計測用収容室51aの下面部及び荷物91の実物との境界線との区別を行うために閾値を設定する。そして、画像処理部32は、撮像部23で撮像された画像のエッジとエッジに隣接する部分との明度の差が閾値を越えた場合に、エッジが荷物91の境界線を表すものと認識する。 FIG. 21 is a diagram highlighting the edges T2a, T4a, T5a, and T8a detected for the load 91 in FIG. 20. FIG. 22 is an enlarged view showing an image of the vicinity of the luggage 91 in FIG. 21. When the image processing unit 32 recognizes the edge of the luggage 91, the line 93 of the reflection image 92 of the luggage 91 that appears on the lower surface of the measurement storage chamber due to the reflection of light, and the lower surface portion of the measurement storage chamber 51a. And a threshold is set to distinguish the baggage 91 from the actual boundary line. Then, the image processing unit 32 recognizes that the edge represents the boundary line of the luggage 91 when the difference in brightness between the edge of the image captured by the image pickup unit 23 and the portion adjacent to the edge exceeds the threshold value. ..

図16のステップS36において、検出されたエッジから直方体の荷物91のエッジを決定し、それにより、測定用画像の生成が完了する。画像処理部32は、この測定用画像のエッジに基づいて荷物91の寸法を測定する。画像処理部32のステップS36以降では、図4のステップS14と同様にエッジの歪が補正された補正画像を取得し、その後、図4のステップS15~S20の処理と同様の処理を行う。 In step S36 of FIG. 16, the edge of the rectangular parallelepiped load 91 is determined from the detected edge, whereby the generation of the measurement image is completed. The image processing unit 32 measures the dimensions of the luggage 91 based on the edges of the measurement image. In steps S36 and subsequent steps of the image processing unit 32, a corrected image in which edge distortion is corrected is acquired in the same manner as in step S14 of FIG. 4, and then the same processing as in steps S15 to S20 of FIG. 4 is performed.

なお、図4のステップS19と同様に、荷物91の寸法を測定する場合に、検出されたエッジから算出される荷物91の外形と、事前に作成された3つの矩形枠81,82,83の各エッジの間の実際の寸法との比例関係から荷物91の寸法が測定されてもよい。 As in step S19 of FIG. 4, when measuring the dimensions of the luggage 91, the outer shape of the luggage 91 calculated from the detected edge and the three rectangular frames 81, 82, 83 created in advance. The dimension of the luggage 91 may be measured from the proportional relationship with the actual dimension between each edge.

図22では、明度の違いを斜格子部D1と、斜線部D2と、砂地部D3と、斜格子部D1の内側の無地部D4とにより模式的に示している。斜格子部D1が最も暗く、斜線部D2、砂地部D3、無地部D4の順に明るくなり、無地部D4で最も明るくなっている。斜格子部D1の外側の無地部D5は、斜格子部D1と同様に最も暗くなっている。図面の簡略化のために、無地部D5は斜格子部としていない。また、斜格子部D1の内側の無地部D4と砂地部D3との明度の差は、砂地部D3と斜格子部D1との明度の差より大きくなっている。図22では、下面部に対応する矩形枠83の面内に光の反射により荷物91の反射像92の線93が表れている。 In FIG. 22, the difference in brightness is schematically shown by the diagonal grid portion D1, the diagonal line portion D2, the sandy ground portion D3, and the plain portion D4 inside the diagonal grid portion D1. The diagonal grid portion D1 is the darkest, the shaded portion D2, the sandy ground portion D3, and the plain portion D4 are brighter in this order, and the plain portion D4 is the brightest. The plain portion D5 outside the diagonal grid portion D1 is the darkest as in the diagonal grid portion D1. For the sake of simplification of the drawings, the plain portion D5 is not a diagonal grid portion. Further, the difference in brightness between the plain portion D4 inside the diagonal grid portion D1 and the sandy ground portion D3 is larger than the difference in brightness between the sandy ground portion D3 and the diagonal grid portion D1. In FIG. 22, the line 93 of the reflected image 92 of the luggage 91 appears in the plane of the rectangular frame 83 corresponding to the lower surface portion due to the reflection of light.

撮像部23で撮像された画像のエッジとエッジに隣接する部分との明度の差として、反射像92の線93を挟む両側の明度差は閾値を越えないが、荷物91の右下端のエッジT4aを挟む両側の明度差は閾値を越える。これにより、画像処理部32は、エッジT4aが荷物91の実際の境界線を表すものと認識する。 As the difference in brightness between the edge of the image captured by the image pickup unit 23 and the portion adjacent to the edge, the difference in brightness on both sides of the line 93 of the reflected image 92 does not exceed the threshold value, but the edge T4a at the lower right end of the luggage 91. The difference in brightness between the two sides exceeds the threshold. As a result, the image processing unit 32 recognizes that the edge T4a represents the actual boundary line of the cargo 91.

一方、画像処理部32がこのような認識を行わない場合には、反射像92の線93を、荷物91の境界を表すエッジと誤って認識する可能性がある。この場合には、線93を用いて生成された測定用画像が、実際の荷物の外形を表さず、その測定用画像を用いて荷物の寸法を計測するときに、その計測精度が悪化する。図16にその手順を示した本例の構成によれば、このような不都合を防止でき、荷物91の寸法の測定精度を向上できる。 On the other hand, if the image processing unit 32 does not perform such recognition, the line 93 of the reflected image 92 may be erroneously recognized as an edge representing the boundary of the load 91. In this case, the measurement image generated by using the line 93 does not represent the actual outer shape of the baggage, and when the measurement image is used to measure the dimensions of the baggage, the measurement accuracy deteriorates. .. According to the configuration of this example whose procedure is shown in FIG. 16, such inconvenience can be prevented and the measurement accuracy of the dimensions of the luggage 91 can be improved.

なお、図22では、荷物91の左上端のエッジT8aの両側はいずれも最も暗い部分となっており、明度差が小さいため、エッジT8aを、荷物91の境界を表すエッジと認識しにくい可能性がある。一方、荷物91の右上端のエッジT2aの両側の明度差は大きくなっており、エッジT2aを精度よく検出できるので、エッジT2aと計測用収容室のエッジA1との交点、及び計測用収容室のエッジA4との平行関係等から、エッジT8aを計算で求めやすい。本例において、その他の構成及び作用は、図1~図13の構成と同様である。 In FIG. 22, both sides of the edge T8a at the upper left end of the luggage 91 are the darkest portions, and the difference in brightness is small, so that the edge T8a may be difficult to recognize as an edge representing the boundary of the luggage 91. There is. On the other hand, the difference in brightness on both sides of the edge T2a at the upper right end of the luggage 91 is large, and the edge T2a can be detected accurately. It is easy to calculate the edge T8a from the parallel relationship with the edge A4. In this example, other configurations and operations are the same as those of FIGS. 1 to 13.

12,12a 宅配ボックス、13,13a 外装体、14,14a,14b 宅配用収容室、15 扉、16 操作パネル部、17,17a 操作表示部、18 電気錠、19 荷物センサ、20,20a 寸法測定装置(測定装置)、23 撮像部、24 カメラ本体、25 照明装置、30 制御装置、31 演算処理部、32 画像処理部、33 位置ずれ検知部、34 寸法測定部、35 記憶部、36 インターフェイス、37 報知部、40 二値画像、41 補正画像、51,51a 計測用収容室、52,52a 扉、53 底板部、53a,53b 下面部、54 右壁部、55 左壁部、55a 第1側面部、56 後壁部、56a 第2側面部、57 天板部、58 基準隅部、61 第1マーカー、62 第2マーカー、63 第3マーカー、70 決済部、81,82,83 矩形枠、90 被測定物、91 荷物、92 反射像、93 線。 12,12a delivery box, 13,13a exterior, 14, 14a, 14b delivery containment room, 15 doors, 16 operation panel, 17, 17a operation display, 18 electric lock, 19 baggage sensor, 20, 20a dimension measurement Device (measuring device), 23 image pickup unit, 24 camera body, 25 lighting device, 30 control device, 31 arithmetic processing unit, 32 image processing unit, 33 misalignment detection unit, 34 dimension measurement unit, 35 storage unit, 36 interface, 37 Notification unit, 40 Binary image, 41 Corrected image, 51, 51a Measurement accommodation room, 52, 52a Door, 53 Bottom plate, 53a, 53b Bottom surface, 54 Right wall, 55 Left wall, 55a First side surface Part, 56 rear wall part, 56a second side surface part, 57 top plate part, 58 reference corner part, 61 first marker, 62 second marker, 63 third marker, 70 settlement part, 81, 82, 83 rectangular frame, 90 Measured object, 91 Luggage, 92 Reflection image, 93 lines.

Claims (5)

被測定物を出し入れ可能に収容する収容室と、
前記収容室に収容される前記被測定物を撮像する撮像部と、
前記撮像部で撮像された画像の情報に基づいて画像処理を行ない前記被測定物の寸法を測定するとともに、前記画像の情報に基づいて、前記被測定物の予め決められた所定位置からの位置ずれの有無を検知する画像処理部と、
前記画像処理部により前記位置ずれを検知した際に、前記被測定物を置き直すか否かの問い合わせを報知する報知部とを備える、
宅配ボックスの寸法測定装置。
A storage room that can accommodate the object to be measured in and out,
An image pickup unit that captures an image of the object to be measured housed in the storage chamber,
Image processing is performed based on the information of the image captured by the image pickup unit to measure the dimensions of the object to be measured, and the position of the object to be measured from a predetermined position based on the information of the image. An image processing unit that detects the presence or absence of deviation, and
When the image processing unit detects the positional deviation, the image processing unit includes a notification unit for notifying an inquiry as to whether or not to replace the object to be measured.
Delivery box dimension measuring device.
請求項1に記載の宅配ボックスの寸法測定装置において、
前記画像処理部は、前記画像における画像処理方向の走査線の長さの変化を計測することにより、前記位置ずれを検知する、
宅配ボックスの寸法測定装置。
In the dimension measuring device for the delivery box according to claim 1,
The image processing unit detects the positional deviation by measuring the change in the length of the scanning line in the image processing direction in the image.
Delivery box dimension measuring device.
請求項1または請求項2に記載の宅配ボックスの寸法測定装置において、
操作された場合に前記被測定物の再撮像を指示する再撮像指示部を備え、
前記画像処理部は、前記再撮像指示部が操作された場合に、前記撮像部で再撮像された画像の情報に基づいて、前記被測定物の前記所定位置からの位置ずれの有無を再検知する、
宅配ボックスの寸法測定装置。
In the dimension measuring device for the delivery box according to claim 1 or 2.
A reimaging instruction unit for instructing reimaging of the object to be measured when operated is provided.
When the re-imaging instruction unit is operated, the image processing unit re-detects the presence or absence of a positional deviation of the object to be measured from the predetermined position based on the information of the image re-imaged by the imaging unit. do,
Delivery box dimension measuring device.
請求項1から請求項3のいずれか1項に記載の宅配ボックスの寸法測定装置において、
前記撮像部の一部として、または前記撮像部とは異なる装置として配置され、前記収容室内を照明する照明装置を備える、
宅配ボックスの寸法測定装置。
In the dimension measuring device for the delivery box according to any one of claims 1 to 3.
It is arranged as a part of the image pickup unit or as a device different from the image pickup unit, and includes a lighting device for illuminating the accommodation room.
Delivery box dimension measuring device.
請求項1から請求項4のいずれか1項に記載の宅配ボックスの寸法測定装置において、
前記画像処理部は、光の反射により前記収容室の底面に表れる前記被測定物の反射像の線と、前記収容室の底面及び前記被測定物の実物との境界線との区別を行うために閾値を設定し、前記撮像部で撮像された前記画像のエッジと前記エッジに隣接する部分との明度の差が前記閾値を越えた場合に、前記エッジが前記境界線を表すと認識し、前記エッジに基づいて前記被測定物の寸法を測定する、
宅配ボックスの寸法測定装置。
In the dimension measuring device for the delivery box according to any one of claims 1 to 4.
The image processing unit distinguishes between the line of the reflected image of the object to be measured that appears on the bottom surface of the accommodation chamber due to the reflection of light and the boundary line between the bottom surface of the accommodation chamber and the actual object to be measured. When the difference in brightness between the edge of the image captured by the image pickup unit and the portion adjacent to the edge exceeds the threshold value, it is recognized that the edge represents the boundary line. Measuring the dimensions of the object to be measured based on the edges,
Delivery box dimension measuring device.
JP2018123732A 2018-03-30 2018-06-28 Delivery box dimension measuring device Expired - Fee Related JP7054881B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/006498 WO2019187826A1 (en) 2018-03-30 2019-02-21 Dimension measurement device for home delivery box

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018068455 2018-03-30
JP2018068455 2018-03-30

Publications (2)

Publication Number Publication Date
JP2019184556A JP2019184556A (en) 2019-10-24
JP7054881B2 true JP7054881B2 (en) 2022-04-15

Family

ID=68340870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018123732A Expired - Fee Related JP7054881B2 (en) 2018-03-30 2018-06-28 Delivery box dimension measuring device

Country Status (1)

Country Link
JP (1) JP7054881B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021076494A (en) * 2019-11-11 2021-05-20 沖電気工業株式会社 System, device, and method for dimension measurement
CN114202041B (en) * 2020-09-18 2025-02-11 顺丰科技有限公司 Packaging material detection method and device
JP7385179B2 (en) * 2021-06-08 2023-11-22 株式会社タツノ Delivery box system and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3077727U (en) 2000-11-15 2001-05-29 東建コーポレーション株式会社 Entrance unit fittings
WO2017110071A1 (en) 2015-12-25 2017-06-29 パナソニックIpマネジメント株式会社 Size measurement device, delivery box apparatus, and size measurement method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010008352A (en) * 2008-06-30 2010-01-14 3D Media Co Ltd Size measuring method and size measuring device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3077727U (en) 2000-11-15 2001-05-29 東建コーポレーション株式会社 Entrance unit fittings
WO2017110071A1 (en) 2015-12-25 2017-06-29 パナソニックIpマネジメント株式会社 Size measurement device, delivery box apparatus, and size measurement method

Also Published As

Publication number Publication date
JP2019184556A (en) 2019-10-24

Similar Documents

Publication Publication Date Title
CN106169185B (en) Evaluating image values
JP7122633B2 (en) delivery box
US9036223B2 (en) Systems and methods for edge detection during an imaging operation
KR101860569B1 (en) Recognition device for text and barcode reconizing text and barcode simultaneously
CN103366358B (en) Dust detection
JP7054881B2 (en) Delivery box dimension measuring device
US20150098628A1 (en) Systems and methods for mobile image capture and processing
CN104067605A (en) Photographing device, photographed image processing system, program, and recording medium
US9454708B2 (en) Recognition dictionary creation apparatus and method for creating recognition dictionary by the same
JP2014017673A (en) Image processing apparatus, method therefor, and program
EP3370403B1 (en) Reading device and mobile terminal
JP2018133071A (en) Article recognition apparatus, settlement apparatus, and article recognition method
WO2018167974A1 (en) Image processing device, control method, and control program
JP6564136B2 (en) Image processing apparatus, image processing method, and program
KR102505705B1 (en) Image analysis server, object counting method using the same and object counting system
JP4574503B2 (en) Image processing apparatus, image processing method, and program
CN100452077C (en) Method for extracting two-dimensional code area, its extracting device and electronic device
KR20220067370A (en) Counting method of objects included in multiple images using an image analysis server and object counting system
US9710688B2 (en) Stereoscopic information code and stereoscopic information code reading device
WO2019187826A1 (en) Dimension measurement device for home delivery box
EP3961148A1 (en) Dimensioning device and locker for luggage shipping
JP7113316B2 (en) Dimension measuring device for delivery boxes
JP6657668B2 (en) Image processing apparatus, image acquisition system, and image processing program
JPH1021412A (en) Edge detection method of parts picture, and parts form recognition device
JP2012205089A (en) Information processing device, information processing method, and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210420

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220322

R151 Written notification of patent or utility model registration

Ref document number: 7054881

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees