This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /usr/local/bin/thisroot.sh ]; then | |
. /usr/local/bin/thisroot.sh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure macosx64 --prefix=/usr/local --enable-x11 --enable-opengl | |
make -j4 | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <vector> | |
int main(int argc, char** argv) { | |
cv::VideoCapture cap(1); | |
if(!cap.isOpened()) { | |
std::cout << "Camera couldn't open !\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <opencv2/opencv.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
int main(int argc, char** argv) { | |
cv::VideoCapture cap(1); | |
cv::namedWindow("window", 1); | |
while(true) { | |
cv::Mat frame; |
NewerOlder