Skip to content

Commit

Permalink
update client
Browse files Browse the repository at this point in the history
  • Loading branch information
1996scarlet committed Jan 22, 2021
1 parent 7ee3d55 commit dc396ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions PythonClient/TFLiteFaceDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ def __init__(self, filepath, input_size=(320, 240), conf_threshold=0.6,
nms_max_output_size=200, nms_iou_threshold=0.3) -> None:

self._feature_maps = np.array([[40, 30], [20, 15], [10, 8], [5, 4]])
self._min_boxes = np.array([[10, 16, 24], [32, 48],
[64, 96], [128, 192, 256]])
self._min_boxes = [[10, 16, 24], [32, 48], [64, 96], [128, 192, 256]]

self._resize = partial(cv2.resize, dsize=input_size)
self._input_size = np.array(input_size)[:, None]
Expand Down
3 changes: 0 additions & 3 deletions PythonClient/vtuber_link_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ def face_detection():
while True:
ret, frame = cap.read()

# frame = frame[150:800, 800:1600, :]
# frame = cv2.resize(frame, (960, 720))

if not ret:
break

Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
tensorflow >= 2.3
opencv-python
python-socketio == 4.6.0
python-engineio == 3.13.0
bidict == 0.21.2
websocket-client==0.57.0
python-socketio == 5.0.4
python-engineio == 4.0.0

0 comments on commit dc396ca

Please sign in to comment.