Text Google vision api文本检测
我正在使用谷歌视觉api从图像中识别文本。日语中的图像Text Google vision api文本检测,text,detection,vision,Text,Detection,Vision,我正在使用谷歌视觉api从图像中识别文本。日语中的图像 但回应不是用日语,而是用英语。有谁能告诉我如何把英语改成日语。在请求中添加语言提示。例如,在C#中: 尝试键入“文档文本检测”而不是“文本检测”, 例如(在Java中) @{@“请求”:@[{@“图像”:@{@“内容”:imageData},@“图像上下文”:{@“语言提示”:@[@“ja”]},@“功能”:@[{@“类型”:@“文本检测”,@“maxResults”:@16},]}]};先生,这对Objective-CI可以吗?我对Obj
但回应不是用日语,而是用英语。有谁能告诉我如何把英语改成日语。在请求中添加语言提示。例如,在C#中: 尝试键入“文档文本检测”而不是“文本检测”, 例如(在Java中)
@{@“请求”:@[{@“图像”:@{@“内容”:imageData},@“图像上下文”:{@“语言提示”:@[@“ja”]},@“功能”:@[{@“类型”:@“文本检测”,@“maxResults”:@16},]}]};先生,这对Objective-CI可以吗?我对Objective-C不太了解,无法回答:-(
var responses = vision.Images.Annotate(
new BatchAnnotateImagesRequest()
{
Requests = new[] {
new AnnotateImageRequest() {
Features = new [] { new Feature() { Type =
"TEXT_DETECTION"}},
Image = new Image() { Content = imageContent },
ImageContext = new ImageContext()
{
LanguageHints = new string[] { "ja" }
}
}
}
}).Execute();
Feature feat = Feature.newBuilder().setType(Type.DOCUMENT_TEXT_DETECTION).build();