Exemplo n.º 1
0
def test_google_vision_api_properties_extractor():
    ext = GoogleVisionAPIPropertyExtractor(num_retries=5)
    filename = join(get_test_data_path(), 'image', 'apple.jpg')
    stim = ImageStim(filename)
    result = ext.transform(stim).to_df()
    assert '158, 13, 29' in result.columns
    assert np.isfinite(result['158, 13, 29'][0])
Exemplo n.º 2
0
def test_google_vision_api_properties_extractor():
    ext = GoogleVisionAPIPropertyExtractor(num_retries=5)
    filename = join(get_test_data_path(), 'image', 'apple.jpg')
    stim = ImageStim(filename)
    result = ext.transform(stim).to_df()
    assert '158, 13, 29' in result.columns
    assert np.isfinite(result['158, 13, 29'][0])