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

Flir camera adaptor #172

Merged
merged 30 commits into from
Jul 25, 2023
Merged

Flir camera adaptor #172

merged 30 commits into from
Jul 25, 2023

Conversation

aduran-cz
Copy link
Contributor

@aduran-cz aduran-cz commented Jun 15, 2023

Implemented snap() method to take and save a single frame with 1 or multiple cameras (assigned at instance creation). Tested it works with one camera.

@AhmetCanSolak
Copy link
Contributor

Let's not make this PR only about snap methods @aduran-cz , could you rename it to Flir camera adaptor?

@aduran-cz aduran-cz changed the title Flir_camera class snap() methods Flir camera adaptor Jun 16, 2023
@aduran-cz
Copy link
Contributor Author

The methods here allow to take an image with the FLIR camera one or multiple times, and set exposure and gain settings. Images are saved as .jpg but this can change. Some methods are just placeholders for now.

Copy link
Contributor

@YangLiujames YangLiujames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good to me.


@bitdepth.setter
def bitdepth(self, bit):
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a trigger configuration function ? and change the way camera snap an image according to the trigger mode that the camera is in ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have the trigger details implemented in another PR @YangLiujames ? so we can move forward with merging earlier

# Release image
image_result.Release()
return True

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add the support for .tiff as well as ome-zarr ? maybe add a function that just grab the data from the camera and return an array and saving can be handle outside the camera adaptor ??

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aduran-cz you can get support for both .tiff and ome-zarr from iohub as we discussed

Copy link
Contributor Author

@aduran-cz aduran-cz Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added support for .tiff with skim age.io, but not for one-zarr because PySpin uses Python 3.8 and iohub requires >= 3.9

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will use pyspin 3.9 on windows machines(target env) so it won't be a problem to have iohub @aduran-cz but you can make a separate PR for it

…iple images with snap(). Adding bit depth and shutter mode methods.
Copy link
Contributor

@AhmetCanSolak AhmetCanSolak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @aduran-cz ! I dropped some initial comments, if you have time tomorrow @aduran-cz we can do some testing in-person and then I can continue reviewing the PR.

copylot/hardware/cameras/flir/demo/demo.py Outdated Show resolved Hide resolved
copylot/hardware/cameras/flir/demo/demo.py Outdated Show resolved Hide resolved
copylot/hardware/cameras/flir/demo/demo.py Outdated Show resolved Hide resolved
copylot/hardware/cameras/flir/flir_camera.py Show resolved Hide resolved
copylot/hardware/cameras/flir/flir_camera.py Outdated Show resolved Hide resolved
copylot/hardware/cameras/flir/flir_camera.py Outdated Show resolved Hide resolved
copylot/hardware/cameras/flir/flir_camera.py Outdated Show resolved Hide resolved
Copy link
Contributor

@AhmetCanSolak AhmetCanSolak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the effort @aduran-cz !

@YangLiujames YangLiujames merged commit f21132c into czbiohub-sf:main Jul 25, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants