通过文字识别后的数据,如何只提取 text 中的内容?
回答
收藏

通过文字识别后的数据,如何只提取 text 中的内容?

A
AndyGu
2024-02-15 14:01·浏览量:313
A
AndyGu
发布于 2024-02-15 14:01313浏览

通过文字识别后,得到以下信息

xbot_visual_ocr_general_text_with_location(words=[xbot_visual_ocr_general_word(text='22834.', left='6', top='3', width='67', height='25')], raw_data={'Response': {'Angel': 359.989990234375, 'Angle': 359.989990234375, 'RequestId': '84453d99-c415-406f-b733-7071a4de3e99', 'TextDetections': [{'AdvancedInfo': '{"Parag":{"ParagNo":1}}', 'Confidence': 100, 'DetectedText': '22834.', 'ItemPolygon': {'Height': 25, 'Width': 67, 'X': 6, 'Y': 3}, 'Polygon': [{'X': 6, 'Y': 3}, {'X': 72, 'Y': 3}, {'X': 72, 'Y': 27}, {'X': 6, 'Y': 27}], 'WordCoordPoint': [], 'Words': []}]}}, request_id='84453d99-c415-406f-b733-7071a4de3e99')


如何只提取text数据?就是上面数据中的“22834”,函数表达式该怎么写?

收藏
全部回答1
最新
发布回答
回答