@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
I'm just loving it.Looking for such informative video! Can you make another Video to show the output result on web instead of showing on the OLED? And please make another video on plant disease identification project like this. Wish you luck. Thanks a lot
Look closely at the serial monitor , I think the address for the web is being generated on the 9th line of the serial monitor , I think if we copy paste it on the search bar in Google like he did for the 1st code i guess it would work showing the detection on video with indicators.
@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
can you do sound detection on esp32 using I2s mems please. detect sound and distinguish it example if it is fire alarm dog bark something like commonly heard on our surroundings
Great video! I like what you did there in the end with the OLED screen, so could you please show your final code? Cause Im having a little struggle with it. Thanks
Excellent video. Thank you. Few questions: 1) do you know if the libraries included in VScode? 2) Any idea how far can such a detection work with this camera?
You can use the same library with VScode and Platform IO. the detection range would be very small since the ESP32 can only process image with lower resolution. if you increase the resolution the frame rate will be reduced drastically and the ESP32 may even crash with very high resolutions.
I am trying to do that using esp-idf, but is harder than that surely! At professinal application we need be capable to port the project in esp-idf, I am almost giving up
Nice video❤ I want to on red led when onion is detected, green when potato is detected and yellow when tomato is detected, is it possible ? , if yes how can i do this ?
Building a High-Resolution POV Display using ESP3 I am making your this project in my third year Sir Can you provide me your PCB garba file in this (please sir help)🙏🙏🙏 One more question is I can use the ESP 32 inbuilt data transfer and charging pin it is work or not you can tell me 🙏🙏 👇👇👇 Building a High-Resolution POV Display using ESP32
Sir, this is my first time on this channel. Sir, I made a car detection project using Edge Impulse, but when I uploaded it to the ESP32-CAM, I encountered many initializer errors during compilation. Sir, please tell me why this happened when everything was auto-generated.
Thanks for the video Actually I am facing difficulties regarding one project that I got demanded from school Actually the project is school involves four houses and hence there are four coloured tshirt so they just wanted to collect the data that how many students are present of red colour tshirt or blue color tshirt and so on. So kindly help me out. Or please make a video related to this project I would really appreciate you for this kind. Thank you so much sir 😊
@@Circuitdigest it is a great solution but I not understand why the same model would be less ac curate on an esp32, slower I agree, but less accurate? Sure?
@@SA-oj3bo During training the model we reduced the training cycle so as to reduce the code size and make it easy for esp32. ideally if you need better accuracy you should provide more training datasets and use high epoch but this is not feasible on a small processor like esp32. also we cannot use a better resolution camera with esp32
hello sir, I absolutely loved your video. I have a query, pls help me look into it. Ater saving impulse, when raw features are to be generated, it is saying "Error: VipsJpeg: Invalid SOS parameters for sequential JPEG" please help sir, this is causing a major setback in my projject.
@@CircuitdigestThankyou, I did find out that this is caused by samsung phones, as pics taken using samsung devices have some error data, resaving the image in another device or format will work.
i have uploaded zip library and did exactly as shown in video to run esp32cam code. its showing error before compilation finished. error is "The error you're encountering indicates issues with the use of initializer lists in your code. The error message either all initializer clauses should be designated or none of them should be points to improper mixing of designated and non-designated initializers." can you please resolve this. trying from 1 month.
Nice content. I follow all the same steps, but dont know why i am getting below error in verious line of codes. conv.cpp:1789:67: error: either all initializer clauses should be designated or none of them should be 1789 | .channels = input->dims->data[3], 1 | ^
I resolved the above issue Just editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/ Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile ."
make sure the Arduino is in reset state. and as I mentioned earlier use a board with 3.3V logic. And you must press and hold the boot / GPIO0 button while the ESPCAM board is connected to put it in the download mode.
Either all initializer clauses should be designated or none of them should be data_dims_t filter _dims={.width=filter__width,.height=filter_height,0,0}; how to correct this error.pls guide me step by step because im the beginner of doing project this is my first project.pls help me sir..thanks in advance
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/: and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
hi, may i know why when i uploaded the code it showed compilation error and also some In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)': , either all initializer clauses should be designated or none of them should be 1789 | .channels = input->dims->data[3], 1
Make sure to follow steps exactly as in the article. If you still face the same issue try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/: Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile .
Either all initializer clauses should be designated or none of them should be data_dims_t filter _dims={.width=filter__width,.height=filter_height,0,0}; how to correct this error.
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/: and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
sir i am using esp32 camera and the camera module they gave to code , the module have the same number of pin holes which the camera board have, i put the camera in the module and connected the module to program , but i am not getting any output nothin is getting printed in the serial moniter
Bro after build the AI trained Model.the code is not Compiling it takes long time and they display "compilation terminated error". Please help me bro.to solve this problem.
check from which variable the detection is coming from, and use if condition to check the class. Finally, use digitalWrite() to perform HIGH & LOW operations. Thanks!
I cant fix my error, I keep seeing the "is_pod" c:\users\mark jayson\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\type_traits:757:5: note: declared here 757 | is_pod
What are the parts of the code we need to modify to avoid grtting errors? it seems that the code or library we get from edge impulse having an error. i even used the versions of libraries in ur video
hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid 😭😮💨
Hi, I tried to follow and uploaded it and it has a problem c:\Users\USER!\Documents\Arduino\libraries\test_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1842:80: error: either all initializer clauses should be designated or none of them should be 1842 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0}; | ^ exit status 1
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/: and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
Thank you for the video. I have a problem with the compiling of the code.
c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'void tflite::{anonymous}::EvalQuantizedPerChannel(TfLiteContext*, TfLiteNode*, const TfLiteConvParams&, const NodeData&, const TfLiteEvalTensor*, const TfLiteEvalTensor*, const TfLiteEvalTensor*, TfLiteEvalTensor Tka*)': c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1881:58: error: either all initializer clauses should be designated or none of them should be 1881 | .channels = input_depth, 1 | ^ c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1885:59: error: either all initializer clauses should be designated or none of them should be 1885 | .channels = output_depth, 1 | ^ exit status 1 Compilation error: exit status 1 It's a piece of the error. I used esp 32 cams + Arduino ide 2.3.2 + edge impulse os was shown in the video but it did not work. Also, I visited the web page and recreated all steps, but without success. Which could be a problem? Thank you for answer :)
What version of ESP32 Arduino core are you using? Make sure to follow steps exactly as in the article. If you still face the same issue try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/: Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile .
@@Circuitdigest I set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN to 0 and it works. Thank you! buy the way how do you know what exactly do? I asking because I have a lot of troubles with connecting modules to esp32/arduino and I don't know how to solve problem. perhaps you know some books that could help troubleshoot better)))?
Giúp tôi với, bị lỗi gì ? In file included from c:\Users\Admin\Documents\Arduino\libraries\EloquentEsp32cam\src/eloquent_esp32cam.h:6, from C:\Users\Admin\AppData\Local\Temp\.arduinoIDE-unsaved2024822-2400-mzcqol.ak8lf\Collect_Images_for_EdgeImpulse\Collect_Images_for_EdgeImpulse.ino:20: c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h: In member function 'Eloquent::Error::Exception& Eloquent::Esp32cam::Camera::Camera::begin()': c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h:76:32: error: 'struct camera_config_t' has no member named 'pin_sccb_sda'; did you mean 'pin_sscb_sda'? config.pin_sccb_sda = pinout.pins.sccb_sda; ^~~~~~~~~~~~ pin_sscb_sda c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h:77:32: error: 'struct camera_config_t' has no member named 'pin_sccb_scl'; did you mean 'pin_sscb_scl'? config.pin_sccb_scl = pinout.pins.sccb_scl; ^~~~~~~~~~~~ pin_sscb_scl exit status 1 Compilation error: exit status 1
Glad to see your video made 10x my views in just 10 days T_T. That said, I'm happy that more people get to know my library
Hey thank you! your work is also amazing, great job!!!
I think its possible, not sure though
@@Circuitdigest hi sir,
Which algorithm is this working on
@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
BRO SET VIDEO AYRUNU NJAN KORA THIVASAM AYEE ITHINTA PORAKA NADAKAN THUDANJITEE BUT YOU SAVED MY DAY
Yours is the only Indian Tech Channel worth watching, all others make such basic videos, but your projects has some standard.
Wonderful sir, thank you!
I'm just loving it.Looking for such informative video!
Can you make another Video to show the output result on web instead of showing on the OLED?
And please make another video on plant disease identification project like this.
Wish you luck.
Thanks a lot
Look closely at the serial monitor , I think the address for the web is being generated on the 9th line of the serial monitor , I think if we copy paste it on the search bar in Google like he did for the 1st code i guess it would work showing the detection on video with indicators.
Hocam tam aradığım video ❤
Nice video, but zoom in on the Arduino IDE text so it's easier to view on a mobile device. Thanks!
You can get all the necessary details on the project page linked in the video description.
@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
Nice video 👍 gonna try it asap. Keep uploading informative videos like this.
Thank you, I will
@@Circuitdigest hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid
Great project Sir. How many classifications that Esp-cam can store? Does your project have any restrictions?
can you do sound detection on esp32 using I2s mems please. detect sound and distinguish it example if it is fire alarm dog bark something like commonly heard on our surroundings
Nice video, could you please show what you've modified in the code for the oled display? Thanks
If you encounter problem , on Windows just modify the tensorflow NN in library source
Great video! I like what you did there in the end with the OLED screen, so could you please show your final code? Cause Im having a little struggle with it. Thanks
The final code is available in the project page. Please check it out.
Thank you keep upgrading us
could you do a video with servos pan and tilt and esp32 cam (recognizing and tracking?)
Very good explanation, but you didn't explain how to connect the OLED screen. What did you change in the code to display the results on the screen?
Please check the project page linked in the video description.
Gald to see Indian IT guy working also on hardware
Excellent video. Thank you. Few questions: 1) do you know if the libraries included in VScode? 2) Any idea how far can such a detection work with this camera?
You can use the same library with VScode and Platform IO. the detection range would be very small since the ESP32 can only process image with lower resolution. if you increase the resolution the frame rate will be reduced drastically and the ESP32 may even crash with very high resolutions.
Sir , is their Tensorflow lite library installed on your IDE? and what is it?
All the necessary libraries will be available with in the code you are downloading from the edge impulse.
v. good
nicely done! quick clarification - @5:39 GPIO0 should be held High or Low ?
GPIO should be pulled to LOW.
Great topic, thanks 👍
Hello, could you please tell ne how much did it cost you overall for the products? Roughly!
Cost of the ESP32 camera module is around 3-6$.
Can you do a video on how to debug an Edge/YOLO project using a JTAG debugger (ESP-Prog)?
Thanks. Very nice job
very nice.. enjoyed
I am trying to do that using esp-idf, but is harder than that surely! At professinal application we need be capable to port the project in esp-idf, I am almost giving up
You can refer this docs.edgeimpulse.com/docs/tutorials/lifecycle-management/ota-model-updates/ota-model-updates-espressif-idf
Nice video❤
I want to on red led when onion is detected, green when potato is detected and yellow when tomato is detected, is it possible ? , if yes how can i do this ?
Yes you can activate a corresponding LED when a specific object is detected. You can check for the bb.label value and activate the LEDs accordingly.
I want to calculate, the distance from the ESP32CAM to the object, How i can do this with the size of the centroid?
YOLOOOOOOO!~ nice vid
Hi sir please suggest some good major project,I need it for my sem exam
Building a High-Resolution POV Display using ESP3
I am making your this project in my third year
Sir Can you provide me your PCB garba file in this (please sir help)🙏🙏🙏
One more question is I can use the ESP 32 inbuilt data transfer and charging pin it is work or not you can tell me 🙏🙏
👇👇👇
Building a High-Resolution POV Display using ESP32
Gerber file already on our website
Bro i just want to upload the code to the ESP-32 CAM through ESP 8266, so is there any other process need to be follow for that approach
Sir, this is my first time on this channel. Sir, I made a car detection project using Edge Impulse, but when I uploaded it to the ESP32-CAM, I encountered many initializer errors during compilation. Sir, please tell me why this happened when everything was auto-generated.
You will have to give a bit more context.
can we use this to detect the number of cars in traffic ?, please reply
You can. you will need to train you model accordingly.
For the ESP32 board, what version of the library is used?
2.0.4
Thanks for the video
Actually I am facing difficulties regarding one project that I got demanded from school
Actually the project is school involves four houses and hence there are four coloured tshirt so they just wanted to collect the data that how many students are present of red colour tshirt or blue color tshirt and so on. So kindly help me out. Or please make a video related to this project I would really appreciate you for this kind.
Thank you so much sir 😊
Will the accuracy with esp32 be lower or only slower compared to a solution on RP or PC? Which Yolo model is used for this ESP32 application?
The frame rate and accuracy will definitely better on RP or PC. We selected ESP32 cam because its a low cost option
@@Circuitdigest it is a great solution but I not understand why the same model would be less ac
curate on an esp32, slower I agree, but less accurate? Sure?
@@SA-oj3bo During training the model we reduced the training cycle so as to reduce the code size and make it easy for esp32. ideally if you need better accuracy you should provide more training datasets and use high epoch but this is not feasible on a small processor like esp32. also we cannot use a better resolution camera with esp32
hello sir, I absolutely loved your video. I have a query, pls help me look into it. Ater saving impulse, when raw features are to be generated, it is saying "Error: VipsJpeg: Invalid SOS parameters for sequential JPEG" please help sir, this is causing a major setback in my projject.
Either change your training images. Images taken with some phones may show this kind of error. Use the ESP32 CAM to take the training images.
@@CircuitdigestThankyou, I did find out that this is caused by samsung phones, as pics taken using samsung devices have some error data, resaving the image in another device or format will work.
can we use 0.91 inch oled screen which is long..will it work?
plss tell
you can but you may need to change the text positions and all to fit it within the display if needed.
Sir, can we use BLE 33 SENSE as programmer?
what is the change in code that you have made to interface with oled. kindly provide the code for it.
The full code for the project is available on the project page.
i have uploaded zip library and did exactly as shown in video to run esp32cam code. its showing error before compilation finished. error is "The error you're encountering indicates issues with the use of initializer lists in your code. The error message either all initializer clauses should be designated or none of them should be points to improper mixing of designated and non-designated initializers." can you please resolve this. trying from 1 month.
Just put the code to the chatgpt. It will give u a solution
And so when you pasted that into chat GPT what did it say?
Nice content.
I follow all the same steps, but dont know why i am getting below error in verious line of codes.
conv.cpp:1789:67: error: either all initializer clauses should be designated or none of them should be
1789 | .channels = input->dims->data[3], 1
| ^
I resolved the above issue
Just editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/
Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile ."
Tôi đã làm theo bạn không hiểu bị lỗi gì, có thể giúp tôi không
hello can i use Arduino uno board instead of USB to Serial Converter
You will have to use the one with 3.3V logic.
@@Circuitdigest how to fix esp32 a fatal error occurred: failed to connect to esp32: no serial data received. i am using arduino uno
make sure the Arduino is in reset state. and as I mentioned earlier use a board with 3.3V logic. And you must press and hold the boot / GPIO0 button while the ESPCAM board is connected to put it in the download mode.
Either all initializer clauses should be designated or none of them should be data_dims_t filter _dims={.width=filter__width,.height=filter_height,0,0}; how to correct this error.pls guide me step by step because im the beginner of doing project this is my first project.pls help me sir..thanks in advance
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/:
and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
Can we use this for facial recognition?
Yes. Here is the face recognition project. circuitdigest.com/microcontroller-projects/esp32-cam-face-recognition-using-edge-impulse
@@Circuitdigest thanks alot
Thanks
hi, may i know why when i uploaded the code it showed compilation error and also some In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)': , either all initializer clauses should be designated or none of them should be
1789 | .channels = input->dims->data[3], 1
Make sure to follow steps exactly as in the article. If you still face the same issue try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/:
Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile .
@@Circuitdigest this works. thanks, I had same issue
Effect of ambient light on performance??
Since we are working with gray scale images lighting difference is tolerable. But if you want reliable results lighting should be maintained constant
Can't upload camera code I get error 'Compilation error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
make sure to install Eloquent ESP32-CAM Library.
how to upgrade plan for edge impulse? I am not able to train the model for a large dataset
You will have to do that through the edge impulse website. The professional plan costs around 400$ per month.
Either all initializer clauses should be designated or none of them should be data_dims_t filter _dims={.width=filter__width,.height=filter_height,0,0}; how to correct this error.
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/:
and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
I didn't understand sir..I'm beginner of doing project..pls guide me step by step.. thanks in advance 🎉
sir i am using esp32 camera and the camera module they gave to code , the module have the same number of pin holes which the camera board have, i put the camera in the module and connected the module to program , but i am not getting any output nothin is getting printed in the serial moniter
Check the uart connection. tx pin should be connected to Rx of the uart converter and RX pin to the TX pin
@@Circuitdigest Thank you sir
can i use OV7670? @
Circuit Digest
Its better to use OV2640 since the OV7670 lacks JPG mode.
Hello everyone...is this a supervised learning
yes
Yes this comes under supervised learning
Bro after build the AI trained Model.the code is not Compiling it takes long time and they display "compilation terminated error". Please help me bro.to solve this problem.
Nobody can help you if you don't provide the exact error code.
@@Circuitdigest c:\Users\Mohamed Mushraf\Documents\Arduino\libraries\Waste_Segregation_System-project-1_inferencing\src\edge-impulse-sdk\porting\espressif\ESP-NN\src\convolution\esp_nn_conv_s8_filter_aligned_input_padded_esp32s3.S:2: fatal error: opening dependency file C:\Users\Mohamed Mushraf\AppData\Local\Temp\arduino\sketches\D60EA5CD2FB35EF678691B1E576D39DC\libraries\Waste_Segregation_System-project-1_inferencing\edge-impulse-sdk\porting\espressif\ESP-NN\src\convolution\esp_nn_conv_s8_filter_aligned_input_padded_esp32s3.S.d: No such file or directory
2 | #if EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN && EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN_S3
compilation terminated.
exit status 1
Compilation error: exit status 1
Why are you using ESP32 S3? which camera module are you using? For normal ESP32 camera module select the appropriate ESP32 board.
Sir how much project cost goes
Hardware wis you will need an ESP32-Cam module, which will cost anywhere around 400-600 INR.
How to get an output (when detect union.output high or low)
check from which variable the detection is coming from, and use if condition to check the class. Finally, use digitalWrite() to perform HIGH & LOW operations. Thanks!
You can use the GPIO pins on ESP32CAM to get output based on what you detect
bro please blind esp32 cam plus simple robot arm only
I cant fix my error, I keep seeing the "is_pod"
c:\users\mark jayson\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\include\c++\12.2.0\type_traits:757:5: note: declared here
757 | is_pod
What are the parts of the code we need to modify to avoid grtting errors? it seems that the code or library we get from edge impulse having an error. i even used the versions of libraries in ur video
hello sir, is it not possible to have a bounding box or something similar? The point is to detect objects in real time with an ESP32 cam that has a bounding box or centeroid 😭😮💨
are you a malayali ?
Fatal error: stdbool.h:no such file or directory
23 | # include
Compilation terminated how to clear this error
Which version of ESP32 Arduino core are you using? Try using any 2.x.x.
it says error compiling for ai thinker
while uploading
You will have to be a bit more specific. what is the actual error?
Hi, I tried to follow and uploaded it and it has a problem c:\Users\USER!\Documents\Arduino\libraries\test_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1842:80: error: either all initializer clauses should be designated or none of them should be
1842 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
| ^
exit status 1
Try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/:
and set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN from 1 to 0
Thank you for the video. I have a problem with the compiling of the code.
c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'void tflite::{anonymous}::EvalQuantizedPerChannel(TfLiteContext*, TfLiteNode*, const TfLiteConvParams&, const NodeData&, const TfLiteEvalTensor*, const TfLiteEvalTensor*, const TfLiteEvalTensor*, TfLiteEvalTensor
Tka*)':
c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1881:58: error: either all initializer clauses should be designated or none of them should be
1881 | .channels = input_depth, 1
| ^
c:\Users\start\Documents\Arduino\libraries\Antress-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1885:59: error: either all initializer clauses should be designated or none of them should be
1885 | .channels = output_depth, 1
| ^
exit status 1
Compilation error: exit status 1
It's a piece of the error. I used esp 32 cams + Arduino ide 2.3.2 + edge impulse os was shown in the video but it did not work. Also, I visited the web page and recreated all steps, but without success. Which could be a problem?
Thank you for answer :)
What version of ESP32 Arduino core are you using? Make sure to follow steps exactly as in the article. If you still face the same issue try editing the file ei_classifier_config.h in exported Arduino library folder: /scr/edge-impulse-sdk/classifier/:
Disabling #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1 and set it to 0 will allow the project to compile .
@@Circuitdigest Arduino core version is ESP32 Core Version: v5.1.4-497-gdc859c1e67-dirty
Thats the ESP IDF version which the core is based on. And have tried editing the config files i have mentioned.
@@Circuitdigest I set #define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN to 0 and it works. Thank you! buy the way how do you know what exactly do? I asking because I have a lot of troubles with connecting modules to esp32/arduino and I don't know how to solve problem. perhaps you know some books that could help troubleshoot better)))?
अबे अंग्रेज के बच्चे हिन्दी भाषा में जानकारी साझा करता क्यों नहीं
bro you don't start a video by calling the audience people
What?
Giúp tôi với, bị lỗi gì ?
In file included from c:\Users\Admin\Documents\Arduino\libraries\EloquentEsp32cam\src/eloquent_esp32cam.h:6,
from C:\Users\Admin\AppData\Local\Temp\.arduinoIDE-unsaved2024822-2400-mzcqol.ak8lf\Collect_Images_for_EdgeImpulse\Collect_Images_for_EdgeImpulse.ino:20:
c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h: In member function 'Eloquent::Error::Exception& Eloquent::Esp32cam::Camera::Camera::begin()':
c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h:76:32: error: 'struct camera_config_t' has no member named 'pin_sccb_sda'; did you mean 'pin_sscb_sda'?
config.pin_sccb_sda = pinout.pins.sccb_sda;
^~~~~~~~~~~~
pin_sscb_sda
c:\users\admin\documents\arduino\libraries\eloquentesp32cam\src\eloquent_esp32cam\camera\camera.h:77:32: error: 'struct camera_config_t' has no member named 'pin_sccb_scl'; did you mean 'pin_sscb_scl'?
config.pin_sccb_scl = pinout.pins.sccb_scl;
^~~~~~~~~~~~
pin_sscb_scl
exit status 1
Compilation error: exit status 1
which board have you selected?
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:183:5: error: 'snapshot_buf' does not name a type
183 | snapshot_buf = (uint8_t*)malloc(EI_CAMERA_RAW_FRAME_BUFFER_COLS * EI_CAMERA_RAW_FRAME_BUFFER_ROWS * EI_CAMERA_FRAME_BYTE_SIZE);
| ^~~~~~~~~~~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:186:5: error: expected unqualified-id before 'if'
186 | if(snapshot_buf == nullptr) {
| ^~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:191:18: error: 'ei::signal_t signal' redeclared as different kind of entity
191 | ei::signal_t signal;
| ^~~~~~
In file included from c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\time.h:158,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32/include/newlib/platform_include/time.h:11,
from c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\sys\stat.h:9,
from c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\sys\_default_fcntl.h:211,
from c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\sys\fcntl.h:3,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32/include/lwip/port/include/lwipopts.h:15,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32/include/lwip/lwip/src/include/lwip/opt.h:51,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-33fbade6\esp32/include/lwip/lwip/src/include/lwip/ip_addr.h:40,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/IPAddress.h:25,
from C:\Users\TNH Naem\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.5\cores\esp32/Arduino.h:196,
from C:\Users\TNH Naem\AppData\Local\Temp\arduino\sketches\1F531F31994AB10ACCAACCE861CDE501\sketch\esp32_camera_final.ino.cpp:1:
c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\signal.h:28:15: note: previous declaration 'void (* signal(int, _sig_func_ptr))(int)'
28 | _sig_func_ptr signal (int, _sig_func_ptr);
| ^~~~~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:192:5: error: reference to 'signal' is ambiguous
192 | signal.total_length = EI_CLASSIFIER_INPUT_WIDTH * EI_CLASSIFIER_INPUT_HEIGHT;
| ^~~~~~
In file included from d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/dsp/spectral/feature.hpp:24,
from d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/dsp/spectral/spectral.hpp:23,
from d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/classifier/ei_run_dsp.h:22,
from d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/classifier/ei_run_classifier.h:24,
from d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/Object_Detection_RUET_inferencing.h:49,
from D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:4:
d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/dsp/spectral/signal.hpp:37:7: note: candidates are: 'class ei::signal'
37 | class signal {
| ^~~~~~
c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\signal.h:28:15: note: 'void (* signal(int, _sig_func_ptr))(int)'
28 | _sig_func_ptr signal (int, _sig_func_ptr);
| ^~~~~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:193:5: error: reference to 'signal' is ambiguous
193 | signal.get_data = &ei_camera_get_data;
| ^~~~~~
d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/dsp/spectral/signal.hpp:37:7: note: candidates are: 'class ei::signal'
37 | class signal {
| ^~~~~~
c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\signal.h:28:15: note: 'void (* signal(int, _sig_func_ptr))(int)'
28 | _sig_func_ptr signal (int, _sig_func_ptr);
| ^~~~~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:195:5: error: expected unqualified-id before 'if'
195 | if (ei_camera_capture((size_t)EI_CLASSIFIER_INPUT_WIDTH, (size_t)EI_CLASSIFIER_INPUT_HEIGHT, snapshot_buf) == false) {
| ^~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:204:44: error: reference to 'signal' is ambiguous
204 | EI_IMPULSE_ERROR err = run_classifier(&signal, &result, debug_nn);
| ^~~~~~
d:\OneDrive - naemsit\Documents\Arduino\libraries\Object_Detection_RUET_inferencing\src/edge-impulse-sdk/dsp/spectral/signal.hpp:37:7: note: candidates are: 'class ei::signal'
37 | class signal {
| ^~~~~~
c:\users\tnh naem\appdata\local\arduino15\packages\esp32\tools\esp-x32\2302\xtensa-esp32-elf\sys-include\signal.h:28:15: note: 'void (* signal(int, _sig_func_ptr))(int)'
28 | _sig_func_ptr signal (int, _sig_func_ptr);
| ^~~~~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:205:5: error: expected unqualified-id before 'if'
205 | if (err != EI_IMPULSE_OK) {
| ^~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:211:14: error: expected constructor, destructor, or type conversion before '(' token
211 | ei_printf("Predictions (DSP: %d ms., Classification: %d ms., Anomaly: %d ms.):
",
| ^
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:215:14: error: expected constructor, destructor, or type conversion before '(' token
215 | ei_printf("Object detection bounding boxes:
");
| ^
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:216:5: error: expected unqualified-id before 'for'
216 | for (uint32_t i = 0; i < result.bounding_boxes_count; i++) {
| ^~~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:216:26: error: 'i' does not name a type
216 | for (uint32_t i = 0; i < result.bounding_boxes_count; i++) {
| ^
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:216:59: error: 'i' does not name a type
216 | for (uint32_t i = 0; i < result.bounding_boxes_count; i++) {
| ^
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:231:1: error: expected unqualified-id before 'if'
231 | if (!bb_found) {
| ^~
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:271:9: error: expected constructor, destructor, or type conversion before '(' token
271 | free(snapshot_buf);
| ^
D:\OneDrive - naemsit\Desktop\3-1 Semester\Lab\Electronic Shop Practice\Project Object detection\Arduino Codes\esp32_camera_final\esp32_camera_final.ino:273:1: error: expected declaration before '}' token
273 | }
| ^
exit status 1
Compilation error: 'snapshot_buf' does not name a type
This error is shown when i try to upload..
what to do?