shimat / opencvsharp

OpenCV wrapper for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux ARM64 (Native bindings for Linux ARM64)

DJSures opened this issue · comments

Summary of your issue

OpenCVSharp is fantastic; kudos to all your hard work! My cross-platform experience is unfortunately limited because there are no Linux ARM64 native bindings. I'm surprised to see 32-bit ARM NuGet packages (OpenCvSharp4.runtime. Linux-arm) in 2024. Many of the OpenCVSharp user issues in this repo are because of the lack of ARM64 bindings. All Raspberry Pi and ARM SBC Linux's have favored 64bit for the last few years. You will be hard-pressed to find a 32-bit OS these days.

Environment

  • Raspberry Pi Zero 2 (BCM2710) is 64 bit
  • Raspberry Pi 3 (BCM2710) is 64 bit
  • Raspberry Pi 4 (BCM2711) is 64 bit
  • And, of course, Raspberry Pi 5 is 64-bit

What did you do when you faced the problem?

I started Sherlock'n the interwebs to find a libOpenCvSharpExtern.so: ELF 64-bit LSB shared object, ARM aarch64 compatible with OpenCVSharp4 (not SDCB's Mini, because /dev/videoX is essential)

Until there's a build for Linux ARM64, I'll have to build it myself - but I'd prefer a shared Nuget that solves the many user issues in this repo.

Example code:

Build it yourself RN: https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html

Output:

sad face emoji

What did you intend to be?

Like all children, an astronaut, cowboy, firefighter, or robot. I made a few million robots possible, so I kind of achieved my goal! What did you intend to be?

Thumbs up for ARM64 NuGet package for Raspberry Pi!

Did you build it yourself or do you want me to post the one I built?

No, I didn't build it myself, I yust wanna see it build as NuGet package so that can be easily included for linux-arm64 Raspberry Pi projects.