mirror of https://github.com/MISP/misp-modules
fix: [ocr_enrich] Making Pep8 happy
parent
97d4950f82
commit
300cdc7a4c
|
@ -40,7 +40,7 @@ def handler(q=False):
|
||||||
try:
|
try:
|
||||||
decoded = pytesseract.image_to_string(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
|
decoded = pytesseract.image_to_string(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
|
||||||
return {
|
return {
|
||||||
'results':[
|
'results': [
|
||||||
{
|
{
|
||||||
'types': ['freetext'],
|
'types': ['freetext'],
|
||||||
'values': list(filter_decoded(decoded)),
|
'values': list(filter_decoded(decoded)),
|
||||||
|
|
Loading…
Reference in New Issue