圖像 提示詞
非洲村莊場景的紀錄片照片

一個程式化的提示結構,用於生成一張紀錄片風格的照片,內容是一位年輕的非洲女性在鬱鬱蔥蔥的鄉村中,於火上攪拌著鍋子。它詳細說明了環境(泥屋、茅草屋頂、高大的樹木)和技術細節(50mm 鏡頭、自然陽光、超真實的保真度)。
提示詞
```python
class ImageGenerator:
def __init__(self):
self.base_style = "Documentary Photography"
self.lens_profile = "50mm prime lens"
def generate_village_scene(self):
prompt_config = {
"subject": {
"actor": "Young African woman",
"attire": "patterned wrapper and headscarf",
"action": "stirring a pot with a wooden spoon over a three-stone fire"
},
"environment": {
"location": "Lush rural African village",
"elements": ["mud huts", "thatched roofs", "tall green trees"],
"background": "children playing happily",
"atmosphere": "clean natural environment"
},
"technical_specs": {
"lighting": "Natural sunlight",
"fidelity": "Ultra-realistic, high detail",
"style": self.base_style,
"optics": self.lens_profile
}
}
return prompt_config
# 初始化生成器
session = ImageGenerator()
print(session.generate_village_scene())
```


