mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

vision.d.ts not found in tasks-vision package

Open whatisor opened this issue 8 months ago • 5 comments

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

whatisor avatar Mar 12 '25 20:03 whatisor

I use docker and compile package by this: ./node_modules/@bazel/bazelisk/bazelisk-linux_amd64 build //mediapipe/tasks/web/vision:all

whatisor avatar Mar 12 '25 20:03 whatisor

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.

whatisor avatar Mar 14 '25 14:03 whatisor

I used api-extractor basing on output from build and it works. https://github.com/whatisor/mediapipe/blob/master/build_tasks_vision.sh

whatisor avatar Mar 17 '25 13:03 whatisor

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?

xKHUNx avatar Apr 15 '25 06:04 xKHUNx

Sure, do what you want. Let me know if you have any question.

whatisor avatar Apr 16 '25 01:04 whatisor

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

tyrmullen avatar Oct 21 '25 20:10 tyrmullen

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

xKHUNx avatar Nov 06 '25 03:11 xKHUNx