On one hand, i created two JS files, with the 1st one, i can take picture from camera, and the second, detect the object(based on a machine learning model developed in python), on the other hand, i created a flask server. for now, i can take the picture from 1st JS and send it to flask where it's stored in a directory.
My question is, while i can send the picture from 1st JS to flask, how can i send the same picture from flask to 2nd JS with some details like the details about the picture's object that?

thanks.