So I call my C++ function through my OpenCVWrapper
. In this function I have to open a file which is located in my Xcode project. Is it possible to specify the desired path in C++ function?
Or I have to pass a file through the OpenCVWrapper
in Swift?
In short, it looks smth like:
func sample() {
OpenCVWrapper.booProcess()
}
in OpenCVWrapper.mm
@implementation OpenCVWrapper : NSObject
+ (void)booProcess {
boo();
}
- (void)boo:
{
return boo();
}
@end
blink.cpp
void boo()
{
cv::CascadeClassifier my_cascade;
my_cascade.load("bar.xml");
}
All necessary wrappers have been added.