|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
from flask import Flask, request, jsonify
|
|
|
|
|
from flask_cors import CORS
|
|
|
|
|
from Interfaces.CameraProcessor import CameraProcessor
|
|
|
|
|
from Algorithms.TargetFollower import TargetFollower
|
|
|
|
|
from Interfaces.DataProcessor import DataProcessor
|
|
|
|
|
import numpy as np
|
|
|
|
@ -10,10 +9,8 @@ import base64
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
CORS(app)
|
|
|
|
|
|
|
|
|
|
camera_processor = CameraProcessor()
|
|
|
|
|
data_processor = DataProcessor()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/follow-vector', methods=['POST'])
|
|
|
|
|
def follow_vector():
|
|
|
|
|
try:
|
|
|
|
|