mediapipe
mediapipe copied to clipboard
vision.d.ts not found in tasks-vision package
OS Platform and Distribution
Windows, docker build.
Compiler version
docker base
Programming Language and version
typescript
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
master
Bazel version
docker base
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
No response
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
A bug happened!
Complete Logs
I see all files but lacking vision.d.ts in vision_pkg.tgz
I use docker and compile package by this: ./node_modules/@bazel/bazelisk/bazelisk-linux_amd64 build //mediapipe/tasks/web/vision:all
I will work on this, please let me know if you have any suggestion like:
- how you generate vision.d.ts, automatically while building package or manually.
I used api-extractor basing on output from build and it works. https://github.com/whatisor/mediapipe/blob/master/build_tasks_vision.sh
I used api-extractor basing on output from build and it works. https://github.com/whatisor/mediapipe/blob/master/build_tasks_vision.sh
Hey, I'm trying to make a pull request as I made some changes on the vision tasks package and I had tested it on iOS, Java, Python and now I'm trying on web. As I don't find any official instructions on how to do it, do you think I can build it with your script?
Sure, do what you want. Let me know if you have any question.
You should also be able to grab our version of vision.d.ts directly from the npm: https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/vision.d.ts
For those that need this, I managed to generate my own vision.d.ts with this script.
It is modified from OP, and it will create a docker container to build the file. You need to manually move the generated files out.
Note: I have only tested it with the vision packages