This package provides a C# wrapper for the macOS LiveText API, allowing developers to easily integrate LiveText functionality into their C# applications.
To install the LiveText API C# wrapper, simply add the NuGet Package to your project.
To use the LiveText API C# wrapper, simply create a new instance of the RecognitionRequest
class and call the RecognizeAsync method to get the output.
var image = ...;
var request = new RecognitionRequest(image);
string recognizedText = request.RecognizeAsync();
- Build the swift helper as universal binary
cd swift
xcrun swift build -c release --arch arm64 --arch x86_64
cd ..
- Copy the binary to the csharp directory
cp ./swift/.build/apple/Products/Release/livetext-sharp ./csharp
- Build the C# package normally
This package is licensed under the MIT License. See the LICENSE
file for more information.