Skip to content

当对图片标注结果做出改动之后删除图片导致闪退 #228

@tstring413

Description

@tstring413

发生问题

对一张图片的标注结果进行修改后,尝试删除该图片时,发生闪退。

. 重现步骤

打开标注页面后对图片做任意标注,不确认的情况下选择删除,弹出保存提示,选择任何选项或关掉提示窗口后发生闪退

  • 控制台输出
  • Traceback (most recent call last):
    File "C:\Users\20334\anaconda3\envs\pplabel\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2697, in deleteImg
    self.importDirImages(self.lastOpenDir, isDelete=True)
    File "C:\Users\20334\anaconda3\envs\pplabel\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2464, in importDirImages
    if not self.mayContinue() or not dirpath:
    File "C:\Users\20334\anaconda3\envs\pplabel\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2725, in mayContinue
    self.saveFile()
    File "C:\Users\20334\anaconda3\envs\pplabel\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2590, in saveFile
    self._saveFile(img_idx, mode=mode)
    File "C:\Users\20334\anaconda3\envs\pplabel\lib\site-packages\PPOCRLabel\PPOCRLabel.py", line 2611, in _saveFile
    np.fromfile(self.filePath, dtype=np.uint8), cv2.IMREAD_COLOR
    FileNotFoundError: [Errno 2] No such file or directory: 'D:\筛后文本段图片.tar\筛后文本段图片\merged_longtext_v5-4.扭曲 斜角度-20251028_0929\S0179 斜角度_1.jpg'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions