OpenCvSharp VS dotnet-docker

Compare OpenCvSharp vs dotnet-docker and see what are their differences.

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
OpenCvSharp dotnet-docker
9 24
5,116 4,222
- 1.6%
7.8 9.4
2 months ago 7 days ago
C# Dockerfile
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

OpenCvSharp

Posts with mentions or reviews of OpenCvSharp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-12.
  • Image Feature Detection and Matching using OpenCvSharp - First Steps Towards VinylEye
    2 projects | dev.to | 12 Jan 2023
    In a previous post, I have gone through the process for building a Docker Image for OpenCVSharp that supports multiple processor architectures.
  • Does there exist an API accessible from C# that detects faces in images?
    2 projects | /r/AskProgramming | 4 Jan 2023
    Alternatively, you can get into the nitty gritty of face detection yourself. OpenCV is a massive, open source project for all kinds computer vision tasks. Without jumping into the proprietary world, this is one of the most popular and capable computer vision libraries available. While powerful, OpenCV is comparatively low level; giving you the tools you need to accomplish your task, rather than a direct, single method to call. This tutorial goes into depth on how you'd go about training facial models to create your own detection methods. You'll notice that the example is written in C++. The con with this option (aside from it being more complex) is that OpenCV is largely used in the context of C++ or Python. However, it does have C# wrappers. Emgu CV is probably the most popular .NET wrapper for OpenCV, though there are other wrappers available. Here is a nice tutorial using OpenCVSharp, which is a bit closer to the native C++ API OpenCV uses.
  • Compress/resize images
    7 projects | /r/dotnet | 14 Dec 2022
    Another option for more advanced image manipulation - use OpenCV wrapper like opencvsharp. I haven't done much benchmarking, but from my understanding this is considerably faster option than anything made in managed code (like ImageSharp), but coming at the cost of native dependency and a bit more C++-style API and other quirks of OpenCV.
  • Creating a NuGet package with static dependencies AND a native assembly wrapper?
    1 project | /r/dotnet | 11 Oct 2022
  • Universal UI testing based on image and text recognition
    5 projects | dev.to | 5 Jul 2022
    In order to do so, I had to learn about the basics of image processing. I was able to find an image within another with a technique called template matching, and I used an OpenCV wrapper made for .NET. I will not go through the technical details here, but you can find the relevant source code in my GitHub repository.
  • Docker multi-architecture, .NET 6.0 and OpenCVSharp
    6 projects | dev.to | 17 May 2022
    FROM debian:bullseye-slim AS build-native-env ARG TARGETPLATFORM ENV DEBIAN_FRONTEND=noninteractive # 4.5.5: released 25 Dec 2021 ENV OPENCV_VERSION=4.5.5 # 4.5.3.20211228: released 28 Dec 2021 ENV OPENCVSHARP_VERSION=4.5.3.20211228 WORKDIR / # install dependencies required for building OpenCV and OpenCvSharpExtern RUN apt-get update && apt-get -y install --no-install-recommends \ # details omitted \ libgdiplus # Get OpenCV and opencv-contrib sources using the specified release. RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \ unzip ${OPENCV_VERSION}.zip && \ rm ${OPENCV_VERSION}.zip && \ mv opencv-${OPENCV_VERSION} opencv RUN wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \ unzip ${OPENCV_VERSION}.zip && \ rm ${OPENCV_VERSION}.zip && \ mv opencv_contrib-${OPENCV_VERSION} opencv_contrib # configure and build OpenCV optionally specifying architecture related cmake options. RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ ADDITIONAL_FLAGS='' ; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ ADDITIONAL_FLAGS='-D ENABLE_NEON=ON -D CPU_BASELINE=NEON ' ; \ elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ ADDITIONAL_FLAGS='-D CPU_BASELINE=NEON -D ENABLE_NEON=ON ' ; \ fi && cd opencv && mkdir build && cd build && \ cmake $ADDITIONAL_FLAGS \ # additional flags omitted for clarity \ && make -j$(nproc) \ && make install \ && ldconfig # Download OpenCvSharp to build OpenCvSharpExtern native library RUN git clone https://github.com/shimat/opencvsharp.git RUN cd opencvsharp && git fetch --all --tags --prune && git checkout ${OPENCVSHARP_VERSION} WORKDIR /opencvsharp/src RUN mkdir /opencvsharp/make \ && cd /opencvsharp/make \ && cmake -D CMAKE_INSTALL_PREFIX=/opencvsharp/make /opencvsharp/src \ && make -j$(nproc) \ && make install \ && cp /opencvsharp/make/OpenCvSharpExtern/libOpenCvSharpExtern.so /usr/lib/ \ && ldconfig # Copy the library and dependencies to /artifacts (to be used by images consuming this build) # cpld.sh will copy the library we specify (./libOpenCvSharpExtern.so) and any dependencies # to the /artifacts directory. This is useful for sharing the library with other images # consuming this build. # credits: Hemanth.HM -> https://h3manth.com/content/copying-shared-library-dependencies WORKDIR /opencvsharp/make/OpenCvSharpExtern COPY cpld.sh . RUN chmod +x cpld.sh && \ mkdir /artifacts && \ ./cpld.sh ./libOpenCvSharpExtern.so /artifacts/ RUN cp ./libOpenCvSharpExtern.so /artifacts/ # Publish the artefacts using a clean image FROM debian:bullseye-slim AS final RUN mkdir /artifacts COPY --from=build-native-env /artifacts/ /artifacts WORKDIR /artifacts
  • Why we can’t use C++ in WPF?
    1 project | /r/dotnet | 27 Dec 2021
  • What's the fastest way to get pixel data from a Bitmap?
    6 projects | /r/csharp | 29 Sep 2021
    Maybe opencv will be faster? https://github.com/shimat/opencvsharp
  • image classification in .net with webcam
    1 project | /r/Lobe | 24 Feb 2021
    hello. the quickest way to access webcam in .NET would be use this package shimat/opencvsharp: OpenCV wrapper for .NET (github.com) and give feedback about using the lobe.OpenCVSharp binding to help you classify the images

dotnet-docker

Posts with mentions or reviews of dotnet-docker. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-19.
  • Exploring .NET 8 Preview 3: The 7 Features You Need to Know
    2 projects | dev.to | 19 Apr 2023
    This cool method lets you whip up optimized apps that get along swimmingly with Docker. Neat, huh? --platform values. Take a peek at this sample to see the pattern in action!
  • Need Help with C# on raspberry
    2 projects | /r/csharp | 31 Mar 2023
    You can also use the .NET Docker images to run (or build from source and then run) .NET applications.
  • Portability is a nightmare
    1 project | /r/ProgrammerHumor | 16 Mar 2023
    Sadly, lots of dotnet apps still out there. Luckily, there's a container for that too!
  • SSL Connection Issue on Lidarr startup (Raspberry Pi 4)
    2 projects | /r/Lidarr | 1 Feb 2023
    A search of "alpine 3.17 ssl" brings up this link that shows the same error.
  • (.NET/Azure) Docker mentor
    1 project | /r/docker | 29 Nov 2022
    Actually, it looks like I am a bit out of the loop, and there is an official .NET runtime for Linux, so you can use it like any other Linux docker images. Looks like there are examples here: https://github.com/dotnet/dotnet-docker
  • Is this Dockerfile ready for production? Is the container automatically secure?
    3 projects | /r/dotnet | 22 Oct 2022
    It is good that you are thinking about security 😊. there is an issue in dotnet repo here https://github.com/dotnet/dotnet-docker/issues/1772 that have hardened examples.
  • Why the fuck did Microsoft name everything .NET?
    1 project | /r/csharp | 26 Aug 2022
    You can use .NET without using ASP.NET Core (yes, the names are confusing right now, they dropped the "Core" suffix for the platform but did not drop the suffix for the web framework). Microsoft publishes a Docker image for .NET for when you just want to run some compiled CIL, but they also provide a Docker image where it includes .NET and ASP.NET Core for when you run a compiled ASP.NET Core web app. (https://hub.docker.com/_/microsoft-dotnet/)
  • Multi-Image Docker Images: Using COPY with Images directly from registries
    1 project | dev.to | 24 Jun 2022
    Keeping the whole Maritime theme alive with Docker (and Kubernetes), I jumped into the sea of Docker Hub with millions of containers and found out that Microsoft hosts all the .NET related container images as .NET by Microsoft registry.
  • Docker multi-architecture, .NET 6.0 and OpenCVSharp
    6 projects | dev.to | 17 May 2022
    ARG OPENCV_SHARP_BUILD_TAG=2 ARG SDK_VERSION=6.0.202-bullseye-slim-amd64 ARG RUNTIME_VERSION=6.0.4-bullseye-slim FROM syamaner/opencvsharp-build:$OPENCV_SHARP_BUILD_TAG AS opencv # Given we are building a .Net application, the build does not have to be in the target architecture. # Reference: https://github.com/dotnet/dotnet-docker/issues/1537#issuecomment-755351628 FROM mcr.microsoft.com/dotnet/sdk:$SDK_VERSION as build ARG TARGETPLATFORM WORKDIR /src COPY . . # Select the correct RID for the target architecture. # run dotnet publish as usual and pass the RID. RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ RID=linux-x64 ; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ RID=linux-arm64 ; \ elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ RID=linux-arm ; \ fi && \ dotnet publish -c release -o /app -r $RID --self-contained false # Copy the application as well as native dependencies to the final stage and build the final image without any unnecessary files. FROM mcr.microsoft.com/dotnet/runtime:$RUNTIME_VERSION as final WORKDIR /app # Copy opencv sharp native binding and runtime dependencies. COPY --from=opencv /artifacts/ /usr/lib/ RUN ldconfig COPY --from=build /app/ /app/ ENTRYPOINT [ "dotnet", "/app/OpenCVSharpBenchmarkApp.dll" ]
  • Dockerizing ASP.NET hello world - few questions from .NET newbie
    2 projects | /r/docker | 7 May 2022

What are some alternatives?

When comparing OpenCvSharp and dotnet-docker you can also consider the following projects:

Emgu CV - Emgu CV is a cross platform .Net wrapper to the OpenCV image processing library.

docker-multi-arch-opencvsharp - A demonstration of Docker multi architecture build for native dependencies for amd64, amrm64 and arm32 architecture

ImageSharp - :camera: A modern, cross-platform, 2D Graphics library for .NET

opencv_contrib - Repository for OpenCV's extra modules

ML.NET - ML.NET is an open source and cross-platform machine learning framework for .NET.

dotnet-framework-docker - The repo for the official docker images for .NET Framework on Windows Server Core.

Magick.NET - The .NET library for ImageMagick

sdk - Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI

ImageProcessor - :camera: A fluent wrapper around System.Drawing for the processing of image files.

OpenCV - Open Source Computer Vision Library

MetadataExtractor - Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files

BenchmarkDotNet - Powerful .NET library for benchmarking