[OpenR8 solution] Image_FC2 (control FLIR camera)
  1. Chapter1: Image_FC2 Introduction

 

The function of Image_FC2 is to get the image captured by the camera, which contains two files, which respectively demonstrate how to get the camera image and two solutions for obtaining the image after setting the camera shutter and gain value.

 

How to get camera images is described in the chapter 3 and chapter of this document.

 

How to set the camera shutter and gain to obtain the image, the function flow will be explained in the chapter 4 and chapter 6 of this document.

 

※ Since Image_FC2's solution will use camera serial number, if you can't find it or accidentally lose it, you may need to use other software to find the camera serial number.

 

Fig. 1. Setting camera parameters and capturing image process.png

Fig. 1. Setting camera parameters and capturing image process.

 

 

  1. Chapter2: Image_FC2 Folder Introduction

 

Image_FC2 is in the solution folder of OpenR8, as shown in Fig. 2, with two flow files, such as Fig. 3.

 

  1. FC2.flow: How to get a solution for camera images.
  2. FC2_SetProperties.flow: Set the camera Gain and Shutter to get the image solution.
  3. grabbedImage.png: When FC2_SetProperties.flow is successfully executed, the captured image is generated.

 

※ The FC2_SetProperties.flow solution adds the functionality of Gain and Shutter than the FC2.flow solution. You can also see how to get the camera image by looking at the FC2_SetProperties.flow solution.

 

Fig. 2. Image_FC2 location.png

Fig. 2. Image_FC2 location.

 

Fig. 3. Image_FC2 folder.png

Fig. 3. Image_FC2 folder.

 

 

  1. Chapter3: Open and run FC2.flow get camera image

 

There is a “R8.exe” executable file under OpenR8 folder. See Fig. 4. double-click to execute R8.exe.

 

Fig. 4. Execute R8.png

Fig. 4. Execute R8.exe.

 

Please click "File" => "Open" => "to enter the solution folder under OpenR8" => "Select Image_FC2 folder" => "Select FC2.flow", such as Fig. 5, Fig. 6.

 

Fig. 5. Select FC2.flow.png

Fig. 5. Select FC2.flow.

 

Fig. 6. Open FC2.flow.png

Fig. 6. Open FC2.flow.

 

After turning it on, set the camera serial number you want to turn on in FC2_Open.

 

※The camera serial number will be attached to the camera itself or to the box. If camera serial number is error, you will not be able to open it.

 

※ If unload appears in the field, it means that the FC2 library is not referenced. Please refer to Fig. 8 to set up the library and restart R8.exe.

 

Fig. 7. Set camera serial number.png

Fig. 7. Set camera serial number.

 

Fig. 8. FC2 function is referenced when unload FC2 library.png

Fig. 8. FC2 function is referenced when unload FC2 library.

 

After setting the camera serial number, press “Run”.

 

Fig. 9. Run solution.png

Fig. 9. Run solution.

 

※ Since only the image is acquired here, and the obtained image is not displayed or stored, if you want to view the captured image, you need to add the three functions of “Image_Show” + “WaitKey” + “Image_DestoryAllWindows”.

 

 

  1. Chapter4: Open and run FC2_SetProperties.flow - Set Gain and Set Shutter and Get images

 

Please click "File" => "Open" => "to enter the solution folder under OpenR8" => "Select Image_FC2 folder" => "Select FC2_SetProperties.flow", such as Fig. 10, Fig. 11.

 

Fig. 10. Select FC2_SetProperties.flow.png

Fig. 10. Select FC2_SetProperties.flow.

 

Fig. 11. Open FC2_SetProperties.flow.png

Fig. 11. Open FC2_SetProperties.flow.

 

After turning it on, set the camera serial number you want to turn on in FC2_Open.

 

※The camera serial number will be attached to the camera itself or to the box. If camera serial number is error, you will not be able to open it.

 

※ If unload appears in the field, it means that the FC2 library is not referenced. Please refer to Fig. 8 to set up the library and restart R8.exe.

 

Fig. 12. Set camera serial number.png

Fig. 12. Set camera serial number.

 

Set Shutter.

※If you only want to confirm whether the camera can be used, you don't need to change the shutter value.

 

Fig. 13. Set shutter.png

Fig. 13. Set shutter.

 

Set Gain.

※If you only want to confirm whether the camera can be used, you don't need to change the gain value.

 

Fig. 14. Set gain.png

Fig. 14. Set gain.

 

After setting the camera serial number, shutter, and gain, press to execute.

 

Fig. 15. Run the solution.png

Fig. 15. Run the solution.

 

※You can see the image stored after execution (grabbedImage.png) in the FC2_SetProperties.flow folder.

 

※ If grabbedImage.png is a dark image, you can adjust the shutter or gain.

 

 

  1. Chapter5: FC2.flow process

 

This chapter focuses on the functionality of the FC2.flow process.

 

  1. FC2_Init:

The initialization of FC2 creates an object.

  1. FC2_Open:

Turn on the specified serial number camera.

FC2Object: Select FC2_Init to the same object.

cameraSN: Fill in the serial number of the camera.

 

Fig. 17. FC2.flow - FC2_Open.png

Fig. 17. FC2.flow - FC2_Open.

 

  1. FC2_Grab: Capture images captured by the camera. FC2Object: Select FC2_Init to the same object.

 

Fig. 18. FC2.flow - FC2_Grab.png

Fig. 18. FC2.flow - FC2_Grab.

 

  1. FC2_Retrieve:

Get the camera image captured by “FC2_Grab”.

FC2Object: Select FC2_Init to the same object.

grabbedImage: Output the captured image.

 

Fig. 19. FC2.flow - FC2_Retrieve.png

Fig. 19. FC2.flow - FC2_Retrieve.

 

  1. Sleep (Gray: Do not enable mode):

It is not enabled here, and the user can decide whether to wait for a while before turning off the camera.

second: After a few seconds, the next function is executed (the next function here means FC2_Release).

 

Fig. 20. FC2.flow - Sleep.png

Fig. 20. FC2.flow - Sleep.

 

  1. FC2_Release:

Turn off the camera specified by “FC2_Open”.

 

 

  1. Chapter6: FC2_SetProperties.flow process

 

This chapter focuses on the functionality of the FC2_SetProperties.flow process.

 

Fig. 21. FC2_SetProperties.flow.png

Fig. 21. FC2_SetProperties.flow

 

  1. FC2_Init:

The initialization of FC2 creates an object.

  1. FC2_Open:

Turn on the specified serial number camera.

FC2Object: Select FC2_Init to the same object.

cameraSN: Fill in the serial number of the camera.

 

Fig. 22. FC2_SetProperties.flow - FC2_Open.png

Fig. 22. FC2_SetProperties.flow - FC2_Open.

 

  1. FC2_SetShutter:

Set the camera's shutter value.

FC2Object: Select FC2_Init to the same object.

shutter:Set shutter value.

 

Fig. 23. FC2_SetProperties.flow - FC2_SetShutter.png

Fig. 23. FC2_SetProperties.flow - FC2_SetShutter.

 

  1. FC2_SetGain:

Set the camera's gain value.

FC2Object: Select FC2_Init to the same object.

shutter:Set gain value.

 

Fig. 24. FC2_SetProperties.flow - FC2_SetGain.png

Fig. 24. FC2_SetProperties.flow - FC2_SetGain.

 

  1. Sleep:

Wait a few seconds to set the response time of the shutter value and gain value to the camera, and then perform camera capture.

Second: After a few seconds, the next function is executed (the next function here refers to FC2_Grab).

 

Fig. 25. FC2_SetProperties.flow - sleep.png

Fig. 25. FC2_SetProperties.flow - sleep.

 

  1. FC2_Grab:

Capture images captured by the camera.

FC2Object: Select FC2_Init to the same object.

 

  1. FC2_Retrieve:

Get the camera image captured by “FC2_Grab”.

FC2Object: Select FC2_Init to the same object.

grabbedImage: Output the captured image.

 

Fig. 26. FC2_SetProperties.flow - FC2_Retrieve.png

Fig. 26. FC2_SetProperties.flow - FC2_Retrieve.

 

  1. Image_Save:

Save the image by “FC2_Retrieve” output.

image: Select the captured image output by “FC2_Retrieve”.

imageFileName: The name of the file to store the image.

 

※If there is no specified path for the stored image file, it is usually placed in the same folder where the solution is executed.

 

Fig. 27. FC2_SetProperties.flow - Image_Save.png

Fig. 27. FC2_SetProperties.flow - Image_Save.

 

  1. FC2_Release:

Turn off the “FC2_Open” specified camera.