mcpField
A
ar-filter-generation

ar-filter-generation

github.com/eachlabs创意与媒体44233 次安装今天更新
代码仓库

关于 ar-filter-generation

ar-filter-generation 是基于 each::sense 的 AR 滤镜概念生成技能,面向创作者和营销团队。它涵盖人脸效果、背景替换及面部跟踪元素,并支持通过会话迭代设计。

主要功能

  1. 01生成动物、人像与美妆滤镜概念
  2. 02设计虚拟妆容和配饰试戴效果
  3. 03构思背景替换与面部扭曲效果
  4. 04生成品牌滤镜和 3D 跟踪元素
  5. 05通过会话迭代滤镜设计

适用场景

  1. 01为社交媒体自拍设计动物耳朵滤镜
  2. 02探索美妆或虚拟配饰效果
  3. 03制作活动宣传用品牌滤镜概念
  4. 04为游戏或娱乐构思 3D 面部效果

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill ar-filter-generation

安装后在 Claude Code 中输入/ar-filter-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

AR 滤镜生成

使用 each::sense 生成创意 AR 滤镜和面部特效。此技能可为 AR 滤镜概念、面部追踪特效以及 Instagram、Snapchat 和 TikTok 等平台的社交媒体面部滤镜创建图像和视频。

功能

  • 面部滤镜:动物耳朵、鼻子、胡须和角色叠加效果
  • 美颜特效:磨皮、修容和美化滤镜
  • AR 妆容:虚拟口红、眼影、腮红和完整妆容
  • 配饰:太阳镜、帽子、珠宝和可穿戴叠加效果
  • 背景特效:背景替换和模糊特效
  • 面部变形:有趣的面部扭曲和喜剧特效
  • 品牌滤镜:Logo 叠加效果和推广 AR 体验
  • 3D 面部追踪:跟随面部动作的物体

快速开始

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an AR filter concept showing a person with cute dog ears and a dog nose overlay, playful and fun style"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

AR 滤镜类型和使用场景

滤镜类型描述平台用途
面部滤镜动物叠加效果、角色面具Instagram、Snapchat、TikTok
美颜滤镜肌肤美化、面部塑形所有平台
妆容特效虚拟化妆品应用美妆品牌、网红
配饰太阳镜、帽子、珠宝时尚、零售
背景环境替换视频通话、内容创作
变形有趣的面部扭曲娱乐、病毒式传播内容
品牌Logo 叠加效果、推广营销活动
3D 物体面部追踪 3D 元素游戏、娱乐

使用场景示例

1. 面部滤镜设计(狗耳朵和鼻子)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an AR filter concept showing a young woman with realistic fluffy golden retriever dog ears on top of her head and a cute black dog nose overlay on her nose. Add subtle whisker dots on cheeks. The filter should look natural and integrate well with the face. Show front-facing selfie view."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 美颜滤镜特效
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a beauty AR filter effect showing before and after comparison. Show a person with the beauty filter applied: smooth skin, subtle face slimming, brightened eyes, soft glow effect, and enhanced jawline definition. Natural-looking enhancement, not overdone. Professional beauty app style."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. AR 妆容滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a virtual makeup AR filter concept. Show a woman with AR-applied makeup: bold red lipstick, smoky eye shadow in bronze and gold tones, defined eyebrows, subtle blush, and winged eyeliner. The makeup should look realistic as if professionally applied. Glamorous evening look. Front-facing portrait."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
4. 太阳镜和配饰滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an AR try-on filter showing a person wearing virtual aviator sunglasses with gold frames and gradient lenses. Add a matching gold chain necklace and small hoop earrings. The accessories should look photorealistic and properly positioned on the face. Fashion e-commerce style visualization."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. 背景替换滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an AR background replacement filter concept. Show a person in selfie view with their original background replaced by a tropical beach paradise - palm trees, turquoise water, golden sand, sunset sky. Clean edge detection around the person, natural lighting blend between subject and background."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 面部变形 / 趣味滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a funny face distortion AR filter. Show a person with comically enlarged eyes (anime style big), tiny mouth, and slightly enlarged forehead. Add sparkles around the eyes and a rainbow effect. Cute and comedic style like popular Snapchat filters. Exaggerated but still recognizable."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
7. 品牌 AR 滤镜(Logo 叠加效果)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a branded AR filter concept for a sports event. Show a person with face paint in team colors (blue and white stripes on cheeks), a virtual foam finger appearing next to their head, confetti particles falling, and a banner frame around the image that says GO TEAM. Celebratory sports fan atmosphere."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 节日主题滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a Christmas holiday AR filter. Show a person wearing a virtual Santa hat, with a red Rudolph nose overlay, snowflakes falling around them, and a subtle frost effect on the edges of the frame. Add twinkling lights in the background. Festive and cheerful holiday spirit."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. 游戏风格滤镜(Among Us)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a gaming-inspired AR filter in the style of Among Us. Transform the person into a crewmate character - their face visible through a space helmet visor, wearing the iconic colored spacesuit (red), with a small pet companion floating nearby. Add a spaceship interior background. Fun and recognizable gaming aesthetic."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
10. 3D 物体面部追踪滤镜
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a 3D face tracking AR filter concept. Show a person with a 3D floating crown hovering above their head that follows head movement, 3D butterflies orbiting around them, and magical sparkle particles emanating from their eyes. The 3D elements should have realistic lighting and shadows. Fantasy magical theme."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

最佳实践

面部滤镜设计
  • 自然融合:滤镜应与面部特征自然融合
  • 正确的追踪点:围绕标准面部关键点位置(眼睛、鼻子、嘴巴、额头)进行设计
  • 光线一致性:使滤镜光线与常见自拍光线条件相匹配
  • 比例恰当:元素应与面部大小成比例
平台注意事项
  • Instagram/TikTok:竖屏 9:16 格式,优先考虑移动端设计
  • Snapchat:考虑 Lens Studio 的功能和限制
  • 视频通话:适用于较低分辨率的微妙特效
性能提示
  • 保持简洁:元素越少,实时性能越好
  • 透明度:为叠加效果使用正确的 Alpha 通道
  • 动画:考虑静态设计转化为动态滤镜后的效果

模式选择

生成前询问用户:

“你想要快速且便宜,还是高质量?”

模式最适合速度质量
max最终滤镜概念、客户演示、作品集作品较慢最高
eco快速草稿、概念探索、头脑风暴式变体较快良好

多轮创意迭代

使用 session_id 迭代滤镜设计:

# Initial filter concept
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a cat face AR filter with whiskers and cat ears"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "cat-filter-project"
  }'

# Iterate based on feedback
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Make the ears more realistic and fluffy, add a pink nose, and include subtle face contouring to make cheeks more cat-like"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "cat-filter-project"
  }'

# Request variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a variation with black cat features instead of tabby, and add glowing yellow eyes effect"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "cat-filter-project"
  }'

滤镜系列生成

为营销活动生成多个相关滤镜:

# Filter 1 - Dog
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an AR filter with golden retriever dog ears and nose, cute and playful"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "session_id": "animal-filter-pack"
  }'

# Filter 2 - Cat
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Now create a matching cat filter with the same style - tabby cat ears and whiskers"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "session_id": "animal-filter-pack"
  }'

# Filter 3 - Bunny
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Complete the pack with a bunny filter - long floppy ears and a pink bunny nose"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "session_id": "animal-filter-pack"
  }'

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
内容政策违规内容被禁止调整提示词,使其符合平台指南
超时生成内容过于复杂将客户端超时设置为至少 10 分钟

AR 滤镜提示词技巧

创建 AR 滤镜概念时,请在提示词中包含以下细节:

  1. 滤镜类型:指定类别(面部滤镜、美颜、化妆等)
  2. 元素:列出所需的所有叠加元素(耳朵、鼻子、配饰)
  3. 风格:写实、卡通、极简、繁复
  4. 定位:说明各元素相对于面部特征的位置
  5. 效果:粒子、发光、色彩分级、变形
  6. 平台:如果有特定要求,请注明目标平台
  7. 氛围:有趣、华丽、恐怖、节日气氛等
提示词结构示例
"Create a [filter type] AR filter showing [subject description].
Include [overlay elements] with [style/aesthetic].
Add [effects/particles] and [additional features].
[Platform/mood requirements]."

相关技能

  • each-sense - 核心 API 文档
  • product-photo-generation - 产品可视化
  • video-generation - 视频内容创作
  • image-generation - 通用图像创作

评论

支持 Markdown