Skip to content

Commit

Permalink
Fix bracket alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Slider0007 committed Nov 30, 2024
1 parent 3e9fc5f commit 71c12bf
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions code/components/mainprocess_ctrl/ClassFlowCNNGeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(std::string time)
LogFile.writeToFile(ESP_LOG_DEBUG, TAG, "ROI: " + roi->param->roiName);

switch (cnnType) {
case CNNTYPE_DIGIT_CLASS11: // for models dig-class11*
{
case CNNTYPE_DIGIT_CLASS11: { // for models dig-class11*
LogFile.writeToFile(ESP_LOG_DEBUG, TAG, "Type: Digit (dig-class11)");

roi->CNNResult = tflite->GetClassFromImageBasis(roi->imageRoiResized); // 0-9 + 10 => NaN
Expand All @@ -307,8 +306,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(std::string time)
}
} break;

case CNNTYPE_DIGIT_DOUBLE_HYBRID10: // for models dig-cont*
{
case CNNTYPE_DIGIT_DOUBLE_HYBRID10: { // for models dig-cont*
LogFile.writeToFile(ESP_LOG_DEBUG, TAG, "Type: Digit (dig-cont)");

int LogImageResult;
Expand Down Expand Up @@ -387,9 +385,8 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(std::string time)
}
} break;

case CNNTYPE_ANALOG_CLASS100:
case CNNTYPE_DIGIT_CLASS100: // for models dig-class100*
{
case CNNTYPE_ANALOG_CLASS100: // for models ana-class100*
case CNNTYPE_DIGIT_CLASS100: { // for models dig-class100*
LogFile.writeToFile(ESP_LOG_DEBUG, TAG, "Type: Analog / Digit (ana-class100 / dig-class100)");

if (tflite->LoadInputImageBasis(roi->imageRoiResized)) {
Expand Down Expand Up @@ -431,8 +428,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(std::string time)
}
} break;

case CNNTYPE_ANALOG_CONT: // for models ana-cont*
{
case CNNTYPE_ANALOG_CONT: { // for models ana-cont*
LogFile.writeToFile(ESP_LOG_DEBUG, TAG, "Type: Analog (ana-cont)");

if (tflite->LoadInputImageBasis(roi->imageRoiResized)) {
Expand Down

0 comments on commit 71c12bf

Please sign in to comment.