Hello @Devicharan, Nagubilli [Admin] (US) , if you are looking for the Language detection feature, then after adding the languages
feature to the analyzeResult
request predicts the detected primary language for each text line along with the confidence
in the languages
collection under analyzeResult
.
Here is the sample code you can refer to:
AnalyzeDocumentOperation operation = await client.AnalyzeDocumentAsync(WaitUntil.Completed, "prebuilt-read", stream);
AnalyzeResult result = operation.Value;
Console.WriteLine("Detected languages:");
foreach (DocumentLanguage language in result.Languages)
{
Console.WriteLine($" Found language with locale '{language.Locale}' and confidence language.Confidence}.");
}
Here please refer to this documentation related to SDK : https://learn.microsoft.com/en-us/dotnet/api/azure.ai.formrecognizer.documentanalysis.documentanalysisfeature.languages?view=azure-dotnet#azure-ai-formrecognizer-documentanalysis-documentanalysisfeature-languages
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.