Portfolio
My Blog
Scroll down to discover
Search
Categories

Phục hồi ảnh cũ bằng AI Gemini Nano Banana

September 16, 2025Category : Automation & AI

Bước 1: Đầu tiên, bạn hãy truy cập vào nền tảng Google AI Studio và chọn mục Try Nano Banana.

Bước 2: Tiếp theo, bạn tải lên bức ảnh cũ cần phục hồi bằng cách nhấn vào dấu + và chọn Upload File.

Bước 3: Ngay sau đó, hãy sao chép và dán toàn bộ câu lệnh (prompt) được cung cấp vào ô nhập liệu rồi nhấn Run.

"version": "1.0",
"task": "image_edit",
"notes": "Edit foto menjadi potret studio kelas profesional setara Canon EOS R5. Pertahankan wajah & pose asli.",
"input_image": "REPLACE_WITH_IMAGE_ID_OR_PATH",
"camera_emulation": {
"brand_model": "Canon EOS R5",
"lens": "50mm f/1.8 (standard prime, sedikit lebih luas dari 85mm)",
"look": "ultra sharp, rich micro-contrast, natural color science"
},
"composition": {
"framing": "three-quarter body (from mid-thigh up)",
"arms": "both arms sepenuhnya terlihat",
"orientation": "portrait",
"crop_policy": "do_not_crop_face_or_hands",
"keep_pose": true,
"zoom": "slight zoom-out for wider context"
},
"subject_constraints": {
"keep_identity": true,
"lock_features": ["eyes", "nose", "lips", "eyebrows", "jawline", "face_shape"],
"expression_policy": "preserve_original"
},
"retouching": {
"skin": {
"tone": "keep original color",
"finish": "smooth, healthy, radiant",
"texture": "retain fine pores; avoid plastic look",
"blemishes": "lightly reduce temporary blemishes only",
"frequency_separation_strength": 0.4,
"clarity_microcontrast": 0.15
},
"hair": {
"finish": "clean, neat, shiny",
"flyaways": "reduce but keep natural strands"
},
"eyes": {
"whites_desaturation": 0.1,
"iris_clarity": 0.2,
"avoid_overwhitening": true
},
"teeth": {
"natural_whiten": 0.08,
"avoid_pure_white": true
},
"clothing": {
"policy": "upgrade quality while keeping same/similar style, cut, and color",
"fabric_look": "premium, fine weave, crisp edges",
"wrinkle_reduction": "moderate",
"texture_enhancement": 0.2
},
"lighting": {
"setup": "bright, soft, even front light",
"key": "beauty dish or ring light straight-on",
"fill": "broad soft fill to remove harsh shadows",
"shadow_control": "minimal, no deep shadows",
"specular_highlights": "subtle, flattering",
"white_balance": "neutral daylight",
"exposure_target": "ETTR without clipping"
},
"background": {
"type": "solid",
"color": "navy blue (#0f2a4a)",
"environment": "clean professional photo studio",
"gradient": "very subtle center vignette",
"separation": "gentle rim lift if needed"
},
"color_tone": {
"overall": "natural, true-to-life skin tones",
"saturation": "moderate",
"contrast": "medium with soft roll-off",
"vibrance": 0.1
},
"detail_sharpness": {
"method": "edge-aware sharpening",
"amount": 0.35,
"radius": 0.8,
"threshold": 0.02,
"noise_reduction": {
"luminance": 0.2,
"chroma": 0.25,
"preserve_details": 0.8
},
"clean_up": {
"remove_noise": true,
"remove_artifacts": true,
"banding_fix_on_background": true
"output": {
"resolution": "6000x4000",
"dpi": 300,
"format": "PNG",
"color_space": "sRGB IEC61966-2.1",
"bit_depth": "16-bit if supported, else 8-bit",
"background_alpha": "opaque"
"safety_bounds": {
"do_not": [
"change face geometry or identity",
"change pose",
"alter clothing style drastically",
"add heavy makeup",
"over-smooth or plastic skin",
"over-sharpen halos
"negative_prompt": [
"plastic skin",
"over-whitened eyes/teeth",
"harsh shadows",
"color casts",
"halo artifacts",
"muddy blacks",
"posterization/banding",
"oversaturated skin",
"blotchy NR"
"face_identity_lock": 0.95,
"pose_lock": 0.95,
"background_replace_strength": 0.9,
"clothes_style_lock": 0.85
},
"seed": 142857,
"metadata": {
"locale": "id-ID",
"creator": "professional photo editor style",
"purpose": "masterpiece studio portrait upgrade with zoom-out framing"

Câu lệnh yêu cầu AI mô phỏng chính xác chất lượng hình ảnh từ máy ảnh Canon EOS R5 và ống kính 50mm f/1.8. Điều này đảm bảo ảnh cuối cùng sẽ có độ nét cao, màu sắc chân thực và độ tương phản vi mô ấn tượng, giúp các chi tiết nhỏ nhất cũng trở nên sống động.

Giữ vững thần thái và bố cục gốc

AI được lệnh phải khóa hoàn toàn các đặc điểm nhận dạng như mắt, mũi, môi, đường nét khuôn mặt và biểu cảm. Dáng pose ban đầu của bạn cũng được giữ nguyên 100%, đảm bảo bức ảnh sau khi phục chế vẫn là chính bạn, không bị thay đổi thành người khác.

Chỉnh sửa tinh tế, tôn vinh vẻ đẹp tự nhiên

Quá trình làm đẹp được thực hiện một cách tinh vi. Làn da sẽ được làm mịn màng, khỏe khoắn nhưng vẫn giữ lại cấu trúc da tự nhiên để tránh cảm giác “nhựa”. Tóc và quần áo cũng được AI “chăm sóc” để trở nên gọn gàng, sắc nét và cao cấp hơn mà không làm thay đổi kiểu dáng ban đầu.

Dàn dựng ánh sáng và phông nền chuẩn studio

AI sẽ tự động loại bỏ phông nền cũ và thay thế bằng một phông nền màu xanh navy sang trọng. Đồng thời, nó sẽ thiết lập một hệ thống ánh sáng ảo, chiếu sáng chủ thể một cách mềm mại và đều khắp, loại bỏ hoàn toàn các vùng bóng tối gắt, giúp khuôn mặt trở nên rạng rỡ và có chiều sâu.

Tối ưu hóa chất lượng đầu ra cho mọi mục đích

Cuối cùng, câu lệnh chỉ thị cho AI xuất ra một tệp ảnh PNG với độ phân giải siêu lớn (6000×4000 pixels, 300 DPI). Với chất lượng này, bạn có thể thoải mái in ảnh khổ lớn, đăng tải lên mạng xã hội hoặc lưu trữ kỹ thuật số mà không lo bị vỡ hay giảm chất lượng.

01.
© Oliver / All rights reserved.
To top