Skip to content

Commit 17fe081

Browse files
committed
typo solved
1 parent a71f8e3 commit 17fe081

File tree

1 file changed

+2
-2
lines changed
  • FaceDetection/app/src/main/python

1 file changed

+2
-2
lines changed

FaceDetection/app/src/main/python/hello.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import numpy as np
22
import cv2
3-
import PLI from Image
3+
from PIL import Image
44
import base64
55
import io
66
import face_recognition
77

88
def main(data):
99
decoded_data = base64.b64decode(data)
10-
np_data = np.fromString(decoded_data, np.uint8)
10+
np_data = np.fromstring(decoded_data, np.uint8)
1111
img = cv2.imdecode(np_data, cv2.IMREAD_UNCHANGED)
1212
img_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
1313
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

0 commit comments

Comments
 (0)