how to use different ISP setting for 2 different cameras?

I see there is only one .ISP file which includes the ISP parameters.
how can I make sure 2 different cameras are using different ISP settings

example from .ISP file …
ap15Function.lensShading = TRUE;
ae.MeanAlg.HigherTarget = 120.0000;
ae.MeanAlg.LowerTarget = 120.0000;
ae.MeanAlg.HigherBrightness = 10000.0000;
ae.MeanAlg.LowerBrightness = 600.0000;
ae.MeanAlg.SlopFactor = 0.3000;
ae.MeanAlg.MinTailMass = 0.0010;
ae.MeanAlg.CriticalMass = 0.0150;
ae.MeanAlg.ConvergeSpeed = 0.5000;
ae.MaxFstopDeltaPos = 0.4000;
ae.MaxFstopDeltaNeg = 0.5000;
defaults.autoFramerateRange = { 7.5000, 120.0000 };
ae.ApertureStepToFNumberLUT = {2.4};
ae.ExposureTuningTable.Preview[0] = { 2.4000, 0.0333, 1.0000, 1.0000 };
ae.ExposureTuningTable.Preview[1] = { 2.4000, 0.0333, 2.0000, 1.0000 };
ae.ExposureTuningTable.Preview[2] = { 2.4000, 0.0333, 4.0000, 1.0000 };
ae.ExposureTuningTable.Preview[3] = { 2.4000, 0.0333, 8.0000, 1.0000 };
ae.ExposureTuningTable.Preview[4] = { 2.4000, 0.0333, 8.0000, 1.0000 };
ae.ExposureTuningTable.Preview[5] = { 2.4000, 0.0667, 8.0000, 1.0000 };
ae.ExposureTuningTable.Preview[6] = { 2.4000, 0.0667, 22.0000, 1.0000 };
ae.ExposureTuningTable.Preview[6] = { 2.4000, 0.0667, 22.0000, 1.0000 };

Did you get the ISP file from partner? Please contact with them to get help.

thanks for the answer,
I did not get the file from ISP partner.
I see that the .ISP is not directed to a specific camera.
Do you know how to do that?

thanks in advance
Oded

Rename the ISP file to match the badge info in the DT to load it.

great ! thanks :), ill try and update

but can it support various number of cameras (different .isp files).
for example, camera_1.isp, camera_2.isp

Oded

Oded,

Yes, you can provide a specific override for each camera in your system. If you kill argus daemon and then run it in the foreground you’ll see all of the various override files it attempts to load when you start a stream.

As ShaneCCC pointed out you can use the badge name.

For example if your camera module in your device tree under tegra-camera-platform has a badge value of “d3_bottom_imx390” then the file /var/nvcam/settings/d3_bottom_imx390.isp will take precedence in the override loading sequence.

Be certain that the .isp file is owned by root or it might not load.

Regards,
Greg

thanks!!
ill try and update

Guys, additional questions,

  • Does the .ISP file includes all the parameters (for single camera)?
  • Does the numbers [0],[1]… refers to different modes of the camera? for example preview 720p, preview 1080p,…?
  • is there a doc/manual in the site which address all those questions?

thanks
Oded

ae.saturation.Preview[0] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Preview[1] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Preview[2] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Preview[3] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Still[0] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Still[1] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Still[2] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Still[3] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Video[0] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Video[1] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Video[2] = { 100, 100, 100, 100, 100, 100, 100 };
ae.saturation.Video[3] = { 100, 100, 100, 100, 100, 100, 100 };

  1. The overrides file is just that -- overrides. It might not contain all of the parameters; just those that need to be overridden
  2. I'm not certain of the answer to your sub-scripting question. I believe the answer is no, it does not refer to modes, but I'm not certain. I do know that you can't have different overrides on a per-mode basis.
  3. There are no publicly available manuals documenting tuning of the ISP.

Regards,
Greg

thanks guys :)
we’ve managed to run different ISP settings on different cameras in parallel

Oded