An embedded developer friendly project for .NET 5.0 with C# in Linux ,capable of:
- Calling an OpenCV-based C++ function in a C# program
- Communication with a serial port in C#
- Multi-threading for processing serial port incoming bytes
https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code
dotnet new console --framework net5.0
cmake -S sobel_opencv_cpp/src -B sobel_opencv_cpp/build
cmake --build sobel_opencv_cpp/build
-
Add support for Bitmap images
dotnet add package System.Drawing.Common --version 5.0.2 sudo apt install libgdiplus
-
Add support for SerialPort communication
dotnet add package System.IO.Ports --version 5.0.1
-
Add support for Threads
dotnet add package System.Threading --version 4.3.0
dotnet run
In order to test the functionality of serial port data processing of this C# program you can use upload the Arduino program available in arduino_serial_port
directory to an Arduino board.