Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

I know what your pet is thinking - gemini

License

NotificationsYou must be signed in to change notification settings

liu-ziting/PetThoughts

Repository files navigation

English |中文

Live demo:I Know What Your Pet Is Thinking

Introduction

"I Know What Your Pet Is Thinking" is an image recognition application built on the Gemini Pro API. By uploading a photo of your pet, the app can intelligently analyze your pet's facial expressions and environment, and speculate on what they might be thinking.

Features

  • Image recognition: Using the Gemini-pro-vision's image recognition technology, it can accurately identify the pet's facial expressions and environment.
  • Facial analysis: By analyzing the pet's facial expressions, Gemini-pro-vision can infer the pet's possible emotional states, such as happiness, surprise, confusion, etc.
  • Environment analysis: Gemini-pro-vision can also infer the possible activities of pets based on their environment, such as outdoor play, indoor rest, etc.
  • Natural language processing: Combining image recognition and natural language processing technology, Gemini-pro-vision can convert the pet's emotions and activities into readable text descriptions.
  • User-friendly interface: Provides a clean and intuitive user interface that allows users to easily upload photos and get pet analysis results.

Notes

Please make sure that the uploaded photos are clear and visible to obtain more accurate analysis results.This application is only suitable for identifying and analyzing common pets such as cats and dogs. It may not be accurate for other animals.This is a fun and practical image recognition application that allows you to gain a deeper understanding of your pet's emotions and preferences. Whether it's for better care of your pet or sharing interesting stories about pets with friends, this website can provide you with a pleasant user experience.

Deployment

Deploying with Netlify (Recommended)

Deploy to Netlify

Deploying with Vercel

Deploy with Vercel

Simply click the button above and follow the instructions to deploy your own copy of the application.

Deployed

Environment Variables

NameDescriptionRequired
GEMINI_API_KEYYour API Key for GEMINI. You can get it fromhere.yes

Develop

You only need to adjust the following parameters according to the Gemini documentation and modify it to the prompt you need!

// pages\api\upload.js// generation configconstgenerationConfig={temperature:1,topK:32,topP:1,maxOutputTokens:8000}// prompt configconstparts=[{text:'You are a skilled pet language translator. Based on the photos uploaded by users, you identify what kind of pet it is and accurately guess the pet'semotionsandthoughts.Youcanguesswhatthepetwantstosaybasedonthepet's body language, expression, and surrounding environment. After the translation, please give the "voice" of the pet according to the tone of the pet. Speak more naturally and answer in Chinese. The format is as follows: 🐶: <What kind of pet is this> <What the pet is thinking>. If there is no pet in the picture uploaded by the user, it will return "There is no pet in the picture~""'}...]

Disclaimer

The front-end code of this project is generated byv0.dev ,and the interface is provided byGoogle Gemini,with statistical analysis powered byGoogle Clarity.

Warning

This project is an open-source project, and users must use it in compliance with theTerms of Use of GOOGLE and applicable laws and regulations, and must not use it for illegal purposes.

In accordance with the requirements of the "Interim Measures for the Administration of Generative AI Services"issued by China's Cyberspace Administration, please do not provide any unregistered generative AI services to the public in China.

Discord

Join our Discord

License

MIT ©liu-ziting

About

I know what your pet is thinking - gemini

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp