Closed lawrencegripper closed 5 years ago
Hi, @lawrencegripper . The mixed
enum value is only valid in the preview version of batch_read_*
API. Now this API enters public release version and mode
parameter is also removed.
To fix the error, you should simply remove mode
parameter in your function call.
So removing the mode=
section of my call will result in me getting the Mixed
result which is matching against both handwritten and printed text?
Specifically the result I want is the preview
mixed mode result.
Yes. You'll get the Mixed
result which matches both handwritten and printed text. We've added a component in the public release version which auto detects the text recognition mode.
@areddish ?
@lmazuel - Looks like @toothache has provided a solution, I think this can be closed.
Happy to close this one off, can we confirm that the field will be removed from the SDK? Great to have a workaround but maybe misleading for others too.
@lawrencegripper , yes. we removed the mode
parameter with this PR.
Cool! Thanks.
The current SDK for Cognitive Services CustomVision service is missing the "Mixed" mode option from the "batchread*" calls.
API Definition
API definition showing use of "Mixed" mode
Current SDK Enum
The current Enum is missing the option for "Mixed" mode.
https://github.com/Azure/azure-sdk-for-python/blob/815deb24a5051e792c80edfe3d8e1904840135dd/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/computer_vision_client_enums.py#L85-L89
Attempted workaround
One way I attempted to workaround this issue was to create a new instance of the Enum with the string value "Mixed", however, this causes a validation error.
Failure messages