Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Set up the flash with the desired settings, as settings influence the flash duration. My assumptions are:

    1. Manual mode

    2. 1/1, 1/2+0,3-0,6 or 1/2 flash power level

    3. Not sure about "stable color temperature" and it's impact to the frequency at which the flash can fire.. Should be tried out. We'd like a constant color temperature, but not sure what the downside is here, since it's not turned on always.

      1. stable color temperature should be on

    4. "stand by" should be turn off, or set to something like 120 min.

    5. "Delay flash" should be turn off

    6. Modeling lamps should be turned off

    7. Observe the flash duration time t=0.1. This is presumably done with the "TIMES" function of the flash.

...

To determine the effect of the stable color temperature, it makes sense to run a stress test with and without it at our desired flash power. That would also help answer whether the flash will bottleneck the bbot at the given power level (edited) 

Protocols

Camera testing

...

place colorchecker card 15 cm

...

Camera Testing Protocols: Bbot Version 3.1

Setup

  1. Camera Placement:

    • Position the camera lens 170 cm (+/- 5 cm) above the pot surface.

    • Allow the camera to move up (along the z-axis) as plants grow taller.

  2. ColorChecker Placement:

    • Place the primary ColorChecker card 15 cm above the pot surface.

    • Use a secondary smaller ColorChecker card at pot level for focus confirmation.

Initial Camera Configuration

  1. Aperture:

    • Set the aperture to the lowest number

...

adjust exposure

...

start finding the right focus so that the milliliter scale on the colorchecker are incredibly clear, adjust by millimeter. For example here is how the scale bar should look - image.pngImage Removed image (1).pngImage Removed img_f11_20-2.jpgImage Removed

...

after the right focus has been identified, set it using the set screw

...

    • (f/4) for initial focus adjustments.

  1. Focus Adjustment:

    • Adjust focus carefully until the millimeter scale on the ColorChecker card is extremely sharp. Adjust in millimeter increments for precision.

    • Once the ideal focus is achieved, secure the setting using the set screw.

  2. Exposure and Flash:

    • Gradually adjust the exposure and flash power to achieve proper lighting.

    • Suggested settings:

      • Exposure time: Start at 250 μs. Adjust as needed.

      • Flash power: Increase as aperture values rise.

Refining Settings

  1. Aperture and Exposure:

    • Increase the aperture to f/10, then modify it up or down as needed for proper exposure.

    • If images appear too bright, increase the aperture to f/11 or f/12.

      • Note: Higher f-numbers generally improve image quality up to a point but can degrade quality at extremely high values.

  2. Depth of Field:

    • Aim for an aperture near f/12 or f/13 for optimal depth of field, which increases by approximately 25% at these values.

  3. Strobe Delay:

    • Test strobe delays at 50, 100, 150, and 200 μs, keeping the exposure time constant at 100 μs.

    • If the image is too dark:

      • Lower strobe delay to 25 μs or 0 μs.

      • Adjust exposure back to 250 μs if necessary.

Troubleshooting Focus

  1. Secondary ColorChecker (Pot Level) Out of Focus:

    • Increase the aperture to f/13.

    • Set the flash to full power.

  2. Underexposure:

    • Increase exposure time, flash power, or both.

    • Consider raising the f-number slightly (closer to f/12 or f/13) while adjusting exposure and flash settings.

  3. Focus Challenges:

    • If the small ColorChecker remains out of focus, adjust the gain incrementally until clarity is achieved.

Key Considerations

  • Maintain Height Consistency: Keep the camera at 170 cm above the pot top unless plant growth necessitates adjustments.

  • Avoid Overexposure: Be cautious with flowers and wet pots, which are prone to overexposure.

  • Lighting and Exposure: Proper balance between aperture, flash, and exposure time is critical to avoid overly bright or dim images.

Color Correction

Protocol for One-Time Configuration

This protocol outlines the steps for the one-time configuration required to process images collected with the Bbot V3.1 system. This configuration process involves generating a .pp3 configuration file that will be used for future batch processing.

...

Step 1: Image Collection

  1. Collect images using the Bbot V3.1 system.

  2. Make sure camera, flash, and bbot settings are correct

  3. Ensure metadata is recorded with each image, including:

    • Exposure time

    • Aperture

    • Location

    • Date and time

    • Thumbnail

    • Camera height (z-axis)

...

Step 2: Convert RAW to DNG

  1. Convert the RAW files from the image collection to DNG format using a suitable tool (e.g., piDNG or similar).

...

Step 3: Demosaicking

  1. Perform demosaicking on the RAW images if required, to prepare them for color correction.

...

Step 4: Calculate Color Correction Matrix

  1. Using a representative subset of the images:

    • find the corresponding RGB values in RawTherapee using the color picker and “change foreground” tools

    • Calculate a color correction matrix to ensure accurate color representation during processing.

    • Make sure the image is not overexposed (verify using the RawTherapee histogram)

...

Step 5: Adjust Image Parameters in RawTherapee

  1. Import the DNG files into RawTherapee.

  2. Perform the following manual adjustments:

    • Exposure compensation: Adjust exposure levels for uniform brightness.

    • Lens correction: Correct lens distortion.

    • White balancing: Adjust white balance to ensure accurate colors.

    • Gamma correction: Modify the tone curve to optimize brightness and contrast.

    • Sharpening: Enhance image details.

  3. Verify the adjusted settings by visually inspecting the images.

...

Step 6: Save Configuration File

  1. Save the adjustments made in RawTherapee as a .pp3 configuration file.

    • Ensure this file captures all the applied adjustments.

    • Name the file appropriately to reflect its purpose (e.g., default_processing.pp3).

...

Step 7: Validation

  1. Test the .pp3 configuration file on a few images to ensure consistent and accurate processing.

  2. Make further adjustments to the configuration file if necessary.

...

Step 8: Finalize the Configuration

  1. Once validated, store the .pp3 file in a secure and accessible location for use in the automated batch processing pipeline.

...

Manual Gamma correction:

  • not recommended, useful if we want to quickly process images to test autosfm

https://stackoverflow.com/questions/71734861/opencv-python-lut-for-16bit-image (quick and easy gamma correction, not ideal for longterm workflows)

...

Date

Lens height above ground

Lens height above

plants

pot surface

Focus

Aperture

Exposure

Flash Power

Pot Height

Rough Horizontal FOV

2024-12-02

1.70

21

f/13

400

1/1

2024-11-27

1.70

21

f/10

250

1/2

2024-11-25

1.69cm

1.45 m

21.5

f/4

1/32

24 cm

48-in

2024-11-18

1.66 m

21.5

f/4

1

1/32

Camera Settings Definitions

...

  • Aperture and focus done manually on site

  • Exposure setting configured in the .txt file

Resources

SVCam

model

MP

Pixel resolution

Sensor

Sensor Size

FPS

Chroma

Mount

Interface

shr661CXGE

127.6

13392 x 9528

IMX661LQA / Sony

56.73mm (Type 3.6)

8.2

color

M72x0,75

10GigE

Flash

As of 2024/11/15 only NC has this flash

...