Skip to content

Commit 0fc6e2b

Browse files
authored
This commit removes the previously hardcoded version "0.10.0" and retrieve the latest available version. This ensures the application always benefits from the newest features and performance improvements. (#317)
1 parent 529e788 commit 0fc6e2b

File tree

12 files changed

+43
-43
lines changed

12 files changed

+43
-43
lines changed

examples/audio_classifier/python/audio_classification.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"outputs": [],
6262
"source": [
6363
"!pip install -q sounddevice==0.4.4\n",
64-
"!pip install -q mediapipe==0.10.0"
64+
"!pip install -q mediapipe"
6565
]
6666
},
6767
{
@@ -216,4 +216,4 @@
216216
},
217217
"nbformat": 4,
218218
"nbformat_minor": 0
219-
}
219+
}

examples/gesture_recognizer/python/gesture_recognizer.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"outputs": [],
6363
"source": [
64-
"!pip install -q mediapipe==0.10.0"
64+
"!pip install -q mediapipe"
6565
]
6666
},
6767
{
@@ -368,4 +368,4 @@
368368
},
369369
"nbformat": 4,
370370
"nbformat_minor": 0
371-
}
371+
}

examples/hand_landmarker/python/hand_landmarker.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"!pip install -q mediapipe==0.10.0"
63+
"!pip install -q mediapipe"
6464
]
6565
},
6666
{
@@ -262,10 +262,10 @@
262262
],
263263
"metadata": {
264264
"colab": {
265-
"provenance": [],
266265
"collapsed_sections": [
267266
"h2q27gKz1H20"
268-
]
267+
],
268+
"provenance": []
269269
},
270270
"kernelspec": {
271271
"display_name": "Python 3 (ipykernel)",
@@ -287,4 +287,4 @@
287287
},
288288
"nbformat": 4,
289289
"nbformat_minor": 0
290-
}
290+
}

examples/image_classification/python/image_classifier.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"outputs": [],
6363
"source": [
64-
"!pip install -q mediapipe==0.10.0"
64+
"!pip install -q mediapipe"
6565
]
6666
},
6767
{
@@ -340,4 +340,4 @@
340340
},
341341
"nbformat": 4,
342342
"nbformat_minor": 0
343-
}
343+
}

examples/image_embedder/python/image_embedder.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"!pip install -q mediapipe==0.10.0"
63+
"!pip install -q mediapipe"
6464
]
6565
},
6666
{
@@ -233,4 +233,4 @@
233233
},
234234
"nbformat": 4,
235235
"nbformat_minor": 0
236-
}
236+
}

examples/image_segmentation/python/image_segmentation.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"outputs": [],
6060
"source": [
61-
"!pip install -q mediapipe==0.10.0"
61+
"!pip install -q mediapipe"
6262
]
6363
},
6464
{
@@ -309,4 +309,4 @@
309309
},
310310
"nbformat": 4,
311311
"nbformat_minor": 0
312-
}
312+
}

examples/interactive_segmentation/python/interactive_segmenter.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"outputs": [],
5151
"source": [
52-
"!pip install -q mediapipe==0.10.0"
52+
"!pip install -q mediapipe"
5353
]
5454
},
5555
{
@@ -442,4 +442,4 @@
442442
},
443443
"nbformat": 4,
444444
"nbformat_minor": 0
445-
}
445+
}

examples/language_detector/python/[MediaPipe_Python_Tasks]_Language_Detector.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"!pip install -q mediapipe==0.10.0"
63+
"!pip install -q mediapipe"
6464
]
6565
},
6666
{
@@ -98,6 +98,9 @@
9898
},
9999
{
100100
"cell_type": "markdown",
101+
"metadata": {
102+
"id": "mhql0IPCcDBs"
103+
},
101104
"source": [
102105
"You can try the following examples to try the API out or enter your own text\n",
103106
"in the text bar.\n",
@@ -109,10 +112,7 @@
109112
"* **Russian** - это какой-то английский язык\n",
110113
"\n",
111114
"* **Mixed** - 分久必合合久必分"
112-
],
113-
"metadata": {
114-
"id": "mhql0IPCcDBs"
115-
}
115+
]
116116
},
117117
{
118118
"cell_type": "code",
@@ -178,4 +178,4 @@
178178
},
179179
"nbformat": 4,
180180
"nbformat_minor": 0
181-
}
181+
}

examples/object_detection/python/object_detector.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"outputs": [],
6363
"source": [
64-
"!pip install -q mediapipe==0.10.0"
64+
"!pip install -q mediapipe"
6565
]
6666
},
6767
{
@@ -284,4 +284,4 @@
284284
},
285285
"nbformat": 4,
286286
"nbformat_minor": 0
287-
}
287+
}

examples/pose_landmarker/python/[MediaPipe_Python_Tasks]_Pose_Landmarker.ipynb

+15-15
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
"outputs": [],
6363
"source": [
64-
"!pip install -q mediapipe==0.10.0"
64+
"!pip install -q mediapipe"
6565
]
6666
},
6767
{
@@ -233,34 +233,34 @@
233233
},
234234
{
235235
"cell_type": "markdown",
236-
"source": [
237-
"Visualize the pose segmentation mask."
238-
],
239236
"metadata": {
240237
"id": "_BwzFvaxwtPX"
241-
}
238+
},
239+
"source": [
240+
"Visualize the pose segmentation mask."
241+
]
242242
},
243243
{
244244
"cell_type": "code",
245+
"execution_count": null,
246+
"metadata": {
247+
"id": "3jAIFzw9M3JJ"
248+
},
249+
"outputs": [],
245250
"source": [
246251
"segmentation_mask = detection_result.segmentation_masks[0].numpy_view()\n",
247252
"visualized_mask = np.repeat(segmentation_mask[:, :, np.newaxis], 3, axis=2) * 255\n",
248253
"cv2_imshow(visualized_mask)"
249-
],
250-
"metadata": {
251-
"id": "3jAIFzw9M3JJ"
252-
},
253-
"execution_count": null,
254-
"outputs": []
254+
]
255255
},
256256
{
257257
"cell_type": "code",
258-
"source": [],
258+
"execution_count": null,
259259
"metadata": {
260260
"id": "QipRi2ozw7cg"
261261
},
262-
"execution_count": null,
263-
"outputs": []
262+
"outputs": [],
263+
"source": []
264264
}
265265
],
266266
"metadata": {
@@ -287,4 +287,4 @@
287287
},
288288
"nbformat": 4,
289289
"nbformat_minor": 0
290-
}
290+
}

examples/text_classification/python/text_classifier.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"!pip install -q mediapipe==0.10.0"
63+
"!pip install -q mediapipe"
6464
]
6565
},
6666
{
@@ -167,4 +167,4 @@
167167
},
168168
"nbformat": 4,
169169
"nbformat_minor": 0
170-
}
170+
}

examples/text_embedder/python/text_embedder.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
"outputs": [],
6969
"source": [
70-
"!pip install -q mediapipe==0.10.0"
70+
"!pip install -q mediapipe"
7171
]
7272
},
7373
{
@@ -174,4 +174,4 @@
174174
},
175175
"nbformat": 4,
176176
"nbformat_minor": 0
177-
}
177+
}

0 commit comments

Comments
 (0)