JPH096965A - Method for detecting end position of book image and device for reading thereof - Google Patents

Method for detecting end position of book image and device for reading thereof

Info

Publication number
JPH096965A
JPH096965A JP7157356A JP15735695A JPH096965A JP H096965 A JPH096965 A JP H096965A JP 7157356 A JP7157356 A JP 7157356A JP 15735695 A JP15735695 A JP 15735695A JP H096965 A JPH096965 A JP H096965A
Authority
JP
Japan
Prior art keywords
book
image
coordinate
value
coordinate axis
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.)
Withdrawn
Application number
JP7157356A
Other languages
Japanese (ja)
Inventor
Kenji Suzuki
健司 鈴木
Fuminori Miyazawa
史紀 宮沢
Masamitsu Sasaki
正充 佐々木
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.)
Hitachi Plant Technologies Ltd
JFE Systems Inc
Original Assignee
Hitachi Techno Engineering Co Ltd
Kawasaki Steel Systems R&D Corp
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 Hitachi Techno Engineering Co Ltd, Kawasaki Steel Systems R&D Corp filed Critical Hitachi Techno Engineering Co Ltd
Priority to JP7157356A priority Critical patent/JPH096965A/en
Publication of JPH096965A publication Critical patent/JPH096965A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To efficiently shorten a processing time by finding an irreducible processing range at each time from the book image. CONSTITUTION: At specific intervals W which are less than a half as wide as the difference between the narrowest width W1 in the object book in the lateral direction of the book 10 and the widest width W2 in an object slip 14, pixel values on a longitudinal sample line SL which is set at an optional position are checked, and border coordinates whose differences from the longitudinal coordinate of the lower end of the book are less than specific value are excluded from a group of longitudinal border point coordinates which greatly vary in pixel value from a background value on the sample line; when the remaining coordinate groups do not become <=2 groups having variance below a specific permissible value, an error is judged and when one group is left, its mean value is regarded as the longitudinal coordinate of the upper end of the book. When two groups are left, the mean value of the group having a smaller value is regarded as the longitudinal coordinate of the upper end of the book.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、書籍画像の端部位置検
出方法及び読み取り装置に係り、特に、書籍の背面に印
刷された、書籍に固有のコードを自動的に読み取る際
に、コード読み取りのための画像処理を行う範囲を、対
象とする最も大きな書籍に合わせた大きさの画像中の、
実際に読み取ろうとする書籍がある部分に限定すること
が可能な、書籍画像の端部位置検出方法及び読み取り装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting an edge position of a book image and a reading device, and more particularly, when reading a code unique to the book printed on the back surface of the book, the code reading is automatically performed. In the image of the size that fits the largest target book, the range for performing image processing for
The present invention relates to a method for detecting an edge position of a book image and a reading device that can limit the book to be actually read.

【0002】[0002]

【従来の技術】書籍の背面に印刷された、書籍に固有の
コードを自動的に読み取る際には、テレビカメラ等で取
り込んだ書籍の画像を処理する必要がある。
2. Description of the Related Art In order to automatically read a code peculiar to a book printed on the back of a book, it is necessary to process the image of the book taken in by a television camera or the like.

【0003】その際に一番容易な方法は、テレビカメラ
によって取り込まれた背景を含む視野画像全体に対し
て、読み取り処理を行うことであるが、このような処理
範囲を限定しない方法では、書籍画像を含まない背景画
像に対しても同じ処理を行うこととなり、効率が悪いだ
けでなく、処理に時間がかかる。
At this time, the easiest method is to perform the reading process on the entire view image including the background captured by the television camera. However, in a method that does not limit the processing range, a book is used. The same process is performed on a background image that does not include an image, which is not only inefficient, but also takes time to process.

【0004】一方、特開平1−9303は、ウェハース
の画像と境界のみからなる辞書パターンを2次元フーリ
エ変換して照合し、画像パターンと辞書パターンの相関
値が最も高い位置を求めることにより、ウェハースの中
心位置を求める方法を開示している。
On the other hand, Japanese Laid-Open Patent Publication No. 1-9303 discloses a wafer pattern by performing a two-dimensional Fourier transform on a dictionary pattern consisting of an image of the wafer and only boundaries to obtain a position having the highest correlation value between the image pattern and the dictionary pattern. Discloses a method of determining the center position of the.

【0005】又、特開平2−130688は、不感帯領
域を設け、探索範囲を制限することによって処理時間を
短縮する回路について述べている。
Further, Japanese Laid-Open Patent Publication No. 2-130688 describes a circuit for providing a dead zone region and limiting the search range to shorten the processing time.

【0006】[0006]

【発明が解決しようとする問題点】しかしながら、特開
平1−9303では、画像の探索範囲を、所望のパター
ンが存在する可能性がある場所に制限していないため
に、辞書パターンに同一の画像パターンが存在しないこ
とが予め分かっている背景部分まで照合処理をして、無
駄な処理時間がかかるという問題点を有する。
However, in Japanese Patent Laid-Open No. 1-9303, since the search range of an image is not limited to a place where a desired pattern may exist, the same image is used as the dictionary pattern. There is a problem in that a matching process is performed up to a background portion in which it is known that a pattern does not exist, and that a wasteful processing time is required.

【0007】又、後者の特開平2−130688では、
処理範囲は制限されているものの、処理範囲自体の求め
方が与えられていないという問題点を有していた。
Further, in the latter Japanese Patent Laid-Open No. 2-130688,
Although the processing range is limited, there is a problem that the method for obtaining the processing range itself is not given.

【0008】本発明は、前記従来の問題点を解消するべ
くなされたもので、書籍画像の端部位置を入力画像から
的確に求めることができる書籍画像の端部位置検出方法
を提供することを第1の目的とする。
The present invention has been made to solve the above-mentioned conventional problems, and provides a method for detecting an edge position of a book image, which can accurately determine the edge position of the book image from an input image. The first purpose.

【0009】又、本発明は、該書籍画像の端部位置検出
方法を利用して、毎回最小限の処理範囲を求めて、処理
時間を効率良く低減することが可能な書籍画像の読み取
り装置を提供することを第2の目的とする。
The present invention also provides a book image reading apparatus capable of efficiently reducing the processing time by obtaining the minimum processing range each time by utilizing the book image edge position detecting method. The second purpose is to provide.

【0010】[0010]

【課題を解決するための手段】本発明は、視野画像の座
標軸とほぼ平行に、且つ、書籍の端部位置の検出を行う
所望の座標軸方向の一端を揃えて背景上に該座標軸方向
に配置された書籍の他端の該座標軸方向位置を検出する
に際して、書籍の該座標軸と直角方向に関して、対象と
する書籍中の最も幅の狭いものの幅と、該書籍端面に挟
まれる、対象とする伝票中の最も幅の広いものの幅の差
の半分以下の所定間隔で、任意位置に設定した該座標軸
方向の画像輝度測定線上の画素値を検出し、前記測定線
上で画素値が背景値から大きく変化する境界点の該座標
軸方向の座標を記録し、測定線の数だけ得られた該座標
軸方向境界点座標群の中で、書籍の前記一端の該座標軸
方向の座標との差が所定値以下のものを除外し、残った
座標群が、所定の許容値以下のばらつきの2個以内のグ
ループにならない時は、エラーとし、グループが1個と
なる時は、その代表値を書籍他端の該座標軸方向の座標
とし、グループが2個となる時は、大きな値を持つグル
ープを伝票の座標として除外し、小さな値を持つグルー
プの代表値を書籍他端の該座標軸方向の座標とすること
により、前記第1の目的を達成したものである。
SUMMARY OF THE INVENTION According to the present invention, one end of a desired coordinate axis direction for detecting the end position of a book is aligned substantially parallel to the coordinate axis of the visual field image and is arranged on the background in the coordinate axis direction. When detecting the position of the other end of the book in the coordinate axis direction, the width of the narrowest target book in the direction perpendicular to the coordinate axis of the book and the target slip sandwiched between the end faces of the book The pixel value on the image brightness measurement line in the coordinate axis direction set at an arbitrary position is detected at a predetermined interval of half or less of the width difference of the widest one, and the pixel value on the measurement line largely changes from the background value. The coordinate of the boundary point in the coordinate axis direction is recorded, and the difference between the coordinate of the one end of the book and the coordinate in the coordinate axis direction is equal to or less than a predetermined value in the coordinate axis direction boundary point coordinate group obtained by the number of measurement lines. Excludes objects, and the remaining coordinate groups When there are no more than two groups with variations less than or equal to the capacity value, it is an error. When there is one group, the representative value is the coordinate of the other end of the book in the coordinate axis direction, and when there are two groups. Eliminates the group having a large value as the coordinate of the slip and sets the representative value of the group having a small value as the coordinate of the other end of the book in the direction of the coordinate axis, thereby achieving the first object.

【0011】又、前記境界点の該座標軸方向の座標を、
視野画像の一方から調べていった測定線上の画素値が所
定の閾値を越えた時点とし、該時点で、当該測定線につ
いての処理を終了するようにしたものである。
Further, the coordinates of the boundary point in the direction of the coordinate axis are:
This is the time when the pixel value on the measurement line, which has been checked from one of the visual field images, exceeds a predetermined threshold value, and at that time, the process for the measurement line is terminated.

【0012】又、前記グループ内の境界点座標の平均値
を、そのグループの代表値としたものである。
The average value of the coordinates of the boundary points in the group is used as the representative value of the group.

【0013】又、書籍の読み取り装置において、撮像手
段と、該撮像手段の視野内の背景上の所定位置に、視野
画像の座標軸とほぼ平行に、且つ、一端を揃えて書籍を
端部位置の検出を行う座標軸方向に配置するための書籍
位置決め手段と、書籍の該座標軸と直角方向に関して、
対象とする書籍中の最も幅の狭いものの幅と、該書籍端
面に挟まれる、対象とする伝票中の最も幅の広いものの
幅の差の半分以下の所定間隔で、任意位置に設定した該
座標軸方向の画像輝度測定線上の画素値を検出する手段
と、前記測定線上で画素値が背景値から大きく変化する
境界点の該座標軸方向の座標を記録する手段と、測定線
の数だけ得られた該座標軸方向境界点座標群の中で、書
籍の前記一端の該座標軸方向の座標との差が所定値以下
のものを除外し、残った座標群が、所定の許容値以下の
ばらつきの2個以内のグループにならない時は、エラー
とし、グループが1個となる時は、その代表値を書籍他
端の該座標軸方向の座標とし、グループが2個となる時
は、大きな値を持つグループを伝票の座標として除外
し、小さな値を持つグループの代表値を書籍他端の該座
標軸方向の座標として、画像の中で該書籍他端座標と書
籍一端座標に挟まれた部分に対してのみ読み取り処理を
行う画像処理手段とを備え、少なくとも書籍の該座標軸
方向に関しては、書籍の存在する領域についてのみ読み
取り処理を行うことにより、前記第2の目的を達成した
ものである。
Further, in the book reading apparatus, the image pickup means and a predetermined position on the background within the visual field of the image pickup means are arranged substantially parallel to the coordinate axes of the visual field image and one end thereof is aligned with the book at the end position. With respect to the book positioning means for arranging in the coordinate axis direction for detection, and the direction orthogonal to the coordinate axis of the book,
The coordinate axis set at an arbitrary position at a predetermined interval that is not more than half the difference between the width of the narrowest item in the target book and the width of the widest item in the target slip that is sandwiched between the end faces of the book. Means for detecting the pixel value on the image luminance measuring line in the direction, means for recording the coordinate in the coordinate axis direction of the boundary point at which the pixel value greatly changes from the background value on the measuring line, and the number of measuring lines is obtained. In the coordinate axis direction boundary point coordinate group, a coordinate group whose difference from the coordinate of the one end of the book in the coordinate axis direction is a predetermined value or less is excluded, and the remaining coordinate group has two variations of a predetermined allowable value or less. When the number of groups is not within the range, it is an error. When the number of groups is one, the representative value is the coordinate of the other end of the book in the coordinate axis direction. When the number of groups is two, the group with a large value is selected. Exclude as coordinates of slip and have small value An image processing unit that performs a reading process only on a portion between the other end coordinate of the book and the one end coordinate of the book in the image using the representative value of the loop as the coordinate of the other end of the book in the coordinate axis direction, Regarding the coordinate axis direction of the book, the second object is achieved by performing the reading process only on the area where the book exists.

【0014】又、画像の座標軸とほぼ平行に配置され伝
票を挟み込まれた書籍に対し、所望の座標軸方向におけ
る書籍の端部位置を検出するに際して、適宜な間隔で画
像上に、書籍の端部位置の検出を行う座標軸方向と平行
に画像輝度の測定線を設定し、画像輝度の測定線上で画
像の輝度を測定し、画像の輝度が設定値より変化する境
界点の座標を記録し、記録した境界点の座標を所望の許
容値以下に収まる集合に分け、一端の座標集合のうち他
端の座標に近い集合を書籍端部の座標として書籍端部の
位置を検出することにより、前記第1の目的を達成した
ものである。
Further, when detecting the end position of the book in the desired coordinate axis direction with respect to the book in which the slip is sandwiched and arranged substantially parallel to the coordinate axis of the image, the end part of the book is appropriately spaced on the image. Set the image brightness measurement line parallel to the coordinate axis direction for position detection, measure the image brightness on the image brightness measurement line, record the coordinates of the boundary point at which the image brightness changes from the set value, and record it. By dividing the coordinates of the boundary points into a set that falls within a desired allowable value or less, and detecting the position of the book edge by using the set close to the coordinates of the other end of the coordinate set at one end as the coordinates of the book edge, The purpose of 1 was achieved.

【0015】又、前記画像輝度の測定線の間隔を、検出
対象とする書籍のうち、書籍の端部位置の検出を行う座
標軸方向と直角方向の幅を、最も狭い書籍の1/2以下
としたものである。
Further, the interval between the measuring lines of the image brightness is set to be 1/2 or less of the narrowest book in the direction perpendicular to the coordinate axis direction for detecting the end position of the book among the books to be detected. It was done.

【0016】更に、撮像手段の画像の座標軸とほぼ平行
に配置され伝票を挟み込まれた書籍に対し撮像された画
像を読み取るものにおいて、適宜な間隔で画像上に書籍
端部の位置の検出を行う座標軸方向と平行に画像輝度の
測定線を設定し、画像輝度の測定線上で画像の輝度を検
出し、画像の輝度が設定値より変化する境界点の座標を
検出する検出手段と、該検出手段が検出した境界点の座
標を記録する画像処理手段を備え、更に該画像処理手段
は、記録した座標を所望の許容値以下に収まる集合に分
け、一端の座標集合のうち他端の座標に近い集合を書籍
端部の位置座標として書籍の端部位置を検出し、記録手
段が検出した書籍の端部位置により読み取り処理を行う
領域を決定し、画像の読み取り処理を行うことにより、
前記第2の目的を達成したものである。
Furthermore, in the case of reading a picked-up image of a book in which a slip is sandwiched and arranged substantially parallel to the coordinate axes of the image of the image pickup means, the position of the end of the book is detected on the image at appropriate intervals. A detection unit that sets an image brightness measurement line parallel to the coordinate axis direction, detects the image brightness on the image brightness measurement line, and detects the coordinates of a boundary point at which the image brightness changes from a set value, and the detection unit. Image processing means for recording the coordinates of the boundary points detected by the image processing means, and the image processing means further divides the recorded coordinates into a set that falls within a desired allowable value, and is close to the coordinates at the other end of the coordinate set at one end. By detecting the edge position of the book with the set as the position coordinates of the edge of the book, and determining the area to be read by the edge position of the book detected by the recording means, by performing the image reading process,
The second object is achieved.

【0017】[0017]

【作用】本発明においては、書籍の端部位置検出を行う
座標軸と直角方向に関して、対象とする書籍中の最も幅
の狭いものの幅と、該書籍端面(通常は上面)に挟まれ
る、対象とする伝票中の最も幅の広いものの幅の差の半
分以下の所定間隔で、任意位置に設定した該座標軸方向
の画像輝度測定線上の画素値を調べ、前記測定線上で画
素値が背景値から大きく変化する境界点の該座標軸方向
の座標を記録する。記録された該座標軸方向境界点座標
は、例えば画像下端(書籍が測定線上に存在しない場
合)、伝票上端又は書籍上端のいずれかに対応している
が、画像下端は座標値が決まっているため、他の2つか
ら容易に区別される。又、伝票上端と書籍上端は、伝票
上端の方が必ず上になることから、容易に区別できる。
又、測定線の間隔を、書籍の最小幅と伝票の最大幅の差
の半分以下としたため、必ず書籍上端のどこかに測定線
が当たるようになり、必ず書籍の上端位置を求めること
ができる。
In the present invention, with respect to the direction perpendicular to the coordinate axis for detecting the end position of the book, the width of the narrowest object in the book and the object sandwiched between the book end surface (usually the upper surface) Check the pixel value on the image brightness measurement line in the coordinate axis direction set at an arbitrary position at a predetermined interval of half or less of the difference in width of the widest item in the slip, and the pixel value on the measurement line is larger than the background value. The coordinates of the changing boundary point in the coordinate axis direction are recorded. The recorded boundary point coordinates in the coordinate axis direction correspond to, for example, the lower edge of the image (when the book is not on the measurement line), the upper edge of the slip, or the upper edge of the book, but the coordinate value is determined at the lower edge of the image. , Easily distinguished from the other two. Further, the upper edge of the slip and the upper edge of the book can be easily distinguished because the upper edge of the slip is always on the upper side.
In addition, since the interval between the measurement lines is less than half the difference between the minimum width of the book and the maximum width of the slip, the measurement line will always hit somewhere on the top of the book, and the top position of the book can always be found. .

【0018】なお、前記境界点の該座標軸方向の座標
を、視野画像の一方から調べていった測定線上の画素値
が所定の閾値を越えた時点とし、該時点で、当該測定線
についての処理を終了するようした場合には、測定線上
の少ないデータに対して、閾値との比較という簡単な処
理で済み、更に、閾値を越えた時点で処理を中断するた
め、短時間で書籍の端部検出処理が行える。又、書籍部
分の輝度は様々に異なるが、コンベア等の背景は一様の
望みの輝度にできるため、固定閾値との比較により、安
定して端部位置を検出できる。
The coordinates of the boundary point in the direction of the coordinate axis are set to the time when the pixel value on the measurement line examined from one of the visual field images exceeds a predetermined threshold value, and at that time, the process for the measurement line is performed. If you end the procedure, a simple process of comparing the small amount of data on the measurement line with the threshold value will be sufficient.Because the process is interrupted when the threshold value is exceeded, the end of the book Detection processing can be performed. Further, although the brightness of the book portion is variously different, since the background of the conveyor or the like can have a uniform desired brightness, the edge position can be stably detected by comparison with the fixed threshold value.

【0019】又、前記グループ内の境界点座標の平均値
を、そのグループの代表値とすることにより、信頼性の
高い端部位置を得ることができる。
Further, by using the average value of the boundary point coordinates in the group as the representative value of the group, it is possible to obtain a highly reliable end position.

【0020】又、画像の座標軸とほぼ平行に配置され伝
票を挟み込まれた書籍に対し、所望の座標軸方向におけ
る書籍の端部位置を検出するに際して、適宜な間隔で画
像上に、書籍の端部位置の検出を行う座標軸方向と平行
に画像輝度の測定線を設定し、画像輝度の測定線上で画
像の輝度を測定し、画像の輝度が設定値より変化する境
界点の座標を記録し、記録した境界点の座標を所望の許
容値以下に収まる集合に分け、一端の座標集合のうち他
端の座標に近い集合を書籍端部の座標として書籍端部の
位置を検出することもできる。
Further, when detecting the end position of the book in the desired coordinate axis direction with respect to the book in which the slip is sandwiched and arranged substantially in parallel with the coordinate axis of the image, the end of the book is displayed on the image at appropriate intervals. Set the image brightness measurement line parallel to the coordinate axis direction for position detection, measure the image brightness on the image brightness measurement line, record the coordinates of the boundary point at which the image brightness changes from the set value, and record it. It is also possible to divide the coordinates of the boundary points into a set that falls within a desired allowable value, and to detect the position of the book edge by using the set close to the coordinates of the other end of the coordinate set at one end as the coordinates of the book edge.

【0021】更に、前記画像輝度の測定線の間隔を、検
出対象とする書籍のうち、書籍の端部位置の検出を行う
座標軸方向と直角方向の幅を、最も狭い書籍の1/2以
下とすることができる。
Further, the distance between the measuring lines of the image brightness is set to a half or less of the narrowest book in the direction perpendicular to the coordinate axis direction for detecting the end position of the book among the books to be detected. can do.

【0022】又、撮像手段の画像の座標軸とほぼ平行に
配置され伝票を挟み込まれた書籍に対し撮像された画像
を読み取るものにおいて、適宜な間隔で画像上に書籍端
部の位置の検出を行う座標軸方向と平行に画像輝度の測
定線を設定し、画像輝度の測定線上で画像の輝度を検出
し、画像の輝度が設定値より変化する境界点の座標を検
出する検出手段と、該検出手段が検出した境界点の座標
を記録する画像処理手段を備え、更に該画像処理手段
は、記録した座標を所望の許容値以下に収まる集合に分
け、一端の座標集合のうち他端の座標に近い集合を書籍
端部の位置座標として書籍の端部位置を検出し、記録手
段が検出した書籍の端部位置により読み取り処理を行う
領域を決定し、画像の読み取り処理を行うこともでき
る。
Further, in the case of reading a picked-up image of a book which is arranged substantially parallel to the coordinate axes of the image of the image pickup means and has a slip inserted therein, the position of the end of the book is detected on the image at an appropriate interval. A detection unit that sets an image brightness measurement line parallel to the coordinate axis direction, detects the image brightness on the image brightness measurement line, and detects the coordinates of a boundary point at which the image brightness changes from a set value, and the detection unit. Image processing means for recording the coordinates of the boundary points detected by the image processing means, and the image processing means further divides the recorded coordinates into a set that falls within a desired allowable value, and is close to the coordinates at the other end of the coordinate set at one end. It is also possible to detect the edge position of the book by using the set as the position coordinates of the edge of the book, determine the region to be read by the edge position of the book detected by the recording unit, and perform the image reading process.

【0023】[0023]

【実施例】以下図面を参照して、本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0024】図1は、本発明に係る書籍画像の読み取り
装置の実施例である書籍コード読み取りシステムの全体
構成を示す斜視図である。図1において、右から左へベ
ルトが移動しているベルトコンベア20は、コントロー
ラ22の制御を受け、プッシャ24により、書籍10の
下端を揃え、ストッパ26により、書籍10の進行方向
位置を固定して、カメラ30の視野内に書籍10の下端
を揃えて位置決めする。
FIG. 1 is a perspective view showing the overall configuration of a book code reading system which is an embodiment of a book image reading apparatus according to the present invention. In FIG. 1, the belt conveyor 20 in which the belt moves from right to left is controlled by the controller 22, the lower end of the book 10 is aligned by the pusher 24, and the traveling direction position of the book 10 is fixed by the stopper 26. Then, the lower end of the book 10 is aligned and positioned within the field of view of the camera 30.

【0025】該カメラ30の視野は、対象書籍の中で最
大のものを収容できる大きさとし、ベルトコンベア20
によって揃えられる書籍の下端の方向とカメラ30によ
る視野画像の一辺の方向が一致するようにされている。
プッシャ24とストッパ26は、ベルトコンベア20の
構成部品である。
The field of view of the camera 30 is set so as to accommodate the largest of the target books, and the belt conveyor 20
The direction of the lower end of the books aligned by is aligned with the direction of one side of the view image of the camera 30.
The pusher 24 and the stopper 26 are components of the belt conveyor 20.

【0026】コントローラ22からの位置決め完了信号
を受けて、画像処理装置32はカメラ30から画像を入
力し、書籍コード読み取り処理を行い、読み取った書籍
コードを通信回線34から外部に出力する。
In response to the positioning completion signal from the controller 22, the image processing device 32 inputs an image from the camera 30, performs a book code reading process, and outputs the read book code to the outside through the communication line 34.

【0027】図2は、本発明における画面内の書籍1
0、書籍コード12及び書籍10に挟み込まれる伝票
(スリップ)14の位置関係を示す。前記の伝票(スリ
ップ)14とは、書籍の売上げ管理や注文補充に用いら
れる、書籍に挟まれる短冊状の伝票で、一般にスリップ
と称されており、以下、スリップ14と記載する。
FIG. 2 shows a book 1 in the screen according to the present invention.
0, the book code 12, and the slip (slip) 14 sandwiched between the books 10 are shown in a positional relationship. The slip (slip) 14 is a strip-shaped slip that is sandwiched between books and is used for sales management and order replenishment of books, and is generally called a slip, and is hereinafter referred to as slip 14.

【0028】書籍10及びスリップ14は、画面に対し
てほぼ平行にスリップ14が挟み込まれる端部を上端と
し、反対側を下端とし、書籍10の縦方向(綴じ込み方
向)をY軸方向、幅方向をX軸方向とし、下端側をY軸
の0、上端側をY軸の正方向側に置いて位置決めされて
いる。以下、Y軸の正方向を上、Y軸の負方向を下と称
する。
The book 10 and the slip 14 have an end where the slip 14 is sandwiched substantially parallel to the screen as an upper end and an opposite side as a lower end, and the longitudinal direction (binding direction) of the book 10 is a Y-axis direction and a width direction. Is the X-axis direction, the lower end side is on the Y-axis 0, and the upper end side is on the positive direction side of the Y-axis. Hereinafter, the positive direction of the Y-axis will be referred to as up and the negative direction of the Y-axis will be referred to as down.

【0029】書籍面上には書籍コード12が印刷されて
いる。書籍コード12の書籍10上での位置は任意であ
るが、画面内の背景(ベルトコンベア面)40に存在し
ないことは自明であり、この部分に対しては、読み取り
処理を行わないことによって、読み取り処理時間を短縮
することができる。
A book code 12 is printed on the book surface. Although the position of the book code 12 on the book 10 is arbitrary, it is obvious that the book code 12 does not exist on the background (belt conveyor surface) 40 in the screen, and by not performing the reading process on this portion, The reading processing time can be shortened.

【0030】画像データは、横方向のライン上と隣合う
ライン上でアドレスが連続するため、処理時間を短縮す
るためには、処理範囲を横方向よりも縦方向に制限する
方が有効である。そこで、本実施例では、縦方向のみの
処理範囲限定を行っている。
Since the address of the image data is continuous on the horizontal line and the adjacent line, it is effective to limit the processing range in the vertical direction rather than in the horizontal direction in order to reduce the processing time. . Therefore, in this embodiment, the processing range is limited only in the vertical direction.

【0031】次に、図2を参照して、縦方向の書籍の存
在範囲を求める方法を説明する。
Next, with reference to FIG. 2, a method for obtaining the existence range of a book in the vertical direction will be described.

【0032】まず、書籍10の存在範囲を調べることを
目的として、縦1ライン分の画像輝度を順次調べること
とし、その位置を決定する。以下、画像輝度の測定を順
次調べる縦の測定線をサンプル線SLと略記する。サン
プル線の位置自体は任意であるが、画像全体にわたり一
定間隔Wでサンプル線SLを設定する。このサンプル線
SLの設定は、入力画像の処理過程で毎回行うものでは
なく、事前に、全ての入力画像に対して共通に行ってお
く。
First, for the purpose of checking the existence range of the book 10, the image brightness for one vertical line is sequentially checked, and its position is determined. Hereinafter, a vertical measurement line that sequentially checks the measurement of the image brightness is abbreviated as a sample line SL. The position of the sample line itself is arbitrary, but the sample line SL is set at a constant interval W over the entire image. The setting of the sample line SL is not performed every time in the process of processing the input image, but is performed in advance for all the input images in common.

【0033】各サンプル線について行う処理を、図3を
用いて説明する。書籍10は画面下端に接して存在する
ことを前提として、画面上端からサンプル線上の画素を
一定間隔Hでサンプルし、各画素の輝度(画素値)を調
べる。サンプル線上の輝度変化の様子を示したのが、図
3の右側である。画面上で背景40となるベルトコンベ
ア面は、ほぼ一様に低い輝度となる色を持つものとす
る。対象とする書籍10は、これに比べて十分明るい色
を持つものとすると、例えば画面上端から順次サンプル
線上の画素値を調べれば、サンプル線が書籍上端とぶつ
かるところで、輝度は一定閾値を越える。そこで、これ
を境界点として記録して処理を中断することができる。
なお、サンプル線の画素値を調べる方法はこれに限定さ
れず、逆に画面下端からサンプル線上の画素値を調べて
いくこともできる。
The processing performed for each sample line will be described with reference to FIG. On the assumption that the book 10 exists in contact with the lower end of the screen, the pixels on the sample line are sampled at a constant interval H from the upper end of the screen, and the brightness (pixel value) of each pixel is checked. The right side of FIG. 3 shows how the luminance changes on the sample line. It is assumed that the surface of the belt conveyor, which is the background 40 on the screen, has a color having a substantially uniform low brightness. Assuming that the target book 10 has a sufficiently bright color as compared with this, for example, if the pixel values on the sample line are sequentially examined from the upper end of the screen, the brightness exceeds a certain threshold value at the point where the sample line collides with the upper end of the book. Therefore, this can be recorded as a boundary point and the processing can be interrupted.
The method for checking the pixel value of the sample line is not limited to this, and conversely, the pixel value on the sample line can be checked from the lower end of the screen.

【0034】図2に示すように、サンプル線が境界位置
を検出せずに画面下端まで到達してしまうこともある
が、スリップ14にぶつかって境界位置を検出してしま
うこともある。ここで、書籍上端を確実に検出するため
には、書籍上端を検出するサンプル線が必ず存在するよ
うにする必要がある。そこで、本発明では、間隔Wを対
象スリップ14の最大幅W2と、対象書籍10の最小幅
W1の差の半分以下とする。こうすると、図4に示すよ
うに、幅広のスリップ14により書籍上端の一部が隠さ
れた場合でも、スリップの左右いずれかに、必ず間隔W
より広い部分(図4では左側のW3)が現われるため、
ここに少なくとも1本のサンプル線が必ず設定される。
As shown in FIG. 2, the sample line may reach the lower end of the screen without detecting the boundary position, but it may hit the slip 14 and detect the boundary position. Here, in order to reliably detect the upper end of the book, it is necessary to ensure that the sample line for detecting the upper end of the book exists. Therefore, in the present invention, the interval W is set to half or less of the difference between the maximum width W2 of the target slip 14 and the minimum width W1 of the target book 10. In this way, as shown in FIG. 4, even when a part of the upper end of the book is hidden by the wide slip 14, the gap W is always provided on either side of the slip.
Since a wider part (W3 on the left side in Fig. 4) appears,
At least one sample line is always set here.

【0035】次に、サンプル線上の境界検出処理により
得られた境界点群から、書籍上端を求める方法を、図5
を用いて詳細に説明する。
Next, a method for obtaining the upper end of the book from the boundary point group obtained by the boundary detection processing on the sample line will be described with reference to FIG.
This will be described in detail with reference to FIG.

【0036】まず、境界点の座標が書籍下端、本実施例
では画面下端とほぼ一致する場合は、これらの境界点
を、書籍上端を求める処理の対象から除外する。残る境
界点は、スリップ上端又は書籍上端であり、これらは、
各々ほぼ同じ縦方向座標値を持っているはずである。
又、スリップ上端は検出されているかどうか分からない
が、書籍上端は上述のサンプル線間隔設定により必ず検
出されているはずである。そこで、まず、画面下端を除
外した後の境界点群の分布状況を調べ、許容誤差Eb及
びEs以内の2つ以内のグループに分かれるか、異なる
分布となっているかを調べる。ここで、Ebは、書籍上
端に相当する座標値の小さなグループの許容誤差、Es
は、スリップ上端に相当する座標値の大きなグループの
許容誤差である。書籍上端は、ほぼ平坦であるが、スリ
ップ上端には切り込みがあるため、許容誤差を変える必
要があり、通常は、Esの方がEbより大とされる。
First, when the coordinates of the boundary points are substantially the same as the bottom edge of the book, that is, the bottom edge of the screen in this embodiment, these boundary points are excluded from the target of the process for obtaining the top edge of the book. The remaining boundary points are the top of the slip or the top of the book, which are
Each should have approximately the same vertical coordinate value.
Further, although it is not known whether the upper end of the slip is detected, the upper end of the book must be detected by the above sample line interval setting. Therefore, first, the distribution state of the boundary point group after excluding the lower end of the screen is examined to see if it is divided into two groups within the allowable errors Eb and Es, or if they have different distributions. Here, Eb is the allowable error of a group with small coordinate values corresponding to the top of the book, Es
Is the tolerance of a group of large coordinate values corresponding to the top of the slip. The upper end of the book is almost flat, but since the upper end of the slip has a notch, it is necessary to change the tolerance. Usually, Es is larger than Eb.

【0037】前記2つ以内のグループとは異なる分布と
なっているときは、照明条件が悪い、閾値の設定が悪
い、書籍の色が背景と近い等の理由により、サンプル線
が書籍上を通過しているのに、上端を境界位置として正
しく検出していないか、書籍の方向が画像の方向と異な
る、形状が長方形でない、スリップが曲がって挿入され
ている等の、検出の前提と異なる状況が考えられ、本発
明の方法では上端検出ができないので、エラーとする。
When the distribution is different from that of the two or less groups, the sample line passes over the book because of bad lighting conditions, bad threshold settings, or the book color being close to the background. However, it is not correctly detected with the upper edge as the boundary position, the direction of the book is different from the direction of the image, the shape is not rectangular, the slip is bent, etc. Since the upper end cannot be detected by the method of the present invention, an error occurs.

【0038】一方、誤差Eb以内で1グループにまとま
った時は、スリップは検出されず、全ての境界点が書籍
上端座標であったとして、その縦方向座標の最大値を書
籍上端座標とする。
On the other hand, when one group is grouped within the error Eb, no slip is detected, and it is assumed that all boundary points are the book top coordinates, and the maximum value of the vertical coordinates thereof is the book top coordinates.

【0039】又、2つのグループに分かれた時は、スリ
ップは必ず書籍上端より上となるため、縦方向座標値の
小さい方のグループを取り、その平均値を書籍上端座標
とする。仮に、スリップが深く挿入されていて、且つス
リップの低い位置にサンプル線がぶつかったために、ス
リップ位置を書籍上端と誤認していたとしても、実際の
書籍上端との差が少ないために無駄が少なく、又、書籍
は処理範囲内に間違いなく包含されるため、問題はな
い。
Further, when the book is divided into two groups, the slip is always above the upper end of the book. Therefore, the group having the smaller vertical coordinate value is taken and the average value thereof is taken as the upper end coordinate of the book. Even if the slip position is mistakenly recognized as the top of the book because the slip is inserted deeply and the sample line hits the position where the slip is low, there is little difference from the top of the actual book, so there is little waste. Also, since the book is definitely included in the processing range, there is no problem.

【0040】以上の方法により書籍上端を求めた後、画
像処理装置32は、入力画像の書籍上端と書籍下端(本
実施例では画面下端)に挟まれた部分に対して書籍コー
ド読み取り処理を行い、読み取り結果を電気通信回線3
4により外部の表示装置やマスタコンピュータ等に送
る。
After obtaining the book upper end by the above method, the image processing device 32 performs the book code reading process on the portion between the book upper end and the book lower end (screen lower end in this embodiment) of the input image. , Read the result by telecommunication line 3
4 sends to an external display device or master computer.

【0041】以上の方法に基づき、書籍コード検出及び
読み取りを行う処理手順を図6に示す。
FIG. 6 shows a processing procedure for detecting and reading a book code based on the above method.

【0042】まず、ステップS1では、コントローラ2
2の制御信号により、ベルトコンベア20が書籍の搬
送、位置決めを行う。ステップS2では、カメラ30が
書籍画像を入力し、画像処理装置32に送る。
First, in step S1, the controller 2
The belt conveyer 20 carries and positions the book in accordance with the control signal 2. In step S2, the camera 30 inputs the book image and sends it to the image processing device 32.

【0043】以後は画像処理装置32内部の処理であ
る。ステップS3では、予め設定されたサンプル線上の
境界点検出処理により縦方向境界点座標群を求める。ス
テップS4では、境界点座標群から画像下端座標を取り
除く。ステップS5では、残った境界点座標群を2つに
グルーピングする。
The subsequent processing is internal processing of the image processing device 32. In step S3, a vertical boundary point coordinate group is obtained by a boundary point detection process on a preset sample line. In step S4, the image bottom edge coordinates are removed from the boundary point coordinate group. In step S5, the remaining boundary point coordinate group is grouped into two.

【0044】次いで、ステップS6でグルーピングの成
否を判定し、グルーピングが失敗した場合は、処理を中
断して、ステップS7へ行き、検出不能信号を、通信回
線34を経由して外部の表示装置、マスタコンピュータ
等に送り、ステップS1に戻る。
Next, in step S6, it is determined whether or not the grouping is successful, and if the grouping fails, the process is interrupted and the process goes to step S7 to send an undetectable signal to the external display device via the communication line 34. It is sent to the master computer or the like, and the process returns to step S1.

【0045】一方、2つ以内のグルーピングに成功した
場合は、ステップS8へ進み、縦方向座標値が小さいグ
ループの平均値を書籍上端座標として求める。ステップ
S9では、書籍上端と書籍下端(本実施例では画面下
端)に挟まれた部分に対して、書籍コード読み取り処理
を行い、ステップS10で、読み取り結果を通信回線3
4より外部の表示装置、マスタコンピュータ等に送って
ステップS1に戻る。
On the other hand, if the grouping of two or less succeeds, the process proceeds to step S8, and the average value of the group having a small vertical coordinate value is obtained as the book upper end coordinate. In step S9, a book code reading process is performed on a portion sandwiched between the upper end of the book and the lower end of the book (the lower end of the screen in this embodiment), and in step S10, the reading result is the communication line 3
From step 4, the image is sent to an external display device, master computer, etc., and the process returns to step S1.

【0046】なお、本実施例においては、書籍下端を揃
え、書籍上端位置を検出するようにしていたので、書籍
上部に挟まれることが多いスリップの影響を確実に排除
することができる。なお、スリップが挿入されていない
場合や、その影響を無視できる場合には、逆に書籍上端
を揃えて、書籍下端位置を検出することも可能である。
In this embodiment, since the lower end of the book is aligned and the upper end position of the book is detected, it is possible to reliably eliminate the influence of slip, which is often caught in the upper part of the book. When the slip is not inserted or when the influence of the slip is negligible, the book upper end can be aligned and the book lower end position can be detected.

【0047】又、前記実施例においては、書籍がベルト
コンベア上に配置されていたが、書籍を配置する対象は
これに限定されず、固定台上に配置してもかまわない。
Further, in the above-mentioned embodiment, the book is arranged on the belt conveyor, but the object on which the book is arranged is not limited to this, and it may be arranged on the fixed base.

【0048】又、前記実施例においては、各グループ内
の平均値を代表値としていたが、最大値を代表値とし
て、簡単な処理で、書籍の読み取り範囲が確実に確保さ
れるようにしても良い。なお、書籍コードは、通常、書
籍の端部から多少の余裕を持って印刷されているので、
前記実施例のように、各グループ内の平均値を代表値と
しても、実用上の問題はない。
Further, in the above-mentioned embodiment, the average value in each group is used as the representative value, but the maximum value is used as the representative value and the reading range of the book can be surely secured by a simple process. good. In addition, since the book code is usually printed with some margin from the end of the book,
Even if the average value in each group is used as the representative value as in the above embodiment, there is no practical problem.

【0049】又、以上の実施例では、サンプル線SLの
間隔は、対象スリップ14の最大幅W2と、対象とする
書籍10の最小幅W1の差の1/2以下としたが、サン
プル線SLの間隔を、対象とする書籍10の最小幅W1
の1/2以下としてもよい。このとき、スリップ14に
より書籍10の上端が隠れ、書籍10が小さく、サンプ
ル線SLが全てスリップ14を捕えていたとしても、書
籍10は処理範囲に間違いなく包含され、且つ、このと
きの書籍10は小さいので画像処理を行う範囲は狭く、
更に、幅の広い大部分の書籍10については、1本以上
のサンプル線SLが書籍10を捕えるので実用上問題な
い。特に、対象とする書籍10の最小幅W1が、対象ス
リップ14の最大幅W2の2倍を越える場合は、確実に
1本以上のサンプル線SLが書籍10を捕えることがで
きる。
Further, in the above embodiment, the interval between the sample lines SL is set to 1/2 or less of the difference between the maximum width W2 of the target slip 14 and the minimum width W1 of the target book 10. Is the minimum width W1 of the target book 10
It may be 1/2 or less. At this time, even if the upper end of the book 10 is hidden by the slip 14 and the book 10 is small and all the sample lines SL catch the slip 14, the book 10 is definitely included in the processing range, and the book 10 at this time is also included. Is small, the range of image processing is narrow,
Further, for most of the wide books 10, one or more sample lines SL catch the books 10, so there is no practical problem. In particular, when the minimum width W1 of the target book 10 exceeds twice the maximum width W2 of the target slip 14, one or more sample lines SL can surely catch the book 10.

【0050】又、サンプル線SLの間隔を対象とする書
籍10の最小幅以下の間隔としてもよい。このときも、
書籍10の大部分はスリップ14の幅よりも充分に広い
幅を持つので、サンプル線SLは直接書籍10を捕える
確率が高く、又書籍10のサイズが大きく、無駄な範囲
の画像認識が問題とされる書籍10ほど、サンプル線S
Lがスリップ14を捕える確率が低くなるので実用上問
題ない。
Further, the interval between the sample lines SL may be set to the interval equal to or smaller than the minimum width of the book 10. Again,
Since most of the book 10 has a width sufficiently wider than the width of the slip 14, the sample line SL has a high probability of directly catching the book 10, and the size of the book 10 is large, which causes a problem of image recognition in a useless range. About 10 books, sample line S
Since the probability that L will catch the slip 14 is low, there is no practical problem.

【0051】以上の実施例では、書籍10の縦位置を求
める場合について説明してきたが、求める方向はこれに
限定されず、書籍10の横位置を求めてもよい。
In the above embodiment, the case where the vertical position of the book 10 is obtained has been described, but the direction of obtaining is not limited to this, and the horizontal position of the book 10 may be obtained.

【0052】又、書籍10は一端を固定して他端の位置
を求めていたが、一端を固定しないで両端の位置を求め
てもよい。このときは、例えば、書籍10の縦方向につ
いて、上端側を座標値の大きい側、下端側を座標値の小
さい側に配置し、上端側にスリップを挟み込んだ書籍1
0の縦方向について上端位置と下端位置を求める場合
は、1本のサンプル線SLに対し2箇所の境界位置を求
める。次に境界点群の分布状況を調べ、座標値の小さな
グループと座標値の大きなグループとに分け、座標値の
小さなグループを書籍10の下端位置とし、座標値の大
きなグループを、更に前述したように書籍10の上端位
置を示すグループとスリップ14の上端を示すグループ
とに分ける。このようにすることにより、書籍10の両
端の位置を検出することもできる。
Further, although the book 10 has one end fixed and the positions of the other ends determined, the positions of both ends may be determined without fixing the one end. At this time, for example, with respect to the vertical direction of the book 10, the book 1 in which the upper end side is arranged on the side having a larger coordinate value and the lower end side is arranged on the side having a smaller coordinate value, and a slip is sandwiched at the upper end side
When obtaining the upper end position and the lower end position in the vertical direction of 0, two boundary positions are obtained for one sample line SL. Next, the distribution state of the boundary points is investigated, and the group of small coordinate values and the group of large coordinate values are divided into groups with the small coordinate value as the lower end position of the book 10, and the group with large coordinate values is further described above. Are divided into a group showing the upper end position of the book 10 and a group showing the upper end of the slip 14. By doing so, the positions of both ends of the book 10 can also be detected.

【0053】[0053]

【発明の効果】以上説明したとおり、本発明によれば、
書籍画像の端部位置を入力画像から的確に検出すること
ができる。
As described above, according to the present invention,
The edge position of the book image can be accurately detected from the input image.

【0054】更に、書籍画像の端部位置を検出できるの
で最小限の処理範囲を求め、処理時間を効率良く低減す
ることが可能な書籍画像の読み取り装置を提供できる。
Further, since the edge position of the book image can be detected, it is possible to provide the book image reading apparatus which can obtain the minimum processing range and efficiently reduce the processing time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明が採用された書籍コード読み取り装置の
実施例の全体構成を示す斜視図
FIG. 1 is a perspective view showing an overall configuration of an embodiment of a book code reading device to which the present invention is applied.

【図2】前記実施例における画像内の書籍、書籍コード
及びスリップの位置関係を示す線図
FIG. 2 is a diagram showing a positional relationship among books, book codes and slips in an image in the embodiment.

【図3】前記実施例における、各サンプル線上の境界点
座標の求め方を示す線図
FIG. 3 is a diagram showing a method of obtaining boundary point coordinates on each sample line in the embodiment.

【図4】前記実施例における画像内の書籍幅及びスリッ
ト幅と、サンプル線間隔の関係の例を示す線図
FIG. 4 is a diagram showing an example of a relationship between a book width and a slit width in an image and a sample line spacing in the embodiment.

【図5】前記実施例において、境界点座標群から書籍上
端位置を求める方法を説明するための線図
FIG. 5 is a diagram for explaining a method of obtaining a book upper end position from a boundary point coordinate group in the embodiment.

【図6】前記実施例の処理手順を示す流れ図FIG. 6 is a flowchart showing the processing procedure of the embodiment.

【符号の説明】[Explanation of symbols]

10…書籍 12…書籍コード 14…スリップ 20…ベルトコンベア 22…コントローラ 24…プッシャ 26…ストッパ 30…カメラ 32…画像処理装置 SL…サンプル線 10 ... Book 12 ... Book Code 14 ... Slip 20 ... Belt Conveyor 22 ... Controller 24 ... Pusher 26 ... Stopper 30 ... Camera 32 ... Image Processing Device SL ... Sample Line

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐々木 正充 東京都荒川区南千住七丁目23番5号 日立 テクノエンジニアリング株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masamitsu Sasaki 7-23, Minamisenju, Arakawa-ku, Tokyo Hitachi Techno Engineering Co., Ltd.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】視野画像の座標軸とほぼ平行に、且つ、書
籍の端部位置の検出を行う所望の座標軸方向の一端を揃
えて背景上に該座標軸方向に配置された書籍の他端の該
座標軸方向位置を検出するに際して、 書籍の該座標軸と直角方向に関して、対象とする書籍中
の最も幅の狭いものの幅と、該書籍端面に挟まれる、対
象とする伝票中の最も幅の広いものの幅の差の半分以下
の所定間隔で、任意位置に設定した該座標軸方向の画像
輝度測定線上の画素値を検出し、 前記測定線上で画素値が背景値から大きく変化する境界
点の該座標軸方向の座標を記録し、 測定線の数だけ得られた該座標軸方向境界点座標群の中
で、書籍の前記一端の該座標軸方向の座標との差が所定
値以下のものを除外し、 残った座標群が、所定の許容値以下のばらつきの2個以
内のグループにならない時は、エラーとし、 グループが1個となる時は、その代表値を書籍他端の該
座標軸方向の座標とし、 グループが2個となる時は、大きな値を持つグループを
伝票の座標として除外し、小さな値を持つグループの代
表値を書籍他端の該座標軸方向の座標とすることを特徴
とする書籍画像の端部位置検出方法。
1. A book arranged in parallel with the coordinate axis of the visual field image and having one end in the desired coordinate axis direction for detecting the end position of the book aligned with the other end of the book arranged in the coordinate axis direction on the background. When detecting the position along the coordinate axis, the width of the narrowest item in the target book and the width of the widest item in the target slip sandwiched between the book end faces in the direction perpendicular to the coordinate axis of the book. At a predetermined interval less than half of the difference of, the pixel value on the image brightness measurement line in the coordinate axis direction set at an arbitrary position is detected, and in the coordinate axis direction of the boundary point at which the pixel value greatly changes from the background value on the measurement line. In the coordinate axis direction boundary point coordinate group in which the coordinates are recorded and the number of measurement lines is obtained, exclude the ones whose difference from the coordinate axis direction coordinate of the one end of the book is a predetermined value or less, and the remaining coordinates The group has a variation of 2 or less within a predetermined allowable value. When the number of groups is less than 1, an error occurs. When the number of groups is 1, the representative value is the coordinate of the other end of the book in the coordinate axis direction. When the number of groups is 2, the group with a large value is used. Is excluded as the coordinate of the slip, and the representative value of the group having a small value is used as the coordinate of the other end of the book in the coordinate axis direction.
【請求項2】請求項1において、前記境界点の該座標軸
方向の座標を、視野画像の一方から調べていった測定線
上の画素値が所定の閾値を越えた時点とし、該時点で、
当該測定線についての処理を終了することを特徴とする
書籍画像の端部位置検出方法。
2. The coordinate according to claim 1, wherein the coordinate of the boundary point in the coordinate axis direction is a time point at which a pixel value on a measurement line checked from one of the visual field images exceeds a predetermined threshold value, and at that time point,
A method for detecting an edge position of a book image, characterized by terminating the process for the measurement line.
【請求項3】請求項1又は2において、前記グループ内
の境界点座標の平均値を、そのグループの代表値とする
ことを特徴とする書籍画像の端部位置検出方法。
3. The method for detecting an edge position of a book image according to claim 1, wherein an average value of boundary point coordinates in the group is used as a representative value of the group.
【請求項4】撮像手段と、 該撮像手段の視野内の背景上の所定位置に、視野画像の
座標軸とほぼ平行に、且つ、一端を揃えて書籍を端部位
置の検出を行う座標軸方向に配置するための書籍位置決
め手段と、 書籍の該座標軸と直角方向に関して、対象とする書籍中
の最も幅の狭いものの幅と、該書籍端面に挟まれる、対
象とする伝票中の最も幅の広いものの幅の差の半分以下
の所定間隔で、任意位置に設定した該座標軸方向の画像
輝度測定線上の画素値を検出する手段と、 前記測定線上で画素値が背景値から大きく変化する境界
点の該座標軸方向の座標を記録する手段と、 測定線の数だけ得られた該座標軸方向境界点座標群の中
で、書籍の前記一端の該座標軸方向の座標との差が所定
値以下のものを除外し、残った座標群が、所定の許容値
以下のばらつきの2個以内のグループにならない時は、
エラーとし、グループが1個となる時は、その代表値を
書籍他端の該座標軸方向の座標とし、グループが2個と
なる時は、大きな値を持つグループを伝票の座標として
除外し、小さな値を持つグループの代表値を書籍他端の
該座標軸方向の座標として、画像の中で該書籍他端座標
と書籍一端座標に挟まれた部分に対してのみ読み取り処
理を行う画像処理手段とを備え、 少なくとも書籍の該座標軸方向に関しては、書籍の存在
する領域についてのみ読み取り処理を行うことを特徴と
する書籍画像の読み取り装置。
4. An image pickup means, and a predetermined position on the background in the visual field of the image pickup means, substantially parallel to the coordinate axes of the visual field image, and in the coordinate axis direction for aligning one end to detect the end position of the book. With respect to the book positioning means for arranging, the width of the narrowest one in the target book in the direction perpendicular to the coordinate axis of the book, and the widest one in the target slip sandwiched between the book end faces. A means for detecting a pixel value on the image brightness measuring line in the coordinate axis direction set at an arbitrary position at a predetermined interval of half or less of a difference in width, and a boundary point at which the pixel value greatly changes from the background value on the measuring line. Except for a means for recording coordinates in the coordinate axis direction and a coordinate group in the coordinate axis direction boundary points obtained by the number of measurement lines, in which the difference between the coordinate in the coordinate axis direction at the one end of the book is a predetermined value or less. However, the remaining coordinate group is below the specified tolerance. If you do not have a group within 2 of the variation below,
If an error occurs and the number of groups is one, the representative value is the coordinate of the other end of the book in the direction of the coordinate axis. If the number of groups is two, the group having a large value is excluded as the coordinate of the slip, and the small value is used. Using the representative value of the group having the values as coordinates in the coordinate axis direction of the other end of the book, an image processing unit that performs a reading process only on a portion between the other end coordinate of the book and the one end coordinate of the book in the image. A reading device for a book image, which is characterized in that, at least with respect to the coordinate axis direction of the book, the reading process is performed only on an area where the book exists.
【請求項5】画像の座標軸とほぼ平行に配置され伝票を
挟み込まれた書籍に対し、所望の座標軸方向における書
籍の端部位置を検出するに際して、 適宜な間隔で画像上に、書籍の端部位置の検出を行う座
標軸方向と平行に画像輝度の測定線を設定し、画像輝度
の測定線上で画像の輝度を測定し、画像の輝度が設定値
より変化する境界点の座標を記録し、 記録した境界点の座標を所望の許容値以下に収まる集合
に分け、一端の座標集合のうち他端の座標に近い集合を
書籍端部の座標として書籍端部の位置を検出することを
特徴とする書籍画像の端部位置検出方法。
5. When detecting the end position of a book in a desired coordinate axis direction with respect to a book in which a slip is sandwiched and arranged substantially parallel to the coordinate axis of the image, the end of the book is displayed on the image at appropriate intervals. Set the image brightness measurement line parallel to the coordinate axis direction for position detection, measure the image brightness on the image brightness measurement line, and record the coordinates of the boundary point at which the image brightness changes from the set value, and record it. It is characterized in that the coordinates of the boundary points are divided into a set that falls within a desired allowable value, and the position of the book edge is detected by using the set close to the coordinates of the other end of the coordinate set at one end as the coordinates of the book edge. A method for detecting the edge position of a book image.
【請求項6】請求項5において、前記画像輝度の測定線
の間隔を、検出対象とする書籍のうち、書籍の端部位置
の検出を行う座標軸方向と直角方向の幅を、最も狭い書
籍の1/2以下としたことを特徴とする書籍画像の端部
位置検出方法。
6. The book according to claim 5, wherein the distance between the measurement lines of the image brightness is the narrowest of the books to be detected, and the width in the direction perpendicular to the coordinate axis direction for detecting the end position of the book is the narrowest. A method for detecting an edge position of a book image, which is set to ½ or less.
【請求項7】撮像手段の画像の座標軸とほぼ平行に配置
され伝票を挟み込まれた書籍に対し撮像された画像を読
み取るものにおいて、 適宜な間隔で画像上に書籍端部の位置の検出を行う座標
軸方向と平行に画像輝度の測定線を設定し、画像輝度の
測定線上で画像の輝度を検出し、画像の輝度が設定値よ
り変化する境界点の座標を検出する検出手段と、 該検出手段が検出した境界点の座標を記録する画像処理
手段を備え、 更に該画像処理手段は、記録した座標を所望の許容値以
下に収まる集合に分け、一端の座標集合のうち他端の座
標に近い集合を書籍端部の位置座標として書籍の端部位
置を検出し、記録手段が検出した書籍の端部位置により
読み取り処理を行う領域を決定し、画像の読み取り処理
を行うことを特徴とする書籍画像の読み取り装置。
7. A device for reading a picked-up image of a book in which a slip is sandwiched and arranged substantially parallel to the coordinate axes of the image of the image pickup means, the position of the end of the book is detected on the image at appropriate intervals. An image brightness measuring line is set parallel to the coordinate axis direction, the image brightness is detected on the image brightness measuring line, and the detecting unit detects the coordinates of a boundary point at which the image brightness changes from a set value. Image processing means for recording the coordinates of the boundary points detected by the image processing means, and the image processing means further divides the recorded coordinates into a set that falls within a desired allowable value and is close to the coordinates at the other end of the coordinate set at one end. A book characterized by detecting the edge position of the book by using the set as the position coordinates of the edge of the book, determining the area to be read by the edge position of the book detected by the recording means, and reading the image. Image reading Apparatus.
JP7157356A 1995-06-23 1995-06-23 Method for detecting end position of book image and device for reading thereof Withdrawn JPH096965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7157356A JPH096965A (en) 1995-06-23 1995-06-23 Method for detecting end position of book image and device for reading thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7157356A JPH096965A (en) 1995-06-23 1995-06-23 Method for detecting end position of book image and device for reading thereof

Publications (1)

Publication Number Publication Date
JPH096965A true JPH096965A (en) 1997-01-10

Family

ID=15647887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7157356A Withdrawn JPH096965A (en) 1995-06-23 1995-06-23 Method for detecting end position of book image and device for reading thereof

Country Status (1)

Country Link
JP (1) JPH096965A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008229561A (en) * 2007-03-23 2008-10-02 Daifuku Co Ltd Book bite detection device
JP2012064105A (en) * 2010-09-17 2012-03-29 Nec Biglobe Ltd System, method and program for providing summary
JP2014150354A (en) * 2013-01-31 2014-08-21 Brother Ind Ltd Image reading device and manuscript end determination program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008229561A (en) * 2007-03-23 2008-10-02 Daifuku Co Ltd Book bite detection device
JP2012064105A (en) * 2010-09-17 2012-03-29 Nec Biglobe Ltd System, method and program for providing summary
JP2014150354A (en) * 2013-01-31 2014-08-21 Brother Ind Ltd Image reading device and manuscript end determination program

Similar Documents

Publication Publication Date Title
US8885048B2 (en) Computer vision and radio frequency identification technology based book enrolment management apparatus
US5627915A (en) Pattern recognition system employing unlike templates to detect objects having distinctive features in a video field
US6677773B2 (en) Testing device for printed circuit boards
US20080062266A1 (en) Image test board
CN108353534B (en) Pin front end position image recognition method and pin front end position image recognition system
JP6659098B2 (en) Image processing method, image processing apparatus, program, and recording medium
US6519358B1 (en) Parallax calculating apparatus, distance calculating apparatus, methods of the same, and information providing media
JP2007285880A (en) Sample image registration method in board inspection, and sample image producing system
JPH096965A (en) Method for detecting end position of book image and device for reading thereof
US6330521B1 (en) Optical scanner alignment indicator method and apparatus
AU2021240183A1 (en) Object information management method, apparatus and device, and storage medium
JP2003086919A (en) Pattern inspection device
JP2001165636A (en) Method and device for detecting pattern defect of printed board wiring pattern
JPS61193007A (en) Inspecting method for rod type projection body
JP2000174103A (en) Device for detecting existing state of plate-like part
JPH0668777B2 (en) Character line detector
JPH08178622A (en) Edge line measuring method
JP4057479B2 (en) Pattern inspection method
JPH095022A (en) Pattern position detecting method and apparatus by image recognition
JPS6311804A (en) Mark position detection system for positioning
JPH04294260A (en) Inspecting apparatus for printed pattern quality
JPH04220506A (en) Method for detecting pattern position
CN116402900A (en) Method and device for determining compensation precision of camera system and storage medium
KR100436294B1 (en) A search method of pattern block in machine vision
JPH0510719A (en) Electronic part&#39;s position detecting method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020903