-
-
Notifications
You must be signed in to change notification settings - Fork 214
Description
Problem
😞 This is what happens when useGreyScale
is set to true
for the Nicla Vision:
image
😄 This is what is observed, when userGreyScale
is set to false
for the Nicla Vision
image
This creates three problems:
- The header comment and code in CameraRawBytesVisualizer conflict in what the default colour mode is
- From a UX perspective (cc @sebromero ) the User can face additional hurdles in testing out a basic function (e.g this forum post)
- There is no clear pathway for users to realise the problem, upon seeing the corrupt image.
Details
The CameraCaptureRawBytes sketch is used to send a video stream over Serial to the computer. Which can then be displayed with the CameraRawBytesVisualizer Processing sketch.
A series of pre-directives, configures the IMAGE_MODE
to be either CAMERA_RGB
(Nicla Vision and GIGA boards) or CAMERA-GREYSCALE
(Portenta H7 family).
ArduinoCore-mbed/libraries/Camera/examples/CameraCaptureRawBytes/CameraCaptureRawBytes.ino
Lines 3 to 19 in 0504d34
In the default configuration, the accompanying CameraRawBytesVisualizer sketch is configured to be compatible with CAMERA_GREYSCLE
, even though the header comment states that the Processing sketch is for RGB.
ArduinoCore-mbed/libraries/Camera/extras/CameraRawBytesVisualizer/CameraRawBytesVisualizer.pde
Lines 1 to 7 in 0504d34
ArduinoCore-mbed/libraries/Camera/extras/CameraRawBytesVisualizer/CameraRawBytesVisualizer.pde
Lines 19 to 20 in 0504d34
Thanks @marqdevx , @Hannes7eicher and @jacobhylen for letting me pick your brains 🧠