main_GUI.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:image-copy-move-detection 作者: rahmatnazali 项目源码 文件源码
def onDetect(self):
        if self.imageName == "":
            mbox.showerror("Error", 'Citra masukan belum terisi\nSilakan pilih dengan menekan tombol "Open File"')
        else:

            self.textBoxLog.config(state='normal')
            self.textBoxLog.insert(END, "Mendeteksi: "+self.imageName+"\n")
            self.textBoxLog.see(END)
            self.textBoxLog.config(state='disabled')

            imageResultPath = CopyMoveDetection.detect(self.imagePath, self.imageName, '../testcase_result/', blockSize=32)
            newImageRight = Image.open(imageResultPath)
            imageRightLabel = ImageTk.PhotoImage(newImageRight)
            self.labelRight = Label(self, image=imageRightLabel)
            self.labelRight.image = imageRightLabel
            self.labelRight.place(x=525, y=100)

            self.textBoxLog.config(state='normal')
            self.textBoxLog.insert(END, "Selesai.")
            self.textBoxLog.see(END)
            self.textBoxLog.config(state='disabled')
            pass
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号