Skip to content

Instantly share code, notes, and snippets.

@trongan93
Created June 12, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongan93/1424d3f765b77f3657b9b727dc324ce7 to your computer and use it in GitHub Desktop.
Save trongan93/1424d3f765b77f3657b9b727dc324ce7 to your computer and use it in GitHub Desktop.
step = 10; coordinates = []
for y in range(int((height-(80-step))/step)):
for x in range(int((width-(80-step))/step) ):
area = cutting(x*step, y*step)
result = model.predict(area)
if result[0][1] > 0.90 and not_near(x*step,y*step, 88, coordinates):
coordinates.append([[x*step, y*step], result])
print(result)
plt.imshow(area[0])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment