System Know There's A Camera???
Here a short program that I ran:
int main()
{
ifstream inputStream;
inputStream.open( "/dev/video0", ios::in );
cout << endl << endl;
if( !inputStream )
{
cout << "Could not open /dev/video0";
exit(1);
} else
{
cout << "/dev/video0 was opened";
}
cout << endl << endl;
return 0;
}
It reported: "/dev/video0 was opened".
Does this tell me that my system knows that there's a camera attached?
|