Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-2008, 10:31 AM
sammie26 sammie26 is offline
Newbie
 
Join Date: Mar 2008
Posts: 5
Rep Power: 0
sammie26 is on a distinguished road
Default need help with code

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-27-2008, 11:32 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: need help with code

At this point you haven't given us much to go on, or indicated where you need help. What type of analysis do you need to do, for example? Are you trying to pick a language, or something else?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-27-2008, 12:15 PM
sammie26 sammie26 is offline
Newbie
 
Join Date: Mar 2008
Posts: 5
Rep Power: 0
sammie26 is on a distinguished road
Default Re: need help with code

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2008, 12:16 PM
sammie26 sammie26 is offline
Newbie
 
Join Date: Mar 2008
Posts: 5
Rep Power: 0
sammie26 is on a distinguished road
Default Re: need help with code

wingedpanther, that is what the task that was set for me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-28-2008, 12:26 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: need help with code

I guess the first question is: what languages are you familiar with?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 03-29-2008, 10:55 AM
sammie26 sammie26 is offline
Newbie
 
Join Date: Mar 2008
Posts: 5
Rep Power: 0
sammie26 is on a distinguished road
Default Re: need help with code

well i am sort of familiar with c++.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-01-2008, 01:03 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: need help with code

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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-01-2008, 02:07 PM
sammie26 sammie26 is offline
Newbie
 
Join Date: Mar 2008
Posts: 5
Rep Power: 0
sammie26 is on a distinguished road
Default Re: need help with code

can u give me a few tips on how to start it cos i have just recently started to learn c++. need to know how the code can be written.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-02-2008, 11:58 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,278
Last Blog:
wxWidgets is NOT code ...
Rep Power: 36
WingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to allWingedPanther is a name known to all
Default Re: need help with code

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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Calculator AfTriX VB Tutorials 3 02-29-2008 09:53 AM
Generating executable machine code steffanp General Programming 5 02-03-2008 11:01 AM
Where to Put PHP Code clookid PHP Tutorials 1 01-11-2007 09:44 PM
Inline vs code behind Ronin12 ASP, ASP.NET and Coldfusion 0 05-24-2006 01:14 AM


All times are GMT -5. The time now is 06:40 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads