22 comments

[ 3.0 ms ] story [ 59.7 ms ] thread
Hi, there. On last weekend we entered a Hackathon, and come up with this new technology.

Using gyroscope data, we can pretty much use the mobile phones as a laser pointer and draw. We created a React-Native(Expo) app in which you try to imitate spell drawings by moving/rotating your phone.

The project is open-source, we haven't put it on app/play stores but you can build and install on your phones to try it out following the readme.

You can check out more details and how it works in the project readme.

Also, there's a voting period of the Hackathon until wednesday. If you like the project, please vote us on https://ucbuyucuturnuvasi.com/grimmauld-meydani

You can also, check out other awesome projects there.

I love this. I originally got into programming because I figured it was the closest thing to the magic I loved in Harry Potter: a mixture of academia, history, and pragmatism. Seeing a project like this just embodies a lot of the sense of wonder I had about getting computers to do cool new things for me.

Thanks for making something purely for fun and sharing it with us!

Awesome.

I wonder if it could also detect and judge pronounciation of a spell - always remember: "It's leviOsa, not levioSA!"

Due to Hackathon rules, we cannot update the repo until December 16th. After December 16, we will publish on expo and make new feature announcements.
No sorcery during summer breaks then, huh :)
This is full of copyright infringement. If you don't want your app to be DMCA'd I'd suggest you remove all references to Harry Potter.
Does it matter if they aren't selling anything?
Nintendo sends cease and desists to a lot of free (as in beer or speech) projects. Some companies bully hard, I think Warner Bros is likely heavy-handed on Harry Potter.
Depends if it falls under fair use or not.
Have similar things been DMCA'd before? It's very possible this just gets overlooked.
Thanks, for the warning. I will look into more details regarding that.

What I initially thought was whether this can be considered fan art, and since it’s free (and open-source) I think it might be okay.

But, I’ll check in detail and maybe replace all titles before publishing it to the stores.

Nice. We did the same for a uni project back in the day, but with a dedicated imu and an arduino uno.
Years ago I had an idea. A game of magic battles. The witches and wizards would search the vicinity (very much like Pokemon go) to find other witches and wizards, challenge them to a duel and fight it out with their wands (or smartphones). The spells would be triggered by using movements i.e. gyroscopes and trickier spells would require lots of wand waving and verbal cues. I suppose when AR/VR glasses becomes the norm, we could also integrate the magical beams and cooler effects! Anyways, it brings me so much joy to see a portion of it materialize. I'll just patiently wait until someone comes up with the entire game
I do think that you should play it safe on this one as they might DMCA the project.
Image similarity is a terrible way to do this; you lose all temporal data, which would make different speeds of motion impossible to discern. You're much better off feeding your XYZ + timeseries data into a hidden markov model, then classifying gestures with SVM prediction. There's a really great C++ gesture recognition library that I've used to do just that for a VR game that featured custom spellcasting gestures [0]

[0] https://github.com/nickgillian/grt

Hi, I totally agree, but I had like 1-2 hours left to implement the similarity check part, so I took a simple image similarity approach. (Also, I only have images for target spells for now, need to create target data with temporal data as well)

Your idea for gesture recognition is interesting, I will look into that in more detail.

PS: I already convert 3D to 2D with filtering so I can apply comparison of 2 2D+time data:

What, I originally had in my mind was to modify and use a similarity metric such as EMD (Earth Mover’s Distance) which I believe would be a great fit for our case.