You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai/generative-ai-service/Video-Image-Analysis-using-Langchain/README.md
+25-16Lines changed: 25 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,7 @@ This is a Generative AI-powered application that analyzes frames from uploaded v
9
9
- Highlight frames flagged as inappropriate with detailed reasons and timecodes.
10
10
- Adjust AI confidence threshold and frame extraction interval. (Effects the prompt for confidence)
11
11
12
-
## Prerequisites
13
-
Before running the application, ensure you have:
14
-
- Python 3.8 or later installed
15
-
- An active Oracle Cloud Infrastructure (OCI) account
16
-
- Required Python dependencies installed
17
-
- OCI Generative AI model name and compartment ID
18
-
19
-
## How It Works
12
+
## Getting Started
20
13
1.**Upload Media:**
21
14
- Users upload a video or image file for analysis.
22
15
2.**Frame Extraction:**
@@ -28,14 +21,12 @@ Before running the application, ensure you have:
28
21
- Inappropriate frames (based on confidence threshold) are displayed along with the reason and timecode.
29
22
- A final PG-rating verdict is shown at the end.
30
23
31
-
## Example Output
32
-
```json
33
-
{
34
-
"AgeAppropriate": "not-appropriate",
35
-
"response": "Shows intense violence and blood spatter.",
36
-
"ConfidenceLevel": 0.97
37
-
}
38
-
```
24
+
## Prerequisites
25
+
Before running the application, ensure you have:
26
+
- Python 3.8 or later installed
27
+
- An active Oracle Cloud Infrastructure (OCI) account
28
+
- Required Python dependencies installed
29
+
- OCI Generative AI model name and compartment ID
39
30
40
31
## Installation
41
32
Clone this repository and navigate to the project directory:
@@ -68,3 +59,21 @@ streamlit run <script-name>.py
68
59
```
69
60
70
61
Replace `<script-name>.py` with the filename of your main script (e.g., `video_analyzer.py`).
62
+
63
+
## Example Output
64
+
```json
65
+
{
66
+
"AgeAppropriate": "not-appropriate",
67
+
"response": "Shows intense violence and blood spatter.",
68
+
"ConfidenceLevel": 0.97
69
+
}
70
+
```
71
+
72
+
## License
73
+
Copyright (c) 2024 Oracle and/or its affiliates.
74
+
75
+
Licensed under the Universal Permissive License (UPL), Version 1.0.
76
+
77
+
See [LICENSE](LICENSE.txt) for more details.
78
+
79
+
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.
0 commit comments