User Tools

Site Tools


projects:card_sorting_machine:log_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:card_sorting_machine:log_1 [2025/05/21 01:08] – created tjhowseprojects:card_sorting_machine:log_1 [2025/05/21 01:15] (current) tjhowse
Line 56: Line 56:
  
 The robot will need to be able to identify a card for it to be sorted. I plan to do this with a webcam and [[https://github.com/tesseract-ocr/tesseract|tesseract-ocr]]. This is a very powerful text recognition engine that Google publishes open-source. Some early testing has yielded promising results. I set up a HD webcam with a goose-neck worklight, with a white background. The webcam is connected to an old Raspberry Pi Model 3, running Debian 10. The robot will need to be able to identify a card for it to be sorted. I plan to do this with a webcam and [[https://github.com/tesseract-ocr/tesseract|tesseract-ocr]]. This is a very powerful text recognition engine that Google publishes open-source. Some early testing has yielded promising results. I set up a HD webcam with a goose-neck worklight, with a white background. The webcam is connected to an old Raspberry Pi Model 3, running Debian 10.
 +
 +Other [[https://www.youtube.com/watch?v=giR1BRpc2Z0|similar projects]] have used more complex machine learning smarts to identify the whole card, graphics and all, rather than just looking at the text. I'm going to see how far the text-only approach takes me, so I can keep all the brains on a single old RPI.
  
 {{:projects:card_sorting_machine:pasted:20250521-005743.jpeg|A photo of a netrunner card standing upright against a white background with carpet beneath it. A light is shining at the card from an oblique angle, and a webcam is sitting on a piece of black plastic pointing at the card. The webcam is about 150mm from the card. Other junk is visible in the background.}} {{:projects:card_sorting_machine:pasted:20250521-005743.jpeg|A photo of a netrunner card standing upright against a white background with carpet beneath it. A light is shining at the card from an oblique angle, and a webcam is sitting on a piece of black plastic pointing at the card. The webcam is about 150mm from the card. Other junk is visible in the background.}}
Line 92: Line 94:
 </code> </code>
  
 +===== Next steps =====
 +
 +Next up I have some mechanical design work to do. The machine must:
 +
 +  * Support a stack of cards,
 +  * Provide outlets through which cards can be fed,
 +  * A means of transmitting the motor torque into card-sliding action,
 +  * Supporting lighting,
 +  * Supporting the camera.
 +
 +Should be fun! I'm anticipating some challenges:
 +
 +  * Handling sleeved and unsleeved cards,
 +  * Glare from the lighting,
 +  * Camera focus/exposure issues,
 +  * Ensuring single-card feeding at different stack heights,
 +  * Keeping the camera view unobstructed by mechanical gubbins,
 +  * Fuzzy-matching card text against the card database.
 +
 +[<6>]
  
  
  
  
projects/card_sorting_machine/log_1.txt · Last modified: 2025/05/21 01:15 by tjhowse