Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftOCR Framework issue #146

Open
TLHorse opened this issue Oct 6, 2018 · 1 comment
Open

SwiftOCR Framework issue #146

TLHorse opened this issue Oct 6, 2018 · 1 comment

Comments

@TLHorse
Copy link

TLHorse commented Oct 6, 2018

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
Copy link

LitDragon commented Oct 18, 2018

You could Change GPUImageOutput * to GPUImageInput
hope this help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants