/*
- Copyright (C) 2015 Daniel Watson
+ Copyright (C) 2016 Daniel Watson
See the end of the file for license conditions.
*/
/* challenge-bot
using namespace std;
int main(int argc, char** argv) {
- VideoCapture camera;
- camera.open(0);
- Mat edges;
- Mat frame;
+ if (argc < 2) {
+ cout << "supply a video device index." << endl;
+ cout << "probably 0 for beaglebone, 1 for laptop" << endl;
+ exit(0); }
+ VideoCapture camera(atoi(argv[1]));
if(!camera.isOpened()) {
cout << "not opened :( that's bad" << endl;
exit(-1); }
+ Mat frame;
camera >> frame;
Mat grey_image;
cvtColor(frame, grey_image, CV_BGR2GRAY);
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
- GNU Affero Emacs is distributed in the hope that it will be useful,
+ Challenge-bot is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.