Raspberry Pi, C++, OpenCV | بلاگ

Raspberry Pi, C++, OpenCV

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

Camera::Camera (SDL_Renderer* Renderer)
{
  _Renderer = Renderer;
  _Cap = VideoCapture (0);

  if (!_Cap.isOpened ())
  {
    cout << "cannot open camera";
  }
}

void Camera::Test ()
{
  while (1)
  {
    _Cap.read (_Frame);

    _Frame.convertTo (_Frame8U, CV_8U);

    imshow ("you can see the image now",_Frame8U);

    if (waitKey(20) == 27)
    {
      break;
    }
  }
}

this code works (test - method) on raspberry pi 2 but on raspberry pi 3, it shows me greyscreen. can anyone help me with this issue?

asked 46 secs ago
Glaedron

...
نویسنده : استخدام کار بازدید : 22 تاريخ : دوشنبه 28 اسفند 1396 ساعت: 14:58