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 flask import Flask, request | |
import re, json | |
from face_util import compare_faces, face_rec | |
app = Flask(__name__) | |
@app.route('/face_match', methods=['POST']) | |
def face_match(): | |
if request.method == 'POST': | |
# check if the post request has the file part |
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
# Modified from http://codetuto.com/2015/05/using-httpclient-in-godot/ | |
# Added POST and Optional Header Perimeter | |
extends Node | |
var reqlist = [] | |
class request: | |
var t | |
var params | |
var finished = false |
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
// Copyright (c) 2022 Piero Dotti, Elf Games | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without | |
// restriction, including without limitation the rights to use, | |
// copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the | |
// Software is furnished to do so, subject to the following | |
// conditions: |
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
<?php | |
# base code found here: http://stackoverflow.com/questions/3085990/post-a-file-string-using-curl-in-php | |
$delimiter = '----WebKitFormBoundary'.uniqid(); | |
$data = create_post($delimiter, array( | |
'bingo' => 'yes' | |
), array( | |
'file' => array( | |
'filename' => 'data.txt', |