esp32

How to send images from ESP32 CAM to IoT Core?

杀马特。学长 韩版系。学妹 提交于 2021-02-17 06:20:59
问题 I need the system to be secure. I tired to encode the image with base64 and sending the string via MQTT to Iot Core. Then decode the string with a cloud function and finally storage the decoded image in Google Cloud Storage. The problem is the limited size of a message in MQTT. Using a Cloud Function and then storage in Google Cloud Storage is not really secure, anyone could hit that url and I loos control of all the ESP32CAM comunication. Am I missing something? is there a really secure way

Is there a way to generate real time depthmap from single camera video in python/opencv?

蓝咒 提交于 2021-02-11 12:23:25
问题 I'm trying to convert single images into it's depthmap , but I can't find any useful tutorial or documentation. I'd like to use opencv, but if you know a way to get the depth map using for example tensorflow, I'd be glad to hear it. There are numerous tutorials for stereo vision but I want to make it cheaper because it's for a project to help blind people. I'm currently using esp32 cam to stream frame by frame and receiving the images on python using opencv. 回答1: Usually, we need a

Why can this type not be resolved?

放肆的年华 提交于 2021-02-10 18:48:16
问题 I have the following code in my C header file: typedef struct mb32_packet_t { uint8_t compid; uint8_t servid; uint8_t payload[248]; uint8_t checksum; } __attribute__((packed)) mb32_packet_s; Doing the following works: struct mb32_packet_t packet; When using this: mb32_packet_t packet; I get: Type 'mb32_packet_t' could not be resolved Unknown type name 'mb32_packet_t'; use 'struct' keyword to refer to the type Isn't typedef struct intended for exactly this purpose, i.e. to be able to omit the

Why can this type not be resolved?

可紊 提交于 2021-02-10 18:46:26
问题 I have the following code in my C header file: typedef struct mb32_packet_t { uint8_t compid; uint8_t servid; uint8_t payload[248]; uint8_t checksum; } __attribute__((packed)) mb32_packet_s; Doing the following works: struct mb32_packet_t packet; When using this: mb32_packet_t packet; I get: Type 'mb32_packet_t' could not be resolved Unknown type name 'mb32_packet_t'; use 'struct' keyword to refer to the type Isn't typedef struct intended for exactly this purpose, i.e. to be able to omit the

How to parse json using ajax script in ESP32 app

…衆ロ難τιáo~ 提交于 2021-01-29 10:15:10
问题 I am working on a project using ESP32, I get some data from some sensors and send it to a webpage hosted in the same board. I read some info on the web and understood that is "better" to send all data from several sensors using json method, so my function to get and send data is this: void handle_leituras() { String results_json = "{ \"data\": " + Data + "," + "\"hora\": " + Hora + "," + "\"temp_amb1\": " + Tout + " }"; server.send(200, "application/json", results_json); } Testing above

getting OSError -202 where running urequests.get from micropy

人盡茶涼 提交于 2021-01-06 03:24:26
问题 hi im having error with this code but it runs in python shell could any body help me from machine import Pin import time import network import urequests p0 = Pin(0,Pin.OUT) wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('ssid', 'pass') response = urequests.get('http://jsonplaceholder.typicode.com/albums/1') while True: ans = response.json()['userId'] p0.value(1) time.sleep(1) p0.off() time.sleep(1) print('ok') and this is the error: Traceback (most recent call last): File

getting OSError -202 where running urequests.get from micropy

帅比萌擦擦* 提交于 2021-01-06 03:23:28
问题 hi im having error with this code but it runs in python shell could any body help me from machine import Pin import time import network import urequests p0 = Pin(0,Pin.OUT) wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('ssid', 'pass') response = urequests.get('http://jsonplaceholder.typicode.com/albums/1') while True: ans = response.json()['userId'] p0.value(1) time.sleep(1) p0.off() time.sleep(1) print('ok') and this is the error: Traceback (most recent call last): File

What ffmpeg command to use to convert a list of unsigned integers into an audio file?

感情迁移 提交于 2020-12-12 06:16:10
问题 I have a file that contains a list of about forty thousand integers that are space delimited, with each integer between the value of 0 and 255. It is this file here: https://github.com/johnlai2004/sound-project/blob/master/integers.txt If you connect a speaker to an ESP32 breakout board, then run this list of integers through the digital to analog converter at a frequency of 24kHz, you will hear the sentence, "That's not the post that you missed." What I want to know is how do you use FFMPEG

What ffmpeg command to use to convert a list of unsigned integers into an audio file?

末鹿安然 提交于 2020-12-12 06:12:27
问题 I have a file that contains a list of about forty thousand integers that are space delimited, with each integer between the value of 0 and 255. It is this file here: https://github.com/johnlai2004/sound-project/blob/master/integers.txt If you connect a speaker to an ESP32 breakout board, then run this list of integers through the digital to analog converter at a frequency of 24kHz, you will hear the sentence, "That's not the post that you missed." What I want to know is how do you use FFMPEG