Guest User

Untitled

a guest
Jan 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include "main.hpp"
  2.  
  3.  
  4. void vision::init_camera()
  5. {
  6. cv::VideoCapture* camera(0);
  7.  
  8. if(!camera->isOpened())
  9. {
  10. std::cout << "Could not open camera" << std::endl;
  11. }
  12.  
  13. else
  14. {
  15. std::cout << "Camera found" << std::endl;
  16. }
  17. }
  18.  
  19. void vision::display_camera(cv::VideoCapture &cam)
  20. {
  21. std::cout << "Displaying camera" << std::endl;
  22. }
  23.  
  24.  
  25. int main()
  26. {
  27. vision *v_cam = new vision();
  28.  
  29. }
Add Comment
Please, Sign In to add comment