Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- How resolve this problem? HOT 11
- Is the pylon.PylonInitialize form correct? HOT 1
- How to deal with this? HOT 3
- problem with connecting the Basler ace camera acA2440-35um with raspberry pi4 (bullsey 64-bit).
- problem with connecting the Basler ace acA2440-35um camera with raspberry pi4 (bullsey 64-bit)
- connecting the Basler ace acA2440-35um camera with Raspberry Pi4 (bullsey 64-bit) HOT 7
- a2a4504-5gcPRO not reachable, other cameras fine HOT 3
- Basler acA3088-57um has framerate limit on pypylon HOT 1
- How to find the reason why no images are grabbed HOT 3
- Manually Enabling PGI HOT 4
- pypylon support request test
- Settting Camera Exposure, and Loading pfs file. HOT 5
- Problems with packaging basler python development as an exe HOT 5
- Error: 0xe1000014 The buffer was incompletely grabbed HOT 7
- BUG: SDK issue with EnumerateDevices HOT 3
- Low processing speed of images in Ubuntu than Mac HOT 2
- Read operation on device '2676:ba02:2:4:44' failed: 'The requested operation timed out.' : TimeoutException thrown (file 'PylonUsbDevice.cpp', line 778) HOT 1
- Different behaviour between Windows and Linux computer HOT 3
- how select camera by number or name? HOT 2
- How to query Stream Grabber Statistics Parameters from pypylon? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypylon.