Approach them politely and ask if they wouldn't mind taking a photo for you. Most people are usually happy to help.