| Summary: | Add a new AI based tool to auto-crop image. | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Orontion <orontion> |
| Component: | Plugin-Bqm-WishForNewTools | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | caulier.gilles, metzpinguin, michael_miller |
| Priority: | NOR | ||
| Version First Reported In: | 8.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Incorrectly processed image | ||
|
Description
Orontion
2025-01-27 18:02:23 UTC
I'll make the bug to a wish, actually we don't have an automatic crop function in the lens auto correction tool. I'm not sure now if Lensfun actually provides this as a feature. I'll check. Maik Also check the Advanced Metadata settings. There are now settings for the pick label. "xmp.digiKam.PickLabel" should be at the top of the list. Maik Just as opinion - lens auto-correction feature joesn't make much sense if it leaves artifacts on sides of image as a result. Also, these artifacts make auto-correction unusable during batch processing. If black edges appear, it could be solved using our automatic cropping tool in BQM. Not with this image where the correction goes in the other direction. Darktable uses a scaling of 1.023 by default to make the edges disappear, this would be an option. Maik Yes, this would be acceptable solution to pair auto-correction with auto-crop, but unfortunately artifacts on sides are just lines with color of outermost pixels, so auto-crop has no chance to detect borders and remove them. I have never seen black borders in my scenarios. Also, black borders will confuse auto-crop if processed images have significant dark/black areas, for example night time photos. Hi Michael, This is an entry where the current basic auto-crop tool (Edtor + BQM) can be replaced by an AI based tool... Best Gilles (In reply to caulier.gilles from comment #7) > Hi Michael, > > This is an entry where the current basic auto-crop tool (Edtor + BQM) can be > replaced by an AI based tool... > > Best > > Gilles Sorry, but why this super-basic functionality requires AI?.. This is literally just simplest geometry operation: crop image by innermost unchanged rectangle, what kind of AI is needed here? And why original bug name has changed? Because this is the plan : add an AI based processor to fix images, not only crop, but perspective, rotation (already done), etc. The original code to crop image is weird, and need to be rewritten. This is why the idea to use a DNN with right models (based on modules) sounds like the right way to go. Michael Miller in this room can explain better than me the concept. Best Gilles Caulier (In reply to caulier.gilles from comment #9) > Because this is the plan : add an AI based processor to fix images, not only > crop, but perspective, rotation (already done), etc. > > The original code to crop image is weird, and need to be rewritten. This is > why the idea to use a DNN with right models (based on modules) sounds like > the right way to go. > > Michael Miller in this room can explain better than me the concept. > > Best > > Gilles Caulier Yes, Gilles is correct. The plan is to add more auto-tools to digiKam to correct and adjust multiple image parameters, including cropping. In your scenario it is easy to auto-crop based on the innermost unchanged rectange, but that assumes the cropping was done in digiKam. There are other use cases where the user may want to auto-crop an imported image that already has black or white edges. In those cases an AI border detection model is needed. It's better to use the same method for auto-cropping for all use cases instead of implementing multiple different methods. Cheers, Mike Okay, sounds fair. Thank you for explanation! I hope, this AI capabilities do not require internet connection and do not send user's data to third-party organizations for processing? (In reply to Orontion from comment #11) > Okay, sounds fair. Thank you for explanation! > > I hope, this AI capabilities do not require internet connection and do not > send user's data to third-party organizations for processing? Hi Orontion, The digiKam team takes your (and our) privacy seriously. None of the AI models implemented in digiKam send your data to the cloud. All models are downloaded to your computer and run locally. Your data is exactly that, yours. Cheers, Mike Thank you for information! Glad to hear that! |