import cv2
import pytesseract
import os
from gtts import gTTS
from playsound import playsound

cap = cv2.VideoCapture("http://192.168.3.192:8080/video")
cap.set(3, 640)
cap.set(4, 480)

while True:
    _, img = cap.read()
    boxes = pytesseract.image_to_data(img)
    for a, b in enumerate(boxes.splitlines()):
        if a != 0:
            b = b.split()
            if len(b) == 12:
                x, y, w, h = int(b[6]), int(b[7]), int(b[8]), int(b[9])
                cv2.putText(img, b[11], (x, y - 5), cv2.FONT_HERSHEY_SIMPLEX, 1, (50, 50, 255), 2)
                cv2.rectangle(img, (x, y), (x + w, y + h), (50, 50, 255), 2)
                print(b[11])
    cv2.imshow("Result", img)
    if cv2.waitKey(1) & 0xFF ==ord('q'):
        break

e2fe87f67365d9272b041ccc31905c5a5246ba2a
<mask token>

<mask token>
cap.set(3, 640)
cap.set(4, 480)
while True:
    _, img = cap.read()
    boxes = pytesseract.image_to_data(img)
    for a, b in enumerate(boxes.splitlines()):
        if a != 0:
            b = b.split()
            if len(b) == 12:
                x, y, w, h = int(b[6]), int(b[7]), int(b[8]), int(b[9])
                cv2.putText(img, b[11], (x, y - 5), cv2.
                    FONT_HERSHEY_SIMPLEX, 1, (50, 50, 255), 2)
                cv2.rectangle(img, (x, y), (x + w, y + h), (50, 50, 255), 2)
                print(b[11])
    cv2.imshow('Result', img)
    if cv2.waitKey(1) & 255 == ord('q'):
        break

<mask token>
cap = cv2.VideoCapture('http://192.168.3.192:8080/video')
cap.set(3, 640)
cap.set(4, 480)
while True:
    _, img = cap.read()
    boxes = pytesseract.image_to_data(img)
    for a, b in enumerate(boxes.splitlines()):
        if a != 0:
            b = b.split()
            if len(b) == 12:
                x, y, w, h = int(b[6]), int(b[7]), int(b[8]), int(b[9])
                cv2.putText(img, b[11], (x, y - 5), cv2.
                    FONT_HERSHEY_SIMPLEX, 1, (50, 50, 255), 2)
                cv2.rectangle(img, (x, y), (x + w, y + h), (50, 50, 255), 2)
                print(b[11])
    cv2.imshow('Result', img)
    if cv2.waitKey(1) & 255 == ord('q'):
        break

import cv2
import pytesseract
import os
from gtts import gTTS
from playsound import playsound
cap = cv2.VideoCapture('http://192.168.3.192:8080/video')
cap.set(3, 640)
cap.set(4, 480)
while True:
    _, img = cap.read()
    boxes = pytesseract.image_to_data(img)
    for a, b in enumerate(boxes.splitlines()):
        if a != 0:
            b = b.split()
            if len(b) == 12:
                x, y, w, h = int(b[6]), int(b[7]), int(b[8]), int(b[9])
                cv2.putText(img, b[11], (x, y - 5), cv2.
                    FONT_HERSHEY_SIMPLEX, 1, (50, 50, 255), 2)
                cv2.rectangle(img, (x, y), (x + w, y + h), (50, 50, 255), 2)
                print(b[11])
    cv2.imshow('Result', img)
    if cv2.waitKey(1) & 255 == ord('q'):
        break

import cv2
import pytesseract
import os
from gtts import gTTS
from playsound import playsound

cap = cv2.VideoCapture("http://192.168.3.192:8080/video")
cap.set(3, 640)
cap.set(4, 480)

while True:
    _, img = cap.read()
    boxes = pytesseract.image_to_data(img)
    for a, b in enumerate(boxes.splitlines()):
        if a != 0:
            b = b.split()
            if len(b) == 12:
                x, y, w, h = int(b[6]), int(b[7]), int(b[8]), int(b[9])
                cv2.putText(img, b[11], (x, y - 5), cv2.FONT_HERSHEY_SIMPLEX, 1, (50, 50, 255), 2)
                cv2.rectangle(img, (x, y), (x + w, y + h), (50, 50, 255), 2)
                print(b[11])
    cv2.imshow("Result", img)
    if cv2.waitKey(1) & 0xFF ==ord('q'):
        break
