NMAC427 / SwiftOCR

Fast and simple OCR library written in Swift
Apache License 2.0
4.62k stars 480 forks source link

SwiftOCR Framework issue #146

Open TLHorse opened 5 years ago

TLHorse commented 5 years ago

I am using SwiftOCR. When I imported 'SwiftOCR' Xcode said there's an error in the framework. And I went to SwiftOCR.xcodeproj and have a look, I saw there's a function of code written in Objective-C in SwiftOCR-master/framework/SwiftOCR/GPUImage-master/framework/Source/GPUImageVideoCamera.m:

- (void)addTarget:(id<GPUImageOutput *>)newTarget atTextureLocation:(NSInteger)textureLocation;
{
    [super addTarget:newTarget atTextureLocation:textureLocation];

    [newTarget setInputRotation:outputRotation atIndex:textureLocation];
}

there's an issue on the first line: Type arguments cannot be applied to non-class type 'id'. But I'm not good at Objective-C! Who can help me to fix it? Thanks :-)

LitDragon commented 5 years ago

You could Change GPUImageOutput * to GPUImageInput hope this help you