project/app/utils/img_processing/google_api.py
Avoid deeply nested control flow statements. Open
Open
for symbol in word.symbols:
symbol_confidences.append(symbol.confidence)
# Calculate the overall confidence for the page
page_confidence = sum(symbol_confidences) / len(symbol_confidences)
Avoid deeply nested control flow statements. Open
Open
if self.text_moderator.check_word(str(word).lower()):
flagged = True
for symbol in word.symbols: