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 6390109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:29:10+00:00 2026-05-25T03:29:10+00:00

I’m trying to use new OpenCV feature on Android: native camera access. According to

  • 0

I’m trying to use new OpenCV feature on Android: native camera access. According to this document, it’s quite easy, but I only get the error without success.

There is DDMS log:

08-26 03:28:56.825: DEBUG/CAMERA_ACTIVITY(12613): Library name: libopencv_java.so
08-26 03:28:56.825: DEBUG/CAMERA_ACTIVITY(12613): Library base address: 0x81800000
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): Libraries folder found: /data/data/com.viactivity.ar/lib/
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): CameraWrapperConnector::connectToLib: folderPath=/data/data/com.viactivity.ar/lib/
08-26 03:28:56.835: ERROR/CAMERA_ACTIVITY(12613): ||libnative_camera_r2.2.2.so
08-26 03:28:56.835: ERROR/CAMERA_ACTIVITY(12613): ||libnative_camera_r2.3.3.so
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): try to load library ‘libnative_camera_r2.2.2.so’
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/data/com.viactivity.ar/lib/libnative_camera_r2.2.2.so, dlerror=”Cannot load library: find_library[1223]: 11258 ‘libnative_camera_r2.2.2.so’ failed to load previously”
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): try to load library ‘libnative_camera_r2.3.3.so’
08-26 03:28:56.835: DEBUG/CAMERA_ACTIVITY(12613): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/data/com.viactivity.ar/lib/libnative_camera_r2.3.3.so, dlerror=”Cannot load library: find_library[1223]: 11258 ‘libnative_camera_r2.3.3.so’ failed to load previously”
08-26 03:28:56.835: ERROR/CAMERA_ACTIVITY(12613): CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library
08-26 03:28:56.835: ERROR/CV_CAP(12613): Native_camera returned opening error: 4
08-26 03:28:56.835: ERROR/AR_code(12613): Capture Error!

There are two variants of code:

CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANDROID + 0 ); 
IplImage* frame = cvQueryFrame( capture );
cvReleaseCapture(&capture);

.

cv::VideoCapture capture(CV_CAP_ANDROID + 0);
cv::Mat frame;

capture >> frame;

Both of them produce the same errors.
Does somebody was able to get native camera access on Android?
Thanks a lot!

UPD:
The story above is about Android 3.2. According to the words of Andrey Kamaev, Android 3.2 isn’t supported.
I tried to test the same code on HTC Wildfire, but got another error:

08-26 19:49:06.856: DEBUG/OpenCV_NativeCamera(1337):
CameraHandler::initCameraConnect(0x813e65a1, 0, 0x285a20, 0x0) 08-26
19:49:06.856: DEBUG/CameraService(72): CameraService::connect E (pid
1337, client 0x693d8) 08-26 19:49:06.856: DEBUG/CameraService(72):
CameraService::connect X (pid 1337, new client 0x693d8) rejected. (old
pid 1337, old client 0x18728) 08-26 19:49:06.856:
ERROR/OpenCV_NativeCamera(1337): initCameraConnect: Unable to connect
to CameraService 08-26 19:49:06.856: ERROR/CAMERA_ACTIVITY(1337):
CameraWrapperConnector::connectWrapper ERROR: the initializing
function returned false 08-26 19:49:06.856: ERROR/CV_CAP(1337):
Native_camera returned opening error: 6

Any ideas?

  • 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-25T03:29:11+00:00Added an answer on May 25, 2026 at 3:29 am

    At the moment OpenCV native camera does not support Android 3.2 (because its sources are not publicly available.)

    I’ll post an update as soon as version compatible with Android 3.2 become available.

    Update:

    OpenCV trunk already has solution for Android 3.x and 4.0.x. It will be included into the next major release of OpenCV.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

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.