Skip to content

Commit

Permalink
This commit removes the previously hardcoded version "0.10.0" and ret…
Browse files Browse the repository at this point in the history
…rieve the latest available version. This ensures the application always benefits from the newest features and performance improvements. (#317)
  • Loading branch information
kuaashish authored Feb 16, 2024
1 parent 529e788 commit 0fc6e2b
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions examples/audio_classifier/python/audio_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"outputs": [],
"source": [
"!pip install -q sounddevice==0.4.4\n",
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -216,4 +216,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/gesture_recognizer/python/gesture_recognizer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -368,4 +368,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 4 additions & 4 deletions examples/hand_landmarker/python/hand_landmarker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -262,10 +262,10 @@
],
"metadata": {
"colab": {
"provenance": [],
"collapsed_sections": [
"h2q27gKz1H20"
]
],
"provenance": []
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
Expand All @@ -287,4 +287,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/image_classification/python/image_classifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -340,4 +340,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/image_embedder/python/image_embedder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -233,4 +233,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/image_segmentation/python/image_segmentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -309,4 +309,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -442,4 +442,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -98,6 +98,9 @@
},
{
"cell_type": "markdown",
"metadata": {
"id": "mhql0IPCcDBs"
},
"source": [
"You can try the following examples to try the API out or enter your own text\n",
"in the text bar.\n",
Expand All @@ -109,10 +112,7 @@
"* **Russian** - это какой-то английский язык\n",
"\n",
"* **Mixed** - 分久必合合久必分"
],
"metadata": {
"id": "mhql0IPCcDBs"
}
]
},
{
"cell_type": "code",
Expand Down Expand Up @@ -178,4 +178,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/object_detection/python/object_detector.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -284,4 +284,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -233,34 +233,34 @@
},
{
"cell_type": "markdown",
"source": [
"Visualize the pose segmentation mask."
],
"metadata": {
"id": "_BwzFvaxwtPX"
}
},
"source": [
"Visualize the pose segmentation mask."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "3jAIFzw9M3JJ"
},
"outputs": [],
"source": [
"segmentation_mask = detection_result.segmentation_masks[0].numpy_view()\n",
"visualized_mask = np.repeat(segmentation_mask[:, :, np.newaxis], 3, axis=2) * 255\n",
"cv2_imshow(visualized_mask)"
],
"metadata": {
"id": "3jAIFzw9M3JJ"
},
"execution_count": null,
"outputs": []
]
},
{
"cell_type": "code",
"source": [],
"execution_count": null,
"metadata": {
"id": "QipRi2ozw7cg"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -287,4 +287,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/text_classification/python/text_classifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -167,4 +167,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
4 changes: 2 additions & 2 deletions examples/text_embedder/python/text_embedder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"outputs": [],
"source": [
"!pip install -q mediapipe==0.10.0"
"!pip install -q mediapipe"
]
},
{
Expand Down Expand Up @@ -174,4 +174,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 0fc6e2b

Please sign in to comment.