⚠️ Dark Vision can currently only be deployed in the US South region.
-
Clone the app to your local environment from your terminal using the following command:
git clone https://github.com/IBM-Cloud/openwhisk-darkvisionapp.git
-
or Download and extract the source code from this archive
Extracting frames and audio from a video is achieved with ffmpeg. ffmpeg is not available to an Cloud Functions action written in JavaScript or Swift. Fortunately Cloud Functions allows to write an action as a Docker image and can retrieve this image from Docker Hub.
To build the extractor image, follow these steps:
-
Change to the processing/extractor directory.
-
Ensure your Docker environment works and that you have logged in Docker hub. To login use
docker login
. -
Run
./buildAndPush.sh youruserid/yourimagename
Note: On some systems this command needs to be run with
sudo
.
-
After a while, your image will be available in Docker Hub, ready for Cloud Functions.
-
Change the
DOCKER_EXTRACTOR_NAME
environment variable property in the Deploy stage of the toolchain and run the stage to use the new image.