Skip to content

Commit

Permalink
Added iOS face stylizer options
Browse files Browse the repository at this point in the history
  • Loading branch information
priankakariat committed Sep 15, 2023
1 parent a259300 commit bb93b77
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mediapipe/tasks/ios/vision/face_stylizer/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ objc_library(
],
)

objc_library(
name = "MPPFaceStylizerOptions",
srcs = ["sources/MPPFaceStylizerOptions.m"],
hdrs = ["sources/MPPFaceStylizerOptions.h"],
deps = [
"//mediapipe/tasks/ios/core:MPPTaskOptions",
],
)

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#import <Foundation/Foundation.h>

#import "mediapipe/tasks/ios/core/sources/MPPTaskOptions.h"

NS_ASSUME_NONNULL_BEGIN

/** Options for setting up a `FaceStylizer`. */
NS_SWIFT_NAME(FaceStylizerOptions)
@interface MPPFaceStylizerOptions : MPPTaskOptions <NSCopying>

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2023 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#import "mediapipe/tasks/ios/vision/face_stylizer/sources/MPPFaceStylizerOptions.h"

@implementation MPPFaceStylizerOptions

- (id)copyWithZone:(NSZone *)zone {
MPPFaceStylizerOptions *faceStylizerOptions = [super copyWithZone:zone];

return faceStylizerOptions;
}

@end

0 comments on commit bb93b77

Please sign in to comment.