How to get Mario Kart Wii scoreboard points after race into database - mysql

I don't think this is even possible, but maybe I'm missing something. A group of us play Mario Kart Wii in the office. We don't play online, just a couple races. We often have tournaments where we play multiple sets of races over a couple of weeks and then combine the scores at the end. Instead of writing the final points down after each set of races I'd like to "extract" the points for each player from the scoreboard screen and into a database (probably MySQL). My question, is there a way to get the points from the Mario Kart Wii scoreboard screen? If so, I'm sure once I get the data I can find a way to place it into a database. I'd prefer not to totally hack the Wii, but I'm interested to hear if this is possible. Let me know if you need me to further clarify.
Thanks.

If the Wii's video output was to a computer, you could use OCR (Optical Character Recognition) to automatically read the scores and put it into a database that way.

Here's a wild suggestion. Take a picture on the Wii tv screen with a cell phone. send the image to a computer and use OCR to extract numbers. This may be more trouble then simply copying down the numbers and entering them into a spreadsheet /database yourself.
Just entering them into a spreadsheet or database may be your best bet here.
Maybe loser has to enter the figures ?

OCR is out of the question. That is way too complicated for this. I'm thinking I might just make an iPad app to handle the scores.

Related

How to create a people tracking with reidentification model?

I am currently working on a project where I want to build a model which can detect and track people with a unique ID. The main issue is when a person leaves the frame and comes back after some time. Currently, I am working with yolov4 and Deepsort to detect and track. But it is failing in this situation.
Please suggest some approach where we can do detection, reidentification and tracking of people or cars or any other object.
Thank you :)
Although YOLOv4 can detect people in an image/video stream, I think it might be too general in your case. When a person leaves the frame and comes back, ideally the model should remember seeing that person before.
One way to tackle this is to train on images of the people you want to detect.
E.g. in a system like yours, you could take multiple images of the people you want to track from different angles and label them using their unique identifiers. Afterwards you could train the model using this data (for your downstream task). This will ideally give more specific results for detecting and tracking people with their unique identifiers as opposed to the general people detection when using YOLOv4 as is..
That said, I understand that taking lots of images of people may not be practical in certain scenarios. In that case you may want to look at techniques that produce accurate results with minimal data such as domain adaptation (https://arxiv.org/abs/1812.11806). However in an application for tracking and detecting people, I'm assuming you want minimal misclassifications.. Hence you could say it's always a tradeoff.
You can find out more about dealing with lack of data in this article: (https://www.kdnuggets.com/2019/06/5-ways-lack-data-machine-learning.html)
However I think this is a better place to start for a re-identification model: (https://github.com/KaiyangZhou/deep-person-reid)
It has ample documentation to get you started..

Automatically Generated rhythm game Flash Action Script 3

Is it possible to create an automatically generated Rhythm game for Flash Action Script 3 ?
But not just randomly generated, generated from the notes of a song. Or is that something I have to do manually?
How would I go about doing either of these?
I am currently following this tutorial: http://www.flashgametuts.com/tutorials/as3/how-to-make-a-rhythm-game-in-as3-part-4/ so perhaps it can be made to fit around this? (Go to the final part and View Source to see the full thing)
Thanks!
Depending on what you mean by rhythm game, check out the computeSpectrum() function of the SoundMixer class: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/SoundMixer.html#computeSpectrum()
There's an example of it working in the link, but basically what it does is take a snapshot of the current sound wave and puts normalised (-1 to 1) values in a ByteArray. What you do with those values is up to you - e.g. you might use them as a height field to generate terrain for example.
Repeat this every frame, and you get the gist
Welcome to SO!
First off, there is nothing already built in, to my knowledge. There may be something lurking around Google that someone else wrote, but you'd need to dig around for that (though I assume you already did.)
Generated from the notes of a song. Hmm, this will take some serious ingenuity and coding on your part. I'll point you in the right direction, but it is up to you to write the code. No one here will do it for you, but we'll happily help with specific problems in your code.
The crazy (yet potentially more fun) approach MAY BE to derive the data in a similar manner that an audio visualizer does...but I can't guarantee that will work. This would work best with MIDI-generated, single instrument songs. Here is a tutorial on visualizers.
A second approach may be to actually convert MIDI files directly. Again, I can't guarantee it will work, but it would theoretically be possible, seeing how MIDI files store data to begin with. Here's an answer on playing MIDI files, to get you started. Consider looking through their class.
However, the "easiest" approach would be to come up with some sort of system by which you store the note values for a song. You can manually enter the values in an array, or in a data file (such as XML) that you can load.
I put "easiest" in quotes because you'd have to account for a LOT of information - not just note values, but note duration, rhythm, and rests.
Anyway, those are just a few ideas to get you started. Good luck!

Recognize sound in Action Script 3

I want to create a small application that will be able to recognize sound. That is, it will match input sound with sound pattern that user has already recorded. Then, it will output the result (matched or not), Alert.show() for example.
Can anyone help me ? Thank you in advance...
Actually, a french guy named Didier Brun worked on this, and have quite good managed to do a voice recognition engine purely in Flash. Its not exactly a sound recognition engine, but I suppose it could do the trick, with a little more work.
You can find it here.
He demoed it on-stage at the 2010 Amsterdam FITC and it work surprisingly well.

as3 listening to volume (db) at specific hz

I have looked everywhere, but I can't figure out how to do this.
I want to use a simple drum track, and everytime the kick drum goes off, something in my game should rotate.
Figured I could use the volume of that track at around 50hz or so to drive the angle of my object.
And thats where I got stuck, how do I read the volume at 50hz??
I really hope someone could help me with this!
Thanks!
Dennis
If this is still a relevant question, I would advise looking at Bit101's blog, where he posted a series of tutorials about producing sound. The second one is where he talks about producing specific sounds. (There is a "magic" formula that he uses at one point, described on this wikipedia page.) You can probably use this to backward compile the frequency from a given sound.

How to detect certain face on the photo

I was just having a nap and then that crazy idea came into my head. Here it is.
We have 2 different photos with face in each. How can we detect if there is the same person on that two photos?
Is it possible to do that? If yes, can I do it with Java or PHP? What the way to do it? Any ideas? Maybe each face has a "algorithm" or something which could help us?
Thank you very much.
It's not an trivial solution (and cannot be covered in an SO answer); you can start by reading papers on facial recognition. If this is something you really want to do, be prepared to read a lot of background information first before you actually start writing code. This subject matter is the basis for a lot of people's doctoral and masters theses. In this case, language is not as important as the algorithm. Also be prepared for lots of math. At the very least, you'll learn something cool. :)
I was freelancing a very similar task. Its not fun. almost impossible to build face recognition - face detection is easy, recognition is the tough part... the algorithm is generally a guarded secret as I've seen.
But I did find this: http://face.com/
Face recognition API. Feed it data, it feeds you names and details you've previously fed it. You have the ability to check to see if a face exists.
If you make a lot of requests or start working at an enterprise level - they charge.
The language doesn't really matter as long as it has the tools to do number crunching on the image data. Facial recognition is too big of topic for a forum post like this. I would just google "facial recognition algorithms".
I agree with the others that this is not trivial.
detect a face in both photos
normalize the facial data
compare the data to see if they match