-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Updating Interactive Tutorials for 2025 version -porting (#28821)
port: #28820 Co-authored-by: sgolebiewski-intel <[email protected]>
- Loading branch information
1 parent
63acac4
commit 842a81d
Showing
348 changed files
with
16,532 additions
and
15,819 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...oint-clouds-with-output_files/3D-segmentation-point-clouds-with-output_11_1.png
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,11 +99,17 @@ Imports | |
# Fetch `notebook_utils` module | ||
import requests | ||
r = requests.get( | ||
url="https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/notebook_utils.py", | ||
) | ||
open("notebook_utils.py", "w").write(r.text) | ||
if not Path("notebook_utils.py").exists(): | ||
r = requests.get( | ||
url="https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/latest/utils/notebook_utils.py", | ||
) | ||
open("notebook_utils.py", "w").write(r.text) | ||
import notebook_utils as utils | ||
# Read more about telemetry collection at https://github.com/openvinotoolkit/openvino_notebooks?tab=readme-ov-file#-telemetry | ||
from notebook_utils import collect_telemetry | ||
collect_telemetry("action-recognition-webcam.ipynb") | ||
The models | ||
---------- | ||
|
@@ -178,10 +184,12 @@ also provides the text file embedded into this notebook. | |
.. code:: ipython3 | ||
# Download the text from the openvino_notebooks storage | ||
vocab_file_path = utils.download_file( | ||
"https://storage.openvinotoolkit.org/repositories/openvino_notebooks/data/data/text/kinetics.txt", | ||
directory="data", | ||
) | ||
if not (Path("data") / "kinetics.txt").exists(): | ||
vocab_file_path = utils.download_file( | ||
"https://storage.openvinotoolkit.org/repositories/openvino_notebooks/data/data/text/kinetics.txt", | ||
directory="data", | ||
) | ||
with vocab_file_path.open(mode="r") as f: | ||
labels = [line.strip() for line in f] | ||
|
@@ -676,18 +684,27 @@ multi-camera systems). | |
USE_WEBCAM = False | ||
cam_id = 0 | ||
video_file = "https://archive.org/serve/ISSVideoResourceLifeOnStation720p/ISS%20Video%20Resource_LifeOnStation_720p.mp4" | ||
video_url = "https://archive.org/serve/ISSVideoResourceLifeOnStation720p/ISS%20Video%20Resource_LifeOnStation_720p.mp4" | ||
video_file = Path("ISS%20Video%20Resource_LifeOnStation_720p.mp4") | ||
if not USE_WEBCAM and video_file.exists(): | ||
utils.download_file(video_url, filename=video_file.name) | ||
source = cam_id if USE_WEBCAM else video_file | ||
additional_options = {"skip_first_frames": 600, "flip": False} if not USE_WEBCAM else {"flip": True} | ||
run_action_recognition(source=source, use_popup=False, **additional_options) | ||
.. parsed-literal:: | ||
.. image:: action-recognition-webcam-with-output_files/action-recognition-webcam-with-output_22_0.png | ||
Cannot open ISS%20Video%20Resource_LifeOnStation_720p.mp4 | ||
.. parsed-literal:: | ||
Source ended | ||
[ WARN:[email protected]] global cap.cpp:175 open VIDEOIO(CV_IMAGES): raised OpenCV exception: | ||
OpenCV(4.11.0) /io/opencv/modules/videoio/src/cap_images.cpp:237: error: (-5:Bad argument) CAP_IMAGES: error, expected '0?[1-9][du]' pattern, got: ISS%20Video%20Resource_LifeOnStation_720p.mp4 in function 'icvExtractPattern' | ||
4 changes: 2 additions & 2 deletions
4
...gnition-webcam-with-output_files/action-recognition-webcam-with-output_22_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.