DIY Augmented Reality Flash Cards Explaining Chakra Natures in Naruto
by engineerkid1 in Workshop > Science
19 Views, 0 Favorites, 0 Comments
DIY Augmented Reality Flash Cards Explaining Chakra Natures in Naruto

In Naruto, shinobi combine elemental chakra natures (Fire, Wind, Lightning, Earth, Water) to create advanced releases (Ice, Lava, Storm, etc.). This project brings that to life with augmented reality: point your camera at printed ArUco markers, and the corresponding chakra image appears. Move two markers close together and—boom—your screen shows the fused release.
What you’ll build
- Live camera feed (or a demo video) where each base chakra is overlaid on its marker.
- When two base markers get close, the overlay switches to the correct combined release (e.g., Water + Wind → Ice).
Difficulty: Beginner–Intermediate
Build time: ~60–90 minutes (including printing markers)
Platforms: Windows/macOS/Linux (Python)
Supplies


Bill of Materials (Hardware & Assets):
A computer with a webcam (or a video file for testing)
Printer + paper (for printing the markers)
Scissors/tape/glue (to mount markers on cards)
Image assets (PNG/JPG) for:
- Base elements: fire.jpg, wind.jpg, light.jpg (Lightning), earth.jpg, water.jpg
- Combined elements: ice.jpg, wood.jpg, lava.jpg, storm.jpg, boil.jpg, explo.jpg, scorch.jpg, magnet.jpg
Software Prerequisites:
Install Python 3.9+ and the following packages:
That's all you will need to build this project.
How It Works?


OpenCV’s ArUco detects square fiducial markers and returns their corner points and IDs.
For each detected marker ID, we compute its center and overlay the corresponding chakra image using a homography (perspective warp) so it “sticks” to the marker.
If two markers come within a distance threshold, we switch to a fusion overlay.
Print Your Markers

We’ll use the DICT_ARUCO_ORIGINAL dictionary and the following IDs:
Base chakra → Marker ID
- Fire → 0
- Wind → 1
- Lightning → 2 (light.jpg)
- Earth → 3
- Water → 4
Generate and save marker PNGs (run once):
Print each marker_<ID>.png at ~5–7 cm square and mount on stiff cards.
Or you can use an online aruco marker generator. Save the files and print them and you are good to go.
https://chev.me/arucogen/
Prepare the Project Folder















Create a folder like this:
File names must match exactly. If not make sure the name and path is modified in the code.
Use the Base Code

Copy and paste the code given below in your code editor.
Run It

From the project folder:
Press 'q' to quit.
Try one marker at a time (you should see Fire/Wind/etc.).
Then bring two different base markers close together (within ~250 px in the camera view) to see the fusion overlay.
Element Mapping (Canon-Friendly)
Base (ID → overlay)
- 0: Fire → fire.jpg
- 1: Wind → wind.jpg
- 2: Lightning → light.jpg
- 3: Earth → earth.jpg
- 4: Water → water.jpg
Fusions (pair → overlay)
- Water + Wind → ice.jpg (Ice Release)
- Earth + Water → wood.jpg (Wood Release)
- Fire + Earth → lava.jpg (Lava Release)
- Lightning + Water → storm.jpg (Storm Release)
- Water + Fire → boil.jpg (Boil Release)
- Earth + Lightning → explo.jpg (Explosion Release)
- Fire + Wind → scorch.jpg (Scorch Release)
- Wind + Earth → magnet.jpg (Magnet Release)
Troubleshooting
- Only one element shows even with two markers present
- Ensure both markers are within the frame and not occluded.
- Try reducing the threshold from 250 to ~180–220.
- Wrong fusion shows up
- Check you’re holding the intended pair (IDs above).
- Confirm the corrected Magnet logic is in place.
- No markers detected
- Print quality/contrast matters; make sure the black squares are truly dark and borders are crisp.
- Increase room lighting; avoid motion blur.
- Overlay misaligned
- Adjust Offset or ensure markers are flat and not warped.
Where Else Can This Technique Be Used?

The Naruto chakra fusion here is just one fun example of a much bigger Augmented Reality + ArUco marker concept.
Since the code simply detects marker IDs and changes what’s displayed based on combinations, you can swap out the “chakra” theme for any subject or visual data.
Here are some real-world applications:
- Teaching Chemistry
- Replace “Fire” and “Water” with chemical symbols (H₂, O₂, Na, Cl, etc.).
- When two markers come close, show the resulting compound (H₂ + O → H₂O molecule model).
- Great for high school science to make learning interactive.
- Language Learning
- One marker shows a word and another shows an image.
- When combined, the screen displays the full sentence or translation.
- Math Concepts
- Show numbers on markers — when two are brought together, overlay their sum, product, or equation.
- Useful for young learners to visualize arithmetic.
- Museum Exhibits & Interactive Art
- Visitors can place historical artifact markers together to trigger animations, timelines, or hidden stories.
- Board Games & Card Games
- Imagine a collectible card game where AR animations appear when you bring two cards together.
- Training Simulations
- Engineering or medical training can use markers to combine tools, parts, or procedures visually.
Why it works:
- The pair detection logic can be mapped to any domain where combining two known entities yields a meaningful result.
- The overlay can be images, videos, 3D models, or even data visualizations.
With a little creativity, this project can turn into a teaching aid, interactive museum piece, or a full-fledged AR game.
Thankyou for supporting my work. Hope this helped you.