("/capture_still_{{ camera.Num }}", { method: "POST" })
    .then(response => response.json())
    .then(data => {
        if (data.success) {
            console.log('Photo Captured:', data.image);
            reloadvideoFeed();
        } else {
            console.error("Capture error:", data.message);
        }
    })
    .catch(error => {
        console.error("Capture error:", error);
    })
    .finally(() => {
        button.disabled = false;
        hideOverlay();
    });
});

function reloadvideoFe