Initial work on using Apple's Vision framework to OCR subtitles

This commit is contained in:
Damiano Galassi committed 2026-09-29 11:35:08 +02:00
1 parent 0a8f6fe4ea
commit 993151da53
6 files changed
+116 -13

No files matched your search

+20
View File
@@ -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