Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
What image formats are accepted by mpHands.Hands.send()?

I'm working on integrating MediaPipe Hands into a web-based AR application, and I'm running into some challenges getting my camera image data into a format that the send() function accepts. I haven't found any public-facing API documentation for the JavaScript solution of MediaPipe Hands, but if there is some somewhere please let me know!

The AR framework I'm working with takes control of the camera, so I can't directly connect MediaPipe Hands to the camera as shown in the CodePen example.

The AR framework does expose the camera stream data in a couple of formats, but neither of them are accepted by the send() function. It provides a UInt8Array of pixel data (along with the number of rows, columns, and bytes per row), and a srcTex that it describes as "a texture containing the source image for the returned pixels". When I feed either of them to MediaPipe Hands using send({image: myImageData}), I get this error in my console:

Unhandled promise rejection: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': Overload resolution failed.

So it seems like there is a texImage2D call somewhere in MediaPipe Hands, and I need to get my image data into a format that it accepts. Trouble is, there are several overloads and configuration settings for this method, and I'm not sure which is used.

I'm thinking of converting the UInt8Array of pixel data into a format that send() accepts, but what should that be?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!