This is an android app based upon pytorchvideo using a pre-trained PyTorchVideo classification model on Android to see video classification results and latency, updated per second while the video plays on tested videos, videos from the Photos library, or even real-time videos.
- PyTorch 1.8.0/1.8.1, torchvision 0.9.1, PyTorchVideo (Optional)
- Python 3.8 or above (Optional)
- Android Pytorch library 1.8.0, torchvision library 1.8.0
- Android Studio 4.0.1 or later
Place the model alongwith it's classes in app/src/main/assets
folder as video_classification.pt
and classes.txt
respectively.
Open the project in android studio.
Select an Android emulator or, to test videos from your Camera Roll or live video, select an Android device to run the app. Pre-recorded video are also provided in app.
Some screenshots of the video classification results are as follows: