<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Soham Railkar on Medium]]></title>
        <description><![CDATA[Stories by Soham Railkar on Medium]]></description>
        <link>https://medium.com/@soham24?source=rss-38336c9ab2db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*iYJOi_BKyccxB6W1.jpg</url>
            <title>Stories by Soham Railkar on Medium</title>
            <link>https://medium.com/@soham24?source=rss-38336c9ab2db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:21:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@soham24/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Use OpenCV in android with contrib modules and opencl enabled with this SDK]]></title>
            <link>https://medium.com/@soham24/use-opencv-in-android-with-contrib-modules-and-opencl-enabled-with-this-sdk-cf1308f0b1cf?source=rss-38336c9ab2db------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf1308f0b1cf</guid>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-opencv]]></category>
            <dc:creator><![CDATA[Soham Railkar]]></dc:creator>
            <pubDate>Fri, 28 Dec 2018 07:13:32 GMT</pubDate>
            <atom:updated>2023-11-06T06:59:02.215Z</atom:updated>
            <content:encoded><![CDATA[<h3>Use OpenCV in Android with contrib modules and OpenCL enabled with this SDK</h3><p>We all know that <strong>OpenCV </strong>is one the best library that fulfills our image processing requirements. The core of this library is written in C++, but it has wrappers in all popular languages like Python and Java.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5pZTiqCNb9l0DKNX3DfDw.jpeg" /></figure><p>For Android, <strong>OpenCV </strong>provides Android SDK which has Java wrappers, but it does not include additional contrib modules. ( Contrib modules are experimental features that are not released with the main release of <strong>OpenCV </strong>but they are provided as a separate package. ) also, OpenCL is disabled by default in the Android SDK. (OpenCL make use of GPU to run its code so we get a better speed of operation compared to CPU). So in order to use contrib modules and OpenCL in android, We need to build it from the source code by making necessary changes in the build script.</p><p>The following repo contains <strong>openCVLibrary</strong> which I have built from <strong>openCV</strong> 3.3.1 release. It has all contrib modules and OpenCL enabled in it. Most of the examples on the internet have device-dependent OpenCL implementation. (i.e they provide OpenCL .so file from outside.) but this library will work on every device which has OpenCL support.</p><p><a href="https://github.com/soham24/Opencv-android-SDK-3.3.1-with-opencl-and-contrib">soham24/Opencv-android-SDK-3.3.1-with-opencl-and-contrib</a></p><p>Though this is Java SDK, I recommend not to use it as java wrappers rather one should use JNI implementation in cpp for fast processing, memory optimization, and for limiting the overall size of APK. I will post a series of tutorials that will show the same.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf1308f0b1cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>