This project is designed to identify potiential crazy shooters by videos they uploaded (especially those saying something like "I'm gonna blow the community").
It is forked from https://github.com/gsi-upm/video-sentiment-analysis. Our plan is to develop basing on it or use it's result for further analysis.
Progress is not planned yet.
Help from psycologists are probably needed.
This project makes use of various APIs to analyze videos in real-time. It can also store the data from an analysis for later access.
When running a live analysis, the Google Web Speech Recognition API is used to transcribe the video as it is playing. Then, after every few words, a phrase is sent to the SEAS API. A sentiment value is parsed from the result and displayed in a line graph.
It can be also be used in a larger scope by providing sentiment analysis for video media.
Make a local copy of the folders containing the controller and widget (or one of them individually since they can function independently). Then, install the requirements1 listed in the stable-req.txt file.
Once the necessary libraries are installed, run the server.py file.
By default the sites will be available at:
Controller - https://localhost:8676
Widget - https://localhost:8675
####Live Analysis:
- Insert a video name (optional for the widget) and link.
- Select a dictionary.
- Select Live Analysis and press Submit.
- Modify the language and country accordingly.2
- Press play to start recognition and play the video.3,4
- Press pause to stop recognition and pause the video.
- Use the Jump to time text box to skip to a particular time in the video.
Warning: The in-browser Google Speech Recognition API that this project uses relies on microphone input. Thus, in order for it to work correctly, it is up to the user to redirect the video's sound output to his/her microphone.
####Existing Analysis:
- Select the transcript name and press submit.
- Use play, pause, and Jump to time to control the video.5
Controller | Widget | |
---|---|---|
Analysis | Live | Live or Existing |
Database | Storage Only | Access Only |
1 The cryptography library will fail to install if it is missing dependencies.
More information is available here.
2 The language options can be repeatedly modified at any time.
3 Microphone permission will be required the first time the site loads.
4 When using the controller, the data is also recorded to a database in MongoDB.
The default name is transcript_database.
5 The data and subtitles will automatically adjust.
General:
The browser will repeatedly ask for microphone permission if SSL is not used.