Initial work on using Apple's Vision framework to OCR subtitles
This commit is contained in:
6 files changed
+116
-13
No files matched your search
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// MP42TextRecognizer.h
|
||||
// MP42Foundation
|
||||
//
|
||||
// Created by Damiano Galassi on 29/09/2026.
|
||||
// Copyright © 2026 Damiano Galassi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol MP42TextRecognizer <NSObject>
|
||||
|
||||
- (instancetype)initWithLanguage:(NSString *)language;
|
||||
- (nullable NSString *)performOCROnCGImage:(CGImageRef)image;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in new issue
Block a user