Intelbrass cameras with python

Asked

Viewed 994 times

0

I wonder if it is possible to take images of an intelbrass camera through ip by python, I searched a lot and found nothing, the code that came closest was this one:

import cv2

cap = cv2.VideoCapture('http://192.168.18.37:8090/video')

and presented this error:

Connection to tcp://192.168.18.37:8090 failed: Error number -138 occurred
  • To access have user and password? In addition, the protocol to access is rtsp. If you have user and password, then it would be like this: cv2.VideoCapture('rtsp://usuario:[email protected]:8090/1').

  • I’ve tested it this way too, you’ve made the same mistake

  • Did you look at the camera manual? you set that door?

  • Yeah, I got a system that runs through that door

1 answer

2

Hello, for this camera model you can use the following structure: http://user:password@ip:port/cgi-bin/mjpg/video.cgi? Channel=0&subtype=1

import cv2

camIp = 'http://admin:[email protected]:8080/cgi-bin/mjpg/video.cgi? 
channel=0&subtype=1'

cap = cv2.VideoCapture(camIp)

while True:

    ret, frame = cap.read()
    cv2.imshow('Frame', frame)
    if cv2.waitKey(1) & 0xFF == ord('q'): break

cap.release()
cv2.destroyAllWindows()

If you need more information read this forum of the company itself: http://forum.intelbras.com.br/viewtopic.php?t=55618

IMPORTANT: Test camera link on VLC Player before code, to eliminate problems!

>>Example of the VLC<<

  • I tried that way, didn’t return anything

  • 1

    Good use this brand of cameras at a time, and works for different models and generations. Test your links before in the VLC Player PROGRAM. https://www.youtube.com/watch?v=-vTb6CP0N1M if you cannot open them in real time in this software the problem is the link, but if you open the problem is your code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.