Skip to content

Commit 8d17c87

Browse files
authored
Merge pull request #30 from codeguru42/29-timeout
29 timeout
2 parents 6c1a18e + a4245e3 commit 8d17c87

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33

44
*.png
55
*.jpg
6+
7+
/http-client.private.env.json

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ COPY pyproject.toml poetry.lock ./
1313
RUN poetry install
1414
COPY . ./
1515

16-
CMD poetry run gunicorn go_capture.wsgi:application --bind 0.0.0.0:8000
16+
CMD poetry run gunicorn go_capture.wsgi:application --bind 0.0.0.0:8000 -t 60

go_capture/sgf/find_stones.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,4 @@ def get_clusters(image):
6161
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 200, .1)
6262
flags = cv2.KMEANS_RANDOM_CENTERS
6363
_, labels, palette = cv2.kmeans(pixels, 5, None, criteria, 10, flags)
64-
centers = np.uint8(palette)
65-
labeled_image = centers[labels.flatten()]
66-
clustered_image = labeled_image.reshape(image.shape)
67-
cv2.imwrite('clusters.png', clustered_image)
6864
return labels.reshape(image.shape), np.argmin(palette), np.argmax(palette)

http-client.env.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@
1010
"private-server": {
1111
"host": "192.168.1.9",
1212
"port": "8000"
13+
},
14+
"public-server": {
15+
"host": "",
16+
"port": "8000"
1317
}
1418
}

0 commit comments

Comments
 (0)