Idea reference: thatproject, original code source: https://github.com/0015/ThatProject/tree/master
Procedure:
-
Install the gcloud CLI. (https://cloud.google.com/sdk/docs/install)
-
Initialize the gcloud CLI. (https://cloud.google.com/sdk/docs/initializing)
-
npm install --save @google-cloud/vision
-
node test.js
-
upload the code VisionAI_for_XIAO_ESP32S3_Sense.ino
-
node server.js
The camera's frame recognition and shooting is done continuously at 5-second intervals, so keep an eye on your Google account balance!
Please modify the ino file with the network name and password and IP address information.
#define ILI9341_DRIVER // Generic driver for common displays
#define TFT_MISO D9
#define TFT_MOSI D10
#define TFT_SCLK D8
#define TFT_CS D0 // Chip select control pin
#define TFT_DC D3 // Data Command control pin
#define TFT_RST D1 // Reset pin (could connect to RST pin)
LED 5V VCC 3.3V