-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
OpenCvSharp4.runtime.linux-arm doesn't work on raspberry pi 4 #1263
Comments
you should check dependency of native library as follows |
Thanks for reply. EDIT: using file libOpenCvSharpExtern.so i get: |
It seems that libOpenCvSharpExtern.so (64 bit) you're referred is not a valid library for current OS . |
Yes. It's the default for raspberry i think. At least in the official imager. |
that's the problem |
So I should build library on pi i guess. |
If you would like to use OpenCvSharp on arm32 |
Thank you!!! I hadn't realize Pi can run 64bit OS... |
What I don't get is that building project for linux-arm, which produces 32bit executable, libOpenCvSharpExtern.so is included in output directory, but when building for linux-arm64, which produces 64bit executable, libOpenCvSharpExtern.so is not included. |
I can build it successfully on Jetson family (arm64). |
I'd just note that the latest version of the I'd suggest unlisting that package, to avoid having other people encounter this problem and leave comments on this issue :) |
try this (GitNao@080b355#diff-f260d80d63498fdd7fb8dab34c17d5002bdf2249912fcbd1c7af7825f81b7ba7) libOpenCvSharpExtern.so (https://github.com/GitNao/opencvsharp/suites/3203466114/artifacts/74081383) |
libOpenCvSharpExtern.so (https://github.com/GitNao/opencvsharp/actions/runs/1017218277)
|
@GitNao this looks great! Unfortunately I've since removed my dependency on OpenCV so I'm not in a position to verify the change. |
I encountered the same problem on arm64,and cross-compile this library. it took effect. |
Did you compile on an Apple M1? |
Hello, because there is an "arm64" nuget too, I ran into the same problem, because I would like to use the "original" raspberry os. I have to access the camera through mmal, and under 64bit debian I cannot access video frames larger than 2mp, but I have a 12mp camera attached)... I think that is because mmal(sharp) is not 100% officially supported under debian (64bit), so I would like to go back to 32bite rapbian... I 32-bit nuget would be great, because than ir would be much mor easy to switch to a newer version. thanks carl |
Noticed the same thing. They do have a workflow for linux-arm, I wonder what is going on there: https://github.com/shimat/opencvsharp/blob/master/.github/workflows/linux-arm.yml. Might be it's just attaching the wrong artifact to the linux-arm package. It's building the 32 bits version for arm, I'd expect a 64 bits version somewhere as well, but I can only see I arm64 cuda version that seems a little behind version-wise. |
A bit late to the discussion but recently I experienced a similar issue too. If using Docker to run on Raspberry Pi, building OpenCV and OpenCvSharp as a multi architecture Docker build and then copy the native libraries to the target image when building the application. Here is an example: https://github.com/syamaner/docker-multi-arch-opencvsharp/tree/main/docker Essentially all it does is to build both libraries, copy libOpenCvSharpExtern.so and all dependencies to /artifacts directory. Then when building an application image, use it as a stage to copy contents of the /artifacts into the target image. the build image is only 94 to 125 mb depending on target architecture: https://hub.docker.com/repository/docker/syamaner/opencvsharp-build/tags This way I only need to add OpenCvSharp4 as a package reference and native bindings will be handled at Docker build time when building the application image. I have tested using 32 and 64 bit OS on Raspberry pi including official Rabpbian as well as Ubuntu 20.04 and 22.04. Hope it helps. |
有可供下载使用的文件吗,不想从头编译了 |
@shenlongju |
thank you, but I need arm32 version.
it will run in orangepi zero , ubuntu 18.04 arm
…------------------ 原始邮件 ------------------
发件人: "shimat/opencvsharp" ***@***.***>;
发送时间: 2022年10月31日(星期一) 下午3:08
***@***.***>;
***@***.******@***.***>;
主题: Re: [shimat/opencvsharp] OpenCvSharp4.runtime.linux-arm doesn't work on raspberry pi 4 (#1263)
@shenlongju
the attached file I built works well on Jetson, but it's not the latest version.
It should work on all arm64/aarch64 platform, you can have a try.
libOpenCvSharpExtern for Jetson(arm64/aarch64)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Raspberry arm64 tips |
@OaimIsGnay |
hello . can't find |
Can you tell me the source? |
apt update first then try it again |
Does not work Please give me your source address |
I use this on my Raspi.
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nuget Install Sdcb.OpenCvSharp4.mini.runtime.debian.12-arm64 or Sdcb.OpenCvSharp4.mini.runtime.ubuntu.22.04-arm64 #======================================================================== Linux orangepi5plus 5.10.160-rockchip-rk3588 #1.0.8 SMP Fri Nov 10 17:58:32 CST 2023 aarch64 GNU/Linux Distributor ID: Debian #======================================================================== Test OK! |
Summary of issue
Hello everyone.
First of all thank you for your effort to make this lib.
Trying to use opencvsharp on an image capture app on a raspberry pi. Installed the OpenCvSharp4.runtime.linux-arm nuget package thinking of this is what I need.
Although I get the error bellow.
Is there something I can do to make it work?
Environment
Raspberry pi model 4 4GB
OS: Raspbian 10 buster (armv7l)
Project framework: .net 5
Example code:
Output:
The text was updated successfully, but these errors were encountered: