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 # Initialize the generator session = ImageGenerator() print(session.generate_village_scene())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": "年轻的非洲女性", "attire": "花纹裹身裙和头巾", "action": "用木勺搅拌三石灶上的锅" }, "environment": { "location": "郁郁葱葱的非洲乡村", "elements": ["泥屋", "茅草屋顶", "高大的绿树"], "background": "孩子们在快乐地玩耍", "atmosphere": "干净的自然环境" }, "technical_specs": { "lighting": "自然阳光", "fidelity": "超现实、高细节", "style": self.base_style, "optics": self.lens_profile } } return prompt_config # 初始化生成器 session = ImageGenerator() print(session.generate_village_scene())