Je ne peux pas accéder à l'ipcamera sur opencv, j'utilise l'application ipcctrl pour voir l'aperçu de la caméra et ça fonctionne bien, mais quand Je tente de coller l'URL dans mon code, il affiche avertissement: Erreur lors de l'ouverture du fichier (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:578) quel est le problème ici? here is the proof that it is working fine in ipcctrlavertissement: Erreur lors de l'ouverture du fichier (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:578)
cv::Mat imgFrame1;
cv::Mat imgFrame2;
cv::VideoCapture capVideo;
const std::string videoStreamAddress = "http://admin:[email protected]:8088/mjpeg.cgi?user=USERNAME&password=PWD&channel=0&.mjpg";
std::vector<Blob> blobs;
cv::Point crossingLine[2];
int carCount = 0;
std::ofstream writer;
writer.open("cars.txt");
writer.close();
capVideo.open(videoStreamAddress);
if (!capVideo.open(videoStreamAddress)) { // if unable to open video file
std::cout << "error reading video file" << std::endl << std::endl; // show error message
_getch(); // it may be necessary to change or remove this line if not using Windows
return(0); // and exit program
}