GithubHelp home page GithubHelp logo

xenpac / esp32-cam-with-led-control Goto Github PK

View Code? Open in Web Editor NEW
19.0 6.0 4.0 96 KB

Camera Webserver ESP32-CAM ESP32-WROVER-B AI-THINKER Board with LED control

CMake 0.39% Makefile 0.37% C 81.04% C++ 14.50% Objective-C 3.70%
esp32-cam esp-idf camera led webserver

esp32-cam-with-led-control's Introduction

Camera Webserver ESP32-CAM ESP32-WROVER-B AI-THINKER Board with LED control

Also look at Version 2 here: https://github.com/xenpac/ESP32-CAM-Linux-Motion

Overview

This a stripped down version of the esp-who camera web server example at: http://github.com/espressif/esp-who
I added the control of the onboard high-power LED to be used as flash for snapshots or illumination for streaming.
It does not use a PWM, so its ON or OFF.
The changes are all in app_http.c

Hardware: ESP32-CAM AI-THINKER Board with OV2640, that nice little CAM board sold everywhere.

Removed:

  • face recognition, also removed related code in source (app_httpd.c).
  • set Release Version in Menuconfig for max optimize. (debug info still output on serial).

Added:

  • LED control via "Facedetection" Control. (On/Off)
  • Flash control for snapshot via "Face Recognition" Control. ie. both must be active, LED will turn off and only flash on snapshot.

corrected an error at line:88 in app_httpd.c, filter changes to filter->values .

Future work will be to integrate the camera as a cheap webcam to be used with linux motion.

It looks, the camera is working stable now.

The default stream-resolution can be specified in app_camera.c, line 69.

Camera Web interfaces via http:

Webpage with config settings: 192.168.1.4 (this is an example ip on the LAN)

The following 2 interfaces only work, if not enabled in the webpage at the same time. So only one instance can be running!!

  • jpeg Streaming interface (resolution asto settings on Webpage) : 192.168.1.4:81/stream

  • single jpeg capture image: 192.168.1.4/capture (now supports optional flash!)

Project:

It is assumed you are familiar with setting up and using the esp32 environment.

You need ESP-IDF from: https://github.com/espressif/esp-idf The crosscompiler from: https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz

I compiled the project using Ubuntu with crosscompiler and make.

Goto cam_server directory and edit the sdkconfig file to update your wifi AP settings.

Then type "make" to compile the project.

It also possible to use the Arduino IDE.

The compressed webpage is in:..cam_server/cam_server/main/include/camera_index.h

esp32-cam-with-led-control's People

Contributors

xenpac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esp32-cam-with-led-control's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.