Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Notes #3

Open
vikramsandhu opened this issue Jul 31, 2020 · 0 comments
Open

Additional Notes #3

vikramsandhu opened this issue Jul 31, 2020 · 0 comments

Comments

@vikramsandhu
Copy link

NOTE: Moving this topic to an issue, prior to submitting PR.

Additional Notes

There are some dependencies not currently included:

  • matplotlib
  • mpl_toolits

These are used in the test scripts for 3D plotting, but this
is not necessary for actual operation

Saving images

This requires pypng.
I haven't implemented this yet.

DLL Location

Failed to install python properly so I had some issues getting the DLL loaded.
This is the install location so I don't have to look for it again.

C:\Program Files\Thorlabs\Scientific Imaging\uc480_64.dll

Building with PyInstaller

Didn't look hard enough at what was supported when trying to build.

~~
PyInstaller 3.4 (9 Sep 2018 release) isn't compatible with Python 3.7 at this
point in time, so pip installed from github, develop branch, at this commit:
pyinstaller/pyinstaller@5edb4f7
~~

Use Python 3.6 and PyInstaller 3.4, and it should 'just work'.

Improvements

Things I know should be better but aren't.

  • Would be really nice to have the 1D slices overlaid on the image itself but
    I haven't figured out how to do this yet. When the plot is added directly,
    it only appears at the edge of the image.
  • Implement ROI selection
  • add icon! The following works for apps launched from Python, but not
    PyInstaller:
icon = QtGui.QIcon()
icon.addFile(pkg_resources.resource_filename(
    "mjolnir.resources", "icon.svg"))
self.setWindowIcon(icon)
  • Fixed. BUG The image fitting works great, but the lines appear half a
    pixel above and to the left of where they should. This is because the pixel
    is drawn to the bottom right of its index

Camera interfacing

At the moment uses a random person's interface to the camera DLL. Thorlabs
cameras are rebranded IDS uEye cameras - there is a pyuEye package available
from IDS which may prove useful, as interfacing with C is a little annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant