Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a grid pattern overlay feature to QField's QML camera #4745

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Nov 10, 2023

This PR implements a grid overlay to QField's QML {still,video} camera. I've always found such a functionality super useful when trying to take technical photos. The overlay can be turned on/off via an overlay button located at the top left corner of the screen.

Screenshot time:

image

With that in, as well as the recent geotagging functionality, I'm wondering whether we should switch the default camera back to the QML camera. People have reported the memory saturation crash gone when using the QML camera. Food for thoughts.

(Edit: forgot to mention the commit also fixes an issue with the capture/record button overlapping the system's bottom margin within which we shouldn't have anything interactive)

@qfield-fairy
Copy link
Collaborator

qfield-fairy commented Nov 10, 2023

Comment on lines +378 to +379
} else {
camera.flash.mode = Camera.FlashOff
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else {
camera.flash.mode = Camera.FlashOff
}
else if (camera.flash.mod == Camera.FlashOn)
camera.flash.mode = Camera.FlashAuto;
} else {
camera.flash.mode = Camera.FlashOff;

Otherwise I can't find where the FlashAuto mode is set

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@domi4484 , the idea here was to only allow for On/Off, hence why Auto isn't set. We can tweak in a separate PR if that's something you feel is needed.

@nirvn nirvn merged commit 3f683c5 into master Nov 14, 2023
18 of 19 checks passed
@nirvn nirvn deleted the camera_grid branch November 14, 2023 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants