|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hello all, i am having problems with a piece of software i have to create to analyse images of coins. i can produce the software in matlab, java, c, c++ but i need help with the coding. can someone help me?
|
| Sponsored Links |
|
|
|
|||
|
Introduction
Your task is to write a piece of software to analyse images of coins. Your software could be a suite of Matlab functions in an m-file, a full GUI application or something in-between. Using Matlab is not a requirement. Feel free to use Java, C, C++, Python or whatever you’re comfortable with. Marks Different levels of functionality will be awarded marks in the following ranges: Finding coins If your software can locate distinct and non-overlapping coins within the image reasonably accurately, you will receive mark of up to 50%. Touching coins If your software can locate coins even if they are touching or overlapping slightly, you will achieve up to 60%. Calculating value If your code can identify coins and sum their values with reasonable accuracy even if they touch, marks up to 75% will be awarded. Up to 50% overlap If your software can identify coins that overlap by up to 50%, and sum their value, you will be awarded marks up to 100%. Whichever level of functionality you manage to implement, you will only get the highest mark if you also include: 1. Commented code. No need to go mad and comment every line, but sensible comments make reading code easier. 2. A description of your algorithm. This should be a single side of A4 or less. The clearest description gets the highest marks. A paragraph of text, some bullet points and a flow diagram sounds about perfect. 3. Notes on accuracy. Failing some examples isn’t the end of the world, but you should find out why it fails. Knowing the limits of an algorithm is important. 4. A sensible interface/API. It should be easy to use. If it’s a function, then I should be able to pass it an image and have the result returned in pounds and pence (if that’s what your code does). If you’re finding coins only, why not make it return an image in which the coins are highlighted, rather than a list of positions? 5. A sensible way to deal with unknown coins. |
|
|||||
|
OK, then I would write the program in C++. I would start by creating a recognition program for a single coin on a blank background. It has to be able to:
1) locate the circle against the background 2) compare to heads/tails of known coins 3) account for coin rotations 4) account for light angles Having a library of hi-res images to scale/rotate for comparison would probably be helpful.
__________________
Code:
int main() {
set<string> Math, Programming;
assert(Programming<Math);
return 0; }
|
|
|||||
|
It's not the sort of code I've done in the past, so I'd be developing it. I'm just stating what my strategy would be. I would also be sure to learn about rotations of images.
__________________
Code:
int main() {
set<string> Math, Programming;
assert(Programming<Math);
return 0; }
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Calculator | AfTriX | VB Tutorials | 3 | 02-29-2008 08:53 AM |
| Generating executable machine code | steffanp | General Programming | 5 | 02-03-2008 10:01 AM |
| Where to Put PHP Code | clookid | PHP Tutorials | 1 | 01-11-2007 08:44 PM |
| Inline vs code behind | Ronin12 | ASP, ASP.NET and Coldfusion | 0 | 05-24-2006 12:14 AM |