Ask Your Question
0

Native camera over HTC device

asked 2013-09-06 10:09:31 -0600

Hello,

I want to use OpenCV native camera over a HTC device (Android 4.1.1). I thought this was a kwnown issue that has been already corrected.

I am using OpenCV-2.4.6-android-sdk but I am not able to make my application (which uses OPENCV native camera) work on the HTC device (while it works well on a Galaxy S device). I also tried to use the native camera with the sample code "tutorial-1-camerapreview sample ", but It does not work on my HTC device. Could you give me any clues to make it work.

edit retag flag offensive close merge delete

Comments

Some devices just wont work, since the internal implementation by the developer/manufacturer is most likely not conform with the standard. So the opencv camera libs will fail. You could try to somehow use the standard android java api.

Maybe this somehow helps: http://stackoverflow.com/questions/15959552/unable-to-use-both-cameras-of-evo-4g-using-opencv4android

Moster gravatar imageMoster ( 2013-09-09 03:41:18 -0600 )edit

Actually, I have seen that the specific issue of HTC phone with native camera have been treated https://bitbucket.org/manctl/opencv/commits/all?page=907a9101eb7aca65e5f096cde387df65be8b271d So I expect that it should work, but may be have I misconfigured something?

androiDeveloper gravatar imageandroiDeveloper ( 2013-09-09 05:30:44 -0600 )edit

Which HTC device do you have? Just because it got fixed on some older ones like htc s, its wont necessarily work on newer ones. You also cant really misconfigure anything.

Moster gravatar imageMoster ( 2013-09-09 12:14:24 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-09-10 09:27:24 -0600

OpenCV native camera uses undocumented Android API that changes from version to version and from SoC vendor to SoC vendor. So, native camera support in OpenCV depends on SoC vendor, but not from phone vendor. There were some OpenCV problems with Qualcomm camera stack on Android 4.0.x. Some of them, but not all, were fixed after device update up to Android 4.1 and newer. The same situation with devices based on MTK processors. Native camera is not stable feature of OpenCV and I do not recommend you to use it in target apps.

edit flag offensive delete link more
0

answered 2013-09-08 19:35:28 -0600

hardy_bbs gravatar image

I can not run nativeActivity at my HUAWEI U9200 , it seams opencv can not support some mobile .

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-06 10:09:31 -0600

Seen: 411 times

Last updated: Sep 10 '13