Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. cap = new VideoCapture();
  2.  
  3. try {
  4. System.out.println("Sleeping..");
  5. Thread.sleep(1000);
  6. } catch (InterruptedException e) {
  7. // TODO Auto-generated catch block
  8. e.printStackTrace();
  9. }
  10. System.out.println("Camera on..");
  11. cap.open("rtsp://login:pass@192.168.1.14:554/cam/realmonitor?channel=1&subtype=0");
  12. if(!cap.isOpened()){
  13. System.out.println("Camera Error");
  14. }
  15. else{
  16. System.out.println("Camera OK?");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement