Hello. I’m trying to use this library to chunk pictures into byte arrays, taken via a SPI camera, and send them to a cloud storage service. (Google Cloud). Any recommendations for how to go about this? There is this link that explains how to do this with the tracker, but none for the boron.
The chunking method is not dependent on the device, it works the same on the Boron.
The only thing that's specific to the Tracker One is the M8 connector interface to the Tracker. If you just connected the camera normally by UART serial to the Boron it would work on the Boron.
I tried to include this library through the particle console, but having an error: lib/CameraHelperRK/CameraHelperRK.cpp:7:10: tracker.h: No such file or directory. Is this expected?
Just remove the Tracker-specific information from the main.cpp sample, or add the CameraHelperRK library functions to your existing source. It would look something like this:
#include "Particle.h"
#include "CameraHelperRK.h"
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(SEMI_AUTOMATIC);
SerialLogHandler logHandler(LOG_LEVEL_INFO);
int takePictureHandler(String cmd);
CameraHelper cameraHelper(Serial1, 115200);
void setup()
{
Particle.function("takePicture", takePictureHandler);
// Start the camera interface
// The CameraHelperTracker turns on the CAN_PWR to power the camera.
cameraHelper.setup();
Particle.connect();
}
void loop()
{
cameraHelper.loop();
}
int takePictureHandler(String cmd)
{
// Take a picture
cameraHelper.takePicture();
return 0;
}
Thank you. I tried to add the CameraHelperRK library from the Particle console. Did I miss a step? I go to the console, click on libraries then search for the CameraHelperRK library, it found it. I asked for it to be added to my project, then asked me to confirm. Then I see it in my project under included library. But when I try to verify it, it is missing the tracker library.
Sorry about that. I updated CameraHelperRK so version 0.0.2 will now compile on non-Tracker platforms.
It compiles now. Thank you for the update. Does it include flow control for publishing to the Particle console? Isn't it limited to 1024 - so we have to break it up again?
The library and the example server code does the splitting for you.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.