2 Copyright (C) 2015 Daniel Watson
3 See the end of the file for license conditions.
6 GNU AGPLv3 (or later at your option)
7 project available here:
8 https://challenge-bot.com/
10 #include <opencv2/opencv.hpp>
15 int main(int argc
, char** argv
) {
20 if(!camera
.isOpened()) {
21 cout
<< "not opened :( that's bad" << endl
;
25 cvtColor(frame
, grey_image
, CV_BGR2GRAY
);
27 imwrite("image.png", frame
);
28 imwrite("image-grey.png", grey_image
);
32 This file is part of challenge-bot.
34 Challenge-bot is free software: you can redistribute it and/or modify
35 it under the terms of the GNU Affero General Public License as published by
36 the Free Software Foundation, either version 3 of the License, or
37 (at your option) any later version.
39 GNU Affero Emacs is distributed in the hope that it will be useful,
40 but WITHOUT ANY WARRANTY; without even the implied warranty of
41 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 GNU Affero General Public License for more details.
44 You should have received a copy of the GNU Affero General Public License
45 along with challenge-bot. If not, see <http://www.gnu.org/licenses/>.