title: Videocapture using IPcam and google colab
body: <p>I have installed opencv-python and dlib. My area of interest is working on facial recognition. So basically trying to extract faces where in I have a ipcam or a webcam. I am not able to access the cam by however possible. The piece of code I am using is </p>
  
  <pre><code>    import numpy as np
      import cv2
      cap = cv2.VideoCapture('http://192.168.43.1:8080/video')
      #cap = cv2.VideoCapture('http://192.168.43.1:8080/onvif/device_service')
      #cap = cv2.VideoCapture('rtsp://192.168.43.1:8080/h264_ulaw.sdp')
      #cap = cv2.VideoCapture('rtsp://192.168.43.1:8080/h264_pcm.sdp')
      print(cap.isOpened())
      while(True):
      # Capture frame-by-frame
      ret, frame = cap.read()
      # Our operations on the frame come here
      if ret is True:
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  
      # Display the resulting frame
      cv2.imshow('frame',cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY))
  
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
       break
      # When everything done, release the capture
      cap.release()
      cv2.destroyAllWindows()
  </code></pre>
  
  <p>The print statement is always false however I try
  In my local windows machine it is working fine. Main purpose of using colab.research.google.com is that my machine doesn't support cmake properly for dlib and face_recognition</p>