Skip to content
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

Devendor OpenCvSharp #3

Open
1 of 3 tasks
colombod opened this issue Oct 14, 2020 · 13 comments
Open
1 of 3 tasks

Devendor OpenCvSharp #3

colombod opened this issue Oct 14, 2020 · 13 comments

Comments

@colombod
Copy link
Contributor

colombod commented Oct 14, 2020

Version 4.5.x of OpenCVSharp is available and that exposes OpenCV 4.5.0 functionalities

  • build the opencv native runtimes for pi-top[4] from version 4.5.x
  • add nuget package definition for 4.5.x runtime
  • update readme file to contain the build instructions for the native dependencies
@colombod colombod added this to the .NET Conf milestone Oct 16, 2020
@m-roberts m-roberts self-assigned this Oct 21, 2020
@m-roberts
Copy link
Collaborator

I will speak to @jcapona about this as he did the first compilation.

@m-roberts
Copy link
Collaborator

Tackling the first part of this - I will merge in 4.5.0 as we have it currently. I will need help with the NuGet packaging after that.

@colombod
Copy link
Contributor Author

colombod commented Oct 22, 2020

Tackling the first part of this - I will merge in 4.5.0 as we have it currently. I will need help with the NuGet packaging after that.

Sounds good and I can help with that but next turn of the crank is to use a docker file to pull in opencv specific version, build what we need and run a script to generate the nuget spec required and finally pack the stuff in a package we can get and push to nuget (manually build and push)

@angusjfw
Copy link
Contributor

Is there a particular reason to use a Docker file for this script?

As we are compiling for arm, it will be easiest to do this on a rpi, rather than cross-compile. Compiling opencv on the pi generally uses pretty much all it's memory, requiring extra swap, and running docker will make that worse.

It sounds like we only need to do this process once, and if we need to start afresh Mike probably has some unused pi-topOS SD cards around 😛

@m-roberts
Copy link
Collaborator

I can't see why we need to worry about that now. If there's a NuGet package with 4.5.0, we have addressed the issues that are in front of us.

@m-roberts m-roberts changed the title Update to latest opencv sharp Move OpencvSharp to NuGet Oct 22, 2020
@m-roberts m-roberts changed the title Move OpencvSharp to NuGet Move OpenCvSharp to NuGet Oct 22, 2020
@m-roberts m-roberts changed the title Move OpenCvSharp to NuGet Update OpenCvSharp to 4.5.0 and move to NuGet Oct 22, 2020
@m-roberts
Copy link
Collaborator

I have a PR open #12 which adds 4.5.0 OpenCVSharp. Can somebody confirm that I have done this correctly?
What needs to happen next? I am unfamiliar with how to do the NuGet packaging part.

@m-roberts m-roberts mentioned this issue Oct 22, 2020
2 tasks
@colombod
Copy link
Contributor Author

Not having the native dependencies available via nuget will affect the ability of pi-top user to run the app on their machine

Copy link
Collaborator

Not sure how to act on that. Can you explain what needs to happen?

@colombod
Copy link
Contributor Author

colombod commented Oct 27, 2020

We need automation to

  • download and compile native depedencies on pi-top
  • modifies unspecified template according to version and files to pack
  • packs the binaries into nugget
  • cleans the environment post build

We need this process every time we have a dependency that

  • is not present on nugget
  • needs to support side by side versions
  • is not needed unless a customer decides to use it in the application being launched

@paulmey has some suggestions we should take into account

@m-roberts m-roberts removed this from the .NET Conf milestone Mar 12, 2021
@m-roberts
Copy link
Collaborator

Latest released version of OpenCVSharp is being built daily in a GitHub Action here: https://github.com/pi-top/opencvsharp-arm. There are still some things that need to be done there

@m-roberts m-roberts changed the title Update OpenCvSharp to 4.5.0 and move to NuGet Devendor OpenCvSharp May 8, 2021
@m-roberts
Copy link
Collaborator

OpenCVSharp should now be available from Nuget: https://www.nuget.org/packages/OpenCvSharp4.runtime.linux-arm/4.5.2.20210507

@colombod
Copy link
Contributor Author

colombod commented May 8, 2021

you will still need the 4.5.2 binaries for the raspian as of now the repo contains only 4.5.0 in runtimes\opencvsharp\ the binaries of opencv4.5.2 still need to be done

@m-roberts
Copy link
Collaborator

m-roberts commented May 12, 2021

  • Build latest OpenCV for Raspberry Pi in new repo
  • Produce GitHub Release for 4.5.2
  • Update libs/: drop OpenCV zip from setup script steps; download and install from latest Release instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants