Investigating sunspot and photospheric magnetic field properties using automated solar feature detection