---
title: "Thomas (@Thomass) | Hashnode"
description: "Thomas (@Thomass) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Thomass"
---

@Thomass

# Thomas

@Thomass · Joined January 2022

## Comments

[I am using pycharm with the official mediapipe package and all solutions work just fine. is there a way to add your object detection part manually to the package? I am not giving up yet:) but its pretty frustrating. Also i can not find the binarypb file for object detection created anywhere. When building other examples like pose or hand there are also binarypb files created in bazel-out modules folder.](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb/comment/61eec7fcc99aed184e7275f9#reply-61eed671c99aed184e72782f)

Reply · Article · Jan 24, 2022 · [Python API for the MediaPipe Object Detection Solution](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb)

[Hi finally managed to compile the hello world example. Now compiled object\_detection:object\_detection\_cpu. How do i run it? I tried this: C:\\\_Research\\mediapipe-od-build\\mediapipe\\bazel-bin\\mediapipe\\examples\\desktop\\object\_detection>object\_detection\_cpu.exe --calculator\_graph\_config\_file=C:\\\_Research\\mediapipe-od-build\\mediapipe\\mediapipe\\modules\\object\_detection\\object\_detection\_cpu.pbtxt E20220124 16:58:32.190173 1836 demo\_run\_graph\_main.cc:154\] Failed to run the graph: ValidatedGraphConfig Initialization failed. No registered object with name: DetectionLetterboxRemovalCalculator; Unable to find Calculator "DetectionLetterboxRemovalCalculator"](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb/comment/61eec7fcc99aed184e7275f9)

Comment · Article · Jan 24, 2022 · [Python API for the MediaPipe Object Detection Solution](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb)

[Aniket Ray yes. i have added like everything c++ related to vs build tools but seems thee is still something missing :( like: windows.h](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb/comment/61eae93c540e877a6c00c4e6#reply-61eeb0e5e247b2151e61c760)

Reply · Article · Jan 24, 2022 · [Python API for the MediaPipe Object Detection Solution](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb)

[I got rid of the initial errors but now stuck at some more: Any Idea? I do not even see what seems to be the problem:( ERROR: C:/users/user/\_bazel\_user/o7dgz4zy/external/com\_google\_absl/absl/debugging/BUILD.bazel:31:11: Compiling absl/debugging/stacktrace.cc failed: (Exit 2): cl.exe failed: error executing command C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe /nologo /DCOMPILER\_MSVC /DNOMINMAX /D\_WIN32\_WINNT=0x0601 /D\_CRT\_SECURE\_NO\_DEPRECATE ... (remaining 41 argument(s) skipped)](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb/comment/61eae93c540e877a6c00c4e6)

Comment · Article · Jan 21, 2022 · [Python API for the MediaPipe Object Detection Solution](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb)

[Is there a more detailed description of how to get this to run? I cloned your repo and followed Installing on Windows On Step 9 the bazel build throws some errors: "GET returned 404 Not Found" So the files are not online anymore. I wonder if i am following the right path anyway. Thanks in advance for any hints :) c:\\mediapipe-test\\mediapipe>C:\\Bazel\\bazel.exe build -c opt --define MEDIAPIPE\_DISABLE\_GPU=1 --action\_env PYTHON\_BIN\_PATH="C://python39//python.exe" mediapipe/examples/desktop/hello\_world Extracting Bazel installation... Starting local Bazel server and connecting to it... DEBUG: Rule 'rules\_foreign\_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c2cdcf55ffaf49366725639e45dedd449b8c3fe22b54e31625eb80ce3a240f1e" DEBUG: Repository rules\_foreign\_cc instantiated at: C:/mediapipe-test/mediapipe/WORKSPACE:42:13: in <toplevel> Repository rule http\_archive defined at: C:/users/user/\_bazel\_user/r4ook2nm/external/bazel\_tools/tools/build\_defs/repo/http.bzl:364:31: in <toplevel> WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/toolchains/archive/d781e89e2ee797ea7afd0c8391e761616fc5d50d.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules\_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found WARNING: Download from http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/0a8c6996bd6a58eb0e7e2fe049ac67bf663e1950.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'com\_google\_absl' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'com\_google\_protobuf' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'com\_google\_googletest' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'com\_github\_gflags\_gflags' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'build\_bazel\_rules\_apple' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'build\_bazel\_rules\_swift' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'build\_bazel\_apple\_support' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'bazel\_skylib' because it already exists. DEBUG: C:/users/user/\_bazel\_user/r4ook2nm/external/org\_tensorflow/third\_party/repo.bzl:109:14: Warning: skipping import of repository 'pybind11' because it already exists. ERROR: C:/mediapipe-test/mediapipe/WORKSPACE:266:23: fetching android\_ndk\_repository rule //external:androidndk: Either the path attribute of android\_ndk\_repository or the ANDROID\_NDK\_HOME environment variable must be set. ERROR: Analysis of target '//mediapipe/examples/desktop/hello\_world:hello\_world' failed; build aborted: Either the path attribute of android\_ndk\_repository or the ANDROID\_NDK\_HOME environment variable must be set. INFO: Elapsed time: 42.124s INFO: 0 processes. FAILED: Build did NOT complete successfully (7 packages loaded, 11 targets configured) Fetching @local\_execution\_config\_python; fetching](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb/comment/61e059e3ffa55d74f0089db6)

Comment · Article · Jan 13, 2022 · [Python API for the MediaPipe Object Detection Solution](https://hashnode.com/posts/python-api-for-the-mediapipe-object-detection-solution/611ebdd4a5d08237f40dd4fb)
