-
Look at that PYTHON script and extract all functions and options, separately and provide in free text prompt, to me please! Here is my PYTHON script:
```python
# camera_controller_fixed.py
import pygame
import cv2
import threading
import requests
import os
import time
from datetime import datetime
import json
import numpy as np
from pygame import gfxdraw
import subprocess
import signal
import sys
class CameraController:
def __init__(self):
# Инициализация на Pygame
pygame.init()
try:
pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=512)
except Exception as e:
print("Warning: mixer init failed:", e)
# Начални размери
self.screen_width = 1400
self.screen_height = 900
# Опитваме се да избегнем OpenGL/GL контекст проблеми като не искаме
# явно OPENGL флаг — използваме HWSURFACE | DOUBLEBUF за по-стабилен fullscreen
self.screen = pygame.display.set_mode(
(self.screen_width, self.screen_height),
pygame.RESIZABLE | pygame.DOUBLEBUF | pygame.HWSURFACE,
)
pygame.display.set_cap… -
We work with PYTHON script!
-
initial commit