I am using opencv library for Video Recording ,
My application is for live video streaming and recording (both audio and video) using wifi. Once I tried to upload to play store Google rejected my application due to Libpng vulnerability , and I found the problem with opencv lib version, so replaced the opencv jar file with its gradle dependency ,deleted the .so files from libs/armeabi.jar folder and rebuit the project,,then Google didn't show that vulnerability issue and it got uploaded to the play store.
But the Shared object files arent regenerating, hence some functionality like recording the streamed video does not work. I would like to know How can I regenerate .SO files .
↧
How can I regenerate .SO files for my opencv library
↧
algorithm to computer vision obstacle detection ??
My graduation project is indoor navigation system for blind people so I need to implement obstacle detection using android and open CV, I followed these steps but accuracy is not good :
1- convert to grayscale
2-canny function to detect edges
3- dilate the detected edges by 500%
4- blur the image using a Gaussian blur
5- use findContours function to detect closed shapes and draw bounding circles around the shapes
any help with paper or algorithm I should follow??
↧
↧
How to do face detection using VideoCapture?
I've to develop a makeup application like Lakme pro. someone suggest me to use opencv. I found a demo for face detection of opencv lib but the demo is not working. please help me to implement opencv for face detection.
↧
Extract symbols from an image
Hi,
I'm working on an android app that make some image processing by using opencv ,
I made a grayscale image, then Canny edge detection Like this photo : 
Now i need to get every symbol from this equation in a picture alone, How can i do that ?
↧
Android Java Opencv canny throws cvexception
I want to detect edges from images using Canny in Android, but it keeps throwing this error:
E/cv::error(): OpenCV Error: Assertion failed (_dx.type() == CV_16SC1 || _dx.type() == CV_16SC3) in void cv::Canny(cv::InputArray, cv::InputArray, cv::OutputArray, double, double, bool), file /build/master_pack-android/opencv/modules/imgproc/src/canny.cpp, line 959
E/org.opencv.imgproc: imgproc::Canny_11() caught cv::Exception: /build/master_pack-android/opencv/modules/imgproc/src/canny.cpp:959: error: (-215) _dx.type() == CV_16SC1 || _dx.type() == CV_16SC3 in function void cv::Canny(cv::InputArray, cv::InputArray, cv::OutputArray, double, double, bool)
W/System.err: CvException [org.opencv.core.CvException: cv::Exception: /build/master_pack-android/opencv/modules/imgproc/src/canny.cpp:959: error: (-215) _dx.type() == CV_16SC1 || _dx.type() == CV_16SC3 in function void cv::Canny(cv::InputArray, cv::InputArray, cv::OutputArray, double, double, bool)
W/System.err: ]
W/System.err: at org.opencv.imgproc.Imgproc.Canny_1(Native Method)
W/System.err: at org.opencv.imgproc.Imgproc.Canny(Imgproc.java:984)
W/System.err: at app.android.opencvproject.OpenCVText.detectContours(OpenCVText.java:185)
W/System.err: at app.android.opencvproject.CameraPreview$1$1.run(CameraPreview.java:428)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
W/System.err: at java.lang.Thread.run(Thread.java:818)
I don't know what causes the error and I did not find any answer on the internet.
Here is the code I used:
public void detectContours(Bitmap bitmap){
try{
Mat img = new Mat();
Utils.bitmapToMat(bitmap, img);
Mat gray = new Mat(img.size(), CvType.CV_8UC1);
Imgproc.cvtColor(img, gray, Imgproc.COLOR_RGB2GRAY, 4);
Imgproc.Canny(gray, gray, 80, 100);
Bitmap outputBitmap = Bitmap.createBitmap(gray.cols(), gray.rows(), Bitmap.Config.ARGB_8888);
Utils.matToBitmap(gray, outputBitmap);
MediaStore.Images.Media.insertImage(context.getContentResolver(), outputBitmap, "Opencv" , "Hello");
Log.d("OPENCV", "Image stored in your gallery");
}catch (Exception e){
e.printStackTrace();
}
}
Can someone help me to solve this problem?
Thanks in advance!
↧
↧
Android_app_not_working_on_x86_64_systems
A friend asked me to check whether it is possible to make an app work on a x86_64 Android system. The app was written a couple of years ago implementing openCv 2.4.5 libraries and works fine on x86 systems. The real problem is that he lost (or so he says) the source code files and all I have is an .apk file. I decompiled it using apktool, and found, among others, a 'lib' directory containing the following directories:'arm64-v8a', 'armeabi', armeabi-v7a', 'mips', 'mips64', 'x86', 'x86_64'. There's a 'libopencv_info.so' file in each directory, but only in x86 directory I found the 'libopencv_java.so' libraries file.
Am I right in thinking that there is no 'libopencv_java.so' libraries file that I could put into the 'x86_64' directory so as to make the app work on 64bit systems?
Could I somehow change the smali files (what to look for?) or do I have write the app from scratch?
I will be grateful for any suggestions :-)
↧
Is it possible to remove backgroud image and stitch the rest of the image closer together?
sorry for my bad english, i dont really know how to explain what i am asking so i will just pust what i wanted to do basicly i want to make this :
imgur.com/a/aDqoJ
into
imgur.com/a/3GGhG
thanks in advance.
↧
OpenCV + Android - implement flashlight
Hello,
I have a problem with flashlight in my app. I do not know, How can I implement it to my Android app. On frame processing I use a CameraBridgeViewBase and I use a rear mobile camera.
How Can is implement simple camera flashlight ? :O Here is my code. Thanks EVERYONE !
public class MainActivity extends Activity implements CvCameraViewListener2 {
private CameraBridgeViewBase mOpenCvCameraView;
private JavaCameraView cameraView;
private Mat
mRgba,
imgGray,
imgCanny,
mResizedMat,
hierarchy;
private TextView
infoText,
text01,
text02,
text03;
private Button
button01,
button02,
button03;
private boolean
isMode01Active = false,
isMode02Active = false,
isMode03Active = false;
private SeekBar
seekBar01,
seekBar02,
seekBar03;
private int
value01 = 64,
value02 = 80,
value03 = 5;
Camera camera;
Camera.Parameters parameters;
List contours;
private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {
@Override
public void onManagerConnected(int status) {
switch (status) {
case LoaderCallbackInterface.SUCCESS: {
camera = Camera.open(CAMERA_ID_BACK);
parameters = camera.getParameters();
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
camera.setParameters(parameters);
mOpenCvCameraView.enableView();
mOpenCvCameraView.enableFpsMeter();
}
break;
default: {
super.onManagerConnected(status);
}
break;
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// - - - > SETTING LAYOUT OF ACTIVITY
setContentView(R.layout.activity_main);
setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE);
// < - - - END
// - - - > SET ORIENTATION OF SCREEN
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
// < - - - END
// - - - > DECLARATION OF COMPONENTS
infoText = (TextView)findViewById(R.id.infoText);
text01 = (TextView)findViewById(R.id.text01);
text02 = (TextView)findViewById(R.id.text02);
text03 = (TextView)findViewById(R.id.text03);
mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.camera_view);
mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);
mOpenCvCameraView.setCvCameraViewListener(this);
button01 = (Button) findViewById(R.id.button01);
button02 = (Button) findViewById(R.id.button02);
button03 = (Button) findViewById(R.id.button03);
seekBar01 = (SeekBar) findViewById(R.id.seekBar01);
seekBar02 = (SeekBar) findViewById(R.id.seekBar02);
seekBar03 = (SeekBar) findViewById(R.id.seekBar03);
// < - - - END
isMode01Active = true;
infoText.setText("MODE1: ACTIVE");
button01.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mOpenCvCameraView.enableFpsMeter();
infoText.setText("MODE1: ACTIVE");
setModelStatus("mode1");
}
});
button02.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mOpenCvCameraView.enableFpsMeter();
infoText.setText("MODE2: ACTIVE");
setModelStatus("mode2");
}
});
button03.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mOpenCvCameraView.enableFpsMeter();
infoText.setText("MODE3: ACTIVE");
setModelStatus("mode3");
}
});
seekBar01.setMax(150);
seekBar02.setMax(150);
seekBar03.setMax(45);
seekBar01.setProgress(value01);
seekBar02.setProgress(value02);
seekBar03.setProgress(value03);
text01.setText(""+value01);
text02.setText(""+value02);
text03.setText(""+value03);
seekBar01.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
value01 = i;
text01.setText(""+value01);
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
seekBar02.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
value02 = i;
text02.setText(""+value02);
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
seekBar03.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
if(i % 2 != 0)
value03 = i;
text03.setText(""+value03);
}
@Override
public void onStartTrackingTouch(SeekBar seekBar) {
}
@Override
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
}
@Override
public void onPause() {
super.onPause();
if (mOpenCvCameraView != null)
mOpenCvCameraView.disableView();
}
@Override
public void onResume() {
super.onResume();
if (!OpenCVLoader.initDebug()) {
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_3_1_0, this, mLoaderCallback);
} else {
mLoaderCallback.onManagerConnected(LoaderCallbackInterface.SUCCESS);
}
}
@Override
public void onDestroy() {
super.onDestroy();
if (mOpenCvCameraView != null)
mOpenCvCameraView.disableView();
}
@Override
public void onCameraViewStarted(int width, int height) {
mRgba = new Mat();
imgGray = new Mat();
}
@Override
public void onCameraViewStopped() {
}
@Override
public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
}
}
↧
Build failure with android ndk r13b and c++_shared
Because of other dependencies we need to build openCV with ndk r13b and the stl c++_shared. We build on mac OSX.
First we had to fix a small thing in *android.toolchain.cmake* since apparently some header path did change in the ndk 13.
We changed this:
> set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/android/support/include" "${ANDROID_NDK}/sources/cxx-stl/llvm-libc++/libcxx/include" "${ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/libcxxabi/include" )
to:
> set( ANDROID_STL_INCLUDE_DIRS "${ANDROID_NDK}/sources/android/support/include" "${ANDROID_NDK}/sources/cxx-stl/llvm-libc++/include" "${ANDROID_NDK}/sources/cxx-stl/llvm-libc++abi/include" )
Removed *libcxxabi* und *libcxx* from path.
We configure the build:
> cmake_android_arm.sh -DANDROID_STL=c++_shared -DBUILD_SHARED_LIBS=YES -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_ZLIB=ON -DANDROID_NATIVE_API_LEVEL=9
We also tried using a newer android version (21) but it results in the similar behaviour. Performing make results in the following error:
> ~/software/Android-NDK/ndk/sources/cxx-stl/llvm-libc++/include/cwctype:68:9: error: '::iswblank' has not been declared
using ::iswblank;
Building with android version 21 results in a similar error somewhat later in the build:
> ~/software/Android-NDK/ndk/sources/cxx-stl/llvm-libc++/include/cmath:313:9: error: '::signbit' has not been declared
using ::signbit;
When searching for the error we found some information that changing the math.h imports to cmath should fix the error. We tried this but had no success in finding a way to make the build work.
What can we do to get the build to work? If more information is needed I am happy to provide it.
EDIT 1: Spelling
EDIT 2: Again similar behaviour with the ndk r14-beta1. We receive the following error for the new beta sdk:
> ~/software/Android-NDK/ndk/sources/cxx-stl/llvm-libc++/include/cwctype:68:9: error: '::iswblank' has not been declared
using ::iswblank;
EDIT 3: The issues persist with the released Version of the NDK 14. Is there any information if the android build with the c++_shared lib will be fixed for the newer NDK versions?
↧
↧
How to use tracking module in Android?
I have compiled opencv_contrib module with opencv (both 3.2.0) for android and got a series of static libraries successfully.
Then in my android project I imported original opencv android sdk 3.2.0, which works fine.
So I think what I need to do is to put the libraries I generated into the opencv android sdk(jniLibs folder actually. Some are replaced by mine because I compiled my libraries with OpenCL support and I want to use them). Am I right?
But how to use tracking module(which is in contrib module) on Android?
Specifically, I want to use KCF tracker on android, so I put libopencv_tracking.a into jniLibs.
But I didn't find any java interfaces(Are these called wrapper?I'm a newbie at this) to use extra modules(such as libopencv_tracking.a).
Should I do this manually? Could anyone give me a sample?Any suggestions would be great appreciated!
↧
error in OpenCVConfig.cmake for OpenCV-android-sdk v. 3.2.0
I have a project building a sample camera calibration app for android using cmake. I am using version 3.2.0 of the android sdk from the opencv sourceforge page.
In my CMakeLists.txt I have manually set the OpenCV_DIR to < path_to_OpenCV-android-sdk >/sdk/native/jni/ because that's where OpenCVConfig.cmake is. However, inside OpenCVConfig.cmake, it looks for < abi name >/OpenCVConfig.cmake, which does not exist because in the < abi name > subdirectory there is OpenCVConfig-version.cmake rather than OpenCVConfig.cmake.
In < path_to_OpenCV-android-sdk >/sdk/native/jni/OpenCVConfig.cmake, changing
if(EXISTS "${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
include("${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
else()
to
if(EXISTS "${OpenCV_CONFIG_PATH}/OpenCVConfig-version.cmake")
include("${OpenCV_CONFIG_PATH}/OpenCVConfig-version.cmake")
else()
fixes that problem and allows me to build, but I wanted to check that this is an error before submitting a fix for this. If this is an error, I also would like some info on how to submit a fix to this.
↧
cannot find symbol variable GL_TEXTURE_EXTERNAL_OES In Android Studio Build code

↧
Android + OpenCV - frame processing
Hello,
I have a problem with developing my app. I stacked. :/ Here is a preview of screen.

Now, where is a problem...
I would like after I click on the CALIBRATE button, last delivered frame will be save to the some matrix. In this matrix, I want a detect this small circle (see in picture) and then display this matrix with detected circles. But I want do it from one last delivered frame, when I click on CALIBRATE button.
Here is my code. Thanks everyone ! :/
bCalibrate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
isCalibration = true;
}
});
public void onCalibration(Mat inputFrame){
mCaliration = inputFrame;
Log.d("log", "mCalibration res"+mCaliration.width() + "x"+mCaliration.height());
}
@Override
public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
Log.d("log", ""+inputFrame.rgba().width() + "x"+inputFrame.rgba().height());
if(isCalibration == true){
onCalibration(inputFrame.rgba());
isCalibration = false;
Log.d("log", "is WORKING");
}
int rows = (int) mRgba.height();
int cols = (int) mRgba.width();
Point p3 = new Point();
p3.x = 150;
p3.y = 150;
Point p4 = new Point();
p3.x = 640;
p3.y = 480;
if (isMode01Active == true) {
mRgba = inputFrame.rgba();
mGray = inputFrame.gray();
return mRgba;
}
else if (isMode02Active == true) {
return mCaliration;
}
else if (isMode03Active == true){
mRgba = inputFrame.rgba();
cvtColor(mRgba, mGray, COLOR_RGB2GRAY);
contours = new ArrayList();
double approxDistance; // approxDistance
Rect rect;
Point c1 = new Point();
Point c2 = new Point();
curve = new MatOfPoint2f();
approxCurve = new MatOfPoint2f();
Imgproc.GaussianBlur(mGray, mGray, new Size(value03, value03), 0);
Canny(mGray, mCanny, value01, value02);
findContours(mCanny, contours, mHierarchy, RETR_EXTERNAL, CHAIN_APPROX_SIMPLE);
//drawContours(mRgba, contours, -1, new Scalar(0,255,255));
int numberOfObject = 0;
for(int i = 0; i < contours.size(); ++i)
{
// Minimum size allowed for consideration
curve = new MatOfPoint2f(contours.get(i).toArray());
//Processing on mMOP2f1 which is in type MatOfPoint2f
approxDistance = Imgproc.arcLength(curve, true)*Double.MIN_VALUE;
Imgproc.approxPolyDP(curve, approxCurve, approxDistance, true);
//Convert back to MatOfPoint
points = new MatOfPoint(approxCurve.toArray());
//cArea = contourArea(contours.get(i));
rect = boundingRect(points);
c1.x = rect.x;
c1.y = rect.y;
c2.x = rect.x + rect.width;
c2.y = rect.y + rect.height;
//Mat mContourArea = contours.get(i);
double contourArea = Imgproc.contourArea(contours.get(i));
if(((rect.height < 50) && (rect.width < 50) && (rect.width > 25) && (rect.width > 25) && contourArea > 45)){
numberOfObject++;
Imgproc.rectangle(mRgba, c1, c2, new Scalar(0, 255, 255), 2);
Log.d("log", "" + contourArea);
}
}
return mRgba;
}
else {
return mRgba;
}
}
}
↧
↧
how to contrast colored image using opencv 3.2 android library
I want to contrast camera preview with the seekbar progress value.
↧
Lollipop 5.1 (API 22) app crashes on OpenCV init 2.4.11
Lollipop 5.1 (API 22) app crashes on OpenCV init 2.4.11 with next error:
03-09 23:01:30.944 28467-28467/com.example.myapp E/MTPROF: mtprof entry can not be found!
java.io.FileNotFoundException: /proc/mtprof/status: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileInputStream.(FileInputStream.java:76)
at java.io.FileInputStream.(FileInputStream.java:103)
at android.app.ActivityThread.attach(ActivityThread.java:5464)
at android.app.ActivityThread.main(ActivityThread.java:5666)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:482)
at java.io.FileInputStream.(FileInputStream.java:76)
at java.io.FileInputStream.(FileInputStream.java:103)
at android.app.ActivityThread.attach(ActivityThread.java:5464)
at android.app.ActivityThread.main(ActivityThread.java:5666)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Error happens here
OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_11, mContext, loaderCallback);
Works ok on 4.4.4 (API 19)
Any ideas why it happens?
5.1 - Meizu M2
4.4.4 - Samsung S Advanced (GT-i9070)
Also tried using static method (without OpenCV manager when commenting OpenCVLoader.initAsync) and still god same error
↧
OpenCV 4 Android 2.4.13 arm64-v8a
How can I compile arm64-v8a library of OpenCV 2.4.13 for android?
OpenCV 2.4.* doesn't have this one and I can't run my app on Meizu devices.
I need 2.4.* OpenCV, not 3.*
↧
Using opencv filter functions in commercial app
Hi first of all pardon me if i am posting something not relevant to this site but i have nowhere ask this. I am building a commercial app and i am using filter functions in opencv(actually javacv i think it does not matter :) ) like bilateral filter, blur, median blur(ann other all) etc. I need to know whether I can use these functions in my app without any licensing issues, property issues or not. I don't change those functions i simply call them. Thanks
↧
↧
Opencl computation time increases after few iterations
I am using opencl module provided by opencv on Qualcomm Snapdragon 805 Inforce 6501.The problem is that the time taken for the execution of opencv's remap function with oclMat after about 20 iterations is around 700 microseconds but if I call it for 50 iteration or more execution time rises to 50ms after about 30 iterations.
The code i am using is as follows
Mat xMap1,yMap1,mDst;
Mat xMap2,yMap2;
Mat xMap3,yMap3;
bool first = true;
oclMat osXMap,osYMap;
oclMat conSrc;
oclMat conDst;
oclMat oclXMap,oclYMap;
oclMat oclSrc;
oclMat oclDst1;
oclMat oclDst2;
Mat imageSrc = cv::imread("/storage/sdcard0/DCIM/Camera/2048.jpg");
FileStorage fsx("/storage/sdcard0/DCIM/Camera/FishEyeConversionXmap4.yml",FileStorage::READ);
FileStorage fsy("/storage/sdcard0/DCIM/Camera/FishEyeConversionYmap4.yml",FileStorage::READ);
fsx["xMap"] >> xMap1;
fsy["yMap"] >> yMap1;
fsx.release();
fsy.release();
oclSrc = imageSrc;
oclDst1 = oclSrc.clone();
oclDst2 = oclSrc.clone();
oclXMap= xMap1;
oclYMap= yMap1;
cout<<"Remaping\n";
for(int i=0; i<50; i++)
//while(1)
{
unsigned long long t1 = GetTime();
remap(oclSrc,oclDst1,oclXMap,oclYMap,CV_INTER_LINEAR,BORDER_CONSTANT);
remap(oclSrc,oclDst2,oclXMap,oclYMap,CV_INTER_LINEAR,BORDER_CONSTANT);
unsigned long long t2 = GetTime();
printf("%d Time taken remap : %llu microseconds for %f ms\n",i, t2-t1,(float)((t2-t1)/(1000)));
}
And this is the output I get.
0 Time taken remap : 11946 microseconds for 11.000000 ms
1 Time taken remap : 817 microseconds for 0.000000 ms
2 Time taken remap : 800 microseconds for 0.000000 ms
3 Time taken remap : 258 microseconds for 0.000000 ms
4 Time taken remap : 754 microseconds for 0.000000 ms
5 Time taken remap : 885 microseconds for 0.000000 ms
6 Time taken remap : 764 microseconds for 0.000000 ms
7 Time taken remap : 966 microseconds for 0.000000 ms
8 Time taken remap : 783 microseconds for 0.000000 ms
9 Time taken remap : 757 microseconds for 0.000000 ms
10 Time taken remap : 1050 microseconds for 1.000000 ms
11 Time taken remap : 445 microseconds for 0.000000 ms
12 Time taken remap : 798 microseconds for 0.000000 ms
13 Time taken remap : 758 microseconds for 0.000000 ms
14 Time taken remap : 765 microseconds for 0.000000 ms
15 Time taken remap : 978 microseconds for 0.000000 ms
16 Time taken remap : 1120 microseconds for 1.000000 ms
17 Time taken remap : 763 microseconds for 0.000000 ms
18 Time taken remap : 766 microseconds for 0.000000 ms
19 Time taken remap : 607 microseconds for 0.000000 ms
20 Time taken remap : 258 microseconds for 0.000000 ms
21 Time taken remap : 305 microseconds for 0.000000 ms
22 Time taken remap : 767 microseconds for 0.000000 ms
23 Time taken remap : 750 microseconds for 0.000000 ms
24 Time taken remap : 783 microseconds for 0.000000 ms
25 Time taken remap : 769 microseconds for 0.000000 ms
26 Time taken remap : 782 microseconds for 0.000000 ms
27 Time taken remap : 4588 microseconds for 4.000000 ms
28 Time taken remap : 301 microseconds for 0.000000 ms
29 Time taken remap : 284 microseconds for 0.000000 ms
30 Time taken remap : 26658 microseconds for 26.000000 ms
31 Time taken remap : 498 microseconds for 0.000000 ms
32 Time taken remap : 26263 microseconds for 26.000000 ms
33 Time taken remap : 493 microseconds for 0.000000 ms
34 Time taken remap : 55254 microseconds for 55.000000 ms
35 Time taken remap : 50391 microseconds for 50.000000 ms
36 Time taken remap : 53969 microseconds for 53.000000 ms
37 Time taken remap : 110516 microseconds for 110.000000 ms
38 Time taken remap : 52030 microseconds for 52.000000 ms
39 Time taken remap : 54376 microseconds for 54.000000 ms
40 Time taken remap : 54264 microseconds for 54.000000 ms
41 Time taken remap : 54148 microseconds for 54.000000 ms
42 Time taken remap : 53658 microseconds for 53.000000 ms
43 Time taken remap : 54422 microseconds for 54.000000 ms
44 Time taken remap : 3529 microseconds for 3.000000 ms
↧
Building OpenCV 2.4 for arm64-v8a or x86_64 (CMake / make)
I tried to compile OpenCV 2.4.11 for arm64-v8a, but there is only one `.so` file I got after building in `my_build\lib\arm64-v8a` folder: `libopencv_info.so` (others are `.a`)
What did I do wrong?
It should also have built `libopencv_java.so` & `libnative_camera_r*.so` files, but it haven't
cmake parameters:
cd opencv\platforms
mkdir build_android_arm
cd build_android_arm
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=..\android\android.toolchain.cmake -DANDROID_ABI="arm64-v8a" -DWITH_TBB=ON -DINSTALL_ANDROID_EXAMPLES=ON -DANDROID_NATIVE_API_LEVEL=16 -D WITH_OPENCL=OFF -D WITH_OPENCL_SVM=OFF -D WITH_OPENCLAMDFFT=OFF -D WITH_OPENCLAMDBLAS=OFF ..\..
make
OpenCV 2.4.11 source code: github.com/opencv/opencv/releases/tag/2.4.11
↧
How to Manually Change Exposure Value in Android
I'm trying to disable auto-exposure and manually set an exposure value in the color-blob-detection sample provided with the SDK. Is there a way to do this via OpenCV or the native Android Camera2 API?
Any help would be greatly appreciated.
↧