Spaces:
Running
Running
creami un software che sia in grado di analizzare un video di una partita di calcio a5 dove deve estrapolare i seguenti dati: passaggi riusciti, passaggi non riusciti, tiri fatti, tiri subiti, possesso palla, goal fatti, goal subiti, transizioni positive, transizioni negative, tempo gioco per ogni giocatore
415c2ec verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>GoalGenius Analyzer</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| .progress-bar { | |
| transition: width 0.5s ease-in-out; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <header class="text-center mb-12"> | |
| <h1 class="text-4xl font-bold text-blue-800 mb-2">GoalGenius Analyzer ⚽</h1> | |
| <p class="text-gray-600">Advanced football match analysis powered by AI</p> | |
| </header> | |
| <div class="bg-white rounded-xl shadow-lg p-6 mb-8"> | |
| <h2 class="text-2xl font-semibold mb-4">Upload Match Video</h2> | |
| <div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center"> | |
| <i class="fas fa-video text-4xl text-blue-500 mb-4"></i> | |
| <p class="mb-4">Drag and drop your A5 match video here</p> | |
| <input type="file" accept="video/*" class="hidden" id="video-upload"> | |
| <button onclick="document.getElementById('video-upload').click()" | |
| class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded-lg transition"> | |
| Select Video | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <!-- Team Statistics Card --> | |
| <div class="bg-white rounded-xl shadow-lg p-6"> | |
| <h2 class="text-2xl font-semibold mb-4">Team Statistics</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span>Ball Possession</span> | |
| <span id="possession-value">0%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div id="possession-bar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div class="bg-blue-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Successful Passes</p> | |
| <p id="success-passes" class="text-3xl font-bold text-blue-600">0</p> | |
| </div> | |
| <div class="bg-red-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Failed Passes</p> | |
| <p id="failed-passes" class="text-3xl font-bold text-red-600">0</p> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div class="bg-green-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Goals Scored</p> | |
| <p id="goals-scored" class="text-3xl font-bold text-green-600">0</p> | |
| </div> | |
| <div class="bg-yellow-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Goals Conceded</p> | |
| <p id="goals-conceded" class="text-3xl font-bold text-yellow-600">0</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Player Statistics Card --> | |
| <div class="bg-white rounded-xl shadow-lg p-6"> | |
| <h2 class="text-2xl font-semibold mb-4">Player Statistics</h2> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full"> | |
| <thead> | |
| <tr class="border-b"> | |
| <th class="text-left py-2">Player</th> | |
| <th class="text-center py-2">Minutes</th> | |
| <th class="text-center py-2">Passes</th> | |
| <th class="text-center py-2">Shots</th> | |
| </tr> | |
| </thead> | |
| <tbody id="players-table"> | |
| <!-- Will be populated by JavaScript --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-lg p-6 mt-6"> | |
| <h2 class="text-2xl font-semibold mb-4">Match Analysis</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div class="bg-purple-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Positive Transitions</p> | |
| <p id="positive-trans" class="text-3xl font-bold text-purple-600">0</p> | |
| </div> | |
| <div class="bg-orange-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Negative Transitions</p> | |
| <p id="negative-trans" class="text-3xl font-bold text-orange-600">0</p> | |
| </div> | |
| <div class="bg-pink-50 p-4 rounded-lg"> | |
| <p class="text-gray-500">Shot Ratio</p> | |
| <p id="shot-ratio" class="text-3xl font-bold text-pink-600">0:0</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="text-center mt-8"> | |
| <button id="analyze-btn" | |
| class="bg-green-600 hover:bg-green-700 text-white px-8 py-3 rounded-lg text-lg font-semibold transition disabled:bg-gray-400" | |
| disabled> | |
| <i class="fas fa-play mr-2"></i>Start Analysis | |
| </button> | |
| </div> | |
| </div> | |
| <script> | |
| </script> | |
| </body> | |
| </html> |