Added an error message if a camera isn't available.

pull/125/head
Davis King 8 years ago
parent 617ffba652
commit 0cd76f899b

@ -42,6 +42,12 @@ int main()
try
{
cv::VideoCapture cap(0);
if (!cap.isOpened())
{
cerr << "Unable to connect to camera" << endl;
return 1;
}
image_window win;
// Load face detection and pose estimation models.

Loading…
Cancel
Save