Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, #2

Open
alexRAML opened this issue Nov 29, 2022 · 9 comments
Open

Hi, #2

alexRAML opened this issue Nov 29, 2022 · 9 comments

Comments

@alexRAML
Copy link

No description provided.

@alexRAML
Copy link
Author

Hello!

I am trying to work offline in localhost, is this possible?

Best regards,

Alex

@alexRAML
Copy link
Author

No description provided.

@alexRAML
Copy link
Author

Hello!

I am trying to work offline in localhost, is this possible?

Best regards,

Alex

@alexRAML alexRAML reopened this Nov 30, 2022
@RuiSantosdotme
Copy link
Owner

What do you mean by working offline? No router with Internet access?
If that's the case, yes it's still possible for most projects. You need to setup your ESP32-CAM as an Access Point.

https://github.com/RuiSantosdotme/ESP32-CAM-eBook/blob/master/Code/Extra/CameraWebServer_Access_Point.zip

@alexRAML
Copy link
Author

In the case of facial recognition, for example, which is defined in module 5, I wonder if there is any way to make it work from an Access Point.

There are several lines in which some URLs are called and I would like to download that content to load it from a repository on my PC, is this possible?

Thank you very much in advance because your work is helping me a lot.

Alex.

@RuiSantosdotme
Copy link
Owner

Unfortunately I don't think it would work reliably, but in theory is possible. You can:

  1. download the source files from those URLs
  2. save those contents in local files with the correct extension (.js for example)
  3. upload those contents using data folder to the ESP32-CAM SPIFFS
  4. change the ESP32-CAM web server to Access Point and embedded the files using the ESP32-CAM local URL

However, those files are so large that I don't think the ESP32-CAM would properly load them...

@alexRAML
Copy link
Author

Thank you so much for the quick anwser.

I have tried to download the content of the URLs, however, there is one that does not seem to exist (https://ruisantosdotme.github.io/face-api.js/weights/).

On the other hand, I thought about leaving the files on a hard disc to which I could connect through FTDI, and this would increase the loading time, but it shouldn't be a problem when loading the files, isn't it?

Alex

@RuiSantosdotme
Copy link
Owner

That's because it's a path folder to get all these files:
https://github.com/RuiSantosdotme/face-api.js/tree/master/weights
You can find all those files on that URL

You could create a folder on the SPIFFS data called "weights" to store all those files, then change that line 213 https://github.com/RuiSantosdotme/ESP32-CAM-eBook/blob/master/Code/Module_5/Face_Detection_Video_Streaming/Face_Detection_Video_Streaming.ino

const modelPath = 'http://esp-ip-address/weights/';

@alexRAML
Copy link
Author

Thank you so much!

I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants