<human>: Summarize the given text in a few sentences.

I smoked a joint with my friend around 11 near the canal. It was a secluded area with good visibility so we could dispose and pull out cigarettes if need be. Everything went fine, but as we were walking back, we passed by a lamp-post and out of a box on the top, a recorded message played and said something like:

"You have been photographed doing illegal activities, you photo has been recorded and you will be prosecuted, please leave the premises now..."

Turns out we were accoss the water from an apartment building... I guess it was their land and they must have had a camera. Was the recorded message just used to scare us away? or could there be consequences?
<bot>: after smoking weed, a friend and I were yelled at by a box on top of a pole telling us we were photographed, will be prosecuted and should leave.