Learn to create better images with AI!
Check out our crash course in prompt engineering & AI art generation!

21ReliCosmic posted 15 days ago
13 views 0 comments
shadow = np. array ([0x11,0x10,0x0F] , np. float32) # BGR of #0F1011 mid = np. array ([0x55,0x7A,0x8E] , np. float32) # #8E7A55 hi = np. array ([0xA1,0xD2,0xE6] , np. float32) # #E6D2A1 img = cv2. imread ("input.jpg") g = cv2. cvtColor (img, cv2.COLOR_BGR2GRAY) . astype (np.float32) /255. 0 g = g [...,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) + hi*t2 out = np. where (g<=0.5, low, high) . astype (np.uint8) cv2. imwrite ("output_casinofi.png", out)

Generation parameters

Model used

More by 21ReliCosmic