Anthocyanin does have a very nice VIS spectra which will aid in qualitative identification, but the compound will need to be isolated first. Your sample is a mixture of many different compounds so you will need to utilize scientific methods and techniques that can: extract the compounds from the plant, resolve the specific compound of interest apart from the remaining mixture, detect and ID the sample compared to a standard, then report the results. To measure the amount present, qualitatively, you will need to collect data from a set of standards to create a multi-level calibration table. * A basic UV/VIS spectrophotometer is not able to perform these tasks alone.
Try a technique such as HPLC with DAD detection that IS selective for the sample under analysis and when used with an appropriate HPLC method, can resolve, retain and measure the compound.
While William Letter is basically correct, you can estimate the amount of Total Anthocyanins (i.e. not specific ones) using acidic methanol extraction.
Mind you, different anthocyanins might result in somewhat different results