3D Workspace
Home
Assets
Affiliate Program
Creator Program
Sign up/Log in
View Plans
DCC Bridge
gabrielcassimiro054
07-23 15:25
Model Name
abstract cubic sculpture 3d model
Tags
abstract symbol
abstract symbol realistic
abstract symbol rendering
abstract symbol rendering realistic
grayscale
image
png
realistic
rendering
rendering realistic
Prompt
img = Image.open('input_file_2.png') img_np = np.array(img) gray = np.mean(img_np, axis=2) # Find rows where there's a significant amount of pure white pixels white_pixels = (gray > 240).astype(int) white_pixels_per_row = np.sum(white_pixels, axis=1) white_rows = np.where(white_pixels_per_row > img_np.shape[1] * 0.5)[0] if len(white_rows) > 0: print(f"Predominantly white rows from {white_rows[0]} to {white_rows[-1]}") # Crop to these rows cropped = img_np[white_rows[0]:white_rows[-1], :] gray_cropped = np.mean(cropped, axis=2) white_pixels_per_col = np.sum(gray_cropped > 240, axis=0) white_cols = np.where(white_pixels_per_col > cropped.shape[0] * 0.1)[0] if len(white_cols) > 0: print(f"Predominantly white cols from {white_cols[0]} to {white_cols[-1]}") else: print("Could not find the white box.")
Detailed Info
Related Models
Enter invite code
Enter invite code to get credits!