2015-08-11 09:17:31 -0600 | asked a question | OpenCV for iOS - Linking Libraries in Xcode Hi, as part of a team project I intend to implement obstacle detection for a robot using open cv. I am now at a point where I have functional code that runs on OS X and uses my laptop camera to detect obstacles approaching it. However the robot runs iOS (it is an iPad at heart) and thus requires me to build for iOS. Obviously the linker now doesn't accept the OS X library files, because of architecture mismatches. So far it is set up as follows: In order to perform the necessary modifications for iOS I first of all changed the valid architectures to Am I missing something here? Adjusting header/library search paths to include either nothing or the OS X OpenCV library files from These in turn are comprised of: Do I need to link any part of these folders into my project? I am grateful for any advice. Warm regards, |
2015-07-27 11:22:42 -0600 | received badge | ● Self-Learner (source) |
2015-07-27 11:18:16 -0600 | answered a question | Issue Masking Input Image to findContours Turns out that the constructor of |
2015-07-27 03:35:26 -0600 | commented question | Issue Masking Input Image to findContours Hi Matman,
thank you for your reply!
As far as I'm aware |
2015-07-25 11:21:08 -0600 | received badge | ● Editor (source) |
2015-07-25 10:19:47 -0600 | asked a question | Issue Masking Input Image to findContours Hi, I am currently implementing obstacle detection using the camera output of a robot's floor-directed video camera. Using canny edge detection as preprocessing I am able to efficiently find contours using findContours. Whenever I find sufficient amounts of contours I send out an obstacle warning. So far so good - code compiles and works using laptop camera. The last remaining issue is that the robot films its own body using the camera (i.e. its base and wheels) and I obviously do not consider them to be obstacles and would hence like to exclude them from contour finding. Seeing that neither canny nor findContours provide masking functionality, I decided to mask the input myself. So what I am currently doing is performing canny edge on the whole image and then overwriting the area to be ignored with zeroes (i.e. color black), before I pass the image to find contours. I do this using copyTo(). However findContours throws an "Unrecognized or unsupported array type in function cvGetMat" exception if my mask indicates to overwrite nothing, and copyTo() an "EXC_BAD_ACCESS" exception if my mask indicates to overwrite everything. I am unable to trace this error, as I assert type and size equality before using copyTo() and input and mask are static and therefore never empty. I would highly appreciate some feedback. I am guessing I am making a very fundamental mistake, as copyTo() should copy nothing given the code below (with the empty mask) and therefore the code should run just as before. Any feedback is appreciated. Warm regards, EDIT: Alternative approach using ... (more) |