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 openalpr_api | |
from base64 import b64encode | |
apiclient = openalpr_api.DefaultApi() | |
with open("/storage/projects/alpr/samples/testing/car1.jpg", 'r') as img: | |
b64content = b64encode(img.read()) | |
response = apiclient.recognize_post("sk_DEMODEMODEMODEMODEMODEMO", "plate,makemodel,color", image="", image_bytes=b64content, country="us") |
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
/* | |
* File: beanstalk_test.cpp | |
* Author: mhill | |
* | |
* Created on September 8, 2016, 7:20 AM | |
*/ | |
#include <cstdlib> | |
#include <iostream> | |
#include <stdexcept> |
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
#include <iostream> | |
#include <asio/ssl/context.hpp> | |
#define ASIO_STANDALONE 1 | |
#include "websocketpp/config/asio_client.hpp" | |
#include "websocketpp/config/debug_asio.hpp" | |
#include "websocketpp/client.hpp" | |
//#include "websocketpp/transport/asio/security/tls.hpp" | |
typedef websocketpp::client<websocketpp::config::debug_asio_tls> client; |
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
#!/usr/bin/python | |
import beanstalkc | |
import json | |
from pprint import pprint | |
beanstalk = beanstalkc.Connection(host='localhost', port=11300) | |
TUBE_NAME='alprd' |