EyeOfCharacteristics Python Webservice to analyze images/videos.
- Clone or download this repository to your local computer and unpack the archive if necessary
- Open your console and change (
cd
) to the new directory - Type on your command line
pip3 install -r requirements.txt
and press enter
To analyze the live video of your webcam use the following command:
python3 main.py
Also you are able to analyze a single image or video:
python3 main.py -i testing/test.jpg
python3 main.py -iv testing/test.mov
- Complete the setup tutorial
- Type on your command line
python3 connect.py
- Your server will be running on http://0.0.0.0:5000
- Clone or download this repository to your local computer and unpack the archive if necessary
- Open your console and change (
cd
) to the new directory - Login to your IBM Cloud account
bx login -sso
- Set your target space
bx target --cf -s {SPACE}
- Push your application
bx cf push eoc-webservice
- Open your console
- Navigate into the directory EyeOfCharacteristicsPythonService
- Type
python3 main.py
Be sure to use Python 3.x (Requirements)
Also you can use the following parameter to specialize your request-
usage: main.py [-h] [-i PATH | -iv PATH] [-v]
optional arguments:
Short | Long | Description |
---|---|---|
-h | --help | show this help message and exit |
-i | --image_path | if set, images in path are used instead of webcam |
-iv | --image_video_path | if set, video in path are used instead of webcam |
-v | --version | print the version number and exit |
- Python 3.x
- Console like Linux/macOS Terminal or Windows PowerShell
- IBM Cloud CLI
- Lars Dittert lars.dittert@de.ibm.com
Copyright (C) 2019 IBM Deutschland