Replies: 2 comments 4 replies
-
Hello @Hyo-u, Glad to hear that we can be of some help in your work ! For interfacing your camera with Crappy, I strongly suggest that you define a class in your test script (or in an other file imported in your test script), as shown here. In this case, there's no need to change anything in the source code of Crappy, including the I took a quick look at the Also, I'm not sure why you tried to use I don't have time now to dig in the P.S. : Instead of just saying that your script doesn't work, please provide the Traceback (the console output) containing the error that you get. It will help understanding what's wrong with your code. |
Beta Was this translation helpful? Give feedback.
-
Closing discussion due to prolonged inactivity |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Background:
Elbub supervisor here, first thing first, thank you for building Crappy, it clearly helps (at least our) small company that want to devellop their R&D.
The program built by Elbub on my specification works well (there is still sometime some error when reloading but nothing truly problematic).
But there are still some part to smooth up/implement/clean which will probably lead to another internship next year.
Disclamer : I don't usually code so take everything I say with a grain of salt (And even if I learned some python to follow Elbub internship, it is still very new to me).
What I want :
I have two cameras, I want them to take pictures (with a lower frequency than others inputs)
Store the time of when the picture is taken (to match with load and displacement) and their numbers in a file.
What has been done:
Tried : Take a picture with python (file : Test_camVimba)
Result : Work
Tried : use the camera with the open_cv module in crappy
Result : doesn't work
Reason possible : I think because open_cv doesn't work alone for accessing the camera
Tried : Create a custom camera class in crappy (file : Vimba.py/Camera_Vimba_0.1.py), add it to the crappy/camera/init.py and try to launch a camera block: Test_CamVimba_crappy.py)
Result : doesn't work
Reason possible : There should be some or a lot of mistakes in my code.
Question :
What I want to do doesn't seem that difficult on paper, but I can't wrap my head around how to add a camera to crappy.
Is there something obvious I doesn't see and have you any advice?
Info :
My camera : Alvium 1800 C-1620
Connector : USB3
OS : Windows 11
Python 3.10
Crappy 1.5.9
The Python librairy for my camera :
VimbaPython 1.2.1
Opencv 4.7.0.68
My files : Camera.zip
Beta Was this translation helpful? Give feedback.
All reactions