Skip to content

problem in your demo #3

@WodenJay

Description

@WodenJay

Hi, thank you for the great work and open-sourcing the code.

While running run_pre_process.py on a batch of high-quality fundus images, I noticed that no masks are generated, and the program silently skips many images. I think that the root cause is in the get_mask() function:

The call to cv2.HoughCircles() in _get_center_radius_by_hough() often fails (returns None) even on high-quality images, especially when the thresholding in get_mask_BZ() produces weak or broken masks.

Since the failure is silently caught by a try/except block, no error is shown, and no output is saved for the skipped images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions