Stream Video from Hkvison Camera into Python Code via a Mobile Network

IBNU

n3wb
Sep 16, 2021
2
0
Singapore
Hey everyone I've recently purchased an IP camera and is wondering if I can use it to solve a certain problem. I need to stream the footage from the camera directly into some python code that can process the footage that uses the OpenCV library. The camera will have to be placed in an isolated location connected to it's own dedicated mobile modem internet, the issue I'm facing is that while RTSP works fine in a local network, I can't use it externally as the mobile network prevents me from port-forwarding the footage.

Is there any way I can access the footage remotely without port forwarding?
 
With a VPN in place, you should be able to securely access your camera footage from anywhere and feed it into your Python code for processing using the OpenCV library. It might take a bit of tinkering, but hopefully, it'll help you overcome the port-forwarding hurdle.
 
  • Like
Reactions: trempa92
Depending on the camera version, you could stream to youtube and fetch that video like that on your python app.

Also there is an ISUP solution where only server needs to have opened ports, but not location where camera is.

Also as @Zinersby stated, VPN is also viable and perhaps fastest solution.

Also there is Hik-PartnerPro OpenApi integration decumentation on tpp.hikvision.com

There are multiple solutions for multiple scenarios.All of them will solve your problem, But does not mean they are always easy to implement.

Good luck!