<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>schestowitz.com &#187; OpenCV</title>
	<atom:link href="https://schestowitz.com/Weblog/archives/category/opencv/feed/" rel="self" type="application/rss+xml" />
	<link>https://schestowitz.com/Weblog</link>
	<description>Reflections on Technology</description>
	<lastBuildDate>Tue, 17 Feb 2026 16:47:48 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>OpenCV for Android in Eclipse on GNU/Linux</title>
		<link>https://schestowitz.com/Weblog/archives/2012/05/13/eclipse-opencv/</link>
		<comments>https://schestowitz.com/Weblog/archives/2012/05/13/eclipse-opencv/#comments</comments>
		<pubDate>Sun, 13 May 2012 06:48:38 +0000</pubDate>
		<dc:creator><![CDATA[Roy Schestowitz]]></dc:creator>
				<category><![CDATA[OpenCV]]></category>

		<guid isPermaLink="false">http://schestowitz.com/Weblog/?p=3506</guid>
		<description><![CDATA[or the uninitiated, I&#8217;ve started working with Android for computer vision research. According to Wikipedia, &#8220;OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real time computer vision, developed by Intel and now supported by Willow Garage. It is free for use under the open source BSD license. [...] [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img title="F" src="/IMG/Caps/f.png" alt="F" hspace="0" vspace="4" align="left" border="0"/>or the uninitiated, I&#8217;ve started working with Android for computer vision research. According to <a href="https://en.wikipedia.org/wiki/OpenCV" title="OpenCV">Wikipedia</a>, &#8220;OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real time computer vision, developed by Intel and now supported by Willow Garage. It is free for use under the open source BSD license. [...] The library was originally written in C[2] and this C interface makes OpenCV portable to some specific platforms such as digital signal processors. Wrappers for languages such as C#, Python,[3] Ruby and Java (using JavaCV[4]) have been developed to encourage adoption by a wider audience.&#8221;</p>
<p>The library can be fetched from <a href="http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.0/">here</a> (<code>OpenCV-2.4.0-android-bin.tar.bz2</code>) and it is a very large library that requires <a href="http://www.cmake.org/">cmake to compile</a>:</p>
<pre> 

roy@roy:~$ cmake
cmake version 2.8.0

</pre>
<p>Also see <a href="http://code.google.com/p/android-cmake/w/list" title="android-cmake"><code>android-cmake</code></a>.</p>
<p>For use under Linux and Android (device side), <a href="http://developer.android.com/sdk/ndk/index.html" title="Download the Android NDK">download the Android NDK</a> for Linux:</p>
<pre> 

roy@roy:~$ uname -a
Linux roy 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011 i686 GNU/Linux

</pre>
<p>Then:</p>
<pre> 
sudo apt-get install swig

</pre>
<p>Here is what I got (as shown by tabbing):</p>
<pre> 
roy@roy:~$ swig
swig      swig-1.3  

</pre>
<p>JDK 5 or JDK 6 can be downloaded from the Oracle <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" title="Java SE Downloads">Java SE Downloads</a> page. Here is where the Linux version <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html">can be obtained</a>. Also <a href="http://developer.android.com/sdk/index.html" title="Download the Android SDK">download the Android SDK</a> and install <a href="http://ant.apache.org/">Ant</a>:</p>
<pre> 

sudo apt-get install ant

</pre>
<p>Then, set the path as follows (in my case a temporary location):</p>
<pre> 
export ANDROID_NDK=/home/roy/Desktop/Text_Workspace/images/opencv/android-sdk-linux
</pre>
<p>The four main components are OpenCV, the SDK, NDK, and JDK. Here&#8217;s how it looks on my desktop:</p>
<p><a href="https://schestowitz.com/Weblog/wp-content/uploads/2012/05/android-opencv.png"><img src="https://schestowitz.com/Weblog/wp-content/uploads/2012/05/android-opencv.png" alt="" title="android opencv" /></a></p>
<p>Some <a href="http://code.opencv.org/projects/opencv/wiki/OpenCV4Android" title="Android">instructions</a> suggest a route for Eclipse users, in which case the following may be in order:</p>
<pre> 

apt-get install eclipse

</pre>
<p>Tegra Android Developer Pack, which can be found under <a href="http://developer.nvidia.com/tegra-resources" title="Tegra Resources">Tegra Resources</a> at the NVidia Web site, simplifies much of the process above and integrates all the pertinent bits.</p>
<p><strong>Other resources of interest</strong>:</p>
<ul>
<li><a href="http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html" title="Introduction to programming with OpenCV">Introduction to programming with OpenCV</a></li>
<li><a href="http://opencv.willowgarage.com/wiki/faq" title="OpenCV Beginners/Newbie Frequently Asked Questions">OpenCV Beginners/Newbie Frequently Asked Questions</a></li>
<li><a href="http://developer.android.com/guide/developing/devices/index.html" title="Managing Virtual Devices">Managing Virtual Devices</a></li>
<li><a href="http://opencv.willowgarage.com/wiki/Eclipse" title="Using OpenCV with Eclipse / CDT plugin">Using OpenCV with Eclipse / CDT plugin</a></li>
<li><a href="http://opencv.willowgarage.com/wiki/EclipseOpenCVLinux" title="EclipseOpenCVLinux">Eclipse OpenCV Linux</a></li>
<li><a href="http://opencv.willowgarage.com/wiki/InstallGuide" title="OpenCV Installation Guide">OpenCV Installation Guide</a></li>
<li><a href="http://code.opencv.org/projects/opencv/wiki/OpenCV4Android" title="OpenCV4Android documentation">OpenCV4Android documentation</a></li>
<li><a href="http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html" title="sing Android binary package with Eclipse">Using Android binary package with Eclipse</a></li>
<li><a href="http://opencv.willowgarage.com/wiki/Android2.3.0" title="Android 2.3.0">(Outdated) Android 2.3.0</a></li>
<li><a href="http://docs.opencv.org/doc/tutorials/tutorials.html" title="OpenCV Tutorials">OpenCV Tutorials</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://schestowitz.com/Weblog/archives/2012/05/13/eclipse-opencv/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
