def test_google_vision_api_text_converter(): conv = GoogleVisionAPITextConverter(num_retries=5) filename = join(IMAGE_DIR, 'button.jpg') stim = ImageStim(filename) text = conv.transform(stim).text assert 'Exit' in text conv = GoogleVisionAPITextConverter(handle_annotations='concatenate') text = conv.transform(stim).text assert 'Exit' in text
def test_google_vision_api_text_converter(): conv = GoogleVisionAPITextConverter(num_retries=5) filename = join(get_test_data_path(), 'image', 'button.jpg') stim = ImageStim(filename) text = conv.transform(stim).text assert 'Exit' in text conv = GoogleVisionAPITextConverter(handle_annotations='concatenate') text = conv.transform(stim).text assert 'Exit' in text