Can't set exposure time
See original GitHub issueHello, I installed pypylon using pypylon-1.6.0-cp37-cp37m-linux_armv7l.whl I tested it with the code below but I get an error related to the exposure time
from pypylon import pylon
import time
import cv2
# conecting to the first available camera
camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
camera.Open()
camera.Gain = camera.Gain.Max
camera.ExposureTime.setValue(camera.ExposureTime.Min)
# Grabing Continusely (video) with minimal delay
camera.StartGrabbing(pylon.GrabStrategy_LatestImageOnly)
converter = pylon.ImageFormatConverter()
# converting to opencv bgr format
converter.OutputPixelFormat = pylon.PixelType_BGR8packed
converter.OutputBitAlignment = pylon.OutputBitAlignment_MsbAligned
start = time.time()
counter = 0
while camera.IsGrabbing():
grabResult: pylon.GrabResult = camera.RetrieveResult(5000, pylon.TimeoutHandling_ThrowException)
if grabResult.GrabSucceeded():
# Access the image data
image = converter.Convert(grabResult)
img = image.GetArray()
counter += 1
elapsed = time.time() - start
cv2.putText(img, "{} FPS".format(int(counter / elapsed)), (200, 20),
cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 2)
cv2.imshow('title', img)
k = cv2.waitKey(1)
if k == 27:
break
grabResult.Release()
# Releasing the resource
camera.StopGrabbing()
camera.close()
cv2.destroyAllWindows()
the error:
camera.ExposureTime.setValue(camera.ExposureTime.Min)
AttributeError: 'IFloat' object has no attribute 'setValue'
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Why can't I adjust Exposure, ISO and Shutter speed at the ...
The app's Exposure settings combines both ISO and Shutter speed settings, that is why when you choose Exposure adjustment - it switches off...
Read more >help, can't change exposure time on XT1 - DPReview
It stays at 1 second for both T and B. If I set the wheel to any other time, say 1/4 seconds, the...
Read more >Cannot Change Exposure Time - BackyardNIKON - O'Telescope
Yes, that is correct. Unless you want to take sub-second exposures. The minimum duration for BULB exposures is 1 second. In that case,...
Read more >Basics - Manual Controls (exposure, ISO, shutter speed)
This is because the aperture value on your phone is fixed and cannot be adjusted. That leaves us with the ability to adjust...
Read more >capture: can't change exposure time after first ... - INDI Library
So the driver, depending on the requested exposure time, either requests an exposure time from pre-defined value (Go to Main Control --> Presets)...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When i test this code the prompt runs without error codes but there seems to be no output. is there something I overlooked? thanks