Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

Image Processing with OpenCvSharp

OpenCV License

Overview

This project demonstrates various image processing techniques using the OpenCvSharp wrapper for the OpenCV library. It is developed as a required deliverable for the Intelligent Systems 1 (CS345) course.

The application is built in C#, providing an accessible interface for experimenting with and applying popular computer vision algorithms.

Features

  • Image loading and display
  • Grayscale conversion
  • Blurring and smoothing
  • Edge detection (e.g., Canny)
  • Morphological operations
  • Object detection basics
  • Real-time webcam image processing (if supported)
  • Result visualization and saving

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/JIVERU/Image-Processing-with-OpenCvSharp.git
    cd Image-Processing-with-OpenCvSharp
  2. Restore dependencies:
    dotnet restore
  3. Build and run:
    dotnet run

If using Visual Studio, simply open the .sln file and build/run the project.

Usage

  1. Launch the application.
  2. Select an image to process or use your webcam (if supported).
  3. Choose any of the available image processing functions from the UI or code.
  4. View, analyze, and save the results.

Example

Below is an example showcasing edge detection on an input image:

using OpenCvSharp;

// Load image
Mat src = Cv2.ImRead("assets/input.jpg");

// Convert to grayscale
Mat gray = new Mat();
Cv2.CvtColor(src, gray, ColorConversionCodes.BGR2GRAY);

// Apply Canny edge detector
Mat edges = new Mat();
Cv2.Canny(gray, edges, 100, 200);

// Save result
Cv2.ImWrite("assets/output_edges.jpg", edges);

Contributing

Contributions, suggestions, and bug reports are welcome!
Feel free to open an issue or submit a pull request.

License

This project is distributed under the MIT License. See LICENSE for more information.

Acknowledgements


Developed by JIVERU

About

Image processing activity using opencvsharp wrapper for OpenCV library. This is a required deliverable for for Intelligent Systems 1 (CS345) course.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages