https://github.com/peterjakubowski/camera-lighting-positioning
Tool to calculate and visualize camera and lighting distances for flat art and copywork setups.
https://github.com/peterjakubowski/camera-lighting-positioning
math photography
Last synced: 3 months ago
JSON representation
Tool to calculate and visualize camera and lighting distances for flat art and copywork setups.
- Host: GitHub
- URL: https://github.com/peterjakubowski/camera-lighting-positioning
- Owner: peterjakubowski
- License: apache-2.0
- Created: 2025-02-14T19:55:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T21:31:18.000Z (3 months ago)
- Last Synced: 2025-02-18T22:30:17.565Z (3 months ago)
- Topics: math, photography
- Language: Jupyter Notebook
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Camera and Lighting Positioning
Tool to calculate and visualize camera and lighting distances for flat art and copywork setups.
1). Given a camera, lens, and object (usually flat works like flat art on paper, paintings, prints, etc.), determine the camera position for a chosen output resolution. The distance between camera and object is returned.
2). Given an object, determine the position of lights (a minimum of two, one on each side of the object).
## Using the tool
### Streamlit Community Cloud
Use the app on Streamlit Community Cloud: [https://camera-lighting-positioning.streamlit.app/](https://camera-lighting-positioning.streamlit.app/)
### Install Locally
Clone the repository and launch the streamlit app in your web browser from you cli.
```commandline
streamlit run app.py
```### Enter Parameters:
* camera: Choose a camera or digital back from the dictionary of cameras
* lens_focal_len_mm: Select the focal length of the lens in millimeters
* real_object_units: Select the unit of measurement used to measure the width and height of the artwork
* real_object_width: Width of the artwork in units selected in real_object_units
* real_object_height: Height of the artwork in units selected in real_object_units
* set_ppi: Set to desired resolution in pixels per inch
* radius_multiply: Set to desired radius multiplier to control light coverage. A value of 1 will set light coverage to fit object at 100%. Increase multiplier to expand light coverage and reduce vignetting in image area.### Output:
* Sensor usage in percent for width and height
* MAX PPI: The maximum ppi value possible with selected camera and focal length when fitting the whole artwork within
* 5% Fit PPI: The maximum ppi value possible reduced by 5%
* Dimensions: The output image dimensions in pixels (widthxheight)
* PPI: The ppi value set in set_ppi
* Camera: The camera or digital back being used
* Sensor size: The camera's sensor size in millimeters(mm) and pixels(px)
* Focal length: The focal length of the lens in millimeters(mm)
* Camera distance: Distance from the camera to the center of the artwork in millimeters(mm), centimeters(cm), inches(in), and feet(ft) and inches(in)
* Lights distance x: Distance from the light to the center of the artwork on the x-axis (artwork plane) in millimeters(mm), centimeters(cm), inches(in), and feet(ft) and inches(in)
* Lights distance y: Distance from the light to the center of the artwork on the y-axis (lens plane) in millimeters(mm), centimeters(cm), inches(in), and feet(ft) and inches(in)