-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] AI.fetch(proxyCallback) example and explanation #33
Comments
I published my current advance with this objective. Is not working but it is here in this draft PR of my library: |
Hi @hpsaturn, thanks for your suggestion, we will consider adding this feature, similar to the interface shown in the previous code Seeed_Arduino_SSCMA/src/Seeed_Arduino_SSCMA.h Line 298 in 0bf3411
If you are in a hurry, you can use the Further, if you care about performance, you can refer to our Seeed_Arduino_SSCMA/examples/camera_web_server/app_httpd.cpp Lines 484 to 512 in 0bf3411
|
Hi, and thanks for your quick answer.
well, I think that the saveJPG could be work but maybe it will not have good performance? because the idea is try to have a continues stream of frames, like the ESP32Camera driver, that uses a pointer of the raw frame or a pointer of JPG with its length. With the other cameras I only need something like this: void processFrameInternalJPG() {
if (Camera.get()) {
radio.sendData(Camera.fb->buf, Camera.fb->len); // Camera from esp_camera of IDF
Camera.free();
}
}
void loop() {
processFrameInternalJPG();
}
Yes, I know, I was trying to use this implementation, but I have some issues now, is not easy. But yes, I reviewed the camera_web_server example, and I'm close but it should be more easy.. I guess. On the other hand I have issues to start the detection, the invoke call for this implementation, using the callback, is not clear, ans sometimes it doesn't works.. and also I've to force the initialization. The |
Summary
Hi, I want to fetch and understand the right process to start the AI for capture the preview into the firmware. I want to have the JPG data, or the image raw data for sending using a different way than http.
Status
I already have running the httpd server example, and I can see that you use AI.fetch(proxyCallback) and the command for starting that is "INVOKE=-1,0,0", but using AI.invoke(-1,0,0) or (1,0,1) I don't have calls to the callback, only when I forced it with something like this:
Objective
would be nice to have a sample or implementation that could have something like this:
The text was updated successfully, but these errors were encountered: