mario1027/Beamdiameter — reverse-engineered prompt
Reverse engineered prompt
Build me a Python desktop app called Beamdiameter for a laser lab. I want to connect a generic webcam or a uEye camera to a CMOS or CCD sensor, see the laser spot live, and have the app analyze the beam profile in real time. The important part is calculating the beam center and diameter using the ISO 11146 method, so the result is useful for optics experiments and laser characterization.
Make the interface simple, with a live camera view, clear controls to start and stop acquisition, choose the camera type, and a results area that shows the current profile, measurements, and graphs without needing the user to understand code.
Please keep it open source and easy to run on Python 3.9 through 3.12. Include setup instructions with requirements installation and a simple command to launch it. If uEye support needs drivers or Pyueye setup, explain that clearly. Look up current docs online if you need to.
Want more depth? Deep Reverse