Commit 1686bcc
authored
Fix Python CameraServer example code errors (#3113)
- Change cs.getVideo() to CameraServer.getVideo()
- Change cs.putVideo() to CameraServer.putVideo()
- Change cvSink.grabFrame() to sink.grabFrame()
- Add input_img initialization before use in both examples
- Fix indentation in second example
Fixes #27541 parent e5ee272 commit 1686bcc
File tree
1 file changed
+9
-7
lines changed- source/docs/software/vision-processing/wpilibpi
1 file changed
+9
-7
lines changedLines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments