Optimización de ALPR para Raspberry Pi: ajuste de resolución y límites de CPU
This commit is contained in:
@@ -44,6 +44,8 @@ services:
|
||||
alpr-service:
|
||||
build: ./alpr-service
|
||||
container_name: controlpatente-alpr
|
||||
ports:
|
||||
- "5001:5001" # Permite acceder al stream de video desde el nave
|
||||
environment:
|
||||
- BACKEND_URL=http://backend:3000
|
||||
# On Mac, you usually cannot pass /dev/video0 directly.
|
||||
@@ -58,6 +60,10 @@ services:
|
||||
restart: unless-stopped
|
||||
# Add privilege for hardware access
|
||||
privileged: true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2.0'
|
||||
|
||||
# Frontend Service (React)
|
||||
frontend:
|
||||
@@ -71,8 +77,8 @@ services:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
environment:
|
||||
- VITE_API_URL=http://localhost:3000
|
||||
|
||||
- VITE_API_URL=http://192.168.196.100:3000
|
||||
- VITE_ALPR_STREAM_URL=http://192.168.196.100:5001/video_feed
|
||||
networks:
|
||||
backend-net:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user