Skip to content

Commit aeefac8

Browse files
committed
added notes and clarified instructions based on what we ran into at the Cloud Robotics Hackathon march 2-3 Montreal 2012. These instructions work pretty well at this point, fixes cesine#6 if there is anything else to change,add,remove just edit the README
1 parent 1fc7cac commit aeefac8

File tree

1 file changed

+49
-18
lines changed

1 file changed

+49
-18
lines changed

README.md

Lines changed: 49 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ Download before the Hackathon
22
====================
33
Since the hackathon usually has overloaded wifi you should try to download these files if you know you will be hacking on OpenCV...
44

5-
Step 0:
5+
Step 0 get SDK 8:
66
---------
77
Set up Android SDK for your Eclipse, if you dont already have this set up then this project may be a bit over your head...
88
The complete instructions are all on this page:
99
http://developer.android.com/sdk/eclipse-adt.html#installing
1010

11-
Be sure to complete the sdk set up before going to the hackathon because you could need to download around 1 gig (which is pretty much impossible at most hackathons)... WATCHOUT: dont check all the SDKs, just get a couple like maybe SDK 8, 11, 14 so that you have a few to choose from and your team can compile to the same sdk
11+
Be sure to complete the sdk set up before going to the hackathon because you could need to download around 1 gig (which is pretty much impossible at most hackathons)...
1212

13+
<pre>WATCHOUT: dont download all the SDKs, just get a couple like maybe SDK 8, 11, 14 so that you have a few to choose from and your team can compile to the same sdk.
14+
15+
WATCHOUT: If you have IceCream Sandwich there is a high chance that OpenCV will give you a black screen. The OpenCV team is working on getting it running for Android 4.0, you'll have to use another team member's Android.
16+
</pre>
1317

1418
Step A:
1519
---------
@@ -33,31 +37,28 @@ Day of The Hackathon: Setup this sample project
3337
=========================
3438
Step 1:
3539
---------
40+
Fork this repository into your GitHub account, if you're familiar with GitHub.
41+
OR
3642
git clone https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons.git
3743

38-
3944
Step 2:
4045
---------
41-
Put the sample .project and .externalLaunchers into the android root
42-
<pre>
43-
$ cd AndroidOpenCVforHackathons/android
44-
$ cp ../eclipseconfig/.projectsample .project
45-
$ cp ../eclipseconfig/.externalToolBuilderssample .externalToolBuilders
46-
</pre>
47-
48-
Step 3:
49-
---------
5046
Now you can Import the project
5147

5248
Import>>General >>Existing project into workspace>>Browse to AndroidOpenCVforHackathons/android
5349

50+
Step 3:
51+
---------
52+
Create an external builder following these instructions in the OpenCV tutorial
53+
http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html#theory-how-to-build-android-application-having-c-native-part-from-eclipse
5454

5555
Step 4:
56-
--------
57-
Edit the builder graphically
58-
59-
Right click on the project AndroidOpenCVforHackathons> Properties>Builders>AndroidOpenCVforHackathonsBuilder>Edit>Main> ..change the Location to where your NDK is..
60-
Environment> ..change the Value to where your OpenCV-2.3.1-bin is..
56+
---------
57+
In the Builder created in Step 3, add an Environment Variable on the 3rd tab.
58+
Sample var:
59+
OPENCV_PACKAGE_DIR
60+
Sample value:
61+
/Users/yourname/opencv/OpenCV-2.3.1-android-bin
6162

6263
Step 5:
6364
--------
@@ -69,7 +70,37 @@ Step 6:
6970
--------
7071
Figure out how the heck it works, by quickly looking at the diffs in the issues of Milestone UpAndRunning:
7172

72-
https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons/issues?sort=created&direction=desc&state=closed&page=1&milestone=1
73+
https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons/issues?sort=created&direction=desc&state=closed&milestone=1
74+
75+
76+
Step 7:
77+
-------
78+
Modify the code to suit your needs, send us pull requests if you want to help.
79+
After a bit of hacking you can check out the code in the issues of Milestone Debugging OpenCV in Android C++
80+
81+
https://github.com/AndroidImageProcessing/AndroidOpenCVforHackathons/issues?milestone=2&state=closed
82+
83+
84+
Step 8:
85+
-------
86+
If you need some more Android code, there are samples to adapt to suit your needs (Bluetooth, services, Rest etc). Just create a new Android Project and click the checkbox from Sample code, you will get a list to choose from.
87+
88+
89+
Step 9:
90+
------
91+
Spread the joy...
92+
93+
94+
95+
Windows :
96+
---------
97+
You might need to install drivers for the Android device.
98+
99+
100+
Visual Studio Users:
101+
----------
102+
You can compile and run Android from the command line, or just download Eclipse (its about 130MB and works similarily to Visual Studio). There's garenteed to be Eclipse users at the hackathon, don't be shy, ask around to help yourself get set up. After you're set up you only need three things: clean, debug, run.
103+
73104

74105

75106
Full Instructions: From Zero to Eclipse to Android to Android NDK to OpenCV

0 commit comments

Comments
 (0)