Commit 39c6c69
committed
fix Deprecation Warning on conversion of tuple to scalar
Error:
/home/toby/mobile/teaching/durham/cv/python-examples-cv/./kalman_tracking_live.py:326: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
(int(prediction[0] - (0.5 * w)),
/home/toby/mobile/teaching/durham/cv/python-examples-cv/./kalman_tracking_live.py:327: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
int(prediction[1] - (0.5 * h))),
/home/toby/mobile/teaching/durham/cv/python-examples-cv/./kalman_tracking_live.py:328: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
(int(prediction[0] + (0.5 * w)),
/home/toby/mobile/teaching/durham/cv/python-examples-cv/./kalman_tracking_live.py:329: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
int(prediction[1] + (0.5 * h))),1 parent 55c3963 commit 39c6c69
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
0 commit comments