MobileApp Architecture: Allow process client request using server scripts
<p>I am working on capstone project and I am looking for ideas to implement this one.</p>

<p>I have a working web application that was created using OpenCV Python and deployed on a Django Framework. Now I want to also create a hybrid mobile application for the project.  The idea is, the mobile app will allow the user to upload an image to the server, and then the web server will process the image then finally return a response to the mobile app. </p>

<p>===============================</p>

<p>Client (Hybrid Mobile app): </p>

<ol>
<li>Take image</li>
</ol>

<p>Web server:</p>

<ol>
<li>Receive user uploaded image</li>
<li>Call Image Processing class (views.py) and do something more in the backend</li>
<li>Save the result to the database</li>
<li>Display the result to the client/Response to client (could be a page redirect)</li>
</ol>

<p>============================</p>

<p>I know that it is possible to save an image to the database through REST API, however, I have no idea if it is possible for the client side to call a class from the server side through REST API? If no, then is there any other way to implement this method? Do know any references that can give me some ideas on how to implement it?</p>