JP6325934B2 - Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system - Google Patents
Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system Download PDFInfo
- Publication number
- JP6325934B2 JP6325934B2 JP2014154666A JP2014154666A JP6325934B2 JP 6325934 B2 JP6325934 B2 JP 6325934B2 JP 2014154666 A JP2014154666 A JP 2014154666A JP 2014154666 A JP2014154666 A JP 2014154666A JP 6325934 B2 JP6325934 B2 JP 6325934B2
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- image
- communication
- controller
- unit
- 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.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims description 520
- 238000000034 method Methods 0.000 title claims description 81
- 238000003384 imaging method Methods 0.000 claims description 247
- 238000004891 communication Methods 0.000 claims description 237
- 238000005286 illumination Methods 0.000 claims description 51
- 238000007689 inspection Methods 0.000 claims description 49
- 230000008569 process Effects 0.000 claims description 37
- 238000003860 storage Methods 0.000 claims description 25
- 238000001514 detection method Methods 0.000 claims description 16
- 230000008878 coupling Effects 0.000 claims description 7
- 238000010168 coupling process Methods 0.000 claims description 7
- 238000005859 coupling reaction Methods 0.000 claims description 7
- 238000005520 cutting process Methods 0.000 claims description 6
- 238000012360 testing method Methods 0.000 claims description 5
- 230000002265 prevention Effects 0.000 description 73
- 230000006870 function Effects 0.000 description 60
- 235000019800 disodium phosphate Nutrition 0.000 description 27
- 230000005540 biological transmission Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 16
- 238000013500 data storage Methods 0.000 description 13
- 239000004065 semiconductor Substances 0.000 description 6
- 230000004044 response Effects 0.000 description 4
- 239000000758 substrate Substances 0.000 description 4
- 238000012937 correction Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 230000001678 irradiating effect Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000007781 pre-processing Methods 0.000 description 3
- 230000008033 biological extinction Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Description
本発明は、撮像装置を画像処理装置から分離することにより撮像装置自体を小型化することができ、配置する位置の制約が少なく、状況に応じて高い精度で欠陥の有無を検出することができる画像処理センサシステム、画像処理センサの制御方法、及び画像処理センサシステムに用いる画像処理センサに関する。 The present invention makes it possible to reduce the size of the imaging apparatus itself by separating the imaging apparatus from the image processing apparatus, and can detect the presence or absence of a defect with high accuracy depending on the situation, with few restrictions on the arrangement position. The present invention relates to an image processing sensor system, an image processing sensor control method, and an image processing sensor used in the image processing sensor system.
検査対象物の外観検査を実行する画像処理センサには、検査対象物の表面の画像を撮像するために、照明部と撮像部とが一体となっているタイプの画像処理センサがある。そして、画像処理センサに内蔵された半導体装置によって、撮像された検査対象物の表面の画像の画像データに対して画像処理を実行する。内蔵された半導体装置により各種の画像処理を施した後、良品であるか否かの判定処理の結果がPLC等へ出力される、又は撮像した画像が外部のコンピュータに表示される。また、内蔵された半導体装置は、外部のコンピュータで設定された情報の入力も受け付ける。 Image processing sensors that perform an appearance inspection of an inspection target include an image processing sensor in which an illumination unit and an imaging unit are integrated to capture an image of the surface of the inspection target. Then, image processing is executed on the image data of the image of the surface of the inspection object taken by the semiconductor device built in the image processing sensor. After performing various types of image processing using the built-in semiconductor device, the result of the determination processing whether or not the product is a non-defective product is output to the PLC or the like, or the captured image is displayed on an external computer. The built-in semiconductor device also accepts input of information set by an external computer.
例えば、特許文献1には、従来の照明部と撮像部とが一体となっている画像処理センサが開示されている。特許文献1では、画像処理センサは撮像装置を備え、表示装置(モニタ)と接続ケーブルで接続されており、画像処理センサの撮像装置内に画像処理を実行するFPGA、DSP等を画像処理部として備えている。また、撮像装置は画像を撮像するレンズの周囲を囲むように、複数のLEDを照明部として備えている。 For example, Patent Document 1 discloses an image processing sensor in which a conventional illumination unit and an imaging unit are integrated. In Patent Document 1, an image processing sensor includes an imaging device, and is connected to a display device (monitor) with a connection cable. An FPGA, DSP, or the like that executes image processing in the imaging device of the image processing sensor is used as an image processing unit. I have. In addition, the imaging apparatus includes a plurality of LEDs as an illumination unit so as to surround the periphery of a lens that captures an image.
しかし、特許文献1に開示されている画像処理センサでは、画像処理センサ自体の大きさにより、複数の画像処理センサを隣接させて配置することができない、あるいは配置できる場所に制約が生じる等の問題点があった。 However, in the image processing sensor disclosed in Patent Document 1, due to the size of the image processing sensor itself, a plurality of image processing sensors cannot be arranged adjacent to each other, or a place where the arrangement is possible is restricted. There was a point.
また、ユーザが複数の撮像装置で撮像された画像を確認するためには、画像処理センサを外部のコンピュータ又は表示装置と接続する必要がある。しかも、画像処理センサの検査に用いる各種パラメータを撮像装置ごとに設定するため、各画像処理センサと外部のコンピュータとを接続する必要がある。したがって、画像処理センサごとに外部のコンピュータと接続するためのケーブルが必要であり、ケーブルの整理も含めて作業が煩雑であるという問題点もあった。 In addition, in order for a user to check images captured by a plurality of imaging devices, the image processing sensor needs to be connected to an external computer or display device. In addition, since various parameters used for the inspection of the image processing sensor are set for each imaging apparatus, it is necessary to connect each image processing sensor to an external computer. Therefore, a cable for connecting to an external computer is required for each image processing sensor, and the work including the arrangement of the cables is complicated.
本発明は、斯かる事情に鑑みてなされたものであり、撮像装置を小型化するとともに、ケーブルの配線を簡略化することができる画像処理センサシステム、画像処理センサの制御方法、及び画像処理センサシステムに用いる画像処理センサを提供することを目的とする。 The present invention has been made in view of such circumstances, and an image processing sensor system, an image processing sensor control method, and an image processing sensor capable of downsizing an imaging apparatus and simplifying wiring of a cable. An object of the present invention is to provide an image processing sensor used in the system.
上記目的を達成するために第1発明に係る画像処理センサシステムは、検査対象物を撮像する撮像部及び該検査対象物に光を照射する照明部を有する撮像装置と、前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置とを備える複数の画像処理センサを有し、前記複数の画像処理センサは、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信する画像処理センサシステムであって、少なくとも一の画像処理センサの画像処理装置は、前記一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチとを備え、前記イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする。 Image processing sensor system according to a first invention to achieve the above object, an imaging device having an illumination unit for irradiating light to the imaging unit and the test object to image the inspection object, between the imaging device Connected to the imaging device via a connection cable for data communication, a connecting connector is provided on the side of the housing , and image processing is performed on an image acquired by the imaging device to determine whether the inspection object is good or bad have a plurality image processing sensors and a determining image processing apparatus, the plurality of image processing sensor, the housing of the plurality of image processing apparatuses are arranged adjacently, facing the plurality of image processing apparatus the coupling connectors are connected at the side surface, an image processing sensor system for communicating data including image through the coupling connector between the image processing apparatus that are adjacent to each other, small Both image processing apparatus according to an image processing sensor includes an image processing unit for performing image processing on the image acquired by the imaging device of the first image processing sensor, the image which the image processing by the image processing unit is performed the data containing the external communicate interface for sending computer or the display device, arranged to intervene between said image processing section the communication interface, yet the image processing device of the image processing sensor the one And an Ethernet switch for Ethernet communication with the external computer or display device via the communication interface, and the Ethernet switch performs image processing with another image processing sensor. the data including the execution image, after receiving through the connecting connector, the communication in Through the face and transmits to the external computer or the display device.
また、第2発明に係る画像処理センサシステムは、第1発明において、前記一の画像処理センサは、画像処理後の画像データを、前記他の画像処理センサにおける画像処理後の画像データも含めて記憶する処理結果記憶部を備え、該処理結果記憶部に記憶されている画像処理後の画像データを、前記通信インタフェースを経由して前記外部のコンピュータあるいは前記表示装置へ送信することを特徴とする。 The image processing sensor system according to a second aspect of the present invention is the image processing sensor system according to the first aspect, wherein the one image processing sensor includes image data after image processing, including image data after image processing by the other image processing sensor. A processing result storage unit for storing the image data, and the image data after image processing stored in the processing result storage unit is transmitted to the external computer or the display device via the communication interface; .
また、第3発明に係る画像処理センサシステムは、第1発明において、前記一の画像処理センサに備えた、前記外部のコンピュータあるいは前記表示装置とデータ通信することが可能な前記通信インタフェースの代わりに、前記外部のコンピュータあるいは前記表示装置とデータ通信する他の通信インタフェースを有する通信ユニットを別個に備えることを特徴とする。 An image processing sensor system according to a third invention is the image processing sensor system according to the first invention, instead of the communication interface provided in the one image processing sensor and capable of data communication with the external computer or the display device. A communication unit having another communication interface for data communication with the external computer or the display device is separately provided.
また、第4発明に係る画像処理センサシステムは、第1乃至第3発明のいずれか1つにおいて、前記一の画像処理センサにのみ電源端子を備え、前記一の画像処理センサは、前記他の画像処理センサへ電力を供給することを特徴とする。 An image processing sensor system according to a fourth invention is the image processing sensor system according to any one of the first to third inventions, wherein the one image processing sensor includes a power supply terminal, and the one image processing sensor is the other image processing sensor. Power is supplied to the image processing sensor.
また、第5発明に係る画像処理センサシステムは、第1乃至第4発明のいずれか1つにおいて、前記複数の画像処理センサのうち少なくとも一の画像処理センサは、通信ループの発生を検出する通信ループ検出手段を備え、通信ループの発生を検出した場合、前記一の画像処理センサは、検出された通信ループの切断処理を実行することを特徴とする。 An image processing sensor system according to a fifth aspect of the present invention is the communication system according to any one of the first to fourth aspects, wherein at least one of the plurality of image processing sensors detects the occurrence of a communication loop. A loop detection unit is provided, and when the occurrence of a communication loop is detected, the one image processing sensor executes a process of cutting the detected communication loop.
次に、上記目的を達成するために第6発明に係る画像処理センサの制御方法は、検査対象物を撮像する撮像部及び該検査対象物に光を照射する照明部を有する撮像装置と、前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置とを備える複数の画像処理センサを有し、前記複数の画像処理センサは、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信する画像処理センサシステムで実行することが可能な画像処理センサの制御方法であって、少なくとも一の画像処理センサの画像処理装置は、前記一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチとを備え、前記イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする。 Next, the control method of the image processing sensor according to the sixth invention to achieve the above object, an imaging device having an illumination unit for irradiating light to the imaging unit and the test object to image the inspection object, wherein The inspection device is connected to the imaging device via a connection cable for data communication with the imaging device , a connection connector is provided on a side surface of the housing, and performs image processing on an image acquired by the imaging device. It has a quality multiple image processing sensors and a determining image processing apparatus of the object, wherein the plurality of image processing sensor, the housing of the plurality of image processing apparatuses are arranged adjacent, the plurality of images wherein the opposite sides of the processing apparatus connecting the connectors are connected, performed by the image processing sensor system for communicating data including image through the coupling connector between the image processing apparatus that are adjacent to each other A method of controlling an image processing sensor capable Rukoto, the image processing apparatus of at least one image processing sensor, the image processing for performing image processing on the acquired image by the imaging apparatus of the first image processing sensor and parts, the data including an image in which the image processing has been performed by the image processing unit, and a communication interface for transmitting to an external computer or display device, interposed between said image processing section the communication interface And an Ethernet switch connected to a connection connector provided in the image processing device of the one image processing sensor, and for Ethernet communication with the external computer or display device via the communication interface, The Ethernet switch is data including an image subjected to image processing by another image processing sensor. , After receiving through the connecting connector, and transmits via the communication interface to the external computer or the display equipment.
また、第7発明に係る画像処理センサの制御方法は、第6発明において、前記一の画像処理センサは、画像処理後の画像データを、前記他の画像処理センサにおける画像処理後の画像データも含めて記憶し、前記一の画像処理センサは、記憶されている画像処理後の画像データを、前記通信インタフェースを経由して前記外部のコンピュータあるいは前記表示装置へ送信することを特徴とする。 According to a seventh aspect of the present invention, there is provided a control method for an image processing sensor according to the sixth aspect , wherein the one image processing sensor is configured to receive image data after image processing and image data after image processing in the other image processing sensor. The one image processing sensor transmits the stored image data after image processing to the external computer or the display device via the communication interface.
また、第8発明に係る画像処理センサの制御方法は、第6発明において、前記複数の画像処理センサは、前記一の画像処理センサに備えた、前記外部のコンピュータあるいは前記表示装置とデータ通信することが可能な前記通信インタフェースの代わりに、前記外部のコンピュータあるいは前記表示装置とデータ通信する他の通信インタフェースを有する通信ユニットを経由して前記外部のコンピュータあるいは前記表示装置とデータ通信することを特徴とする。 An image processing sensor control method according to an eighth aspect of the present invention is the method according to the sixth aspect , wherein the plurality of image processing sensors communicate data with the external computer or the display device provided in the one image processing sensor. In place of the communication interface, data communication can be performed with the external computer or the display device via a communication unit having another communication interface for data communication with the external computer or the display device. And
また、第9発明に係る画像処理センサの制御方法は、第6乃至第8発明のいずれか1つにおいて、前記複数の画像処理センサのうち少なくとも一の画像処理センサは、通信ループの発生を検出し、通信ループの発生を検出した場合、前記一の画像処理センサは、検出された通信ループの切断処理を実行することを特徴とする。 An image processing sensor control method according to a ninth invention is the method according to any one of the sixth to eighth inventions, wherein at least one of the plurality of image processing sensors detects the occurrence of a communication loop. When the occurrence of a communication loop is detected, the one image processing sensor executes a process for disconnecting the detected communication loop.
次に、上記目的を達成するために第10発明に係る画像処理センサは、検査対象物を撮像する撮像部及び該検査対象物に光を照射する照明部を有する撮像装置と、前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置とを備える画像処理センサにおいて、他の画像処理センサと、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信し、前記画像処理装置は、前記撮像装置で取得した画像に対して画像処理を実行する画像処理部と、前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも前記画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は前記表示装置とイーサネット通信するためのイーサネットスイッチとを備え、前記イーサネットスイッチは、外部で画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする。 Next, the image processing sensor according to the tenth aspect for achieving the above object, an imaging device having an illumination unit for irradiating light to the imaging unit and the test object to image the inspection object, said imaging device Connected to the imaging device via a connection cable for data communication between them, a coupling connector is provided on the side of the housing , and image processing is performed on an image acquired by the imaging device to in the image processing sensor and a determining image processing apparatus the quality, and other image processing sensor, the housing of the plurality of image processing apparatus is located adjacent said at opposite sides of said plurality of image processing apparatus connecting the connectors are connected, to communicate data including an image through the coupling connector between the image processing apparatus that are adjacent to each other, the image processing apparatus, acquired by the imaging device images Wherein an image processing unit for performing image processing for the data including an image in which the image processing has been performed by the image processing unit, and a communication interface for transmitting to an external computer or display device, and the image processing unit An Ethernet switch disposed between the communication interface and connected to a connection connector provided in the image processing apparatus, and for Ethernet communication with the external computer or the display device via the communication interface ; wherein the Ethernet switch, the data including an image in which the image processing has been performed outside, after receiving through the connecting connector, be sent to the external computer or the display device via the communication interface and wherein and Turkey.
また、第11発明に係る画像処理センサは、第10発明において、通信ループの発生を検出する通信ループ検出手段を備え、通信ループの発生を検出した場合、検出された通信ループの切断処理を実行することを特徴とする。 An image processing sensor according to an eleventh aspect of the invention comprises a communication loop detection means for detecting the occurrence of a communication loop in the tenth aspect , and executes a process for cutting the detected communication loop when the occurrence of the communication loop is detected. It is characterized by doing.
第1発明、第6発明及び第10発明では、検査対象物を撮像する撮像部及び該検査対象物に光を照射する照明部を有する撮像装置と、該撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、撮像装置で取得した画像に対して画像処理を実行して検査対象物の良否を判定する画像処理装置とを備える複数の画像処理センサを有し、複数の画像処理センサは、複数の画像処理装置の筐体が隣接して配置され、複数の画像処理装置の対向する側面における連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で連結コネクタを介して画像を含むデータを通信するので撮像装置を小型化することができ、複数の画像処理センサを隣接して配置する場合であっても、撮像装置を隣接させて配置することができるので、配置する位置の制約が少ない。また、少なくとも一の画像処理センサの画像処理装置は、一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、画像処理部と通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、通信インタフェースを介して外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチとを備え、イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、連結コネクタを介して受信した後に、通信インタフェースを介して外部のコンピュータあるいは表示装置に送信するので、一の画像処理センサの演算処理負荷を増大させることなく、独立して外部のコンピュータあるいは表示装置とデータ通信することができる。また、外部のコンピュータあるいは表示装置とのデータ通信に用いる通信インタフェースと接続されるイーサネットケーブルは一の画像処理センサにのみ接続されているので、複数の画像処理センサを用いる場合であってもケーブル類の配線が煩雑になることがない。さらに、イーサネットスイッチを用いているので、データ通信のコリジョンが発生することなく高速に大容量のデータ通信を行うことができる。 In the first invention, the sixth invention, and the tenth invention, in order to perform data communication between the imaging device having an imaging unit that images the inspection object and an illumination unit that irradiates light to the inspection object, and the imaging device via the connecting cable is connected to the imaging device, connecting a connector is provided on the housing side, and determining the image processing apparatus the quality of the inspection object by performing image processing on the acquired image by the imaging apparatus A plurality of image processing sensors, wherein a plurality of image processing devices are arranged adjacent to each other, and connecting connectors on opposite side surfaces of the plurality of image processing devices are connected to each other. since communicating data including image via the connecting connector between the adjacent image processing apparatus can be made compact imaging apparatus, even when placed adjacent a plurality image processing sensors, shooting Since the device can be placed adjacent, less restriction of where to place. The image processing device of at least one image processing sensor includes an image processing unit that performs image processing on an image acquired by the imaging device of the one image processing sensor, and an image that has been subjected to image processing by the image processing unit. data including a communication interface for transmitting to an external computer or display device, arranged to intervene between the image processing unit and communication interface, yet provided to the image processing device of the image processing sensor the one And an Ethernet switch for Ethernet communication with an external computer or display device via a communication interface. The Ethernet switch includes an image that has been subjected to image processing by another image processing sensor. After the data is received via the connection connector, the external And it transmits computer or to the display device, without increasing the processing load of the first image processing sensor can communicate external computer or the display device and the data independently. In addition, since the Ethernet cable connected to the communication interface used for data communication with an external computer or display device is connected to only one image processing sensor, even if a plurality of image processing sensors are used, the cables Wiring is not complicated. Furthermore, since an Ethernet switch is used, large-capacity data communication can be performed at high speed without causing data communication collision.
第2発明及び第7発明では、一の画像処理センサは、画像処理後の画像データを、他の画像処理センサにおける画像処理後の画像データも含めて記憶する。一の画像処理センサは、通信インタフェースを経由して外部のコンピュータあるいは表示装置とデータ通信するので、記憶されている画像処理後の画像データを、任意のタイミングで一括して外部のコンピュータあるいは表示装置へ送信することができる。 In the second and seventh inventions, one image processing sensor stores image data after image processing, including image data after image processing by other image processing sensors. Since one image processing sensor performs data communication with an external computer or display device via a communication interface, stored image data after image processing is collectively displayed at an arbitrary timing with the external computer or display device. Can be sent to.
第3発明及び第8発明では、一の画像処理センサに備えた、外部のコンピュータあるいは表示装置とデータ通信することが可能な通信インタフェースの代わりに、外部のコンピュータあるいは表示装置とデータ通信する他の通信インタフェースを有する通信ユニットを別個に備えるので、画像処理センサは、イーサネットスイッチを介して通信ユニットの通信インタフェースを経由して、外部のコンピュータあるいは表示装置とデータ通信することができる。 In the third and eighth aspects of the invention, instead of the communication interface provided in one image processing sensor capable of data communication with an external computer or display device, other data communication with the external computer or display device is possible. Since the communication unit having the communication interface is separately provided, the image processing sensor can perform data communication with an external computer or a display device via the communication interface of the communication unit via the Ethernet switch.
第4発明では、一の画像処理センサにのみ電源端子を備えており、一の画像処理センサから他の画像処理センサへ電力を供給するので、他の画像処理センサに電源端子が不要となり、全体として製造コストを低減することが可能となる。また、電源ケーブルが一本で済むので、複数の画像処理センサを用いる場合であっても電源ケーブルの配線が煩雑にならない。 In the fourth invention, only one image processing sensor is provided with a power supply terminal, and power is supplied from one image processing sensor to another image processing sensor. As a result, the manufacturing cost can be reduced. In addition, since only one power cable is required, the wiring of the power cable is not complicated even when a plurality of image processing sensors are used.
第5発明、第9発明及び第11発明では、複数の画像処理センサのうち少なくとも一の画像処理センサは、通信ループの発生を検出する通信ループ検出手段を備えており、通信ループの発生を検出した場合、一の画像処理センサは、検出された通信ループの切断処理を実行する。これにより、少なくとも一の画像処理センサにおいて通信ループが検出された場合、通信ループを切断する処理を速やかに実行することができるので、例えば配線ミスのような初歩的なミスが生じた場合であっても確実に通信ループを解消することができる。 In the fifth invention, the ninth invention, and the eleventh invention, at least one of the plurality of image processing sensors includes a communication loop detection means for detecting the occurrence of a communication loop, and detects the occurrence of the communication loop. In this case, the one image processing sensor executes a process for cutting the detected communication loop. As a result, when a communication loop is detected in at least one image processing sensor, the process of cutting the communication loop can be executed quickly, and this is a case where an elementary mistake such as a wiring error has occurred. However, the communication loop can be surely eliminated.
本発明では、検査対象物を撮像する撮像部及び該検査対象物に光を照射する照明部を有する撮像装置と、該撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、撮像装置で取得した画像に対して画像処理を実行して検査対象物の良否を判定する画像処理装置とを備える複数の画像処理センサを有し、複数の画像処理センサは、複数の画像処理装置の筐体が隣接して配置され、複数の画像処理装置の対向する側面における連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で連結コネクタを介して画像を含むデータを通信するので撮像装置を小型化することができ、複数の画像処理センサを隣接して配置する場合であっても、撮像装置を隣接させて配置することができるので、配置する位置の制約が少ない。また、少なくとも一の画像処理センサの画像処理装置は、一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、画像処理部と通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、通信インタフェースを介して外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチとを備え、イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、連結コネクタを介して受信した後に、通信インタフェースを介して外部のコンピュータあるいは表示装置に送信するので、一の画像処理センサの演算処理負荷を増大させることなく、独立して外部のコンピュータあるいは表示装置とデータ通信することができる。また、外部のコンピュータあるいは表示装置とのデータ通信に用いる通信インタフェースと接続されるイーサネットケーブルは一の画像処理センサにのみ接続されているので、複数の画像処理センサを用いる場合であってもケーブル類の配線が煩雑になることがない。さらに、イーサネットスイッチを用いているので、データ通信のコリジョンが発生することなく高速に大容量のデータ通信を行うことができる。 In the present invention, the imaging device includes an imaging unit that images the inspection object and an illumination unit that irradiates light to the inspection object, and a connection cable for data communication with the imaging device. is connected to a housing side connecting connector is provided, have a plurality image processing sensors and a determining image processing apparatus the quality of the inspection object by performing image processing for the images acquired by the imaging device In the plurality of image processing sensors, the housings of the plurality of image processing apparatuses are arranged adjacent to each other, the connection connectors on the opposite side surfaces of the plurality of image processing apparatuses are connected, and the image processing apparatuses are adjacent to each other. since communicating data including image via the coupling connector can be downsized imaging apparatus, even when placed adjacent a plurality image processing sensors are positioned adjacent the imaging device Since bets can, less restriction of where to place. The image processing device of at least one image processing sensor includes an image processing unit that performs image processing on an image acquired by the imaging device of the one image processing sensor, and an image that has been subjected to image processing by the image processing unit. data including, provided a communications interface for sending to an external computer or display device, arranged to intervene between the image processing unit and communication interface, yet the image processing device of the image processing sensor the one And an Ethernet switch for Ethernet communication with an external computer or display device via a communication interface. The Ethernet switch displays an image that has been subjected to image processing by another image processing sensor. data including, after receiving via a connection connector, the external co via the communication interface And it transmits computer or to the display device, without increasing the processing load of the first image processing sensor may be a data communication with an external computer or the display device independently. In addition, since the Ethernet cable connected to the communication interface used for data communication with an external computer or display device is connected to only one image processing sensor, even if a plurality of image processing sensors are used, the cables Wiring is not complicated. Furthermore, since an Ethernet switch is used, large-capacity data communication can be performed at high speed without causing data communication collision.
以下、本発明の実施の形態に係る画像処理センサシステムについて、図面を参照して説明する。なお、本実施の形態の説明で参照する図面を通じて、同一又は同様の構成又は機能を有する要素については、同一又は同様の符号を付して、詳細な説明を省略する。以下、画像処理センサシステムに、検査対象物の良否判定を行う画像処理センサを用いる場合を例に挙げて説明する。 Hereinafter, an image processing sensor system according to an embodiment of the present invention will be described with reference to the drawings. Note that elements having the same or similar configuration or function are denoted by the same or similar reference numerals throughout the drawings referred to in the description of this embodiment, and detailed description thereof is omitted. Hereinafter, a case where an image processing sensor that performs pass / fail determination of an inspection target is used in the image processing sensor system will be described as an example.
(実施の形態1)
図1は、本発明の実施の形態1に係る画像処理センサシステムの構成を示す模式図である。図1に示すように、本実施の形態1に係る画像処理センサシステムで用いる画像処理センサは、撮像装置1と、撮像装置1とデータ通信することが可能に接続ケーブルで接続されている画像処理装置(以下、コントローラ)2とで構成されている。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a configuration of an image processing sensor system according to Embodiment 1 of the present invention. As shown in FIG. 1, the image processing sensor used in the image processing sensor system according to the first embodiment is connected to the imaging device 1 through a connection cable so as to be able to perform data communication with the imaging device 1. It comprises an apparatus (hereinafter referred to as a controller) 2.
撮像装置1は、検査対象物を撮像する撮像素子を有するカメラモジュール(撮像部)と、検査対象物に対して光を照射する照明部とを備えている。撮像装置1を小型化するべく、画像処理を実行するコントローラ2は、撮像装置1とは別個に備えている。画像処理は、撮像装置1内で一部の処理(フィルタ処理等の前処理)を実行し、実行後の画像データをコントローラ2へ送信して、残りの画像処理をコントローラ2で実行しても良いし、撮像した画像をそのままコントローラ2へ送信しても良い。 The imaging apparatus 1 includes a camera module (imaging unit) having an image sensor that images an inspection object, and an illumination unit that irradiates light to the inspection object. In order to reduce the size of the imaging apparatus 1, the controller 2 that executes image processing is provided separately from the imaging apparatus 1. In the image processing, a part of processing (preprocessing such as filter processing) is executed in the imaging apparatus 1, the image data after execution is transmitted to the controller 2, and the remaining image processing is executed by the controller 2. The captured image may be transmitted to the controller 2 as it is.
撮像装置1と接続ケーブルで接続されているコントローラ2は、それぞれ内部に画像処理を実行するFPGA、DSP等を備えており、撮像装置1の撮像部、照明部の動作を制御するとともに、取得した画像に対して画像処理を実行する。特にDSPは、画像に対して、色面積検出処理、パターン検索処理等を実行する。さらに、画像処理の結果として、検査対象物を検出したか否かで検査対象物の良否を示すOK/NG信号(判定信号)を出力する。もちろん、場合によってはFPGAが実行するようにしても良い。OK/NG信号は、コントローラ2p、2qに備えるI/Oコネクタ213から、それぞれI/Oケーブルを経由して外部のPLC、他の光電センサ・近接センサ、表示灯等(以下、PLC等)へ出力される。I/Oコネクタ213は、親機2pだけでなく子機2qを含め各コントローラ2に設けられている。 The controller 2 connected to the imaging device 1 with a connection cable includes an FPGA, a DSP, and the like that execute image processing therein, and controls the operations of the imaging unit and the illumination unit of the imaging device 1 and acquires them. Perform image processing on the image. In particular, the DSP performs color area detection processing, pattern search processing, and the like on the image. Further, as a result of the image processing, an OK / NG signal (determination signal) indicating whether the inspection object is good or not is output depending on whether the inspection object is detected. Of course, the FPGA may be executed depending on circumstances. The OK / NG signal is sent from the I / O connector 213 provided in the controllers 2p and 2q to the external PLC, other photoelectric sensor / proximity sensor, indicator lamp, etc. (hereinafter, PLC etc.) via the I / O cable. Is output. The I / O connector 213 is provided in each controller 2 including not only the parent device 2p but also the child device 2q.
隣接して配置されている複数のコントローラ2は、互いにデータ通信することが可能に接続されている。互いに接続されている複数のコントローラ2のうち、少なくとも一のコントローラ2pは、親機としてイーサネットコネクタ214と電源端子215とを備えている。子機である他のコントローラ2qは、少なくとも一のコントローラ2p(親機)と接続されている。図1では4個の子機2qが接続されているが、接続される子機の数はこれに限定されるものではなく、例えば8個の子機、16個の子機等、任意の数の子機を接続に設定することができる。 The plurality of controllers 2 arranged adjacent to each other are connected so as to be able to perform data communication with each other. Of the plurality of controllers 2 connected to each other, at least one controller 2p includes an Ethernet connector 214 and a power supply terminal 215 as a parent device. The other controller 2q, which is a slave unit, is connected to at least one controller 2p (master unit). In FIG. 1, four slave units 2q are connected. However, the number of slave units to be connected is not limited to this. For example, any number of slave units such as eight slave units and sixteen slave units can be connected. The machine can be set to connection.
複数の画像処理センサと外部のコンピュータ3あるいは表示装置4とは、少なくとも一のコントローラ(親機)2pのイーサネットコネクタ214、イーサネットケーブル23を介して接続されており、画像データのデータ通信を行う。隣接して配置されている複数のコントローラ2は、互いにデータ通信を行う。 The plurality of image processing sensors and the external computer 3 or display device 4 are connected via at least one controller (master) 2p Ethernet connector 214 and Ethernet cable 23, and perform image data communication. The plurality of controllers 2 arranged adjacent to each other perform data communication with each other.
データ通信されるデータとしては、例えば、各コントローラ2に接続された撮像装置1で撮像された画像の画像データ(画像処理後の画像データも含む)、外部のコンピュータ3あるいは表示装置4で設定を受け付けた設定データ、後述する相互干渉防止トリガ信号等がある。 As data to be communicated, for example, image data (including image data after image processing) of an image captured by the image capturing device 1 connected to each controller 2, setting by the external computer 3 or the display device 4 is set. There are received setting data, a mutual interference prevention trigger signal described later, and the like.
親機2pから子機2qへは、相互干渉防止トリガ信号、外部のコンピュータ3あるいは表示装置4から設定を受け付けた設定データが送信される。親機2pに近い位置にある子機2qから、より離れた位置にある子機2qへは、相互干渉防止トリガ信号、外部のコンピュータ3あるいは表示装置4から親機2pを介して設定を受け付けた設定データが送信される。 From the parent device 2p to the child device 2q, a mutual interference prevention trigger signal and setting data whose setting is received from the external computer 3 or the display device 4 are transmitted. From the slave unit 2q located near the master unit 2p to the slave unit 2q located further away, the mutual interference prevention trigger signal, the setting was received from the external computer 3 or the display device 4 via the master unit 2p. Setting data is transmitted.
親機2pに近い位置にある子機2qから親機2pへは、該子機2qで取得した画像データ、該子機2qよりも親機2pから離れた位置にある子機2qで取得した画像データ、及びその他の制御信号が送信される。親機2pから離れた位置にある子機2qから、親機2pにより近い子機2qへは、離れた位置にある子機2qで取得した画像データ、該子機2qよりも親機2pから離れた位置にある子機2qで取得した画像データ、及びその他の制御信号が送信される。 From the slave unit 2q located near the master unit 2p to the master unit 2p, the image data acquired by the slave unit 2q and the image acquired by the slave unit 2q located farther from the master unit 2p than the slave unit 2q Data and other control signals are transmitted. From the slave unit 2q located away from the master unit 2p to the slave unit 2q closer to the master unit 2p, the image data acquired by the slave unit 2q located away from the master unit 2p is further away from the master unit 2p than the slave unit 2q. The image data acquired by the handset 2q at the selected position and other control signals are transmitted.
外部のコンピュータ3及び表示装置4は、コントローラ(親機)2pに設定データを送信することができ、コントローラ(親機)2pを介して他のコントローラ(子機)2qにも設定データを送信することができ、コントローラ2に保存された画像データを含むデータを読み出すことができる。 The external computer 3 and the display device 4 can transmit the setting data to the controller (parent device) 2p, and also transmit the setting data to the other controller (slave device) 2q via the controller (parent device) 2p. Data including image data stored in the controller 2 can be read out.
外部のコンピュータ3は、市販のパーソナルコンピュータ等に画像処理センサを動作させるためのコンピュータプログラムをインストールする等して用いられる。 The external computer 3 is used by installing a computer program for operating the image processing sensor in a commercially available personal computer or the like.
表示装置4は、外部のコンピュータ3よりも小型であり、例えば表示部としてタッチパネル式の表示部を備え、表示機能及びコントローラ2との通信機能を有する。 The display device 4 is smaller than the external computer 3. For example, the display device 4 includes a touch panel type display unit as a display unit, and has a display function and a communication function with the controller 2.
図1において隣接するコントローラ2は、コネクタピン(図示しない)で接続されており、コントローラ2同士が接触して接続されている。図1において、コントローラ2の紙面の右側に雌ピン(図示しない)が、コントローラ2の紙面の左側に雄ピン(図示しない)が設けられている。図1において、親機2pの紙面の左側には、雄ピンが設けられていない。 In FIG. 1, adjacent controllers 2 are connected by connector pins (not shown), and the controllers 2 are in contact with each other. In FIG. 1, a female pin (not shown) is provided on the right side of the paper surface of the controller 2, and a male pin (not shown) is provided on the left side of the paper surface of the controller 2. In FIG. 1, a male pin is not provided on the left side of the paper surface of the master unit 2p.
また、図1では、紙面の左側に親機2pを配置し、親機2pの右側に子機2qを配置しているが、特にこれに限定されるものではなく、親機2pの左側に子機2qを配置しても良いし、親機2pの両側に子機2qを配置しても良い。 In FIG. 1, the master unit 2p is arranged on the left side of the page, and the slave unit 2q is arranged on the right side of the master unit 2p. However, the present invention is not limited to this. The machine 2q may be arranged, or the child machine 2q may be arranged on both sides of the parent machine 2p.
図1では、外部のコンピュータ3及び表示装置4の両方にイーサネットケーブル23が接続されているように図示しているが、いずれか一方を用いてコントローラ2とデータ通信する。 In FIG. 1, the Ethernet cable 23 is connected to both the external computer 3 and the display device 4, but data communication is performed with the controller 2 using either one.
図1では、5つの画像処理センサ(撮像装置1及びコントローラ2)が図示されている。紙面の左から3つの画像処理センサの撮像装置1は互いに近くに配置され、一のグループを形成している。同様に、右から2つの画像処理センサの撮像装置1は近くに配置され、他のグループを形成している。このように、複数の画像処理センサの撮像装置1をグループ分けすることができ、後述する実施の形態4に示す相互干渉防止機能を用いることができる。すなわち、3つの画像処理センサで形成される一のグループは、図1において破線で示される撮像領域又は照射領域が重なる程度に近接した位置に撮像装置1が配置されており、2つの画像処理センサで形成される他のグループも、同程度に近接した位置に撮像装置1が配置されている。 In FIG. 1, five image processing sensors (the imaging device 1 and the controller 2) are illustrated. The imaging devices 1 of the three image processing sensors from the left of the page are arranged close to each other to form one group. Similarly, the imaging devices 1 of the two image processing sensors from the right are arranged close to each other to form another group. Thus, the imaging devices 1 of a plurality of image processing sensors can be grouped, and the mutual interference prevention function shown in the fourth embodiment described later can be used. That is, in one group formed by three image processing sensors, the imaging device 1 is arranged at a position close enough to overlap the imaging region or irradiation region indicated by the broken line in FIG. In the other groups formed by the imaging device 1, the imaging device 1 is arranged at a position close to the same extent.
撮像装置1は、従来の画像処理センサの撮像装置1に比べて小型であり、配置するスペースが小さな場所であっても配置することができる。したがって、撮像装置1を同じ方向を向くように並べて配置するような場合であっても、撮像領域又は照射領域が重なる程度に近接した位置に配置することができる。 The imaging device 1 is smaller than the imaging device 1 of the conventional image processing sensor, and can be placed even in a small space. Therefore, even when the imaging devices 1 are arranged side by side so as to face the same direction, they can be arranged at positions close enough to overlap the imaging regions or irradiation regions.
もちろん、図1のようにグループ分けをしなくても、それぞれ独立した画像処理センサとして用いて別個の検査対象物を検査することも可能である。この場合、撮像装置1は互いに関連しない位置に配置されているが、隣接して配置されているコントローラ2同士は接続されているので、外部のコンピュータ3あるいは表示装置4での管理は容易である。 Of course, it is also possible to inspect separate inspection objects by using them as independent image processing sensors without grouping as shown in FIG. In this case, the imaging device 1 is arranged at a position not related to each other, but the controllers 2 arranged adjacent to each other are connected to each other, so that management by the external computer 3 or the display device 4 is easy. .
図1に示すように、撮像装置1とコントローラ2とを有する画像処理センサは、イーサネットケーブル23を介して外部のコンピュータ3及び表示装置4に接続され、画像処理センサシステムが構成されている。 As shown in FIG. 1, an image processing sensor having an imaging device 1 and a controller 2 is connected to an external computer 3 and a display device 4 via an Ethernet cable 23 to constitute an image processing sensor system.
図2は、本発明の実施の形態1に係る画像処理センサの撮像装置1の構成を示す外形図である。図2(a)は、本発明の実施の形態1に係る画像処理センサの撮像装置1の構成を示す正面図を、図2(b)は、本発明の実施の形態1に係る画像処理センサの撮像装置1の構成を示す模式断面図を、それぞれ示している。 FIG. 2 is an outline view showing the configuration of the imaging device 1 of the image processing sensor according to Embodiment 1 of the present invention. 2A is a front view showing the configuration of the imaging apparatus 1 of the image processing sensor according to Embodiment 1 of the present invention, and FIG. 2B is an image processing sensor according to Embodiment 1 of the present invention. The schematic sectional drawing which shows the structure of the imaging device 1 of each is shown.
図2(a)に示すように、撮像装置1は、撮像部12として正面の中央近傍にレンズ121を配置しており、レンズ121の周囲を囲むように、照明部11として複数の(図2では4つの)LED111を配置してある。なお、リフレクタ(図示せず)はLED111の前方に設けてある。撮像時には、複数のLED111を点灯させることにより、検査対象物に光を照射し、検査対象物を明瞭に撮像することができる。なお、照明部11として、4つのLED111を撮像部12(レンズ121)の周囲に設けることに限定されるものではなく、一以上の照明具が照明部11として撮像装置1内に設けられていれば良い。 As shown in FIG. 2A, the imaging apparatus 1 has a lens 121 disposed near the center of the front as the imaging unit 12, and a plurality of illumination units 11 (FIG. 2) so as to surround the lens 121. Then, four) LEDs 111 are arranged. A reflector (not shown) is provided in front of the LED 111. At the time of imaging, by turning on the plurality of LEDs 111, it is possible to irradiate the inspection object with light and to clearly image the inspection object. The illumination unit 11 is not limited to the four LEDs 111 provided around the imaging unit 12 (lens 121), and one or more illumination tools may be provided in the imaging apparatus 1 as the illumination unit 11. It ’s fine.
図2(b)に示すように、撮像装置1の撮像部12は、CMOSイメージセンサ又はCCD等の撮像素子が搭載されたCMOS基板122とレンズ121との間の距離を変えることができる可動部として焦点制御部123を備えている。コントローラ2からの信号に応じて焦点制御部123がCMOS基板122を前後動させることにより、オートフォーカス機能を実現させている。 As shown in FIG. 2B, the imaging unit 12 of the imaging device 1 is a movable unit that can change the distance between the CMOS substrate 122 and the lens 121 on which an imaging element such as a CMOS image sensor or a CCD is mounted. As shown in FIG. The focus control unit 123 moves the CMOS substrate 122 back and forth in accordance with a signal from the controller 2 to realize an autofocus function.
また、照明部11は、LED111の前方にリフレクタ(導光部)112を設けている。これにより、LED111から照射される光を、少しでも平行光に近づけている。 Further, the illumination unit 11 is provided with a reflector (light guide unit) 112 in front of the LED 111. Thereby, the light irradiated from LED111 is brought close to parallel light as much as possible.
図3は、本発明の実施の形態1に係る画像処理センサの撮像装置1のハードウェア構成を示すブロック図である。図3において、本実施の形態1に係る画像処理センサの撮像装置1は、撮像部12と照明部11とで構成されており、それぞれの動作をメイン基板13が制御し、通信基板14がコントローラ2との通信を制御する。例えば、メイン基板13からのオートフォーカス動作を制御する制御信号に応じて撮像部12のモータ124を駆動させることにより、図2に示す焦点制御部123が前後動し、オートフォーカス動作の制御を行う。そして、メイン基板13からの撮像指示信号に応じて検査対象物を撮像する。 FIG. 3 is a block diagram showing a hardware configuration of the imaging device 1 of the image processing sensor according to Embodiment 1 of the present invention. In FIG. 3, the imaging device 1 of the image processing sensor according to the first embodiment includes an imaging unit 12 and an illumination unit 11. The main board 13 controls each operation, and the communication board 14 is a controller. 2 is controlled. For example, by driving the motor 124 of the imaging unit 12 in accordance with a control signal for controlling the autofocus operation from the main board 13, the focus control unit 123 shown in FIG. 2 moves back and forth to control the autofocus operation. . Then, the inspection object is imaged in accordance with the imaging instruction signal from the main board 13.
本実施の形態1では、撮像素子が搭載されたCMOS基板122を備えており、CMOS基板122で撮像されたカラー画像は、例えばFPGA131にてフィルタ処理が実行された後、画像処理後の画像データが出力される。つまり、演算処理負荷の大きい画像変換処理等は撮像装置1では実行されないので、撮像装置1内に備える半導体装置を小型化することができる、あるいは放熱を考慮した配置をする必要性が相対的に少なくなるので、撮像装置1を小型化することができる。 In the first embodiment, a CMOS substrate 122 on which an image sensor is mounted is provided, and a color image captured by the CMOS substrate 122 is subjected to filter processing by, for example, the FPGA 131 and then image data after image processing. Is output. In other words, image conversion processing or the like with a large arithmetic processing load is not executed in the imaging apparatus 1, so that it is relatively necessary to reduce the size of the semiconductor device provided in the imaging apparatus 1 or to arrange it in consideration of heat dissipation. Therefore, the imaging device 1 can be reduced in size.
メイン基板13は、接続してある各部の動作を制御する。例えば照明部11に対しては、複数のLED111の点灯/消灯を制御する制御信号を、LEDドライバ113へ送信する。LEDドライバ113は、FPGA131からの制御信号に応じて、例えばLED111の点灯/消灯、光量等を調整する。また、撮像部12のモータ124に対しては、メイン基板13のモータドライバ134を介してオートフォーカス動作を制御する制御信号を、CMOS基板122に対しては、撮像指示信号等を、それぞれ送信する。 The main board 13 controls the operation of each connected part. For example, a control signal for controlling turning on / off of the plurality of LEDs 111 is transmitted to the LED driver 113 to the illumination unit 11. The LED driver 113 adjusts, for example, lighting / extinguishing of the LED 111, the amount of light, and the like according to a control signal from the FPGA 131. In addition, a control signal for controlling the autofocus operation is transmitted to the motor 124 of the imaging unit 12 via the motor driver 134 of the main board 13, and an imaging instruction signal or the like is transmitted to the CMOS board 122. .
通信基板14は、メイン基板13から出力された、検査対象物についての画像データをコントローラ2へ送信する。また、コントローラ2から撮像装置1の制御信号を受信し、受信した制御信号をメイン基板13に送信する。 The communication board 14 transmits the image data about the inspection object output from the main board 13 to the controller 2. Further, the control signal of the imaging device 1 is received from the controller 2, and the received control signal is transmitted to the main board 13.
図4は、本発明の実施の形態1に係る画像処理センサのコントローラ2のハードウェア構成を示すブロック図である。図4では、親機として機能する一のコントローラ2p及び子機として機能する他のコントローラ2qとが隣接して接続されている。他のコントローラ2qは、さらに親機である一のコントローラ2pに隣接して接続されている、子機である他のコントローラ2qの隣に直列に連続して接続されている。親機である一のコントローラ2pと子機である他のコントローラ2qとは、それぞれの連結コネクタ211同士が接続されている。本実施の形態1では、親機である一のコントローラ2pは、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等で構成されたメイン基板21に、イーサネットスイッチ210、連結コネクタ211、撮像装置コネクタ212、I/Oコネクタ213、イーサネットコネクタ214、及び電源端子215が接続されている。また、子機である他のコントローラ2qは、メイン基板21に、イーサネットスイッチ210、連結コネクタ211、撮像装置コネクタ212、及びI/Oコネクタ213が接続されているが、親機である一のコントローラ2pとは異なり、イーサネットコネクタ214、及び電源端子215は設けられていない。 FIG. 4 is a block diagram showing a hardware configuration of the controller 2 of the image processing sensor according to Embodiment 1 of the present invention. In FIG. 4, one controller 2p that functions as a parent device and another controller 2q that functions as a child device are connected adjacently. The other controller 2q is connected in series in succession next to the other controller 2q that is a slave unit and is connected adjacent to the one controller 2p that is the master unit. The connection connectors 211 are connected to one controller 2p that is a parent device and the other controller 2q that is a child device. In the first embodiment, one controller 2p which is a master unit is connected to a main board 21 composed of a microcomputer, FPGA, DSP, gate array, etc., with an Ethernet switch 210, a connection connector 211, an imaging device connector 212, I The / O connector 213, the Ethernet connector 214, and the power supply terminal 215 are connected. In addition, the other controller 2q as a slave unit is connected to the main board 21 with the Ethernet switch 210, the connection connector 211, the imaging device connector 212, and the I / O connector 213. Unlike 2p, the Ethernet connector 214 and the power supply terminal 215 are not provided.
なお、メイン基板21は、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等の単体で構成することに限定されるものではなく、例えばFPGAとDSP、DSPとゲートアレイのように組み合わせて構成しても良いし、複数のDSPで構成して並列処理しても良い。メイン基板21は、機能ブロックとしてトリガ制御部201、I/O制御部202、相互干渉制御部203、画像処理部204、画像データ記憶部205、画像処理結果記憶部206、イーサネット通信制御部207、設定記憶部208、撮像装置通信制御部209等を備えている。トリガ制御部201は、撮像タイミング信号(トリガ信号)を制御し、撮像装置1に送信する。 The main board 21 is not limited to a single unit such as a microcomputer, an FPGA, a DSP, and a gate array, and may be configured by combining, for example, an FPGA and a DSP and a DSP and a gate array. However, it may be constituted by a plurality of DSPs for parallel processing. The main board 21 includes, as function blocks, a trigger control unit 201, an I / O control unit 202, a mutual interference control unit 203, an image processing unit 204, an image data storage unit 205, an image processing result storage unit 206, an Ethernet communication control unit 207, A setting storage unit 208, an imaging device communication control unit 209, and the like are provided. The trigger control unit 201 controls the imaging timing signal (trigger signal) and transmits it to the imaging device 1.
I/O制御部202は、外部の入出力装置(図示せず)との間でI/O信号をデータ通信する。撮像タイミング信号は、I/Oコネクタ213でPLCから受信した場合、外部のコンピュータ3又は表示装置4からの受信を検知した場合、あるいは内蔵するタイマから発せられた場合に、撮像装置1へ送信される。 The I / O control unit 202 performs data communication of I / O signals with an external input / output device (not shown). The imaging timing signal is transmitted to the imaging device 1 when it is received from the PLC by the I / O connector 213, when reception from the external computer 3 or display device 4 is detected, or when it is issued from a built-in timer. The
相互干渉制御部203は、複数の画像処理センサ間で撮像装置1同士が干渉しないように、一の撮像装置1における照明の点灯/消灯及び撮像のタイミングと、他の撮像装置1における照明の点灯/消灯及び撮像のタイミングとを制御するためのものである。詳細については、実施の形態4で説明する。 The mutual interference control unit 203 turns on / off the illumination in one imaging device 1 and the timing of imaging, and turns on the illumination in the other imaging device 1 so that the imaging devices 1 do not interfere with each other between a plurality of image processing sensors. This is for controlling the turn-off and imaging timing. Details will be described in Embodiment 4.
画像処理部204は、撮像装置1で撮像されて受信した画像データに対して画像処理を実行する。例えば、画像データに対して、色面積検出処理、パターン検索処理等を実行する。検査対象物を検出したか否かで検査対象物の良否を示すOK/NG信号(判定信号)は、画像処理の結果として、I/O制御部202によりI/Oコネクタ213を介して外部のPLC等の出力装置(図示せず)へ出力される。 The image processing unit 204 performs image processing on the image data captured and received by the imaging device 1. For example, color area detection processing, pattern search processing, and the like are performed on the image data. An OK / NG signal (determination signal) indicating whether or not the inspection object is good depending on whether or not the inspection object is detected is output from the I / O control unit 202 via the I / O connector 213 as an image processing result. It is output to an output device (not shown) such as a PLC.
画像データ記憶部205は、画像データを記憶する。画像データ記憶部205には、現在撮像装置1で撮像している画像と、過去に撮像した画像データとの両方が記憶されている。画像処理結果記憶部206は、画像処理された画像データ及びパターン検索処理等の処理結果を記憶する。 The image data storage unit 205 stores image data. The image data storage unit 205 stores both an image currently captured by the imaging apparatus 1 and image data captured in the past. The image processing result storage unit 206 stores image data subjected to image processing and processing results such as pattern search processing.
イーサネット通信制御部207は、イーサネット通信を制御し、画像データ記憶部205に記憶されている画像データ等の外部のコンピュータ3あるいは表示装置4への出力、設定データの送受信等を実行する。親機である一のコントローラ2pでは、外部のコンピュータ3あるいは表示装置4との間の通信を制御し、子機である他のコントローラ2qでは、外部のコンピュータ3あるいは表示装置4との間の、親機である一のコントローラ2pのイーサネットスイッチ210を経由した通信を制御する。設定記憶部208は、例えばIPアドレス、MACアドレス、相互干渉防止機能の設定データ等の設定情報を記憶する。 The Ethernet communication control unit 207 controls Ethernet communication, and executes output of image data and the like stored in the image data storage unit 205 to the external computer 3 or the display device 4, transmission / reception of setting data, and the like. One controller 2p, which is a parent device, controls communication with an external computer 3 or display device 4, and another controller 2q, which is a child device, controls communication with the external computer 3 or display device 4. Controls communication via the Ethernet switch 210 of one controller 2p which is a parent device. The setting storage unit 208 stores setting information such as an IP address, a MAC address, and setting data for a mutual interference prevention function.
撮像装置通信制御部209は、コントローラ2と撮像装置1との通信を制御し、撮像装置1からの画像データの受信、撮像条件の設定データの撮像装置1への送信等を実行する。 The imaging device communication control unit 209 controls communication between the controller 2 and the imaging device 1, and executes reception of image data from the imaging device 1, transmission of imaging condition setting data to the imaging device 1, and the like.
イーサネットスイッチ210は、イーサネット通信用のハブである。親機である一のコントローラ2pのイーサネットスイッチ210は、隣接して接続されている子機である他のコントローラ2qとのデータ通信の経路を確保する。子機である他のコントローラ2qのイーサネットスイッチ210は、両隣に接続されているコントローラ2(2p又は2q)とのデータ通信の経路(信号線)を確保する。親機である一のコントローラ2pのイーサネットスイッチ210は、イーサネットコネクタ214に接続されており、図1に示すイーサネットケーブル23を経由して外部のコンピュータ3あるいは表示装置4に接続されている。 The Ethernet switch 210 is a hub for Ethernet communication. The Ethernet switch 210 of one controller 2p that is a parent device secures a data communication path with another controller 2q that is an adjacently connected child device. The Ethernet switch 210 of the other controller 2q as a slave unit secures a data communication path (signal line) with the controller 2 (2p or 2q) connected to both sides. The Ethernet switch 210 of one controller 2p, which is a parent device, is connected to the Ethernet connector 214, and is connected to the external computer 3 or the display device 4 via the Ethernet cable 23 shown in FIG.
(1)設定データの送信方法
設定データを外部のコンピュータ3あるいは表示装置4からコントローラ2へ送信する場合、親機である一のコントローラ2pのイーサネットコネクタ214を経由して、親機である一のコントローラ2pのイーサネットスイッチ210に送信される。外部のコンピュータ3あるいは表示装置4では、複数の画像処理センサのうち、どのコントローラ2に設定データを送信するのか、IPアドレス等を用いて指定しておく。イーサネットスイッチ210は、設定データの送信先が自機ではないと判定したとき、及び設定データの送信先が自機であると判定したときには、隣接して接続されている次のコントローラ2に設定データを送信(転送)する。設定データが、外部のコンピュータ3あるいは表示装置4により指定されたコントローラ2のイーサネットスイッチ210を介して、メイン基板21に入力される。
(1) Setting data transmission method When setting data is transmitted from the external computer 3 or the display device 4 to the controller 2, the master data is transmitted to the controller 2p via the Ethernet connector 214 of the controller 2p. It is transmitted to the Ethernet switch 210 of the controller 2p. In the external computer 3 or the display device 4, which controller 2 of the plurality of image processing sensors is to transmit the setting data is designated using an IP address or the like. When the Ethernet switch 210 determines that the transmission destination of the setting data is not its own device, and determines that the transmission destination of the setting data is its own device, the Ethernet switch 210 sets the setting data to the next controller 2 connected adjacently. Is sent (transferred). The setting data is input to the main board 21 via the Ethernet switch 210 of the controller 2 designated by the external computer 3 or the display device 4.
(2)画像データの外部のコンピュータ3あるいは表示装置4への送信方法
連結コネクタ211は、隣接するコントローラ2を連結して、例えば相互干渉トリガ信号等の制御信号、画像データ等の送受信経路として機能する。外部のコンピュータ3あるいは表示装置4により、複数の画像処理センサのうち、どのコントローラ2から画像データを読み出すかが選択される。親機2pのすぐ隣の子機2qが選択された場合、画像データ読み出しのための信号が、イーサネットケーブル23、親機2pのイーサネットコネクタ214、イーサネットスイッチ210、連結コネクタ211、子機2qの連結コネクタ211、イーサネットスイッチ210を介して、子機2qのメイン基板21に入力される。子機2qの画像データ記憶部205から画像データが読み出され、子機2qのイーサネットスイッチ210及び連結コネクタ211、親機2pの連結コネクタ211及びイーサネットスイッチ210を介して、外部のコンピュータ3あるいは表示装置4に読み出される。画像データ読み出しのための信号及び画像データは、親機2pではメイン基板21に入力されず、イーサネットスイッチ210を介して子機2qに転送される。
(2) Method for Transmitting Image Data to External Computer 3 or Display Device 4 The connection connector 211 connects adjacent controllers 2 and functions as a transmission / reception path for control signals such as a mutual interference trigger signal and image data, for example. To do. The external computer 3 or the display device 4 selects from which controller 2 the image data is to be read out of the plurality of image processing sensors. When the slave unit 2q immediately adjacent to the master unit 2p is selected, signals for reading image data are connected to the Ethernet cable 23, the Ethernet connector 214 of the master unit 2p, the Ethernet switch 210, the connection connector 211, and the slave unit 2q. The data is input to the main board 21 of the slave unit 2q via the connector 211 and the Ethernet switch 210. Image data is read from the image data storage unit 205 of the slave unit 2q, and the external computer 3 or the display is displayed via the Ethernet switch 210 and the connection connector 211 of the slave unit 2q, and the connection connector 211 and the Ethernet switch 210 of the master unit 2p. Read out to the device 4. The signal for reading image data and the image data are not input to the main board 21 in the master unit 2p but transferred to the slave unit 2q via the Ethernet switch 210.
相互干渉トリガ信号等の制御信号は、図4では、親機である一のコントローラ2pのメイン基板21から、連結コネクタ211を介して隣接して接続されている子機である他のコントローラ2qのメイン基板21へ送信される。そして電力も、親機である一のコントローラ2pの電源端子215から、親機である一のコントローラ2pのメイン基板21に供給されるとともに、連結コネクタ211を介して隣接して接続されている子機である他のコントローラ2qへ供給される。同様にして直列に接続されているすべての子機である他のコントローラ2qへ電力が供給される。 In FIG. 4, a control signal such as a mutual interference trigger signal is transmitted from the main board 21 of one controller 2p, which is a parent device, to another controller 2q, which is a child device connected adjacently via a connection connector 211. It is transmitted to the main board 21. Then, power is also supplied from the power supply terminal 215 of one controller 2p, which is a parent device, to the main board 21 of one controller 2p, which is the parent device, and is connected adjacently via a connection connector 211. Is supplied to another controller 2q. Similarly, electric power is supplied to other controllers 2q which are all slave units connected in series.
撮像装置コネクタ212は、コントローラ2ごとに撮像装置1と接続して、設定情報やオートフォーカス制御信号等を送信し、画像データ等を受信する。I/Oコネクタ213は、外部の入出力装置(図示せず)との間でI/O信号を送受信する。 The imaging device connector 212 is connected to the imaging device 1 for each controller 2, transmits setting information, an autofocus control signal, and the like, and receives image data and the like. The I / O connector 213 transmits / receives an I / O signal to / from an external input / output device (not shown).
イーサネットコネクタ214は、少なくとも親機2pに設ける。イーサネットコネクタ214は、イーサネットスイッチ210と接続されており、子機2qの外部のコンピュータ3あるいは表示装置4とのデータ通信にも使用される。電源端子215は、親機2pにのみ備える。子機2qへは、連結コネクタ211を介して親機2pから電力を供給する。このような構成とすることで、複数の画像処理センサを用いる場合であっても、イーサネットケーブル23あるいは電源ケーブル等の配線を簡略化することができ、画像処理センサの付け替えや交換等を容易に行うことができる。 The Ethernet connector 214 is provided at least in the master unit 2p. The Ethernet connector 214 is connected to the Ethernet switch 210 and is also used for data communication with the computer 3 or the display device 4 outside the slave unit 2q. The power terminal 215 is provided only in the master unit 2p. Power is supplied from the parent device 2p to the child device 2q via the connection connector 211. With such a configuration, even when a plurality of image processing sensors are used, the wiring of the Ethernet cable 23 or the power cable can be simplified, and the replacement or replacement of the image processing sensor can be easily performed. It can be carried out.
つまり、イーサネットコネクタ214及び電源端子215を、少なくとも親機2pにのみ備えることで、ケーブル類の配線の煩雑さを解消することができる。 That is, by providing the Ethernet connector 214 and the power supply terminal 215 only at least in the parent device 2p, the complexity of wiring of cables can be eliminated.
図4に示す複数のコントローラ2のうち、親機である一のコントローラ2pと子機である他のコントローラ2qとの違いは、親機である一のコントローラ2pにはイーサネットコネクタ214が設けられているのに対し、子機である他のコントローラ2qには設けられていない点にある。 Among the plurality of controllers 2 shown in FIG. 4, the difference between one controller 2p that is a parent device and another controller 2q that is a child device is that an Ethernet connector 214 is provided in one controller 2p that is a parent device. On the other hand, it is not provided in the other controller 2q as a slave unit.
なお、本実施の形態1において「イーサネットコネクタ214が設けられていない」とは、物理的にイーサネットコネクタ214を設けていない場合だけでなく、イーサネットコネクタ214は設けてあるものの、イーサネットスイッチ210に接続されていない場合、内部の信号線に接続されていない場合等、イーサネット通信の通信インタフェースとして機能していない場合も意味している。 In the first embodiment, “the Ethernet connector 214 is not provided” means not only when the Ethernet connector 214 is not physically provided but also when the Ethernet connector 214 is provided but connected to the Ethernet switch 210. It means that the network interface is not functioning as a communication interface for Ethernet communication, such as when not connected to an internal signal line.
図5は、本発明の実施の形態1に係る画像処理センサのコントローラ2の、他のコントローラ(子機)2と外部のコンピュータ3あるいは表示装置4とのイーサネット接続処理の手順を示すフローチャートである。図5(a)は、コントローラ2にIPアドレスが割り当てられていない場合の処理の手順を、図5(b)は、コントローラ2にIPアドレスが割り当てられている場合の処理の手順を、それぞれ示している。 FIG. 5 is a flowchart showing a procedure of Ethernet connection processing between another controller (slave unit) 2 and an external computer 3 or display device 4 of the controller 2 of the image processing sensor according to the first embodiment of the present invention. . FIG. 5A shows a processing procedure when an IP address is not assigned to the controller 2, and FIG. 5B shows a processing procedure when an IP address is assigned to the controller 2. ing.
まず、図5(a)において、コントローラ2は、BOOTPパケットを外部のBOOTPサーバへ送信する(ステップS501)。コントローラ2は、BOOTPパケットを送信してから一定時間経過したか否かを判断し(ステップS502)、コントローラ2が、まだ経過していないと判断した場合(ステップS502:NO)、コントローラ2は、経過待ち状態となる。 First, in FIG. 5A, the controller 2 transmits a BOOTP packet to an external BOOTP server (step S501). The controller 2 determines whether or not a certain time has elapsed since the transmission of the BOOTP packet (step S502), and when the controller 2 determines that it has not yet elapsed (step S502: NO), the controller 2 It will be in a waiting state.
コントローラ2が、経過したと判断した場合(ステップS502:YES)、コントローラ2は、動的なIPアドレスを取得したか否かを判断する(ステップS503)。コントローラ2が、IPアドレスを取得していないと判断した場合(ステップS503:NO)、コントローラ2は、処理をステップS501へ戻して、上述した処理を繰り返す。コントローラ2が、IPアドレスを取得したと判断した場合(ステップS503:YES)、コントローラ2は処理を終了する。 When the controller 2 determines that the time has elapsed (step S502: YES), the controller 2 determines whether a dynamic IP address has been acquired (step S503). When the controller 2 determines that the IP address has not been acquired (step S503: NO), the controller 2 returns the process to step S501 and repeats the above-described process. When the controller 2 determines that the IP address has been acquired (step S503: YES), the controller 2 ends the process.
次に、図5(b)において、コントローラ2は、検索パケットを受信したか否かを判断する(ステップS504)。コントローラ2が、検索パケットをまだ受信していないと判断した場合(ステップS504:NO)、コントローラ2は、受信待ち状態となる。コントローラ2が、検索パケットを受信したと判断した場合(ステップS504:YES)、コントローラ2は、応答パケットを送信する(ステップS505)。 Next, in FIG. 5B, the controller 2 determines whether or not a search packet has been received (step S504). When the controller 2 determines that the search packet has not been received yet (step S504: NO), the controller 2 enters a reception waiting state. When the controller 2 determines that the search packet has been received (step S504: YES), the controller 2 transmits a response packet (step S505).
図6は、本発明の実施の形態1に係る画像処理センサシステムの外部のコンピュータ3の、コントローラ2とのイーサネット接続処理の手順を示すフローチャートである。なお、処理の手順自体は、外部のコンピュータ3の代わりに表示装置4を用いる場合であっても同様である。 FIG. 6 is a flowchart showing the procedure of Ethernet connection processing with the controller 2 of the computer 3 outside the image processing sensor system according to Embodiment 1 of the present invention. The processing procedure itself is the same even when the display device 4 is used instead of the external computer 3.
図6において、外部のコンピュータ3は、接続対象となるコントローラ2のIPアドレスの指定を受け付けたか否かを判断する(ステップS601)。外部のコンピュータ3が、指定を受け付けていないと判断した場合(ステップS601:NO)、外部のコンピュータ3は、コントローラ2へ検索パケットを送信する(ステップS602)。 In FIG. 6, the external computer 3 determines whether or not the designation of the IP address of the controller 2 to be connected has been received (step S601). When the external computer 3 determines that the designation is not accepted (step S601: NO), the external computer 3 transmits a search packet to the controller 2 (step S602).
外部のコンピュータ3は、検索パケットを送信してから一定時間経過したか否かを判断する(ステップS603)。外部のコンピュータ3が、まだ一定時間経過していないと判断した場合(ステップS603:NO)、外部のコンピュータ3は、経過待ち状態となる。外部のコンピュータ3が、一定時間経過したと判断した場合(ステップS603:YES)、外部のコンピュータ3は、検索パケットに対する応答パケット又はBOOTPパケットをコントローラ2から受信したか否かを判断する(ステップS604)。 The external computer 3 determines whether or not a certain time has elapsed since the search packet was transmitted (step S603). When the external computer 3 determines that the predetermined time has not yet elapsed (step S603: NO), the external computer 3 enters a waiting state. If the external computer 3 determines that a certain time has elapsed (step S603: YES), the external computer 3 determines whether a response packet or a BOOTP packet for the search packet has been received from the controller 2 (step S604). ).
外部のコンピュータ3が受信していないと判断した場合(ステップS604:NO)、外部のコンピュータ3は、ネットワーク内に接続対象となるコントローラ2が存在しないと判断し、エラー処理を実行して(ステップS611)、処理を終了する。外部のコンピュータ3が受信したと判断した場合(ステップS604:YES)、外部のコンピュータ3は、接続対象となるコントローラ2の一覧を表示する(ステップS605)。 When it is determined that the external computer 3 is not receiving (step S604: NO), the external computer 3 determines that there is no controller 2 to be connected in the network, and executes error processing (step S611), the process is terminated. When it is determined that the external computer 3 has received (step S604: YES), the external computer 3 displays a list of controllers 2 to be connected (step S605).
図7は、本発明の実施の形態1に係る画像処理センサシステムの外部のコンピュータ3で表示されるコントローラ2の一覧の例示図である。図7の例では、イーサネットコネクタ214及び電源端子215を備えるコントローラ2を親機2p、それ以外のコントローラ2を子機2qとする。親機2p、子機2qそれぞれについて、撮像装置1の型式、MACアドレス、IPアドレス、サブネットマスク、デフォルトゲートウェイを表示する。これらの情報は、例えば親機2pと子機2qとの応答パケット、BOOTPパケット等に情報として含ませても良いし、親機2pの応答パケット、BOOTPパケット等に情報として含ませても良い。また、別途専用のシリアル通信線を親機2pと子機2qとの間に追加することで、子機2qの情報を親機2pに集約しても良い。 FIG. 7 is a view showing an example of a list of controllers 2 displayed on the computer 3 outside the image processing sensor system according to Embodiment 1 of the present invention. In the example of FIG. 7, the controller 2 including the Ethernet connector 214 and the power supply terminal 215 is the parent device 2p, and the other controller 2 is the child device 2q. The model, MAC address, IP address, subnet mask, and default gateway of the imaging device 1 are displayed for each of the master unit 2p and the slave unit 2q. Such information may be included as information in a response packet, a BOOTP packet, or the like of the parent device 2p and the child device 2q, or may be included as information in a response packet, a BOOTP packet, or the like of the parent device 2p. Further, by adding a separate dedicated serial communication line between the parent device 2p and the child device 2q, the information of the child device 2q may be collected in the parent device 2p.
図7では、本実施の形態1に係る画像処理センサシステムの外部のコンピュータ3に、3つの親機2pが、同じネットワーク上に接続されている。すなわち、3つの子機2qが接続された親機2pと、子機2qが接続されていない親機2pと、2つの子機2qが接続された親機2pが、それぞれ外部のコンピュータ3に接続されている場合の例である。このように、一つの外部のコンピュータ3を、一対の親機2pと子機2qとの組み合わせに接続するのみではなく、複数の親機2pと複数の子機2qとの組み合わせに接続することができる。 In FIG. 7, three master units 2p are connected on the same network to the computer 3 outside the image processing sensor system according to the first embodiment. That is, the master unit 2p to which the three slave units 2q are connected, the master unit 2p to which the slave unit 2q is not connected, and the master unit 2p to which the two slave units 2q are connected to the external computer 3, respectively. This is an example of the case. In this way, one external computer 3 can be connected not only to a combination of a pair of parent devices 2p and a child device 2q, but also to a combination of a plurality of parent devices 2p and a plurality of child devices 2q. it can.
図7に示す表示画面の例では、親機2pとその親機2pに接続された子機2qとをツリー状に示すことで、ある子機2qがどの親機2pと接続されているか、あるいはある親機2pから何番目かの子機2qのIPアドレスを簡単に確認することができる。一の親機2pに子機2qを複数台接続している場合、ある子機2qを対象としてメンテナンスをしようとするとき又は接続されている外部のコンピュータ3で視認しようとするときには、IPアドレスなどの個体の識別情報及び親機2pとの物理的な位置関係(何番目のコントローラ2であるか)を確認しやすい。親機2pのイーサネットコネクタ214は一つだけであるが、外部のコンピュータ3と親機2pとの間に、市販のイーサネットハブを設置すること等により、一つの外部のコンピュータ3と複数の親機2pとでデータ通信することができる。 In the example of the display screen shown in FIG. 7, the parent device 2p and the child device 2q connected to the parent device 2p are shown in a tree shape, which parent device 2p is connected to which parent device 2p, It is possible to easily confirm the IP address of some slave unit 2q from a certain master unit 2p. When a plurality of slave units 2q are connected to one master unit 2p, when trying to perform maintenance for a certain slave unit 2q or visually checking with a connected external computer 3, an IP address, etc. It is easy to confirm the identification information of the individual and the physical positional relationship (which controller 2 is) with the parent device 2p. Although there is only one Ethernet connector 214 of the master unit 2p, one external computer 3 and a plurality of master units are installed by installing a commercially available Ethernet hub between the external computer 3 and the master unit 2p. Data communication can be performed with 2p.
図6に戻って、外部のコンピュータ3は、コントローラ2の一覧の中から、ユーザによる接続対象となるコントローラ2の選択を受け付ける(ステップS606)。外部のコンピュータ3は、IPアドレスを明示的に割り当てるIPアドレス割当画面を表示し(ステップS607)、ユーザによるIPアドレスの割当設定を受け付ける(ステップS608)。 Returning to FIG. 6, the external computer 3 accepts selection of the controller 2 to be connected by the user from the list of controllers 2 (step S606). The external computer 3 displays an IP address assignment screen for explicitly assigning an IP address (step S607), and accepts an IP address assignment setting by the user (step S608).
外部のコンピュータ3が、接続対象となるコントローラ2のIPアドレスの指定を受け付けたと判断した場合(ステップS601:YES)、外部のコンピュータ3は、接続に成功したか否かを判断する(ステップS609)。ここで「接続に成功する」とは、論理的に接続され、TCPのコネクションが確立されたことを意味する。なお、ステップS607、ステップS608は、IPアドレスが未割当であるコントローラ2である場合にだけ実行される。 When the external computer 3 determines that the specification of the IP address of the controller 2 to be connected is received (step S601: YES), the external computer 3 determines whether the connection is successful (step S609). . Here, “successfully connected” means that a logical connection is established and a TCP connection is established. Steps S607 and S608 are executed only when the controller 2 has an unassigned IP address.
外部のコンピュータ3が、接続に失敗したと判断した場合(ステップS609:NO)、外部のコンピュータ3は、エラー処理を実行して(ステップS611)、処理を終了する。外部のコンピュータ3が、接続に成功したと判断した場合(ステップS609:YES)、外部のコンピュータ3は、設定情報、画像データ、画像処理結果等を接続されたコントローラ2から読み出して(ステップS610)、処理を終了する。 When the external computer 3 determines that the connection has failed (step S609: NO), the external computer 3 executes error processing (step S611) and ends the processing. When the external computer 3 determines that the connection is successful (step S609: YES), the external computer 3 reads the setting information, image data, image processing result, and the like from the connected controller 2 (step S610). The process is terminated.
このようにして外部のコンピュータ3とコントローラ2とが接続される。接続されたコントローラ2に対して、外部のコンピュータ3から設定データを送信する、あるいはコントローラ2に記憶されている画像データを外部のコンピュータ3で表示することができる。同様に、外部のコンピュータ3と親機である一のコントローラ2pとを接続するだけでなく、子機である他のコントローラ2qとも接続することができる。 In this way, the external computer 3 and the controller 2 are connected. The setting data can be transmitted from the external computer 3 to the connected controller 2, or the image data stored in the controller 2 can be displayed on the external computer 3. Similarly, it is possible not only to connect the external computer 3 and one controller 2p which is a parent device, but also to another controller 2q which is a child device.
図8は、本発明の実施の形態1に係る画像処理センサシステムの外部のコンピュータ3の設定情報の更新処理の手順を示すフローチャートである。なお、処理手順自体は、外部のコンピュータ3の代わりに表示装置4を用いる場合であっても同様である。 FIG. 8 is a flowchart showing a procedure of setting information update processing of the computer 3 outside the image processing sensor system according to Embodiment 1 of the present invention. The processing procedure itself is the same even when the display device 4 is used instead of the external computer 3.
図8において、外部のコンピュータ3は、接続されたコントローラ2から読み出した設定情報を表示する(ステップS801)。外部のコンピュータ3は、ユーザによる設定情報の更新を受け付け(ステップS802)、更新後の設定情報をコントローラ2へ送信する(ステップS803)。送信先となるコントローラ2は、図6に示す手順で接続した親機である一のコントローラ2p又は子機である他のコントローラ2qのいずれかである。 In FIG. 8, the external computer 3 displays the setting information read from the connected controller 2 (step S801). The external computer 3 receives an update of the setting information by the user (step S802), and transmits the updated setting information to the controller 2 (step S803). The controller 2 that is the transmission destination is either one of the controllers 2p that is a parent device connected by the procedure shown in FIG. 6 or another controller 2q that is a child device.
図9は、本発明の実施の形態1に係る画像処理センサシステムの画像処理センサから外部のコンピュータ3あるいは表示装置4への画像データの送信処理の手順を示すフローチャートである。図9の左側のフローは、画像処理センサのコントローラ2における画像データの送信処理の手順を示しており、図9の右側のフローは、撮像装置1における画像データの取得処理の手順を示している。なお、処理手順自体は、外部のコンピュータ3の代わりに表示装置4を用いる場合であっても同様である。 FIG. 9 is a flowchart showing a procedure of image data transmission processing from the image processing sensor to the external computer 3 or display device 4 in the image processing sensor system according to Embodiment 1 of the present invention. The flow on the left side of FIG. 9 shows the procedure of image data transmission processing in the controller 2 of the image processing sensor, and the flow on the right side of FIG. 9 shows the procedure of image data acquisition processing in the imaging device 1. . The processing procedure itself is the same even when the display device 4 is used instead of the external computer 3.
図9において、コントローラ2は、撮像を開始する撮像タイミング信号(トリガ信号)を受信したか否かを判断する(ステップS901)。コントローラ2が、撮像タイミング信号(トリガ信号)を受信していないと判断した場合(ステップS901:NO)、コントローラ2は、受信待ち状態となる。なお、撮像タイミング信号(トリガ信号)は、I/Oコネクタ213から受信しても良いし、親機である一のコントローラ2pに近い位置の子機である他のコントローラ2qから受信しても良い。 In FIG. 9, the controller 2 determines whether or not an imaging timing signal (trigger signal) for starting imaging has been received (step S901). When the controller 2 determines that the imaging timing signal (trigger signal) has not been received (step S901: NO), the controller 2 enters a reception waiting state. The imaging timing signal (trigger signal) may be received from the I / O connector 213, or may be received from another controller 2q that is a slave unit at a position close to one controller 2p that is the master unit. .
コントローラ2が、撮像タイミング信号(トリガ信号)を受信したと判断した場合(ステップS901:YES)、コントローラ2は、撮像装置1に撮像タイミング信号(トリガ信号)を送信する(ステップS902)。 When the controller 2 determines that the imaging timing signal (trigger signal) has been received (step S901: YES), the controller 2 transmits the imaging timing signal (trigger signal) to the imaging device 1 (step S902).
撮像装置1は、撮像を開始する撮像タイミング信号(トリガ信号)を受信したか否かを判断する(ステップS906)。撮像装置1が、撮像タイミング信号(トリガ信号)を受信していないと判断した場合(ステップS906:NO)、撮像装置1は、受信待ち状態となる。 The imaging device 1 determines whether an imaging timing signal (trigger signal) for starting imaging has been received (step S906). When it is determined that the imaging device 1 has not received the imaging timing signal (trigger signal) (step S906: NO), the imaging device 1 enters a reception waiting state.
撮像装置1が、撮像タイミング信号(トリガ信号)を受信したと判断した場合(ステップS906:YES)、撮像装置1は、設定されている撮像条件で検査対象物の撮像処理を実行し(ステップS907)、撮像された画像データに対してフィルタ処理等の前処理を実行する(ステップS908)。撮像装置1は、前処理後の画像データをコントローラ2へ送信する(ステップS909)。 When the imaging apparatus 1 determines that the imaging timing signal (trigger signal) has been received (step S906: YES), the imaging apparatus 1 executes imaging processing of the inspection object under the set imaging conditions (step S907). ) Preprocessing such as filtering is performed on the captured image data (step S908). The imaging device 1 transmits the preprocessed image data to the controller 2 (step S909).
コントローラ2は、撮像装置1から画像データを受信したか否かを判断する(ステップS903)。コントローラ2が、画像データを受信していないと判断した場合(ステップS903:NO)、コントローラ2は、画像データの受信待ち状態となる。 The controller 2 determines whether image data has been received from the imaging device 1 (step S903). When the controller 2 determines that image data has not been received (step S903: NO), the controller 2 enters a state of waiting for reception of image data.
コントローラ2が、画像データを受信したと判断した場合(ステップS903:YES)、コントローラ2は、受信した画像データに対して画像処理を実行し(ステップS904)、画像処理後の画像データを外部のコンピュータ3へ送信する(ステップS905)。 When the controller 2 determines that the image data has been received (step S903: YES), the controller 2 executes image processing on the received image data (step S904), and the image data after the image processing is externally transmitted. It transmits to the computer 3 (step S905).
なお、画像データを外部のコンピュータ3へ送信するタイミングは、送信する画像データとは別の画像データに対して画像処理が実行されている間であっても良い。つまり、他の画像データに対する色面積検出処理、パターン検索処理等の実行中に送信しても良いし、次の画像を撮像するための撮像タイミング信号(トリガ信号)を撮像装置1へ送信する前であっても良い。 Note that the timing at which the image data is transmitted to the external computer 3 may be during the time when image processing is being performed on image data different from the image data to be transmitted. That is, it may be transmitted during execution of color area detection processing, pattern search processing, or the like for other image data, or before an imaging timing signal (trigger signal) for imaging the next image is transmitted to the imaging apparatus 1. It may be.
また、外部のコンピュータ3あるいは表示装置4の表示画面からGUI操作により、コントローラ2のうち、どのコントローラ2のどの画像データであるかの選択を受け付けることができる。例えば、複数のコントローラ2の候補の中から選択を受け付け、選択されたコントローラ2に接続されている撮像装置1で撮像された最新の画像データ及び欠陥の有無等の判定結果を表示するよう要求することができる。外部のコンピュータ3あるいは表示装置4からの選択は、コントローラ2、撮像装置1の撮像処理、画像処理とは独立して受け付けることができ、独立して親機である一のコントローラ2pへ送信することができる。 Further, it is possible to accept selection of which image data of which controller 2 of the controllers 2 by GUI operation from the display screen of the external computer 3 or the display device 4. For example, a selection is accepted from a plurality of controller 2 candidates, and the latest image data captured by the imaging device 1 connected to the selected controller 2 and a determination result such as the presence or absence of a defect are requested to be displayed. be able to. Selection from the external computer 3 or the display device 4 can be accepted independently of the imaging processing and image processing of the controller 2 and the imaging device 1, and can be independently transmitted to one controller 2p which is a parent device. Can do.
複数のコントローラ2が直列に連結されている場合も同様である。例えば親機(コントローラ)2p、子機(コントローラ)2q(1)、子機(コントローラ)2q(2)の3台が直列に連結されている場合、外部のコンピュータ3あるいは表示装置4の表示画面から子機2q(2)の選択を受け付けたとき、画像データを読み出す信号は、親機2p、子機2q(1)を経由して子機2q(2)へ送信される。子機2q(2)のメイン基板21のイーサネット通信制御部207は、外部のコンピュータ3あるいは表示装置4と通信を確立して、画像データ記憶部205に記憶されている画像データを、イーサネットスイッチ210を介して、子機2q(1)、親機2pをスルーして、外部のコンピュータ3あるいは表示装置4へ送信する。 The same applies when a plurality of controllers 2 are connected in series. For example, when three units of a master unit (controller) 2p, a slave unit (controller) 2q (1), and a slave unit (controller) 2q (2) are connected in series, the display screen of the external computer 3 or the display device 4 When the selection of the slave unit 2q (2) is received from the mobile phone 2q (2), a signal for reading the image data is transmitted to the slave unit 2q (2) via the master unit 2p and the slave unit 2q (1). The Ethernet communication control unit 207 of the main board 21 of the slave unit 2q (2) establishes communication with the external computer 3 or the display device 4, and transfers the image data stored in the image data storage unit 205 to the Ethernet switch 210. Through the slave unit 2q (1) and the master unit 2p, and transmits to the external computer 3 or the display device 4.
このとき、画像データを読み出す信号は、親機2pのイーサネットコネクタ214から親機2pのイーサネットスイッチ210に入力される。親機2pのイーサネットスイッチ210は、親機2pの画像データを読み出すわけではないので、親機2pのメイン基板21とはデータ通信することなく、画像データを読み出す信号は、親機2pの連結コネクタ211を経由し、子機2q(1)の連結コネクタ211を経て、子機2q(1)のイーサネットスイッチ210に入力される。 At this time, a signal for reading image data is input from the Ethernet connector 214 of the parent device 2p to the Ethernet switch 210 of the parent device 2p. Since the Ethernet switch 210 of the parent device 2p does not read the image data of the parent device 2p, the signal for reading the image data is not communicated with the main board 21 of the parent device 2p, and the signal for reading the image data is the connection connector of the parent device 2p Then, the data is input to the Ethernet switch 210 of the slave unit 2q (1) via the connection connector 211 of the slave unit 2q (1).
子機2q(1)のイーサネットスイッチ210においても、親機2pと同様、子機2q(1)の画像データを読み出すわけではないので、子機2q(1)のメイン基板21とはデータ通信することなく、画像データを読み出す信号は、子機2q(1)より親機2pから離れている一の連結コネクタ211を経由し、子機2q(2)の連結コネクタ211を経て、子機2q(2)のイーサネットスイッチ210に入力される。子機2q(2)のイーサネットスイッチ210では、子機2q(2)の画像データの読み出しであると判定し、子機2q(2)のメイン基板21に外部のコンピュータ3からの画像データを読み出す信号を送信する。子機2q(2)のメイン基板21内の画像データ記憶部205に記憶された画像データは、同じ経路をたどって外部のコンピュータ3に送信される。 Similarly to the master unit 2p, the Ethernet switch 210 of the slave unit 2q (1) does not read the image data of the slave unit 2q (1), and therefore performs data communication with the main board 21 of the slave unit 2q (1). Instead, the signal for reading the image data passes through the connection connector 211 of the child device 2q (2) via the one connection connector 211 that is further away from the parent device 2p than the child device 2q (1), and passes through the child device 2q (2). 2) to the Ethernet switch 210. The Ethernet switch 210 of the slave unit 2q (2) determines that the image data of the slave unit 2q (2) is to be read, and reads the image data from the external computer 3 to the main board 21 of the slave unit 2q (2). Send a signal. The image data stored in the image data storage unit 205 in the main board 21 of the slave unit 2q (2) is transmitted to the external computer 3 along the same path.
画像データは、子機2q(2)のイーサネットスイッチ210、連結コネクタ211、子機2q(1)の親機2pから離れている位置の連結コネクタ211、イーサネットスイッチ210、親機2pに近い位置の連結コネクタ211、親機2pの連結コネクタ211、イーサネットスイッチ210、イーサネットコネクタ214を経て、外部のコンピュータ3に送信される。このとき、接続された子機2q(2)以外のコントローラ2のメイン基板21には、画像データは送信されない。 The image data includes the Ethernet switch 210 of the slave unit 2q (2), the connection connector 211, the connection connector 211 located away from the master unit 2p of the slave unit 2q (1), the Ethernet switch 210, and the position close to the master unit 2p. The data is transmitted to the external computer 3 via the connection connector 211, the connection connector 211 of the parent device 2 p, the Ethernet switch 210, and the Ethernet connector 214. At this time, image data is not transmitted to the main board 21 of the controller 2 other than the connected slave unit 2q (2).
もちろん、最新の画像データだけではなく、画像データ記憶部205に記憶されている過去の画像データ及び欠陥の有無等の判定結果を表示するよう要求することができる。 Of course, it is possible to request not only the latest image data but also display the past image data stored in the image data storage unit 205 and the determination results such as the presence or absence of defects.
以上のように本実施の形態1によれば、検査対象物を撮像する撮像部12及び該検査対象物に光を照射する照明部11を有する撮像装置1と、撮像装置1の撮像部12で取得した画像データに対して画像処理を実行し、検査対象物の良否を判定するコントローラ2とを別個に備えるので、撮像装置1自体を小型化することができ、互いに隣接して配置する場合であっても、検査対象物の近辺に撮像装置1を配置するための小スペースさえあれば配置することができるので、配置する位置の制約が少ない。また、コントローラ2の少なくとも親機2pにのみ、外部のコンピュータ3あるいは表示装置4とデータ通信することが可能なイーサネットコネクタ(通信インタフェース)214を備えており、子機2qは、少なくとも親機2pのイーサネットコネクタ(通信インタフェース)214を介して外部のコンピュータ3あるいは表示装置4とデータ通信する。したがって、子機2qは、親機2pの演算処理負荷を増大させることなく、独立して外部のコンピュータ3あるいは表示装置4とデータ通信することができる。さらに、外部のコンピュータ3あるいは表示装置4とのデータ通信に用いるイーサネットコネクタ(通信インタフェース)214と接続されるケーブル類、例えばイーサネットケーブル23は、少なくとも親機2pにのみ備えているので、複数の画像処理センサを用いる場合であってもケーブル類の配線が煩雑になることがない。連結された複数の画像処理センサの撮像装置1で取得した画像データは、イーサネットケーブル23を介して外部のコンピュータ3あるいは表示装置4へ送信することができる。 As described above, according to the first embodiment, the imaging device 12 including the imaging unit 12 that images the inspection object and the illumination unit 11 that irradiates the inspection object with light, and the imaging unit 12 of the imaging device 1. Since the image processing is performed on the acquired image data and the controller 2 that determines the quality of the inspection target is separately provided, the imaging device 1 itself can be downsized and arranged adjacent to each other. Even if it exists, since it can arrange | position if there is only a small space for arrange | positioning the imaging device 1 in the vicinity of a test subject, there are few restrictions on the position to arrange | position. Further, only at least the master unit 2p of the controller 2 is provided with an Ethernet connector (communication interface) 214 capable of data communication with the external computer 3 or the display device 4, and the slave unit 2q has at least the master unit 2p. Data communication is performed with the external computer 3 or the display device 4 via the Ethernet connector (communication interface) 214. Accordingly, the slave unit 2q can independently perform data communication with the external computer 3 or the display device 4 without increasing the processing load on the master unit 2p. Further, since the cables connected to the Ethernet connector (communication interface) 214 used for data communication with the external computer 3 or the display device 4, for example, the Ethernet cable 23 are provided only at least in the master unit 2p, a plurality of images are provided. Even when the processing sensor is used, the wiring of the cables does not become complicated. Image data acquired by the imaging devices 1 of a plurality of connected image processing sensors can be transmitted to the external computer 3 or the display device 4 via the Ethernet cable 23.
図10は、本発明の実施の形態1に係る画像処理センサのコントローラ2のイーサネットスイッチ210の接続形態を示す模式回路図である。図10に示すように、本実施の形態1では、隣接するコントローラ2のイーサネットスイッチ210間は信号線で接続され、絶縁素子であるパルストランスを必要とせず、イーサネットスイッチ210間にパルストランスが接続されていない。したがって、部品点数を少なくすることができるので、製造コストを低減することができるとともに、配置によってはコントローラ2を小型化することも可能となる。パルストランスは、外部のコンピュータ3あるいは表示装置4とデータ通信する場合には、ノイズ耐性を向上させるという効果を奏することができる。しかし、本実施の形態1におけるイーサネットスイッチ210は、内部のデータ通信のみに使用するので、あえて設ける必要性がない。したがって、その分製造コストの低減を図ることができる。 FIG. 10 is a schematic circuit diagram showing a connection form of the Ethernet switch 210 of the controller 2 of the image processing sensor according to the first embodiment of the present invention. As shown in FIG. 10, in the first embodiment, the Ethernet switches 210 of the adjacent controllers 2 are connected by signal lines, and a pulse transformer as an insulating element is not required, and a pulse transformer is connected between the Ethernet switches 210. It has not been. Therefore, since the number of parts can be reduced, the manufacturing cost can be reduced, and the controller 2 can be downsized depending on the arrangement. The pulse transformer has an effect of improving noise resistance when data communication is performed with the external computer 3 or the display device 4. However, since the Ethernet switch 210 in the first embodiment is used only for internal data communication, there is no need to provide it. Accordingly, the manufacturing cost can be reduced accordingly.
(実施の形態2)
本発明の実施の形態2に係る画像処理センサの構成は、実施の形態1と同様であることから、同一又は類似の機能を有する構成要素については同一の符号を付することで詳細な説明を省略する。本実施の形態2は、各コントローラ2での処理結果を、親機(一のコントローラ)2pに一括して記憶する点で、実施の形態1とは相違する。
(Embodiment 2)
Since the configuration of the image processing sensor according to the second embodiment of the present invention is the same as that of the first embodiment, the same or similar functions are denoted by the same reference numerals for detailed description. Omitted. The second embodiment is different from the first embodiment in that the processing results in each controller 2 are stored together in the parent device (one controller) 2p.
図11は、本発明の実施の形態2に係る画像処理センサのコントローラ2のハードウェア構成を示すブロック図である。図11では、親機として機能する一のコントローラ2p及び子機として機能する他のコントローラ2qとが隣接して接続されており、他のコントローラ2qがさらに直列に連続して接続されている構成を示している。本実施の形態2では、親機である一のコントローラ2pは、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等で構成されたメイン基板21に、連結コネクタ211、撮像装置コネクタ212、I/Oコネクタ213、イーサネットコネクタ214、及び電源端子215が接続されている。また、子機である他のコントローラ2qは、メイン基板21に、連結コネクタ211、撮像装置コネクタ212、及びI/Oコネクタ213が接続されているが、親機である一のコントローラ2pとは異なり、イーサネットコネクタ214、及び電源端子215が設けられていない。つまり、イーサネットコネクタ214は、画像処理の処理結果を一括して記憶する画像処理結果記憶部206を設けてある親機2pのみに備えている。また、実施の形態2における子機である他のコントローラ2qは、実施の形態1における子機である他のコントローラ2qと比べて、画像処理結果記憶部206を備えておらず、装置間通信制御部220を備えている点で相違する。 FIG. 11 is a block diagram showing a hardware configuration of the controller 2 of the image processing sensor according to the second embodiment of the present invention. In FIG. 11, one controller 2p that functions as a master unit and another controller 2q that functions as a slave unit are connected adjacently, and the other controllers 2q are further connected in series. Show. In the second embodiment, one controller 2p as a master unit is connected to a main board 21 composed of a microcomputer, FPGA, DSP, gate array, etc., with a connector 211, an imaging device connector 212, and an I / O connector 213. The Ethernet connector 214 and the power terminal 215 are connected. In addition, the other controller 2q that is the slave unit is connected to the main board 21 with the connection connector 211, the imaging device connector 212, and the I / O connector 213, but is different from the one controller 2p that is the master unit. The Ethernet connector 214 and the power supply terminal 215 are not provided. That is, the Ethernet connector 214 is provided only in the parent device 2p provided with the image processing result storage unit 206 that collectively stores the processing results of the image processing. Further, the other controller 2q that is the slave unit in the second embodiment does not include the image processing result storage unit 206 and is different from the other controller 2q that is the slave unit in the first embodiment, and controls inter-device communication control. The difference is that a portion 220 is provided.
なお、メイン基板21は、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等の単体で構成することに限定されるものではなく、例えばFPGAとDSP、DSPとゲートアレイのように組み合わせて構成しても良いし、複数のDSPで構成して並列処理しても良い。メイン基板21は、機能ブロックとしてトリガ制御部201、I/O制御部202、相互干渉制御部203、画像処理部204、画像データ記憶部205、画像処理結果記憶部206、イーサネット通信制御部207、設定記憶部208、撮像装置通信制御部209、装置間通信制御部220等を備えている。 The main board 21 is not limited to a single unit such as a microcomputer, an FPGA, a DSP, and a gate array, and may be configured by combining, for example, an FPGA and a DSP and a DSP and a gate array. However, it may be constituted by a plurality of DSPs for parallel processing. The main board 21 includes, as function blocks, a trigger control unit 201, an I / O control unit 202, a mutual interference control unit 203, an image processing unit 204, an image data storage unit 205, an image processing result storage unit 206, an Ethernet communication control unit 207, A setting storage unit 208, an imaging device communication control unit 209, an inter-device communication control unit 220, and the like are provided.
少なくとも親機2pの画像処理結果記憶部206は、子機2qで画像処理された画像データ及びパターン検索処理等の処理結果も含めて一括して記憶する。コントローラ2間(親機−親機間、子機−子機間)の画像データ及び処理結果の送受信は、装置間通信制御部220を介して実行される。 At least the image processing result storage unit 206 of the parent device 2p collectively stores the image data processed by the child device 2q and processing results such as pattern search processing. Transmission and reception of image data and processing results between the controllers 2 (between the parent device and the parent device and between the child device and the child device) are executed via the inter-device communication control unit 220.
イーサネット通信制御部207は、イーサネット通信を制御し、画像データ記憶部205に記憶されている画像データ、又は画像処理結果記憶部206に記憶されている処理結果等の外部のコンピュータ3あるいは表示装置4への出力、設定データの送受信等を実行する。設定記憶部208は、例えばIPアドレス、MACアドレス、相互干渉防止機能の設定データ等の設定情報を記憶する。 The Ethernet communication control unit 207 controls Ethernet communication, and external computer 3 or display device 4 such as image data stored in the image data storage unit 205 or processing results stored in the image processing result storage unit 206. Executes output and transmission / reception of setting data. The setting storage unit 208 stores setting information such as an IP address, a MAC address, and setting data for a mutual interference prevention function.
本実施の形態2では、イーサネットスイッチ210は備えていない。少なくとも親機2pに一括して記憶されている処理結果を、外部のコンピュータ3あるいは表示装置4へ送信すれば足りるからである。 In the second embodiment, the Ethernet switch 210 is not provided. This is because it is sufficient to transmit the processing results stored at least in the master unit 2p to the external computer 3 or the display device 4.
したがって、連結コネクタ211は、隣接するコントローラ2を連結して、例えば相互干渉トリガ信号等の制御信号、画像データ等の他、子機2qで画像処理された処理結果の送受信経路としても機能する。そして電力も、連結コネクタ211を介して電源端子215からそれぞれの子機2qへ供給される。 Therefore, the connection connector 211 connects adjacent controllers 2 and functions as a transmission / reception path for processing results obtained by image processing by the slave unit 2q in addition to control signals such as a mutual interference trigger signal and image data. And electric power is also supplied to each subunit | mobile_unit 2q from the power supply terminal 215 via the connection connector 211. FIG.
イーサネットコネクタ214は、少なくとも親機2pに設ける。イーサネットコネクタ214は、メイン基板21と接続されており、子機2qが外部のコンピュータ3あるいは表示装置4とデータ通信する場合には、イーサネットコネクタ214を介する。すなわち、外部のコンピュータ3あるいは表示装置4から親機2pに対して画像データ取得の要求があった場合には、親機2pが子機2qから画像データを取得し、親機2pに集約された子機2qの画像データを、一括して外部のコンピュータ3へ出力する。 The Ethernet connector 214 is provided at least in the master unit 2p. The Ethernet connector 214 is connected to the main board 21. When the slave unit 2q performs data communication with the external computer 3 or the display device 4, the Ethernet connector 214 is passed through the Ethernet connector 214. That is, when there is a request for image data acquisition from the external computer 3 or the display device 4 to the master unit 2p, the master unit 2p acquires the image data from the slave unit 2q and is aggregated in the master unit 2p. The image data of the slave unit 2q is output to the external computer 3 at once.
なお、実施の形態1と同様、電源端子215は、親機2pのみに備える。子機2qへは、連結コネクタ211を介して親機2pから電力を供給する。このような構成とすることで、複数の画像処理センサを用いる場合であっても、イーサネットケーブル23あるいは電源ケーブル等のケーブル類の配線を簡略化することができ、画像処理センサの付け替えや交換等を容易に行うことができる。 As in the first embodiment, the power supply terminal 215 is provided only in the parent device 2p. Power is supplied from the parent device 2p to the child device 2q via the connection connector 211. With such a configuration, even when a plurality of image processing sensors are used, the wiring of cables such as the Ethernet cable 23 or the power supply cable can be simplified, and replacement or replacement of the image processing sensor is possible. Can be easily performed.
以上のように本実施の形態2によれば、少なくとも親機2pは、イーサネットコネクタ(通信インタフェース)214を経由して外部のコンピュータ3(表示装置4)とデータ通信するので、記憶されている処理結果を、子機2qにおける処理結果も含めて、任意のタイミングで一括して外部のコンピュータ3(表示装置4)へ送信することができる。 As described above, according to the second embodiment, at least the master unit 2p performs data communication with the external computer 3 (display device 4) via the Ethernet connector (communication interface) 214. The results can be transmitted to the external computer 3 (display device 4) in a batch at any timing including the processing results in the slave unit 2q.
なお、本実施の形態2では、接続対象となるコントローラ2の一覧表示において、イーサネット通信に必要なMACアドレス、IPアドレス等は、少なくとも親機2pにのみ必要であり、子機2qには不要である。図12は、本発明の実施の形態2に係る画像処理センサシステムの外部のコンピュータ3で表示されるコントローラ2の一覧の例示図である。 In the second embodiment, in the list display of the controllers 2 to be connected, the MAC address, IP address, etc. necessary for Ethernet communication are only required for at least the master unit 2p, and not required for the slave unit 2q. is there. FIG. 12 is a view showing an example of a list of controllers 2 displayed on the computer 3 outside the image processing sensor system according to the second embodiment of the present invention.
図12の例では、実施の形態1と同様、イーサネットコネクタ214及び電源端子215を備えるコントローラ2を親機2p、それ以外のコントローラ2を子機2qとしている。親機2pには、撮像装置1の型式、MACアドレス、IPアドレス、サブネットマスク、デフォルトゲートウェイを表示する。それに対して、子機2qには撮像装置1の型式だけで足りる。したがって、画像処理センサの付け替えや交換等を行った場合であっても、設定情報の更新量が少なくて済む。 In the example of FIG. 12, as in the first embodiment, the controller 2 having the Ethernet connector 214 and the power supply terminal 215 is the master unit 2p, and the other controller 2 is the slave unit 2q. The master device 2p displays the type, MAC address, IP address, subnet mask, and default gateway of the imaging device 1. On the other hand, only the model of the imaging device 1 is sufficient for the slave unit 2q. Accordingly, even when the image processing sensor is replaced or exchanged, the amount of setting information to be updated is small.
(実施の形態3)
本発明の実施の形態3に係る画像処理センサの構成は、実施の形態1及び2とほぼ同様であることから、同一又は類似の機能を有する構成要素については同一の符号を付することで詳細な説明を省略する。本実施の形態3は、外部のコンピュータ3あるいは表示装置4とデータ通信するための通信ユニットを、コントローラ2とは別個に備えている点で、実施の形態1及び2とは相違する。
(Embodiment 3)
Since the configuration of the image processing sensor according to the third embodiment of the present invention is almost the same as that of the first and second embodiments, the same or similar functions are denoted by the same reference numerals in detail. The detailed explanation is omitted. The third embodiment is different from the first and second embodiments in that a communication unit for data communication with an external computer 3 or display device 4 is provided separately from the controller 2.
図13は、本発明の実施の形態3に係る画像処理センサのハードウェア構成を示すブロック図である。図13では、親機として機能する一のコントローラ2p及び子機として機能する他のコントローラ2qとが隣接して接続されており、他のコントローラ2qがさらに直列に連続して接続されている。連続して接続されている他のコントローラ2qの最後(又は中途)に通信ユニット5が連結されている。 FIG. 13 is a block diagram showing a hardware configuration of an image processing sensor according to Embodiment 3 of the present invention. In FIG. 13, one controller 2p functioning as a master unit and another controller 2q functioning as a slave unit are connected adjacent to each other, and the other controllers 2q are further connected in series. The communication unit 5 is coupled to the last (or midway) of the other controllers 2q that are continuously connected.
図13において、親機である一のコントローラ2pは、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等で構成されたメイン基板21に、連結コネクタ211、撮像装置コネクタ212、I/Oコネクタ213、及び電源端子215が接続されている。また、子機である他のコントローラ2qは、メイン基板21に、連結コネクタ211、撮像装置コネクタ212、及びI/Oコネクタ213が接続されている。 In FIG. 13, one controller 2p which is a master unit is connected to a main board 21 composed of a microcomputer, FPGA, DSP, gate array, etc., a connection connector 211, an imaging device connector 212, an I / O connector 213, and a power source. Terminal 215 is connected. The other controller 2q as a slave unit is connected to the main board 21 with a connection connector 211, an imaging device connector 212, and an I / O connector 213.
なお、メイン基板21は、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等の単体で構成することに限定されるものではなく、例えばFPGAとDSP、DSPとゲートアレイのように組み合わせて構成しても良いし、複数のDSPで構成して並列処理しても良い。メイン基板21は、機能ブロックとしてトリガ制御部201、I/O制御部202、相互干渉制御部203、画像処理部204、画像データ記憶部205、画像処理結果記憶部206、設定記憶部208、撮像装置通信制御部209、装置間通信制御部220等を備えている。 The main board 21 is not limited to a single unit such as a microcomputer, an FPGA, a DSP, and a gate array, and may be configured by combining, for example, an FPGA and a DSP and a DSP and a gate array. However, it may be constituted by a plurality of DSPs for parallel processing. The main board 21 includes, as functional blocks, a trigger control unit 201, an I / O control unit 202, a mutual interference control unit 203, an image processing unit 204, an image data storage unit 205, an image processing result storage unit 206, a setting storage unit 208, an imaging A device communication control unit 209, an inter-device communication control unit 220, and the like are provided.
コントローラ2間の画像データ及び処理結果の送受信は、装置間通信制御部220を介して実行され、外部のコンピュータ3(表示装置4)とのデータ通信は、通信ユニット5を経由して行われる。 Transmission and reception of image data and processing results between the controllers 2 are performed via the inter-device communication control unit 220, and data communication with the external computer 3 (display device 4) is performed via the communication unit 5.
また、通信ユニット5は、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等で構成された通信基板51に、連結コネクタ504、イーサネットコネクタ505が接続されている。 In the communication unit 5, a connection connector 504 and an Ethernet connector 505 are connected to a communication board 51 constituted by a microcomputer, FPGA, DSP, gate array, and the like.
また、通信基板51は、機能ブロックとしてイーサネット通信制御部501、設定記憶部502、装置間通信制御部503等を備えている。イーサネット通信制御部501は、イーサネット通信を制御し、接続されているコントローラ2ごとに画像データ記憶部205に記憶されている画像データ、又は画像処理結果記憶部206に記憶されている処理結果等の外部のコンピュータ3あるいは表示装置4への出力、設定データの送受信等を実行する。設定記憶部502は、例えば各コントローラ2のIPアドレス、MACアドレス、相互干渉防止機能の設定データ等の設定情報を一括して記憶する。装置間通信制御部503は、親機2p及び子機2qとの間のデータ通信を制御し、親機2p及び子機2qとの間で画像データ及び処理結果の送受信を行う。 The communication board 51 includes an Ethernet communication control unit 501, a setting storage unit 502, an inter-device communication control unit 503, and the like as functional blocks. The Ethernet communication control unit 501 controls Ethernet communication, such as image data stored in the image data storage unit 205 for each connected controller 2 or processing results stored in the image processing result storage unit 206. Output to an external computer 3 or display device 4, transmission / reception of setting data, and the like are executed. The setting storage unit 502 collectively stores setting information such as, for example, the IP address, MAC address, and mutual interference prevention function setting data of each controller 2. The inter-device communication control unit 503 controls data communication between the parent device 2p and the child device 2q, and transmits and receives image data and processing results between the parent device 2p and the child device 2q.
連結コネクタ504は、隣接するコントローラ2と連結して、例えば相互干渉トリガ信号等の制御信号、画像データ等の他、子機2qで画像処理された処理結果の送受信経路としても機能する。そして親機2pの電源端子215から供給される電力も、連結コネクタ504を介して通信ユニット5へ供給される。 The connection connector 504 is connected to the adjacent controller 2 and functions as a transmission / reception path for processing results obtained by image processing by the slave unit 2q in addition to control signals such as a mutual interference trigger signal and image data. The power supplied from the power supply terminal 215 of the parent device 2p is also supplied to the communication unit 5 through the connection connector 504.
イーサネットコネクタ(他の通信インタフェース)505は、通信ユニット5にのみ設ける。イーサネットコネクタ505は、通信基板51と接続されており、コントローラ2が外部のコンピュータ3あるいは表示装置4とデータ通信する場合には、通信ユニット5の通信基板51による処理が必要となる。 The Ethernet connector (other communication interface) 505 is provided only in the communication unit 5. The Ethernet connector 505 is connected to the communication board 51. When the controller 2 performs data communication with the external computer 3 or the display device 4, processing by the communication board 51 of the communication unit 5 is required.
なお、実施の形態1及び2と同様、電源端子215は、少なくとも親機2pにのみ備える。子機2q及び通信ユニット5へは、連結コネクタ211を介して、親機2pから電力を供給する。親機2pから電力を供給することで、通信ユニット5を備えていない場合であっても、親機2p、子機2qは画像処理センサとして動作させることができる。このようにすることで、複数の画像処理センサを用いる場合であっても、通信ケーブルあるいは電源ケーブル等のケーブル類の配線を簡略化することができ、画像処理センサの付け替えや交換等を容易に行うことができる。なお、後述する相互干渉防止トリガ信号は、通信ユニット5側から送信しても良いし、親機2p側から送信しても良い。 As in the first and second embodiments, the power supply terminal 215 is provided only at least in the parent device 2p. Power is supplied from the parent device 2p to the child device 2q and the communication unit 5 via the connection connector 211. By supplying power from the parent device 2p, even if the communication unit 5 is not provided, the parent device 2p and the child device 2q can be operated as image processing sensors. In this way, even when a plurality of image processing sensors are used, the wiring of cables such as communication cables or power cables can be simplified, and replacement and replacement of the image processing sensors can be easily performed. It can be carried out. A mutual interference prevention trigger signal to be described later may be transmitted from the communication unit 5 side or from the parent device 2p side.
以上のように本実施の形態3によれば、外部のコンピュータ3(表示装置4)とデータ通信するイーサネットコネクタ(他の通信インタフェース)505を有する通信ユニット5を別個に備えるので、画像処理センサは、通信ユニット5の通信インタフェースを経由して、外部のコンピュータ3とデータ通信することができる。 As described above, according to the third embodiment, the image processing sensor includes the communication unit 5 having the Ethernet connector (other communication interface) 505 that performs data communication with the external computer 3 (display device 4). The data communication with the external computer 3 can be performed via the communication interface of the communication unit 5.
なお、本実施の形態3では、接続対象となるコントローラ2の一覧表示において、イーサネット通信に必要なMACアドレス、IPアドレス等は、通信ユニット5にのみ必要であり、親機2pにも、子機2qにも不要である。図14は、本発明の実施の形態3に係る画像処理センサシステムの外部のコンピュータ3で表示されるコントローラ2の一覧の例示図である。 In the third embodiment, in the list display of the controllers 2 to be connected, the MAC address, IP address, etc. necessary for Ethernet communication are required only for the communication unit 5, and the master unit 2p is also provided with the slave unit. It is not necessary for 2q. FIG. 14 is an exemplary view of a list of controllers 2 displayed on the computer 3 outside the image processing sensor system according to the third embodiment of the present invention.
図14の例では、電源端子215を備えるコントローラ2を親機2p、それ以外のコントローラ2を子機2qとしている。通信ユニット5には、通信ユニット5の型式、撮像装置1の型式、MACアドレス、IPアドレス、サブネットマスク、デフォルトゲートウェイを表示する。それに対して、コントローラ2には、親機2pも子機2qも撮像装置1の型式だけで足りる。したがって、画像処理センサの付け替えや交換等を行った場合であっても、設定情報の更新量が少なくて済む。 In the example of FIG. 14, the controller 2 having the power supply terminal 215 is the parent device 2 p and the other controller 2 is the child device 2 q. The communication unit 5 displays the type of the communication unit 5, the type of the imaging device 1, the MAC address, the IP address, the subnet mask, and the default gateway. On the other hand, only the type of the imaging device 1 is sufficient for the controller 2 for both the parent device 2p and the child device 2q. Accordingly, even when the image processing sensor is replaced or exchanged, the amount of setting information to be updated is small.
(実施の形態4)
本発明の実施の形態4は、上述した実施の形態1乃至3に示す画像処理センサシステムにおいて相互干渉を防止する方法に関するものである。図15は、本発明の実施の形態4に係る画像処理センサシステムの撮像装置1の照明の照射領域の重なり状態を示す図である。撮像装置1を小型化した場合、撮像装置1を互いに近接させて配置することが多くなる。撮像装置1自体は小型化することはできるが、撮像領域及び照射領域が小さくならない場合には、照射領域が重なり合う現象が生じやすくなる。この場合、一の撮像装置1の照射領域161と他の撮像装置1の照射領域162とが近接するので、両者の間に照射領域が互いに重なり合う領域163が生じる。
(Embodiment 4)
The fourth embodiment of the present invention relates to a method for preventing mutual interference in the image processing sensor system shown in the first to third embodiments. FIG. 15 is a diagram illustrating an overlapping state of illumination areas of the imaging device 1 of the image processing sensor system according to Embodiment 4 of the present invention. When the imaging device 1 is downsized, the imaging devices 1 are often arranged close to each other. Although the imaging apparatus 1 itself can be reduced in size, when the imaging region and the irradiation region are not reduced, a phenomenon in which the irradiation regions overlap is likely to occur. In this case, since the irradiation region 161 of one imaging device 1 and the irradiation region 162 of another imaging device 1 are close to each other, a region 163 in which the irradiation regions overlap with each other is generated.
通常、照明の照射領域内に撮像装置1の撮像領域が収まるように、照射領域と撮像領域とを設定する。隣接して配置された他の撮像装置1の照射領域が、一の撮像装置1の照射領域と重なることで、照射領域が互いに重なり合う領域163が生じた場合、撮像装置1による撮像領域に照射領域が互いに重なり合う領域163が含まれる現象が生じうる。 Usually, the irradiation region and the imaging region are set so that the imaging region of the imaging device 1 is within the illumination irradiation region. When an irradiation region of another imaging device 1 arranged adjacent to the irradiation region of one imaging device 1 is overlapped, an area 163 where the irradiation regions overlap with each other is generated. A phenomenon may occur in which the regions 163 that overlap each other are included.
それぞれの画像処理センサは、独立して一つの画像処理センサとして機能するので、隣接する画像処理センサを含め、自らのタイミングで照明による検査対象物への照射、照明の消灯、撮像、画像処理を行うよう動作させる。近接して配置された画像処理センサの照明領域が重なる場合であっても、それぞれの照明による照射タイミングが合わない限り、照射領域が互いに重なり合う領域163は生じない。 Since each image processing sensor independently functions as one image processing sensor, including the adjacent image processing sensors, irradiation of the inspection object by illumination, turning off the illumination, imaging, and image processing are performed at their own timing. Operate to do. Even when the illumination regions of the image processing sensors arranged close to each other overlap, the region 163 where the illumination regions overlap with each other does not occur unless the illumination timings of the respective illuminations match.
このような照射領域が互いに重なり合う領域163が撮像装置1による撮像領域に含まれる場合は、照明が明るすぎていわゆる白飛びが発生し、撮像される画像の品質を高く維持することが困難である。また、一の画像処理センサの撮像領域に、他の画像処理センサの照明が照射された場合には、撮像時に他の画像処理センサの照明により照射された部分の明るさが強すぎるため、検査対象物の正常な画像データを取得することが困難となる。 When such an area 163 where the irradiation areas overlap each other is included in the imaging area by the imaging apparatus 1, the illumination is too bright, so-called whiteout occurs, and it is difficult to maintain high quality of the captured image. . In addition, when the imaging area of one image processing sensor is illuminated with illumination from another image processing sensor, the brightness of the part illuminated by the illumination of the other image processing sensor during imaging is too strong. It becomes difficult to obtain normal image data of the object.
本実施の形態4では、撮像装置1の配置に依存することなく、このような照射領域が互いに重なり合う領域163が生じないよう、撮像装置1の照明部11の照射及び/又は消灯のタイミングと、隣接する、あるいは近接して配置された撮像装置1の撮像タイミングとを調整するための相互干渉防止制御を行う。 In the fourth embodiment, the irradiation and / or extinguishing timing of the illuminating unit 11 of the imaging device 1 does not depend on the arrangement of the imaging device 1 so that such a region 163 where the irradiation regions overlap with each other does not occur, Mutual interference prevention control is performed for adjusting the imaging timing of the imaging devices 1 that are adjacent or arranged close to each other.
本発明の実施の形態4に係る画像処理センサの構成自体は、実施の形態1乃至3と同様であることから、同一の機能を有する構成要素については同一の符号を付することにより詳細な説明は省略する。実施の形態1乃至3のいずれの構成であっても良いが、コントローラ2の機能ブロックの相互干渉制御部203を機能させる点に特徴を有する。 Since the configuration itself of the image processing sensor according to Embodiment 4 of the present invention is the same as that of Embodiments 1 to 3, detailed description will be given by attaching the same reference numerals to components having the same functions. Is omitted. Any configuration of the first to third embodiments may be used, but the feature is that the mutual interference control unit 203 of the functional block of the controller 2 is made to function.
図16は、本発明の実施の形態4に係る画像処理センサのコントローラ2のハードウェア構成を示すブロック図である。図16にはあえて図示していないが、本実施の形態4に係る画像処理センサの少なくとも親機(一のコントローラ)2pにおいても、実施の形態1と同様にマイクロコンピュータ、FPGA、DSP、ゲートアレイ等で構成されたメイン基板21に、イーサネットスイッチ210、連結コネクタ211、撮像装置コネクタ212、I/Oコネクタ213、電源端子215が接続されている。また、他のコントローラ2では、イーサネットスイッチ210、連結コネクタ211、撮像装置コネクタ212、I/Oコネクタ213が接続されている。 FIG. 16 is a block diagram illustrating a hardware configuration of the controller 2 of the image processing sensor according to the fourth embodiment of the present invention. Although not shown in FIG. 16, at least the master unit (one controller) 2p of the image processing sensor according to the fourth embodiment is also a microcomputer, FPGA, DSP, and gate array as in the first embodiment. The Ethernet switch 210, the connection connector 211, the imaging device connector 212, the I / O connector 213, and the power supply terminal 215 are connected to the main board 21 configured by the above. In the other controller 2, an Ethernet switch 210, a connection connector 211, an imaging device connector 212, and an I / O connector 213 are connected.
なお、メイン基板21は、マイクロコンピュータ、FPGA、DSP、ゲートアレイ等の単体で構成することに限定されるものではなく、例えばFPGAとDSP、DSPとゲートアレイのように組み合わせて構成しても良いし、複数のDSPで構成して並列処理しても良い。メイン基板21は、機能ブロックとしてトリガ制御部201、I/O制御部202、相互干渉制御部203、画像処理部204、画像データ記憶部205、画像処理結果記憶部206、イーサネット通信制御部207、設定記憶部208、撮像装置通信制御部209等を備えている。実施の形態1と同一の符号を付している機能ブロックについては詳細な説明は省略する。 The main board 21 is not limited to a single unit such as a microcomputer, an FPGA, a DSP, and a gate array, and may be configured by combining, for example, an FPGA and a DSP and a DSP and a gate array. However, it may be constituted by a plurality of DSPs for parallel processing. The main board 21 includes, as function blocks, a trigger control unit 201, an I / O control unit 202, a mutual interference control unit 203, an image processing unit 204, an image data storage unit 205, an image processing result storage unit 206, an Ethernet communication control unit 207, A setting storage unit 208, an imaging device communication control unit 209, and the like are provided. Detailed description of functional blocks having the same reference numerals as those in the first embodiment will be omitted.
相互干渉制御部203は、相互干渉防止トリガ信号を、隣接して接続されているコントローラ2へ送信する。つまり、隣接するコントローラ2は、互いに遅延時間経過、照明点灯、撮像、照明消灯の一連の処理が完了した時点で、相互干渉防止トリガ信号を生成して送信する。 The mutual interference control unit 203 transmits a mutual interference prevention trigger signal to the controller 2 connected adjacently. That is, the adjacent controllers 2 generate and transmit a mutual interference prevention trigger signal when a series of processing of delay time elapse, lighting on, imaging, and lighting off is completed.
図16の例では、4つのコントローラ2a、2b、2c、2dを、第1グループ2Aと第2グループ2Bとにグループ化している。第1グループ2Aには、コントローラ2a、2bが属し、第2グループ2Bには、コントローラ2c、2dが属する。 In the example of FIG. 16, four controllers 2a, 2b, 2c, and 2d are grouped into a first group 2A and a second group 2B. Controllers 2a and 2b belong to the first group 2A, and controllers 2c and 2d belong to the second group 2B.
相互干渉防止トリガ信号Trg3により、画像処理センサのコントローラ2、あるいはグループ単位で照射及び撮像のタイミングを、相互干渉しないように制御する。本実施の形態4では、複数のスイッチSW1、SW2、SW3を切り替えることで、グループ単位で相互干渉防止機能のオンオフを切り替え、トリガ信号Trg1〜3により照射及び撮像のタイミングを制御している。 By the mutual interference prevention trigger signal Trg3, the timing of irradiation and imaging is controlled so as not to interfere with each other in the controller 2 of the image processing sensor or in units of groups. In the fourth embodiment, by switching the plurality of switches SW1, SW2, and SW3, the on / off of the mutual interference prevention function is switched in units of groups, and the timing of irradiation and imaging is controlled by the trigger signals Trg1 to Trg3.
例えばグループ単位で相互干渉防止機能をオン状態にするか否かは、複数のスイッチSW1、SW2、SW3を切り替えることにより制御することができる。図17は、本発明の実施の形態4に係る画像処理センサのコントローラ2のスイッチ切り替え処理の手順を示すフローチャートである。 For example, whether or not the mutual interference prevention function is turned on for each group can be controlled by switching a plurality of switches SW1, SW2, and SW3. FIG. 17 is a flowchart showing the procedure of the switch switching process of the controller 2 of the image processing sensor according to the fourth embodiment of the present invention.
図17において、画像処理センサのコントローラ2は、外部のコンピュータ3からの情報に基づいて、相互干渉防止機能をオフにするか否かを判断する(ステップS1701)。ここで、相互干渉防止機能をオフにするとは、オフにするか否かを判断するコントローラ2と、制御対象となるコントローラ2とが、別のグループに属する場合を想定している。 In FIG. 17, the controller 2 of the image processing sensor determines whether or not to turn off the mutual interference prevention function based on information from the external computer 3 (step S1701). Here, when the mutual interference prevention function is turned off, it is assumed that the controller 2 that determines whether or not to turn off and the controller 2 to be controlled belong to different groups.
図16の例であれば、コントローラ2bは、親機であるコントローラ2aと同じグループに属するので、相互干渉防止機能はオンにする。また、コントローラ2dは、コントローラ2cと同じグループに属するので、相互干渉防止機能はオンにする。 In the example of FIG. 16, since the controller 2b belongs to the same group as the controller 2a which is the parent device, the mutual interference prevention function is turned on. Since the controller 2d belongs to the same group as the controller 2c, the mutual interference prevention function is turned on.
これに対して、コントローラ2cは、親機2aと接続されているコントローラ2bとは別のグループに属するので、コントローラ2cの相互干渉防止機能はオフにする。 On the other hand, since the controller 2c belongs to a group different from the controller 2b connected to the parent device 2a, the mutual interference prevention function of the controller 2c is turned off.
コントローラ2が、相互干渉防止機能をオフにすると判断した場合(ステップS1701:YES)、コントローラ2は、スイッチSW1をTrg2側に、スイッチSW2をOFFに、スイッチSW3をGND側に、それぞれ切り替える(ステップS1702)。図16の例では、コントローラ2cは相互干渉防止機能がオフになる。 When the controller 2 determines to turn off the mutual interference prevention function (step S1701: YES), the controller 2 switches the switch SW1 to the Trg2 side, the switch SW2 to OFF, and the switch SW3 to the GND side (step). S1702). In the example of FIG. 16, the mutual interference prevention function of the controller 2c is turned off.
コントローラ2が、相互干渉防止機能をオンにすると判断した場合(ステップS1701:NO)、コントローラ2は、スイッチSW1をTrg3側に、スイッチSW2をONに、スイッチSW3をD_RST3側に、それぞれ切り替える(ステップS1703)。図16の例では、コントローラ2b、コントローラ2dは、相互干渉防止機能がオンになる。 When the controller 2 determines to turn on the mutual interference prevention function (step S1701: NO), the controller 2 switches the switch SW1 to the Trg3 side, the switch SW2 to the ON state, and the switch SW3 to the D_RST3 side (step). S1703). In the example of FIG. 16, the mutual interference prevention function is turned on for the controller 2b and the controller 2d.
これにより、相互干渉防止機能を利用したいグループの設定が完了する。不必要に多くのコントローラ2に相互干渉防止機能を設定した場合、相互干渉防止のために他の処理に遅れが生じうる。したがって、必要な範囲内でのみグループを構成し、構成されたグループ内でのみ相互干渉防止機能を機能させる。グループの構成の方法には種々のものがあるが、撮像領域が近い画像処理センサ、撮像装置1が互いに近くに配置されている画像処理センサ、一の照明部11からの照射が他の撮像領域又は照射領域に入りうる画像処理センサ等を一のグループとして構成し、相互干渉しないよう設定することができる。 Thereby, the setting of the group that wants to use the mutual interference prevention function is completed. When the mutual interference prevention function is set in an unnecessarily large number of controllers 2, other processing may be delayed to prevent mutual interference. Therefore, a group is configured only within a necessary range, and the mutual interference prevention function is allowed to function only within the configured group. There are various group configuration methods, but an image processing sensor in which the imaging region is close, an image processing sensor in which the imaging devices 1 are arranged close to each other, and irradiation from one illumination unit 11 is another imaging region. Alternatively, image processing sensors or the like that can enter the irradiation region can be configured as one group and set so as not to interfere with each other.
相互干渉防止機能のオンオフの設定は、外部のコンピュータ3あるいは表示装置4に表示される設定画面から受け付ける。図18は、本発明の実施の形態4に係る画像処理センサシステムの外部のコンピュータ3あるいは表示装置4における相互干渉防止機能のオンオフ(有効/無効)の設定画面の例示図である。図18に示すように、選択された画像処理センサで撮像された画像が検査対象物表示領域181に表示され、ユーザは表示された画像を見て、相互干渉防止機能を有効にするか否かを入力する。 The on / off setting of the mutual interference prevention function is accepted from a setting screen displayed on the external computer 3 or the display device 4. FIG. 18 is a view showing an example of a setting screen for turning on / off (valid / invalidating) the mutual interference prevention function in the computer 3 or display device 4 outside the image processing sensor system according to Embodiment 4 of the present invention. As shown in FIG. 18, an image captured by the selected image processing sensor is displayed in the inspection object display area 181, and the user looks at the displayed image to determine whether or not to enable the mutual interference prevention function. Enter.
具体的には、撮像条件設定領域182において、「トリガ条件」の選択を受け付ける。内部トリガは指定した時間間隔で撮像を開始する設定であり、外部トリガはPLC等から入力されるタイミングで撮像を開始する設定である。トリガ条件の設定の中に、相互干渉防止機能のオンオフを設定する相互干渉防止機能設定ボタン183が表示されている。ユーザは、「有効」ボタン又は「無効」ボタンのいずれかを選択することにより、相互干渉防止機能をオン状態又はオフ状態にすることができる。外部のコンピュータ3あるいは表示装置4で相互干渉防止機能を有効又は無効に設定し、画像処理センサ(コントローラ2)に送信することで、それぞれの画像処理センサは、相互干渉防止機能を有効又は無効に設定される。 Specifically, selection of “trigger condition” is accepted in the imaging condition setting area 182. The internal trigger is a setting for starting imaging at a specified time interval, and the external trigger is a setting for starting imaging at a timing input from a PLC or the like. In the setting of the trigger condition, a mutual interference prevention function setting button 183 for setting on / off of the mutual interference prevention function is displayed. The user can turn on or off the mutual interference prevention function by selecting either the “valid” button or the “invalid” button. By enabling or disabling the mutual interference prevention function on the external computer 3 or the display device 4 and transmitting it to the image processing sensor (controller 2), each image processing sensor enables or disables the mutual interference prevention function. Is set.
なお、相互干渉防止機能のオンオフを、個別の画像処理センサごとに一つずつ設定するのではなく、外部のコンピュータ3あるいは表示装置4に接続された画像処理センサのすべてを一括して設定することもできる。図19は、本発明の実施の形態4に係る画像処理センサシステムの外部のコンピュータ3あるいは表示装置4における相互干渉防止機能のオンオフの一括設定画面の例示図である。 It is not necessary to set the mutual interference prevention function on / off for each individual image processing sensor, but to set all the image processing sensors connected to the external computer 3 or the display device 4 at once. You can also. FIG. 19 is a view showing an example of a batch setting screen for turning on / off the mutual interference prevention function in the computer 3 or the display device 4 outside the image processing sensor system according to Embodiment 4 of the present invention.
図19の例では、親機と子機No.1、No.2、No.3、No.4及びNo.5とが連結されている。図19に示すように、コントローラ2ごとにグループを設定することができる。図19の例では、親機と子機No.1とをグループ1として設定し、グループ1内で相互干渉防止機能を発揮させている。また、親機と子機No.3、No.4、No.5とをグループ3として設定し、子機No.2は、グループ1、3とは別のグループとして設定している。このように、外部のコンピュータ3あるいは表示装置4でグループを設定した後、図19に示す「設定変更」ボタンを選択することで、外部のコンピュータ3あるいは表示装置4から各画像処理センサ(コントローラ2)に相互干渉防止機能を機能させるか否かを設定する信号が送信され、送信された信号に基づいて、コントローラ2が制御信号(相互干渉防止トリガ信号Trg3)の発信を制御する。 In the example of FIG. 1, no. 2, no. 3, no. 4 and no. 5 are connected. As shown in FIG. 19, a group can be set for each controller 2. In the example of FIG. 1 is set as a group 1, and the mutual interference prevention function is exhibited in the group 1. In addition, the master unit and the slave unit No. 3, no. 4, no. 5 are set as group 3, and the slave unit No. 2 is set as a group different from the groups 1 and 3. In this way, after setting a group on the external computer 3 or the display device 4, by selecting a “setting change” button shown in FIG. 19, each image processing sensor (controller 2) is selected from the external computer 3 or the display device 4. ) Is set to determine whether or not the mutual interference prevention function is to function, and the controller 2 controls the transmission of the control signal (mutual interference prevention trigger signal Trg3) based on the transmitted signal.
また、トリガ信号Trg2は、I/Oコネクタ213で受け付けることもできる。これにより、例えばグループAについては、外部のコンピュータ3からトリガ信号Trg1の入力を、グループBについては、I/Oコネクタ213からトリガ信号Trg2の入力を、それぞれ受け付けることができる。 Further, the trigger signal Trg2 can be received by the I / O connector 213. Thus, for example, for group A, the input of the trigger signal Trg1 from the external computer 3 can be received, and for group B, the input of the trigger signal Trg2 from the I / O connector 213 can be received.
例えば、図19の例では、表示順にどのグループに属するかをコントローラ2ごとに設定できるようになっている。すべてのコントローラ2が同一のグループに属するように設定された場合、一のグループ内の各コントローラ2が相互干渉しないよう設定する必要がある。ここで、同一のグループ内に複数のコントローラ2がある場合、一のグループ内で相互干渉防止機能が動作し、一のグループ内の画像処理センサが干渉しないよう相互干渉防止トリガ信号Trg3が送信される。なお、隣接するグループの境目のコントローラ2間、図19の例では、子機No.1と子機No.2との間、子機No.2と子機No.3との間では、相互干渉防止トリガ信号Trg3が伝達されない。グループが別であれば、相互干渉防止する必要がないからである。 For example, in the example of FIG. 19, which group belongs to the display order can be set for each controller 2. When all the controllers 2 are set to belong to the same group, it is necessary to set so that the controllers 2 in one group do not interfere with each other. Here, when there are a plurality of controllers 2 in the same group, the mutual interference prevention function operates in one group, and the mutual interference prevention trigger signal Trg3 is transmitted so that the image processing sensors in one group do not interfere with each other. The Note that, in the example of FIG. 1 and handset No. 2 and the slave unit no. 2 and handset No. 3, the mutual interference prevention trigger signal Trg 3 is not transmitted. This is because there is no need to prevent mutual interference if the groups are different.
つまり、グループとして相互干渉を防止するものではないので、グループ間での相互干渉防止機能をオフに設定することを意味している。また、複数のグループが設定されている場合、グループ間で相互干渉防止機能をオンに設定することを意味している。設定された情報は、コントローラ2ごとに設定記憶部208に記憶される。 In other words, since mutual interference is not prevented as a group, it means that the mutual interference prevention function between the groups is set to off. Further, when a plurality of groups are set, this means that the mutual interference prevention function is set to ON between the groups. The set information is stored in the setting storage unit 208 for each controller 2.
図20は、本発明の実施の形態4に係る画像処理センサのコントローラ2の相互干渉防止処理の手順を示すフローチャートである。図20において、画像処理センサのコントローラ2は、設定記憶部208を照会して、相互干渉防止機能がオフであるか否かを判断する(ステップS2001)。 FIG. 20 is a flowchart showing the procedure of the mutual interference prevention process of the controller 2 of the image processing sensor according to the fourth embodiment of the present invention. In FIG. 20, the controller 2 of the image processing sensor inquires of the setting storage unit 208 and determines whether or not the mutual interference prevention function is off (step S2001).
コントローラ2が、相互干渉防止機能がオフであると判断した場合(ステップS2001:YES)、コントローラ2は、トリガ信号Trg1又はトリガ信号Trg2を受信したか否かを判断する(ステップS2002)。コントローラ2が、まだいずれの信号も受信していないと判断した場合(ステップS2002:NO)、コントローラ2は、受信待ち状態となる。トリガ信号Trg1又はトリガ信号Trg2は、コントローラ2の内部で発生させるトリガ信号であっても良いし、外部から入力されるトリガ信号であっても良い。 When the controller 2 determines that the mutual interference prevention function is off (step S2001: YES), the controller 2 determines whether the trigger signal Trg1 or the trigger signal Trg2 has been received (step S2002). When the controller 2 determines that no signal has been received yet (step S2002: NO), the controller 2 enters a reception waiting state. The trigger signal Trg1 or the trigger signal Trg2 may be a trigger signal generated inside the controller 2, or may be a trigger signal input from the outside.
コントローラ2が、トリガ信号Trg1又はトリガ信号Trg2を受信したと判断した場合(ステップS2002:YES)、コントローラ2は、信号Done3がオンであるか否かを判断する(ステップS2003)。コントローラ2が、信号Done3がオフであると判断した場合(ステップS2003:NO)、コントローラ2は、トリガエラーを発生させ(ステップS2004)、処理をステップS2002へ戻して上述した処理を繰り返す。 When the controller 2 determines that the trigger signal Trg1 or the trigger signal Trg2 is received (step S2002: YES), the controller 2 determines whether or not the signal Done3 is on (step S2003). When the controller 2 determines that the signal Done3 is off (step S2003: NO), the controller 2 generates a trigger error (step S2004), returns the processing to step S2002, and repeats the above-described processing.
コントローラ2が、信号Done3がオンであると判断した場合(ステップS2003:YES)、コントローラ2は、信号D_RST1又は信号D_RST2をオンにし、信号Done2をオフにして(ステップS2005)、処理をステップS2007へ進める。 When the controller 2 determines that the signal Done3 is on (step S2003: YES), the controller 2 turns on the signal D_RST1 or D_RST2, turns off the signal Done2 (step S2005), and the process proceeds to step S2007. Proceed.
コントローラ2が、相互干渉防止機能がオンであると判断した場合(ステップS2001:NO)、コントローラ2は、相互干渉防止トリガ信号Trg3を受信したか否かを判断する(ステップS2006)。コントローラ2が、相互干渉防止トリガ信号Trg3を受信していないと判断した場合(ステップS2006:NO)、コントローラ2は、受信待ち状態となる。 When the controller 2 determines that the mutual interference prevention function is on (step S2001: NO), the controller 2 determines whether or not the mutual interference prevention trigger signal Trg3 has been received (step S2006). When the controller 2 determines that the mutual interference prevention trigger signal Trg3 has not been received (step S2006: NO), the controller 2 enters a reception waiting state.
コントローラ2が、相互干渉防止トリガ信号Trg3を受信したと判断した場合(ステップS2006:YES)、コントローラ2は、相互干渉防止トリガ信号の受信から撮像開始までの遅延時間の設定が有るか否かを判断する(ステップS2007)。コントローラ2が、遅延時間の設定が無いと判断した場合(ステップS2007:NO)、コントローラ2は、処理をステップS2009へ進める。コントローラ2が、遅延時間の設定が有ると判断した場合(ステップS2007:YES)、コントローラ2は、設定されている遅延時間が経過したか否かを判断する(ステップS2008)。 When the controller 2 determines that the mutual interference prevention trigger signal Trg3 has been received (step S2006: YES), the controller 2 determines whether or not there is a delay time setting from the reception of the mutual interference prevention trigger signal to the start of imaging. Judgment is made (step S2007). When the controller 2 determines that there is no delay time setting (step S2007: NO), the controller 2 advances the process to step S2009. When the controller 2 determines that the delay time is set (step S2007: YES), the controller 2 determines whether or not the set delay time has elapsed (step S2008).
コントローラ2が、設定されている遅延時間が経過していないと判断した場合(ステップS2008:NO)、コントローラ2は、経過待ち状態となる。コントローラ2が、設定されている遅延時間が経過したと判断した場合(ステップS2008:YES)、コントローラ2は、撮像装置1の照明部11へ点灯信号を送信し(ステップS2009)、撮像部12へ撮像処理の開始信号及び停止信号を送信して、撮像処理を実行する(ステップS2010)。 When the controller 2 determines that the set delay time has not elapsed (step S2008: NO), the controller 2 enters a state of waiting for progress. When the controller 2 determines that the set delay time has elapsed (step S2008: YES), the controller 2 transmits a lighting signal to the illumination unit 11 of the imaging device 1 (step S2009), and then to the imaging unit 12. An imaging process start signal and a stop signal are transmitted to execute the imaging process (step S2010).
コントローラ2は、撮像装置1の照明部11へ消灯信号を送信し(ステップS2011)、画像データを受信して(ステップS2012)、画像処理を実行する(ステップS2013)。コントローラ2は、信号Done2をオンにして(ステップS2014)、処理を終了する。また、コントローラ2は、撮像装置1の照明部11へ消灯信号を送信した後(ステップS2011)、並行して相互干渉防止トリガ信号Trg3を送信して(ステップS2015)、処理を終了する。 The controller 2 transmits a turn-off signal to the illumination unit 11 of the imaging device 1 (step S2011), receives image data (step S2012), and executes image processing (step S2013). The controller 2 turns on the signal Done2 (step S2014) and ends the process. Further, the controller 2 transmits a turn-off signal to the illumination unit 11 of the imaging device 1 (step S2011), and then transmits a mutual interference prevention trigger signal Trg3 in parallel (step S2015), and ends the process.
ステップS2013における画像処理には、撮像した画像の台形補正、明るさ補正、位置補正等が含まれる。相互干渉防止トリガ信号Trg3は、検査対象物の撮像後(生の画像データの取得後、露光終了後)に送信さえすれば、たとえ相互干渉防止トリガ信号Trg3を受信してすぐに隣接する撮像装置1において照明部11の点灯を開始したとしても、相互干渉は生じない。 The image processing in step S2013 includes trapezoidal correction, brightness correction, position correction, and the like of the captured image. As long as the mutual interference prevention trigger signal Trg3 is transmitted after imaging of the inspection object (after acquisition of raw image data and after completion of exposure), the adjacent imaging device immediately receives the mutual interference prevention trigger signal Trg3. Even if lighting of the illumination unit 11 is started at 1, no mutual interference occurs.
仮に、ステップS2013における画像処理の終了後に、相互干渉防止トリガ信号Trg3を送信した場合、ステップS2011における消灯信号の送信後、画像処理を開始するまでの間は、隣接して接続されている画像処理センサは撮像待ち状態となる。ステップS2013における画像処理には、相当の時間を要する場合もありえるからである。ステップS2011における消灯信号の送信後は、照明部11の照明が消えているので、相互干渉防止トリガ信号Trg3を受信する画像処理センサが撮像を開始したとしても、該画像処理センサの撮像領域内に隣接する画像処理センサの照明が照射されることはない。 If the mutual interference prevention trigger signal Trg3 is transmitted after the end of the image processing in step S2013, the adjacently connected image processing is performed until the image processing is started after the extinction signal is transmitted in step S2011. The sensor enters an imaging waiting state. This is because the image processing in step S2013 may take a considerable amount of time. After the turn-off signal is transmitted in step S2011, the illumination of the illumination unit 11 is turned off. Therefore, even if the image processing sensor that receives the mutual interference prevention trigger signal Trg3 starts imaging, it is within the imaging region of the image processing sensor. The illumination of the adjacent image processing sensor is not irradiated.
ここで、ステップS2011において消灯信号を送信した後に、ステップS2015として相互干渉防止トリガ信号Trg3を送信している。相互干渉防止トリガ信号Trg3を送信するタイミングは特にこれに限定されるものではない。例えば、照明の点灯後、所定の時間が経過した後に照明が消灯するように、消灯するタイミングを見計らって相互干渉防止トリガ信号Trg3を送信しても良い。また、撮像処理開始後、所定の時間が経過した後に照明が消灯するように、消灯するタイミングを見計らって相互干渉防止トリガ信号Trg3を送信しても良く、照明が消灯するタイミングに関連した照射の完了に関する信号であれば良い。 Here, after the extinction signal is transmitted in step S2011, the mutual interference prevention trigger signal Trg3 is transmitted in step S2015. The timing for transmitting the mutual interference prevention trigger signal Trg3 is not particularly limited to this. For example, the mutual interference prevention trigger signal Trg3 may be transmitted in anticipation of the turn-off timing so that the light is turned off after a predetermined time has elapsed after the light is turned on. In addition, the mutual interference prevention trigger signal Trg3 may be transmitted in anticipation of the timing to turn off the illumination so that the illumination is turned off after a predetermined time has elapsed after the start of the imaging process. Any signal regarding completion may be used.
図21は、本発明の実施の形態4に係る画像処理センサシステムの各種信号のタイミングチャートの例示図である。図21の例では、親機2pと子機2qとの間で相互干渉防止処理を行う場合のタイミングチャートを示している。 FIG. 21 is an exemplary timing chart of various signals of the image processing sensor system according to Embodiment 4 of the present invention. In the example of FIG. 21, a timing chart in the case where the mutual interference prevention process is performed between the parent device 2p and the child device 2q is shown.
まず、タイミング(1)では、親機2pのトリガ信号Trg1がオン状態になる。しかし、子機2qでの画像処理が未完了(子機2qでの画像処理信号がオン状態のまま)であるため、親機2pの信号Done3はオフ状態のままとなっている。そのため、トリガエラー信号がオン状態となり、トリガエラーが発生する。 First, at timing (1), the trigger signal Trg1 of the parent device 2p is turned on. However, since the image processing in the child device 2q is incomplete (the image processing signal in the child device 2q remains on), the signal Done3 of the parent device 2p remains in the off state. Therefore, the trigger error signal is turned on and a trigger error occurs.
タイミング(2)では、親機2pのトリガ信号Trg1が再度オン状態になる。親機2pの信号Done3がオン状態のままであるので、親機2pの信号D_RST1がオン状態となり、親機2p及び子機2qの信号Done2がオフ状態となる。したがって、親機2pの照明制御信号及び露光制御信号がオン状態となり、親機2pの撮像装置1の制御を開始する。 At timing (2), the trigger signal Trg1 of the parent device 2p is turned on again. Since the signal Done3 of the parent device 2p remains on, the signal D_RST1 of the parent device 2p is turned on, and the signal Done2 of the parent device 2p and the child device 2q is turned off. Therefore, the illumination control signal and the exposure control signal of the parent device 2p are turned on, and the control of the imaging device 1 of the parent device 2p is started.
タイミング(3)では、親機2pの照明制御信号及び露光制御信号がオフ状態となり、親機2pの画像処理信号がオン状態となり、親機2pの相互干渉防止トリガ信号Trg3がオン状態となる。したがって、子機2qの照明制御信号及び露光制御信号がオン状態となり、子機2qの撮像装置1の制御を開始する。 At timing (3), the illumination control signal and the exposure control signal of the parent device 2p are turned off, the image processing signal of the parent device 2p is turned on, and the mutual interference prevention trigger signal Trg3 of the parent device 2p is turned on. Therefore, the illumination control signal and the exposure control signal of the slave unit 2q are turned on, and the control of the imaging device 1 of the slave unit 2q is started.
タイミング(4)では、子機2qの信号Done2がオン状態のまま、親機2pの画像処理信号がオフ状態となるので、親機2pの信号Done2がオン状態となる。したがって、親機2pの信号Done3がオン状態となり、次のトリガ信号を受け付け可能となる。 At timing (4), the signal Done2 of the parent device 2p is turned on while the signal Done2 of the child device 2q is kept on, and the image processing signal of the parent device 2p is turned off. Accordingly, the signal Done3 of the parent device 2p is turned on, and the next trigger signal can be received.
以上のように本実施の形態4によれば、隣接して配置されている一方の画像処理センサのコントローラ2は、撮像及び照射が完了したことを示す信号を、他方の画像処理センサのコントローラ2へ送信し、他方の画像処理センサのコントローラ2は、信号を受信した後に撮像及び照射を開始するので、画像処理センサの撮像装置1を隣接して配置する場合であっても光の照射による干渉が生じず、撮像する画像の品質を低下させることがない。また、一又は複数の画像処理センサで一のグループを構成し、一の画像処理センサのコントローラ2は、撮像及び照射が完了したことを示す信号を、他の画像処理センサのコントローラ2へ送信し、他の画像処理センサのコントローラ2は、信号を受信した時点で撮像及び照射を開始する。これにより、グループ内では光の照射による干渉が生じず、撮像する画像の品質を低下させることがない。 As described above, according to the fourth embodiment, the controller 2 of one image processing sensor arranged adjacent to the controller 2 of the other image processing sensor sends a signal indicating that imaging and irradiation have been completed. Since the controller 2 of the other image processing sensor starts imaging and irradiation after receiving the signal, even if the imaging device 1 of the image processing sensor is arranged adjacently, interference due to light irradiation Does not occur, and the quality of the captured image is not degraded. One or a plurality of image processing sensors constitute one group, and the controller 2 of one image processing sensor transmits a signal indicating that imaging and irradiation have been completed to the controller 2 of another image processing sensor. The controller 2 of the other image processing sensor starts imaging and irradiation when a signal is received. As a result, interference due to light irradiation does not occur in the group, and the quality of an image to be captured does not deteriorate.
上述した実施の形態4では、各コントローラ2は、他のコントローラ2の設定情報が必要となった場合、都度取得すれば足りるが、もちろん、親機2pが子機2qの設定情報を一括して取得し、集中的に管理していても良い。 In the above-described fourth embodiment, each controller 2 only needs to obtain the setting information of the other controller 2 every time. However, of course, the parent device 2p collectively collects the setting information of the child device 2q. You may acquire and manage intensively.
本実施の形態4では、複数の画像処理センサを用い、複数の撮像装置1が隣接又は近接して配置される場合に適用することができる。撮像装置1同士が隣接して、互いに接触して配置されている場合、撮像装置1同士が近接して配置されている場合も含まれる。複数の画像処理センサが同じ検査対象物を撮像する場合でなくても、本実施の形態4を適用することは可能である。 The fourth embodiment can be applied to a case where a plurality of image processing sensors are used and a plurality of imaging devices 1 are arranged adjacent to or close to each other. The case where the imaging devices 1 are adjacent to each other and arranged in contact with each other includes the case where the imaging devices 1 are arranged close to each other. The fourth embodiment can be applied even when a plurality of image processing sensors do not capture the same inspection object.
(実施の形態5)
本発明の実施の形態5は、上述した実施の形態1乃至4に示す画像処理センサシステムにおいてネットワーク接続のミスにより発生する通信ループを検出する方法に関するものである。図22は、本発明の実施の形態5に係る画像処理センサシステムの通信ループが発生するおそれのある接続状態の例示図である。
(Embodiment 5)
Embodiment 5 of the present invention relates to a method for detecting a communication loop caused by a network connection error in the image processing sensor system shown in Embodiments 1 to 4 described above. FIG. 22 is an exemplary diagram of a connection state in which a communication loop of the image processing sensor system according to Embodiment 5 of the present invention may occur.
図22に示すように、本実施の形態5に係る画像処理センサシステムで用いる画像処理センサは、撮像装置1と、撮像装置1とデータ通信することが可能に接続ケーブルで接続されている画像処理装置(以下、コントローラ)2とで構成されている。 As shown in FIG. 22, the image processing sensor used in the image processing sensor system according to the fifth embodiment is connected to the imaging device 1 through a connection cable so as to be able to perform data communication with the imaging device 1. It comprises an apparatus (hereinafter referred to as a controller) 2.
撮像装置1は、検査対象物を撮像する撮像素子を有するカメラモジュール(撮像部)と、検査対象物に対して光を照射する照明部とを備えている。撮像装置1を小型化するべく、画像処理を実行するコントローラ2は、撮像装置1とは別個に備えている。画像処理は、撮像装置1内で一部の処理(フィルタ処理等の前処理)を実行し、実行後の画像データをコントローラ2へ送信して、残りの画像処理をコントローラ2で実行しても良いし、撮像した画像をそのままコントローラ2へ送信しても良い。 The imaging apparatus 1 includes a camera module (imaging unit) having an image sensor that images an inspection object, and an illumination unit that irradiates light to the inspection object. In order to reduce the size of the imaging apparatus 1, the controller 2 that executes image processing is provided separately from the imaging apparatus 1. In the image processing, a part of processing (preprocessing such as filter processing) is executed in the imaging apparatus 1, the image data after execution is transmitted to the controller 2, and the remaining image processing is executed by the controller 2. The captured image may be transmitted to the controller 2 as it is.
撮像装置1と接続ケーブルで接続されているコントローラ2は、それぞれ内部に画像処理を実行するFPGA、DSP等を備えており、撮像装置1の撮像部、照明部の動作を制御するとともに、取得した画像に対して画像処理を実行する。特にDSPは、画像に対して、色面積検出処理、パターン検索処理等を実行する。さらに、画像処理の結果として、検査対象物を検出したか否かで検査対象物の良否を示すOK/NG信号(判定信号)を出力する。もちろん、場合によってはFPGAが実行するようにしても良い。OK/NG信号は、コントローラ2p、2qに備えるI/Oコネクタ213から、それぞれI/Oケーブルを経由して外部のPLC、他の光電センサ・近接センサ、表示灯等(以下、PLC等)へ出力される。I/Oコネクタ213は、親機2pだけでなく子機2qを含め各コントローラ2に設けられている。 The controller 2 connected to the imaging device 1 with a connection cable includes an FPGA, a DSP, and the like that execute image processing therein, and controls the operations of the imaging unit and the illumination unit of the imaging device 1 and acquires them. Perform image processing on the image. In particular, the DSP performs color area detection processing, pattern search processing, and the like on the image. Further, as a result of the image processing, an OK / NG signal (determination signal) indicating whether the inspection object is good or not is output depending on whether the inspection object is detected. Of course, the FPGA may be executed depending on circumstances. The OK / NG signal is sent from the I / O connector 213 provided in the controllers 2p and 2q to the external PLC, other photoelectric sensor / proximity sensor, indicator lamp, etc. (hereinafter, PLC etc.) via the I / O cable. Is output. The I / O connector 213 is provided in each controller 2 including not only the parent device 2p but also the child device 2q.
隣接して配置されている複数のコントローラ2は、図4に示す連結コネクタ211を介して互いにデータ通信することが可能に接続されている。互いに接続されている複数のコントローラ2のうち、少なくとも一のコントローラ2pは、親機としてイーサネットコネクタ214と電源端子215とを備えている。子機である他のコントローラ2qについても、イーサネットコネクタ224を備えている。図22では2個の子機2qが接続されているが、接続される子機の数はこれに限定されるものではなく、例えば4個の子機、8個の子機等、任意の数の子機を接続に設定することができる。また、2個の子機2qの右隣に、親機と子機とを有する2個のコントローラ2を接続しても良い。 The plurality of controllers 2 arranged adjacent to each other are connected so as to be able to perform data communication with each other via a connection connector 211 shown in FIG. Of the plurality of controllers 2 connected to each other, at least one controller 2p includes an Ethernet connector 214 and a power supply terminal 215 as a parent device. The other controller 2q as a slave unit is also provided with an Ethernet connector 224. In FIG. 22, two slave units 2q are connected, but the number of slave units to be connected is not limited to this. For example, any number of slave units such as four slave units and eight slave units can be connected. The machine can be set to connection. Further, two controllers 2 having a parent device and a child device may be connected to the right of the two child devices 2q.
複数の画像処理センサと外部のコンピュータ3あるいは表示装置4とは、少なくとも一のコントローラ(親機)2pのイーサネットコネクタ214とイーサネットケーブル23によりハブ240と接続され、ハブ240とイーサネットケーブル23を介して接続されることで、画像データのデータ通信を行う。隣接して配置されている複数のコントローラ2は、連結コネクタ211を介することで互いにデータ通信を行う。 The plurality of image processing sensors and the external computer 3 or display device 4 are connected to the hub 240 by the Ethernet connector 214 and the Ethernet cable 23 of at least one controller (master device) 2p, and the hub 240 and the Ethernet cable 23 are connected. By being connected, data communication of image data is performed. The plurality of controllers 2 arranged adjacent to each other perform data communication with each other via the connection connector 211.
図22に示すように、一番右端の子機2qから誤ってイーサネットケーブル23bによりハブ240へ接続された場合、子機2qから本来は次の子機2qへ送信されるべきパケットが、親機2pへと戻ってくる。すなわち親機2pが送信したパケットと同一のパケットが親機2pへ戻ってくる、いわゆる通信ループが発生することになる(矢印241参照)。 As shown in FIG. 22, when the rightmost slave unit 2q is erroneously connected to the hub 240 by the Ethernet cable 23b, a packet to be transmitted from the slave unit 2q to the next slave unit 2q is Come back to 2p. That is, a so-called communication loop occurs in which the same packet as the packet transmitted by the parent device 2p returns to the parent device 2p (see arrow 241).
したがって、イーサネットケーブル23の接続ミス等により通信ループが発生したか否かは、例えば送信したパケットと同一のパケットを受信したか否かにより判断することができる。図23は、本発明の実施の形態5に係る画像処理センサのコントローラ2の通信ループ検出処理の手順を示すフローチャートである。図23に示す通信ループの検出処理は、原則として子機2qで実行するが、親機2pで実行しても良いことは言うまでもない。 Therefore, whether or not a communication loop has occurred due to a connection error or the like of the Ethernet cable 23 can be determined by whether or not the same packet as the transmitted packet has been received, for example. FIG. 23 is a flowchart showing the procedure of the communication loop detection process of the controller 2 of the image processing sensor according to the fifth embodiment of the present invention. The communication loop detection process shown in FIG. 23 is executed by the slave unit 2q in principle, but it goes without saying that it may be executed by the master unit 2p.
図23において、画像処理センサのコントローラ2は、一定時間間隔で検出パケットをブロードキャスト送信する(ステップS2301)。検出パケットの内容は特に限定されるものではないが、同一内容のパケットを検出したことを判断できる程度の情報量が必要である。 In FIG. 23, the controller 2 of the image processing sensor broadcasts detection packets at regular time intervals (step S2301). The content of the detection packet is not particularly limited, but an amount of information that can determine that a packet having the same content has been detected is necessary.
コントローラ2は、検出パケットと完全一致するパケットを受信したか否かを判断する(ステップS2302)。コントローラ2が、完全一致するパケットを受信していないと判断した場合(ステップS2302:NO)、コントローラ2は、一定時間経過したか否かを判断する(ステップS2303)。コントローラ2が、まだ一定時間経過していないと判断した場合(ステップS2303:NO)、コントローラ2は、処理をステップS2302へ戻して上述した処理を繰り返す。コントローラ2が、一定時間経過したと判断した場合(ステップS2303:YES)、コントローラ2は、通信ループが発生していないと判断して処理を終了する。 The controller 2 determines whether or not a packet that completely matches the detected packet has been received (step S2302). When it is determined that the controller 2 has not received a completely matching packet (step S2302: NO), the controller 2 determines whether or not a certain time has elapsed (step S2303). When the controller 2 determines that the predetermined time has not yet elapsed (step S2303: NO), the controller 2 returns the process to step S2302 and repeats the above-described process. If the controller 2 determines that a certain time has elapsed (step S2303: YES), the controller 2 determines that no communication loop has occurred and ends the process.
コントローラ2が、完全一致するパケットを受信したと判断した場合(ステップS2302:YES)、コントローラ2は、通信ループが発生していると判断して、通信ループ切断処理を実行する(ステップS2304)。通信ループ切断処理は特に限定されるものではないが、例えばコントローラ2を再起動するまで、親機2p−子機2q間のイーサネット通信、子機2q−子機2q間のイーサネット通信を切断し、配線更新後にコントローラ2を再起動させる方法でも良い。その他、親機2pでも通信ループの検出処理を実行し、親機2pと通信ループの発生が検出された子機2qとの間のイーサネット通信のみ、あるいは通信ループの発生が検出された子機2qと他の子機2qとの間のイーサネット通信のみを切断し、親機2pと他の子機2qとの間のイーサネット通信は停止させないようにしても良い。 If the controller 2 determines that a completely matching packet has been received (step S2302: YES), the controller 2 determines that a communication loop has occurred and executes communication loop disconnection processing (step S2304). The communication loop disconnection process is not particularly limited. For example, until the controller 2 is restarted, the Ethernet communication between the master unit 2p and the slave unit 2q and the Ethernet communication between the slave unit 2q and the slave unit 2q are disconnected. Alternatively, the controller 2 may be restarted after the wiring update. In addition, the base unit 2p also performs a communication loop detection process, and only the Ethernet communication between the base unit 2p and the handset 2q where the occurrence of the communication loop is detected, or the handset 2q where the occurrence of the communication loop is detected. It is also possible to disconnect only the Ethernet communication between the master unit 2q and the other slave unit 2q and not stop the Ethernet communication between the master unit 2p and the other slave unit 2q.
上述した通信ループの検出方法は一実施例を示しているに過ぎず、他の方法を用いて通信ループの発生を検出しても良いことは言うまでもない。例えば自分宛てのパケットを送信しても良い。 The communication loop detection method described above is merely an example, and it goes without saying that the occurrence of a communication loop may be detected using other methods. For example, a packet addressed to you may be transmitted.
以上のように本実施の形態5によれば、複数の画像処理センサのコントローラ2のうち、少なくとも一のコントローラ2において通信ループの発生を検出した場合、検出された通信ループを切断する処理を速やかに実行することができるので、例えば配線ミスのような初歩的なミスが生じた場合であっても確実に通信ループを解消することができる。 As described above, according to the fifth embodiment, when the occurrence of a communication loop is detected in at least one controller 2 among the controllers 2 of the plurality of image processing sensors, the process of cutting the detected communication loop is quickly performed. Therefore, even if an elementary mistake such as a wiring mistake occurs, the communication loop can be reliably eliminated.
なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変更、改良等が可能である。例えば撮像装置1とコントローラ2とは、接続ケーブルで直結されている形態に限定されるものではなく、LAN、WAN等のネットワーク網を介して接続されていても良いことは言うまでもない。また、上記実施例では、撮像装置1とコントローラ2とを別個に備えているが、小型化できるのであれば、両者が一体となっているタイプの画像処理センサであっても良い。この場合、画像処理センサ間を連結してデータ通信をすることができる。また、上記実施例では、親機である一のコントローラ2pにのみ電源端子215を備えているが、子機である他のコントローラ2qに備えていても良い。 The present invention is not limited to the above-described embodiments, and various changes and improvements can be made within the scope of the present invention. For example, the imaging device 1 and the controller 2 are not limited to a form directly connected by a connection cable, and it goes without saying that they may be connected via a network such as a LAN or WAN. Moreover, in the said Example, although the imaging device 1 and the controller 2 were provided separately, as long as it can reduce in size, the image processing sensor of the type with which both are united may be sufficient. In this case, data communication can be performed by connecting the image processing sensors. In the above embodiment, the power supply terminal 215 is provided only in one controller 2p that is a parent device, but may be provided in another controller 2q that is a child device.
また、上記実施例では、撮像装置1内に備える半導体装置にDSP、FPGA等を用いているが、とくにこれらに限定されるものではなく、同様の機能を実現することができる半導体装置であれば良いことは言うまでもない。 In the above-described embodiment, a DSP, FPGA, or the like is used as the semiconductor device provided in the imaging device 1. However, the present invention is not limited to these, and any semiconductor device that can realize the same function is used. It goes without saying that it is good.
また、グループ間で相互干渉防止トリガ信号Trg3を伝達しない場合、本実施の形態4では図16に示すように、SW1を用いて相互干渉防止トリガ信号Trg3を別のグループの最前段の画像処理センサ(コントローラ2)に伝達しないようにしている。しかし、グループ間で相互干渉防止トリガ信号Trg3を伝達しない方法は、特にこれに限定されるものではない。例えば、グループの最後段(図16の例では、コントローラ2b又はコントローラ2d)が相互干渉防止トリガ信号Trg3を発信しないようにしても良い。また、グループの最前段(図16の例では、コントローラ2c)で相互干渉防止トリガ信号Trg3の入力を受け付けた場合であっても、入力を受け付けた相互干渉防止トリガ信号Trg3を用いて、又は相互干渉防止トリガ信号Trg3に基づいて、撮像動作を行なわないようにしても良い。 Further, when the mutual interference prevention trigger signal Trg3 is not transmitted between the groups, in the fourth embodiment, as shown in FIG. 16, the mutual interference prevention trigger signal Trg3 is used as the first image processing sensor of another group using SW1. This is not transmitted to (controller 2). However, the method of not transmitting the mutual interference prevention trigger signal Trg3 between the groups is not particularly limited to this. For example, the last stage of the group (in the example of FIG. 16, the controller 2b or the controller 2d) may not transmit the mutual interference prevention trigger signal Trg3. Even if the input of the mutual interference prevention trigger signal Trg3 is received at the front stage of the group (the controller 2c in the example of FIG. 16), the mutual interference prevention trigger signal Trg3 that has received the input is used, or The imaging operation may not be performed based on the interference prevention trigger signal Trg3.
1 撮像装置
2 コントローラ(画像処理装置)
2p 親機(一のコントローラ、一の画像処理装置)
2q 子機(他のコントローラ、他の画像処理装置)
3 外部のコンピュータ
4 表示装置
5 通信ユニット
11 照明部
12 撮像部
21 メイン基板
206 処理結果記憶部
210 イーサネットスイッチ
214、224 イーサネットコネクタ(通信インタフェース)
215 電源端子
1 imaging device 2 controller (image processing device)
2p master unit (one controller, one image processing device)
2q cordless handset (other controllers, other image processing devices)
DESCRIPTION OF SYMBOLS 3 External computer 4 Display apparatus 5 Communication unit 11 Illumination part 12 Imaging part 21 Main board 206 Processing result memory | storage part 210 Ethernet switch 214, 224 Ethernet connector (communication interface)
215 Power supply terminal
Claims (11)
前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置と
を備える複数の画像処理センサを有し、
前記複数の画像処理センサは、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信する画像処理センサシステムであって、
少なくとも一の画像処理センサの画像処理装置は、
前記一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、
前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、
前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチと、
を備え、
前記イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする画像処理センサシステム。 An imaging device having an imaging unit that images the inspection object and an illumination unit that irradiates the inspection object with light; and
Is connected to the imaging device via a connecting cable for data communication with the imaging device, connecting a connector is provided on the housing side, the running image processing on the acquired image by the imaging device An image processing apparatus for determining the quality of an inspection object;
A plurality of image processing sensors comprising :
In the plurality of image processing sensors, the housings of the plurality of image processing devices are arranged adjacent to each other, the connection connectors on opposite sides of the plurality of image processing devices are connected to each other, and the image processing devices adjacent to each other are connected . a images processing sensor system for communicating data including image through the coupling connector between,
The image processing apparatus of at least one image processing sensor is:
An image processing unit that performs image processing on an image acquired by the imaging device of the one image processing sensor;
The data including the image which the image processing has been performed by the image processing unit, and a communication interface for transmitting to an external computer or display device,
It is disposed so as to be interposed between the image processing unit and the communication interface, and is connected to a connection connector provided in an image processing apparatus of the one image processing sensor, and the external computer or the An Ethernet switch for Ethernet communication with the display device;
With
The Ethernet switch, data including an image in which the image processing has been performed by other image processing sensor, after receiving through the connecting connector, sent to the external computer or the display device via the communication interface image processing sensor system comprising a signal to Turkey.
該処理結果記憶部に記憶されている画像処理後の画像データを、前記通信インタフェースを経由して前記外部のコンピュータあるいは前記表示装置へ送信することを特徴とする請求項1に記載の画像処理センサシステム。 The one image processing sensor includes a processing result storage unit that stores image data after image processing, including image data after image processing in the other image processing sensor,
The image processing sensor according to claim 1 , wherein the image data after image processing stored in the processing result storage unit is transmitted to the external computer or the display device via the communication interface. system.
前記一の画像処理センサは、前記他の画像処理センサへ電力を供給することを特徴とする請求項1乃至3のいずれか一項に記載の画像処理センサシステム。 A power supply terminal is provided only in the one image processing sensor,
The image processing sensor of the one, the image processing sensor system according to any one of claims 1 to 3, characterized in that for supplying power to the other image processing sensor.
通信ループの発生を検出した場合、前記一の画像処理センサは、検出された通信ループの切断処理を実行することを特徴とする請求項1乃至4のいずれか一項に記載の画像処理センサシステム。 At least one of the plurality of image processing sensors includes a communication loop detection unit that detects occurrence of a communication loop,
5. The image processing sensor system according to claim 1 , wherein when the occurrence of a communication loop is detected, the one image processing sensor executes a process for cutting the detected communication loop. 6. .
前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置と
を備える複数の画像処理センサを有し、
前記複数の画像処理センサは、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信する画像処理センサシステムで実行することが可能な画像処理センサの制御方法であって、
少なくとも一の画像処理センサの画像処理装置は、
前記一の画像処理センサの撮像装置で取得した画像に対して画像処理を実行する画像処理部と、
前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、
前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも該一の画像処理センサの画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチと、
を備え、
前記イーサネットスイッチは、他の画像処理センサにて画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする画像処理センサの制御方法。 An imaging device having an imaging unit that images the inspection object and an illumination unit that irradiates the inspection object with light; and
Connected to the imaging device via a connection cable for data communication with the imaging device, a connection connector is provided on the side of the housing, and performs image processing on an image acquired by the imaging device, An image processing apparatus for determining the quality of an inspection object;
A plurality of image processing sensors comprising:
In the plurality of image processing sensors , the housings of the plurality of image processing devices are arranged adjacent to each other, the connection connectors on opposite sides of the plurality of image processing devices are connected to each other, and the image processing devices adjacent to each other are connected. An image processing sensor control method that can be executed by an image processing sensor system that communicates data including an image via the connection connector
The image processing apparatus of at least one image processing sensor is:
An image processing unit that performs image processing on an image acquired by the imaging device of the one image processing sensor;
A communication interface for transmitting data including an image subjected to image processing by the image processing unit to an external computer or a display device;
It is disposed so as to be interposed between the image processing unit and the communication interface, and is connected to a connection connector provided in an image processing apparatus of the one image processing sensor, and the external computer or the An Ethernet switch for Ethernet communication with the display device;
With
The Ethernet switch receives data including an image processed by another image processing sensor via the connection connector, and then transmits the data to the external computer or the display device via the communication interface. images processing control method of the sensor you characterized by.
前記一の画像処理センサは、記憶されている画像処理後の画像データを、前記通信インタフェースを経由して前記外部のコンピュータあるいは前記表示装置へ送信することを特徴とする請求項6に記載の画像処理センサの制御方法。 The one image processing sensor stores image data after image processing, including image data after image processing in the other image processing sensor,
The image according to claim 6, wherein the one image processing sensor transmits stored image data after image processing to the external computer or the display device via the communication interface. Process sensor control method.
通信ループの発生を検出した場合、前記一の画像処理センサは、検出された通信ループの切断処理を実行することを特徴とする請求項6乃至8のいずれか一項に記載の画像処理センサの制御方法。 At least one of the plurality of image processing sensors detects the occurrence of a communication loop,
9. The image processing sensor according to claim 6 , wherein when the occurrence of a communication loop is detected, the one image processing sensor performs a process of disconnecting the detected communication loop . 10. Control method.
前記撮像装置との間でデータ通信するための接続ケーブルを介して前記撮像装置に接続され、筺体側面に連結コネクタが設けられ、前記撮像装置で取得した画像に対して画像処理を実行して前記検査対象物の良否を判定する画像処理装置と
を備える画像処理センサにおいて、
他の画像処理センサと、前記複数の画像処理装置の筐体が隣接して配置され、前記複数の画像処理装置の対向する側面における前記連結コネクタ同士が連結され、互いに隣接する画像処理装置の間で前記連結コネクタを介して画像を含むデータを通信し、
前記画像処理装置は、
前記撮像装置で取得した画像に対して画像処理を実行する画像処理部と、
前記画像処理部により画像処理が実行された画像を含むデータを、外部のコンピュータあるいは表示装置に送信するための通信インタフェースと、
前記画像処理部と前記通信インタフェースとの間に介在するよう配置され、しかも前記画像処理装置に設けられた連結コネクタに接続され、前記通信インタフェースを介して前記外部のコンピュータ又は表示装置とイーサネット通信するためのイーサネットスイッチと、
を備え、
前記イーサネットスイッチは、外部で画像処理が実行された画像を含むデータを、前記連結コネクタを介して受信した後に、前記通信インタフェースを介して前記外部のコンピュータあるいは前記表示装置に送信することを特徴とする画像処理センサ。 An imaging device having an imaging unit that images the inspection object and an illumination unit that irradiates the inspection object with light; and
Connected to the imaging device via a connection cable for data communication with the imaging device, a connection connector is provided on the side of the housing, and performs image processing on an image acquired by the imaging device, An image processing apparatus for determining the quality of an inspection object;
In an image processing sensor comprising :
Another image processing sensor and the housings of the plurality of image processing apparatuses are arranged adjacent to each other, and the connection connectors on the opposite side surfaces of the plurality of image processing apparatuses are connected to each other, and between the adjacent image processing apparatuses. To communicate data including images via the connector,
The image processing apparatus includes:
An image processing unit that performs image processing on an image acquired by the imaging device;
A communication interface for transmitting data including an image subjected to image processing by the image processing unit to an external computer or a display device;
It is arranged so as to be interposed between the image processing unit and the communication interface, and is connected to a connection connector provided in the image processing apparatus, and communicates with the external computer or display device via the communication interface via Ethernet. Ethernet switch for
With
The Ethernet switch, and wherein the transmitting data including the image which the image processing has been performed outside, after receiving through the connection connector, the external computer or the display device via the communication interface images processing sensor you.
通信ループの発生を検出した場合、検出された通信ループの切断処理を実行することを特徴とする請求項10に記載の画像処理センサ。 Communication loop detection means for detecting the occurrence of a communication loop,
The image processing sensor according to claim 10, characterized in that to perform if it detects the occurrence of the communication loop, it disconnects the test out the communication loop.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014154666A JP6325934B2 (en) | 2013-08-12 | 2014-07-30 | Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013167903 | 2013-08-12 | ||
| JP2013167903 | 2013-08-12 | ||
| JP2014154666A JP6325934B2 (en) | 2013-08-12 | 2014-07-30 | Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015057878A JP2015057878A (en) | 2015-03-26 |
| JP6325934B2 true JP6325934B2 (en) | 2018-05-16 |
Family
ID=52815824
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014154666A Active JP6325934B2 (en) | 2013-08-12 | 2014-07-30 | Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6325934B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2023101181A (en) * | 2022-01-07 | 2023-07-20 | パナソニックIpマネジメント株式会社 | Control method, control device and imaging device |
| CN118671060B (en) * | 2024-06-24 | 2025-10-21 | 歌尔股份有限公司 | Processing equipment control method and control device, and processing equipment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3239730B2 (en) * | 1996-02-06 | 2001-12-17 | ヤマハ株式会社 | Network system |
| JP2004318200A (en) * | 2003-04-10 | 2004-11-11 | Vstone Kk | Sensor system, detection information collecting method, information transmission system, and information transmission method |
| KR100662187B1 (en) * | 2004-03-15 | 2006-12-27 | 오므론 가부시키가이샤 | Sensor controller |
| JP4683267B2 (en) * | 2005-01-19 | 2011-05-18 | 横河電機株式会社 | Solid-state image sensor inspection system |
-
2014
- 2014-07-30 JP JP2014154666A patent/JP6325934B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015057878A (en) | 2015-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6234110B2 (en) | Image processing sensor system | |
| US10342459B2 (en) | Endoscope apparatus and measuring method | |
| KR101207198B1 (en) | Board inspection apparatus | |
| US20150130925A1 (en) | Contactless component-inspecting apparatus and component-inspecting method | |
| CN102379681A (en) | Fundus imaging apparatus | |
| JP2014510276A (en) | Vision inspection system with improved image clarity | |
| JP2015513111A (en) | System and method for sample inspection and review | |
| KR20090014913A (en) | Camera module multi test device | |
| JP6325934B2 (en) | Image processing sensor system, image processing sensor control method, and image processing sensor used in image processing sensor system | |
| KR101622628B1 (en) | Method and apparatus of inspecting a substrate with electronic devices mounted thereon | |
| KR101099392B1 (en) | Vision inspection device | |
| TWI795916B (en) | Lens device, system incorporating lens device, inspection device incorporating lens device, and operating program | |
| US20110242331A1 (en) | Diagnosis unit for an electronic camera and camera system | |
| CN215297180U (en) | Optical detection system | |
| JP2016224368A (en) | Imaging apparatus and imaging system | |
| JP6438793B2 (en) | Multiplex communication equipment | |
| JP6095805B2 (en) | Mounting component inspection equipment | |
| TWI594017B (en) | Correction equipment for stereoscopic display device | |
| JP6134160B2 (en) | Camera photographing method and camera photographing system | |
| JP2018136178A (en) | Observation device, observation system, and method for controlling observation device | |
| JP2011215084A (en) | Image processing device and interferometer measurement system | |
| CN114170129A (en) | Method and microscope for generating an artifact-reduced overview photograph of a sample carrier | |
| KR20140051635A (en) | A apparatus for inspecting a substrate and a method for inspecting a substrate | |
| WO2014041818A1 (en) | Imaging device and imaging method | |
| CN112995489B (en) | Modular camera system control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170301 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171122 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171205 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180130 |
|
| 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: 20180410 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180413 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6325934 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |