Skip to content

Software crashes when pupil ROI out of frame (minor bug) #5

Description

@maiaaan

On some videos where the pupil ROI is close to the boundaries of the frame, I had the issue of adjusting the pupil ROI to the eye without the software crashing. Indeed, when you try to enlarge the pupil ROI and it happens to cover an area that is out of frame when you release the enlarging, the software crashes with this error

File "c:\users\user\work\faceit\faceit\lib\site-packages\FACEIT_codes\GUI_Intractions.py", line 331, in mouseReleaseEvent
    _ = self.parent.Display_handler.display_sub_region(self.parent.sub_region,"pupil")
  File "c:\users\user\work\faceit\faceit\lib\site-packages\FACEIT_codes\display_and_plots.py", line 355, in display_sub_region
    processed = sub_region.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

It would be nice if it doesn't crash and maybe just gives a warning, and give an error message if you try to apply changes on the pupil ROI/process the pupil.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions