File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
content/hardware/04.pro/shields/portenta-vision-shield/tutorials/getting-started-camera Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,23 @@ To capture the frames you will need to use the functions contained in `camera.h`
47
47
48
48
``` cpp
49
49
#include " camera.h"
50
- #include " himax.h"
50
+ // For the Vision Shield Rev.1
51
+ #include " himax.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.1
52
+
53
+ // For the Vision Shield Rev.2
54
+ #include " hm0360.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.2
51
55
```
52
56
57
+ *** Left uncommented the library of your Vision Shield version.***
58
+
53
59
Next, let's initialize a camera object and a frame buffer of the size 320* 240 (76'800 bytes).
54
60
55
61
``` cpp
56
- HM01B0 himax;
62
+
63
+ HM01B0 himax; // for Vision Shield Rev.1
64
+
65
+ HM0360 himax; // for Vision Shield Rev.2
66
+
57
67
Camera cam (himax);
58
68
#define IMAGE_MODE CAMERA_GRAYSCALE
59
69
FrameBuffer fb(320,240,2);
@@ -268,9 +278,15 @@ The `CaptureRawBytes.ino` Sketch.
268
278
269
279
``` cpp
270
280
#include " camera.h"
271
- #include " himax.h"
272
281
273
- HM01B0 himax;
282
+ /* -----Uncomment the library and class for your specific hardware-----*/
283
+
284
+ // #include "himax.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.1
285
+ // HM01B0 himax;
286
+
287
+ #include " hm0360.h" // API to read from the Himax camera found on the Portenta Vision Shield Rev.2
288
+ HM0360 himax;
289
+
274
290
Camera cam (himax);
275
291
#define IMAGE_MODE CAMERA_GRAYSCALE
276
292
FrameBuffer fb(320,240,2);
You can’t perform that action at this time.
0 commit comments