This application identifies custom brands in video
- Setup your Video Indexer account. Go to videoindexer.ai and log in with your corporate account. Once here, click on your name and choose settings.
-
Grab your account id and make a note of it somewhere.
-
Sign in and go to Products->Authorization and choose Subscribe.
-
Setup Custom Vision AI account - go to customvision.ai and sign up (or log in).
-
Create a project.
-
Upload your images, tag them and press train.
This should deploy the following resources:
- The key values you grabbed from the earlier stages are needed here (leave the rest as is):
- Function App Name - has to be globally unique
- Storage Account Name - has to be globablly unique
- Custom Vision URL - This was grabbed earlier
- Custom Vision Key - this is the access key grabbed earlier
- Video Indexer Id - this is the id of your VI account
- Video Indexer Key - This is the key you grabbed from api-portal.videoindexer.ai
- Video Indexer Key Logic - This is the key you grabbed from api-portal.videoindexer.ai
- Download the latest FunctionApp zip file from the releases folder in this repo.
- Navigate to the FunctionApp code deploy page: https://<funtion_name>.scm.azurewebsites.net/ZipDeploy
- Drag and drop the FunctionApp zip file into the file area on the ZipDeploy page.
-
Grab the URL for each function app (there are 3 you need - ignore the CleanupFiles one). Do this by navigating to each function and pressing Get Function URL
-
Go to your logic app and choose edit.
-
Update the URLs as follows - note that you will need to switch to code view for http_getbrand:
-
Press Save.
-
Go to your storage account and create 2 containers: raw and results. You can do this via the portal or via Azure Storage Explorer.
To run this application you simply need to upload a video file to the RAW container. This will trigger the flow. Output is generated as .json file under the RESULTS container. The output will be something like this with times in hh:mm:ss.fff.
{
"fileName": "tester1.mxf",
"startTime": "00:00:00.2400000",
"endTime": "00:00:05.1200000"
}