120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
Captured Faces
134 |
136 |
137 |
138 |
139 |
140 |
141 |
241 |
242 |
243 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ESP32-CAM Access Control System
2 | Using an ESP32-CAM to unlock a door when a face is recognised. A simple access control system based on face recognition with the ESP32-CAM and the Arduino IDE.
3 |
4 | 
5 |
6 | Note: If you are using release 1.0.5 of the ESP32 Arduino Hardware Libraries you can now run the entire project with just these files
7 |
8 | FaceDoorEntryESP32Cam.ino
9 | camera_index.h
10 | camera_pins.h
11 | partitions.csv
12 |
13 | There is no need to create new partitions in the Arduino IDE
14 |
15 | Note: Releases 2.x.x of the ESP32 Hardware Libraries don't support face recognition on the ESP32 modules. The algorithm has been 'improved' and now runs too slowly on these processors.
16 |
17 | Full details on the blog: https://robotzero.one/access-control-with-face-recognition/
18 |
--------------------------------------------------------------------------------
/camera_index.h:
--------------------------------------------------------------------------------
1 |
2 | //File: index_ov2640.html.gz, Size: 4316
3 | #define index_ov2640_html_gz_len 4316
4 | const uint8_t index_ov2640_html_gz[] = {
5 | 0x1f,0x8b,0x08,0x08,0x76,0x8e,0x5e,0x5d,0x00,0xff,0x69,0x6e,0x64,0x65,0x78,0x2e,0x68,0x74,0x6d,0x6c,0x2e,0x67,0x7a,0x00,0xb5,0x58,0x6d,0x6f,0x22,0x39,0x12,0xfe,0x3c,0xfc,0x0a,0x5f,0xef,0x9d,0x8e,0xdc,0x42,0x43,0x42,0x76,0x95,0x61,0x42,0x74,0x4c,0x86,0xdc,0xac,0x94,0xb9,0x48,0x49,0x46,0x7b,0xdf,0x66,0x4d,0xb7,0x01,0xdf,0xb8,0xdb,0xbd,0xb6,0x1b,0xc2,0xad,0xf2,0xdf,0xb7,0xca,0x2f,0x8d,0x9b,0x90,0x49,0x76,0xa5,0x03,0x89,0x06,0xbb,0xea,0x71,0xd5,0xe3,0xaa,0x72,0x99,0xf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,0xce,0x02,0x5d,0x82,0x97,0xac,0xdf,0x70,0x06,0x6e,0x87,0x68,0xaf,0x81,0x65,0x50,0xac,0x24,0x77,0xd4,0xb7,0x72,0x60,0xb1,0x38,0x98,0x2f,0x8b,0xc5,0x68,0x38,0x3a,0x7d,0x89,0x8e,0x27,0x39,0x63,0x47,0x65,0x6d,0xd0,0x16,0x6b,0x2a,0xb0,0x90,0x3a,0x1a,0xf4,0x5e,0xcc,0x9e,0x5a,0xba,0x1b,0x96,0xc6,0x2b,0xb9,0x66,0x2a,0xc8,0xec,0xd9,0x72,0xfa,0xf6,0x34,0x8f,0x65,0x69,0x66,0xf8,0x9a,0x1d,0x16,0x3e,0x39,0xce,0x4e,0x5c,0x4a,0x79,0x61,0xe0,0x9d,0xce,0x05,0xcb,0x83,0x78,0xe0,0x23,0x67,0x0b,0x5a,0x0b,0x73,0xc8,0x7b,0x3a,0xc4,0xb7,0xb3,0x3e,0x4e,0xfd,0x85,0x90,0x14,0xc8,0xc5,0x21,0x37,0xd9,0x4a,0x71,0x3f,0x6b,0xc7,0xdc,0x34,0x2f,0xe8,0x92,0xf5,0xb1,0x1e,0x50,0x20,0xa4,0xf1,0xae,0x92,0xda,0x96,0x5d,0x90,0x65,0x82,0xa2,0x2b,0x4e,0xbc,0x5d,0x02,0x9e,0x56,0x0c,0x90,0xa9,0x45,0x98,0x16,0x5c,0x03,0xf7,0x58,0x9f,0x0f,0xa7,0xc3,0x6e,0x97,0x7c,0x8c,0x39,0x7f,0x04,0x6f,0xac,0x88,0x24,0xc3,0x56,0xe5,0x4c,0x30,0xf3,0x0c,0xb1,0xdf,0x88,0x08,0x48,0xda,0x5d,0xb8,0x3d,0x09,0xac,0x43,0xe9,0xff,0x34,0x62,0x31,0x51,0x9f,0x8b,0x58,0x30,0x6d,0x35,0xda,0xf1,0xd2,0x4a,0xdb,0x91,0x63,0xe6,0x7c,0xe0,0xcf,0xaa,0xf3,0x81,0x3f,0x45,0xf1,0xec,0x80,0x47,0xce,0xd7,0x84,0xe7,0x93,0x24,0x2e,0xe5,0x70,0x12,0x12,0xd2,0xcc,0x38,0xda,0x77,0xdb,0x04,0x87,0xaa,0xa0,0x5a,0x4f,0x92,0xbd,0xed,0x4b,0x2e,0xc8,0x39,0x2f,0x96,0x91,0x4e,0x42,0xb4,0xca,0x26,0x09,0x4e,0x0c,0x00,0x0d,0x17,0x77,0x8f,0xfd,0x45,0x6d,0x4c,0xec,0xaf,0x1a,0x17,0x74,0x84,0xd0,0x15,0x2d,0x9d,0x56,0xad,0x14,0x6a,0x39,0x91,0xe4,0x02,0x7c,0x83,0xa9,0x66,0x91,0x08,0xc4,0x55,0xd0,0x3e,0x36,0x05,0x16,0x1d,0xa6,0x78,0x59,0xd5,0x26,0x9a,0x4c,0x08,0x36,0x1a,0x93,0x04,0x77,0x21,0x21,0x6b,0x2a,0x6a,0xf8,0x91,0x10,0x58,0x34,0x63,0x2b,0x29,0x60,0x1b,0x27,0xc9,0x3d,0xb6,0x22,0x66,0xc5,0x88,0x53,0xf9,0xbb,0xb6,0x6d,0x06,0x64,0xaa,0x72,0xb0,0xed,0x85,0x3d,0x3b,0x3e,0xad,0xc3,0xba,0xbe,0xd8,0xe1,0xc2,0xee,0x2b,0x98,0xef,0x38,0xf2,0xf2,0x8e,0xf8,0xbb,0xfb,0xdb,0xd9,0xf4,0x13,0xb9,0x9c,0x7e,0x9a,0xdd,0x4e,0xcf,0x07,0x4e,0xf4,0x59,0x88,0x1c,0xa2,0x31,0xc3,0x2e,0xc7,0x41,0x78,0x1a,0x3f,0xcc,0xee,0x67,0x97,0xf7,0xe4,0x6a,0x7a,0x39,0xbb,0x8b,0x21,0xfe,0x9c,0x99,0x19,0xad,0x4c,0x0d,0x8e,0xb6,0xec,0x24,0xb6,0x03,0x9a,0x24,0x33,0x0c,0x40,0xe2,0xda,0x2e,0x42,0xe7,0x50,0xa3,0xc8,0x9c,0x2d,0xa4,0x62,0xc4,0xa9,0x41,0x02,0xc1,0xec,0x02,0xb8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,0xf9,0x2e,0xba,0x0f,0x4c,0xa6,0x8a,0x15,0xd0,0xaf,0x86,0x6a,0xe2,0xf2,0x65,0x9f,0x1f,0xbb,0xd7,0x98,0x62,0x3e,0xbb,0x9e,0x65,0xc6,0x28,0x17,0x13,0x36,0xde,0x77,0x67,0xde,0x5e,0x99,0x8c,0x43,0x23,0x2a,0xfe,0x7f,0xd0,0x61,0xe0,0xd1,0x12,0xf8,0x93,0x61,0x45,0xac,0xe0,0xd2,0xd5,0x07,0x6d,0x17,0x0a,0x77,0xac,0x90,0x09,0xa9,0xd9,0x0b,0x1a,0x78,0x8d,0x0a,0x3a,0x8d,0x7c,0x6a,0xdb,0x5f,0x4b,0x1e,0xb8,0x13,0xe2,0xea,0xa9,0x18,0x47,0x1a,0x22,0x07,0xf7,0xe7,0x9f,0xb6,0xb8,0x36,0x7c,0xe3,0xbe,0x76,0xb7,0x5f,0x51,0x22,0xe0,0x26,0x1d,0xcc,0x2b,0x20,0x3b,0xf8,0xe7,0xc9,0x48,0x69,0x05,0x05,0x3f,0xb7,0xdb,0xdb,0xf5,0x48,0xcf,0xfa,0x0a,0xff,0xe4,0xe2,0x49,0x68,0xc5,0x8e,0x52,0x6c,0x58,0x7c,0xbf,0x7d,0xc8,0x8d,0x83,0x2b,0x34,0xbe,0xed,0xab,0x27,0xff,0xf1,0xe1,0xd2,0x84,0x5d,0xac,0x16,0xb0,0x76,0x8d,0xc1,0x0b,0x51,0x85,0x6e,0xc2,0x1d,0xd7,0xdf,0x19,0xe0,0x5a,0xe1,0x6e,0xee,0x03,0xfb,0xaf,0xf8,0xef,0x5f,0x9e,0x6a,0x05,0x2c,0x17,0x00,0x00
6 | };
7 |
--------------------------------------------------------------------------------
/camera_pins.h:
--------------------------------------------------------------------------------
1 |
2 | #if defined(CAMERA_MODEL_WROVER_KIT)
3 | #define PWDN_GPIO_NUM -1
4 | #define RESET_GPIO_NUM -1
5 | #define XCLK_GPIO_NUM 21
6 | #define SIOD_GPIO_NUM 26
7 | #define SIOC_GPIO_NUM 27
8 |
9 | #define Y9_GPIO_NUM 35
10 | #define Y8_GPIO_NUM 34
11 | #define Y7_GPIO_NUM 39
12 | #define Y6_GPIO_NUM 36
13 | #define Y5_GPIO_NUM 19
14 | #define Y4_GPIO_NUM 18
15 | #define Y3_GPIO_NUM 5
16 | #define Y2_GPIO_NUM 4
17 | #define VSYNC_GPIO_NUM 25
18 | #define HREF_GPIO_NUM 23
19 | #define PCLK_GPIO_NUM 22
20 |
21 | #elif defined(CAMERA_MODEL_ESP_EYE)
22 | #define PWDN_GPIO_NUM -1
23 | #define RESET_GPIO_NUM -1
24 | #define XCLK_GPIO_NUM 4
25 | #define SIOD_GPIO_NUM 18
26 | #define SIOC_GPIO_NUM 23
27 |
28 | #define Y9_GPIO_NUM 36
29 | #define Y8_GPIO_NUM 37
30 | #define Y7_GPIO_NUM 38
31 | #define Y6_GPIO_NUM 39
32 | #define Y5_GPIO_NUM 35
33 | #define Y4_GPIO_NUM 14
34 | #define Y3_GPIO_NUM 13
35 | #define Y2_GPIO_NUM 34
36 | #define VSYNC_GPIO_NUM 5
37 | #define HREF_GPIO_NUM 27
38 | #define PCLK_GPIO_NUM 25
39 |
40 | #elif defined(CAMERA_MODEL_M5STACK_PSRAM)
41 | #define PWDN_GPIO_NUM -1
42 | #define RESET_GPIO_NUM 15
43 | #define XCLK_GPIO_NUM 27
44 | #define SIOD_GPIO_NUM 25
45 | #define SIOC_GPIO_NUM 23
46 |
47 | #define Y9_GPIO_NUM 19
48 | #define Y8_GPIO_NUM 36
49 | #define Y7_GPIO_NUM 18
50 | #define Y6_GPIO_NUM 39
51 | #define Y5_GPIO_NUM 5
52 | #define Y4_GPIO_NUM 34
53 | #define Y3_GPIO_NUM 35
54 | #define Y2_GPIO_NUM 32
55 | #define VSYNC_GPIO_NUM 22
56 | #define HREF_GPIO_NUM 26
57 | #define PCLK_GPIO_NUM 21
58 |
59 | #elif defined(CAMERA_MODEL_M5STACK_WIDE)
60 | #define PWDN_GPIO_NUM -1
61 | #define RESET_GPIO_NUM 15
62 | #define XCLK_GPIO_NUM 27
63 | #define SIOD_GPIO_NUM 22
64 | #define SIOC_GPIO_NUM 23
65 |
66 | #define Y9_GPIO_NUM 19
67 | #define Y8_GPIO_NUM 36
68 | #define Y7_GPIO_NUM 18
69 | #define Y6_GPIO_NUM 39
70 | #define Y5_GPIO_NUM 5
71 | #define Y4_GPIO_NUM 34
72 | #define Y3_GPIO_NUM 35
73 | #define Y2_GPIO_NUM 32
74 | #define VSYNC_GPIO_NUM 25
75 | #define HREF_GPIO_NUM 26
76 | #define PCLK_GPIO_NUM 21
77 |
78 | #elif defined(CAMERA_MODEL_AI_THINKER)
79 | #define PWDN_GPIO_NUM 32
80 | #define RESET_GPIO_NUM -1
81 | #define XCLK_GPIO_NUM 0
82 | #define SIOD_GPIO_NUM 26
83 | #define SIOC_GPIO_NUM 27
84 |
85 | #define Y9_GPIO_NUM 35
86 | #define Y8_GPIO_NUM 34
87 | #define Y7_GPIO_NUM 39
88 | #define Y6_GPIO_NUM 36
89 | #define Y5_GPIO_NUM 21
90 | #define Y4_GPIO_NUM 19
91 | #define Y3_GPIO_NUM 18
92 | #define Y2_GPIO_NUM 5
93 | #define VSYNC_GPIO_NUM 25
94 | #define HREF_GPIO_NUM 23
95 | #define PCLK_GPIO_NUM 22
96 |
97 | #else
98 | #error "Camera model not selected"
99 | #endif
100 |
--------------------------------------------------------------------------------
/partitions.csv:
--------------------------------------------------------------------------------
1 | # Name, Type, SubType, Offset, Size, Flags
2 | nvs, data, nvs, 0x9000, 0x5000,
3 | otadata, data, ota, 0xe000, 0x2000,
4 | app0, app, ota_0, 0x10000, 0x300000,
5 | fr, 32, 32, 0x310000, 0xF0000,
6 |
--------------------------------------------------------------------------------
/rzo_partitions.csv:
--------------------------------------------------------------------------------
1 | # Name, Type, SubType, Offset, Size, Flags
2 | nvs, data, nvs, 0x9000, 0x5000,
3 | otadata, data, ota, 0xe000, 0x2000,
4 | app0, app, ota_0, 0x10000, 0x280000,
5 | fr, 32, 32, 0x290000, 0xEF000,
6 | eeprom, data, 0x99, 0x37f000, 0x1000,
7 | spiffs, data, spiffs, 0x380000, 0x2F000,
--------------------------------------------------------------------------------