twelve17 / openalpr-ios

Xcode Framework for the openalpr library
GNU General Public License v3.0
116 stars 35 forks source link

error: expected a type #33

Closed sssilver closed 7 years ago

sssilver commented 7 years ago

Hi,

I get the following error when trying to build my mixed-codebase Swift/Objective C iOS app:

/Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h:6:9: note: in file included from /Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h:6:
#import "OpenALPR.h"
        ^
/Users/silver/projects/iOS/Lice/Lice/OpenALPR.h:22:21: error: expected a type
- (void) scanImage:(cv::Mat&)colorImage
                    ^
<unknown>:0: error: failed to import bridging header '/Users/silver/projects/iOS/Lice/Lice/Lice-Bridging-Header.h'

Any tips?

emericspiroux commented 7 years ago

Set it to char* and give directly the path of your image :

AlprResults recognize(std::string filepath);
twelve17 commented 7 years ago

Closing due to OP not responding to suggested solution