News for hackers. Stuff that matters.
Re:The Nettle Magic Project: Scanner for decks of cards with... by gostsamo on Wednesday June 29, 2022 @01:40PM (#31923358)
This tech could be a game changer for accessibility. Many card games are not or cannot be adapted to braille, so I haven't been able to play them with friends. If cards can be sold with invisible ink in an open format, then I would need only a scanner and a earphone to be able to check my cards without other help.

I've thought of doing with with QR codes, but I'm not sure if it will look okay for the other players and if the qr codes won't be recognizable enough by a human to give someone unfair advantage in some situations.

Re:The Nettle Magic Project: Scanner for decks of cards with... by pmyteh on Wednesday June 29, 2022 @01:49PM (#31923477)
Duplicate bridge cards are often printed with barcodes on the card faces, to facilitate automated dealing machines with computerised hand records. I've never seen a system which reads the barcodes for a blind player, but I'm sure it's possible. (The traditional approach is with a human 'card turner' assisting, which sucks for all kinds of reasons). Or even just reading the standard face images: it's a much easier problem than reading codes on the edges, and has the advantage of not making it easier to cheat!
Re:The Nettle Magic Project: Scanner for decks of cards with... by gostsamo on Wednesday June 29, 2022 @01:55PM (#31923555)
Normal cards are a solved issue. You can print two braille symbols on each and it is done. Imagine though something like cards against humanity for example, where the text on the card would take ten times the space in braille. In different games images and details could have different meaning and simple ocr would be the wrong solution.
Re:The Nettle Magic Project: Scanner for decks of cards with... by pmyteh on Wednesday June 29, 2022 @02:06PM (#31923679)
That makes sense!

If the QR codes or whatever are on the faces and only encode information already printed there (suit+rank for standard cards, the title and text for board games) I can't imagine there would be any cheating/unauthorised information problems.

Re:The Nettle Magic Project: Scanner for decks of cards with... by gostsamo on Wednesday June 29, 2022 @02:14PM (#31923784)
Yep, this is the main idea at the moment. Currently looking for a game that needs the solution and is interesting for my social circle.
Re:The Nettle Magic Project: Scanner for decks of cards with... by caf on Wednesday June 29, 2022 @08:37PM (#31927462)
Dominion might be a good one.
Re:The Nettle Magic Project: Scanner for decks of cards with... by btown on Wednesday June 29, 2022 @03:34PM (#31924731)
Combined with a system like [0] on a head-mounted device with earbuds, it could make many card games accessible to blind and partially sighted people! No idea if this prototype was ever put into production though.

[0] https://www.youtube.com/watch?v=C0biAdmuons

Re:The Nettle Magic Project: Scanner for decks of cards with... by rocha on Wednesday June 29, 2022 @01:59PM (#31923600)
Another option is an image recognition system trained on already existing cards. No need for special ink or qr code, just a camera as the reader.
Re:The Nettle Magic Project: Scanner for decks of cards with... by ISL on Wednesday June 29, 2022 @02:10PM (#31923722)
Just OCR against the card-corners may be sufficient.

I guess you also need suits, but that's only four special characters (all of which may be in more-modern OCR-libraries).

Re:The Nettle Magic Project: Scanner for decks of cards with... by gostsamo on Wednesday June 29, 2022 @02:31PM (#31923973)
As I said in another comment, normal cards are easy. The issue is with everything else where each card might have a picture with different animals and you are looking for the lama giving you the bird.
Re:The Nettle Magic Project: Scanner for decks of cards with... by rocha on Wednesday June 29, 2022 @08:06PM (#31927270)
I think it is very doable for card games with thousands of different cards like MTG. I remember there was an old school SIFT/SURF image retrieval system that was able to deal with tens of thousands of album covers super fast. That was more than 10 years ago IIRC.
Re:The Nettle Magic Project: Scanner for decks of cards with... by gostsamo on Wednesday June 29, 2022 @10:47PM (#31928265)
If the manufacturer is willing to provide the entire db of cards or a well-trained model that could be embedded or a ready mobile app, that would be great. However, waiting on them is not a winning strategy. The other option is community contributions, but you need a large community. This will be welcomed as well, but again not something that should be relied on. Both developments would be wonderful to happen, however in the meantime I'm looking for something cheap, fast, and easy to implement that I can do on my own in the local scope of my deck.
Re:The Nettle Magic Project: Scanner for decks of cards with... by rocha on Thursday June 30, 2022 @04:40AM (#31930061)
For some of the card games I am familiar with (Netrunner, MTG) there are resources online (wikis, dbs, deck builders) that have all the graphic assets. Alternatively, you can scan or photograph each card in your deck, but that may be time consuming.

As for software, there are engines out there that do content-based image retrieval (CBIR) out of the box [1]. It should be possible to build something quickly in OpenCV. You may be able to get away using simple image template matching by putting a few constraints on how the camera sees each card. Something more robust can be also be build using image descriptors and approximate nearest neighbors, as in [2].

[1] https://en.wikipedia.org/wiki/List_of_CBIR_engines

[2] https://blog.francium.tech/feature-detection-and-matching-wi...

Re:The Nettle Magic Project: Scanner for decks of cards with... by stevage on Wednesday June 29, 2022 @07:12PM (#31926885)
There is already tech like this for TV poker games. RFID chips in the cards I think, and sensors in the table. There was a huge scandal a couple of years back about a player who had access to the info while playing. Google Mike Postle...
Re:The Nettle Magic Project: Scanner for decks of cards with... by rafftre on Thursday June 30, 2022 @07:52AM (#31931244)
This is how a poker TV table actually work now. Each card has an HF RFID tag, each position has one antenna where players must put card when not seeing them. In addition there is another antenna in the middle of the table to read the common cards. In the past mini cameras were used for each position in combination with OCR to decode the cards. This sort of tables require collaboration from the players and from the dealer to obtain something useful to show on TV. They are instructed before the game.