|
@@ -78,7 +78,7 @@ f"""
|
|
|
deal_flag, secret_index = find_index_in_parts(self.parts, index)
|
|
|
if deal_flag:
|
|
|
# Step 2: Add watermark to the image and get the updated label
|
|
|
- secret = self.secret_parts[index]
|
|
|
+ secret = self.secret_parts[secret_index]
|
|
|
img_wm, watermark_annotation = add_watermark_to_image(img, secret, secret_index)
|
|
|
# 二维码提取测试
|
|
|
decoded_text, _ = detect_and_decode_qr_code(img_wm)
|