Pylon package, OpenCV.Net.Native.NativeMethods #1639
GerrikLabra
started this conversation in
General
Replies: 1 comment 5 replies
-
Any update on this? I saw there's also #1553 around the same issue, but none of the proposed solutions worked for me (I mount Pylon 7.1.0, nuked Bonsai multiple times, installed 2.8.2, removed all nuget cached packages, tried out the Visual C++ Redistributable for Visual Studio 2012 Update 4 code @bruno-f-cruz was suggesting in that other issue , but no luck) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, could anyone help me solve an issue with the Pylon package on Bonsai? I am trying to setup a Baseler Camera to capture images through bonsai, but its dependent package, OpenCV, is throwing an error. "The type initializer for 'OpenCV.Net.Native.NativeMethods' threw an exception. file 'streamgrabberimpl.cpp', line 469". This error has been consistent during my attempts to fix it.
This has been a recurring issue for the pylon package, with several threads already on this site. However, the last one was 2021, and it's solution was ineffective for my situation. So a new thread is warranted.
Hardware
Hardware is Baseler cameras, GigE ethernet connections to a POE Injector, connected to a router, router connected to internet and computer.
Bonsai Editor v.2.8.0 Clean installed
Software
Pylon Viewer 64 Bit and Pylon Runtime.
Bonsai- pylon library
created by Goncalo Lopes
V0.30
Published 11/29/2023
OpenCV.Net[3.3.1)
PFS file generated correctly, serial number matches PFS.
Workflow example:
Pylon Capture->Image->VideoWriter
Hunting Error
Attempted to find the exact line of code, found out that OpenCV doesnt support GigE according to this doc, then the OpenCV github doesn't have a file "OpenCV.Net.Native.NativeMethods".
Attempts to fix
Did multiple clean downloads of Bonsai, Pylon Viewer, opencv-4.8.1-windows.exe, vcredist_x64.exe, and visualstudiosetup.exe.
Chaning video capture settings, image acquisition is set to Mono 8 or 12.
Changed grab strategy.
Switched cameras
Direct connection from computer to camera
Asked public ChatGPT, but its out of date from current Bonsai.
Beta Was this translation helpful? Give feedback.
All reactions