Help Center>
Optical Character Recognition>
FAQs>
SDK>
How Do I Change the Response Type in Returned Results?
Updated on 2023-10-26 GMT+08:00
How Do I Change the Response Type in Returned Results?
When using Python to call an OCR API, if you need to change the response type in the returned results, you can run the to_dict() or to_str() command to convert the format to JSON or str, respectively.
Figure 1 Example response
![Click to enlarge](https://support.huaweicloud.com/intl/en-us/ocr_faq/en-us_image_0000001595714958.png)
Parent topic: SDK
SDK FAQs
- Do OCR SDKs Need to Be Purchased?
- Do OCR SDKs Need Maven to Manage Dependency Packages?
- How Do I Change the Response Type in Returned Results?
- How Can I Fix an SSL Configuration Error?
- How Can I Fix a "connect timed out" Error?
- Why Does the Project ID Fail to Be Obtained?
- What Should I Do if I Forget My AK and SK?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore