libkovan
1
The kovan standard library
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
camera.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright 2012 KISS Institute for Practical Robotics *
3
* *
4
* This file is part of libkovan. *
5
* *
6
* libkovan is free software: you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation, either version 2 of the License, or *
9
* (at your option) any later version. *
10
* *
11
* libkovan is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with libkovan. Check the LICENSE file in the project root. *
18
* If not, see <http://www.gnu.org/licenses/>. *
19
**************************************************************************/
20
21
#ifndef _CAMERA_H_
22
#define _CAMERA_H_
23
24
#include "
geom.h
"
25
#include "
export.h
"
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
31
typedef
struct
pixel
32
{
33
int
r
;
34
int
g
;
35
int
b
;
36
}
pixel
;
37
38
enum
Resolution
39
{
40
LOW_RES
,
41
MED_RES
,
42
HIGH_RES
43
};
44
55
EXPORT_SYM
int
camera_open
(
enum
Resolution
res);
56
68
EXPORT_SYM
int
camera_open_device
(
int
number,
enum
Resolution
res);
69
76
EXPORT_SYM
int
camera_load_config
(
const
char
*name);
77
82
EXPORT_SYM
void
set_camera_width
(
int
width);
83
88
EXPORT_SYM
void
set_camera_height
(
int
height);
89
95
EXPORT_SYM
int
get_camera_width
(
void
);
96
102
EXPORT_SYM
int
get_camera_height
(
void
);
103
108
EXPORT_SYM
int
camera_update
(
void
);
109
115
EXPORT_SYM
pixel
get_camera_pixel
(
point2
p);
116
121
EXPORT_SYM
int
get_channel_count
(
void
);
122
129
EXPORT_SYM
int
get_object_count
(
int
channel);
130
138
EXPORT_SYM
const
char
*
get_object_data
(
int
channel,
int
object
);
139
144
EXPORT_SYM
int
get_code_num
(
int
channel,
int
object
);
145
151
EXPORT_SYM
int
get_object_data_length
(
int
channel,
int
object
);
152
157
EXPORT_SYM
double
get_object_confidence
(
int
channel,
int
object
);
158
162
EXPORT_SYM
int
get_object_area
(
int
channel,
int
object
);
163
167
EXPORT_SYM
rectangle
get_object_bbox
(
int
channel,
int
object
);
168
172
EXPORT_SYM
point2
get_object_centroid
(
int
channel,
int
object
);
173
177
EXPORT_SYM
point2
get_object_center
(
int
channel,
int
object
);
178
184
EXPORT_SYM
void
camera_close
();
185
186
#ifdef __cplusplus
187
}
188
#endif
189
190
191
#endif
include
kovan
camera.h
Generated on Fri May 24 2013 14:41:58 for libkovan by
1.8.3.1