Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Hi,
nachfolgender Code ist nur schnell aus einem bestehenden Programm von mir rausgezogen. Ich hoffe ich habe alle relevanten Teile erwischt. Ich nutze die neuste OpenCV Version.
Code:#include "highgui\highgui.hpp" #include "imgproc\imgproc.hpp" #include <iostream> using namespace std; using namespace cv; int main() { int c; CvCapture *camera; Mat cameraFrame; camera = cvCaptureFromCAM(0); // select 1st camera if(camera == NULL) { cout << "[ERROR] No camera found!" << endl; return -1; } // output window cvNamedWindow("Camera Output", 0); // loop forever till ESC for(;;) { // capture a frame from the camera cameraFrame = cvQueryFrame(camera); // display it if(!cameraFrame.empty()) imshow( "Camera Output", frame ); else cout << "[WARN] No frame captured in this loop!" << endl; // test for ESC c = cvWaitKey(10); if(c == 27 /* ESC */) break; } cvReleaseCapture(&camera); cvDestroyWindow("Camera Output"); return 0; }
Auf die nötigen Funktionen zum Testen wäre man aber auch ganz schnell via Suchmaschine gekommen
gruß
_grubi
Da bleibt dir wohl nichts anderes übrig, als eine Debug Version zu erstellen und das Programm über einen Debugger zu starten. Dann solltest du schnell darauf kommen, an welcher Stelle es schief geht. Bin auch kein Spezi, was OpenCV angeht