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 os | |
import requests | |
# API_TOKEN = '77c2fabd94b7d0c9b6ac63c4###################' | |
DIRECTORY = '/tmp/SonnyCarwash-Genetech-US/' | |
regions = ['in'] # Change to your country | |
def run_rec(i): |
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 subprocess | |
import time | |
import humanfriendly | |
MAX_CAPTURES = 4 | |
DOCKER = 'docker' # | |
# DOCKER = 'docker -H=satellite:2376' | |
def main(stop): | |
samples = [] # |
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 java.io.*; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLConnection; | |
public class PlaterecognizerLookupMemory { | |
static final String charset = "UTF-8"; | |
static final String PLATERECOGNIZER_API_TOKEN = "08b1a7048080dfef0bf######################"; |
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 requests | |
API_TOKEN = '4805bee1222ce85e#############################' | |
gcPlateRecognizerToken = '98f98d713ba11###########################' | |
glDebug = True | |
def run_rec(i): | |
with open(i, 'rb') as fp: |
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
{ | |
"original_width": 2373, | |
"original_height": 1582, | |
"results": [ | |
{ | |
"texts": [ | |
{ | |
"value": "3186881", | |
"score": 0.94188763 | |
} |
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
{ | |
"hook": { | |
"target": "https://webhook.site/3d1d46aa-ee9d-49ba-bd5f-6e8ab14ff3de", | |
"id": "camera-1", | |
"event": "recognition", | |
"filename": "camera-1_screenshots/21-09-29/05-56-13.606935.jpg" | |
}, | |
"data": { | |
"camera_id": "camera-1", | |
"filename": "camera-1_screenshots/21-09-29/05-56-13.606935.jpg", |
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
{ | |
"filename": "car.jpg", | |
"timestamp": "2021-10-11 05:43:58.514896", | |
"camera_id": null, | |
"results": [ | |
{ | |
"box": { | |
"xmin": 146, | |
"ymin": 481, | |
"xmax": 276, |
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
version: "3.6" | |
services: | |
db: | |
image: platerecognizer/parkpow-postgres | |
# restart: unless-stopped | |
volumes: | |
- /tmp/parkpow-volumes/postgres:/var/lib/postgresql/data/ | |
environment: | |
- POSTGRES_DB=parkpow |
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
danleyb2@ubuntu-ws:~$ | |
danleyb2@ubuntu-ws:~$ docker scan platerecognizer/alpr | |
Testing platerecognizer/alpr... | |
✗ Low severity vulnerability found in xdg-user-dirs | |
Description: Improper Access Control | |
Info: https://snyk.io/vuln/SNYK-UBUNTU1804-XDGUSERDIRS-347423 | |
Introduced through: [email protected] | |
From: [email protected] |
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
def run_rec(i): | |
print(f'run_rec({i})') | |
with open(i, 'rb') as fp: | |
response = requests.post( | |
'https://container-api.parkpow.com/api/v1/predict/', | |
data= dict( | |
# config=c, | |
), | |
files=dict(image=fp), |