We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71f8e3 commit 17fe081Copy full SHA for 17fe081
FaceDetection/app/src/main/python/hello.py
@@ -1,13 +1,13 @@
1
import numpy as np
2
import cv2
3
-import PLI from Image
+from PIL import Image
4
import base64
5
import io
6
import face_recognition
7
8
def main(data):
9
decoded_data = base64.b64decode(data)
10
- np_data = np.fromString(decoded_data, np.uint8)
+ np_data = np.fromstring(decoded_data, np.uint8)
11
img = cv2.imdecode(np_data, cv2.IMREAD_UNCHANGED)
12
img_rgb = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
13
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
0 commit comments