Spaces:
Runtime error
Runtime error
init
Browse files- app.py +5 -0
- core.bin +3 -0
- imgs/cc.png +0 -0
- mic.bin +3 -0
- z_app_factory.so +0 -0
app.py
CHANGED
@@ -51,6 +51,11 @@ def inference(image):
|
|
51 |
x, y = [int(i) for i in kp]
|
52 |
cv2.circle(image, (x, y), 2, (2, 30, 200), 2)
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
|
55 |
return image
|
56 |
|
|
|
51 |
x, y = [int(i) for i in kp]
|
52 |
cv2.circle(image, (x, y), 2, (2, 30, 200), 2)
|
53 |
|
54 |
+
landmarks = face["landmarks"]
|
55 |
+
lst = [[int(i) for i in kp] for kp in landmarks]
|
56 |
+
for i, kp in enumerate(lst):
|
57 |
+
x, y = kp
|
58 |
+
cv2.circle(image, (x, y), 2, (200, 200, 20), 2)
|
59 |
image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
|
60 |
return image
|
61 |
|
core.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a124c25c85fa82833ba69782828b5d6694814ca673a1a094f9b01f5e146036e6
|
3 |
+
size 20957403
|
imgs/cc.png
CHANGED
mic.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30d98af37454b9bd878becb282a76752dd6dad9d7f986f7f8c4f14cbb3688db6
|
3 |
+
size 1876784
|
z_app_factory.so
ADDED
Binary file (676 kB). View file
|
|