请问这是在哪里呀?请推测一下大概位置。
Tạo vào: 2 tháng 6, 2025
Tạo vào: 2 tháng 6, 2025
pythonfrom PIL import Image import matplotlib.pyplot as plt img = Image.open('/mnt/data/IMG_8889.jpeg') plt.imshow(img) plt.axis('off') (-0.5, 923.5, 517.5, -0.5)
pythonimport numpy as np plt.figure(figsize=(4,2)) # crop central area h, w = img.size[1], img.size[0] # cropping approximate sign area sign = img.crop((0,0,w, int(h*0.35))) plt.imshow(sign) plt.axis('off') (-0.5, 923.5, 180.5, -0.5)
pythonplt.figure(figsize=(4,2)) sign2 = img.crop((int(w*0.1), int(h*0.05), int(w*0.9), int(h*0.25))) plt.imshow(sign2) plt.axis('off') (-0.5, 738.5, 103.5, -0.5)
pythonsign3 = img.crop((int(w*0.1), int(h*0.15), int(w*0.9), int(h*0.40))) plt.figure(figsize=(4,2)) plt.imshow(sign3) plt.axis('off') (-0.5, 738.5, 129.5, -0.5)
pythonsign4 = img.crop((int(w*0.1), int(h*0.20), int(w*0.9), int(h*0.50))) plt.figure(figsize=(4,2)) plt.imshow(sign4) plt.axis('off') (-0.5, 738.5, 155.5, -0.5)
pythonplt.figure(figsize=(4,2)) sign5 = sign4.resize((sign4.size[0]*3, sign4.size[1]*3)) plt.imshow(sign5); plt.axis('off') (-0.5, 2216.5, 467.5, -0.5)
python# crop first char region w_sign = sign4.size[0] h_sign = sign4.size[1] first = sign4.crop((0,0,int(w_sign*0.25), h_sign)) plt.imshow(first.resize((first.size[0]*4, first.size[1]*4))) plt.axis('off') (-0.5, 735.5, 623.5, -0.5)
python# better cropping y first2 = sign4.crop((20,10,250,160)) plt.imshow(first2.resize((first2.size[0]*4, first2.size[1]*4))) plt.axis('off') (-0.5, 919.5, 599.5, -0.5)
python# crop second char x_start = int(w_sign*0.25) x_end = int(w_sign*0.45) second = sign4.crop((x_start,0,x_end,h_sign)) plt.imshow(second.resize((second.size[0]*4, second.size[1]*4))) plt.axis('off') (-0.5, 591.5, 623.5, -0.5)
pythonx_start = int(w_sign*0.45) x_end = int(w_sign*0.65) third = sign4.crop((x_start,0,x_end,h_sign)) plt.imshow(third.resize((third.size[0]*4, third.size[1]*4))) plt.axis('off') (-0.5, 591.5, 623.5, -0.5)
pythonx_start = int(w_sign*0.65) x_end = int(w_sign*0.95) fourth = sign4.crop((x_start,0,x_end,h_sign)) plt.imshow(fourth.resize((fourth.size[0]*4, fourth.size[1]*4))) plt.axis('off') (-0.5, 887.5, 623.5, -0.5)
python# recrop bigger area to include full char sign6 = img.crop((int(w*0.55), int(h*0.18), int(w*0.87), int(h*0.45))) plt.imshow(sign6.resize((sign6.size[0]*4, sign6.size[1]*4))) plt.axis('off') (-0.5, 1179.5, 559.5, -0.5)
pythonplt.figure(figsize=(4,5)) plt.imshow(sign6.resize((sign6.size[0]*5, sign6.size[1]*5))) plt.axis('off') (-0.5, 1474.5, 699.5, -0.5)
pythonplt.figure(figsize=(4,5)) plt.imshow(third.resize((third.size[0]*5, third.size[1]*5))) plt.axis('off') (-0.5, 739.5, 779.5, -0.5)
pythonsign7 = img.crop((int(w*0.43), int(h*0.20), int(w*0.55), int(h*0.55))) plt.imshow(sign7.resize((sign7.size[0]*5, sign7.size[1]*5))) plt.axis('off') (-0.5, 554.5, 904.5, -0.5)
牌匾上写的是小篆体的「番禺水殿」四个字:
结合匾额内容和建筑细节,很大概率是在广东省广州市番禺区的一处传统景区(比如沙湾古镇、岭南印象园之类的番禺民俗文化街区)。如果是在外地拍摄,也很可能是一座以番禺水乡为主题、复刻岭南建筑的园区。