From 66b377c825c44cbe9cf26874451b9c2f682819fe Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 13 Jan 2020 14:33:43 -0800 Subject: [PATCH] Project import generated by Copybara. GitOrigin-RevId: 1dd19723270084e701a90f974e35754b3fe20265 --- mediapipe/docs/install.md | 25 +++++++++++++++++-------- mediapipe/util/sequence/README.md | 24 ++++++++++++------------ 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/mediapipe/docs/install.md b/mediapipe/docs/install.md index 22955201..02645d30 100644 --- a/mediapipe/docs/install.md +++ b/mediapipe/docs/install.md @@ -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: ```bash $ 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](./hello_world_desktop.md). +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](./hello_world_desktop.md). ```bash $ export GLOG_logtostderr=1 diff --git a/mediapipe/util/sequence/README.md b/mediapipe/util/sequence/README.md index 18b79561..a97a863c 100644 --- a/mediapipe/util/sequence/README.md +++ b/mediapipe/util/sequence/README.md @@ -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 ``` ```c++