Jason Hernandez in California has developed a smartphone attachment that helps dog owners take the perfect picture or selfie with their pet.

The attachment is a phone mount that holds a tennis ball to grab your pet's attention towards the phone's camera as you click a picture.

Hernandez has been working on the project for about a year and was inspired to create the Pooch Selfie after seeing his wife experience some difficulty capturing a photo of the family's pet dog, 'Huffington Post' reported.

Hernandez noticed that a tennis ball successfully captured the dog's attention. That observation sparked a eureka moment and he began developing the product.

The simple device works for most smartphones and tablets, and is designed to work with both front and rear cameras.

The removable Pooch Selfie ball emits a squeaking noise when squeezed and can be used to play 'fetch' to increase your dog's interest in the tennis ball.

"Use the Pooch Selfie ball for a couple rounds of fetch. You'll be surprised at how much your pup's smile will light up for the next pic," the company wrote on its website.

A Kickstarter campaign to fund Pooch Selfie has already surpassed its goal of raising USD 7,000. So far the campaign has raised more than USD 14,000.