Giter Site home page Giter Site logo

Frame acquisition delay about pypylon HOT 9 CLOSED

basler avatar basler commented on August 24, 2024
Frame acquisition delay

from pypylon.

Comments (9)

barzan-hayati avatar barzan-hayati commented on August 24, 2024 1

if you are using a camera that gives out raw frames (like acA2040-55uc in our case)
the delay is because you are not using "video/x-raw(memory:NVMM)".

I suggest a gstreamer pipeline like this:
gst-launch-1.0 pylonsrc imageformat=RGB8 ! videoconvert ! nvvideoconvert ! "video/x-raw(memory:NVMM),format=NV12" ! m.sink_0 nvstreammux name=m batch-size=1 width=2048 height=1536 ! nvmultistreamtiler rows=1 columns=1 width=2048 height=1536 ! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink sync=false

in our case, our latency reduced from 2 seconds to almost zero

from pypylon.

matt-phair avatar matt-phair commented on August 24, 2024

If the camera has them, have you played with the auto-exposure or auto-gain settings? If you turn off auto-gain and put the exposure down to something small, does the problem persist?

from pypylon.

vdmcb avatar vdmcb commented on August 24, 2024

In the grab.py script, from samples, the exposure and gain are not set. Are their default value set on Auto? If not, could you tell me how to set them on auto?

from pypylon.

matt-phair avatar matt-phair commented on August 24, 2024

For our camera, the values are stored on the camera itself. Easiest way to check is to open up pylon viewer and check the current properties on the camera that way. There's a little dropdown at the bottom of the list of properties where you can filter out more advanced settings. If you set it to "guru" you'll get all of them.

from pypylon.

farzadsw avatar farzadsw commented on August 24, 2024

Using the wrong grab strategy can be the cause of the problem.
Grab the images using this method to see whether it makes any difference or not:
camera.StartGrabbing(pylon.GrabStrategy_LatestImageOnly)

The rest of the code is in the opencv.py sample.

from pypylon.

lcflorindo avatar lcflorindo commented on August 24, 2024

Hello all,

I have a similar problem but got a delay increase migrating from Ubuntu 16.04 LTS to Win10 Server 2012.
My Ubuntu runs pretty fast, close to 0.8 sec to take a picture, but on Windows it got 2.4 sec increase and misses the target (3.2 seconds total). In both systems the PylonViewer works perfectly and without any delay.

I tried also change the settings suggested above in Pylon Viewer but the camera does not keep the config, I may need do it by code. (I am using an acA1600-60gc btw)

Any ideas on how to solve this Window10 delay?

from pypylon.

farzadsw avatar farzadsw commented on August 24, 2024

I haven't used it with win10, but regarding the settings, you can set the parameters in the Pylon Viewer and save it as a file. Then in your code, you can load the setting from the file.

from pypylon.

lcflorindo avatar lcflorindo commented on August 24, 2024

I haven't used it with win10, but regarding the settings, you can set the parameters in the Pylon Viewer and save it as a file. Then in your code, you can load the setting from the file.

That sounds promissor! Is there any example code available?
Another thing that is "fishy" for me, is about the version of the library/Pylon Viewer installed. You guys think that could have some relation with the delay? There is a "best" version to install?

from pypylon.

thiesmoeller avatar thiesmoeller commented on August 24, 2024

The easiest path is setting the same parameters, Just like you did in Pylon Viewer

https://docs.baslerweb.com/network-related-parameters-(gige-cameras)

from pypylon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.