@@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 Loved your content, I have tried myself the project, but when i try to compile and upload, it shows me "Error Compiling for board AI Thinker ESP32-cam"
@@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
Sir , when i this video i didn't find anything you are writing thr code is getting itself by including the libraries and selecting that library. Is any need to write code or the library itself provides the code?
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 ."
I already made that in dec 2023 .and guys use esp32 cam to take pictures .some will tell you to use mobile or pc cam it will work but using esp32 cam will improve your AI model . and if you want to upgrade it try using RPi that thing is made for image processing . use zero if you are using it for first time
@@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
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
Yes but be careful while supplying power to it but . Use FTDI it will save you from wiring headache or you can use ESP32-CAM programing board for 200rs
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
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)': C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\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 | ^ C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1793:68: error: either all initializer clauses should be designated or none of them should be 1793 | .channels = output->dims->data[3], 1 | ^ C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1795:80: error: either all initializer clauses should be designated or none of them should be 1795 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0}; | ^ C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-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*)': C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1883:58: error: either all initializer clauses should be designated or none of them should be 1883 | .channels = input_depth, 1 | ^ C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1887:59: error: either all initializer clauses should be designated or none of them should be 1887 | .channels = output_depth, 1 | ^ C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1889:80: error: either all initializer clauses should be designated or none of them should be 1889 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0}; | ^ exit status 1 Compilation error: exit status 1
Maker sure you have the latest esp32 board definition installed. And keep in mind that the board names are not in alphabetic order. If you are using Arduino IDE 2.0.x it would be easier if you search for the board using the select board dropdown menu in the main screen instead of using the tools menu.
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.
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.
@@Giburozu I didn’t get any error while using this certain version 2.0.4. The project is running smoothly till now sir . I don’t have any idea why u get such error
No actually you are training your own AI model . More pictures you provide more effective your system will work. Edge impulse is use to create library for your ai module. Other wise you have to code for it . Which is hard and complicated and more chance of failure. And in future if you want upgrade your system you can make new library and add to your code and upload it
Hi, I did the same thing and uploaded the zip file but I am getting error in compilation where it says to do sone changes in conv.cpp file and they are related to .channel and .output. What to do in that case?
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.
The first compile after opening the IDE will always slower. You can enable the verbose output for compile in the preferences to see the compilations progress.
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 ?
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
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.
@@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
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 .
I am getting this error while compiling e:\Documents\Arduino\libraries\Smart_Iron_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)': Help me in sorting it out
Check your serial monitor it will give you an Ip address copy it and paste it to your browser. But I will recommend you. If you are using it for first time try do streaming with esp32cam . First it will help you in this project
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
Well you can use arduino if you want but use FTDI man ! 100 or 200 rs and if you don't want use it try using ESP32-CAM programing board same price but will save your lot of time
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
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!
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
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.
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
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.
i am getting this in Serial Monitor after uploading rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57 how can i fix this and get wifi connect to esp32 Cam.
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
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
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.
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
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 😊
Look are you doing this for first time . First don't directly jump to it .and for this I will recommend you Rpi zero for it and using rpi camera it is little bit expensive but will do the job. You will get rpi zero around 1200 rs to 1300rs depends from were you are buying this and 500 rs for camera but it's quality is better than esp32 cam .
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)))?
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 😭😮💨
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
@@Circuitdigest Loved your content, I have tried myself the project, but when i try to compile and upload, it shows me "Error Compiling for board AI Thinker ESP32-cam"
Yours is the only Indian Tech Channel worth watching, all others make such basic videos, but your projects has some standard.
sir i love you unlike other ytuber u explain everything
BRO SET VIDEO AYRUNU NJAN KORA THIVASAM AYEE ITHINTA PORAKA NADAKAN THUDANJITEE BUT YOU SAVED MY DAY
If you encounter problem , on Windows just modify the tensorflow NN in library source
Could you tell me what change is made?
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
Sir , when i this video i didn't find anything you are writing thr code is getting itself by including the libraries and selecting that library. Is any need to write code or the library itself provides the code?
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 ."
@@rohitchaudhari5337 what to edit over there??
Thank you so much, you save me!
Can you give sound output instead of text
You can with modified code with TTS.
yes you can do that remove the oled part from the code
I already made that in dec 2023 .and guys use esp32 cam to take pictures .some will tell you to use mobile or pc cam it will work but using esp32 cam will improve your AI model . and if you want to upgrade it try using RPi that thing is made for image processing . use zero if you are using it for first time
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
@@Circuitdigest hello sir I have an error on the ai thinker board, what version of the esp32 board are you using?
'data_dims_t' {aka 'data_dims'} has no non-static data member named 'depth'
1850 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, .depth = 0, .batch = 0}; error occurred while uploading code
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
@Circuitdigest thanks, sorted
Thank you keep upgrading us
hi want to ask, my OLED is not working its not showing any characters just the bluee.... any recommendation from you?
Make sure your OLED is properly wired and also the i2C address is the same.
Wonderful sir, thank you!
Can I use Arduino uno to program the esp32 CAM
Yes but be careful while supplying power to it but . Use FTDI it will save you from wiring headache or you can use ESP32-CAM programing board for 200rs
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
yes
Help, my code won't upload. It keeps saying compilation error: exit status 1
You need to be a bit more elaborate. First check what the error is. Without knowing the exact error we won't be able to help you.
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)':
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\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
| ^
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1793:68: error: either all initializer clauses should be designated or none of them should be
1793 | .channels = output->dims->data[3], 1
| ^
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1795:80: error: either all initializer clauses should be designated or none of them should be
1795 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
| ^
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-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*)':
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1883:58: error: either all initializer clauses should be designated or none of them should be
1883 | .channels = input_depth, 1
| ^
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1887:59: error: either all initializer clauses should be designated or none of them should be
1887 | .channels = output_depth, 1
| ^
C:\Users\acer\Documents\Arduino\libraries\elinahcaralian-project-1_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1889:80: error: either all initializer clauses should be designated or none of them should be
1889 | data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
| ^
exit status 1
Compilation error: exit status 1
@@Circuitdigest nevermind, I saw the fix you sent someone in a different comment, it works now
can i detect text with this way, upload images to edge impluse and when esp32 cam detect this text on TV screen can recognize it ?
You can do character recognition. But it may need a lot of training data.
@Circuitdigest thanks
Can you do on car plate
We have already done that. Here is the video. th-cam.com/video/c9bNmJvqJE4/w-d-xo.html
sir can i give a data set from google instead of live images
does that work
Yes. you can.
Hey bro can you tell me what software to design the prototype of this tutorial?
sir its not showing 'ai thinker esp32-cam' on arduino board
Maker sure you have the latest esp32 board definition installed. And keep in mind that the board names are not in alphabetic order. If you are using Arduino IDE 2.0.x it would be easier if you search for the board using the select board dropdown menu in the main screen instead of using the tools menu.
Could you use this to make the esp32CAM read barcodes?
Yes you can. Checkout our QR Code API.circuitdigest.com/microcontroller-projects/esp32-cam-qr-code-scanner
Have you guys noticed that "labeling queue" doesn't exist anymore? I am trying to find where to set the bounding boxes now.
How to integrate in blynk? Labelling of objects by camera
Gald to see Indian IT guy working also on hardware
Hii sir can you help me doing the same project like this for face recognition attendance system
use your face to create ai model instead of potato. and if you want some thing more advance use RPI
can we use this to detect the number of cars in traffic ?, please reply
You can. you will need to train you model accordingly.
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?
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.
nicely done! quick clarification - @5:39 GPIO0 should be held High or Low ?
GPIO should be pulled to LOW.
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.
For the ESP32 board, what version of the library is used?
2.0.4
@@mr.emptygamingytwhen I use 2.0.4 version, why error no such file or directory
@@Giburozu I didn’t get any error while using this certain version 2.0.4. The project is running smoothly till now sir . I don’t have any idea why u get such error
@@mr.emptygamingyt huft.. Thanks
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
Is the full code in the link in bio?
as in, does the AI have the code or does the edge impulse have its own ai that it uses to train?
No actually you are training your own AI model . More pictures you provide more effective your system will work. Edge impulse is use to create library for your ai module. Other wise you have to code for it . Which is hard and complicated and more chance of failure. And in future if you want upgrade your system you can make new library and add to your code and upload it
could you do a video with servos pan and tilt and esp32 cam (recognizing and tracking?)
If you want I can help you I made same thing a year ago
Hi, I did the same thing and uploaded the zip file but I am getting error in compilation where it says to do sone changes in conv.cpp file and they are related to .channel and .output. What to do in that case?
SUPISTE CORREGIRLO?
in board manager what version of esp32 you use
2.x.x
Nice video, could you please show what you've modified in the code for the oled display? Thanks
How can the edge impulse web application itself tells it can identify objects with 100 percent accuracy without testing with an object?
It will use the test data set for evaluation.
I tried two times now to download the file from edge impulse and both times I get an code 1 error. The file is not compiling correctly. Any ideas?
I found out that the latest package for Espressif - 3.0.7 was the problem. I downgraded the package to 2.0.7 and it worked.
Glad you got it fixed.
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.
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.
Can you help me? Why when im compiling, the process is so slow like dont do any progress?
The first compile after opening the IDE will always slower. You can enable the verbose output for compile in the preferences to see the compilations progress.
Great topic, thanks 👍
i am using I2c lcd for display the result ,but ihave error on it can you help to display on I2c lcd
You will need to change the code accordingly. adapt the display related functions for the I2C LCD.
@Circuitdigest can you help me, im using ur code
@@Circuitdigest pls
very nice.. enjoyed
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.
can i use OV7670? @
Circuit Digest
Its better to use OV2640 since the OV7670 lacks JPG mode.
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$.
Around 1300 rs for all of the components
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
I want to calculate, the distance from the ESP32CAM to the object, How i can do this with the size of the centroid?
my serial monitor is not responding so what should i do?????
Make sure the connections are correct. and after uploading the code you might need to reset the board manually.
Thanks. Very nice job
Hi sir please suggest some good major project,I need it for my sem exam
If can make Drones include this systems to it with some modifications
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 🎉
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.
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
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
@@6901ben it didnt work for me i did edit the file it still showed the same issue
pls elab
I am getting this error while compiling
e:\Documents\Arduino\libraries\Smart_Iron_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)':
Help me in sorting it out
You haven't shared the actual error code...!
Sir, can we use BLE 33 SENSE as programmer?
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.
Bro how to get stream link? I want video of the video stream link alone and not settings page
Check your serial monitor it will give you an Ip address copy it and paste it to your browser. But I will recommend you. If you are using it for first time try do streaming with esp32cam . First it will help you in this project
Sir , can you make a programming video on this or share here?
If you need help I can help you
Tôi đã làm theo bạn không hiểu bị lỗi gì, có thể giúp tôi không
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
Well you can use arduino if you want but use FTDI man ! 100 or 200 rs and if you don't want use it try using ESP32-CAM programing board same price but will save your lot of time
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
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
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
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.
@@Circuitdigest hello sir I have an error on the ai thinker board, what version of the esp32 board are you using?
@@MuhammadRidho-qu9ey 3.0.1
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.
bro in the final step i have error in the code can you halp ma plz
Please elaborate.
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.
i am getting this in Serial Monitor after uploading
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
how can i fix this and get wifi connect to esp32 Cam.
Make sure you have selected the correct board, flash size and partition scheme.
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
it says error compiling for ai thinker
while uploading
You will have to be a bit more specific. what is the actual error?
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.
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.
@@Circuitdigest But showing error
Sir how much project cost goes
Hardware wis you will need an ESP32-Cam module, which will cost anywhere around 400-600 INR.
Bro I am facing an error when I upload code of edge impulse
Please provide the error message for more details.
@@Circuitdigest no bro I've fixed it,
@@EsotericEntertainment2004 how??
Hocam tam aradığım video ❤
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
Great project Sir. How many classifications that Esp-cam can store? Does your project have any restrictions?
Actually esp32 don't hold anything It's your library which you are creating more pictures you add to it more efficiently your system wil work
Can you do a video on how to debug an Edge/YOLO project using a JTAG debugger (ESP-Prog)?
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.
Hello everyone...is this a supervised learning
yes
Yes this comes under supervised learning
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.
bro please blind esp32 cam plus simple robot arm only
YOLOOOOOOO!~ nice vid
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
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 😊
Look are you doing this for first time . First don't directly jump to it .and for this I will recommend you Rpi zero for it and using rpi camera it is little bit expensive but will do the job. You will get rpi zero around 1200 rs to 1300rs depends from were you are buying this and 500 rs for camera but it's quality is better than esp32 cam .
@Vader141D yes I m doing this for first time
@@adityaarya-p9g man I am telling you it won't work as you want so better upgrade it to rpi esp32 cam is not for image processing
are you a malayali ?
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)))?
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.
Thanks
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 😭😮💨
v. good
अबे अंग्रेज के बच्चे हिन्दी भाषा में जानकारी साझा करता क्यों नहीं