<reponame>Jallill/image-text-search-python<filename>search-images.py
from re import X
import shelve

db = shelve.open('data/imagesText')

searchText = input('Texto a buscar ')
found = []
for key in list(db.keys()):
    if len((list(filter(lambda text: searchText in text, db[key])))) > 0:
        found.append(key)

for file in found:
    print(file)

db.close()
from re import X
import shelve

db = shelve.open('data/imagesText')

searchText = input('Texto a buscar ')
found = []
for key in list(db.keys()):
    if len((list(filter(lambda text: searchText in text, db[key])))) > 0:
        found.append(key)

for file in found:
    print(file)

db.close()