2020-10-23 09:46:47 -0600 | received badge | ● Nice Answer (source) |
2018-02-09 09:09:18 -0600 | received badge | ● Famous Question (source) |
2017-11-03 19:55:01 -0600 | received badge | ● Notable Question (source) |
2017-06-17 04:42:03 -0600 | received badge | ● Notable Question (source) |
2015-12-24 06:54:53 -0600 | received badge | ● Notable Question (source) |
2015-12-15 20:59:55 -0600 | received badge | ● Popular Question (source) |
2015-10-17 07:02:49 -0600 | received badge | ● Popular Question (source) |
2014-11-07 12:16:22 -0600 | received badge | ● Popular Question (source) |
2014-09-02 06:10:33 -0600 | marked best answer | Blank screen on android 4.2 Hi My OpenCV demo on Google Play, a superset of some of the demo apps, gives me a blank screen on Android 4.2 I have tried using OpenCV 2.4.3 and 2.4.0 with the same result. Here's my stack trace: I don't get any compile or run errors, but no frames are being processed because some part of the lib is failing to load. Can anyone point me in the right direction here please? I'm struggling. Many thanks Barry |
2014-03-17 01:20:01 -0600 | received badge | ● Student (source) |
2013-03-26 10:21:06 -0600 | received badge | ● Supporter (source) |
2013-03-20 06:37:08 -0600 | commented question | facial recognition for a personal control I suspect OpenCV is used for /far/ more morally suspect tasks... you seem to be reading a lot into the OPs question, it might be simply to ID someone who is not on the employee list, some kind of security thing, no? |
2013-03-18 06:40:39 -0600 | answered a question | what is the differences between lines and contours Canny detects edges of things in an image, returning a black and white version of the image, where white pixels indicate part of an edge - the contours. The returned object is still an image (in effect a bitmap, if not a Bitmap). Hough Lines takes the results from the Canny process and looks for straight sections among the highlighted edges and returns the end points of those straight lines, giving you a set of vector lines to play with. |
2013-03-18 03:48:25 -0600 | answered a question | Android: Stretch camera Until the new feature comes out in the next release, here's a temporary fix: http://answers.opencv.org/question/8639/android-getting-largest-preview-image-possible/ B. |
2013-03-17 13:27:35 -0600 | received badge | ● Teacher (source) |
2013-03-16 06:36:45 -0600 | received badge | ● Necromancer (source) |
2013-03-16 05:12:32 -0600 | answered a question | Is it possible to use front camera with 2.4.2 for android? I was looking for the same thing and @StevenPuttemans directed me here. This is another solution, based on the format of the example apps in 2.4.4: In your layout, use two views, initially both invisible, at the same location on the screen. One uses the default camera, one the second. This code assumes you have two cameras and that neither are locked or otherwise unavailable. You'll need to add your own code to check to see if a second camera is available and if not, don't allow this code to run: In your onCreate, get a handle to the two views and set up listeners for both cameras: Also make sure the views are disabled in onPause and onDestroy: In my menu I have an option for swapping cameras, here's what it does: If anyone wants the entire source code, just let me know. |
2013-03-16 04:57:34 -0600 | commented answer | Android opencv-2.4.4: how do I select the front camera? Putting my answer as an alternative to the answer on the link provided by Steven. |
2013-03-15 07:50:26 -0600 | received badge | ● Citizen Patrol (source) |
2013-03-15 07:40:28 -0600 | commented answer | Android opencv-2.4.4: how do I select the front camera? OK, thanks for the amusing link, and while I deserved the slap yesterday, I did search for this - honest. I even searched here - this kind of thing, which was no help: http://answers.opencv.org/questions/?search=&query=android+opencv-2.4.4+front+camera Knowing the 'right' local search engine terms is a handy thing... Have a good weekend and stay away from the computer :) |
2013-03-15 06:59:44 -0600 | asked a question | Android opencv-2.4.4: how do I select the front camera? Hi I can't find any good reference on how to change the 2.4.4 tutorials to work with the front facing camera. Can someone point me in the right direction please? With this in the manifest: And this in onCreate: Which calls in OpenCVDemo2View: ... I get images from the default camera - same if I don't try to select a camera. But if I use selectCamera(0) I get a message saying, "It seems that you [sic] device does not support camera (or it is locked). Application will be closed." Any pointers to good info on this would be welcomed. Many thanks Barry |
2013-03-15 03:52:09 -0600 | commented answer | Android: getting largest preview image possible That's great, and you'll probably do a neater job than I did! :) |
2013-03-14 08:14:30 -0600 | received badge | ● Self-Learner (source) |
2013-03-14 07:21:06 -0600 | answered a question | Android: getting largest preview image possible Here's what I did (thanks Alexander): This code goes into CameraBridgeViewBase.java in order to scale the bitmap to the size of the screen. The file is at: [your path to the sdk]\OpenCV-2.4.4-android-sdk\sdk\java\src\org\opencv\android So I now have an image which looks like this: Which was what I wanted. |
2013-03-14 07:11:06 -0600 | commented answer | Android 4.2 OpenCV 2.4.4 Highgui.imwrite fails Well deserved. I thank you. Reminder to self: If the bug isn't where you are looking then it is probably somewhere else. |
2013-03-14 06:51:49 -0600 | received badge | ● Self-Learner (source) |
2013-03-14 06:12:26 -0600 | answered a question | Android 4.2 OpenCV 2.4.4 Highgui.imwrite fails I can't believe it. [facepalm]. Add this to your manifest file Barry: Would somebody come and slap me please? I managed to remove the write permission from the manifest so really there shouldn't be any surprise that it wouldn't write... Doh. Barry |
2013-03-14 04:29:37 -0600 | commented question | Best way to get most FPS android camera? @Rui Interesting... thanks. Fortunately I'm just experimenting with OpenCV really and don't have a serious need for high speed, but 10fps is very disappointing :( |
2013-03-13 06:39:20 -0600 | commented question | Best way to get most FPS android camera? I'd be interested to know the answer to this too... I recently changed from an HTC Desire S to a Nexus 4 and despite the significant increase in processor power, I get very similar frame rates in my OpenCV apps - using the preview at the same resolution (800x480). I expected the simple increase in computing power to give me a clear boost, even tho of course at the same time I changed from Android 2.3.x to 4.2 and OpenCV from 2.4.0 to 2.4.4, but even with very light use of OpenCV calls I never get above 10fps. |
2013-03-13 06:38:25 -0600 | answered a question | Best way to get most FPS android camera? I'd be interested to know the answer to this too... I recently changed from an HTC Desire S to a Nexus 4 and despite the significant increase in processor power, I get very similar frame rates in my OpenCV apps - using the preview at the same resolution (800x480). I expected the simple increase in computing power to give me a clear boost, even tho of course at the same time I changed from Android 2.3.x to 4.2 and OpenCV from 2.4.0 to 2.4.4, but even with very light use of OpenCV calls I never get above 10fps. |
2013-03-07 09:45:56 -0600 | marked best answer | Android: getting largest preview image possible The Nexus 4 has a screen res of 1280x768 (with no title bar etc). According to getResolutionList() the largest preview image from OpenCV (item 0 in the list) is 1280x720, so in onCameraFrame, why does the image always come through at a maximum of 800x480. Even when I try to force the size to the maximum using setResolution(mResolutionList.get(0)) it sticks at 800x480. Can anyone give me some clue as to what I'm doing wrong? Many thanks Baz EDIT: ps I'm using 2.4.4 on Android 4.2. EDIT: To add some explanation about the answer, here's a picture: The total screen res on the Nexus is 1280x768, but that includes the buttons on the right, so the total screen I have to play with is 1196x768 (the red dotted line). The largest preview image reported by getResolutionList is 1280x720, but that won't fit, so despite being listed as available... it isn't really. Next job: Work out how to scale up the largest preview which will fit (800x480 - the blue dotted line) to fill the screen without slamming performance. |
2013-03-07 06:34:35 -0600 | asked a question | Android 4.2 OpenCV 2.4.4 Highgui.imwrite fails Hi This code used to work but on Android 4.2 and OpenCV 2.4.4 it fails, but I don't know why. Can anyone shed any light on it for me? Thanks for any help. Baz bool comes back false every time. The file path/name is as it should be ("storage/emulated/0/Pictures/barry.png") for User #0 and the directory Pictures is there. What can make imwrite return false? Many thanks Baz |