Difference between revisions of "Asp.Net Core on Ubuntu"

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to: navigation, search
(Testing with a browser)
Line 17: Line 17:
 
Open a browser from Ubuntu and enter the url <pre> http://localhost:5000/api/file </pre>
 
Open a browser from Ubuntu and enter the url <pre> http://localhost:5000/api/file </pre>
 
You should get a Jpeg file, generated by Emgu CV, that contains text describing the current time on the system.
 
You should get a Jpeg file, generated by Emgu CV, that contains text describing the current time on the system.
[[File: aspnet_core_ubuntu.png]]
+
[[File: aspnet_core_ubuntu.png|300px|center|thumb|Firefox on Ubuntu show asp.net core generated image]]
 +
 
 +
Congratulations, you have your first Emgu CV Asp.Net Core apps running on Ubuntu!

Revision as of 16:20, 24 June 2020

This example requires Emgu CV 4.3.0 and up

Requirements

This tutorial is based on Ubuntu 20.04 LTS. You will need to follow the instruction here to build Emgu CV from source code. Once you have the BuildInfo.NetCore.Console project running from above, you have the dependencies setup for your project and can continue below.

Running the ASP .NetCore project

The source code is located under the
Emgu.CV.Example/DynamicImage.Asp.NetCore
folder.

Command Line

You can run the project by running
dotnet run
in the above folder.

Using Visual Studio Code

You can also open the project with Visual Studio Code

Testing with a browser

Open a browser from Ubuntu and enter the url
 http://localhost:5000/api/file 

You should get a Jpeg file, generated by Emgu CV, that contains text describing the current time on the system.

Firefox on Ubuntu show asp.net core generated image

Congratulations, you have your first Emgu CV Asp.Net Core apps running on Ubuntu!