Project import generated by Copybara.
GitOrigin-RevId: 1dd19723270084e701a90f974e35754b3fe20265
This commit is contained in:
parent
bf5185f122
commit
66b377c825
|
@ -7,8 +7,9 @@ future.
|
||||||
Note: If you plan to use TensorFlow calculators and example apps, there is a
|
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.
|
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"
|
Note: To make Mediapipe work with TensorFlow, please set Python 3.7 as the
|
||||||
library and the python "six" library using `pip install --user future six`.
|
default Python version and install the Python "six" library by running `pip3
|
||||||
|
install --user six`.
|
||||||
|
|
||||||
Choose your operating system:
|
Choose your operating system:
|
||||||
|
|
||||||
|
@ -265,12 +266,10 @@ To build and run iOS apps:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ brew install opencv@3
|
$ brew install opencv@3
|
||||||
```
|
|
||||||
|
|
||||||
Note: If you do `$brew install opencv`, there is a known issue caused by the
|
# There is a known issue caused by the glog dependency. Uninstall glog.
|
||||||
glog dependency of OpenCV 4.1.1 or above. The problem is solvable by
|
$ brew uninstall --ignore-dependencies glog
|
||||||
uninstalling the glog. You need to do `$ brew uninstall
|
```
|
||||||
--ignore-dependencies glog`
|
|
||||||
|
|
||||||
Option 2. Use MacPorts package manager tool to install the OpenCV libraries.
|
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
|
```bash
|
||||||
$ export GLOG_logtostderr=1
|
$ export GLOG_logtostderr=1
|
||||||
|
|
|
@ -180,19 +180,19 @@ ms.set_clip_end_timestamp(6000000, sequence)
|
||||||
# For an object tracking task with action labels:
|
# For an object tracking task with action labels:
|
||||||
loctions_on_frame_1 = np.array([[0.1, 0.2, 0.3 0.4],
|
loctions_on_frame_1 = np.array([[0.1, 0.2, 0.3 0.4],
|
||||||
[0.2, 0.3, 0.4, 0.5]])
|
[0.2, 0.3, 0.4, 0.5]])
|
||||||
add_bbox(locations_on_frame_1, sequence)
|
ms.add_bbox(locations_on_frame_1, sequence)
|
||||||
add_bbox_timestamp(3000000, sequence)
|
ms.add_bbox_timestamp(3000000, sequence)
|
||||||
add_bbox_label_index((4, 3), sequence)
|
ms.add_bbox_label_index((4, 3), sequence)
|
||||||
add_bbox_label_string((b"run", b"jump"), sequence)
|
ms.add_bbox_label_string((b"run", b"jump"), sequence)
|
||||||
add_bbox_track_string((b"id_0", b"id_1"), sequence)
|
ms.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_class_string(("cls_0", "cls_0"), sequence) # if required
|
||||||
locations_on_frame_2 = locations_on_frame_1[0]
|
locations_on_frame_2 = locations_on_frame_1[0]
|
||||||
add_bbox(locations_on_frame_2, sequence)
|
ms.add_bbox(locations_on_frame_2, sequence)
|
||||||
add_bbox_timestamp(5000000, sequence)
|
ms.add_bbox_timestamp(5000000, sequence)
|
||||||
add_bbox_label_index((3), sequence)
|
ms.add_bbox_label_index((3), sequence)
|
||||||
add_bbox_label_string((b"jump",), sequence)
|
ms.add_bbox_label_string((b"jump",), sequence)
|
||||||
add_bbox_track_string((b"id_0",), sequence)
|
ms.add_bbox_track_string((b"id_0",), sequence)
|
||||||
# add_bbox_class_string(("cls_0",), sequence) # if required
|
# ms.add_bbox_class_string(("cls_0",), sequence) # if required
|
||||||
```
|
```
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
|
Loading…
Reference in New Issue
Block a user