3D 노란색 블록: import cv2
import numpy as np

# 로고 이미지 불러오기
img_path = "watermarked_img_8337236 | Tripo AI
Lv.0

bloco amarelo 3d

모든 3D 모델 둘러보기
프롬프트

import cv2 import numpy as np # 로고 이미지 불러오기 img_path = "watermarked_img_8337236614294575089.png" # 또는 이미지 경로 img = cv2.imread(img_path) if img is not None: hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) lower_yellow = np.array([10, 100, 100]) upper_yellow = np.array([45, 255, 255]) mask = cv2.inRange(hsv, lower_yellow, upper_yellow) kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (3, 3)) mask = cv2.morphologyEx(mask, cv2.MORPH_CLOSE, kernel, iterations=2) target_w = 400 aspect = mask.shape[0] / mask.shape[1] target_h = int(target_w * aspect) small_mask = cv2.resize(mask, (target_w, target_h), interpolation=cv2.INTER_AREA) _, small_mask = cv2.threshold(small_mask, 100, 255, cv2.THRESH_BINARY) h, w = small_mask.shape phys_w = 150.0 # 길이(mm) (15cm) phys_h = phys_w * (h / w) logo_height = 6.0 # 전체 높이 base_height = 2.0 # 높이 기본 z_top = np.where(small_mask >

4K·PBR·Tripo H3.1

관련 모델