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 math import atan2, sqrt, pi, sin, cos | |
import cv2 | |
import numpy as np | |
from shapely import LineString | |
from shapely.geometry import Point, Polygon | |
class MeasurementLens: |
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
#!/bin/bash | |
echo "Exportando OpenCV" | |
export OpenCV_DIR="/content/drive/MyDrive/Libs/opencv/opencv/build/" | |
clear | |
echo "Construindo Darknet" | |
cd /content/ | |
git clone https://github.com/AlexeyAB/darknet | |
cd /content/darknet |
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 logging | |
import re | |
from django.conf import settings | |
from django.http import JsonResponse | |
from keycloak import KeycloakOpenID, KeycloakInvalidTokenError | |
from rest_framework.exceptions import PermissionDenied, NotAuthenticated, AuthenticationFailed | |
logger = logging.getLogger(__name__) |
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
prometheus: | |
image: prometheus:latest | |
restart: always | |
build: | |
context: .docker/prometheus | |
dockerfile: Dockerfile | |
networks: | |
- frontend | |
- backend |
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
https://drive.google.com/file/d/1b9sawsd-FolUGf-yUiBrM4r2aHJfn-QH/view?usp=sharing | |
https://drive.google.com/file/d/1NY4FQ6G2KpuF-xVPWCdTxqF7AUECSB1P/view?usp=sharing |
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
error connecting to host: could not connect to server: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: cluster0.ior1q.mongodb.netnet:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp 177.8.165.194:27017: i/o timeout }, ] } |
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
2020-05-20T14:00:08.335-0300 connected to: mongodb+srv://[**REDACTED**]@cluster0.ior1q.mongodb.net/extracoes | |
2020-05-20T14:00:08.385-0300 Failed: read error on entry #1: line 2, column 1: bare " in non-quoted-field | |
2020-05-20T14:00:08.385-0300 0 document(s) imported successfully. 0 document(s) failed to import. |
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 PIL import Image | |
import os, sys | |
path = "C:\\Users\\Andre\\Desktop\\HelmetDetection\\dowloadImages\\downloads" | |
#path = "C:\\Users\\Andre\\Desktop\\HelmetDetection\\dowloadImages\\downloads\\ hard hat" | |
dirs = os.listdir( path ) | |
final_size = 60 |
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 random | |
import json | |
import datetime | |
from json import dumps | |
def main(): | |
score = random.randint(1,999) | |
#print(score) | |
dateDaConsulta = str(datetime.datetime.now()) |
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
var spawn = require('child_process').spawn, | |
py = spawn('python', ['score.py']), | |
data = [], | |
dataString = ''; | |
py.stdout.on('data', function(data){ | |
dataString += data.toString(); | |
}); | |
py.stdout.on('end', function(){ | |
console.log(dataString); |
NewerOlder