Skip to content

A ros driver for FLIR polarization camera. Make the first towards polarization imaging easier.

License

Notifications You must be signed in to change notification settings

GCChen97/flir_pol_cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flir_pol_cam

This repository provides a driver to publish images from a FLIR gray/color polarization camera with ROS. The codes can be easily modified and integrate in other projects.

Dependencies

The package has been tested with the following dependencies:

The package has been tested with the following two models of camera:

  • BFS-U3-51S5PC-C: 5.0MP, 75FPS, Sony IMX250MYR, Polari-RGB
  • BFS-U3-51S5P-C: 5.0MP, 75FPS, Sony IMX250MZR, Polari-Mono

Download & Build

mkdir -p ros_ws/src
cd ros_ws/src
git clone https://github.com/GCChen97/flir_pol_cam.git
cd ..
catkin_make --pkg flir_pol_cam

Note that the version of OpenCV used for building should be consistent with the one that ROS uses. Otherwise segmentation fault may occur. You can select OpenCV version by manually modified the CMakeLists.txt.

Camera configuration

Check the configuration file in configs folders. Currently, I only add the following parameters.

[PixelFormat]:
Mono8
[AcquisitionMode]:
Continuous
[Gamma]:
0.5
[ExposureMode]:
Timed
[ExposureTime]:
20000
[AcquisitionFrameRate]:
20

Execute

  1. Plug your FLIR polarization camera;
  2. Call the launch file.

For grayscale polarization camera, use the following commands:

roslaunch flir_pol_cam ros_pub.launch

For color polarization cameras, use the following commands:

roslaunch flir_pol_cam ros_pub_color.launch
  1. Check if it works fine in rqt_image_view
rqt_image_view

Then, have fun with polarization imaging :)

Topic

  • "/polcamera/raw": raw image from spinnaker SDK.

The arrangement of pixels

arrangement

The image above shows the arrangement of pixels in a raw polarization color image. Note that the bayer color filters only exist in the color model.

Reference

License

This project is licensed under the MIT License.

About

A ros driver for FLIR polarization camera. Make the first towards polarization imaging easier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published