You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
import cv2 as cv from vmbpy import * with VmbSystem.get_instance () as vmb: cams = vmb.get_all_cameras () with cams [0] as cam: frame = cam.get_frame () frame.convert_pixel_format(PixelFormat.Mono8) cv.imwrite('frame.jpg', frame.as_opencv_image ())
I receive the error "VmbCError: VmbCError(<VmbError.InternalFault: -1>)" appearing when executing the line "with cams [0] as cam:"
Can you provide any help how to fix this error?
The text was updated successfully, but these errors were encountered:
Hello,
this is most likely an issue with the Vimba installation and/or driver. Can you check how the camera behaves when you open it with Vimba Viewer? That would exclude the code and the Python API as error sources, to narrow down the suspects.
Edit: Just to add, the error will most likely need a reinstallation of parts of Vimba or the whole SDK. Also make sure, that no older Vimba versions are on the PC.
If the camera streams just fine in Vimba Viewer, then the drivers, transport layer and the underlying C-API can be assumed to be installed correctly. In that case, at least the Python API should be reinstalled.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running the following example code:
import cv2 as cv from vmbpy import * with VmbSystem.get_instance () as vmb: cams = vmb.get_all_cameras () with cams [0] as cam: frame = cam.get_frame () frame.convert_pixel_format(PixelFormat.Mono8) cv.imwrite('frame.jpg', frame.as_opencv_image ())
I receive the error "VmbCError: VmbCError(<VmbError.InternalFault: -1>)" appearing when executing the line "with cams [0] as cam:"
Can you provide any help how to fix this error?
The text was updated successfully, but these errors were encountered: