This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include "esp_camera.h" | |
| #include <WiFi.h> | |
| // =========================== | |
| // Select camera model in board_config.h | |
| // =========================== | |
| #include "board_config.h" | |
| // =========================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| def add(x, y): | |
| """Return the sum of `x` and `y`. | |
| >>> add(2, 3) | |
| 5 | |
| >>> add(-3, -7) | |
| -10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()) |
NewerOlder