New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.
Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Claim $300 Free
Host LLMs in Production With On-Demand GPUs
NVIDIA L4 GPUs. 5-second cold starts. Scale to zero when idle.
Deploy your model, get an endpoint, pay only for compute time. No GPU provisioning or infrastructure management required.
Shape recognition for video games using fast algorithms (heuristics).
...Finally the shape recognition is launched.
All the algorithms are done for real time gaming. So they are heuristics and do not give the optimal solution. Yet the given solution is generally a good one.
In this demonstration, few shapes can be recognized:
* circles
* triangles
* lines (vertical, horizontal and diagonal)
* arcs with horizontal symmetry
* lowercase phi letters
The code offers the possibility to add its own shapes or even letters recognition. It will be improved to trigger a specific action by shape.
...