Skip to content

Commit fdfedbe

Browse files
Merge pull request justadudewhohacks#85 from chuej/export-ssdmobilenet2
Export ssdMobilenetv1 as alias of locateFaces - no build
2 parents c963fd0 + 4994965 commit fdfedbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/globalApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export function locateFaces(
6969
return nets.ssdMobilenetv1.locateFaces(input, minConfidence, maxResults)
7070
}
7171

72+
export const ssdMobilenetv1 = locateFaces
73+
7274
export function detectLandmarks(
7375
input: TNetInput
7476
): Promise<FaceLandmarks68 | FaceLandmarks68[]> {
@@ -130,4 +132,4 @@ export const allFacesMtcnn: allFacesMtcnnFunction = allFacesMtcnnFactory(
130132
nets.faceRecognitionNet
131133
)
132134

133-
export const allFaces = allFacesSsdMobilenetv1
135+
export const allFaces = allFacesSsdMobilenetv1

0 commit comments

Comments
 (0)