mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 12:06:58 +03:00
do not show value on recognition page (#2083)
* do not show value on recognition page * . * . * . * . --------- Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
@@ -378,23 +378,38 @@ esp_err_t handler_wasserzaehler(httpd_req_t *req)
|
|||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
zw = tfliteflow.getReadout(_rawValue, _noerror);
|
|
||||||
if (zw.length() > 0)
|
|
||||||
httpd_resp_sendstr_chunk(req, zw.c_str());
|
|
||||||
|
|
||||||
|
std::string *status = tfliteflow.getActStatus();
|
||||||
string query = std::string(_query);
|
string query = std::string(_query);
|
||||||
// ESP_LOGD(TAG, "Query: %s, query.c_str());
|
// ESP_LOGD(TAG, "Query: %s, query.c_str());
|
||||||
if (query.find("full") != std::string::npos)
|
if (query.find("full") != std::string::npos)
|
||||||
{
|
{
|
||||||
string txt, zw;
|
string txt;
|
||||||
|
txt = "<body style=\"font-family: arial\">";
|
||||||
std::string *status = tfliteflow.getActStatus();
|
|
||||||
|
|
||||||
if ((countRounds <= 1) && (*status != std::string("Flow finished"))) { // First round not completed yet
|
if ((countRounds <= 1) && (*status != std::string("Flow finished"))) { // First round not completed yet
|
||||||
txt = "<body style=\"font-family: arial\">";
|
|
||||||
txt += "<h3>Please wait for the first round to complete!</h3><h3>Current state: " + *status + "</h3>\n";
|
txt += "<h3>Please wait for the first round to complete!</h3><h3>Current state: " + *status + "</h3>\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
txt += "<h3>Value</h3>";
|
||||||
|
}
|
||||||
|
|
||||||
httpd_resp_sendstr_chunk(req, txt.c_str());
|
httpd_resp_sendstr_chunk(req, txt.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
zw = tfliteflow.getReadout(_rawValue, _noerror);
|
||||||
|
if (zw.length() > 0)
|
||||||
|
httpd_resp_sendstr_chunk(req, zw.c_str());
|
||||||
|
|
||||||
|
|
||||||
|
if (query.find("full") != std::string::npos)
|
||||||
|
{
|
||||||
|
string txt, zw;
|
||||||
|
|
||||||
|
if ((countRounds <= 1) && (*status != std::string("Flow finished"))) { // First round not completed yet
|
||||||
|
// Nothing to do
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
/* Digital ROIs */
|
/* Digital ROIs */
|
||||||
txt = "<body style=\"font-family: arial\">";
|
txt = "<body style=\"font-family: arial\">";
|
||||||
|
|||||||
Reference in New Issue
Block a user