{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")
{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")
{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
{ "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body See less Nano Banana Recent Generating… { "reference_source": "Use the uploaded reference image as the single source of truth", "identity_lock": { "face": "100% identical to reference image — same facial structure, eyes, nose, lips, jawline, skin texture, expression", "body": "Same body proportions, height, posture, shoulder width, waist, hips, limbs", "hair": "Same hairstyle, hairline, length, color, volume", "age": "Exact same apparent age as reference", "ethnicity": "Unchanged from reference" }, "consistency_rules": [ "Do NOT modify face shape", "Do NOT beautify, stylize, or alter facial features", "No AI face swap artifacts", "No face blending with other identities", "No body reshaping", "No weight gain or loss", "No added or removed tattoos, scars, or marks" ], "wardrobe": { "instruction": "Only change clothing if explicitly specified", "fit": "Clothing fits naturally and accurately to the same body", "fabric_behavior": "Realistic folds, tension, and shadows" }, "pose_and_scene": { "pose": "Preserve the same pose unless explicitly changed", "camera_angle": "Same camera height, distance, and lens perspective", "lighting": "Match original lighting direction, softness, and intensity", "environment": "Realistic environment with consistent scale and depth" }, "image_quality": { "realism": "Photorealistic, natural skin texture", "clarity": "Sharp focus on face and eyes", "resolution": "High-definition, clean details", "artifacts": "No blur, distortion, double face, broken anatomy" }, "negative_prompt": [ "different face", "face drift", "face mutation", "body distortion", "incorrect anatomy", "extra limbs", "blurred face", "plastic skin", "AI-generated look", "over-smoothing", "unreal lighting" ], "final_instruction": "The generated image must look like the SAME PERSON photographed again, not a variation or look-alike." } { "prompt": "Intimate full-body mirror selfie portrait of a young woman in bedroom, standing in front of large ornate gold-framed mirror, back turned slightly to show rear view while taking selfie with phone in one hand, long dark brown hair tied in high messy bun with loose strands, fair tan skin with natural glow and subtle texture, wearing ultra-sheer black lace lingerie set with intricate mesh panels, high-cut thong bottoms, garter straps connected to thigh-high stockings, thin spaghetti straps on bra top, silver metallic high-heel mules visible on feet, arched back and hips emphasized for seductive pose, one arm extended holding phone, other hand on mirror or hip, bedroom background with beige walls, white bed sheets, scattered books/candles, soft warm golden lamp light from side creating rim glow on body curves lace texture and hair, subtle blue LED accent from device, shallow depth of field, strong cinematic bokeh on mirror reflection and background, photorealistic sensual lingerie fashion selfie, high detail lace transparency skin pores hair strands garter straps heel shine and natural imperfections, shot on smartphone with slight wide-angle distortion typical for mirror shots, ultra detailed, 8k resolution", "negative_prompt": "cartoon, anime, illustration, painting, deformed, blurry, lowres, plastic skin, doll-like, heavy makeup overload, thick eyeliner, false lashes, filters, beauty filter, airbrushed skin, extra limbs, distorted proportions, asymmetrical face, harsh flash, cold lighting, day time, fully clothed, short hair, blonde hair, standing straight, no mirror, no phone, crowded room, text watermark, logo, ugly, bad anatomy, overexposed, underexposed, low contrast", "reference_image": { "enabled": true, "strength": 0.92, "description": "Extremely strong reference for exact composition and pose: young woman taking mirror selfie showing back/rear view, long dark hair in messy bun, sheer black lace lingerie with garter straps and high-cut bottoms, arched back emphasizing curves, phone in hand, ornate gold mirror frame, soft warm bedroom light with blue accent, seductive intimate vibe, high detail lace and skin texture" }, "style": "photorealistic intimate mirror selfie, sensual lingerie boudoir, warm golden bedroom lighting", "aspect_ratio": "3:4", "lighting": "soft warm golden lamp light from side, gentle rim light on back curves hair and lace, subtle blue LED fill from phone, realistic soft shadows and highlights", "camera": "smartphone mirror selfie (iPhone style), slight wide-angle distortion, natural low-key indoor light, minor grain for realism", "additional_details": [ "hair: dark brown-black, long, tied in high messy bun with loose flyaways and strands down back", "outfit: sheer black mesh lace bra and high-cut thong bottoms, garter straps with metal rings, thin straps, semi-transparent fabric clinging to body  EDIT PROMPT (CLEAR & STRICT): Replace only the bikini she is currently wearing with the provided reference bikini. The new bikini must fit her perfectly and tightly, matching the reference exactly in color, fabric, cut, straps, and details. Do NOT change anything else. Preserve the same woman, same body, same proportions Keep the exact pose, angle, expression, lighting, background, and camera framing No changes to face, hair, skin tone, or body shape She remains default/slim as she already is (not fat, not obese, no body exaggeration) This is a wardrobe-only replacement. Everything except the bikini stays 100% identical to the original image. Negative instructions: No resizing or reshaping of the body No stylization or artistic changes No added accessories No changes to posture or anatomy No distortion or blur Result: Photorealistic, natural-looking bikini replacement that appears originally worn by her, with realistic fabric tension and clean edges.
Create a Sci-Fi Command uniform. Use the reference image and turn all silver to Dark Blue. The color of the uniform is Black top with blue trim, and black pants with a dark blue stripe down the side. Just show one uniform male and one uniform female. Females' hair must not show on the sides or in front of the collar and shoulders. Do not show a belt with a uniform.
# Keeps 589 bright, boosts jewelry shine, replaces background, and maps to Casinofi duotone. import cv2, numpy as np from google.colab import files from PIL import Image # Upload your image when prompted up = files.upload() fn = list(up.keys())[0] img_bgr = cv2.imdecode(np.frombuffer(up[fn], np.uint8), cv2.IMREAD_COLOR) # --- Palette (BGR) --- HEX = lambda h: (int(h[5:7],16), int(h[3:5],16), int(h[1:3],16)) SHADOW = np.array(HEX("#0F1011"), np.float32) MID = np.array(HEX("#8E7A55"), np.float32) HILITE = np.array(HEX("#E6D2A1"), np.float32) HILITE_PLUS = np.array(HEX("#EBDDB7"), np.float32) # extra-bright cream for 589 # --- Helper: gradient map (shadow -> mid -> highlight) --- def gradient_map(gray01): g = gray01[...,None] t1 = np.clip(g/0.5, 0, 1) t2 = np.clip((g-0.5)/0.5, 0, 1) low = SHADOW*(1-t1) + MID*t1 high = MID*(1-t2) + HILITE*t2 return np.where(g<=0.5, low, high) hsv = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2HSV) # --- Masks --- # Background (yellow) range bg_mask = cv2.inRange(hsv, (15, 120, 120), (40, 255, 255)) # tune if needed # Shirt (blue) range – helpful for separate contrast if you want shirt_mask = cv2.inRange(hsv, (95, 80, 40), (130, 255, 255)) # Numbers “589” (white-ish areas on shirt) gray = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2GRAY) num_mask = cv2.threshold(gray, 210, 255, cv2.THRESH_BINARY)[1] # bright white # Jewelry (gold/yellow highlights) jew_mask = cv2.inRange(hsv, (12, 60, 120), (30, 255, 255)) # gold tones # Clean masks a bit def clean(m, k=3): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (k,k)) m = cv2.morphologyEx(m, cv2.MORPH_OPEN, kernel, iterations=1) m = cv2.morphologyEx(m, cv2.MORPH_CLOSE, kernel, iterations=1) return m bg_mask = clean(bg_mask, 5) shirt_mask= clean(shirt_mask, 5) num_mask = clean(num_mask, 3) jew_mask = clean(jew_mask, 3) # --- Step 1: Replace background with deep charcoal --- out = img_bgr.copy() out[bg_mask>0] = SHADOW # --- Step 2: Convert subject to Casinofi duotone --- # Work on non-background regions subj = out.copy() subj_mask = (bg_mask==0).astype(np.uint8)*255 subj_gray = cv2.cvtColor(subj, cv2.COLOR_BGR2GRAY).astype(np.float32)/255.0 mapped = gradient_map(subj_gray).astype(np.uint8) mapped = cv2.bitwise_and(mapped, mapped, mask=subj_mask) bg_area = cv2.bitwise_and(out, out, mask=bg_mask) out = cv2.add(mapped, bg_area) # --- Step 3: Boost numbers “589” to brighter cream and keep edges crisp --- num_rgb = np.zeros_like(out, dtype=np.uint8) num_rgb[:] = HILITE_PLUS num_layer = cv2.bitwise_and(num_rgb, num_rgb, mask=num_mask) out = cv2.bitwise_and(out, out, mask=cv2.bitwise_not(num_mask)) out = cv2.add(out, num_layer) # Optional: thin dark stroke around numbers edges = cv2.Canny(num_mask, 50, 150) stroke = cv2.dilate(edges, np.ones((2,2), np.uint8), iterations=1) out[stroke>0] = (out[stroke>0]*0 + SHADOW*0.9).astype(np.uint8) # --- Step 4: Jewelry shine (Screen-like brighten in cream) --- # Create a cream layer and blend additively where jewelry mask is j_layer = np.zeros_like(out, dtype=np.float32) j_layer[:] = HILITE j_mask_f = (jew_mask.astype(np.float32)/255.0)[...,None] out_f = out.astype(np.float32) out = np.clip(out_f + j_layer*0.35*j_mask_f, 0, 255).astype(np.uint8) # --- Step 5: Gentle contrast pop on subject only --- subj_mask3 = cv2.merge([subj_mask, subj_mask, subj_mask]) subj_pix = np.where(subj_mask3>0) sub = out.astype(np.float32) sub[subj_pix] = np.clip((sub[subj_pix]-20)*1.08 + 20, 0, 255) out = sub.astype(np.uint8) # Save cv2.imwrite("output_casinofi.png", out) files.download("output_casinofi.png") print("Done. Download output_casinofi.png")