Esempio n. 1
0
 def test_get_line_imgs(self, kaisetu):
     kn = KnPage(params=kaisetu)
     kn.clear_noise()
     kn.get_line_imgs()
     for i, img in enumerate(kn.line_imgs):
         kn.write(DATA_DIR+"/1062973/k009/00/line_img_{0}.jpeg".format(i), img)
Esempio n. 2
0
 def test_write(self, kn005):
     #dataDirectory = tmpdir.mkdir('data')
     #sampleFile = dataDirectory.join("sample.jpeg")
     kn = KnPage(params=kn005)
     #kn.write(sampleFile)
     kn.write("/tmp/outfile.jpeg")
Esempio n. 3
0
 def test_clear_noise(self, knp):
     kn = KnPage(params=knp)
     kn.clear_noise()
     kn.write(DATA_DIR+'/knp_bw_not_tozero.jpeg', kn.bw_not_tozero)