This module required an additional set of libraries to work:
- opencv_imgproc
- opencv_highgui
- opencv_objdetect
- opencv_video
- opencv_core
The camera module header is lapin/camera.h
Description
  Start the camera matching the sent id. Return an object
to represent it.
Parameters
-
int cam_id:
  The id of the camera to start. 0 is often used.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Description
  Delete the sent camera object and shutdown the associated camera.
INDEX
Description
  Store what the camera is currently seeing.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Description
  Delete the sent capture.
INDEX
Description
  Return throught out the size in pixels of the sent camera capture.
INDEX
Description
  Record a frame from the camera and store it inside capture.
INDEX
Description
  Convert the capture into a new pixelarray.
Return value
-
On success, the function returns a new pixelarray.
-
On failure, it returns NULL.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Return value
-
On success, the function returns a new picture.
-
On failure, it returns NULL.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Description
  Convert the capture into the sent pixelarray.
Return value
The function returns true if it successed.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Return value
The function returns true if it successed.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Description
  Set into area the first detected face in capture.
Return value
The function returns true if a face was detected.
false if not. If no face was detected, area is left untouched.
Error values and logs
On error, bunny_errno is set to:
Logs written by this function are tagged with the "camera" label.
INDEX
Parameters
-
const t_bunny_area * previous_face_position :
  The position of the previously detected face.
-
t_bunny_area * current_face_position :
  The position of the currently detected face.
-
double speed:
  The speed of the movement.
INDEX