3 This plugin simulates the ExteriorBrigtness property using a traditional webcamera. It works
4 by taking the mean pixel intensity of the web camera image and estimating lux. The particular
5 can be calibrated using the "pixelUpperBound" and "pixelLowerBound" variables.
7 To enable the OpenCV "lux" plugin, run cmake and enable the opencvlux_plugin option:
9 cmake -Dopencvlux_plugin=On ..
11 Currently, this plugin has been tested with OpenCV 2.4.4.
13 To use the OpenCV plugin, add the following to the "sources" array in /etc/ambd/config:
16 "name" : "OpenCV LUX",
17 "path" : "/usr/lib/automotive-message-broker/opencvluxplugin.so",
19 "pixelLowerBound" : "0",
20 "pixelUpperBound" : "255",
27 Configuration Key Definitions:
30 name of plugin. This key is not used by the plugin at this moment.
33 path to plugin on the filesystem.
36 Camera to use. The string "0" corrisponds to /dev/video0, "1" to /dev/video1, etc.
41 Compute pixel intensity in another thread. Set to "true" or "false". This feature has been disabled
47 How many times per second to poll image data from the camera.
52 Set to "true" if you are using a kinect camera.
57 Lowest calibration value for a camera. This is the average pixel intensity value the camera reports when
58 it is completely covered.
63 The highest calibration value for camera. This is the average pixel intensity value when a very bright
64 light (like the sun) is being projected at the camera.
68 "opencl" (experimental)
69 Use a specialized CPU/GPU device to calculate the mean pixel intensity. This will only work if OpenCV
70 was compiled with OpenCL support. This plugin looks for the OpenCV ocl headers and adds support at
73 NOTE: This option has not been tested because at implementation, OpenCL 1.2 was not available from devices
79 Use nvidia cuda gpu processing to process image data. This will only work if OpenCV was compiled with
82 NOTE: this does not appear to have a noticable impact on processing given the way we are using it.
83 this does however make memory usage explode.