Skip to content

Instantly share code, notes, and snippets.

#include <WiFi.h>
#include <HTTPClient.h>
#include "esp_camera.h"
#include "time.h"
#include "img_converters.h"
const char* WIFI_SSID = "*";
const char* WIFI_PASS = "*";
const char* SERVER_URL = "http://192.168.31.36:5000/upload"; // Change to your PC's IP address
#include <Arduino.h>
#include "esp_camera.h"
#include <WiFi.h>
// ===========================
// Select camera model in board_config.h
// ===========================
#include "board_config.h"
// ===========================
from flask import Flask, request
import os
app = Flask(__name__)
UPLOAD_FOLDER = './uploads'
os.makedirs(UPLOAD_FOLDER, exist_ok=True)
@app.route('/upload', methods=['POST'])
def upload():
filename = request.headers.get('X-Filename', 'image.raw')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/python
from scipy import *
from scipy.signal.windows import hann, hamming
import numpy as np
import pylab as p
p.rc('text', usetex=True)
p.rc('font', size=14)
#p.rc('axes', labelsize=20)
import math
def add(x, y):
"""Return the sum of `x` and `y`.
>>> add(2, 3)
5
>>> add(-3, -7)
-10
import numpy as np
P1, P2 = 0.0, 10.0
running_total = 0.0
SNR = 1.0
N_ITER = 10000
rand22 = lambda : (np.random.randn(2, 2) + 1j * np.random.randn(2, 2)) / np.sqrt(2)
UR, _, _ = np.linalg.svd(rand22())