The Nettle Magic Project: Scanner for decks of cards with bar codes on edges
github.com
github.com
For any magical effect there are almost always many possible methods and, conversely, for each method there are multiple possible effects. This method provides a way to know the location (or absence) of each card in a shuffled deck without the performer handling the deck. For most of the effects which could be accomplished with this method there exist a wide variety of alternate, much simpler, methods. Using any of those easier and cheaper methods would likely appear identically amazing to audiences. And that's why I love this method. As a technologist and magician, I've always had a special fondness for wildly complex methods - that rare kind of magic where the method actually IS as amazing as the effect.
You're probably right about it being the majority, but I'd say a lot of good slight of hand also falls into the category of the method being amazing.
Penn and Teller are also famous for doing tricks with the secret in full view, and they're often more impressive than the trick done normally.
A lot of P&T tricks are boring once the secret is revealed. They don't reveal those tricks.
This is the mindset I don't understand. Unless the secret is something the spectator might reasonably consider "cheating" (like, if it turns out that a video production that's ostensibly of a live performance actually used post-production visual effects), I don't see in what sense knowing the secret ruins the trick. Perhaps for some people it might, but as long as the "secret revelation" content is separate from the "trick performance" content, I trust people to identify for themselves which content they want to watch.
Of course there's amazing sleight of hand -- you are correct. But a lot of magic is creativity & performance, not necessarily skill. The lines are blurred and that's the fun.
I think we're using different terminology here. I think there's a pretty big distinction between, for instance, the widely known variants of the sawing a woman in half trick where there are two people in the two halves of the box, and watching a video broadcast of a magic show where it turns out they just used visual effects to accomplish the effect. Perhaps the lines are blurry and different spectators might disagree in some cases, but I think there's a set of explanations that would be considered "cheating" in the negative sense.
If I can't trust that to be the case, I'd only be interested in a trick if I can be the one on stage touching the object. No more global audience for you, cheating magician.
But Fool Us does edit out "tells" that you could see by freeze-framing the recording but wouldn't notice in real life.
But I think the role of good magic is somewhat to test the boundaries of negative cheating in almost anyone.
For example, you've made it fairly clear you'd think of any visual effects to be negative cheating. But what if I actually do use visual effects, but successfully double down and convince you that it _isn't_, even though you'd normally be technically aware to spot such a thing. Would you enjoy being misdirected like that?
We're far from the original point, but what I think I'm saying is there's a selection/survivorship bias here; a smaller number of great tricks with fascinating explanations and, often, decoy explanations. And the rest is just cheating ;-)
I'm confident that we're disagreeing. Sure, you expect to be deceived at a magic show. But that's a necessary part of magic, not a sufficient one. If you attend a magic show and it's just someone playing acoustic guitar for 2 hours, you'll feel cheated. That's different than thinking the magician's hands were empty when in fact he was palming a card. There are clearly two very distinct senses we're using for the same term "cheated." You can't just sell someone a fake ticket to a magic show then say "tada!"
> For example, you've made it fairly clear you'd think of any visual effects to be negative cheating.
If I'm watching a video production that is ostensibly a live recording of a magic performance, then of course I think post-production visual effects are just straight up cheating, in the same way that I would feel cheated if it just ended up being a video of someone playing acoustic guitar.
> But what if I actually do use visual effects, but successfully double down and convince you that it _isn't_, even though you'd normally be technically aware to spot such a thing. Would you enjoy being misdirected like that?
If I literally can't tell the difference and thus I'm completely deceived, then obviously I can't be upset. But if I later found out, then of course I would be upset. Again, being "misdirected" is necessary but not sufficient.
And at the end of the day, I still enjoy learning how a magic trick is done more than I enjoy just watching magic tricks.
It depends. I've seen more than one person learning the French Drop fool their own eyes despite performing the trick themselves, feeling the object in their hand, and knowing exactly how it works.
Our brains are interesting, and the degree of surprise we can get from cognitive dissonance or mismatched perceptions is hilarious.
IMO, most of the secrets are boring. But the overall performance that makes it work is fun.
That's true but when slight of hand is amazing it's usually amazing in a different way than the OP's method. At the highest conceptual level, the "secret method" of most sleight of hand can be boiled down to "You hid something in your hand." At least to other magicians, uniquely good sleight of hand is amazing due to the insane level of skill and years of rigorous practice required to "hide something in your hand" in a way that appears impossible.
While developing the OP's method did require amazing effort and serious engineering skill, someone else could then perform with that method without the same unique level of technical skill.
I'm not sure if I agree with that. There are certainly some clever and skillful methods for how an item is literally stored and retrieved, but what's more interesting and impressive to me is the overall choreography. The way all the moves are sequenced and how one move provides misdirection for another move is where the magic happens.
Yes, I agree. You've described appreciating a magical performance like a magician would appreciate the work of another magician. The general public usually focuses on what they perceive as the "trick" part of creating the illusion (such as an object hidden in the hand they are unaware of). Advanced magical skill involves understanding and then perfecting the often subtle surrounding elements that make the effect so deceptive.
In the past I've taught sleight of hand magic to relatively novice students and in the beginning they are always puzzled that even when they've learned "the move", a spectator will often just say "it's in your other hand." Yet when I perform the exact same move to similar spectators it never even occurs to anyone that something might be in the other hand. The difference is a dozen subtle things from where my eyes are looking, to the position of my body, to the pacing of my speech. I had to learn these techniques from my mentors and then rigorously practice them until perfected. In a lot of sleight of hand magic, any "move" by itself is not all that deceptive. The context and choreography around the move are what elevate the performance to what seems like real magic.
I don't know much about magic, but I've always felt that the method is almost always more amazing than the effect. I am vastly more interested in the methods, skills, and preparation that goes into a trick than I am in just watching a final performance.
If not, recognize that people with other hobbies would rather appreciate a performance and then study what interests them with the remaining time.
Like people who seem to swallow things and then reproduce them later. The easiest method to do that is to swallow the thing and then regurgitate it. And you can train yourself to do this. But it takes time and effort. And is a little gross and if you're working with live animals, you are also on a time limit.
I've also performed this trick by combining two decks with different patterns on the back, allowing you to 'divine' their cards without ever asking a question.
See here for details: https://golem.ph.utexas.edu/category/2015/01/mathematics_and...
In my own art, I focused on vintage effects that were complex. I recreated dozens of effects from Dunninger's book, and relied on technological principles from that era - lots of clockwork and curious mechanisms. I could have produced the same effect in much easier ways, but what would be the fun in that?
Many methods require inconceivable practice to master. One example is an obscure method of the "front to back palm" with a coin, which thereafter goes back to front - the most complex sleight of hand I worked on, which produces a completely mundane effect (showing the hands empty). In my experience, if you see someone doing sleight of hand - making cards, balls, coins, cigarettes appear and disappear - watching how they do it is much more interesting than watching the effect!
I once heard this described as when you hear the method of a trick, a great trick is one where you go "Ah!" with amazement instead of "Oh", disappointed.
Effect: https://www.youtube.com/watch?v=SCFXV6o7cro
I won't reveal the method but here it is in Penn's words (from 1:20): https://www.youtube.com/watch?v=MuKail7Jwwg
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.
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.
I guess you also need suits, but that's only four special characters (all of which may be in more-modern OCR-libraries).
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...
Very neat. In the video, the illicit cheating device was hidden in a phone. It is theorized that these magic trick could be used in private poker houses to cheat players.
While reading through this repo I was reminded of a project I'd heard Randy Pitchford, the CEO of Gearbox Software (creators of the Borderlands franchise) talk about wanting to make after one of the magic shows he hosted at his house in Frisco, Texas.
Randy is a huge fan of magic. He's the great nephew of Cardini and notably recently purchased the Magic Castle[1].
Lo and behold, the primary contributor to this project—Paul Nettle—is an employee at Gearbox Software[2]. What a small world! I'm so happy they've made this open source.
1. https://www.lamag.com/culturefiles/the-former-magician-who-n...
There is one deceivingly simple trick that is essentially just that.
Setup: shuffle an imaginary deck, fan the imaginary deck, tell someone to pick an imaginary card and remember it, shuffle it back into the imaginary deck and put the deck in your pocket.
Remove a deck from your pocket, ask what the card was, fan the deck out, and - it's the only upside down card in the deck!?
[1] https://www.amazon.com/U-S-PLAYING-CARD-COMPANY-SG_B002MI1B3...
A box of invisible cards.
The secret? Amazing dumb luck.
Of course, this could be a long-game illusion like the old Chinese magician or the twins in The Prestige.
[0]: https://borderlands.fandom.com/wiki/Pain_and_Terror?file=Pai...
So this is a cool example of the second type. All three types require some showmanship, and good patter. Some of the best tricks combine the types.
Mechanical involves some training and skill to exercise well.
But above all I put the sleight of hand as the hardest to execute but the best when done well, especially added as flourish on top of the others.
https://www.markedcardsshop.com/collections/poker-analyzer
There is a corresponding custom phone that has a hidden camera on the side (facing the deck) that then communicates with some haptic feedback that the cheater is wearing.
https://elie.net/blog/security/fuller-house-exposing-high-en...
Still, compared to other possibilities, you take what you can get.
The bar-code and shipping container are probably some of the greatest inventions of the 20th century, and unlike a shipping container it's completely appropriate and accessible to individuals for messing around with projects.
(no, your shipping container home is not actually a good idea)
IIRC, that's a matter of personal tolerance because the degree of error correction can be arbitrarily adjusted.
People underestimate how much can be done with spectrographic watermarks like that, they're resistant to scaling (because harmonics), rotation and flipping (because it's not about any one position... it's about the beat frequencies between them), translation (of course), etc. That's iirc how the Eurion Constellation works - the patterns form a spectrographic fingerprint, but in 2D instead of just a 1D beat frequency. But it pops right out of a fft so you can put it into random copiers and printers.
I went to look up a source to describe the Eurion Constellation scheme (I'm not sure if an academic description exists given the commercial and sensitive nature?) and they brought up the practice of microprinting (of the super fine lines) and that probably is detectable with FFT and edge detection.
https://murdoch.is/projects/currency/
I wonder if phase (of micro-printed regions) would also work similarly to how frequency fingerprinting does?
Now you only have to come up with some impressive card trick that seems impossible to pull off with conventional methods.
Of course you could also come up with a better method to communicate the information than an ipad screen. Maybe a tactile signal.
Have an audience member shuffle the deck to their hearts content, then place it on a table. Tell them what the top card is, then ask them to flip it to verify. Then proceed to do the same to _the entire deck_
I wouldn't necessarily expect the monitor to be visual as card tricks usually just need knowledge of a couple of cards. This could be communicated through sound (e.g. discrete earpiece or bone conduction headphones) or even haptics (e.g. Morse code vibrations from a phone in a pocket).
As for the scanner, it'll depend on the trick, the goal is just to hide a camera. It could be concealed in a prop or an item of clothing. The scanning could even be incorporated into the trick, for example by sealing the cards immediately in a "safe".
Related, is there a way for casino operators to assure their guests that the cards are not marked? I am thinking something similar in spirit to the transparent dice that show they are not loaded, but cards would require something different.
EDIT: Actually, found it in the full "manual"! https://nettlep.github.io/magic/ -- it's not a printer but rather a stamp... :-)
I have taught a lot of people to do a simple French drop as an intro to magic. People are often a little disappointed at the realization that making a coin "disappear" is really just hiding it in your other hand.
A magician does a trick, then they come up and whisper to him what they think he or she did. You don't get to listen in on that.
If they can't figure out the trick, then the magician gets to be the opening act for them at some show. Occasionally someone does fool them. Not often, though.
This is one example:
Las Vegas: Why do you think they call it "Lost Wages"?
I’ve watched many of the acts on YouTube and you can slow them down to see when it occured.
There’s one with a ring where he appears to move the ring from finger to finger. Then at the very end he appears to pull the ring off his finger. When you slow it down you can see his finger bend down at a very unnatural position that is borderline dislocated. But he then hands the ring over. Now we know he’s using a retractable ring. But he swapped it prior to the end of the act so it appears that he used a solid ring the whole time. P&T don’t know when he swapped it. Slowing it down you can see when he pockets it tho.
https://nettlep.github.io/magic/#marking/irabsorbinginks/use...
Rules don't start with "please":
> Please don't comment on whether someone read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."
Many tricks are more than slight-of-hand, they often are "technical" and involve special decks that are modified in certain ways; you can even buy equipment to reseal decks and rewrap them in plastic so they appear brand-new.
And about those tricks, I recently played the demo of a game called "Card Shark" and it does a really nice job of incorporating the more cheating-style tricks into a compelling narrative.
-Alfred Borden, The Prestige
But pretty much all magic tricks are like this. From the very simple to the extremely complex. The mechanics of a trick are only a small part of it. The story, presentation, emotional content and humour of a performance are even more important.
It's the difference between ballet and a high-jump. Both are physically impressive feats, but one is so much more than that.
Learning about other mechanics is fascinating, learning about this one would disappointing.
https://www.spiceworks.com/it-security/cyber-risk-management...