You could create the database manually by taking subsets of the input picture matrix and performing the unwrapping on them manually. Manual database editing might be feasible if you only had 10 coins to recognize. However, considering that the United States has minted coins for all fifty states in addition to entries for dirty coins and different lighting conditions, you’ll probably want to simplify the process. What we did was basically take our full code and hack it off before the unwrapping process. The radii and centers go into a function that displays the image of the coin to the user. The user then enters in values for the metadata associated with that image. In our case we used heads/tails, value in USD, coin name, and abbreviated coin descriptor (for debugging). We created a graphical interface in Matlab for loading images and loading and saving database files.
| Coin input GUI |
|---|
![]() |







