The Basler Beam Profiler is a Python application designed to interface with Basler cameras for beam profiling tasks.
pip install -r requirements.txt
python beam_profiler.pycamera_config.yaml
camera:
a2A5060-15umBAS: # the name should match the camera name shown in pylon_camera
default_roi: [5060, 5060, 4, 4] # [width, height, x_pad, y_pad]
pixel_size: 2.5e-6 # pixel size in meters, i.e. 2.5umFirst clone this repo, setup camera_config.yaml
Check release to download the latest version: Releases
Put the pylon_camera.exe executable in the same directory as camera_config.yaml.
Esc: Quit the applicationarrow keys: up/down=change exposure by 10 times, left/right=change exposure by 10%a: toggle auto-exposure (auto exposure adjusts the exposure time to keep the max intensity to be near-saturated)f: toggle blob fittingg: toggle statistics showing (statistics of fitted blobs)h: toggle row/col statistics (works only for beam arrays)mouse drag: create a white rectangle in the canvasc: clear the white rectanglectrl + mouse drag: create a green rectangle in the canvas, only blobs inside the rectangle will be fittedv: clear the green rectangles: quick save the current framed: save the current frame with dialogue box, allowing the user to choose the file location and namet: switch to the next camera (if multiple cameras are connected)mouse wheel: zoom in/out the canvas
