The presentation is about the development and application of CourtVisionPH. CourtVisionPH is a system developed for the extraction, storage, and analysis of basketball-related spatial information. It focuses on the extraction of field goal attempt (FGA) locations from broadcast basketball videos and the spatial analysis of shooting by means of statistics and maps/visualizations. The system was developed using the Python Programming Language. It features a database for storing spatial and non-spatial information and a Graphical User Interface (GUI) to help the user and the system interact. The modules used in the development include Tkinter for the GUI, SQLite for the database, Numpy for the computations, Pillow for image processing, and OpenCV for video rendering. The system has three independent but interconnected functionalities each with its own specific task: (1) Data Management which handles database connections, (2) Spatial Data Extraction for user-assisted extraction of FGA locations from videos using 2D-projective coordinate transformation and validation of transformed FGA locations sing RMSE and back-transformation, and (3) Spatial Analysis that computes statistics, generates maps/visualizations, and query-based analysis. After the development of the system, it was applied on UP Fighting Maroons and the DLSU Green Archers during the 2nd Round of University Athletics Association of the Philippines (UAAP) Season 76 (2013-2014). Videos publicly available online through youtube.com were used for extracting field goal attempt locations. Shots taken too far from the basket (half-court heaves, etc.) or those with bad RMSE or back-substitution results were excluded from the extraction. The extracted FGA locations were then validated using box-scores. Afterwhich, the system was used to analyze and compare the two teams and their players using statistics and visualizations and show that spatial analysis provides more information and allows for better characterization and appreciation of shooting than conventional, non-spatial techniques. |