Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014638
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:31:15+00:00 2026-05-20T09:31:15+00:00

I installed the opencv-android plugin successfully and I can build and run the cvcamera

  • 0

I installed the opencv-android plugin successfully and I can build and run the cvcamera sample application as well. I have the opencv project included in eclipse as a library project as well. However, I’m confused about how to execute arbitrary opencv methods from within my android application.

For instance, I have my application take a picture and save it. Then, I want to have opencv load that image so I can run some processing on it. As a first step, I’m trying to load that image into an opencv Mat. So, I created the following class based on the code I see in the cvcamera sample:

import com.opencv.jni.Mat;
public class ExtraOpencvJNI {
    static {
        try {
            System.loadLibrary("android-opencv");
        } catch (UnsatisfiedLinkError e) {
            throw e;
        }
    }
    public final static native Mat imread(String jarg1);

}

Then, within my android java code I try to execute:

Mat img = ExtraOpencvJNI.imread("<path_to_img>");

However, I get an UnsatisfiedLinkError: imread when I execute the above java code. I know I must be misunderstanding something fundamental about how the opencv-android library works, but I can’t find anything else out there explaining how to call basic opencv functions using the android library. What steps am I overlooking?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:31:16+00:00Added an answer on May 20, 2026 at 9:31 am

    You need to have a corresponding imread bit of code in the JNI files (.i). For example, in the cvcamera example, there is processor.i and some others. As far as i can remember, I haven’t seen imread on there. You’re supposed to use the given methods, which move the YUV images from androids camera into a pool for processing by code written in c++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have succesfully installed OpenCv & Qt in Ubuntu..i can debug and run some
Having successfully installed opencv 2.0 with python bindings I'm starting to run into trouble
I have successfully built and installed the opencv lib. Now I am trying to
I successfully installed Opencv via sudo apt-get install libcv-dev libcv4 libcvaux-dev libcvaux4 libhighgui-dev libhighgui4
I have looked around for quite some time trying to get openCV installed. I'm
How to determine which version of OpenCV I have installed? I am most interested
I have installed VS2008 and am able to run the demo codes camshiftdemo and
For testing OpenCV with android, I installed a simple opencv app on my android.
I have opencv installed and working on my iphone (big thanks to this community).
I have installed Eclipse+CDT and OpenCV with: $ sudo apt-get install libcv1 libcv-dev libcvaux1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.