I'm trying to integrate Flask with Laravel for a Automatic Number Place Recognition System, the goal is to have Laravel as my main frontend and all object detections would be run on Flask, to create this separate environment (I'm using Laravel since this is what I'm more experienced with), I'm curious as how would I get the live video feed from a camera to be sent over through the Flask API for it to process the object detection.
As I mentioned before, I would like to put all of my object detection code into a python file rather than using Laravel's OpenCV, this is because based on what I read this past few weeks, Laravel's OpenCV package isn't as mature as that in Python, so that's also a factor as to why I choose to use Flask.
I'm asking how it can be done, can I start the Flask server from Laravel when I start the system? How can I get the live video feed from the frontend and send it to Flask for processing? What are the pros and cons of doing this approach or is there better alternatives on how to make this work?