Skip to content
Browse files

Project import generated by Copybara.

GitOrigin-RevId: 1dd19723270084e701a90f974e35754b3fe20265
  • Loading branch information
MediaPipe Team jqtang
MediaPipe Team authored and jqtang committed Jan 13, 2020
1 parent bf5185f commit 66b377c825c44cbe9cf26874451b9c2f682819fe
Showing with 29 additions and 20 deletions.
  1. +17 −8 mediapipe/docs/
  2. +12 −12 mediapipe/util/sequence/
@@ -7,8 +7,9 @@ future.
Note: If you plan to use TensorFlow calculators and example apps, there is a
known issue with gcc and g++ version 6.3 and 7.3. Please use other versions.

Note: To make Mediapipe work with TensorFlow, please install the python "future"
library and the python "six" library using `pip install --user future six`.
Note: To make Mediapipe work with TensorFlow, please set Python 3.7 as the
default Python version and install the Python "six" library by running `pip3
install --user six`.

Choose your operating system:

@@ -265,12 +266,10 @@ To build and run iOS apps:

$ brew install opencv@3
Note: If you do `$brew install opencv`, there is a known issue caused by the
glog dependency of OpenCV 4.1.1 or above. The problem is solvable by
uninstalling the glog. You need to do `$ brew uninstall
--ignore-dependencies glog`
# There is a known issue caused by the glog dependency. Uninstall glog.
$ brew uninstall --ignore-dependencies glog

Option 2. Use MacPorts package manager tool to install the OpenCV libraries.

@@ -332,7 +331,17 @@ To build and run iOS apps:

5. Run the [Hello World desktop example](./
5. Make sure that Python 3 and Python "six" library is installed.

$ brew install python
$ sudo ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python
$ python --version
Python 3.7.4
$ pip3 install --user six

6. Run the [Hello World desktop example](./

$ export GLOG_logtostderr=1
@@ -180,19 +180,19 @@ ms.set_clip_end_timestamp(6000000, sequence)
# For an object tracking task with action labels:
loctions_on_frame_1 = np.array([[0.1, 0.2, 0.3 0.4],
[0.2, 0.3, 0.4, 0.5]])
add_bbox(locations_on_frame_1, sequence)
add_bbox_timestamp(3000000, sequence)
add_bbox_label_index((4, 3), sequence)
add_bbox_label_string((b"run", b"jump"), sequence)
add_bbox_track_string((b"id_0", b"id_1"), sequence)
# add_bbox_class_string(("cls_0", "cls_0"), sequence) # if required
ms.add_bbox(locations_on_frame_1, sequence)
ms.add_bbox_timestamp(3000000, sequence)
ms.add_bbox_label_index((4, 3), sequence)
ms.add_bbox_label_string((b"run", b"jump"), sequence)
ms.add_bbox_track_string((b"id_0", b"id_1"), sequence)
# ms.add_bbox_class_string(("cls_0", "cls_0"), sequence) # if required
locations_on_frame_2 = locations_on_frame_1[0]
add_bbox(locations_on_frame_2, sequence)
add_bbox_timestamp(5000000, sequence)
add_bbox_label_index((3), sequence)
add_bbox_label_string((b"jump",), sequence)
add_bbox_track_string((b"id_0",), sequence)
# add_bbox_class_string(("cls_0",), sequence) # if required
ms.add_bbox(locations_on_frame_2, sequence)
ms.add_bbox_timestamp(5000000, sequence)
ms.add_bbox_label_index((3), sequence)
ms.add_bbox_label_string((b"jump",), sequence)
ms.add_bbox_track_string((b"id_0",), sequence)
# ms.add_bbox_class_string(("cls_0",), sequence) # if required


0 comments on commit 66b377c

Please sign in to comment.
You can’t perform that action at this time.