This file contains 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
En CMD o PowerShell abrir con permisos de administrador y poner: | |
wsl --install | |
wsl --set-default-version 2 | |
Descargar archivo e instalar: | |
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi | |
En Microsoft Store | |
Buscar e instalar Python3.8 | |
Buscar e instalar Visual Studio Code |
This file contains 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 | |
import tensorflow as tf | |
import cv2 | |
from object_detection.utils import visualization_utils as vis_util | |
#import visualization_utils as vis_util | |
def create_category_index(label_path="C:/Users/gdlhtorr/Desktop/inference_tflite_od/model.txt"): | |
""" | |
To create dictionary of label map | |
Parameters |
This file contains 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 datetime import datetime | |
import time | |
import pathlib | |
import sys | |
import base64 | |
import json | |
import os | |
import numpy as np | |
import requests | |
import cv2 |
This file contains 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
[DataBase] | |
Driver = SQL Server | |
Server = DESKTOP-0HHEA1Q\SQLEXPRESS | |
Database = testDB | |
UID = python | |
PWD = admin2 |
This file contains 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 pyodbc | |
import time | |
import sys | |
import os | |
from datetime import datetime | |
from configparser import ConfigParser | |
dummyVar = 1 | |
va = 12 | |
vc = "Texto" |
This file contains 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
#String json_data = "{\"Sesor_id\":\"3E24R\",\"Value\":" + (String)randNumber + "}"; | |
import serial, time, json | |
import matplotlib.pyplot as plt | |
import numpy as np | |
hw_sensor = serial.Serial(port='COM4', baudrate=115200, timeout=1, write_timeout=1) | |
fig, ax = plt.subplots() | |
t = np.linspace(0,20,21) |
This file contains 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
long randNumber; | |
String inputString; | |
void setup(){ | |
Serial.begin(115200); | |
randomSeed(analogRead(0)); | |
} | |
void loop(){ | |
delay(100); |
This file contains 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
#String json_data = "{\"Sesor_id\":\"3E24R\",\"Value\":" + (String)randNumber + "}"; | |
import serial, time, json | |
hw_sensor = serial.Serial(port='COM4', baudrate=115200, timeout=1, write_timeout=1) | |
if __name__ == '__main__': | |
while True: | |
hw_sensor.write('getValue'.encode('utf-8')) | |
time.sleep(1) |
This file contains 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 matplotlib.pyplot as plt | |
import numpy as np | |
import time | |
f=10 | |
T=1/f | |
t = np.linspace(0,5*T,300) | |
diff=t[1]-t[0] |
This file contains 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 matplotlib.pyplot as plt | |
import numpy as np | |
import math | |
x = np.linspace(0, 10, 5000) | |
fig, ax = plt.subplots() # Crea la figura y los ejes. | |
ax.plot(x, x*x) # Grafica una funcion cuadratica | |
plt.show() # Llama a la grafica para que se muestre. |