accessing LiveText in photos

Anyone figured out a way to access the text found in a photo in Montery via script?

I tried some basic stuff in Preview and go nowhere

Thanks