background preloader

Augmented reality

Facebook Twitter

Flash

Android. Processing meets Box2D and blob detection | der hess. Home > english, My Experiments > Processing meets Box2D and blob detection For the Programming II Workshop at our Interface Culture department I decided to do an small experiment with Box 2D. For a long time I wanted to play around with Box 2D. Especially merging real world objects with virtual object fascinates me very much.

I don't like so much the common Augmented Reality stuff. However, some stuff is really cool and inspires me. Here are some projects I got my inspiration from: EdgeBomber, Laser Sound test, Phun, Crayon Physics, 2d Sketches becomes 3d Reality, ILoveSketch, MotionBeam, Tangible Fire Controlls. Now talking about the technical stuff. Another issue I have, is the correct recognition of the shapes.

So far about my experiment. Knowledge sharing, ahoi!!

Export

BlobScanner. GDC: Project: Augmented Reality - ARToolkit Patternmaker. Copyright (c) 2002 The University of Utah All Rights Reserved. This is an experimental, research release of a component of the Alpha_1 Geometric Modelling System, and as such is subject to a license agreement with Engineering Geometry Systems, Inc. and may only be used under the terms of that agreement. Any other use is prohibited. Having received prior authorization from EGS, the University of Utah grants permission to use, copy, or modify this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement. It is explicitly prohibited to redistribute this software or any derivative. The above permission is granted provided that this whole notice appears in all copies. Click on I agree to download a unix gzip'ed tar file. I agree Use the release by typing in your shell: > gzip -d patternMaker.tar.gz > tar xvf patternMaker.tar Look in the docs directory for more information.

Last update: September 3, 2002. Examples - Blobscanner. Import Blobscanner.*; Detector bd; PImage img = loadImage("blobs.jpg"); size(img.width, img.height); img.filter(THRESHOLD); bd = new Detector( this, 0, 0, img.width, img.height, 255 ); image(img, 0, 0); color boundingBoxCol = color(255, 0, 0);int boundingBoxThickness = 1; img.loadPixels(); bd.findBlobs(img.pixels, img.width, img.height);bd.loadBlobsFeatures(); bd.drawBox(boundingBoxCol, boundingBoxThickness); import Blobscanner color contoursBoxCol = color(255, 0, 0);int contoursThickness = 2; bd.findBlobs(img.pixels, img.width, img.height);// to call always before to use a method returning or processing a blob feature bd.loadBlobsFeatures();bd.drawContours(contoursCol, contoursThickness); PImage img;PFont f = createFont("", 10); void setup(){size(320, 240);img = loadImage("blobs.jpg");img.filter(THRESHOLD);textFont(f, 10); bd = new Detector( this, 0, 0, img.width, img.height, 255 ); } void draw(){image(img, 0, 0); bd.imageFindBlobs(img); //Computes the blob center of mass.

Stroke(255, 100, 0); OpenCV Tutorial 11: Object Detection and Tracking via SURF (Speeded Up Robust Features) in Emgu CV. Multiple augmented reality marker tracking with processing and nyartoolkit (1/2) Augmented Reality Library for Processing. Homemade iPad augmented reality cars | Johan von Konow. Description How to build AppMATes compatible cars from PEZ dispensers Materials PEZ dispenser (cars2 edition)Knife, sandpaperQuick glueDouble sided adhesiveConductive foamConductive filmConductive glue Development Like many other kids, my son enjoys the Cars movies.

I cut three small pieces of conductive foam (the kind of black foam that is protecting integrated circuits from ESD) into 5-6mm diameter. The foam was placed on the iPad screen. To create something that my son could hold I bought Cars2 PEZ dispensers. The car was removed and the base cut off. I made the bottom flat using sandpaper. The hole was covered by a piece of plastic glued into place (also from the PEZ base) Then I used an ESD bag (the metal looking semi transparent plastic, used for storing ESD sensitive components). I glued the three pieces of conductive foam on the ESD film with quick glue and made sure that the spacing between them was the same as when I tested the foam on the iPad. Disclaimer Licensing Related posts: How-To: Augmented Reality with Processing. Augmented Reality with #Processing - Tutorial by Amnon Owed. All of the visuals in the above video were created using NyArtoolkit for Processing. NyARToolkit is an augmented reality toolkit built with 100% pure Java.

It is derived from ARToolkit-2.72.1. Like Processing itself it’s open source and free! In this tutorial you will learn how to use it to place computer generated imagery correctly onto real world footage. All right so let’s start with the general setup. 1. 2. 3. 4. All right, time to recap. Example 1: Basic The first example is basic, but holds all of the important techniques that are necessary for more advanced uses of the NyArtoolkit.

If you input the following image (place it in the sketch’s data subdirectory)… …into the first code example, you should end up with something like this… Example 2: Dynamic Time to get a little more dynamic. Example 3: OOP The third example serves two purposes. Main Sketch ARObject Troubleshooting & General Tips.