Commit 4212ebb
added backwards compatibility with opencv 4.5.2 and below (keypoints) (#139)
* Update draw.py
Error in draw
TypeError: KeyPoint() missing required argument '_size' (pos 3)
was size=3
change to _size=3
* handle get_cv_keypoints
wraps cv2.KeyPoint(..., size=3), cv2.KeyPoint(..., _size=3) in try except block to handle change in argument name between opencv versions.
* Update tf_bodypix/draw.py
Co-authored-by: Daniel Ecer <de-code@users.noreply.github.com>
* Update tf_bodypix/draw.py
Co-authored-by: Daniel Ecer <de-code@users.noreply.github.com>
Co-authored-by: Daniel Ecer <de-code@users.noreply.github.com>1 parent 95aaddc commit 4212ebb
1 file changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
0 commit comments