Saving and loading of MindVision camera configuration files/camera parameter transplantation

We will encounter such a situation, install the driver software of the MindVision camera on a computer (such as our own notebook), and want to use the MindVision camera to image. In the imaging environment we built, assuming that we want to image bolts, we may debug a set of appropriate camera parameters, including exposure, gain, etc., and then collect images on this basis, perform subsequent image processing, etc., and finally A complete visual inspection system for bolt defects has been built. After we deliver this system to the customer, we definitely cannot give the customer our own laptop, so we usually have to reinstall the driver software of the MindVision camera on the customer's computer and adjust the camera imaging parameters determined before. This is no problem for the customer who only needs one system, but when the customer needs dozens or hundreds of systems, it is necessary to adjust each camera parameter (sometimes there are many parameters) individually for the MindVision camera driver software on each computer. It is a very heavy work; even sometimes the customer is in other cities, and there is no condition for you to go to the site for debugging. So, is there an easy way to allow customers to complete the camera parameter settings by themselves through simple operations?
have. This is the function of saving and loading MindVision camera configuration files.

Method steps:
(1) Write the determined camera parameters (such as exposure, etc.) into the configuration file.
Step1: Double-click the "MindVision Demo Program" icon, as shown in Figure 1, to open the driver software;
Figure 1

Step2: Select the camera you want to operate, for example, here we select the fourth camera, click "Open Selected Device", as shown in Figure 2;
insert image description hereFigure 2
Step3: Modify the camera parameters. Click "Camera Settings", take exposure control as an example here, click "Exposure Control", as shown in Figure 3; then select "Manual", set the exposure time (milliseconds) to "8.8320", as shown in Figure 4; Figure 3 Step4: In
insert image description hereFigure
3 In the "Camera Configuration Parameter Archive" area in 4, check the "Automatically save when switching parameter groups" and "Automatically save when turning off the camera" boxes; then click the "Save the current configuration parameters to the specified file" button to select any Path, fill in the file name and save the .Config file.
insert image description hereFigure 4
Step5: Close the screens in Figure 4, 3, and 2 in sequence. The configuration files of other cameras are saved in the same way, that is, repeat the above steps.

(2) Load the camera parameter configuration file into the MindVision driver software.

Step1: Double-click the .exe file in Figure 5 to install the MindVision camera driver software on a new computer. After the installation is complete, you will get the software as shown in Figure 1; Figure
insert image description here
5

Step2: Double-click the "MindVision Demo Program" icon, as shown in Figure 1, to open the driver software;
Step3: Select the camera you want to operate, such as here we choose the fourth camera, click "Open Selected Device", as shown in Figure 2; Step4:
Click "Camera Settings" -> "Exposure Control", as shown in Figure 3;
Step5: In the "Camera Configuration Parameter Archive" area in Figure 6, set the "Automatically save when switching parameter groups" and "Automatically save when turning off the camera" methods Check the box; then click the "Load parameters from the specified file" button, select the previously saved .Config file, and close the current interface (that is, the interface in Figure 4). At this point, the loading of the configuration file has been completed, and the change of the image imaging brightness and darkness can be observed from the interface screen shown in Figure 3 at this time.
Step6: Close the interface in Figure 3; close the screen in Figure 2. The camera is all configured. The configuration file loading method of other cameras is the same, that is, repeat the above steps.
insert image description here
Figure 6

Guess you like

Origin blog.csdn.net/u014751362/article/details/128902490