Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cap = new VideoCapture();
- try {
- System.out.println("Sleeping..");
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- System.out.println("Camera on..");
- cap.open("rtsp://login:pass@192.168.1.14:554/cam/realmonitor?channel=1&subtype=0");
- if(!cap.isOpened()){
- System.out.println("Camera Error");
- }
- else{
- System.out.println("Camera OK?");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement