Integrate canned and custom gesture classifier.
PiperOrigin-RevId: 484914164
This commit is contained in:
committed by
Copybara-Service
parent
313b387ced
commit
be13a76928
+6
@@ -37,6 +37,7 @@ mediapipe_files(srcs = [
|
||||
"coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.tflite",
|
||||
"coco_ssd_mobilenet_v1_1.0_quant_2018_06_29_with_dummy_score_calibration.tflite",
|
||||
"deeplabv3.tflite",
|
||||
"fist.jpg",
|
||||
"hand_landmark_full.tflite",
|
||||
"hand_landmark_lite.tflite",
|
||||
"left_hands.jpg",
|
||||
@@ -64,6 +65,7 @@ mediapipe_files(srcs = [
|
||||
"selfie_segm_144_256_3.tflite",
|
||||
"selfie_segm_144_256_3_expected_mask.jpg",
|
||||
"thumb_up.jpg",
|
||||
"victory.jpg",
|
||||
])
|
||||
|
||||
exports_files(
|
||||
@@ -91,6 +93,7 @@ filegroup(
|
||||
"cats_and_dogs.jpg",
|
||||
"cats_and_dogs_no_resizing.jpg",
|
||||
"cats_and_dogs_rotated.jpg",
|
||||
"fist.jpg",
|
||||
"hand_landmark_full.tflite",
|
||||
"hand_landmark_lite.tflite",
|
||||
"left_hands.jpg",
|
||||
@@ -107,6 +110,7 @@ filegroup(
|
||||
"selfie_segm_128_128_3_expected_mask.jpg",
|
||||
"selfie_segm_144_256_3_expected_mask.jpg",
|
||||
"thumb_up.jpg",
|
||||
"victory.jpg",
|
||||
],
|
||||
visibility = [
|
||||
"//mediapipe/python:__subpackages__",
|
||||
@@ -148,6 +152,7 @@ filegroup(
|
||||
"expected_left_up_hand_rotated_landmarks.prototxt",
|
||||
"expected_right_down_hand_landmarks.prototxt",
|
||||
"expected_right_up_hand_landmarks.prototxt",
|
||||
"fist_landmarks.pbtxt",
|
||||
"hand_detector_result_one_hand.pbtxt",
|
||||
"hand_detector_result_one_hand_rotated.pbtxt",
|
||||
"hand_detector_result_two_hands.pbtxt",
|
||||
@@ -155,5 +160,6 @@ filegroup(
|
||||
"pointing_up_rotated_landmarks.pbtxt",
|
||||
"thumb_up_landmarks.pbtxt",
|
||||
"thumb_up_rotated_landmarks.pbtxt",
|
||||
"victory_landmarks.pbtxt",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -0,0 +1,223 @@
|
||||
classifications {
|
||||
classification {
|
||||
score: 1.0
|
||||
label: "Left"
|
||||
display_name: "Left"
|
||||
}
|
||||
}
|
||||
|
||||
landmarks {
|
||||
landmark {
|
||||
x: 0.47709703
|
||||
y: 0.66129065
|
||||
z: -3.3540672e-07
|
||||
}
|
||||
landmark {
|
||||
x: 0.6125982
|
||||
y: 0.5578249
|
||||
z: -0.041392017
|
||||
}
|
||||
landmark {
|
||||
x: 0.71123487
|
||||
y: 0.4316616
|
||||
z: -0.064544134
|
||||
}
|
||||
landmark {
|
||||
x: 0.6836403
|
||||
y: 0.3199585
|
||||
z: -0.08752567
|
||||
}
|
||||
landmark {
|
||||
x: 0.5593274
|
||||
y: 0.3206453
|
||||
z: -0.09880819
|
||||
}
|
||||
landmark {
|
||||
x: 0.60828537
|
||||
y: 0.3068749
|
||||
z: -0.014799656
|
||||
}
|
||||
landmark {
|
||||
x: 0.62940764
|
||||
y: 0.21414441
|
||||
z: -0.06007311
|
||||
}
|
||||
landmark {
|
||||
x: 0.6244353
|
||||
y: 0.32872596
|
||||
z: -0.08326768
|
||||
}
|
||||
landmark {
|
||||
x: 0.60784453
|
||||
y: 0.3684796
|
||||
z: -0.09658983
|
||||
}
|
||||
landmark {
|
||||
x: 0.5156504
|
||||
y: 0.32194698
|
||||
z: -0.021699267
|
||||
}
|
||||
landmark {
|
||||
x: 0.52931
|
||||
y: 0.24767634
|
||||
z: -0.062571
|
||||
}
|
||||
landmark {
|
||||
x: 0.5484773
|
||||
y: 0.3805329
|
||||
z: -0.07028895
|
||||
}
|
||||
landmark {
|
||||
x: 0.54428184
|
||||
y: 0.3881125
|
||||
z: -0.07458326
|
||||
}
|
||||
landmark {
|
||||
x: 0.43159598
|
||||
y: 0.34918433
|
||||
z: -0.037482508
|
||||
}
|
||||
landmark {
|
||||
x: 0.4486106
|
||||
y: 0.27649382
|
||||
z: -0.08174769
|
||||
}
|
||||
landmark {
|
||||
x: 0.47723144
|
||||
y: 0.3964985
|
||||
z: -0.06496752
|
||||
}
|
||||
landmark {
|
||||
x: 0.46794242
|
||||
y: 0.4082967
|
||||
z: -0.04897496
|
||||
}
|
||||
landmark {
|
||||
x: 0.34826216
|
||||
y: 0.37813392
|
||||
z: -0.057438444
|
||||
}
|
||||
landmark {
|
||||
x: 0.3861837
|
||||
y: 0.32820183
|
||||
z: -0.07282783
|
||||
}
|
||||
landmark {
|
||||
x: 0.41143674
|
||||
y: 0.39734486
|
||||
z: -0.047633167
|
||||
}
|
||||
landmark {
|
||||
x: 0.39401984
|
||||
y: 0.41149133
|
||||
z: -0.029640475
|
||||
}
|
||||
}
|
||||
|
||||
world_landmarks {
|
||||
landmark {
|
||||
x: -0.008604452
|
||||
y: 0.08165767
|
||||
z: 0.0061365655
|
||||
}
|
||||
landmark {
|
||||
x: 0.027301773
|
||||
y: 0.061905317
|
||||
z: -0.00872007
|
||||
}
|
||||
landmark {
|
||||
x: 0.049898714
|
||||
y: 0.035359327
|
||||
z: -0.016682662
|
||||
}
|
||||
landmark {
|
||||
x: 0.050297678
|
||||
y: 0.005200807
|
||||
z: -0.028928496
|
||||
}
|
||||
landmark {
|
||||
x: 0.015639625
|
||||
y: -0.0063155442
|
||||
z: -0.03174634
|
||||
}
|
||||
landmark {
|
||||
x: 0.029161729
|
||||
y: -0.0024596984
|
||||
z: 0.0011553494
|
||||
}
|
||||
landmark {
|
||||
x: 0.034491
|
||||
y: -0.017581237
|
||||
z: -0.020781275
|
||||
}
|
||||
landmark {
|
||||
x: 0.034020264
|
||||
y: -0.0059247985
|
||||
z: -0.02573838
|
||||
}
|
||||
landmark {
|
||||
x: 0.02867364
|
||||
y: 0.011137734
|
||||
z: -0.009430941
|
||||
}
|
||||
landmark {
|
||||
x: 0.0015385814
|
||||
y: -0.004778851
|
||||
z: 0.0056454404
|
||||
}
|
||||
landmark {
|
||||
x: 0.010490709
|
||||
y: -0.019680617
|
||||
z: -0.027034117
|
||||
}
|
||||
landmark {
|
||||
x: 0.0132071925
|
||||
y: 0.0071370844
|
||||
z: -0.034802448
|
||||
}
|
||||
landmark {
|
||||
x: 0.0139978565
|
||||
y: 0.011672501
|
||||
z: -0.0040006908
|
||||
}
|
||||
landmark {
|
||||
x: -0.019919239
|
||||
y: -0.0006897822
|
||||
z: -0.0003317799
|
||||
}
|
||||
landmark {
|
||||
x: -0.01088193
|
||||
y: -0.008502296
|
||||
z: -0.02873486
|
||||
}
|
||||
landmark {
|
||||
x: -0.005327127
|
||||
y: 0.012745364
|
||||
z: -0.034153957
|
||||
}
|
||||
landmark {
|
||||
x: -0.0027040644
|
||||
y: 0.02167169
|
||||
z: -0.011669062
|
||||
}
|
||||
landmark {
|
||||
x: -0.038813893
|
||||
y: 0.011925209
|
||||
z: -0.0076287366
|
||||
}
|
||||
landmark {
|
||||
x: -0.030842202
|
||||
y: 0.0010964936
|
||||
z: -0.022697516
|
||||
}
|
||||
landmark {
|
||||
x: -0.01829514
|
||||
y: 0.013929318
|
||||
z: -0.032819964
|
||||
}
|
||||
landmark {
|
||||
x: -0.024175374
|
||||
y: 0.022456694
|
||||
z: -0.02357186
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,223 @@
|
||||
classifications {
|
||||
classification {
|
||||
score: 1.0
|
||||
label: "Left"
|
||||
display_name: "Left"
|
||||
}
|
||||
}
|
||||
|
||||
landmarks {
|
||||
landmark {
|
||||
x: 0.5164316
|
||||
y: 0.804093
|
||||
z: 8.7653416e-07
|
||||
}
|
||||
landmark {
|
||||
x: 0.6063608
|
||||
y: 0.7111354
|
||||
z: -0.044089418
|
||||
}
|
||||
landmark {
|
||||
x: 0.6280186
|
||||
y: 0.588498
|
||||
z: -0.062358405
|
||||
}
|
||||
landmark {
|
||||
x: 0.5265348
|
||||
y: 0.52083343
|
||||
z: -0.08526791
|
||||
}
|
||||
landmark {
|
||||
x: 0.4243384
|
||||
y: 0.4993468
|
||||
z: -0.1077741
|
||||
}
|
||||
landmark {
|
||||
x: 0.5605667
|
||||
y: 0.4489705
|
||||
z: -0.016151091
|
||||
}
|
||||
landmark {
|
||||
x: 0.5766643
|
||||
y: 0.32260323
|
||||
z: -0.049342215
|
||||
}
|
||||
landmark {
|
||||
x: 0.5795845
|
||||
y: 0.24180722
|
||||
z: -0.07323826
|
||||
}
|
||||
landmark {
|
||||
x: 0.5827511
|
||||
y: 0.16940045
|
||||
z: -0.09069163
|
||||
}
|
||||
landmark {
|
||||
x: 0.4696163
|
||||
y: 0.4599558
|
||||
z: -0.032168437
|
||||
}
|
||||
landmark {
|
||||
x: 0.44361597
|
||||
y: 0.31689578
|
||||
z: -0.075698614
|
||||
}
|
||||
landmark {
|
||||
x: 0.42695498
|
||||
y: 0.22273324
|
||||
z: -0.10819675
|
||||
}
|
||||
landmark {
|
||||
x: 0.40697217
|
||||
y: 0.14279765
|
||||
z: -0.12666894
|
||||
}
|
||||
landmark {
|
||||
x: 0.39543492
|
||||
y: 0.50612336
|
||||
z: -0.055138163
|
||||
}
|
||||
landmark {
|
||||
x: 0.3618012
|
||||
y: 0.4388296
|
||||
z: -0.1298119
|
||||
}
|
||||
landmark {
|
||||
x: 0.4154368
|
||||
y: 0.52674913
|
||||
z: -0.1463017
|
||||
}
|
||||
landmark {
|
||||
x: 0.44916254
|
||||
y: 0.59442246
|
||||
z: -0.13470782
|
||||
}
|
||||
landmark {
|
||||
x: 0.33178204
|
||||
y: 0.5731769
|
||||
z: -0.08103096
|
||||
}
|
||||
landmark {
|
||||
x: 0.3092102
|
||||
y: 0.5040002
|
||||
z: -0.13258384
|
||||
}
|
||||
landmark {
|
||||
x: 0.35576707
|
||||
y: 0.5576498
|
||||
z: -0.12714732
|
||||
}
|
||||
landmark {
|
||||
x: 0.393444
|
||||
y: 0.6118667
|
||||
z: -0.11102459
|
||||
}
|
||||
}
|
||||
|
||||
world_landmarks {
|
||||
landmark {
|
||||
x: 0.01299962
|
||||
y: 0.09162361
|
||||
z: 0.011185312
|
||||
}
|
||||
landmark {
|
||||
x: 0.03726317
|
||||
y: 0.0638103
|
||||
z: -0.010005756
|
||||
}
|
||||
landmark {
|
||||
x: 0.03975261
|
||||
y: 0.03712649
|
||||
z: -0.02906275
|
||||
}
|
||||
landmark {
|
||||
x: 0.018798776
|
||||
y: 0.012429599
|
||||
z: -0.048737116
|
||||
}
|
||||
landmark {
|
||||
x: -0.0128555335
|
||||
y: 0.001022811
|
||||
z: -0.044505004
|
||||
}
|
||||
landmark {
|
||||
x: 0.025658218
|
||||
y: -0.008031519
|
||||
z: -0.0058278795
|
||||
}
|
||||
landmark {
|
||||
x: 0.028017294
|
||||
y: -0.038120236
|
||||
z: -0.010376478
|
||||
}
|
||||
landmark {
|
||||
x: 0.030067094
|
||||
y: -0.059907563
|
||||
z: -0.014568218
|
||||
}
|
||||
landmark {
|
||||
x: 0.027284538
|
||||
y: -0.07803874
|
||||
z: -0.032692235
|
||||
}
|
||||
landmark {
|
||||
x: 0.0013260426
|
||||
y: -0.005039873
|
||||
z: 0.005567288
|
||||
}
|
||||
landmark {
|
||||
x: -0.002380834
|
||||
y: -0.044605374
|
||||
z: -0.0038231965
|
||||
}
|
||||
landmark {
|
||||
x: -0.009240147
|
||||
y: -0.066279344
|
||||
z: -0.02161214
|
||||
}
|
||||
landmark {
|
||||
x: -0.0092535615
|
||||
y: -0.08933755
|
||||
z: -0.037401434
|
||||
}
|
||||
landmark {
|
||||
x: -0.01751284
|
||||
y: 0.0037118336
|
||||
z: 0.0047480655
|
||||
}
|
||||
landmark {
|
||||
x: -0.02195602
|
||||
y: -0.010006189
|
||||
z: -0.02371484
|
||||
}
|
||||
landmark {
|
||||
x: -0.012851426
|
||||
y: 0.008346066
|
||||
z: -0.037721373
|
||||
}
|
||||
landmark {
|
||||
x: -0.00018795021
|
||||
y: 0.026816685
|
||||
z: -0.03732748
|
||||
}
|
||||
landmark {
|
||||
x: -0.034864448
|
||||
y: 0.022316
|
||||
z: -0.0002774651
|
||||
}
|
||||
landmark {
|
||||
x: -0.035896845
|
||||
y: 0.01066218
|
||||
z: -0.017325373
|
||||
}
|
||||
landmark {
|
||||
x: -0.02358637
|
||||
y: 0.018667895
|
||||
z: -0.028403495
|
||||
}
|
||||
landmark {
|
||||
x: -0.013704676
|
||||
y: 0.033456434
|
||||
z: -0.02595728
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user