Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ This is a Generative AI-powered application that analyzes frames from uploaded v
- Highlight frames flagged as inappropriate with detailed reasons and timecodes.
- Adjust AI confidence threshold and frame extraction interval. (Effects the prompt for confidence)

## Prerequisites
Before running the application, ensure you have:
- Python 3.8 or later installed
- An active Oracle Cloud Infrastructure (OCI) account
- Required Python dependencies installed
- OCI Generative AI model name and compartment ID

## How It Works
## Getting Started
1. **Upload Media:**
- Users upload a video or image file for analysis.
2. **Frame Extraction:**
Expand All @@ -28,14 +21,12 @@ Before running the application, ensure you have:
- Inappropriate frames (based on confidence threshold) are displayed along with the reason and timecode.
- A final PG-rating verdict is shown at the end.

## Example Output
```json
{
"AgeAppropriate": "not-appropriate",
"response": "Shows intense violence and blood spatter.",
"ConfidenceLevel": 0.97
}
```
## Prerequisites
Before running the application, ensure you have:
- Python 3.8 or later installed
- An active Oracle Cloud Infrastructure (OCI) account
- Required Python dependencies installed
- OCI Generative AI model name and compartment ID

## Installation
Clone this repository and navigate to the project directory:
Expand Down Expand Up @@ -68,3 +59,21 @@ streamlit run <script-name>.py
```

Replace `<script-name>.py` with the filename of your main script (e.g., `video_analyzer.py`).

## Example Output
```json
{
"AgeAppropriate": "not-appropriate",
"response": "Shows intense violence and blood spatter.",
"ConfidenceLevel": 0.97
}
```

## License
Copyright (c) 2024 Oracle and/or its affiliates.

Licensed under the Universal Permissive License (UPL), Version 1.0.

See [LICENSE](LICENSE.txt) for more details.

ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.