Is there any possible way I can capture image from external camera? Please show me what method to use and examples. Thanks!
This is from ChatGPT code using "CameraCapture" and "CameraFeed" method. I've tested and it doesn't work.
I'm hoping to find the any solution here. Thanks!
using Godot;
public class CameraCapture : Node
{
private CameraTexture _cameraTexture;
public override void _Ready()
{
// Create a new CameraTexture object
_cameraTexture = new CameraTexture();
// Set the size of the texture to the size of the camera resolution
_cameraTexture.Size = new Vector2(640, 480);
// Start the camera
_cameraTexture.Start();
}
public override void _Process(float delta)
{
// Update the camera texture with the latest frame from the camera
_cameraTexture.Update();
}
}