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

Pentax K-3, K-1 and K-1 Mark II are not recognised #207

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion focuspoints.lrdevplugin/PointsRendererFactory.lua
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ function PointsRendererFactory.createRenderer(photo)
logInfo("PointsRenderFactory", "Camera Model: " .. cameraModel)

-- normalize the camera names. Pentax can be called multiple things
if (string.find(cameraMake, "ricoh imaging company", 1, true) or string.find(cameraMake, "pentax", 1, true)) then
if (string.find(cameraMake, "ricoh imaging company", 1, true)
or string.find(cameraMake, "pentax", 1, true)
-- since K-3, tested with K-3, K-1, K-1 Mark II. cameraMake is too unspecific, therefor we test against cameraModel as well
or (string.find(cameraMake, "ricoh", 1, true) and string.find(cameraModel, "pentax", 1, true))) then
cameraMake = "pentax"
end

Expand Down
51 changes: 51 additions & 0 deletions focuspoints.lrdevplugin/focus_points/pentax/pentax k-1 mark ii.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-- Pentax K-1 Mark II
-- Submitted by: sto3014 (as a copy of pentax k-1 mark ii.txt)
-- 36.4 MP, 7360x4912
-- AF System: 33 point
-- Coordinates represent the CENTER of the AF point

-- point dimensions
focusPointDimens = {150, 150}

-- top row
1 = {2797, 1818}
2 = {3238, 1818}
3 = {3680, 1818}
4 = {4121, 1818}
5 = {4563, 1818}

-- upper row
6 = {2355, 2137}
7 = {2797, 2137}
8 = {3238, 2137}
9 = {3680, 2137}
10 = {4121, 2137}
11 = {4563, 2137}
12 = {5005, 2137}

-- center row
13 = {1914, 2456, 150, 350}
14 = {2350, 2456}
15 = {2797, 2456}
16 = {3238, 2456}
17 = {3680, 2456, 200, 200}
18 = {4121, 2456}
19 = {4563, 2456}
20 = {5005, 2456}
21 = {5446, 2456, 150, 350}

-- lower row
22 = {2355, 2775}
23 = {2797, 2775}
24 = {3238, 2775}
25 = {3680, 2775}
26 = {4121, 2775}
27 = {4563, 2775}
28 = {5005, 2775}

-- bottom row
29 = {2797, 3094}
30 = {3238, 3094}
31 = {3680, 3094}
32 = {4121, 3094}
33 = {4563, 3094}