TIS2023-FMFI / evidencia-flias

Evidencia zásob plynov vo fľašiach v laboratóriu
The Unlicense
0 stars 0 forks source link

Research skenovania čiarových kódov mobilom #4

Closed gardenerik closed 9 months ago

gardenerik commented 11 months ago

Zistiť, aké sú vhodné knižnice / riešenia, otestovať.

spirka5 commented 11 months ago

pomocou openCV, pyzbar

import cv2
from pyzbar.pyzbar import decode

capture = cv2.VideoCapture(0)
cam = True

while cam:
    _, frame = capture.read()
    decoded = decode(frame)
    for obj in decoded:
        print("Data: ", obj.data)

    cv2.imshow("Frame", frame)
    key = cv2.waitKey(1)
    if key == 27:
        cam = False
gardenerik commented 11 months ago

@spirka5 skus pozriet, ci nie je nieco aj priamo v browseri, to by mozno bolo "jednoduchsie" na implementaciu :thinking: