Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
camera.h
Go to the documentation of this file.
1 
7 #ifndef _CAMERA_H
8 #define _CAMERA_H
9 
11 #define CAM_SUCCESS 1
12 
13 #define CAM_FAILURE 0
14 
15 #include <stdlib.h>
16 #include <opencv/cv.h>
17 #include <opencv2/highgui/highgui_c.h>
18 
19 #include "types.h"
20 
21 int CAMSIZE;
22 int CAM_INITIAL;
23 
24 int CAMInit();
25 
26 int CAMSetMode(int mode);
27 
28 int CAMGetMode ();
29 
30 int CAMGet (BYTE *buf);
31 
32 extern int CAMRelease (void);
33 
34 int CAMGetGray(BYTE *buf);
35 
36 #endif
int CAMGetMode()
Retrieves the current camera mode.
Definition: camera.c:97
Defines types used for the EyeBot 7.
int CAMGetGray(BYTE *buf)
Grabs a gray image off the camera.
Definition: camera.c:154
int CAMGet(BYTE *buf)
Retrieve a camera frame into the provided buffer.
Definition: camera.c:115
int CAMRelease(void)
Stops and releases all camera structures.
Definition: camera.c:136
int CAMSetMode(int mode)
Set the camera mode (e.g. format and resolution).
Definition: camera.c:40
int CAMInit(int mode)
Initialise the camera.
Definition: camera.c:19