Project import generated by Copybara.
PiperOrigin-RevId: 255697923
This commit is contained in:
parent
56cdbaf140
commit
8a2d10ca99
|
@ -9,6 +9,7 @@
|
|||
$ git clone https://github.com/google/mediapipe/mediapipe.git
|
||||
$ cd mediapipe
|
||||
|
||||
$ export GLOG_logtostderr=1
|
||||
# Need bazel flag 'MEDIAPIPE_DISABLE_GPU=1' as desktop GPU is not supported currently.
|
||||
$ bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' \
|
||||
mediapipe/examples/desktop/hello_world:hello_world
|
||||
|
|
|
@ -14,6 +14,6 @@ answers and support from the MediaPipe community.
|
|||
### Bugs and Feature requests
|
||||
|
||||
To report bugs or make feature requests,
|
||||
[file an issue on Github](https://github.com/google/mediapipe/mediapipe/issues).
|
||||
[file an issue on GitHub](https://github.com/google/mediapipe/mediapipe/issues).
|
||||
Please choose the appropriate repository for the project from the
|
||||
[MediaPipe repo](https://github.com/google/mediapipe/mediapipe)
|
||||
|
|
BIN
mediapipe/docs/images/favicon.ico
Normal file
BIN
mediapipe/docs/images/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
mediapipe/docs/images/logo.png
Normal file
BIN
mediapipe/docs/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
Before Width: | Height: | Size: 156 KiB |
Binary file not shown.
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 156 KiB |
|
@ -107,6 +107,7 @@ Required libraries
|
|||
4. Run the hello world desktop example
|
||||
|
||||
```bash
|
||||
$ export GLOG_logtostderr=1
|
||||
# Need bazel flag 'MEDIAPIPE_DISABLE_GPU=1' as desktop GPU is currently not supported
|
||||
$ bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' \
|
||||
mediapipe/examples/desktop/hello_world:hello_world
|
||||
|
@ -191,6 +192,7 @@ Required libraries
|
|||
4. Run the hello world desktop example
|
||||
|
||||
```bash
|
||||
$ export GLOG_logtostderr=1
|
||||
# Need bazel flag 'MEDIAPIPE_DISABLE_GPU=1' as desktop GPU is currently not supported
|
||||
$ bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' \
|
||||
mediapipe/examples/desktop/hello_world:hello_world
|
||||
|
@ -279,6 +281,7 @@ Required libraries
|
|||
4. Run the hello world desktop example
|
||||
|
||||
```bash
|
||||
$ export GLOG_logtostderr=1
|
||||
# Need bazel flag 'MEDIAPIPE_DISABLE_GPU=1' as desktop GPU is currently not supported
|
||||
$ bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' \
|
||||
mediapipe/examples/desktop/hello_world:hello_world
|
||||
|
@ -331,7 +334,7 @@ This will use a Docker image that will isolate mediapipe's installation from the
|
|||
```bash
|
||||
$ docker run -it --name mediapipe mediapipe:latest
|
||||
|
||||
root@bca08b91ff63:/mediapipe# bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' mediapipe/examples/desktop/hello_world:hello_world
|
||||
root@bca08b91ff63:/mediapipe# GLOG_logtostderr=1 bazel run --define 'MEDIAPIPE_DISABLE_GPU=1' mediapipe/examples/desktop/hello_world:hello_world
|
||||
|
||||
# Should print:
|
||||
# Hello World!
|
||||
|
|
|
@ -34,6 +34,7 @@ $ bazel build -c opt \
|
|||
# INFO: 2675 processes: 2673 linux-sandbox, 2 local.
|
||||
# INFO: Build completed successfully, 2807 total actions
|
||||
|
||||
$ export GLOG_logtostderr=1
|
||||
# Replace <input video path> and <output video path>.
|
||||
# You can find a test video in mediapipe/examples/desktop/object_detection.
|
||||
$ bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tensorflow \
|
||||
|
@ -198,6 +199,7 @@ $ bazel build -c opt --define 'MEDIAPIPE_DISABLE_GPU=1' \
|
|||
# INFO: 711 processes: 710 linux-sandbox, 1 local.
|
||||
# INFO: Build completed successfully, 734 total actions
|
||||
|
||||
$ export GLOG_logtostderr=1
|
||||
# Replace <input video path> and <output video path>.
|
||||
# You can find a test video in mediapipe/examples/desktop/object_detection.
|
||||
$ bazel-bin/mediapipe/examples/desktop/object_detection/object_detection_tflite \
|
||||
|
|
|
@ -60,6 +60,7 @@ namespace mediapipe {
|
|||
} // namespace mediapipe
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
CHECK(mediapipe::PrintHelloWorld().ok());
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ DEFINE_string(output_side_packets, "",
|
|||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
::mediapipe::Status run_status = RunMediaPipeGraph();
|
||||
if (!run_status.ok()) {
|
||||
|
|
|
@ -58,6 +58,7 @@ DEFINE_string(input_side_packets, "",
|
|||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
::mediapipe::Status run_status = RunMediaPipeGraph();
|
||||
if (!run_status.ok()) {
|
||||
|
|
|
@ -128,16 +128,16 @@ class Packet {
|
|||
// responsible for ensuring that no other thread is doing anything
|
||||
// with the Packet.
|
||||
// Example usage:
|
||||
// ASSIGN_OR_RETURN(std::unique_ptr<ImageFrame> frame,
|
||||
// p.ConsumeOrCopy<ImageFrame>());
|
||||
// ASSIGN_OR_RETURN(std::unique_ptr<Detection> detection,
|
||||
// p.ConsumeOrCopy<Detection>());
|
||||
// // The unique_ptr type can be omitted with auto.
|
||||
// ASSIGN_OR_RETURN(auto frame, p.ConsumeOrCopy<ImageFrame>());
|
||||
// ASSIGN_OR_RETURN(auto detection, p.ConsumeOrCopy<Detection>());
|
||||
// If you would like to crash on failure (prefer ASSIGN_OR_RETURN):
|
||||
// auto frame = p.ConsumeOrCopy<ImageFrame>().ValueOrDie();
|
||||
// auto detection = p.ConsumeOrCopy<Detection>().ValueOrDie();
|
||||
// // In functions which do not return ::mediapipe::Status use an adaptor
|
||||
// // function as the third argument to ASSIGN_OR_RETURN. In tests,
|
||||
// // use an adaptor which returns void.
|
||||
// ASSIGN_OR_RETURN(auto frame, p.ConsumeOrCopy<ImageFrame>(),
|
||||
// ASSIGN_OR_RETURN(auto detection, p.ConsumeOrCopy<Detection>(),
|
||||
// _.With([](const ::mediapipe::Status& status) {
|
||||
// EXPECT_OK(status);
|
||||
// // Use CHECK_OK to crash and report a usable line
|
||||
|
|
Loading…
Reference in New Issue
Block a user