-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
joshdoe/gst-plugins-vision tutorial #50
Comments
try note the |
Hi, thank you for responding... I get the pylon viewer software to recognize the camera so it is connected. I noticed, when trying to rebuild that It was suggesting to install optional packages on my system and among all Basler was there. However I do have the Basler Pylon and pypylon installed. What am I missing? My pylon files are in /opt/pylon Do I need to specify somewhere when building that I have pylon in /opot/pylon? |
you didnt tell gstreamer where your gst-plugins-vision plugins are located. to verify you have the plugins loaded and in order, |
Hi, nope. It does not show up. It seems its not loaded properly |
|
I get 226 blacklisted files |
gst_error.txt |
I found similar issue on stackoverflow but I dont understand the solution. "Gstreamer-WARNING **: Failed to load plugins while they are existent" The suggestiopn is to reconfigure and rebuild the libraries with the sources. |
Seems to be a shared library problem to me. Also, looks like you included your Pylon directory in |
Where is the location of the libgstpylon.dll? I cant find it anywhere |
Sorry libgstpylon.dll is the plugin generated by this project on Windows, on Linux it would be named with |
I started over with the installation and when trying to run sudo cmake .. I get: Could NOT find PYLON (missing: PYLON_INCLUDE_DIR PYLON_LIBRARIES) |
cmakeError.txt |
I have now changed to path in FindPylon.cmake folders |
Look at |
Hi, I did that but it did not help. It seems like the entire structure of the pylon lib has changed. I will see if I can revert to an older version of pylon |
Hi, I rolback to pylon5. Managed to compile. The pylonviewer works... Setting pipeline to PAUSED ... |
Hi. I got it working by reinstalling my VM from scratch. Installed latest G-streamer and installed version 5.20.13457-x86_64 from pylon. Then followed your instructions. If you have the time I would appreciate if you could see it could work with pylon 6.1.1. I will try that too from a fresh installation. Now its time to test in python to see if I get the image to cv2 thanks so far for your support. most appreciated that you make the time! I thought I got it working. It flashes by and I get: Error: from element /GstPipeline:pipeline0/GstPylonSrc:pylonsrc0: Internal data stream error. I got an image once then it stopped working. The Pylon software works fine, though I have to pull down the bandwidth or I get to much frame drop or application freeze. I try and try and try.. Like an idiot :D |
Hi, @mgabell. Historically, plugin sets some camera properties to default values even if they are not specified. Since you say that PylonViewer drops a lot of frames, I can assume that you use GigE camera. In that case you could try this branch and run |
I will go right at it. I will try with the new version 6 of pylon libs and see if that helps. I will also get the error messages. Just to emphasize that the FindPylon.cmake has not the correct paths to Pylon6. If you update functionality it would be good if you could see how the new structure of the Pylon 6 library is. The Development/include does not seem to exist anymore, not in 5. I cant find an SDK either on Basler download that would make sense to install, I just go with the Pylon Software. |
Hi, Here is the full error using Pylon 6 . I changed folder in cmake from /opt/pylon5/ to /opt/pylon and /lib64 to /lib. So. I get the image to flash by and I get the output below... |
So I went into Pylon Software and lowered bandwidth alot. Set it to 80. I saved the file but did not include it when starting gstreamer. oohh I added queue as Josh described. That worked. Also including the settings file does not produce error so I HOPE now that the gstreamer is stable. Can you also provide a way to run this in Python3? |
So. Now I have issues in Python. I use. I have tried to find something related to this but without luck. The first error about video position can be ignored, 'cuase there is not captured image in frame0 but the rest is unexplainable. I get error: 0:00:00.669712039 17206 0x31508f0 pylonsrc gstpylonsrc.c:3762:video_frame_free: PylonC error: Function 'PylonStreamGrabberQueueBuffer' failed in source file '../../../../../../../Pylon/PylonC/PylonC/PylonC.cpp' line #3012 Process finished with exit code 0
def open_cam(width, height): def main(): if name== "main": |
sudo python3 main.py main.py:4: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded. 0:00:01.029719083 18785 0x2b0c440 pylonsrc gstpylonsrc.c:3762:video_frame_free: PylonC error: Function 'PylonStreamGrabberQueueBuffer' failed in source file '../../../../../../../Pylon/PylonC/PylonC/PylonC.cpp' line #3012 So close :( |
This is very strange. |
Don't you need some kind of busy loop to keep interpreter inside of main? |
Yes you do of course, but I cant even open the Stream so the loop would not start. The sys exit would break before coming to the loop. In a full implementation I would create a main gui thread loop that waits for exit command and the camera grabbing would be managed in a second thread that would queue to a share memory, |
Hi,
I have just compiled and installed the gst-plugin on Ubuntu. Worked like a char,. But I have not been able to
open a stream to my Basler camera. Can anyone explain how I write the gst-launch string?
I assumed it would work like this:
gst-launch-1.0 pylonsrc ! autovideoconvert ! autovidosink
but noo.
Ideas? I want to use this in python in the end so I guess, once the gst-launcher works I can use it in Python too?
br,
M
The text was updated successfully, but these errors were encountered: