@@ -57,14 +57,14 @@ Run the demo with:
5757#### How to Include In Gradle Project
5858``` gradle
5959repositories {
60- mavenCentral()
61- jCenter()
60+ mavenCentral()
61+ jCenter()
6262}
6363```
6464Reference the repository from this location using:
6565``` gradle
6666dependencies {
67- compile 'com.github.giulianini.jestures:jestures:1.0.0'
67+ compile 'com.github.giulianini.jestures:jestures:1.0.0'
6868}
6969```
7070
@@ -73,10 +73,10 @@ dependencies {
7373#### How to Include In Maven Project
7474``` xml
7575<dependency >
76- <groupId >com.github.giulianini.jestures</groupId >
77- <artifactId >jestures</artifactId >
78- <version >1.0.0</version >
79- <type >pom</type >
76+ <groupId >com.github.giulianini.jestures</groupId >
77+ <artifactId >jestures</artifactId >
78+ <version >1.0.0</version >
79+ <type >pom</type >
8080</dependency >
8181```
8282
@@ -85,7 +85,7 @@ dependencies {
8585#### How to Include In Ivy Project
8686``` xml
8787<dependency org =' com.github.giulianini.jestures' name =' jestures' rev =' 1.0.0' >
88- <artifact name =' jestures' ext =' pom' ></artifact >
88+ <artifact name =' jestures' ext =' pom' ></artifact >
8989</dependency >
9090```
9191
@@ -108,51 +108,51 @@ dependencies {
108108
109109#### Tracker only
110110``` java
111- final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
112- final Tracking tracker = Tracker . getInstance();
113- tracker. attacheSensor(sensor);
114- tracker. startSensor();
115- tracker. setOnJointTracked(new JointListener (){
116- .... });
111+ final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
112+ final Tracking tracker = Tracker . getInstance();
113+ tracker. attacheSensor(sensor);
114+ tracker. startSensor();
115+ tracker. setOnJointTracked(new JointListener (){
116+ .... });
117117```
118118
119119#### Start the Recognizer
120120``` java
121- final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
122- final Recognition recognizer = Recognizer . getInstance();
123- recognizer. attacheSensor(sensor);
124- recognizer. startSensor();
125- recognizer. setOnGestureRecognized(System . out:: println);
121+ final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
122+ final Recognition recognizer = Recognizer . getInstance();
123+ recognizer. attacheSensor(sensor);
124+ recognizer. startSensor();
125+ recognizer. setOnGestureRecognized(System . out:: println);
126126```
127127
128128#### Start via UI
129129
130130``` java
131- final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
132- final Recognition recognizer = Recognizer . getInstance();
133- recognizer. attacheSensor(sensor);
134- final RecognitionView view = new RecognitionScreenView (recognizer);
135- recognizer. attacheUI(view);
136- recognizer. setOnGestureRecognized(System . out:: println);
131+ final Sensor sensor = new Kinect (Joint . RIGHT_HAND , KinectSensors . SKELETON_ONLY , KinectVersion . KINECT1 );
132+ final Recognition recognizer = Recognizer . getInstance();
133+ recognizer. attacheSensor(sensor);
134+ final RecognitionView view = new RecognitionScreenView (recognizer);
135+ recognizer. attacheUI(view);
136+ recognizer. setOnGestureRecognized(System . out:: println);
137137```
138138#### Define your own UI
139139
140140``` java
141- public class Gui extends AbstractView {
142- public Gui (Recognition recognizer ) {
143- super (recognizer);
144- // TODO Auto-generated constructor stub
145- }
146- @Override
147- public void notifyOnFrameChange (int frame , Vector2D derivative , Vector2D path ) {
148- // TODO Auto-generated method stub
149- }
150- @Override
151- public void notifyOnFeatureVectorEvent () {
152- // TODO Auto-generated method stub
153- }
154- ..... A lot of methods to implements
141+ public class Gui extends AbstractView {
142+ public Gui (Recognition recognizer ) {
143+ super (recognizer);
144+ // TODO Auto-generated constructor stub
155145 }
146+ @Override
147+ public void notifyOnFrameChange (int frame , Vector2D derivative , Vector2D path ) {
148+ // TODO Auto-generated method stub
149+ }
150+ @Override
151+ public void notifyOnFeatureVectorEvent () {
152+ // TODO Auto-generated method stub
153+ }
154+ ..... A lot of methods to implements
155+ }
156156```
157157
158158## Supported sensors
@@ -177,39 +177,39 @@ The project has been developed using Eclipse, and can be easily imported in such
177177
178178#### Recommended configuration
179179* Install the required eclipse plugins:
180- * In Eclipse , click " Help" - > " Eclipse Marketplace..."
181- * In the search field enter " findbugs" , then press Enter
182- * One of the retrieved entries should be " FindBugs Eclipse Plugin" , click Install
183- * Click " < Install More"
184- * In the search field enter " checkstyle" , then press Enter
185- * One of the retrieved entries should be " Checkstyle Plug-in" with a written icon whose text is " eclipse-cs" , click Install
186- * Click " < Install More"
187- * Wait for Eclipse to resolve all the features
188- * Click " Confirm >"
189- * Follow the instructions, accept the license, wait for Eclipse to download and install the product, accept the installation and restart the IDE
190- * When restarted, click " Help" - > " Install New Software..."
191- * Click " Add..."
192- * In " Location" field, enter `https: // dl.bintray.com/pmd/pmd-eclipse-plugin/updates/`
193- * The " Name" field is not mandatory (suggested: " PMD" )
194- * Click OK .
195- * If not already selected, in " Work with:" dropdown menu choose the just added update site
196- * Select " PMD for Eclipse 4" and click next
197- * Follow the instructions, accept the license, wait for Eclipse to download and install the product, accept the installation and restart the IDE .
180+ * In Eclipse , click " Help" - > " Eclipse Marketplace..."
181+ * In the search field enter " findbugs" , then press Enter
182+ * One of the retrieved entries should be " FindBugs Eclipse Plugin" , click Install
183+ * Click " < Install More"
184+ * In the search field enter " checkstyle" , then press Enter
185+ * One of the retrieved entries should be " Checkstyle Plug-in" with a written icon whose text is " eclipse-cs" , click Install
186+ * Click " < Install More"
187+ * Wait for Eclipse to resolve all the features
188+ * Click " Confirm >"
189+ * Follow the instructions, accept the license, wait for Eclipse to download and install the product, accept the installation and restart the IDE
190+ * When restarted, click " Help" - > " Install New Software..."
191+ * Click " Add..."
192+ * In " Location" field, enter `https: // dl.bintray.com/pmd/pmd-eclipse-plugin/updates/`
193+ * The " Name" field is not mandatory (suggested: " PMD" )
194+ * Click OK .
195+ * If not already selected, in " Work with:" dropdown menu choose the just added update site
196+ * Select " PMD for Eclipse 4" and click next
197+ * Follow the instructions, accept the license, wait for Eclipse to download and install the product, accept the installation and restart the IDE .
198198* Set the line delimiter to LF (only for Windows users)
199- * In Eclipse , click window - > preferences
200- * In the search form enter " encoding" , then press Enter
201- * Go to General - > Workspace
202- * In the section " New text file line delimiter" check " Other" and choose Unix
203- * Apply
199+ * In Eclipse , click window - > preferences
200+ * In the search form enter " encoding" , then press Enter
201+ * Go to General - > Workspace
202+ * In the section " New text file line delimiter" check " Other" and choose Unix
203+ * Apply
204204* Use space instead of tabs
205- * In Eclipse , click window - > preferences
206- * Go to General - > Editors - > Text Editors
207- * Check " insert spaces for tabs" option.
208- * Apply .
209- * Go to Java - > Code style - > Formatter
210- * Click Edit button
211- * In Indentation tab, under " General Settings" , set " tab policy" to " Spaces only"
212- * Apply (you should probably rename the formatter settings).
205+ * In Eclipse , click window - > preferences
206+ * Go to General - > Editors - > Text Editors
207+ * Check " insert spaces for tabs" option.
208+ * Apply .
209+ * Go to Java - > Code style - > Formatter
210+ * Click Edit button
211+ * In Indentation tab, under " General Settings" , set " tab policy" to " Spaces only"
212+ * Apply (you should probably rename the formatter settings).
213213
214214## Screenshots
215215### Recognition
0 commit comments