Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Kickstart Projects with Free Godot Assets

Discover high quality and Open Source assets for your next Godot project
The page banner background of a mountain and forest

Whats popular

Assets we Love

Explore more from Categories

Featured Categories

Newly Updated

Eye detection icon image
AgniGames
Eye detection

Blink Detection for GodotStatus: Work in progressThis addon connects Godot to a Python + MediaPipe blink detection backend. It starts a Python process, reads blink-related messages from standard output, and exposes them to Godot through a simple BlinkDetection node.The addon is functional as an experiment/prototype, but it is still under active development and the editor plugin side is not fully implemented yet.What it does right nowUses a bundled Python environment inside the addonRuns a MediaPipe face landmark detector through PythonOpens the default webcam and tracks both eyesDetects when eyes close and reopenEmits raw output messages back to GodotOptionally shows a debug camera window with eye landmarksCurrent structureMain.gd Editor plugin entry point. At the moment this is mostly a stub.python_results.gd Main Godot-facing runtime script. This defines class_name BlinkDetection.Python files/media_pipe_python_script.py Python script that performs webcam capture and blink detection with MediaPipe.Python files/face_landmarker.task MediaPipe face landmark model used by the Python script.RequirementsGodot 4WindowsA working webcamThis addon is currently Windows-oriented because it directly launches:addons/Blink-detection/Python files/AgniVENV/Scripts/python.exeIf you want Linux or macOS support, the Python launcher path will need to be adapted.InstallationCopy the Blink-detection folder into your project's addons/ directory.Open Godot and go to Project > Project Settings > Plugins.Enable Blink-detection by AgniGames.Basic usageAttach or create a node that uses the BlinkDetection script:extends Node@onready var blink_detector: BlinkDetection = $BlinkDetectionfunc _ready() -> void:blink_detector.Output.connect(_on_blink_output)func _on_blink_output(text: String) -> void:print(text)You can also create a node and attach:res://addons/Blink-detection/python_results.gdExposed propertiesBlinkDetection currently exposes these exported properties:Enable_Console_Prints Prints parsed Python messages to the Godot output.should_show_camera Opens a debug camera window and draws eye landmark points.ignore_errors When disabled, Python error messages are forwarded with push_error.theshold Blink sensitivity threshold used by the eye aspect calculation.Note: the property is currently named theshold in code. That spelling is part of the current implementation.Output formatThe Python backend prints colon-separated messages such as:GAME:EC : Eyes closedGAME:EO : Eyes openedGAME:D : Duration: 0.143ERROR:NFF: No face found.The Godot script reads these lines and emits them through:signal Output(text: String)You can listen to that signal and handle blink events in your own game logic.LimitationsThe editor plugin (Main.gd) does not yet provide a full editor workflowThe runtime depends on the bundled Python environment being presentThe implementation is currently Windows-specificError handling and process management are still basicThe pause flow is not finalized yetThe README reflects the current prototype, not a final released addonPlanned improvementsBetter editor integrationCleaner event API for blink start/end/durationCross-platform Python launcher supportImproved setup and dependency managementMore robust pause/resume and shutdown behaviorBetter documentation and examplesNotesThis addon is best treated as an in-progress prototype for webcam-based blink detection inside Godot. If you use it in a project, expect changes while the API and plugin workflow are being refined.

About Godot Asset Library

Godot Asset Library is a free and Open Source asset library for the Godot Engine maintained by the Godot Asset Library community on GitHub. Explore assets created by the Godot Engine community, and kickstart your development with quality assets from Godot Asset Library

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers