Updated API and tests
This commit is contained in:
parent
23681cde0d
commit
d83f400b08
|
@ -207,20 +207,20 @@ class HandLandmarkerTest(parameterized.TestCase):
|
|||
_PORTRAIT_EXPECTED_FACE_LANDMARKS_WITH_ATTENTION),
|
||||
_get_expected_face_blendshapes(
|
||||
_PORTRAIT_EXPECTED_BLENDSHAPES), None),
|
||||
# (ModelFileType.FILE_NAME,
|
||||
# _FACE_LANDMARKER_WITH_BLENDSHAPES_BUNDLE_ASSET_FILE,
|
||||
# _get_expected_face_landmarks(
|
||||
# _PORTRAIT_EXPECTED_FACE_LANDMARKS_WITH_ATTENTION),
|
||||
# _get_expected_face_blendshapes(
|
||||
# _PORTRAIT_EXPECTED_BLENDSHAPES),
|
||||
# _make_expected_facial_transformation_matrixes()),
|
||||
# (ModelFileType.FILE_CONTENT,
|
||||
# _FACE_LANDMARKER_WITH_BLENDSHAPES_BUNDLE_ASSET_FILE,
|
||||
# _get_expected_face_landmarks(
|
||||
# _PORTRAIT_EXPECTED_FACE_LANDMARKS_WITH_ATTENTION),
|
||||
# _get_expected_face_blendshapes(
|
||||
# _PORTRAIT_EXPECTED_BLENDSHAPES),
|
||||
# _make_expected_facial_transformation_matrixes())
|
||||
(ModelFileType.FILE_NAME,
|
||||
_FACE_LANDMARKER_WITH_BLENDSHAPES_BUNDLE_ASSET_FILE,
|
||||
_get_expected_face_landmarks(
|
||||
_PORTRAIT_EXPECTED_FACE_LANDMARKS_WITH_ATTENTION),
|
||||
_get_expected_face_blendshapes(
|
||||
_PORTRAIT_EXPECTED_BLENDSHAPES),
|
||||
_make_expected_facial_transformation_matrixes()),
|
||||
(ModelFileType.FILE_CONTENT,
|
||||
_FACE_LANDMARKER_WITH_BLENDSHAPES_BUNDLE_ASSET_FILE,
|
||||
_get_expected_face_landmarks(
|
||||
_PORTRAIT_EXPECTED_FACE_LANDMARKS_WITH_ATTENTION),
|
||||
_get_expected_face_blendshapes(
|
||||
_PORTRAIT_EXPECTED_BLENDSHAPES),
|
||||
_make_expected_facial_transformation_matrixes())
|
||||
)
|
||||
def test_detect(self, model_file_type, model_name, expected_face_landmarks,
|
||||
expected_face_blendshapes, expected_facial_transformation_matrix):
|
||||
|
|
|
@ -162,7 +162,6 @@ def _build_landmarker_result(
|
|||
|
||||
facial_transformation_matrixes_results = []
|
||||
if _FACE_GEOMETRY_STREAM_NAME in output_packets:
|
||||
print(output_packets[_FACE_GEOMETRY_STREAM_NAME])
|
||||
facial_transformation_matrixes_proto_list = packet_getter.get_proto_list(
|
||||
output_packets[_FACE_GEOMETRY_STREAM_NAME])
|
||||
for proto in facial_transformation_matrixes_proto_list:
|
||||
|
|
Loading…
Reference in New Issue
Block a user