I'm trying to add opencv framework into built project(https://github.com/amolaks76/iOS-Camera-and-OpenCV) I found from Github. I'm just trying to run the app on my iPhone to see how opencv works with Swift.
I added opencv.framework which I found from opencv website. Even if I add the framework, it still complains like below image.
one thing I found is that opencv.framework has different image than apple's framework like below:
I've seen other stackoverflow questions about this matter and people suggested to make sure Always Search User Paths is Yes. I'm updating my search path setting below:
can you guys tell me what I'm doing wrong here?
use following
#import "opencv2/opencv.hpp"
and in build settings -> compile as -> objective c++
you need to download ovencv frame work from https://github.com/Itseez/opencv
add it to your project
Related
I am currently writing a super basic plugin using the JUCE framework and C code generated from a the Heavy Pure Data Online Compiler. The source code builds fine, however no standalone application, AudioUnit or VST are created by Xcode. My guess is that the project is not setup properly to use the included code, however I am still learning my way around Xcode and can't seem to work out what the problem is to fix the below errors. Any suggestions on how I can fix this?
Edit: Finally started using git and uploaded the project to GitHub here.
The projucer file you included is missing the heavy source folder. Add them in projucer on the left side in the file explorer area (right click in the file area on source and choose add existing files...
Hint the save and open in ide icon on top of the window
and there you go ... no linker error.
tested with XCode 8.3.3
Two remarks:
Never add files anywhere else than in projucer
You canĀ“t use XCode 9 beta with JUCE
I am very new to adding c/c++ library to iOS project. My requirement is to add DICOM toolkit (written in c/c++) to my swift ios project. I have spent two days with googling to find steps how to include and use it, but i could not find any such blogs that are using DICOM toolkit by Mergecom.
Can somebody help here..
Thanks.
There is nothing (apparent) special about the merge toolkit. Look at any tutorial about using C code/libraries.
Here is one;
https://maniacdev.com/2015/02/tutorial-a-quick-guide-to-using-c-libraries-within-swift-code
Have you asked Merge for a sample app?
I've done this. If you are working from the publicly available sources, you'll need to:
1 - make the DCMTK sources build their libraries for iOS using Xcode
2 - make a Objective-C bridging library, like iiDicom work on iOS
3 - create additional Objective-C bridging code to access DCMTK via Swift
To get DCMTK + iiDicom working under iOS, it will take about a month of off-and-on work to get both libraries ready for initial use with Xcode.
I'm using the ArUco library with OpenCV (more information here) but I can't find a way to build and run a program from scratch.
Once I installed the library I have access to different examples but if I want for instance to create a new file and add the library headers inside it, how can I compile and run it ? (with a command line or IDE, anything is fine)
Thank you
I sent and email to the library's author and he added clear instructions at the end of the project webpage :)
It seems you need to learn how to use your IDE's, compilation tools and general compilation basic stuff. This is not a question related to Aruco, or mostly any other tags you have set.
Try to lean CMake first, 'cause Aruco compilation is based on CMake: http://www.cmake.org/
You can start by just editing the aruco_simple example.
For a IDE that works right away with CMake you can try either Qt Creator >3.1 or KDevelop. Both free.
I am new to the XCode environment so apologies if this sounds trivial.
I am trying to use a third party library using for OpenCV that helps me do some blob analysis, CCL etc. Hosted here
I have searched a lot but there doesn't seem to be much documentation on how to go about adding and using these new libraries. I am using XCode 4.5.2, OpenCV 2.4.2.
When I simply add all the header files to the project folder and #include them in the source code, it fails to compile. I have also tried adding the "Header Paths" but it doesn't help. What am I missing?
I have tried to follow the instructions (compiling it using the terminal but it doesn't compile too) I am not clear on how or when exactly to use CMAKE.
Any help will be appreciated. Thank you.
I would suggest you using CvBlob on google code which is different from the one on willowgarage, I have got recently confused with this so take a look at this question for alternative blob analysis libraries.
Moreover, CvBlob has also a good support community here. (Search on "[cvblobslib]" or on "[blob] [opencv]")
Try this: cvBlob: OSX installation
Once you get it compiled, you need to include the library under Link Binary with Libraries in Build Phases. (This screenshot shows the core, imgproc, and highgui libraries. Your cvBlob library would go in the same place.)
I'm trying to get my webcam to capture video in OpenCV, version 2.2 in Windows 7 64 bit. However, I'm having some difficulties. None of the sample binaries that come with OpenCV can detect my webcam. Recently I came across this posting which suggested that the answer lies in recompiling a file, opencv_highgui with the property HAVE_VIDEOINPUT HAVE_DSHOW in the property page.
Can't access webcam with OpenCV
However, I'm unsure about procedurally how to do this. Can someone recommend as to how to go about this? Thanks.
Roughly, these are the important steps:
Download the OpenCV 2.2 source code,
set up a project to compile it, according to the InstallGuide,
make any changes you need to make in the code,
build the opencv_highgui library (dll and lib files, probably), and
replace these in your original project.
If you can configure the project to generate the highgui files only (and not every library in OpenCV), do so, since the change you need to do shouldn't affect other modules. This saves some time.
The detailed instructions to build OpenCV are in: http://opencv.willowgarage.com/wiki/InstallGuide. You should follow this guide.