Add scan flow MVP and local Axiom skill workspace
This snapshot establishes the camera-to-result recognition flow and related tests while checking in the project skill/docs assets required for the configured local tooling.
This commit is contained in:
19
StackDex/Services/CloudOCRClient.swift
Normal file
19
StackDex/Services/CloudOCRClient.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
import Foundation
|
||||
|
||||
struct CloudOCRRequest {
|
||||
let jpegData: Data
|
||||
}
|
||||
|
||||
struct CloudOCRTextResponse {
|
||||
let markdown: String
|
||||
}
|
||||
|
||||
protocol CloudOCRClient {
|
||||
func recognizeText(from request: CloudOCRRequest) async throws -> CloudOCRTextResponse?
|
||||
}
|
||||
|
||||
struct StubCloudOCRClient: CloudOCRClient {
|
||||
func recognizeText(from request: CloudOCRRequest) async throws -> CloudOCRTextResponse? {
|
||||
nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user