How to measure sound frequency using c# or XNA? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to measure sound frequency using c# or XNA?? Have any library do it? I want to record sound and identify the frequency of this sound.

What do you mean by the frequency? Most sounds, such as voice, music etc. consist of an entire spectrum of frequencies. So what you are essentially looking for is a spectrum analyzer. Such a spectrum can be calculated using the Fast Fourier Transform (FFT). Once you have done that, you can look for the dominant frequency in the spectrum, if there is one.
You might want to check out NAudio and related libraries such as the WPF Sound Visualizer to see how this could be done in C#. There is also a CodeProject article that uses XNA to capture microphone input, and then uses NAudio for further processing. While the example in that article is aimed at Windows Phone, I suppose it should also work in a desktop application with minor modifications.

Related

How to extract image features through C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
My adviser told me to use Accord Framework for C# to extract features and patterns from images. Our project is about image analysis and comparison of tobacco leaves. Does anyone here have an idea on how to do it? Thank you.
This is pretty high level stuff, but from what I've learned in my time faffing with it, I'd use the Accord.Imaging library to scan your pictures. Followed by using the Accord.Neuro namespace to "learn" from some manual data you feed into it.
Seems your goal is to create a program that scans images quickly, gleaning only the useful data from the full image, and then checking for some particular features of the image. I've never used the library, but it looks like it'd be possible to use it.

How would I go about Game Networking with C#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So, I'm trying and put my C# skills to the test, I have set myself towards making a Game with Networking in C#. This Game will not have movement (It's a hacking sim, so I don't think data will need to be constantly sent) what do you Guys think would be the best .dll or way to go about this? What about the Database for accounts? What do you think I could use? I have a average skill level in C#, so keep that in mind when making recommendations, please.
If you have average skill using an SDK should be helpful for you.
Start out with something like XNA Game Studio to see how those concepts are done.
This document is the starting point for the SDK https://msdn.microsoft.com/en-us/library/bb200104.aspx and the "Network" concepts you are specially looking for are discussed here: https://msdn.microsoft.com/en-us/library/bb975947.aspx
As for the database for accounts, this would be no different than any typical application that accesses a database and stores user accounts.

Finding bar code from an image file [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I do have a set of image files. Some of the files contains a bar code and I want to separate those from others. In c# how to find the presence of a bar code in an image file??
You have to apply some computer vision algorithms. You can develop them using OpenCV (via P/Invoke in C#), or EmguCV (http://www.emgu.com/wiki/index.php/Main_Page) which is .NET wrapper for OpenCV. There are also libraries made specific for barcode detection - ZXing comes to my mind.
If the bar codes are located at fixed positions, you can simply save these areas from the images to separate images and process them. If you need to locate the barcodes in the first place, you can use EmguCV for pattern recognition.

displaying images and playing sound in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning C# and I want to create a countdown timer application that displays the time in a digital format on an image of a stopwatch and gives verbal time updates at certain times.
How do I go about displaying images to the screen and playing sound? I have used pygame in python to achieve this so basically I am looking for suggestions for something similar in C#.
I hope this makes sense! Thanks.
The best technology to use for that would probably be Windows Presentation Foundation (WPF).
Here's an example of an application made in WPF similar to what you want to do:
http://www.codeproject.com/Articles/20048/Immerse-Yourself-in-WPF-A-quot-World-Clocks-quot-A

C# image analysis library [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have to develop a small application that gets some images and then counts the items in the image. It is something like a satellite image with a road and I need to count the cars.
Can you give me some hints where to start? I am completely lost.
Thanks a lot,
Radu
Have you checked out OpenCV? Emgu CV provides the .NET bindings
Image processing library:
OpenCV or if you have Matlab with the image processing toolbox it would be very nice.
Algorithm wise
Counting cars on a road is not as simple as it appears. Lets suppose they have a invariant scale (say 1.0).
Create yourself a Hough transform algo to vote for rectangles with about the same width and height as your cars.
In your vote buffer find the 'n' greatest vote scores and this is your number of cars.
This is not so complicated and OpenCV can be pretty useful. You can estimate the maximum value of your hough score for each car so you can set thresholds to skip outliers.

Categories