File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,20 @@ async def _capture(self) -> None:
112
112
await asyncio .sleep (0.1 )
113
113
continue
114
114
115
+ # read frame
116
+ while True :
117
+ frame : npt .NDArray [float ] = self ._camera .pop_frame () # type: ignore
118
+ if frame is None :
119
+ await asyncio .sleep (0.01 )
120
+ else :
121
+ break
122
+
115
123
# if time since last image is too short, wait a little
116
124
if time .time () - last < self ._interval :
117
125
await asyncio .sleep (0.01 )
118
126
continue
119
127
120
- # read frame
121
- frame : npt .NDArray [float ] = self ._camera .pop_frame () # type: ignore
128
+ # save time
122
129
last = time .time ()
123
130
124
131
# process it
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " pyobs-aravis"
3
- version = " 0.15.2 "
3
+ version = " 0.15.3 "
4
4
description = " pyobs module for Aravis cameras"
5
5
authors = [
" Tim-Oliver Husser <[email protected] >" ]
6
6
license = " MIT"
You can’t perform that action at this time.
0 commit comments