JP5822629B2 - System construction device for camera device - Google Patents

System construction device for camera device Download PDF

Info

Publication number
JP5822629B2
JP5822629B2 JP2011220117A JP2011220117A JP5822629B2 JP 5822629 B2 JP5822629 B2 JP 5822629B2 JP 2011220117 A JP2011220117 A JP 2011220117A JP 2011220117 A JP2011220117 A JP 2011220117A JP 5822629 B2 JP5822629 B2 JP 5822629B2
Authority
JP
Japan
Prior art keywords
module
program
camera device
system construction
camera
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
Application number
JP2011220117A
Other languages
Japanese (ja)
Other versions
JP2013081080A (en
Inventor
篤規 平野
篤規 平野
泰弘 山下
泰弘 山下
神藤 高広
高広 神藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Corp
Original Assignee
Fuji Machine Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Machine Manufacturing Co Ltd filed Critical Fuji Machine Manufacturing Co Ltd
Priority to JP2011220117A priority Critical patent/JP5822629B2/en
Priority to CN201210371419.9A priority patent/CN103037148B/en
Publication of JP2013081080A publication Critical patent/JP2013081080A/en
Application granted granted Critical
Publication of JP5822629B2 publication Critical patent/JP5822629B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、被写体を撮像して画像データを記録するカメラ装置において、当該カメラ装置の用途に応じた機能を実装するシステム構築装置に関するものである。   The present invention relates to a system construction device for mounting a function according to the application of a camera device that captures an image of a subject and records image data.

近年、カメラ装置は、CCD(Charge Coupled Device)やCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子を有するデジタルカメラの普及に伴い、様々な分野で使用されている。例えば、特許文献1には、工業分野に適用されたFA用カメラ装置が開示されている。このFA用カメラ装置によれば、電子部品装着装置において、取得した画像データによって基板認識を行い、部品を吸着したヘッドの位置決め精度の向上を図っている。このようなカメラ装置では、用途の多様化に伴って、要求される機能および性能も様々である。そして、要求された機能について汎用のカメラ装置では対応できない場合に、その機能を実装した専用のカメラ装置が必要となる。しかし、所定の機能に特化した専用のカメラ装置は、その製作に多くの時間を要し、汎用のカメラ装置と比較してコストが高くなることが懸念される。   In recent years, camera devices have been used in various fields with the spread of digital cameras having an image sensor such as a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS). For example, Patent Document 1 discloses an FA camera device applied to the industrial field. According to the FA camera device, in the electronic component mounting device, the substrate recognition is performed based on the acquired image data, and the positioning accuracy of the head that sucks the component is improved. In such a camera device, as functions are diversified, various functions and performances are required. If the requested function cannot be handled by a general-purpose camera device, a dedicated camera device that implements the function is required. However, a dedicated camera device specialized for a predetermined function takes a lot of time to manufacture, and there is a concern that the cost is higher than that of a general-purpose camera device.

また、カメラ装置は、設置した後に用途や要求性能が変更されることがある。そうすると、これに伴う修正に多くの時間を要するため、用途変更などに即時に対応できない上に、修正コストがかかるという問題点があった。例えば、特許文献2には、撮像素子が設けられた撮像モジュールをカメラ本体に着脱可能に連結して構成されるカメラが開示されている。これにより、例えば、カメラ装置に要求される撮像範囲や分解能が変更されても撮像モジュールの交換により、ある程度の変更に対応することができるものと考えられる。   In addition, the usage and required performance of the camera device may be changed after installation. Then, since a lot of time is required for the correction accompanying this, there is a problem that correction cannot be made immediately and the correction cost is required. For example, Patent Document 2 discloses a camera configured by detachably connecting an imaging module provided with an imaging element to a camera body. Thereby, for example, even if the imaging range and resolution required for the camera device are changed, it is considered that a certain degree of change can be accommodated by replacing the imaging module.

特開2000−294992号公報JP 2000-294992 A 特開2004−304604号公報JP 2004-304604 A

しかしながら、工業分野を始め様々な分野で使用されるカメラ装置には、撮像モジュールの交換の他にも画像処理の種類や処理機能の変更の要請がある。さらには、通信を行う外部機器の変更によってはインターフェイスを修正する必要が生じ、またカメラ装置の設置場所などによっては外形寸法が制約されることもある。   However, camera devices used in various fields including the industrial field are required to change image processing types and processing functions in addition to replacement of imaging modules. Furthermore, it is necessary to modify the interface depending on the change of the external device for communication, and the external dimensions may be restricted depending on the installation location of the camera device.

本発明は、このような事情を鑑みてなされたものであり、種々の用途に適用可能なカメラ装置に機能を実装するカメラ装置のシステム構築装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and an object of the present invention is to provide a system construction device for a camera device that implements a function in a camera device applicable to various applications.

上述した課題を解決するために、請求項1に係る発明によると、カメラ装置のシステム構築装置は、外部機器との通信により入力した撮像指令に基づいて撮像し、当該撮像により取得した画像データを前記外部機器に出力するカメラ装置を対象とし、前記カメラ装置の用途に応じた機能を実装する。被写体を撮像して前記画像データを取得し且つ前記外部機器と通信する機能を有しない撮像モジュールと、前記外部機器と通信する外部通信モジュールと、前記撮像モジュールおよび前記外部通信モジュールを除く第三のモジュールと、を含む異なる機能を有する3以上のモジュールは、前記撮像モジュールと前記外部通信モジュールとの間、前記撮像モジュールと前記第三のモジュールとの間、および前記外部通信モジュールと前記第三のモジュールとの間で共通化された共通信号によって互いに通信可能な通信プログラムをそれぞれ実装される。前記カメラ装置は、3以上の前記モジュールのうち、少なくとも前記撮像モジュールおよび前記外部通信モジュールを含むように選択された複数の前記モジュールを着脱可能に連結して構成され、前記カメラ装置を構成する複数の前記モジュールのうち少なくとも一以上の前記モジュールには、前記モジュールにそれぞれ割り当てられた機能を実行するプログラムを実装可能な回路素子が設けられ、前記システム構築装置は、前記カメラ装置と通信可能に接続される通信部と、前記モジュールの前記回路素子に実装する前記プログラム、および全ての前記モジュールに実装される共通の前記通信プログラムを転送するプログラム実装部と、を備える。 In order to solve the above-described problem, according to the invention according to claim 1, the system construction device of the camera device captures an image based on an imaging command input through communication with an external device, and acquires image data acquired by the imaging. Targeting a camera device that outputs to the external device, a function according to the application of the camera device is implemented. An imaging module having no function of communicating with the acquired image data and the external device by imaging an object, said an external communication module for communicating with an external device, a third excluding the imaging module and the external communication module 3 or more modules having a module, the different functions including the between the imaging module and the external communication module, between the imaging module and the third module, and the external communication module and the third A communication program that can communicate with each other by a common signal shared with the module is mounted. The camera device is configured by detachably connecting a plurality of the modules selected so as to include at least the imaging module and the external communication module among the three or more modules, and constitutes the camera device. At least one of the modules is provided with a circuit element capable of mounting a program for executing a function assigned to each of the modules, and the system construction device is connected to the camera device in a communicable manner. And a program mounting unit that transfers the program mounted on the circuit elements of the module and the common communication program mounted on all the modules .

請求項2に係る発明によると、請求項1において、前記システム構築装置は、選択された前記モジュールに係る前記機能を含むモジュール情報を取得する情報取得部と、取得した前記モジュール情報に基づいて当該モジュールの前記回路素子に実装可能な前記プログラムを選択可能に表示する表示部と、をさらに備え、前記プログラム実装部は、前記表示部において選択された前記プログラムを前記モジュールの前記回路素子に転送する。   According to the invention according to claim 2, in claim 1, the system construction device is based on an information acquisition unit that acquires module information including the function related to the selected module, and the acquired module information. A display unit that selectively displays the program that can be mounted on the circuit element of the module, and the program mounting unit transfers the program selected on the display unit to the circuit element of the module. .

請求項3に係る発明によると、請求項2において、前記表示部は、前記回路素子に実装可能な前記プログラムをアイコンとして表示するプログラム表示領域と、選択された前記プログラムの前記アイコンを表示する選択表示領域と、を有し、前記プログラム表示領域から前記選択表示領域に前記アイコンをドラッグアンドドロップされた場合に、当該アイコンにより表示された前記プログラムが選択されたものとして前記選択表示領域に表示する。   According to a third aspect of the present invention, in the second aspect, the display unit displays a program display area that displays the program that can be mounted on the circuit element as an icon, and a selection that displays the icon of the selected program. When the icon is dragged and dropped from the program display area to the selection display area, the program displayed by the icon is displayed in the selection display area as being selected. .

請求項4に係る発明によると、請求項3において、前記表示部は、前記プログラムとして前記モジュールのデバイスドライバを前記プログラム表示領域に表示する。   According to a fourth aspect of the present invention, in the third aspect, the display unit displays a device driver of the module as the program in the program display area.

請求項5に係る発明によると、請求項4において、前記モジュールの前記モジュール情報には当該モジュールの構成に係るハードウェア情報が含まれ、前記表示部は、取得したハードウェア情報に基づいて当該モジュールに対応した前記デバイスドライバを前記プログラム表示領域に表示する。   According to the invention according to claim 5, in claim 4, the module information of the module includes hardware information related to the configuration of the module, and the display unit receives the module based on the acquired hardware information. The device driver corresponding to is displayed in the program display area.

請求項6に係る発明によると、請求項3〜5の何れか一項において、前記表示部は、前記カメラ装置を構成する複数の前記モジュールに前記画像データに対して画像処理を実行する画像処理モジュールが含まれる場合に、前記プログラムとして実行可能な前記画像処理を前記プログラム表示領域に表示し、前記選択表示領域に選択された前記画像処理を指定された実行順に表示する。   According to a sixth aspect of the present invention, in any one of the third to fifth aspects, the display unit performs image processing on the image data on the plurality of modules constituting the camera device. When a module is included, the image processing executable as the program is displayed in the program display area, and the selected image processing is displayed in the designated execution order in the selected display area.

請求項7に係る発明によると、請求項6において、前記選択表示領域に一以上の前記画像処理が選択された場合に、当該画像処理を指定された実行順で実行したものと仮定して、実行後の前記画像データをシミュレーションするシミュレーション部をさらに備える。   According to the invention according to claim 7, in claim 6, when one or more of the image processes are selected in the selection display area, it is assumed that the image processes are executed in a designated execution order, A simulation unit for simulating the image data after execution is further provided.

請求項8に係る発明によると、請求項2〜7の何れか一項において、前記モジュールに対して選択された前記プログラムについて前記モジュール情報に基づいて適正判定する判定部をさらに備える。   According to an eighth aspect of the present invention, the information processing apparatus according to any one of the second to seventh aspects further includes a determination unit that determines appropriateness of the program selected for the module based on the module information.

請求項9に係る発明によると、請求項1〜8の何れか一項において、前記通信部は、前記外部通信モジュールが前記外部機器と通信する通信手段によって、前記カメラ装置と通信可能に接続される。
請求項10に係る発明によると、請求項1〜9の何れか一項において、前記外部通信モジュールは、通信可能に接続される前記外部機器によって規定される通信プロトコルまたは通信規格に準拠し、且つ規定のデータ伝送路に対応した通信手段によって前記外部機器との間で通信可能な外部通信機能を有する。前記プログラム実装部は、前記外部通信機能を実行する前記プログラムを前記モジュールの前記回路素子に転送する。
請求項11に係る発明によると、請求項1〜10の何れか一項において、前記プログラム実装部は、前記カメラ装置を構成する複数の前記モジュールに前記画像データに基づいて所定の動作を自動で行う自律動作機能を有する自律動作モジュールが含まれている場合に、前記自律動作機能を実行する前記プログラムを前記モジュールの前記回路素子に転送する。
According to a ninth aspect of the present invention, in any one of the first to eighth aspects, the communication unit is communicably connected to the camera device by a communication unit in which the external communication module communicates with the external device. The
According to the invention according to claim 10, in any one of claims 1 to 9, the external communication module conforms to a communication protocol or communication standard defined by the external device to be communicably connected, and An external communication function capable of communicating with the external device by communication means corresponding to a prescribed data transmission path; The program implementation unit transfers the program for executing the external communication function to the circuit element of the module.
According to an eleventh aspect of the present invention, in any one of the first to tenth aspects, the program mounting unit automatically performs a predetermined operation on the plurality of modules constituting the camera device based on the image data. When an autonomous operation module having an autonomous operation function to be performed is included, the program for executing the autonomous operation function is transferred to the circuit element of the module.

請求項1に係る発明によると、カメラ装置は、異なる機能を有する3以上のモジュールから選択された複数のモジュールを着脱可能に連結して構成される。そのため、このようなカメラ装置によれば、複数のモジュールを要求に応じて連結することが可能となり、種々の用途に容易に適用することができる。また、カメラ装置を構成する複数のモジュールのうち少なくとも一以上のモジュールには、プログラムを実装可能な回路素子が設けられている。この回路素子は、広義のPLD(Programmable Logic Device)やASIC(Application Specific Integrated Circuit)、マイコンなどに相当するものである。PLDおよびASICは、論理回路を定義されることによって特定の処理(プログラム)を実行可能となる集積回路である。このように、複数のモジュールにより構成されるカメラ装置は、要求される機能を発揮するためには、モジュールに設けられた回路素子にプログラムを実装して、カメラ装置としてのシステムを構築する必要がある。   According to the first aspect of the present invention, the camera device is configured by detachably connecting a plurality of modules selected from three or more modules having different functions. Therefore, according to such a camera device, a plurality of modules can be connected as required, and can be easily applied to various applications. In addition, at least one of the plurality of modules constituting the camera device is provided with a circuit element capable of mounting a program. This circuit element corresponds to a PLD (Programmable Logic Device), an ASIC (Application Specific Integrated Circuit), a microcomputer, or the like in a broad sense. PLDs and ASICs are integrated circuits that can execute specific processing (programs) by defining logic circuits. As described above, in order for a camera device constituted by a plurality of modules to exhibit a required function, it is necessary to construct a system as a camera device by mounting a program on a circuit element provided in the module. is there.

そこで、本発明においては、カメラ装置と通信可能に接続される通信部を介して、プログラム実装部がモジュールの回路素子に実装するプログラムを転送する構成としている。これにより、カメラ装置は、実装されたプログラムによって各モジュールにそれぞれ割り当てられた機能を発揮するようにシステムが構築される。よって、従来と比較して設計上の自由度が高く、要求される機能や性能に対応可能なカメラ装置を構成することができる。また、複数のモジュールは、モジュール単位での設計や検査が可能であり、既存のモジュールを流用することができる。これにより、専用のカメラ装置を製作する場合と比較して、開発工数を大幅に削減することができる。   Therefore, in the present invention, the program mounting unit transfers the program mounted on the circuit element of the module via a communication unit that is communicably connected to the camera device. As a result, the system is constructed so that the camera device exhibits the function assigned to each module by the installed program. Therefore, a camera device having a higher degree of design freedom than conventional ones and capable of supporting required functions and performances can be configured. The plurality of modules can be designed and inspected in module units, and existing modules can be used. Thereby, compared with the case where a dedicated camera apparatus is manufactured, a development man-hour can be reduced significantly.

請求項2に係る発明によると、表示部がモジュール情報に基づいて回路素子に実装可能なプログラムを選択可能に表示するものとしている。ここで、カメラ装置は、用途などに応じて複数のモジュールを選択して構成されるため、その組み合わせが決定するまでは、どのようなハードウェア構成となるか特定されない。そこで、先ず、カメラ装置を構成する所定のモジュールの組み合わせが決定した場合に、情報取得部により各モジュールがどのような機能を有するのかなどのモジュール情報を取得する。モジュール情報の取得方法については、システム構築装置に連結されたカメラ装置と通信することにより取得してもよいし、ユーザーにより決定したモジュールの組み合わせを入力されることにより取得してもよい。そして、表示部がこのモジュール情報に基づいてプログラムを表示することにより、プログラムの選択が補助されて容易となる。よって、カメラ装置のシステム構築を簡易化することができる。   According to the invention which concerns on Claim 2, the display part shall display the program which can be mounted in a circuit element based on module information so that selection is possible. Here, since the camera device is configured by selecting a plurality of modules according to the usage or the like, the hardware configuration is not specified until the combination is determined. Therefore, first, when a combination of predetermined modules constituting the camera device is determined, module information such as what functions each module has is acquired by the information acquisition unit. About the acquisition method of module information, you may acquire by communicating with the camera apparatus connected with the system construction apparatus, and you may acquire it by inputting the combination of the module determined by the user. And a display part displays a program based on this module information, and selection of a program is assisted and becomes easy. Therefore, the system construction of the camera device can be simplified.

請求項3に係る発明によると、モジュールに設けられた回路素子に実装可能なプログラムは、表示部にアイコンとして表示される。そして、このアイコンをプログラム表示領域から選択表示領域にドラッグアンドドロップすることで、容易にプログラムの選択をすることができる。このような構成においては、反対に選択表示領域からプログラム表示領域にドラッグアンドドロップすることで、プログラムの選択を解除することができる。このように、ドラッグアンドドロップのような簡易なマウスジェスチャーにプログラムの選択または解除を行う機能を割り当てることにより、カメラ装置の各モジュールへのプログラムの実装を簡易化することができる。   According to the third aspect of the present invention, the program that can be mounted on the circuit element provided in the module is displayed as an icon on the display unit. Then, by dragging and dropping this icon from the program display area to the selection display area, the program can be easily selected. In such a configuration, the selection of the program can be canceled by dragging and dropping from the selection display area to the program display area. Thus, by assigning a function for selecting or canceling a program to a simple mouse gesture such as drag and drop, it is possible to simplify the implementation of the program in each module of the camera device.

請求項4に係る発明によると、表示部は、プログラムとしてモジュールのデバイスドライバをプログラム表示領域に表示するものとしている。カメラ装置を構成するモジュールには、当該モジュールが有するハードウェアを駆動させることにより、割り当てられた機能を実行するものがある。そのため、表示部がモジュールに対応したデバイスドライバを表示することにより、必要に応じたプログラムの選択を簡易化することができる。また、表示部においては、デバイスドライバのプログラム名を直接的に表示してもよいし、デバイスドライバに対応するモジュール名を表示するようにしてもよい。   According to the invention of claim 4, the display unit displays the device driver of the module as a program in the program display area. Some modules constituting the camera apparatus execute assigned functions by driving hardware included in the modules. Therefore, when the display unit displays the device driver corresponding to the module, selection of a program according to need can be simplified. In the display unit, the program name of the device driver may be directly displayed, or the module name corresponding to the device driver may be displayed.

請求項5に係る発明によると、表示部は、ハードウェア情報に基づいてモジュールに対応したデバイスドライバをプログラム表示領域に表示するものとしている。これにより、デバイスドライバの選択を促すようにアシストすることができるので、システム構築におけるプログラムの選択が容易となる。   According to the invention which concerns on Claim 5, the display part shall display the device driver corresponding to a module on a program display area based on hardware information. Thereby, since it can assist so that selection of a device driver may be promoted, selection of a program in system construction becomes easy.

請求項6に係る発明によると、表示部は、画像処理モジュールが実行可能な画像処理をプログラム表示領域に表示するものとしている。カメラ装置には、撮像して取得した画像データを外部装置に転送する前に、画像データに対して所定の画像処理を実行するために、画像処理モジュールが含まれるように構成されることがある。そこで、画像処理モジュールが実行可能な画像処理をプログラム表示領域に表示することで、画像処理の選択を簡易化することができる。また、画像処理モジュールは、画像データに対して複数の画像処理を所定の順序で実行することがある。これは、同様の画像処理を実行する場合においても、その実行順によっては結果が異なるためである。そこで、選択表示領域では、選択された複数の画像処理を実行順に表示するようにしている。これにより、画像処理の実行順を目視で確認することができるので、画像処理の順序を誤って指定することを防止できる。   According to the sixth aspect of the present invention, the display unit displays image processing executable by the image processing module in the program display area. The camera device may be configured to include an image processing module for performing predetermined image processing on the image data before transferring the image data acquired by imaging to the external device. . Thus, by displaying image processing executable by the image processing module in the program display area, selection of image processing can be simplified. The image processing module may perform a plurality of image processing on the image data in a predetermined order. This is because even when similar image processing is executed, the result differs depending on the execution order. Therefore, in the selection display area, a plurality of selected image processes are displayed in the order of execution. As a result, the execution order of the image processing can be visually confirmed, so that it is possible to prevent the image processing order from being erroneously designated.

請求項7に係る発明によると、仮想的に画像処理を実行するシミュレーション部を有するものとしている。画像処理モジュールが実行可能な画像処理としては、画像データの二値化やフィルタリングなどがある。さらに、上述したように、複数の画像処理が選択された場合には、その実行順によって結果が異なることがある。そのため、シミュレーション部により選択された画像処理を指定された実行順で実行したものとして、仮想的な結果をシミュレーションする。これにより、現在のところ選択されている画像処理が、画像処理モジュールに要求される画像処理として妥当であるかを判断することができる。これにより、適切な画像処理を容易に選択することができるので、カメラ装置のシステム構築に要する工数を低減できる。また、シミュレーション部は、仮想的な画像処理の結果を得るためのものであり、画像処理を実行する対象の画像データとしては、連結されているカメラ装置が撮像したものでもよいし、予め用意されているサンプルとしてもよい。   According to the invention which concerns on Claim 7, it has a simulation part which performs an image process virtually. Image processing that can be executed by the image processing module includes binarization and filtering of image data. Furthermore, as described above, when a plurality of image processes are selected, the result may differ depending on the execution order. Therefore, the virtual result is simulated assuming that the image processing selected by the simulation unit is executed in the designated execution order. As a result, it is possible to determine whether the currently selected image processing is appropriate as the image processing required for the image processing module. Thereby, since appropriate image processing can be easily selected, the man-hour required for system construction of the camera device can be reduced. The simulation unit is for obtaining a result of virtual image processing, and image data to be subjected to image processing may be captured by a connected camera device or prepared in advance. It is good also as a sample.

請求項8に係る発明によると、判定部により選択されたプログラムの適正を判定するものとしている。表示部にはモジュールの回路素子に実装可能なプログラムを選択可能に表示しているが、上記のような構成とすることで、選択されたプログラムが実装される前に適正を判定することができる。これにより、誤ったプログラムを選択することを確実に防止することができる。   According to the invention which concerns on Claim 8, the suitability of the program selected by the determination part shall be determined. The display unit displays a program that can be mounted on the circuit element of the module in a selectable manner. By adopting the above configuration, it is possible to determine appropriateness before the selected program is mounted. . This can reliably prevent selection of an incorrect program.

請求項9に係る発明によると、通信部は、外部通信モジュールが外部機器と通信する通信手段によって、カメラ装置と通信可能に接続されるものとしている。ここで、外部通信モジュールは、種々の通信プロトコルや通信規格などに準拠するとともに、同軸ケーブルやUSBなどのデータ伝送路に対応した通信手段を有している。そこで、外部通信モジュールの通信手段によって通信部がカメラ装置と通信する構成とすることで、外部通信モジュールに対して専用の通信手段を設ける必要がなくなりコストを低減できる。   According to the ninth aspect of the present invention, the communication unit is communicably connected to the camera device by means of communication means in which the external communication module communicates with the external device. Here, the external communication module conforms to various communication protocols and communication standards, and has communication means corresponding to a data transmission path such as a coaxial cable and a USB. Therefore, by adopting a configuration in which the communication unit communicates with the camera device by the communication means of the external communication module, it is not necessary to provide a dedicated communication means for the external communication module, thereby reducing cost.

実施形態におけるカメラ装置の使用状態の一例を示す概念図である。It is a conceptual diagram which shows an example of the use condition of the camera apparatus in embodiment. 複数のモジュールを選択的に連結して構成されたカメラ装置の模式図である。It is a schematic diagram of the camera apparatus comprised by selectively connecting a some module. カメラ装置とシステム構築装置を示すブロック図である。It is a block diagram which shows a camera apparatus and a system construction apparatus. システム構築装置における表示画面を示す図である。It is a figure which shows the display screen in a system construction apparatus. 画像処理のシミュレーションの状態を示す図である。(a)は画像処理をノイズ除去、二値化の順に実行した結果を示し、(b)は画像処理を二値化、ノイズ除去の順に実行した結果を示している。It is a figure which shows the state of the simulation of image processing. (A) shows the result of executing image processing in the order of noise removal and binarization, and (b) shows the result of executing image processing in the order of binarization and noise removal. カメラ装置のシステム構築の流れを示すフローチャートである。It is a flowchart which shows the flow of the system construction of a camera apparatus. 実施形態の第一変形態様におけるカメラ装置とシステム構築装置を示すブロック図である。It is a block diagram which shows the camera apparatus and system construction apparatus in the 1st modification of embodiment. 実施形態の第二変形態様におけるカメラ装置とシステム構築装置を示すブロック図である。It is a block diagram which shows the camera apparatus and system construction apparatus in the 2nd modification of embodiment.

以下、本発明のカメラ装置のシステム構築装置を具体化した実施形態について図面を参照して説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Embodiments of a system construction device for a camera device according to the invention will be described below with reference to the drawings.

<実施形態>
(カメラ装置10の構成)
先ず、本発明のシステム構築装置20が適用されるカメラ装置10の構成について、図1〜図3を参照して説明する。また、本実施形態において、カメラ装置10は、電子部品装着装置1に組み込まれている構成としている。この電子部品装着装置1は、例えば、集積回路の製造工程において、プリント基板CBに複数の電子部品を実装する装置である。また、プリント基板CBは、クリームハンダ印刷機により電子部品の装着位置にハンダを塗布され、複数の装着装置を順に搬送されて電子部品が装着される。その後に、電子部品が装着されたプリント基板CBは、リフロー炉に搬送されてハンダ付けされることにより集積回路を構成する。
<Embodiment>
(Configuration of the camera device 10)
First, the configuration of the camera device 10 to which the system construction device 20 of the present invention is applied will be described with reference to FIGS. In the present embodiment, the camera apparatus 10 is configured to be incorporated in the electronic component mounting apparatus 1. The electronic component mounting apparatus 1 is an apparatus for mounting a plurality of electronic components on a printed circuit board CB, for example, in an integrated circuit manufacturing process. Also, the printed circuit board CB is coated with solder at the mounting position of the electronic component by a cream solder printing machine, and is transported through a plurality of mounting devices in order to mount the electronic component. Thereafter, the printed circuit board CB on which electronic components are mounted is transported to a reflow furnace and soldered to form an integrated circuit.

この電子部品装着装置1は、図1に示すように、制御装置2と、カメラ装置10を備えている。制御装置2は、CPUおよびメモリなどから構成され、電子部品装着装置1に対する指令値やカメラ装置10およびセンサなどから出力される情報を入力する。そして、制御装置2は、これらの指令値や各種情報に基づいて、プリント基板CBに電子部品が適切に装着されるように電子部品装着装置1の各軸モータや各装置などを制御する。また、本実施形態において、カメラ装置10は、電子部品装着装置1が電子部品を装着する際に、コンベアなどの搬送装置によって規定位置まで搬送されたプリント基板CBを撮像する基板カメラとして用いられている。   As shown in FIG. 1, the electronic component mounting apparatus 1 includes a control device 2 and a camera device 10. The control device 2 includes a CPU and a memory, and inputs a command value for the electronic component mounting device 1 and information output from the camera device 10 and a sensor. And the control apparatus 2 controls each axis motor, each apparatus, etc. of the electronic component mounting apparatus 1 so that an electronic component is mounted | worn appropriately to the printed circuit board CB based on these command values and various information. In the present embodiment, the camera device 10 is used as a substrate camera that captures an image of the printed circuit board CB transported to a specified position by a transport device such as a conveyor when the electronic component mounting device 1 mounts the electronic component. Yes.

より詳細には、基板カメラであるカメラ装置10は、制御装置2との通信により入力した撮像指令に基づいて、規定位置まで搬送されてクランプされたプリント基板CBを撮像する。そして、カメラ装置10は、取得した画像データに対して所定の画像処理を実行して制御装置2に出力する。次に、制御装置2は、画像データからプリント基板CBの対角する二隅に設けられた基板マークを基準位置として認識する。これにより、制御装置2は、電子部品が設定された座標値に装着することが可能となる。つまり、プリント基板CBのクランプの際に生じる位置誤差を画像データに基づいて補正することで、部品実装の高精度化を図っている。このように、本実施形態においては、制御装置2はカメラ装置10の上位に位置する外部機器であって、プリント基板CBはカメラ装置10によって撮像される被写体である。   More specifically, the camera device 10 that is a substrate camera images the printed circuit board CB that has been transported to a specified position and clamped based on an imaging command that is input through communication with the control device 2. Then, the camera device 10 performs predetermined image processing on the acquired image data and outputs it to the control device 2. Next, the control device 2 recognizes the board marks provided at the two opposite corners of the printed circuit board CB as the reference position from the image data. As a result, the control device 2 can mount the electronic component at the set coordinate value. In other words, by correcting the position error that occurs when the printed circuit board CB is clamped based on the image data, the accuracy of component mounting is improved. Thus, in the present embodiment, the control device 2 is an external device positioned above the camera device 10, and the printed circuit board CB is a subject imaged by the camera device 10.

この他に、カメラ装置10は、例えば、部品実装ヘッドの吸着ノズルに吸着された電子部品の状態を撮像する部品カメラなどにも用いることが可能である。さらには、複数の被写体を撮像するために複数の撮像素子を有する複眼式のカメラ装置10として電子部品装着装置1に用いることもできる。何れの場合にも、カメラ装置10は、上位装置である制御装置2によって動作を制御されることになる。また、カメラ装置10は、電子部品が実装されたプリント基板CBを検査する基板検査装置に組み込むことも可能である。この場合には、カメラ装置10は、プリント基板CBを撮像する検査カメラとして用いられる。このように、カメラ装置10は、基板生産以外の用途にも用いることが可能である。この場合には、汎用のパソコンや専用の画像処理ボードなどが上位装置として用いられる。   In addition, the camera device 10 can be used for a component camera that captures the state of an electronic component sucked by a suction nozzle of a component mounting head, for example. Furthermore, it can also be used in the electronic component mounting apparatus 1 as a compound eye type camera apparatus 10 having a plurality of image sensors for imaging a plurality of subjects. In any case, the operation of the camera device 10 is controlled by the control device 2 which is a host device. The camera device 10 can also be incorporated into a board inspection apparatus that inspects the printed circuit board CB on which electronic components are mounted. In this case, the camera device 10 is used as an inspection camera that images the printed circuit board CB. Thus, the camera apparatus 10 can be used for purposes other than board production. In this case, a general-purpose personal computer or a dedicated image processing board is used as the host device.

カメラ装置10は、異なる機能を有する3以上のモジュールから選択されたモジュールを着脱可能に連結して構成されている。本実施形態では、カメラ装置10は、図2に示すように、撮像モジュール11と、画像処理モジュール12と、外部通信モジュール13と、自律動作モジュール14と、光源モジュール15を含むモジュールのうち、撮像モジュール11、画像処理モジュール12、および外部通信モジュール13を一つずつ選択し、この順で連結して構成されている。   The camera device 10 is configured by detachably connecting modules selected from three or more modules having different functions. In the present embodiment, as shown in FIG. 2, the camera apparatus 10 captures an image among modules including an imaging module 11, an image processing module 12, an external communication module 13, an autonomous operation module 14, and a light source module 15. The module 11, the image processing module 12, and the external communication module 13 are selected one by one and connected in this order.

また、例示している各モジュール11〜15は、互いに異なる機能を有している。そして、各モジュール11〜15には、同様の機能を有する複数種類のタイプが用意されている。また、各モジュール11〜15は、共通化された共通信号によってお互いに通信可能な通信部を有し、着脱可能な連結部が設けられた同形状の筐体に収容されている。そして、カメラ装置10は、各モジュール11〜15から用途に応じて選択し、自由に組み合わせることが可能となっている。また、同種のモジュールを複数連結することも可能である。各モジュール11〜15の機能および構成の詳細については後述する。   The illustrated modules 11 to 15 have different functions. Each module 11-15 is provided with a plurality of types having similar functions. Each of the modules 11 to 15 includes a communication unit that can communicate with each other using a common signal that is shared, and is housed in a casing having the same shape provided with a detachable connecting unit. And the camera apparatus 10 can be selected from each module 11-15 according to a use, and can be combined freely. It is also possible to connect a plurality of modules of the same type. Details of functions and configurations of the modules 11 to 15 will be described later.

撮像モジュール11は、被写体であるプリント基板CBを撮像して画像データを取得するモジュールである。この撮像モジュール11は、図3に示すように、PLD11aと、メモリ部11bと、イメージセンサ11cを有している。PLD11aは、撮像モジュール11に割り当てられた撮像機能を実行するプログラムを実装可能な回路素子である。PLD11aは、撮像モジュール11がカメラ装置10を構成した後においても、上記のプログラムに相当する論理回路を定義可能な集積回路である。より具体的には、FPGA(Field Programmable Gate Array)、CPLD(Complex Programmable Logic Device)などに相当する。   The imaging module 11 is a module that captures an image of a printed circuit board CB that is a subject and acquires image data. As shown in FIG. 3, the imaging module 11 includes a PLD 11a, a memory unit 11b, and an image sensor 11c. The PLD 11a is a circuit element capable of mounting a program for executing an imaging function assigned to the imaging module 11. The PLD 11a is an integrated circuit capable of defining a logic circuit corresponding to the above program even after the imaging module 11 configures the camera device 10. More specifically, this corresponds to an FPGA (Field Programmable Gate Array), CPLD (Complex Programmable Logic Device), or the like.

そして、PLD11aは、カメラ装置10の撮像モジュール11として必要な機能を有するように、システム構築装置20によってプログラムが実装される。PLD11aに実装されるプログラムは、イメージセンサ11cを動作させるデバイスドライバ、連結される画像処理モジュール12と通信を行う通信プログラムなどである。また、この通信プログラムは、各モジュール11〜15の間で共通化された共通信号によって互いに通信可能としている。従って、PLD11aは、撮像モジュール11における通信部としても機能している。   And the program is mounted by the system construction device 20 so that the PLD 11a has a function necessary as the imaging module 11 of the camera device 10. The programs installed in the PLD 11a are a device driver that operates the image sensor 11c, a communication program that communicates with the image processing module 12 to be connected, and the like. The communication program can communicate with each other by a common signal shared between the modules 11 to 15. Therefore, the PLD 11a also functions as a communication unit in the imaging module 11.

メモリ部11bは、撮像モジュール11の構成に係るハードウェア情報を記憶するフラッシュメモリである。上記のハードウェア情報は、具体的には、イメージセンサ11cの画素数や画像転送速度などが含まれる。イメージセンサ11cは、CCDやCMOS等の撮像素子である。このイメージセンサ11cは、その撮像面が撮像モジュールに設けられたレンズの光軸に対して直角となるように配置されている。そして、イメージセンサ11cは、レンズにより撮像面に結像された光の強弱に応じて発生される信号電荷によってデジタル信号に変換し、被写体を撮像する。そして、イメージセンサ11cから出力されるデジタル信号に基づいてPLD11aが画像データに変換している。本実施形態においては、撮像モジュール11は、レンズとイメージセンサ11cを一組だけ有する単眼式の構成としている。   The memory unit 11 b is a flash memory that stores hardware information related to the configuration of the imaging module 11. Specifically, the hardware information includes the number of pixels of the image sensor 11c, the image transfer speed, and the like. The image sensor 11c is an image sensor such as a CCD or a CMOS. The image sensor 11c is arranged so that its imaging surface is perpendicular to the optical axis of a lens provided in the imaging module. Then, the image sensor 11c converts the signal into a digital signal by a signal charge generated according to the intensity of light imaged on the imaging surface by the lens, and images the subject. The PLD 11a converts the image data into image data based on the digital signal output from the image sensor 11c. In the present embodiment, the imaging module 11 has a monocular configuration having only one set of a lens and an image sensor 11c.

画像処理モジュール12は、撮像モジュール11が取得した画像データに対して画像処理を実行するモジュールである。この画像処理モジュール12は、図3に示すように、PLD12aと、メモリ部12bを有している。PLD12aは、画像処理モジュール12に割り当てられた画像処理機能を実行するプログラムを実装可能な回路素子である。画像処理モジュール12のPLD12aは、撮像モジュール11のPLD11aと同様であるため、詳細な説明を省略する。   The image processing module 12 is a module that executes image processing on the image data acquired by the imaging module 11. As shown in FIG. 3, the image processing module 12 includes a PLD 12a and a memory unit 12b. The PLD 12 a is a circuit element that can mount a program that executes an image processing function assigned to the image processing module 12. Since the PLD 12a of the image processing module 12 is the same as the PLD 11a of the imaging module 11, detailed description thereof is omitted.

画像処理モジュール12のPLD12aに実装されるプログラムは、基板カメラとしての画像処理プログラム、連結される撮像モジュール11および外部通信モジュール13と通信を行う通信プログラムなどである。この画像処理プログラムは、カメラ装置10から画像データを入力した制御装置2が基板マークを基準位置として認識できるように画像処理を実行するものである。この画像処理は、例えば、画像データの二値化、フィルタリング、色相抽出などであって、必要に応じて選択的に実装される。また、通信プログラムは、撮像モジュール11のPLD11aに実装されたものと同様に、共通信号によって通信を行うものである。従って、PLD12aは、画像処理モジュール12における通信部としても機能している。   The programs mounted on the PLD 12 a of the image processing module 12 are an image processing program as a board camera, a communication program for communicating with the imaging module 11 and the external communication module 13 to be connected. This image processing program executes image processing so that the control device 2 that has input image data from the camera device 10 can recognize the substrate mark as a reference position. This image processing is, for example, binarization of image data, filtering, hue extraction, and the like, and is selectively implemented as necessary. In addition, the communication program performs communication using a common signal, similar to the one installed in the PLD 11a of the imaging module 11. Therefore, the PLD 12a also functions as a communication unit in the image processing module 12.

メモリ部12bは、書き換えによる記憶内容の変更が可能であり、また電源が切れても記憶内容を保持する不揮発性のフラッシュメモリである。メモリ部12bは、例えば、PLD12aによる画像処理の際に、一時的に画像データを保持するなど、補助的な記憶部として使用される。   The memory unit 12b is a non-volatile flash memory that can change the stored content by rewriting and retains the stored content even when the power is turned off. The memory unit 12b is used as an auxiliary storage unit, for example, temporarily holding image data during image processing by the PLD 12a.

外部通信モジュール13は、外部機器である制御装置2と通信するモジュールである。この外部通信モジュール13は、図3に示すように、PLD13aと、メモリ部13bと、インターフェイスIC13cを有している。PLD13aは、外部通信モジュール13に割り当てられた外部通信機能を実行するプログラムを実装可能な回路素子である。外部通信モジュール13のPLD13aは、撮像モジュール11のPLD11aと同様であるため、詳細な説明を省略する。   The external communication module 13 is a module that communicates with the control device 2 that is an external device. As shown in FIG. 3, the external communication module 13 includes a PLD 13a, a memory unit 13b, and an interface IC 13c. The PLD 13 a is a circuit element that can mount a program that executes an external communication function assigned to the external communication module 13. Since the PLD 13a of the external communication module 13 is the same as the PLD 11a of the imaging module 11, detailed description thereof is omitted.

外部通信モジュール13のPLD13aに実装されるプログラムは、インターフェイスIC13cを動作させるデバイスドライバ、連結される画像処理モジュールと通信を行う通信プログラムなどである。また、この通信プログラムは、撮像モジュール11のPLD11aに定義されたものと同様に、共通信号によって通信を行うものである。従って、PLD13aは、外部通信モジュール13における通信部としても機能している。   The programs installed in the PLD 13a of the external communication module 13 are a device driver that operates the interface IC 13c, a communication program that communicates with a connected image processing module, and the like. In addition, this communication program communicates with a common signal, similar to the one defined in the PLD 11a of the imaging module 11. Therefore, the PLD 13a also functions as a communication unit in the external communication module 13.

メモリ部13bは、外部通信モジュール13の構成に係るハードウェア情報を記憶するフラッシュメモリである。上記のハードウェア情報は、具体的には、インターフェイスIC13cの転送速度や転送バス幅などがある。インターフェイスIC13cは、制御装置2と通信する所定の通信機能を有する電子回路である。このようなインターフェイスIC13cとしては、種々の通信プロトコルや通信規格などに応じて設計され、パラレルインターフェイスや同軸ケーブル、USBなどのデータ伝送路に対応した通信形態を有している。   The memory unit 13 b is a flash memory that stores hardware information related to the configuration of the external communication module 13. Specifically, the hardware information includes the transfer speed and transfer bus width of the interface IC 13c. The interface IC 13 c is an electronic circuit having a predetermined communication function that communicates with the control device 2. Such an interface IC 13c is designed according to various communication protocols and communication standards, and has a communication form corresponding to a data transmission path such as a parallel interface, a coaxial cable, or a USB.

自律動作モジュール14は、撮像モジュール11が取得する画像データなどに基づいて、カメラ装置10における所定の動作を自動で行う機能を割り当てられたモジュールである。このような機能として、例えば、被写体の動きに合わせてカメラ装置10の撮像方向を変える自動追従機能、被写体の特定マークを認識して撮像モジュール11に撮像指令を出力する自動撮像機能などがある。そして、自律動作モジュール14は、何れの機能を有する場合においても、共通信号によって他のモジュールと通信可能な通信部を有している。この自律動作モジュール14の通信部は、自律動作機能を実行するPLDやマイコンなどに通信プログラムを実装するものとしてもよい。   The autonomous operation module 14 is a module to which a function for automatically performing a predetermined operation in the camera device 10 based on image data acquired by the imaging module 11 is assigned. Examples of such functions include an automatic tracking function that changes the imaging direction of the camera device 10 in accordance with the movement of the subject, and an automatic imaging function that recognizes a specific mark of the subject and outputs an imaging command to the imaging module 11. The autonomous operation module 14 has a communication unit capable of communicating with other modules by a common signal regardless of the function. The communication unit of the autonomous operation module 14 may be configured to implement a communication program in a PLD or a microcomputer that executes an autonomous operation function.

光源モジュール15は、上位装置である制御装置2の制御指令などに基づいて、カメラ装置10が撮像を行う際に被写体を照射する照明機能を割り当てられたモジュールである。このような光源モジュール15には、LEDや電球などを光源とし、照度センサによる測定値に応じて照射量を調整する機能を有するものとしてもよい。そして、光源モジュール15は、何れの構成により照明機能を有する場合においても、共通信号によって他のモジュールと通信可能な通信部を有している。この光源モジュール15の通信部は、照明機能を実行するPLDやマイコンなどに通信プログラムを実装するものとしてもよい。   The light source module 15 is a module assigned with an illumination function for irradiating a subject when the camera device 10 performs imaging based on a control command of the control device 2 that is a host device. Such a light source module 15 may have a function of adjusting an irradiation amount according to a measurement value by an illuminance sensor using an LED or a light bulb as a light source. The light source module 15 includes a communication unit that can communicate with other modules by a common signal regardless of the configuration of the light source module 15. The communication unit of the light source module 15 may be a module that implements a communication program in a PLD or a microcomputer that performs an illumination function.

上記のような構成からなるカメラ装置10は、例えば、制御装置2による撮像指令に基づいて、プリント基板CBを撮像して、画像処理を実行した画像データを制御装置2に出力する。このように、カメラ装置10は、電子部品装着装置1において基板カメラとして用いられている。ここで、カメラ装置10は、撮像指令を入力すると、各モジュール11〜13のPLD11a,12a,13aが所定のプログラムを実行して、被写体の撮像、画像処理、および画像データの出力を実行する。この時、各モジュール11〜13のPLD11a,12a,13aは、予め設定された共通信号によって互いに通信している。より具体的には、PLD11a,12a,13aは、例えば、バス形式で接続され、所定の転送速度により同期または非同期のシリアル通信を行う。このような構成とすることで、種々のモジュールを選択的に連結してカメラ装置を構成しても、各モジュールの間での通信を可能としている。   The camera device 10 configured as described above, for example, captures an image of the printed circuit board CB based on an imaging command from the control device 2 and outputs image data that has undergone image processing to the control device 2. Thus, the camera device 10 is used as a board camera in the electronic component mounting apparatus 1. Here, when an imaging command is input to the camera device 10, the PLDs 11 a, 12 a, and 13 a of the modules 11 to 13 execute predetermined programs to execute imaging of an object, image processing, and output of image data. At this time, the PLDs 11a, 12a, and 13a of the modules 11 to 13 communicate with each other using a preset common signal. More specifically, the PLDs 11a, 12a, and 13a are connected in a bus format, for example, and perform synchronous or asynchronous serial communication at a predetermined transfer rate. With such a configuration, even when various modules are selectively connected to form a camera device, communication between the modules is possible.

さらに、画像処理モジュール12は、カメラ装置10の電源がオンになると、連結される撮像モジュール11のメモリ部11bに記憶されたハードウェア情報を入力する。これにより、画像処理モジュール12は、撮像モジュール11の構成に係るハードウェア情報に応じて、所定の画像転送速度で画像データを入力し、所定の画素数に対応した画像処理を実行する。同様に、画像処理モジュール12は、連結されている外部通信モジュール13のメモリ部13bに記憶されているハードウェア情報を入力する。これにより、画像処理モジュール12は、外部通信モジュール13の構成に係るハードウェア情報に応じて、画像処理を実行した画像データを外部通信モジュール13に転送する。   Further, when the power of the camera device 10 is turned on, the image processing module 12 inputs hardware information stored in the memory unit 11b of the imaging module 11 to be connected. As a result, the image processing module 12 inputs image data at a predetermined image transfer speed according to the hardware information related to the configuration of the imaging module 11, and executes image processing corresponding to a predetermined number of pixels. Similarly, the image processing module 12 inputs hardware information stored in the memory unit 13b of the connected external communication module 13. As a result, the image processing module 12 transfers the image data subjected to the image processing to the external communication module 13 according to the hardware information related to the configuration of the external communication module 13.

(システム構築装置20の構成)
続いて、システム構築装置20の構成について、図3〜図5を参照して説明する。システム構築装置20は、カメラ装置10の用途などに応じて機能を実装するものであり、複数のモジュールにより構成されるカメラ装置10を対象とした専用ソフトウェアを含んでいる。このシステム構築装置20は、図3に示すように、通信部21と、プログラム実装部22と、情報取得部23と、表示部24と、シミュレーション部25と、判定部26を備える。
(Configuration of system construction device 20)
Next, the configuration of the system construction device 20 will be described with reference to FIGS. The system construction device 20 implements a function according to the application of the camera device 10 and includes dedicated software for the camera device 10 composed of a plurality of modules. As illustrated in FIG. 3, the system construction device 20 includes a communication unit 21, a program mounting unit 22, an information acquisition unit 23, a display unit 24, a simulation unit 25, and a determination unit 26.

通信部21は、カメラ装置10を構成する外部通信モジュール13と通信可能に接続される。この通信部21は、本実施形態においては、外部通信モジュール13が外部機器である制御装置2と通信する通信手段を用いて、カメラ装置10と通信接続されている。つまり、選択された外部通信モジュール13が有するUSBなどのデータ伝送路により、カメラ装置10と通信部21が接続される。   The communication unit 21 is communicably connected to the external communication module 13 configuring the camera device 10. In the present embodiment, the communication unit 21 is communicatively connected to the camera device 10 using a communication unit that communicates with the control device 2 that is an external device. That is, the camera device 10 and the communication unit 21 are connected by a data transmission path such as USB included in the selected external communication module 13.

プログラム実装部22は、表示部24において表示されたプログラムを、各モジュール11〜13のPLD11a,12a,13aに通信部21を介して転送する。より具体的には、プログラム実装部22は、撮像モジュール11に対してFPGAなどの集積回路であるPLD11aにプログラムに相当する論理回路を定義する。これにより、PLD11aは、所定の機能を発揮するように駆動することが可能となる。プログラム実装部22は、その他のPLD12a,13aについても同様に、通信部を介してプログラムを転送して論理回路を定義する。また、本実施形態においては、各モジュール11〜13がPLD11a,12a,13aを有する構成としたが、その他に例えば各モジュール11〜13の一部または全部がPLDに代えてマイコンを有することもある。このような場合に、プログラム実装部22は、マイコンに収容された不揮発性メモリにプログラムを記憶させることにより、当該マイコンが所定の機能を発揮するようにしている。   The program mounting unit 22 transfers the program displayed on the display unit 24 to the PLDs 11a, 12a, and 13a of the modules 11 to 13 via the communication unit 21. More specifically, the program mounting unit 22 defines a logic circuit corresponding to a program in the PLD 11 a that is an integrated circuit such as an FPGA for the imaging module 11. As a result, the PLD 11a can be driven to perform a predetermined function. Similarly, the program implementation unit 22 defines the logic circuit by transferring the program to the other PLDs 12a and 13a via the communication unit. In the present embodiment, each of the modules 11 to 13 has the PLDs 11a, 12a, and 13a. However, for example, some or all of the modules 11 to 13 may have a microcomputer instead of the PLD. . In such a case, the program mounting unit 22 stores the program in a non-volatile memory housed in the microcomputer so that the microcomputer exhibits a predetermined function.

情報取得部23は、カメラ装置10を構成するように選択された各モジュール11〜13のモジュール情報を取得する。情報取得部23が取得するモジュール情報には、各モジュール11〜13にそれぞれ割り当てられた機能、および各モジュール11〜13の構成に係るハードウェア情報が含まれている。そのため、情報取得部23は、通信部21を介して各モジュール11〜13の各メモリ部11b,12b,13bに記憶されたハードウェア情報を取得する。   The information acquisition unit 23 acquires module information of each module 11 to 13 selected to configure the camera device 10. The module information acquired by the information acquiring unit 23 includes functions assigned to the modules 11 to 13 and hardware information related to the configuration of the modules 11 to 13. Therefore, the information acquisition unit 23 acquires hardware information stored in the memory units 11b, 12b, and 13b of the modules 11 to 13 via the communication unit 21.

表示部24は、図4に示すように、情報取得部23により取得した各モジュール11〜13のモジュール情報に基づいて、各PLD11a,12a,13aに実装可能なプログラムを選択可能に表示する。この表示部24は、各PLD11a,12a,13aに実装可能なプログラムをアイコンとして表示するプログラム表示領域Fpと、選択されたプログラムのアイコンを表示する選択表示領域Fsと、を有している。プログラム表示領域Fpには、実装可能なプログラムとして、カメラ装置10を構成するモジュールのデバイスドライバや、画像処理モジュール12が実行可能な種々の画像処理が含まれている。   As shown in FIG. 4, the display unit 24 displays selectable programs that can be installed in the PLDs 11 a, 12 a, and 13 a based on the module information of the modules 11 to 13 acquired by the information acquisition unit 23. The display unit 24 includes a program display area Fp that displays programs that can be installed in the PLDs 11a, 12a, and 13a as icons, and a selection display area Fs that displays icons of the selected programs. The program display area Fp includes device drivers of modules constituting the camera apparatus 10 and various image processes that can be executed by the image processing module 12 as mountable programs.

プログラム表示領域Fpに表示されるデバイスドライバは、情報取得部23により取得したハードウェア情報に基づいてモジュールに対応したデバイスドライバであり、当該モジュールが有するハードウェアを駆動させるプログラムである。より具体的には、撮像モジュール11にどのような種類のイメージセンサ11cが設けられているのかをハードウェア情報として取得し、このイメージセンサ11cを動作させるために必要となるデバイスドライバを表示する。また、プログラム表示領域Fpにおいては、デバイスドライバのプログラム名を直接的に表示してもよいが、本実施形態においては、選択可能なデバイスドライバに対応するデバイス(イメージセンサ11c、インターフェイスIC13c)を表示するようにしている。   The device driver displayed in the program display area Fp is a device driver corresponding to the module based on the hardware information acquired by the information acquisition unit 23, and is a program for driving the hardware included in the module. More specifically, what kind of image sensor 11c is provided in the imaging module 11 is acquired as hardware information, and a device driver necessary for operating the image sensor 11c is displayed. In the program display area Fp, the program name of the device driver may be directly displayed, but in the present embodiment, a device (image sensor 11c, interface IC 13c) corresponding to the selectable device driver is displayed. Like to do.

また、プログラム表示領域Fpに表示される画像処理は、カメラ装置10を構成する複数のモジュールに画像データに対して画像処理を実行する画像処理モジュール12が含まれる場合に表示される。本実施形態では、この画像処理モジュール12が含まれるため、表示部24は、プログラムとして実行可能な画像処理をプログラム表示領域Fpに表示している。このようなデバイスドライバや画像処理は、それぞれの機能または処理を記号化されたアイコンとして表示される。そして、このアイコンをプログラム表示領域Fpから選択表示領域Fsにドラッグアンドドロップすることで、プログラム実装部22は、当該アイコンに対応するデバイスドライバまたは画像処理が選択されたものとみなす。反対に、アイコンを選択表示領域Fsからプログラム表示領域Fpにドラッグアンドドロップ、または選択表示領域Fsのアイコンを削除することで、プログラム実装部22は、当該アイコンに対応するデバイスドライバまたは画像処理が選択解除されたものとみなす。   The image processing displayed in the program display area Fp is displayed when the plurality of modules constituting the camera device 10 includes the image processing module 12 that executes image processing on the image data. In the present embodiment, since the image processing module 12 is included, the display unit 24 displays image processing executable as a program in the program display area Fp. Such device drivers and image processing are displayed as icons symbolizing the respective functions or processing. Then, by dragging and dropping this icon from the program display area Fp to the selection display area Fs, the program mounting unit 22 considers that a device driver or image processing corresponding to the icon has been selected. Conversely, by dragging and dropping an icon from the selection display area Fs to the program display area Fp, or deleting the icon in the selection display area Fs, the program implementation unit 22 selects the device driver or image processing corresponding to the icon. It is considered that it was canceled.

ここで、複数の画像処理が選択された場合には、選択表示領域Fsにおいて、選択された画像処理を指定された実行順に表示している。ここで、画像処理モジュール12は、画像データに対して複数の画像処理を所定の順序で実行することがある。これは、同様の画像処理を実行する場合においても、その実行順によっては結果が異なるためである。例えば、図5(a)に示すように、ある画像データに対して、ノイズキャンセル処理を実行した後に、二値化処理を実行すると、最右図のような画像データが得られる。一方で、図5(b)に示すように、同じ画像データに対して、二値化処理を実行した後に、ノイズキャンセル処理を実行すると、最右図のような画像データが得られる。このように、図5(a),(b)の最右図に示されるように、それぞれ画像処理で得られる結果が異なることから、選択表示領域Fsでは、選択された複数の画像処理を実行順に表示することで、その実行順を目視可能にしている。   Here, when a plurality of image processes are selected, the selected image processes are displayed in the designated execution order in the selection display area Fs. Here, the image processing module 12 may execute a plurality of image processes on the image data in a predetermined order. This is because even when similar image processing is executed, the result differs depending on the execution order. For example, as shown in FIG. 5A, when binarization processing is executed after noise cancellation processing is performed on certain image data, image data as shown in the rightmost diagram is obtained. On the other hand, as shown in FIG. 5B, when the noise cancellation process is executed after the binarization process is performed on the same image data, the image data as shown in the rightmost figure is obtained. Thus, as shown in the rightmost diagrams of FIGS. 5A and 5B, since the results obtained by the image processing are different, the selected display region Fs executes a plurality of selected image processing. By displaying in order, the execution order is made visible.

シミュレーション部25は、選択表示領域Fsに一以上の画像処理が選択された場合に、当該画像処理を指定された実行順で実行したものと仮定して、実行後の画像データをシミュレーションする。これは、現在選択されている画像処理および実行順が、画像処理モジュール12に要求される機能として妥当であるかを判断することを目的としている。また、シミュレーション部25は、仮想的な画像処理の結果を得るためのものであり、画像処理を実行する対象の画像データとしては、連結されているカメラ装置10が撮像したものでもよいし、予め用意されているサンプルとしてもよい。   When one or more image processes are selected in the selected display area Fs, the simulation unit 25 assumes that the image processes have been executed in the designated execution order and simulates the image data after the execution. This is intended to determine whether the currently selected image processing and execution order are appropriate as functions required for the image processing module 12. The simulation unit 25 is for obtaining a result of virtual image processing, and the image data to be subjected to image processing may be one captured by the connected camera device 10 or previously. It may be a prepared sample.

判定部26は、モジュールに対して選択されたプログラムについて、取得したモジュール情報に基づいて適正判定する。表示部24には各モジュール11〜13のPLD11a,12a,13aに実装可能なプログラムを選択可能に表示しているが、PLD11a,12a,13aに論理回路を定義する前に、判定部26によりプログラムの確認を行う。つまり、判定部26は、モジュールに対して不可欠となるプログラムがある場合に、そのプログラムが選択されているか、モジュールに設けられたセンサやICに対応したドライバが選択されているかなどを判定するものである。   The determination unit 26 appropriately determines the program selected for the module based on the acquired module information. The display unit 24 displays selectable programs that can be installed in the PLDs 11a, 12a, and 13a of the modules 11 to 13, but before the logic circuit is defined in the PLDs 11a, 12a, and 13a, the program is determined by the determination unit 26. Confirm. That is, the determination unit 26 determines whether there is a program that is indispensable for the module, whether the program is selected, and whether a driver corresponding to the sensor or IC provided in the module is selected. It is.

(システム構築装置20によるプログラムの実装)
システム構築装置20によるカメラ装置10のシステム構築の流れについて、図6を参照して説明する。ここでは、上記のような構成からなるカメラ装置10を対象にした場合を例示する。つまり、カメラ装置10が3つの異なる機能を有するモジュール11〜13から構成され、各モジュール11〜13がプログラムを実装可能なPLD11a,12a,13aをそれぞれ有するものである。
(Implementation of program by system construction device 20)
The flow of system construction of the camera device 10 by the system construction device 20 will be described with reference to FIG. Here, a case where the camera apparatus 10 having the above configuration is targeted is illustrated. In other words, the camera device 10 is composed of modules 11 to 13 having three different functions, and each of the modules 11 to 13 has PLDs 11a, 12a, and 13a that can mount programs.

先ず、準備工程(S10)として、カメラ装置10とシステム構築装置20を接続し、通信準備を行う(S101)。ここでは、カメラ装置10の外部通信モジュール13と、システム構築装置20の通信部21が接続される。そして、システム構築装置20は、外部通信モジュール13が制御装置2と通信する通信手段によって、カメラ装置10と通信する。次に、情報取得部23が通信部21を介して、各モジュール11〜13のモジュール情報を取得する(S102)。これにより、カメラ装置10を構成するモジュールの数量、およびモジュール毎の機能およびハードウェア情報がシステム構築装置20に入力される。   First, as a preparation step (S10), the camera device 10 and the system construction device 20 are connected to prepare for communication (S101). Here, the external communication module 13 of the camera device 10 and the communication unit 21 of the system construction device 20 are connected. Then, the system construction device 20 communicates with the camera device 10 by communication means in which the external communication module 13 communicates with the control device 2. Next, the information acquisition part 23 acquires the module information of each module 11-13 via the communication part 21 (S102). Thereby, the number of modules constituting the camera device 10 and the function and hardware information for each module are input to the system construction device 20.

表示部24は、取得したカメラ装置10に係るモジュール情報に基づいて、図4に示すように、各PLD11a,12a,13aに実装可能なプログラムをアイコンとしてプログラム表示領域Fpに表示する。ここで表示されているプログラムは、上述したように、モジュールのデバイスドライや画像処理が含まれている。そして、これらのアイコンのうち実装するものをプログラム表示領域Fpから選択表示領域Fsにドラッグアンドドロップして、プログラムの選択を行う(S20)。反対に、アイコンを選択表示領域Fsからプログラム表示領域Fpにドラッグアンドドロップ、または選択表示領域Fsのアイコンを削除することで、プログラムの選択解除が可能となっている。   As shown in FIG. 4, the display unit 24 displays a program that can be installed in each of the PLDs 11a, 12a, and 13a as an icon in the program display area Fp based on the acquired module information related to the camera device 10. The program displayed here includes module device drying and image processing as described above. Then, among these icons, the mounted one is dragged and dropped from the program display area Fp to the selection display area Fs to select a program (S20). Conversely, the program can be deselected by dragging and dropping the icon from the selection display area Fs to the program display area Fp, or by deleting the icon in the selection display area Fs.

一通りのプログラム選択を終えたら、選択された画像処理についてシミュレーションを行う(S30)。表示部24による画面(図4参照)において、処理確認ボタンを押下すると、シミュレーション部25は、予め用意されているサンプルの画像データに対して画像処理を指定された実行順で実行する。ここでは、サンプルの画像データとしているが、カメラ装置10が実際に撮像した画像データとしてもよい。そして、シミュレーション結果として得られた画像データに基づいて、現在選択されている画像処理や実行順が妥当であるかを判断する(S40)。   When the program selection is completed, a simulation is performed for the selected image processing (S30). When the processing confirmation button is pressed on the screen (see FIG. 4) by the display unit 24, the simulation unit 25 executes image processing on the sample image data prepared in advance in the designated execution order. Here, sample image data is used, but image data actually captured by the camera device 10 may be used. Then, based on the image data obtained as the simulation result, it is determined whether the currently selected image processing and execution order are appropriate (S40).

シミュレーションの結果により、現在の選択が妥当でないと判断した場合には(S40:No)、S20に戻り画像処理の選択や実行順を調整する。そして、必要であれば再度シミュレーションを行うようにしてもよい(S30)。これらを繰り返すことにより、現在選択されている画像処理および実行順が妥当であると判断した場合には(S40:Yes)、カメラ装置10を構成する全てのモジュールに対して選択されたプログラムが妥当であるかを判定する(S50)。これは、表示部24による画面(図4参照)において、決定ボタンを押下すると、判定部26が判定処理を実行するものである。そして、判定部26は、選択表示領域Fsに表示されているアイコンに対応するプログラムが適正であるかを、取得したモジュール情報に基づいて判定する。   If it is determined from the simulation result that the current selection is not appropriate (S40: No), the process returns to S20 to adjust the selection and execution order of image processing. Then, if necessary, the simulation may be performed again (S30). If it is determined that the currently selected image processing and execution order are valid by repeating these steps (S40: Yes), the programs selected for all the modules constituting the camera device 10 are valid. (S50). In this case, when the determination button is pressed on the screen by the display unit 24 (see FIG. 4), the determination unit 26 executes the determination process. And the determination part 26 determines whether the program corresponding to the icon currently displayed on the selection display area | region Fs is appropriate based on the acquired module information.

判定の結果により、現在選択されているプログラムが適正でない場合には(S50:No)、図示しないエラーを表示してプログラムの再選択を促し、S20に戻りデバイスドライバまたは画像処理を選択する。一方で、現在選択されているプログラムが適正である場合には(S50:Yes)、プログラム実装部22が通信部21を介してプログラムの実装を行う(S60)。つまり、プログラム実装部22は、表示部24の選択表示領域Fsに表示されたアイコンに対応するプログラムを、各モジュール11〜13のPLD11a,12a,13aに通信部21を介して転送する。これにより、PLD11a,12a,13aは、プログラムに相当する論理回路が定義され、所定の機能を発揮するように駆動可能となる。このようにして、システム構築装置20によるプログラムの実装が完了し、カメラ装置10としてのシステムが構築される。   If the currently selected program is not appropriate as a result of the determination (S50: No), an error (not shown) is displayed to prompt reselection of the program, and the process returns to S20 to select a device driver or image processing. On the other hand, if the currently selected program is appropriate (S50: Yes), the program mounting unit 22 mounts the program via the communication unit 21 (S60). That is, the program mounting unit 22 transfers the program corresponding to the icon displayed in the selection display area Fs of the display unit 24 to the PLDs 11a, 12a, and 13a of the modules 11 to 13 via the communication unit 21. As a result, the PLDs 11a, 12a, and 13a can be driven so that a logic circuit corresponding to a program is defined and a predetermined function is exhibited. In this way, the implementation of the program by the system construction device 20 is completed, and the system as the camera device 10 is constructed.

(システム構築装置20による効果)
上述したシステム構築装置20は、異なる機能を有する複数のモジュールを連結して構成されるカメラ装置10を対象としてシステム構築を行うものとした。このカメラ装置10は、複数のモジュールを要求に応じて連結することが可能なので、種々の用途に容易に適用することができるものである。そして、システム構築装置20は、プログラム実装部22がモジュール11〜13のPLD11a,12a,13aに実装するプログラムを転送する構成としている。これにより、カメラ装置10は、実装されたプログラムによって各モジュールにそれぞれ割り当てられた機能を発揮するようにシステムが構築することができる。よって、従来と比較して設計上の自由度が高く、要求される機能や性能に対応可能なカメラ装置を構成することができる。また、複数のモジュール11〜15は、モジュール単位での設計や検査が可能であり、既存のモジュールを流用することができる。これにより、専用のカメラ装置を製作する場合と比較して、開発工数を大幅に削減することができる。
(Effects of the system construction device 20)
The system construction device 20 described above performs system construction for the camera device 10 configured by connecting a plurality of modules having different functions. Since this camera apparatus 10 can connect a plurality of modules as required, it can be easily applied to various applications. The system construction device 20 is configured to transfer a program that the program mounting unit 22 mounts on the PLDs 11a, 12a, and 13a of the modules 11 to 13. Thereby, the camera apparatus 10 can construct | assemble a system so that the function each allocated to each module with the mounted program may be exhibited. Therefore, a camera device having a higher degree of design freedom than conventional ones and capable of supporting required functions and performances can be configured. The plurality of modules 11 to 15 can be designed and inspected in module units, and existing modules can be used. Thereby, compared with the case where a dedicated camera apparatus is manufactured, a development man-hour can be reduced significantly.

また、表示部24がモジュール情報に基づいてPLD11a,12a,13aに実装可能なプログラムを選択可能に表示するものとしている。ここで、カメラ装置10は、用途などに応じて複数のモジュールを選択して構成されるため、その組み合わせが決定するまでは、どのようなハードウェア構成となるか特定されない。そこで、先ず、カメラ装置10を構成する所定のモジュールの組み合わせが決定した場合に、情報取得部23により各モジュールがどのような機能を有するのかなどのモジュール情報を取得する。モジュール情報の取得方法については、システム構築装置20に連結されたカメラ装置10と通信することにより取得してもよいし、ユーザーにより決定したモジュールの組み合わせを入力されることにより取得してもよい。そして、表示部24がこのモジュール情報に基づいてプログラムを表示することにより、プログラムの選択が補助されて容易となる。よって、カメラ装置10のシステム構築を簡易化することができる。   Further, the display unit 24 displays a program that can be installed in the PLDs 11a, 12a, and 13a based on the module information in a selectable manner. Here, since the camera device 10 is configured by selecting a plurality of modules according to the usage or the like, the hardware configuration is not specified until the combination is determined. Therefore, first, when a combination of predetermined modules constituting the camera apparatus 10 is determined, module information such as what functions each module has is acquired by the information acquisition unit 23. About the acquisition method of module information, you may acquire by communicating with the camera apparatus 10 connected with the system construction apparatus 20, and you may acquire it by inputting the combination of the module determined by the user. And the display part 24 displays a program based on this module information, and the selection of a program is assisted and becomes easy. Therefore, the system construction of the camera device 10 can be simplified.

さらに、各モジュール11〜13に設けられたPLD11a,12a,13aに実装可能なプログラムは、表示部24にアイコンとして表示される。そして、このアイコンをプログラム表示領域Fpから選択表示領域Fsにドラッグアンドドロップすることで、容易にプログラムの選択をすることができる。このような構成においては、反対に選択表示領域Fsからプログラム表示領域Fpにドラッグアンドドロップすることで、プログラムの選択を解除することができる。このように、ドラッグアンドドロップのような簡易なマウスジェスチャーにプログラムの選択または解除を行う機能を割り当てることにより、カメラ装置10の各モジュール11〜13へのプログラムの実装を簡易化することができる。   Furthermore, programs that can be installed in the PLDs 11a, 12a, and 13a provided in the modules 11 to 13 are displayed on the display unit 24 as icons. A program can be easily selected by dragging and dropping this icon from the program display area Fp to the selection display area Fs. In such a configuration, the selection of the program can be canceled by dragging and dropping from the selection display area Fs to the program display area Fp. As described above, by assigning a function for selecting or canceling a program to a simple mouse gesture such as drag and drop, it is possible to simplify the implementation of the program in each of the modules 11 to 13 of the camera device 10.

表示部24は、ハードウェア情報に基づいて、モジュールに対応したデバイスドライバをプログラムとしてプログラム表示領域Fpに表示するものとしている。カメラ装置10を構成する各モジュール11〜13には、そのモジュールが有するハードウェアを駆動させることにより、割り当てられた機能を実行するものがある。そのため、表示部24がモジュールに対応したデバイスドライバを表示することにより、デバイスドライバの選択を促すようにアシストすることができる。これらにより、システム構築装置20は、必要に応じたプログラムの選択を簡易化することができる。   The display unit 24 displays a device driver corresponding to the module as a program in the program display area Fp based on the hardware information. Some of the modules 11 to 13 constituting the camera apparatus 10 execute assigned functions by driving hardware included in the modules. For this reason, the display unit 24 displays a device driver corresponding to the module, thereby assisting selection of the device driver. As a result, the system construction device 20 can simplify the selection of a program as necessary.

また、表示部24は、画像処理モジュール12が実行可能な画像処理をプログラム表示領域Fpに表示するものとしている。カメラ装置10は、画像処理モジュール12が含まれるように構成されることがある。そこで、画像処理モジュール12が実行可能な画像処理をプログラム表示領域Fpに表示することで、画像処理の選択を簡易化することができる。また、選択表示領域Fsでは、選択された複数の画像処理を実行順に表示するようにしている。これにより、画像処理の実行順を目視で確認することができるので、画像処理の順序を誤って指定することを防止できる。   The display unit 24 displays image processing executable by the image processing module 12 in the program display area Fp. The camera device 10 may be configured to include an image processing module 12. Therefore, by displaying image processing executable by the image processing module 12 in the program display area Fp, selection of image processing can be simplified. In the selection display area Fs, a plurality of selected image processes are displayed in the order of execution. As a result, the execution order of the image processing can be visually confirmed, so that it is possible to prevent the image processing order from being erroneously designated.

また、システム構築装置20は、シミュレーション部25により選択されている画像処理を指定された実行順で実行したものとして、シミュレーションできるものとしている。これにより、現在のところ選択されている画像処理が、画像処理モジュール12に要求される画像処理として妥当であるかを判断することができる。これにより、適切な画像処理を容易に選択することができるので、カメラ装置10のシステム構築に要する工数を低減できる。さらに、判定部26により選択されたプログラムの適正を判定するものとしている。これにより、選択されたプログラムが実装される前に適正を判定することができる。これにより、誤ったプログラムを選択することを確実に防止することができる。   In addition, the system construction device 20 can simulate the image processing selected by the simulation unit 25 as executed in the designated execution order. This makes it possible to determine whether the currently selected image processing is appropriate as the image processing required for the image processing module 12. Thereby, since suitable image processing can be selected easily, the man-hour required for the system construction of the camera apparatus 10 can be reduced. Furthermore, the appropriateness of the program selected by the determination unit 26 is determined. Thereby, it is possible to determine appropriateness before the selected program is installed. This can reliably prevent selection of an incorrect program.

さらに、通信部21は、外部通信モジュール13が外部機器と通信する通信手段によって、カメラ装置10と通信可能に接続されるものとしている。ここで、カメラ装置10の外部通信モジュール13は、種々の通信プロトコルや通信規格などに準拠するとともに、同軸ケーブルやUSBなどのデータ伝送路に対応した通信手段を有している。そこで、外部通信モジュール13の通信手段によって通信部21がカメラ装置10と通信する構成とすることで、外部通信モジュール13に対して専用の通信手段を設ける必要がなくなりコストを低減できる。   Furthermore, the communication unit 21 is assumed to be communicably connected to the camera device 10 by a communication unit that allows the external communication module 13 to communicate with an external device. Here, the external communication module 13 of the camera device 10 conforms to various communication protocols and communication standards, and has communication means corresponding to a data transmission path such as a coaxial cable or USB. Therefore, by adopting a configuration in which the communication unit 21 communicates with the camera device 10 by the communication means of the external communication module 13, it is not necessary to provide a dedicated communication means for the external communication module 13, and the cost can be reduced.

<実施形態の第一変形態様>
実施形態の第一変形態様について、図7を参照して説明する。本実施形態では、システム構築装置20の対象としたカメラ装置10は、3つの異なる機能を有するモジュール11〜13から構成され、各モジュールがプログラムを実装可能なPLD11a,12a,13aをそれぞれ有するものとした。これに対して、システム構築装置20は、上記の組み合わせとは異なるモジュールにより構成さえるカメラ装置についてもシステム構築の対象とすることが可能である。例えば、カメラ装置110は、図7に示すように、異なる機能を有する3以上のモジュールのうち、撮像モジュール111および外部通信モジュール113を一つずつ選択し、着脱可能に連結して構成されるようにしてもよい。
<First Modification of Embodiment>
A first modification of the embodiment will be described with reference to FIG. In the present embodiment, the camera device 10 that is the target of the system construction device 20 includes modules 11 to 13 having three different functions, and each module has PLDs 11a, 12a, and 13a that can mount programs. did. On the other hand, the system construction device 20 can also set a camera device configured by a module different from the above combination as a system construction target. For example, as shown in FIG. 7, the camera device 110 is configured by selecting the imaging module 111 and the external communication module 113 one by one from among three or more modules having different functions and detachably connecting them. It may be.

撮像モジュール111は、被写体を撮像して画像データを取得するモジュールであって、図7に示すように、PLD111aと、メモリ部11bと、イメージセンサ11cを有している。このPLD111aには、カメラ装置110の撮像モジュール111として必要な機能を有するように、システム構築装置20によってプログラムが実装される。また、カメラ装置110全体で唯一のPLD111aには、イメージセンサ11cを動作させるデバイスドライバの他に、連結される外部通信モジュール113と通信を行う通信プログラム、用途に応じた画像処理プログラムなどが実装される。この画像処理プログラムは、本実施形態における画像処理モジュール12のPLD12aに実装されたものと同様であり、イメージセンサ11cにより取得した画像データに画像処理を実行するものである。このように、撮像モジュール111は、PLD111aに実装された画像処理プログラムにより、画像処理モジュールと同等または簡易な画像処理機能を有する構成としてもよい。   The imaging module 111 is a module that images a subject and acquires image data, and includes a PLD 111a, a memory unit 11b, and an image sensor 11c, as shown in FIG. A program is installed in the PLD 111a by the system construction device 20 so as to have a function necessary as the imaging module 111 of the camera device 110. In addition to the device driver that operates the image sensor 11c, the only PLD 111a in the entire camera apparatus 110 is mounted with a communication program that communicates with the external communication module 113 that is connected, an image processing program that suits the application, and the like. The This image processing program is the same as that installed in the PLD 12a of the image processing module 12 in the present embodiment, and executes image processing on the image data acquired by the image sensor 11c. As described above, the imaging module 111 may be configured to have an image processing function equivalent to or simpler than the image processing module by an image processing program installed in the PLD 111a.

外部通信モジュール113は、外部機器である制御装置2と通信するモジュールであって、図7に示すように、メモリ部13bと、インターフェイスIC13cと、通信用IC113dを有している。通信用IC113dは、各モジュールの間で共通化された共通信号によって互いに通信可能としている。そして、この通信用IC113dは、撮像モジュール111のPLD111aとメモリ部13bの間、およびPLD111aとインターフェイスIC13cの間に介在することにより、制御装置2とPLD111aの間での撮像指令や画像データの通信を可能としている。ここで、インターフェイスIC13cのデバイスドライバは、撮像モジュール111のPLD111aに実装されている。これにより、インターフェイスIC13cは、通信用IC113dを介して撮像モジュール111のPLD111aにより動作を制御されることになる。このようにカメラ装置110は、外部通信モジュール113にPLDなどの回路素子を有さない構成とし、撮像モジュール111により画像処理や外部通信などを統括して制御している。   The external communication module 113 is a module that communicates with the control device 2 that is an external device, and includes a memory unit 13b, an interface IC 13c, and a communication IC 113d as shown in FIG. The communication IC 113d can communicate with each other by a common signal shared between the modules. The communication IC 113d is interposed between the PLD 111a and the memory unit 13b of the imaging module 111 and between the PLD 111a and the interface IC 13c, thereby communicating an imaging command and image data between the control device 2 and the PLD 111a. It is possible. Here, the device driver of the interface IC 13 c is mounted on the PLD 111 a of the imaging module 111. As a result, the operation of the interface IC 13c is controlled by the PLD 111a of the imaging module 111 via the communication IC 113d. As described above, the camera apparatus 110 has a configuration in which the external communication module 113 does not have a circuit element such as a PLD, and the imaging module 111 controls the image processing and external communication in an integrated manner.

本変形態様では、システム構築装置20は、上述したような構成のカメラ装置110を対象としている。このような場合に、システム構築装置20は、準備工程(S10)において、カメラ装置110が2つのモジュールから構成され、モジュール毎の機能およびハードウェア情報を取得する。そして、システム構築装置20は、ハードウェア情報に基づいて、PLD111aに実装可能なプログラムを表示部24に表示する。その後に、必要に応じて画像処理のシミュレーションやプログラムの適正を判定して、PLD111aに通信部を介してプログラムを転送する。これにより、PLD111aは、プログラムに相当する論理回路が定義され、所定の機能を発揮するように駆動可能となる。このようにして、システム構築装置20によるプログラムの実装が完了し、カメラ装置110としてのシステムが構築される。上述したように、カメラ装置を構成する複数のモジュールのうち少なくとも一以上のモジュールにはプログラムを実装可能な回路素子が設けられていれば、システム構築装置20はそのカメラ装置を対象としてシステム構築が可能である。   In this modification, the system construction device 20 is targeted for the camera device 110 having the above-described configuration. In such a case, in the system construction device 20, in the preparation step (S10), the camera device 110 is configured by two modules, and acquires the function and hardware information for each module. Then, the system construction device 20 displays a program that can be installed in the PLD 111a on the display unit 24 based on the hardware information. Thereafter, image processing simulation or program suitability is determined as necessary, and the program is transferred to the PLD 111a via the communication unit. Thereby, the PLD 111a is defined as a logic circuit corresponding to a program, and can be driven so as to exhibit a predetermined function. In this way, the implementation of the program by the system construction device 20 is completed, and the system as the camera device 110 is constructed. As described above, if at least one of the plurality of modules constituting the camera device is provided with a circuit element capable of mounting a program, the system construction device 20 can construct the system for the camera device. Is possible.

<実施形態の第二変形態様>
実施形態の第二変形態様について、図8を参照して説明する。本実施形態では、システム構築装置20の対象としたカメラ装置10は、3つの異なる機能を有するモジュール11〜13を連結した状態で、各モジュール11〜13に設けられたPLD11a,12a,13aにプログラムを実装されて、システムを構築されるものとした。これに対して、システム構築装置20は、連結されていない個々のモジュールを対象として、当該モジュールに設けられたPLDなどの回路素子にプログラムを実装する構成としてもよい。
<Second Modification of Embodiment>
A second modification of the embodiment will be described with reference to FIG. In the present embodiment, the camera device 10 that is the target of the system construction device 20 is programmed in the PLDs 11a, 12a, and 13a provided in the modules 11 to 13 in a state where the modules 11 to 13 having three different functions are connected. It was assumed that the system was constructed. On the other hand, the system construction device 20 may have a configuration in which a program is mounted on a circuit element such as a PLD provided in the module for each unconnected module.

このような構成では、システム構築装置20は、先ずシステム構築装置20は、図8に示すように、アダプタ51〜53を介して各モジュール11〜13と連結され、通信可能な状態とされる。そして、PLD11a,12a,13aにプログラムが実装され、その後に各モジュール11〜13を着脱可能に連結することによりカメラ装置10が構成される。このようにして、システム構築装置20は、各モジュール11〜13が連結されていないカメラ装置10においても、当該カメラ装置10を対象としてシステムを構築することができる。   In such a configuration, first, the system construction device 20 is connected to the modules 11 to 13 via the adapters 51 to 53 as shown in FIG. And a program is mounted in PLD11a, 12a, 13a, and the camera apparatus 10 is comprised by connecting each module 11-13 so that attachment or detachment is possible after that. In this way, the system construction device 20 can construct a system for the camera device 10 even in the camera device 10 to which the modules 11 to 13 are not connected.

1:電子部品装着装置、 2:制御装置
10,110:カメラ装置、 11,111:撮像モジュール
12:画像処理モジュール、 13,113:外部通信モジュール
14:自律動作モジュール、 15:光源モジュール
11a,12a,13a,111a:PLD、 11b、12b、13b:メモリ部
11c:イメージセンサ、 13c:インターフェイスIC、 113d:通信用IC
20:システム構築装置、 21:通信部、 22:プログラム実装部
23:情報取得部、 24:表示部、 25:シミュレーション部
51,52,53:アダプタ
CB:プリント基板(被写体)、 Fp:プログラム表示領域、 Fs:選択表示領域
1: Electronic component mounting device 2: Control device 10, 110: Camera device 11, 111: Imaging module 12: Image processing module 13, 113: External communication module 14: Autonomous operation module 15: Light source module 11a, 12a , 13a, 111a: PLD, 11b, 12b, 13b: Memory unit 11c: Image sensor, 13c: Interface IC, 113d: Communication IC
20: System construction device 21: Communication unit 22: Program implementation unit 23: Information acquisition unit 24: Display unit 25: Simulation unit 51, 52, 53: Adapter CB: Printed circuit board (subject) Fp: Program display Area, Fs: selection display area

Claims (11)

外部機器との通信により入力した撮像指令に基づいて撮像し、当該撮像により取得した画像データを前記外部機器に出力するカメラ装置を対象とし、前記カメラ装置の用途に応じた機能を実装するシステム構築装置であって、
被写体を撮像して前記画像データを取得し且つ前記外部機器と通信する機能を有しない撮像モジュールと、前記外部機器と通信する外部通信モジュールと、前記撮像モジュールおよび前記外部通信モジュールを除く第三のモジュールと、を含む異なる機能を有する3以上のモジュールは、前記撮像モジュールと前記外部通信モジュールとの間、前記撮像モジュールと前記第三のモジュールとの間、および前記外部通信モジュールと前記第三のモジュールとの間で共通化された共通信号によって互いに通信可能な通信プログラムをそれぞれ実装され、
前記カメラ装置は、3以上の前記モジュールのうち、少なくとも前記撮像モジュールおよび前記外部通信モジュールを含むように選択された複数の前記モジュールを着脱可能に連結して構成され、
前記カメラ装置を構成する複数の前記モジュールのうち少なくとも一以上の前記モジュールには、前記モジュールにそれぞれ割り当てられた機能を実行するプログラムを実装可能な回路素子が設けられ、
前記システム構築装置は、
前記カメラ装置と通信可能に接続される通信部と、
前記モジュールの前記回路素子に実装する前記プログラム、および全ての前記モジュールに実装される共通の前記通信プログラムを転送するプログラム実装部と、
を備えるカメラ装置のシステム構築装置。
System construction that implements a function according to the application of the camera device , targeting a camera device that captures an image based on an imaging command input by communication with an external device and outputs image data acquired by the imaging to the external device A device,
An imaging module having no function of communicating with the acquired image data and the external device by imaging an object, said an external communication module for communicating with an external device, a third excluding the imaging module and the external communication module 3 or more modules having a module, the different functions including the between the imaging module and the external communication module, between the imaging module and the third module, and the external communication module and the third A communication program that can communicate with each other using a common signal shared with the module is implemented.
The camera device is configured by detachably connecting a plurality of the modules selected so as to include at least the imaging module and the external communication module among the three or more modules .
Among the plurality of modules constituting the camera device, at least one of the modules is provided with a circuit element capable of mounting a program for executing a function assigned to each of the modules,
The system construction device
A communication unit communicably connected to the camera device;
A program mounting unit for transferring the program to be mounted on the circuit element of the module and the common communication program to be mounted on all the modules ;
A system construction device for a camera device comprising:
請求項1において、
前記システム構築装置は、
選択された前記モジュールに係る前記機能を含むモジュール情報を取得する情報取得部と、
取得した前記モジュール情報に基づいて当該モジュールの前記回路素子に実装可能な前記プログラムを選択可能に表示する表示部と、
をさらに備え、
前記プログラム実装部は、前記表示部において選択された前記プログラムを前記モジュールの前記回路素子に転送するカメラ装置のシステム構築装置。
In claim 1,
The system construction device
An information acquisition unit for acquiring module information including the function related to the selected module;
A display unit for selectively displaying the program that can be mounted on the circuit element of the module based on the acquired module information;
Further comprising
The system implementation device for a camera device, wherein the program mounting unit transfers the program selected in the display unit to the circuit element of the module.
請求項2において、
前記表示部は、前記回路素子に実装可能な前記プログラムをアイコンとして表示するプログラム表示領域と、選択された前記プログラムの前記アイコンを表示する選択表示領域と、を有し、
前記プログラム表示領域から前記選択表示領域に前記アイコンをドラッグアンドドロップされた場合に、当該アイコンにより表示された前記プログラムが選択されたものとして前記選択表示領域に表示するカメラ装置のシステム構築装置。
In claim 2,
The display unit includes a program display area that displays the program that can be mounted on the circuit element as an icon, and a selection display area that displays the icon of the selected program.
When the icon is dragged and dropped from the program display area to the selection display area, the system construction apparatus for a camera apparatus displays the program displayed by the icon as being selected in the selection display area.
請求項3において、
前記表示部は、前記プログラムとして前記モジュールのデバイスドライバを前記プログラム表示領域に表示するカメラ装置のシステム構築装置。
In claim 3,
The display unit is a system construction device of a camera device that displays a device driver of the module as the program in the program display area.
請求項4において、
前記モジュールの前記モジュール情報には当該モジュールの構成に係るハードウェア情報が含まれ、
前記表示部は、取得したハードウェア情報に基づいて当該モジュールに対応した前記デバイスドライバを前記プログラム表示領域に表示するカメラ装置のシステム構築装置。
In claim 4,
The module information of the module includes hardware information related to the configuration of the module,
The display unit is a system construction device for a camera device that displays the device driver corresponding to the module on the program display area based on the acquired hardware information.
請求項3〜5の何れか一項において、
前記表示部は、前記カメラ装置を構成する複数の前記モジュールに前記画像データに対して画像処理を実行する画像処理モジュールが含まれる場合に、前記プログラムとして実行可能な前記画像処理を前記プログラム表示領域に表示し、前記選択表示領域に選択された前記画像処理を指定された実行順に表示するカメラ装置のシステム構築装置。
In any one of Claims 3-5,
When the display unit includes an image processing module that performs image processing on the image data in the plurality of modules constituting the camera device, the image processing executable as the program is performed in the program display area. A system construction device for a camera device that displays the image processing selected in the selection display area in the designated execution order.
請求項6において、
前記選択表示領域に一以上の前記画像処理が選択された場合に、当該画像処理を指定された実行順で実行したものと仮定して、実行後の前記画像データをシミュレーションするシミュレーション部をさらに備えるカメラ装置のシステム構築装置。
In claim 6,
When one or more of the image processes are selected in the selection display area, a simulation unit that simulates the image data after the execution is assumed on the assumption that the image processes are executed in a designated execution order. System construction device for camera device.
請求項2〜7の何れか一項において、
前記モジュールに対して選択された前記プログラムについて前記モジュール情報に基づいて適正判定する判定部をさらに備えるカメラ装置のシステム構築装置。
In any one of Claims 2-7,
A system construction device for a camera device, further comprising a determination unit that determines appropriateness of the program selected for the module based on the module information.
請求項1〜8の何れか一項において、
前記通信部は、前記外部通信モジュールが前記外部機器と通信する通信手段によって、前記カメラ装置と通信可能に接続され、
るカメラ装置のシステム構築装置。
In any one of Claims 1-8,
The communication unit is communicably connected to the camera device by communication means for the external communication module to communicate with the external device.
A system construction device for camera devices.
請求項1〜9の何れか一項において、In any one of Claims 1-9,
前記外部通信モジュールは、通信可能に接続される前記外部機器によって規定される通信プロトコルまたは通信規格に準拠し、且つ規定のデータ伝送路に対応した通信手段によって前記外部機器との間で通信可能な外部通信機能を有し、The external communication module is compliant with a communication protocol or communication standard defined by the external device to be communicably connected, and can communicate with the external device by a communication unit corresponding to a specified data transmission path. Has an external communication function,
前記プログラム実装部は、前記外部通信機能を実行する前記プログラムを前記モジュールの前記回路素子に転送するカメラ装置のシステム構築装置。The program implementation unit is a system construction device for a camera device that transfers the program for executing the external communication function to the circuit element of the module.
請求項1〜10の何れか一項において、In any one of Claims 1-10,
前記プログラム実装部は、前記カメラ装置を構成する複数の前記モジュールに前記画像データに基づいて所定の動作を自動で行う自律動作機能を有する自律動作モジュールが含まれている場合に、前記自律動作機能を実行する前記プログラムを前記モジュールの前記回路素子に転送するカメラ装置のシステム構築装置。The program implementation unit includes the autonomous operation function when the plurality of modules constituting the camera device include an autonomous operation module having an autonomous operation function that automatically performs a predetermined operation based on the image data. The system construction apparatus of the camera apparatus which transfers the program which performs this to the circuit element of the module.
JP2011220117A 2011-10-04 2011-10-04 System construction device for camera device Active JP5822629B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2011220117A JP5822629B2 (en) 2011-10-04 2011-10-04 System construction device for camera device
CN201210371419.9A CN103037148B (en) 2011-10-04 2012-09-28 The system construction device of camera apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011220117A JP5822629B2 (en) 2011-10-04 2011-10-04 System construction device for camera device

Publications (2)

Publication Number Publication Date
JP2013081080A JP2013081080A (en) 2013-05-02
JP5822629B2 true JP5822629B2 (en) 2015-11-24

Family

ID=48023594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011220117A Active JP5822629B2 (en) 2011-10-04 2011-10-04 System construction device for camera device

Country Status (2)

Country Link
JP (1) JP5822629B2 (en)
CN (1) CN103037148B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6124676B2 (en) * 2013-05-14 2017-05-10 キヤノン株式会社 IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
CN104836951A (en) * 2015-05-15 2015-08-12 北京旷视科技有限公司 Modular camera and manufacturing method thereof
WO2019009153A1 (en) * 2017-07-06 2019-01-10 株式会社日立国際電気 Image pickup device
JP7127297B2 (en) * 2018-02-23 2022-08-30 オムロン株式会社 image sensor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2470854Y (en) * 2001-02-28 2002-01-09 明碁电通股份有限公司 Image-forming device
JP2003234929A (en) * 2002-02-06 2003-08-22 Olympus Optical Co Ltd External device for camera
JP2006238298A (en) * 2005-02-28 2006-09-07 Megachips Lsi Solutions Inc Electronic equipment with camera and main module integrated thereinto
JP5415182B2 (en) * 2009-08-19 2014-02-12 株式会社キーエンス Image processing apparatus, program creation support apparatus, and image processing method

Also Published As

Publication number Publication date
CN103037148B (en) 2017-07-18
CN103037148A (en) 2013-04-10
JP2013081080A (en) 2013-05-02

Similar Documents

Publication Publication Date Title
US7327396B2 (en) Smart camera with a plurality of slots for modular expansion capability through a variety of function modules connected to the smart camera
JP5822629B2 (en) System construction device for camera device
JP5950548B2 (en) System construction device for image processing device
JP2009093612A (en) System and method for labeling feature clusters in frames of image data for optical navigation
CN110168458B (en) Management device, installation-related device, and installation system
JP2011221712A (en) Image processing apparatus
US20120212616A1 (en) Image capturing device, adjusting device, and optical axis adjusting system for image capturing device
JP5822630B2 (en) Camera device
RU2636935C2 (en) Camera system with modular arrangement of printed boards
JP5822631B2 (en) System construction device for camera device
JP6600643B2 (en) Component mounting apparatus and component mounting system
WO2016117016A1 (en) Inspection support device
CN108323178B (en) Substrate inspection apparatus and method
JP6795520B2 (en) Mounting device and imaging processing method
JP2013055387A (en) Image sensor, light quantity measurement method, and microscope system
JP6615032B2 (en) Switching device
JP6348494B2 (en) Production equipment
JP5251841B2 (en) Image processing apparatus and image processing program
JP2011191943A (en) Apparatus and program for processing image
JP5832222B2 (en) Camera device
CN106961547B (en) Image pickup apparatus and control method of image pickup apparatus
WO2022003919A1 (en) Inspection data preparation method, inspection data preparation device, and inspection device
JP5407755B2 (en) Inspection area setting data creation method and inspection data creation system for board inspection
JP5861743B2 (en) Image processing device
CN114041110B (en) Image display device and image display method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150612

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150616

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150807

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: 20150915

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151006

R150 Certificate of patent or registration of utility model

Ref document number: 5822629

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250