Start a new topic
Answered

ALPR in live camera feed

Hello, can i use ALPR on a live camera feed ?


Best Answer

Yes, our Visionboxes don't care where the image is coming from.


most IP Cameras allow you to grab a snapshot with an http call, if that's not possible you can use opencv to open an rtsp streaming and process it, ex:



import cv2

cap = cv2.VideoCapture('rtsp_url')

while True:
    _, frame = cap.read()
    img_as_jpeg_string = string = base64.b64encode(cv2.imencode('.jpg', frame)[1]).decode()
    post_to_visionbox(img_as_jpeg_string)


1 Comment

Answer

Yes, our Visionboxes don't care where the image is coming from.


most IP Cameras allow you to grab a snapshot with an http call, if that's not possible you can use opencv to open an rtsp streaming and process it, ex:



import cv2

cap = cv2.VideoCapture('rtsp_url')

while True:
    _, frame = cap.read()
    img_as_jpeg_string = string = base64.b64encode(cv2.imencode('.jpg', frame)[1]).decode()
    post_to_visionbox(img_as_jpeg_string)


Login or Signup to post a comment