AntiMap Video is a desktop application built in Openframeworks. It synchronises recorded data from the AntiMap Log mobile application with raw video footage (mov, avi, mp4, m4v). It was originally created as a snowboarding/skiing application to visualise real time rider data and stats similar to a video game.
You will need 2 things (chances are you take one or both of these to the mountain) to use the AntiMap Video desktop application:
- A smart phone (Android/iPhone) with the AntiMap Log application installed.
- A camera: could be your friends mobile phone, a digital camera or whatever you can get your hands on. I used a Go Pro and filmed myself (poorly), if you can get a friend to do the filming- even better.
Once you’ve got the mobile application installed and your camera ready to go, next step is to set them both to record and hit that perfect run. Be sure to check the ‘How To Use?’ section on the AntiMap Log page, for a guide on getting the most accurate results.
When your at home, plug in your camera and copy the raw video file somewhere on your computer. Do the same for the data file from your mobile: for Android users, mount your phone as a hard drive and navigate to the “sdcard/AntiMap” folder, for iPhone users, this file can be retrieved from your device in “iTunes/Apps/AntiMap Log Documents” (just under the ‘File Sharing’ heading). Copy across the CSV data file to the same folder as the video and run the AntiMap Video desktop application. Then simply drag and drop the video and data files onto the application, and the video should start playing with your rider data overlaid.
Adjust the timelines for the data and video so they are in sync- this is the most finicky part. Chances are you may have ‘recorded’ your data just before or just after you started recording video. The individual timelines (DATA playhead & VIDEO playhead) try to make this process a little easier, once they’re synced you can use the MAIN playhead to scrub through your video & data together.
The standout feature of the AntiMap Video application is spin detection, which uses the compass data to accumulate a rotation value and attempt to determine when a 360, 540, 720, 900, 1080 has occurred and which direction (frontside/backside). The rider’s path and current position is generated from the recorded latitude and longitude into the small map in the top right. Speed, distance, and time stats also update on screen.
- Real time snowboard/ski games. Original inspiration for this project came from playing Shaun White snowboarding on Nintendo Wii.
- Making personal snow/ski movies.
- Training/tutoring tool.
- Competitions. I’d love to see technology like this used in an accompanying role at televised events such as the Winter X Games. Giving spectators a bit more insight through data and stats would be invaluable.
- Whilst I specifically built this application for snow/ski, it could just as easily be adapted to suit other sports such as mountain biking, skateboarding, parkour, gymnastics, even running or walking.
Version & download links: AntiMap Video 0.1
AntiMap Video (version 0.1) is still an early prototype with plenty of kinks to work out before a 1.0 can be released. You can download the current working prototype application (OSX only) below. Source code, and a windows version is not yet available but is definitely on the TODO list.
Also on the TODO list for future versions:
- PC/Windows version.
- Add option to interface for riding switch.
- Use axis-y and axis-z data to detect corks/flips.
- Improve syncing between video & data timelines.
Export video functionality.
- Point scoring system for game mechanic.
- Spin landing accuracy. A measurable result for landings after a spin. For example, a good 360 spin would accumulate close to exactly 360 degrees with a smooth ride out. Over rotation, under rotation, and too much correction/instability after a spin would equate to an average/poor spin.
- Up-dateable list for grabs?
Of course comments, suggestions, & improvements are encouraged.
Zip package below includes application and sample files to try (video & data). Note, I purposely set the included video sample to be 1.5 seconds ahead of the data. Once you drag and drop both files onto the application you can adjust the individual timelines or the ‘Video/Data time offset’ to equal -1.5 seconds. Then everything will be in sync. Press space to toggle menu on/off.
AntiMap Video 0.2 now includes hi quality HD video exporting from the application. There is an issue when trying to use a h264 encoded mp4 video file and exporting, if this happens just convert your video to .mov or .avi before importing into the application.