Topic/update to pypylon 26.7 - #23
Open
BslrStickelMichael wants to merge 2 commits into
Open
BslrStickelMichael wants to merge 2 commits into
BslrStickelMichael wants to merge 2 commits into
Conversation
andreasgau
reviewed
Sep 15, 2026
| "info.SetDeviceClass(\"BaslerUsb\")\n", | ||
| "cam = py.InstantCamera(py.TlFactory.GetInstance().CreateFirstDevice(info))" | ||
| "device_info = pylon.DeviceInfo()\n", | ||
| "# Optionally filter for USB3 cameras only. But ACE2 ethernet cameras do also work.\n", |
andreasgau
reviewed
Sep 15, 2026
| "source": [ | ||
| "# open the first USB device\n", | ||
| "info = py.DeviceInfo()\n", | ||
| "info.SetDeviceClass(\"BaslerUsb\")\n", |
andreasgau
reviewed
Sep 15, 2026
| "device_info = pylon.DeviceInfo()\n", | ||
| "# Optionally filter for USB3 cameras only. But ACE2 ethernet cameras do also work.\n", | ||
| "# device_info.SetDeviceClass(\"BaslerUsb\")\n", | ||
| "camera = pylon.InstantCamera(device_info, pylon.FirstFound)" |
andreasgau
reviewed
Sep 16, 2026
| "source": [ | ||
| "# use the Basler Pylon SDK to access the camera\n", | ||
| "camera = py.InstantCamera(py.TlFactory.GetInstance().CreateFirstDevice())\n", | ||
| "camera.Open()" | ||
| "camera = py.InstantCamera(py.FirstFound)\n", |
andreasgau
reviewed
Sep 16, 2026
| "camera = pylon.InstantCamera(pylon.FirstFound)\n", | ||
| "camera.Open()\n", | ||
| "\n", | ||
| "print(camera.GetDeviceInfo().GetModelName())\n", |
andreasgau
reviewed
Sep 16, 2026
| " while camera.IsGrabbing():\n", | ||
| " with camera.RetrieveResult(1000) as result:\n", | ||
| " if result.GrabSucceeded():\n", | ||
| " image = result.Array\n", |
Collaborator
There was a problem hiding this comment.
Components verwenden, wie die anderen Samples
andreasgau
reviewed
Sep 16, 2026
| "info.SetDeviceClass(\"BaslerUsb\")\n", | ||
| "cam = py.InstantCamera(py.TlFactory.GetInstance().CreateFirstDevice(info))" | ||
| "device_info = pylon.DeviceInfo()\n", | ||
| "device_info.SetDeviceClass(\"BaslerUsb\")\n", |
andreasgau
reviewed
Sep 16, 2026
| "if not cam.GetDeviceInfo().GetModelName().startswith(\"acA\"):\n", | ||
| " print(\"_This_ sequencer configuration only works to basler ace USB\")\n", | ||
| " " | ||
| "if not camera.GetDeviceInfo().GetModelName().startswith(\"acA\"):\n", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated samples to work with 26.7 release of pypylon.
Added missing image of camera backside.