Print("The ellipse diameter (closest to vertical) is %.0f pixels" % dy) Print("The ellipse diameter (closest to horizontal) is %.0f pixels" % dx) Print("The center of the beam ellipse is at (%.0f, %.0f)" % (x,y)) This takes a bit longer to start, but it automatically installs laserbeamsize.Ĭlone the laserbeamsize github repository and then add the repository to your PYTHONPATH environment variableįinding the center and dimensions of a good beam image: import imageio Use binder which will create a new environment that allows you to run Jupyter notebooks. Or run this code in the cloud using Google Collaboratory by selecting the Jupyter notebook that interests you. Install with pip: pip install -user laserbeamsize This module also supports M² calculations based on a series of imagesĬollected at various distances from the focused beam.Įxtensive documentation can be found at Using laserbeamsize Some effort has been made to make theĪlgorithm less sensitive to background offset and noise. Simple and fast calculation of beam sizes from a single monochrome image based
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |