Run Python samples

You do not need to build Python samples, although you are free to do so. Just navigate to the individual folder and run the appropriate command. As an example, DocumentClassification might look like this:

python execute.py -service_url=http://bp-rec-s280:5002/v3
-input=”../../Sample Images/businessletter1.tif,../../Sample Images/contract1.tif,../../Sample Images/invoice1.tif"
-dcproject=”../../Sample Images/classifier.dcp"
-output=result.xml
-pages=1

These samples work using the relative paths, as shown above. The Python samples display a short help overview if any required parameters are missing. For help within the code, look for the PrintUsage() function. Unlike the Java samples, the Python samples accept paths relative to the individual sample folder and absolute paths either.