Sending Image From ESP32 CAM

Hello Guys !
I am working on a project in which I want to send image taken by ESP32 CAM to a server for human detection and then return whether the human is detected or not to ESP32 CAM for display.
I am thinking of using python socket server (It would be easier as I have to detect a person) for this but I am not sure how to do that. Can you please suggest me how to do it or any other way to do it?

Thanks in advance !