from django.test import TestCase

# Create your tests here.
from PIL import Image
from pytesseract import image_to_string
print("------------------------")

pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files (x86)/Tesseract-OCR/tesseract'


img = Image.open('api/backside.jpg')

img.show()

text = image_to_string(img)
print("<<<<<<<<>>>>>>>>>>>>>>>>>>")
print(text)


7c9de4f1bf3416483d635781acc48a88afcbee3b
<mask token>

<mask token>
print('------------------------')
<mask token>
img.show()
<mask token>
print('<<<<<<<<>>>>>>>>>>>>>>>>>>')
print(text)

<mask token>
print('------------------------')
pytesseract.pytesseract.tesseract_cmd = (
    'C:/Program Files (x86)/Tesseract-OCR/tesseract')
img = Image.open('api/backside.jpg')
img.show()
text = image_to_string(img)
print('<<<<<<<<>>>>>>>>>>>>>>>>>>')
print(text)

from django.test import TestCase
from PIL import Image
from pytesseract import image_to_string
print('------------------------')
pytesseract.pytesseract.tesseract_cmd = (
    'C:/Program Files (x86)/Tesseract-OCR/tesseract')
img = Image.open('api/backside.jpg')
img.show()
text = image_to_string(img)
print('<<<<<<<<>>>>>>>>>>>>>>>>>>')
print(text)

from django.test import TestCase

# Create your tests here.
from PIL import Image
from pytesseract import image_to_string
print("------------------------")

pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files (x86)/Tesseract-OCR/tesseract'


img = Image.open('api/backside.jpg')

img.show()

text = image_to_string(img)
print("<<<<<<<<>>>>>>>>>>>>>>>>>>")
print(text)

