Hello World for Ubuntu: Difference between revisions
Jump to navigation
Jump to search
Created page with "'''This example is based on Emgu CV 4.4, Ubuntu 20.04 and dotnet 5.0''' == Installing the dependencies == The pre-compiled Emgu CV binary requires a few package to be install..." |
No edit summary |
||
Line 4: | Line 4: | ||
The pre-compiled Emgu CV binary requires a few package to be installed on the Ubuntu instance. You will need to run this script to install the dependencies. | The pre-compiled Emgu CV binary requires a few package to be installed on the Ubuntu instance. You will need to run this script to install the dependencies. | ||
== Creating the first Emgu CV console program with .Net Core == | |||
From the command console, first create a console project in .Net Core | From the command console, first create a console project in .Net Core | ||
<pre> dotnet new console </pre> | <pre> dotnet new console </pre> | ||
Line 14: | Line 14: | ||
using Emgu.CV; | using Emgu.CV; | ||
namespace | namespace ConsoleTest | ||
{ | { | ||
class Program | class Program |
Revision as of 16:28, 30 November 2020
This example is based on Emgu CV 4.4, Ubuntu 20.04 and dotnet 5.0
Installing the dependencies
The pre-compiled Emgu CV binary requires a few package to be installed on the Ubuntu instance. You will need to run this script to install the dependencies.
Creating the first Emgu CV console program with .Net Core
From the command console, first create a console project in .Net Core
dotnet new console
Add the Emgu CV nuget packages
dotnet add package Emgu.CV.runtime.ubuntu
Fire up you favorite editor and replace Program.cs file with the following
using System;
using Emgu.CV;
namespace ConsoleTest
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(CvInvoke.BuildInformation);
}
}
}
Run the project
dotnet run