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 NOTE: some features require the qtmainloop to be running. see the main README for details.
29 Configuration Key Definitions:
32 name of plugin. This key is not used by the plugin at this moment.
35 path to plugin on the filesystem.
38 Camera to use. The string "0" corrisponds to /dev/video0, "1" to /dev/video1, etc.
43 Compute pixel intensity in another thread. Set to "true" or "false". You need to use the qtmainloop in
44 order for this feature to function.
49 How many times per second to poll image data from the camera.
54 Set to "true" if you are using a kinect camera.
59 Lowest calibration value for a camera. This is the average pixel intensity value the camera reports when
60 it is completely covered.
65 The highest calibration value for camera. This is the average pixel intensity value when a very bright
66 light (like the sun) is being projected at the camera.
70 "opencl" (experimental)
71 Use a specialized CPU/GPU device to calculate the mean pixel intensity. This will only work if OpenCV
72 was compiled with OpenCL support. To enable openCL, pass -Docl=ON to cmake.
77 Use nvidia cuda gpu processing to process image data. This will only work if OpenCV was compiled with
80 NOTE: this does not appear to have a noticable impact on processing given the way we are using it.
81 this does however make memory usage explode.
86 Turn on video logging.
91 File to encode video to.
93 Default: "/tmp/video.avi"
96 Fourcc name of codec. See http://www.fourcc.org/codecs.php
101 Driver Drowsiness Detection. For a driver facing camera, detect whether or not eyes are
102 open or closed. If closed for a period of time, DriverDrowsiness will change to "true".
110 Turn on and off video logging
116 True if the driver has been detected drowsy.