Forum Discussion
Ellieio
Aug 24, 2026Copper Contributor
How do you remove an unwanted person from a photo?
Hi everyone, Got a few otherwise great photos, but there are random people in the background that I'd like to remove. Cropping isn't really an option because it would cut out important parts of the ...
Naominy
Aug 24, 2026Tin Contributor
The Criminisi Algorithm - This algorithm was designed specifically for object removal and region filling. It works by intelligently filling in the gap left behind after you remove a person from a photo.
- Patch-Based Approach: Instead of treating the gap as a whole, it fills the empty space patch by patch. It looks at the boundary of the removed area and finds the best-matching "patch" of pixels from the surrounding background to copy into the hole .
- Smart Prioritization: Its key strength is its priority system. It prioritizes filling areas where linear structures (like lines or edges) enter the gap, ensuring that important features like the edge of a wall or a straight line are reconstructed correctly and realistically before filling in the less structured areas. This helps avoid blurry or unnatural results.
How to Proceed:
- If you are determined to try it, the most straightforward path is to find a working code implementation on a platform like GitHub and follow its setup instructions. It is certainly a "challenging or complex free method" that fits your criteria, but it requires a significant time investment in technical setup and troubleshooting.
What to Consider Before Using It:
- Implementation Required: To remove a person from a photo with this algorithm, you must find and run an existing implementation. Several open-source projects on GitHub provide this, but they are designed for developers.
- Technical Skills Needed: You will typically need to run code in Python or C++ and be comfortable with the command line. One implementation notes that it takes a long time to process higher-resolution images.