Skip to content
This repository was archived by the owner on Dec 4, 2021. It is now read-only.

Commit 2aebc4c

Browse files
Changing to have message
1 parent 944186b commit 2aebc4c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ __pycache__/
33
modules/
44
node_modules
55
config.js
6+
config.json

proto/aws_rekognition.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ message FaceCoordinateResponse {
1616
double brx = 4;
1717
double bry = 5;
1818
}
19-
19+
2020
repeated Face faces = 1;
21+
double width = 2;
22+
double height = 3;
2123
}

server/aws_rekognition/aws_rekognition_server.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def RequestFaceCoordinate(self, request, context):
5555
for facename, faceBB in faces:
5656
face = response.faces.add()
5757
[face.name, face.tlx, face.tly, face.brx, face.bry] = get_bounding_box(facename, faceBB, imagesize)
58+
response.width = image.size[0]
59+
response.height = image.size[1]
60+
print(response)
5861
print("sending back")
5962
return response
6063

0 commit comments

Comments
 (0)