pypylon icon indicating copy to clipboard operation
pypylon copied to clipboard

Accessiing GigE cameras remotley through vpn

Open ghazalehtrb opened this issue 2 years ago • 6 comments

Hi everyone, Does anyone know how to use pypylon from outside of the network that the cameras are connected to?

ghazalehtrb avatar Jul 12 '22 15:07 ghazalehtrb

in the perspective of there is no different if the camera connected to pc directly (peer to peer) , in the same network Oder via internet.

you need to make sure that the UDP trafic of the PC can reach the camera.

In case the camera is reach reachable in unicast traffic, then you can use F11 in pylonviewer to announce the IP of the camera.

SMA2016a avatar Jul 19 '22 19:07 SMA2016a

@SMA2016a thanks you for your response. I was trying to use a VPN tunnel to connect to the camera and grab the frames with pypylon.

I finally managed to establish the connection however, I only achieve a maximum of 2 fps and that’s after playing around with packet size and inter-packet delay. Anything faster gives the following error l:

Error: 3774873620 The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable. To fix this, try increasing the camera's Inter-Packet Delay in the Transport Layer category to reduce the required bandwidth, and adjust the camera's Packet Size setting to the highest supported frame size.

I’m using wire guard to set up the vpn. Do you have any suggestions how to improve the speed? Reducing the frame resolution to 720p increased the frame rate to about 20 fps but it seems like pylon only crops the frame and there’s no actual resizing/down sampling.

ghazalehtrb avatar Jul 21 '22 22:07 ghazalehtrb

If you want the camera to do resizing look into binning.

PolymaTh-EE98 avatar Jul 22 '22 01:07 PolymaTh-EE98

@PolymaTh-EE98 thank you for your response. Unfortunately according to the website my camera doesn’t support binning. I’m using a a2a1920-51gcpro gige camera.

ghazalehtrb avatar Jul 22 '22 13:07 ghazalehtrb

For anyone interested, there’s another feature called Pixel Beyond that reduces the frame resolution on ace 2 cameras.

ghazalehtrb avatar Jul 22 '22 13:07 ghazalehtrb

try compression beyond

SMA2016a avatar Jul 22 '22 15:07 SMA2016a