background preloader

Programmation

Facebook Twitter

Hand-gesture-detection - To detect a hand from a live video stream ... done by MOHAFIZ RAZ.M.A , FEBIN JOSE , C.SANJAY ARVIND. Vision-based interfaces (VBI) are gaining much interest recently, maybe best illustrated by the commercial success of Sony's Eye Toy, an accessory for the company's PlayStation 2: a set-top camera recognizes full-body motions and projects the player directly into the game.

However, more fine-grained control such as with hand gesture recognition, has not yet reached the same level of robustness and reliability. Outdoor and mobile environments in particular present additional difficulties due to camera motion and their variability in backgrounds and lighting conditions. In prior work, we presented a mobile VBI that allows control of wearable computer entirely with hand gesture commands. A collection of recently proposed and novel methods enables hand detection, tracking, and posture recognition for truly interactive interfaces, realized with a head-worn camera and display.

Threshold values are calculated for different features of image of hands from the samples created. Tutorial 1: Object Recognition With OpenCV and Android - Overview of Object Recognition - The Visible Kitteh Project. Part 1 of several. Overview here. First lets get specific. We're talking about Object Recognition not Object Detection though the terms are mistakenly used synonymously. I myself had to update the title of this tutorial once I started writing the overview. Object detection is often used in things like robotics for object avoidance or for measurements. iRobot's Roomba does a great job of object detection but it can't tell you the difference between a hat and a handbag or even between dark and light.

Object Recognition is some times called Computer Vision though Computer Vision really refers to a larger problem space which includes Object Detection, Object Tracking, Object Recognition and probably a few things I'm leaving out. Computer vision and object recognition is an extremely difficult problem. As a whole this is a non-trivial project. All so that I can keep my cat out of the house using a device that fits in my pocket. Some popular techniques in use today: Continue to part two. Introduction into Android Development — OpenCV v2.4.3 documentation. This guide was designed to help you in learning Android development basics and seting up your working environment quickly. It was written with Windows 7 in mind, though it would work with Linux (Ubuntu), Mac OS X and any other OS supported by Android SDK. If you encounter any error after thoroughly following these steps, feel free to contact us via OpenCV4Android discussion group or OpenCV Q&A forum.

We’ll do our best to help you out. Preface Android is a Linux-based, open source mobile operating system developed by Open Handset Alliance led by Google. Development for Android significantly differs from development for other platforms. Quick environment setup for Android development If you are making a clean environment install, then you can try Tegra Android Development Pack (TADP) released by NVIDIA. NoteStarting the version 2.0 the TADP package includes OpenCV for Tegra SDK that is a regular OpenCV4Android SDK extended with Tegra-specific stuff. Development in Java Native development in C++ Android Layouts.zip. Add a overlay on Camera Preview SurfaceView. Modify from last exercise "Camera Preview, version II", a overlay will be add on the Camera Preview SurfaceView.

Controls; such as "Take Picture" button is added on the overlay. Keep using the AndroidManifest.xml and main.xml in last exercise "Camera Preview, version II" without change. Add a layout xml file, control.xml, under /res/layout folder. It define the layout of the control layer. Modify AndroidCamera.java to inflate a layer using control.xml Download the files. next: - Implement takePicture function of Android Camera. Camera Preview, version II. In the exercise "Camera Preview on SurfaceView", I show how to using Android's camera preview on a SurfaceView. The preview is set Start/Stop using buttons, it's not a good approach I think. In this exercise, it is re-arranged to handle the preview in SurfaceHolder.Callback methods: surfaceCreated(), surfaceChanged() and surfaceDestroyed().

Remember to grant permission to access Camera AndroidManifest.xml main.xml AndroidCamera.java package com.exercise.AndroidCamera; import java.io.IOException; import android.app.Activity;import android.content.pm.ActivityInfo;import android.graphics.PixelFormat;import android.hardware.Camera;import android.os.Bundle;import android.view.SurfaceHolder;import android.view.SurfaceView; public class AndroidCamera extends Activity implements SurfaceHolder.Callback{ Camera camera;SurfaceView surfaceView;SurfaceHolder surfaceHolder;boolean previewing = false;; if (camera !

Download the files. next:- Add a overlay on Camera Preview SurfaceView. Android - Can anyone give a good example of a Custom ViewGroup containing a Custom View with measure and layout examples? (In Java) Cyril Mottier. OpenCV 2.3.1 sur android avec Eclipse (partie 1) – yassinebenabbas. OpenCV 2.3.1 sur android avec Eclipse (partie 2) – yassinebenabbas. Installation ANDROID et OPENCV pour ANDROID. Téléchargement et installation de l'ensemble de dev ANDROID Si vous partez d'une installation vierge d'ANDROID, je vous conseille d'utiliser le pack réalisé par NVIDIA téléchargeable à l'adresse suivante : Ce pack contient tous les éléments indispensables à l'installation d'un système de développement ANDROID : jdk, eclipse, sdk android, ndk android, cygwin... Installation de la librairie OPENCV pour ANDROID Télécharger la dernière version à l'adresse suivante : Actuellement il s'agit de : OpenCV-2.3.1-android-bin.tar.bz2 Créer un nouveau répertoire pour le développement d'application Android+OPENCV (éviter les espaces dans le chemin) Décompresser le package OPENCV dans ce répertoire Ouverture de la librairie OPENCV et des exemples dans Eclipse Démarrer Eclipse et choisissez votre répertoire de travail.

Configuration du plugin ADT. Ce ne sont que des fausses alarmes. Interfuser: Live camera preview in the Android emulator. Java - Android Camera will not work. startPreview fails. Android - surfaceView.getHolder not returning SurfaceHolder. Create SurfaceView for our game. Start reading here: Create a SurfaceView Game step-by-step In this step, we are going to create our dummy SurfaceView: - Click to select our package (com.MyGame) in Package Explorer. Then click File of Eclipse, -> New -> Class - Enter "MyGameSurfaceView" in the Name field, then click Browse... to select Superclass. - Enter SurfaceView in the search box to choice SurfaceView - android.view, then click OK. - Then click Finish in the New Java Class dialog. - A new class of MyGameSurfaceView.java extends SurfaceView will be generated for you.

. - Modify the code of MyGameSurfaceView class declaration from: public class MyGameSurfaceView extends SurfaceView to: public class MyGameSurfaceView extends SurfaceView implements SurfaceHolder.Callback - You will be prompt for error again: SurfaceHolder cannot be resolved! - MyGameSurfaceView will be prompt with error again: The type MyGameSurfaceView must implement the inherited abstract method SurfaceHolder.Callback.surfaceDestroyed(SurfaceHolder). Frameworks - Android GUI architecture - relation between Surface/view/window/canvas. MHSPreview.java - myfy-ppm2011-12-3bhitn - abc. My favorites ▼ | Sign in Project Home Source Show details Hide details Change log r450 by jerret95 on Mar 1, 2012 Diff [No log message] Project members, sign in to write a code review Older revisions r374 by fab... r370 by fab... r368 by deka875 on Feb 21, 2012 Diff All revisions of this file File info Size: 2739 bytes, 105 lines View raw file Terms - Privacy - Project Hosting Help Powered by Google Project Hosting.

OpenCV in Android. Using OpenCV in Android. This tutorial is tested under Ubuntu 10.04 + Android SDKr07 + Android NDKr4b. Preparing the development environment Download and install Android SDK. Details can be found hereDownload eclipse and install the ADT plugin. Create the test project Create a new Android project in eclipse. OpenCV.java package edu.stanford.zixuanpc; public class OpenCV { static{ System.loadLibrary("opencv"); } public native boolean setSourceImage(int[] pixels, int width, int height); public native byte[] getSourceImage(); public native void extractSURFFeature(); } And here is the code how we use these two functions: Code snippet in testOpenCVActivity.java Run the program Press the menu button to select your camera to capture an image.

How to simulate a touch event in Android. SDK. Before installing Android Studio or the standalone SDK tools, you must agree to the following terms and conditions. This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. 2.

Accepting this License Agreement 2.1 In order to use the SDK, you must first agree to this License Agreement. 3. 3.1 Subject to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license to use the SDK solely to develop applications for compatible implementations of Android. 3.2 You may not use this SDK to develop applications for other platforms (including non-compatible implementations of Android) or to develop another SDK. 4. 5. 6. 7. 8. 9. 12. 13. 14.