Ask Your Question

jameo's profile - activity

2015-03-08 17:34:21 -0500 received badge  Nice Question (source)
2014-11-27 00:13:41 -0500 received badge  Famous Question (source)
2014-04-28 07:32:56 -0500 received badge  Notable Question (source)
2014-01-13 14:28:02 -0500 received badge  Popular Question (source)
2013-03-11 08:56:42 -0500 commented answer Mirror Image on Android Front Camera

Its called CameraBridgeViewBase.java now. This solution sortof worked for me

2013-03-02 03:55:14 -0500 received badge  Student (source)
2013-02-21 08:18:42 -0500 answered a question Static Linking OpenCV 2.4.3.2

What I ended up doing was changing my Application.mk file to not include the mips (which I really didnt need anyway). So Now I build only for armeabi-v7a.

So to recap, I changed

APP_ABI := all

to

APP_ABI := armeabi-v7a
2013-02-13 12:26:17 -0500 commented answer Static Linking OpenCV 2.4.3.2

I have never seen that like that in the docs anywhere. Also, I just tried it and it didnt work. Any other ideas???

2013-02-13 11:28:52 -0500 asked a question Static Linking OpenCV 2.4.3.2

I would like to statically link OpenCV(2.4.3.2) to my project. Right now my Android.mk looks like this

LOCAL_PATH := $(call my-dir)



include $(CLEAR_VARS)
OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on

include /Users/jamiematthews/Documents/Android-Projects/OpenCV-2.4.3-android-sdk/sdk/native/jni/OpenCV.mk

LOCAL_MODULE    := jni_part
LOCAL_SRC_FILES := jni_part.cpp
LOCAL_LDLIBS +=  -llog -ldl
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog 
include $(BUILD_SHARED_LIBRARY)

Which throws the errors:

Android NDK: ERROR:/Users/jamiematthews/Documents/workspace/AuthentiGuard/jni/Android.mk:on: LOCAL_SRC_FILES points to a missing file    
/Users/jamiematthews/Documents/android-ndk-r8d/build/core/prebuilt-library.mk:43: *** Android NDK: Aborting    .  Stop.
Android NDK: Check that /Users/jamiematthews/Documents/Android-Projects/OpenCV-2.4.3-android-sdk/sdk/native/jni/../libs/mips/libon.so exists  or that its path is correct

Anyone know what this could mean?

PS if I remove the lines

OPENCV_CAMERA_MODULES:=on
OPENCV_INSTALL_MODULES:=on

it compiles fine, but then I cant statically link

2013-02-12 08:28:41 -0500 asked a question Rotating Android Camera to Portrait

I am implementing the Android OpenCV SDK to make a camera app. I would like it to work for multiple UI orientations. I am extending the JavaCameraView in SDK 2.4.3.2. I am trying to figure out how to rotate the camera. I know what I have to do is write something like this

camera.setDisplayOrientation(90);

to get it to work in portrait, but I have tried it in multiple places, and none have worked for me. The camera still displays "sideways". If anyone has done a similar thing, please let me know

2013-02-12 08:10:32 -0500 commented answer Android camera image rotation

@matt.hammer I am using the JavaCameraView, there is no call to Camera.open(), any suggestions? I also have the S3 and have been frustrated with that line of code not actually changing the orientation

2013-02-11 08:28:03 -0500 received badge  Supporter (source)
2013-02-11 08:27:39 -0500 commented answer Android camera image rotation

@matt.hammer Where did you place this line of code???

2013-02-04 08:53:53 -0500 received badge  Editor (source)
2013-02-01 14:22:35 -0500 received badge  Necromancer (source)
2013-02-01 11:49:56 -0500 answered a question getting video to play fullscreen android

For anyone still looking for this, I have solved the issue (sort-of). I cannot seem to get this to work for OpenCV v 2.4.3. I have tried everything on the internet. However, in OpenCV 2.4.3.2 they have added a way to set the camera size

disconnectCamera();
mMaxHeight = //your desired height
mMaxWidth = //your desired width
connectCamera(mMaxWidth, mMaxHeight);

Check out the OpenCV Tutorial 5(not included in 2.4.3 version), specifically the SampleJavaCameraView -> setResolution Method

Edit: Also, make sure in your manifests, you have

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

I think if you don't it can sometimes shrink the size slightly, depending on the screen size