Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect an object in a camera image in C# [closed]

I have an image, taken from a live webcam, and I want to be able to detect a specific object in the image and extract that portion of it to do some further processing.

Specifically, the image would be of a game board, let's say for the purposes of this question that it's a Sudoku game board.

My initial approach was to look for contrasting areas and work it out from there, but I seem to end up with a lot of potential edges (many erroneous) and no real clue as to how to work out which ones are the ones I actually want!

Are there any algorithms, libraries, code samples, or even just bright ideas out there, as to how I would go about finding and extracting the relevant part of the image?

like image 837
Jon Grant Avatar asked Jul 31 '09 10:07

Jon Grant


People also ask

How do you write an object detection code?

Create a Python file and give it a name (For example, FirstDetection.py), and then write the code below into it. Copy the RetinaNet model file and the image you want to detect to the folder that contains the python file. Then run the code and wait while the results prints in the console.

What is object detection in computer vision?

Object detection is a computer vision technique for locating instances of objects in images or videos. Object detection algorithms typically leverage machine learning or deep learning to produce meaningful results.


1 Answers

use the free AForge.Net image processing library for this. there's a ton of cool stuff to play with.

like image 134
Mladen Prajdic Avatar answered Oct 16 '22 08:10

Mladen Prajdic