Commit Graph

2976 Commits

Author SHA1 Message Date
definability
1c6c43d202
Merge 4c21321775 into e23fa531e1 2024-01-01 23:40:09 -08:00
Copybara-Service
e23fa531e1 Merge pull request #5028 from kinaryml:python-holistic-landmarker
PiperOrigin-RevId: 594995636
2024-01-01 18:49:45 -08:00
MediaPipe Team
8609e5fae5 Adds warning about using Tensors::OpenGlBufferViews with multiple GlContexts.
PiperOrigin-RevId: 592924315
2023-12-21 12:29:11 -08:00
MediaPipe Team
cfb4465c38 Guard WaitOnGpu with extra OpenGL checks.
PiperOrigin-RevId: 592707594
2023-12-20 18:22:27 -08:00
MediaPipe Team
835ee5e354 No public description
PiperOrigin-RevId: 592683556
2023-12-20 16:16:50 -08:00
MediaPipe Team
52c1d44561 TypeScript: adding VideoFrame typings support to video input
PiperOrigin-RevId: 592640146
2023-12-20 13:16:55 -08:00
Sebastian Schmidt
1fa79195ec Rename Holistic's landmarksConfidence to presenceConfidence to match other APIs better
PiperOrigin-RevId: 592607279
2023-12-20 11:07:46 -08:00
Sebastian Schmidt
7edcba9fc0 Upgrade TypeScript to 5.3.3
PiperOrigin-RevId: 592599208
2023-12-20 10:38:57 -08:00
MediaPipe Team
1a88e75a37 No public description
PiperOrigin-RevId: 592472709
2023-12-20 00:58:34 -08:00
MediaPipe Team
42aa649aa6 Explicitly cast at callsite of WebGL context creation to avoid compilation errors with newer Emscripten versions.
PiperOrigin-RevId: 592409915
2023-12-19 19:45:08 -08:00
MediaPipe Team
473757c6cc No public description
PiperOrigin-RevId: 592358739
2023-12-19 15:22:26 -08:00
MediaPipe Team
7c3a5296ab Make DeletingFile movable.
PiperOrigin-RevId: 592332785
2023-12-19 13:48:20 -08:00
Sebastian Schmidt
5ee24d1662 Expose MediaPipe's ABSL and Sentencepiece as shared dependencies
PiperOrigin-RevId: 592256006
2023-12-19 09:21:57 -08:00
MediaPipe Team
4f4f107a8b Add Holistic Landmarker Web API.
PiperOrigin-RevId: 592006517
2023-12-18 14:17:57 -08:00
MediaPipe Team
91cfc691e4 Remove superfluous glFlush().
PiperOrigin-RevId: 591954599
2023-12-18 11:13:16 -08:00
Copybara-Service
e2ea358919 Merge pull request #5007 from priankakariatyml:ios-pose-landmarker-implementation
PiperOrigin-RevId: 591910121
2023-12-18 08:54:34 -08:00
Kinar
569c16db0b Documented HolisticLandmarkerResult 2023-12-18 04:37:29 -08:00
Kinar
cba0878652 Updated Copyright year 2023-12-18 02:51:11 -08:00
Kinar
a667949b99 Changed import style in task_info 2023-12-18 02:49:20 -08:00
Kinar
30e6b766d4 Revised implementation and added more tests 2023-12-18 02:47:28 -08:00
Kinar R
88463aeb9e
Merge branch 'google:master' into python-holistic-landmarker 2023-12-18 15:01:43 +05:30
Kinar R
c0606e819c
Update holistic_landmarker.py 2023-12-18 05:00:45 +05:30
Kinar R
00eb1f190f
Fix typo in holistic_landmarker_test.py 2023-12-18 04:57:25 +05:30
Kinar
24fe8eb73a Support both proto2 and proto3 in task subgraph options configuration, and revised the Holistic Landmarker API's implementation 2023-12-17 15:13:34 -08:00
Sebastian Schmidt
4b471266b8 No public description
PiperOrigin-RevId: 591370734
2023-12-15 15:10:53 -08:00
MediaPipe Team
41db137d37 No public description
PiperOrigin-RevId: 591351708
2023-12-15 14:00:39 -08:00
MediaPipe Team
e55caa234c No public description
PiperOrigin-RevId: 591148449
2023-12-14 22:25:41 -08:00
MediaPipe Team
28d5546d9d Internal change
PiperOrigin-RevId: 591121815
2023-12-14 19:48:57 -08:00
Copybara-Service
d6b8c2257b Merge pull request #5021 from kinaryml:c-face-landmarker-api
PiperOrigin-RevId: 591062403
2023-12-14 15:07:10 -08:00
MediaPipe Team
746d775933 Extend verifyGraph to be compatible with proto3.
PiperOrigin-RevId: 591047275
2023-12-14 14:12:36 -08:00
Kinar
5e75a169d3 Fix rows to columns for the field cols in struct Matrix 2023-12-14 09:02:05 -08:00
Kinar
f4bbfef674 Use memcpy now for copying data and indicate how the data is stored 2023-12-14 08:56:38 -08:00
Sebastian Schmidt
df7feadaf7 No public description
PiperOrigin-RevId: 590950821
2023-12-14 08:44:26 -08:00
MediaPipe Team
4004c2dfaa No public description
PiperOrigin-RevId: 590913209
2023-12-14 06:05:32 -08:00
Kinar
6fab3a8b85 Simplified copying data from Eigen matrix to C-style matrix and addressed some issues 2023-12-13 19:59:36 -08:00
Copybara-Service
04bcb0d2ee Merge pull request #4892 from priankakariatyml:ios-mpp-image-utils-pixel-buffer-format-fix
PiperOrigin-RevId: 590770032
2023-12-13 18:03:58 -08:00
MediaPipe Team
4e89de69a6 Version increment in version.bzl
PiperOrigin-RevId: 590658960
2023-12-13 11:19:06 -08:00
MediaPipe Team
4892209da9 No public description
PiperOrigin-RevId: 590629265
2023-12-13 09:49:59 -08:00
Sebastian Schmidt
15f2b32006 Expose MediaPipe's ABSL and Sentencepiece as shared dependencies
PiperOrigin-RevId: 590320902
2023-12-12 13:49:54 -08:00
Sebastian Schmidt
4237b765ce Internal
PiperOrigin-RevId: 590220032
2023-12-12 08:58:08 -08:00
MediaPipe Team
9a20d6b3e4 Create an explicit GlRuntimeException class
PiperOrigin-RevId: 590035213
2023-12-11 19:59:11 -08:00
Kinar
42b251cb8d Updated tests in face_landmarker_result_converter_test 2023-12-11 16:11:39 -08:00
Jiuqiang Tang
bd946db5a6 No public description
PiperOrigin-RevId: 589890130
2023-12-11 11:43:51 -08:00
Prianka Liz Kariat
c1cab6e9dc Merge branch 'master' into ios-mpp-image-utils-pixel-buffer-format-fix 2023-12-11 19:41:15 +05:30
Prianka Liz Kariat
04f826e9d3 Fixed function names in MPPImage Utils 2023-12-11 19:40:13 +05:30
Kinar
0200d32285 Changed Recognition to Detection 2023-12-11 05:20:48 -08:00
Kinar
fec4dff0d6 Added Face Landmarker C Tasks API and tests 2023-12-11 04:58:15 -08:00
definability
4c21321775 Android. Process ARGB and Grayscale input packets
Issue https://github.com/google/mediapipe/issues/5017
points to the issue of incorrect bitmap conversion in
Android when RGBA or Grayscale images are used.
As far as the library allows the creation of ALPHA8 bitmaps,
it is not enough to use only `getBitmapFromRgb` and `getBitmapFromRgba`,
so the new `getBitmapFromAlpha` method is needed.
Otherwise, existing users relying on the 8-bit input but not using the
input packet would catch errors despite their code operating as
intended.

Add correct processing of images with 1, 3, and 4 channels
to `FaceDetector`, `FaceLandmarker`, `FaceStylizer`,
`GestureRecognizer`, `HandLandmarker`, `HolisticLandmarker`,
`ImageClassifier`, `ImageEmbedder`, `ImageSegmenter`,
`InteractiveSegmenter`, `ObjectDetector`, and `PoseLandmarker`.
If the number of channels is not 1, 3, or 4,
throw MediaPipeException with `INVALID_ARGUMENT` status code.

Implement methods and functions needed to convert single-channel images
to RGBA bitmaps.
The native function `AlphaToRGBA` uses `memset`
to set all bytes of the resulting buffer to zeros
and then copies the alpha values of the input image to the alpha values
of the corresponding output pixels.

Perform a slight refactoring:
use `operator[i]` instead of `*(array + i)` for clarity.
2023-12-10 16:30:04 +00:00
MediaPipe Team
61efcf5a11 internal-only change
PiperOrigin-RevId: 589284167
2023-12-08 17:23:55 -08:00
Dmitri Gribenko
4e78e645d0 No public description
PiperOrigin-RevId: 589279414
2023-12-08 17:01:53 -08:00