Ameba-AIoT / ameba-arduino-pro2

AmebaPro2 Arduino third-party package SDK
https://www.amebaiot.com/en/ameba-arduino-summary/
MIT License
46 stars 20 forks source link

Error in compiling RTSPImageClassification.ino #217

Closed rkuo2000 closed 5 months ago

rkuo2000 commented 6 months ago

Boards

AMB82-mini

External Hardware

None

Hardware Configuration

None

Version

latest dev (checkout manually)

IDE Name

Arduino IDE 2.3.2

Operating System

Ubuntu 22.04.3 LTS

Auto Flash Mode

Disable

Erase All Flash Memory (16MB)

Disable

Standard Lib

Arduino_STD_PRINTF

Upload Speed

2000000

Description

Error in compiling RTSPImageClassification

Sketch

examples/AmebaNN/RTSPImageClassification

Error/Debug Message

/tmp/.arduinoIDE-unsaved2024124-30881-9uix6n.un7gl/RTSPImageClassification/RTSPImageClassification.ino:91:26: error: 'IMAGE_CLASSIFICATION' was not declared in this scope; did you mean 'AUDIO_CLASSIFICATION'?
   91 |     imgclass.modelSelect(IMAGE_CLASSIFICATION, NA_MODEL, NA_MODEL, NA_MODEL, NA_MODEL, DEFAULT_IMGCLASS);
      |                          ^~~~~~~~~~~~~~~~~~~~
      |                          AUDIO_CLASSIFICATION
/tmp/.arduinoIDE-unsaved2024124-30881-9uix6n.un7gl/RTSPImageClassification/RTSPImageClassification.ino:91:88: error: 'DEFAULT_IMGCLASS' was not declared in this scope
   91 |     imgclass.modelSelect(IMAGE_CLASSIFICATION, NA_MODEL, NA_MODEL, NA_MODEL, NA_MODEL, DEFAULT_IMGCLASS);

Reproduce remarks

No response

I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.

rkuo2000 commented 6 months ago

latest v4.0.7 build missing the following: chmod +x /home/rkuo/.arduino15/packages/realtek/tools/ameba_pro2_tools/1.2.17/prebuild_linux chmod +x /home/rkuo/.arduino15/packages/realtek/tools/ameba_pro2_tools/1.2.17/ino_validation_linux chmod +x /home/rkuo/.arduino15/packages/realtek/tools/ameba_pro2_tools/1.2.17/nn_model_update_linux

Kyderio commented 6 months ago

Bug fixed and permission issue solved in latest 4.0.7 build. You can verify and close this issue if it is fixed. Thanks!

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 14 days with no activity.