I have a machine learning model which is provided with the url of a camera and after clicking the button the machine learning model get connected and starts analysing the video received from the camera. This happens but in another window which gets open by default when the model starts running. I have a Django web app, where the output data of the model is displayed on the website.

I want that whenever the url is submitted, the live video coming from that camera should open in my browser and not in another window. Please guide me as how to do this.

This is the input text-area and button:

<input type="text" name="videourl" id="id_videourl"/>
 <input type="button" class="btn btn-secondary btn-lg" id="id_submit" name="submit" value="Start" />

This sends an ajax call and the machine learning model connects and starts working. Kindly help me out here.

0 Answers