Логотип Camera Match Test

Camera Match Test

Сообщество
gerard662
camera-match-test

Test how closely a Nikon Z camera (Zf, Z6III, Z5II, Z50II, Z8, ZR) can match a reference look in-camera, and build a Nikon Flexible Color Picture Control (.NP3) for it — a Fujifilm JPEG/HEIF film simulation, a Lightroom profile or preset export, or a LUT'd image. It fits the NP3 against a colour chart shot by rendering NEFs headlessly through NX Studio's own engine (SaveProcess), measuring the 988-patch CMP chart, and tuning Color Blender, Color Grading, saturation and tone curve to minimise ΔE2000, then writes a versioned PICCONnn.NP3 and can copy it to the SD card. Use this whenever the user wants to match a Nikon to a Fuji, turn a look, LUT or film simulation into an in-camera Nikon profile, make a "Nikon recipe" from a reference image, or check how close a profile is in Delta E — even if they just say "make my Zf look like my X100" or "build the profile from this chart".

Обзор

Издательgerard662
Репозиторийnikon-picture-control-matcher
Название навыкаcamera-match-test
Звёзды
62
Форки
8
Файлы в комплекте
4
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 4

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — gerard662. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Camera Match Test в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/gerard662/nikon-picture-control-matcher/tree/main/camera-match-test
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gerard662/nikon-picture-control-matcher.git /tmp/nikon-picture-control-matcher
mkdir -p .claude/skills
cp -r /tmp/nikon-picture-control-matcher/camera-match-test .claude/skills/camera-match-test
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Camera Match Test в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Camera Match Test, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Camera Match Test не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Camera Match Test

This skill turns a reference look into a Nikon in-camera profile by measurement, not guesswork. The core idea: NX Studio's SaveProcess binary renders a NEF with any NP3 in about 2 seconds, and its renders closely match the camera's own JPEGs. So every candidate profile can be tested on real Nikon processing, on the Mac, with no camera in the loop until the end.

Input = the Nikon NEF of the chart, rendered through NX Studio with the profile being fitted. Reference (target) = the look to match, for example a Fuji HEIF/JPEG of the same chart in the same light, or a Lightroom TIFF export of the Nikon NEF.

Before shooting (tell the user this up front)

For a cross-camera reference (Fuji to Nikon), the chart pair must differ only in camera:

  • Same chart (CMP Digital Target Ultimate, 988 patches), same light, same position. Even, diffuse light; avoid glare on the chart.
  • White balance: a fixed, matching Kelvin on both cameras is cleanest, but auto WB is fine because the fitter can correct it (see neutralize_wb below). An NP3 has no white balance setting of its own, so whatever cast is left in after that gets learned as part of the look.
  • Expose so the white patches aren't clipped on either camera. Matching exposure values is less important than both being clean, because the fitter can level exposure (see match_exposure).
  • Fuji: chosen film simulation, Grain off, Color Chrome off unless it's part of the look, DR100, Highlight/Shadow at the values you want baked into the look, Sharpness and NR at their lowest, lens corrections at default. HEIF needs a recent Fuji (X-H2/X-T5/X100VI era); an older X100-series body only writes JPEG, and JPEG is fine.
  • Nikon: Flexible Color Picture Control as the base, Active D-Lighting off, RAW + JPEG.
  • Shoot at least three pairs, moving the chart or exposure slightly between them, so some pairs can be held back as a fair test.
  • Exposure brackets work well as pairs: match each Nikon frame to the Fuji frame with the same exposure offset (check ExposureCompensation and shutter speed with exiftool rather than trusting file order). With five brackets, fit on the three middle pairs and hold back the two ends.
  • The two cameras can frame differently (different focal lengths, lens corrections, crop). That's fine, because each image gets its own chart corners and only patch averages are compared. The whole chart just needs to be in frame and in focus on both.
  • A ColorChecker beside the CMP chart is handy for eyeballing white balance and accuracy on screen, but the fitter only measures the CMP chart.
  • HEIF targets are converted to sRGB with macOS sips, which writes 8 bits. That's fine, because each patch averages thousands of pixels.
  • Use the Fuji's own JPEG or HEIF as the target, not its RAF. That file is the film simulation; a RAF would need a raw converter, which brings in that converter's look instead of Fuji's.

Workflow

Scripts live in scripts/ next to this file. Run them with python3 <skill>/scripts/np3fit.py <command> <config.json>. Keep everything — copied NEFs, renders, configs and the fitted profile — in the session scratchpad, and ask the user where the finished profile should be saved before copying it anywhere else.

  1. Copy NEFs off the card into a private work folder first. Never edit or delete anything on the card, and check the card isn't read-only before copying back later (mount | grep -i volumes).

  2. Write the config. Template:

    json
    {
      "work_dir": "<scratchpad>/np3fit",
      "output_dir": "<scratchpad>/profiles",
      "name": "Fuji Provia R01",
      "slot": 1,
      "start_np3": "<skill>/assets/flexible_color_template.NP3",
      "match_exposure": false,
      "neutralize_wb": "nikon",
      "weighting": "everyday",
      "rounds": 3,
      "pairs": [
        {"id": "A", "nef": ".../NZF_0001.NEF", "target": ".../DSCF0001.HIF", "role": "train", "camera_jpeg": ".../NZF_0001.JPG",
         "nef_corners": [0,0, 0,0, 0,0, 0,0], "target_corners": [0,0, 0,0, 0,0, 0,0]},
        {"id": "B", "...": "...", "role": "test"}
      ]
    }
    • name is what appears on the camera: ASCII, 19 characters at most. Use the rev numbering (R01, R02 …) so nothing is ever overwritten.
    • start_np3 must be a Flexible Color NP3 with a custom tone curve. The bundled flexible_color_template.NP3 works as a template for any look: fit also tries a neutral-colour start from the same file and keeps whichever fits better.
    • neutralize_wb corrects white balance using the chart's grey patches (outer grey ring plus every patch that reads near-neutral, refined over a few passes):
      • "nikon": balance only the Nikon render to neutral and keep the reference exactly as shot. Use this when the reference's colour cast is part of the look, for example a Fuji recipe with a WB shift (check WhiteBalance and WhiteBalanceFineTune in the Fuji's metadata). The profile then learns that warmth or coolness as a tint, and the Nikon can shoot on auto WB in the field.
      • "both": balance both images to neutral. Use this when any cast is unwanted (different light, accidental mismatch), so the profile learns colour only.
      • false: compare as shot. Use this when both cameras used the same fixed Kelvin. The log shows the correction each image needed. A few percent is normal; much more means the cameras saw different light or one was set badly.
    • Corners are the centres of patches A1, A38, Z1, Z38 in full-resolution pixels of that image, as [x1,y1, x2,y2, x3,y3, x4,y4]. Go by the printed row letters and column numbers, not by screen position, because the chart is often shot rotated or upside down; A1 can be at the bottom right. NEF corners are in the camera-JPEG geometry (NX renders apply the camera's lens corrections, so they line up with the camera JPEG, not with a Lightroom export).
  3. preview writes ruler previews of each NEF render and each target. Look at them and read off the four corner patch centres; rough is fine (within half a patch).

  4. grid refines the corners, writes overlay images, and saves a _grid.json config. Look at every overlay: each yellow box must sit inside a single patch. Use the _grid.json from here on.

  5. score gives the starting point and, if camera_jpeg is set, what the camera currently produces. Report this baseline before fitting.

  6. fit (runs 10–40 minutes, so start it in the background and tell the user roughly how long). It writes <output_dir>/<name>/NIKON/CUSTOMPC/PICCONnn.NP3 plus settings.json, and never overwrites: if the folder exists it adds _rev2, _rev3.

  7. Report honestly. Lead with held-out ΔE2000 (pairs with role: test), then fitted pairs, everyday colours and neutrals. Mention controls stuck at their limits, because they mean the format ran out of room.

  8. Copy to the card only when the user says so: cp -n into <card>/NIKON/CUSTOMPC/, creating that folder if needed, then compare checksums. Camera menu: Photo Shooting Menu → Manage Picture Control → Load/save → Copy to camera, then Set Picture Control.

  9. Verify on camera. Before scoring any camera JPEG, read its PictureControlName with exiftool. Then run score with that JPEG as camera_jpeg.

Reading results

  • ΔE2000 is the headline metric. Lower is closer; small values are hard to see side by side.
  • NP3 profiles have limited controls, so repeated rounds stop improving at some point. When that happens, say the format's limit is reached instead of looping.
  • Chart scores are a strong guide, not proof. Suggest a few real photos at the end, and say plainly if skin hasn't been tested.

Things that matter

  • Never overwrite files; version everything.
  • Nikon's software rebuilds the curve from control points, so np3lib writes 20 points that follow the LUT. Don't hand-edit curves without doing the same.
  • If SaveProcess output looks unchanged after changing the NP3, check the sidecar is being read: a green-chroma −100 test should desaturate only greens.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Camera Match Test?

Test how closely a Nikon Z camera (Zf, Z6III, Z5II, Z50II, Z8, ZR) can match a reference look in-camera, and build a Nikon Flexible Color Picture Control (.NP3) for it — a Fujifilm JPEG/HEIF film simulation, a Lightroom profile or preset export, or a LUT'd image. It fits the NP3 against a colour chart shot by rendering NEFs headlessly through NX Studio's own engine (SaveProcess), measuring the 988-patch CMP chart, and tuning Color Blender, Color Grading, saturation and tone curve to minimise ΔE2000, then writes a versioned PICCONnn.NP3 and can copy it to the SD card. Use this whenever the u...

Зачем использовать Camera Match Test в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Camera Match Test — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Camera Match Test в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/gerard662/nikon-picture-control-matcher/tree/main/camera-match-test. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Camera Match Test?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Camera Match Test?

С любым количеством. В TypingMind вы можете использовать Camera Match Test с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Camera Match Test?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — gerard662. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇