Professional Documents
Culture Documents
Program Python
Program Python
import pytesseract
path1 = "C:/Users/Vlad2002/Desktop/sample5.jpg"
im = Image.open(path1)
else:
if "*" in c1:
c1 = c1.replace("*", "")
operator = operator + (int(c) * int(c1))
else:
c = c.replace("+", "")
operator = operator + int(c)
if "-" in c:
if "/" in c1:
c1 = c1.replace("/", "")
operator = operator + (int(c) / int(c1))
else:
if "*" in c1:
c1 = c1.replace("*", "")
operator = operator + (int(c) * int(c1))
else:
c = c.replace("-", "")
operator = operator - int(c)
print(operator)
print(operator)