moe-rika

Results 8 comments of moe-rika

我看了一下代码,用CDT给出频域 `self.ca[channel], self.hvd[channel] = dwt2(self.img_YUV[:, :, channel], 'haar')` 然后把频域划分成4x4的格子 对4x4的格子进行奇异值分解, 水印加在对角矩阵上。 ``` python def block_add_wm_fast(self, arg): # dct->svd->打水印->逆svd->逆dct block, shuffler, i = arg wm_1 = self.wm_bit[i % self.wm_size] u, s,...

之前我用过RS纠错码,当时没有加掩模,在大部分byte为0x00时,0x00会被丢弃,导致RS也无法纠错

``` python def extract_raw(self, img): # 每个分块提取 1 bit 信息 self.read_img_arr(img=img) self.init_block_index() wm_block_bit = np.zeros(shape=(3, self.block_num)) # 3个channel,length 个分块提取的水印,全都记录下来 self.idx_shuffle = random_strategy1(seed=self.password_img, size=self.block_num, block_shape=self.block_shape[0] * self.block_shape[1], # 16 ) for...

my code with mask: ``` python import numpy as np from blind_watermark import WaterMark # '0.4.1' import hashlib mask = bytearray() m = hashlib.sha256() m.update(b"1145141919810") for i in range(1024 //...

1968.6.15武汉《新华工》批判鲁礼安专刊 http://communistchinadoc.blogspot.com/2018/06/1968615.html

> 文化大革命文库第三版 https://cup.cuhk.edu.hk/index.php?route=product/product&product_id=3050 这是第三部的目录,但是不全。 [123456.txt](https://github.com/banned-historical-archives/banned-historical-archives.github.io/files/10407206/123456.txt)