GMESCAPI is a modification of ESCAPI (Extremely Simple Capture API) by Jari Komppa.
It allows you to capture frames from a webcam into a buffer which you can then write to a surface and do crazy stuff.
buffer_set_surface IS BUGGED IN GM:S 1.4, PLEASE USE THE scr_set_surface SCRIPT INSTEAD!
You can also set camera options such as Hue, Brightness, Color Balance, although keep in mind that some cameras may not support certain attributes!
Source code: https://github.com/nkrapivin/GMESCAPI
Q: What about Linux... or macOS?
A: Porting the existing code itself is not possible, ESCAPI is essentially just a wrapper around Windows Media Foundation. Which is a Windows only API. I do think about making a Linux version, but it won't be ESCAPI anymore. I don't own a Mac so a macOS version is highly unlikely.
Q: How do I get support?
A: While you can drop me a letter on the support email, I don't check email very often, Discord is the preferred way (nik#5351).
Q: So how do I set brightness?
A: Everything is explained in the documentation (link above).
Q: How do I record sound from the webcam's microphone?
A: Webcam mics are usually detected by Windows as regular microphones, just use GM's built-in microphone record functionality. (look for audio_start_recording)
Q: Who made the awesome logo?
A: YAL, check out his extensions too: https://marketplace.yoyogames.com/publishers/866/yellowafterlife
Fixed the default focus frames value.
Fix the default focus frames value.
Initial release for GM:S 1.4.
buffer_set_surface IS BUGGED IN GM:S 1.4, PLEASE USE THE PROVIDED scr_set_surface SCRIPT INSTEAD!!!