Executing a Python Script FROM MRL

Here is my intention alongwith the sample code I am using.

1. Take a photo using OpenCv, Sphinx, AcapelaSpeech. Save the Photo in a Directory. C:\Users\Jaideep\Desktop\MRL\develop\*.jpg. This is achieved using takephoto.py. This works from with MRL. Thanks to GroG and Mats for all the help.

2. Create a python Script to get the Latest photo from the directory. This is achieved by get_latest_photo.py. This works from cmd line. NEED to figure out how to run this script from MRL and get the output. the output is stored in variable "newest". - ANY help here is greatly appreciated.
 
3. Create a python script to talk to Google Vision API, for LABEL_DETECTION, and accept the value of "newest" as an arg, and get label for the image back. This is achieved using label.py and it works at cmd line. NEED to figure out how to run this script from MRL and get the output as a variable "label". - ANY help here is greatly appreciated.
 
4. Get Acapela to say the value of "label". - ANY help here is greatly appreciated.
 
 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
GroG's picture

Working on GoogleCloud

Working on GoogleCloud service...

http://myrobotlab.org/content/yikes-big-brother-watching-aka-googlecloud...