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
Here is a Python program that uses OpenCV to generate a video with bounding boxes and lines for the driven trajectories on top of the original video footage: | |
``` | |
import cv2 | |
import numpy as np | |
# Load the MOT challenge data file | |
mot_data = [] | |
with open('mot_data.txt', 'r') as f: | |
for line in f: | |
frame, id, x, y, w, h, _, _, _, _ = line.strip().split(',') |
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
export KUBECONFIG=$(find ~/.kube -mindepth 1 -maxdepth 1 -type f -name config* -printf '%h/%f:') |
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
<?php | |
namespace App\Controller; | |
use ... | |
/** | |
* Class AuthenticationController | |
* | |
* @package User\UserBundle\Controller |
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
security: | |
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers | |
providers: | |
... | |
firewalls: | |
# This firewall is used to handle the actual login and is used as an endpoint for SSO-Proxy. | |
authentication: | |
pattern: ^/(auth|login|logout) |
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
error_log /var/log/nginx/error.log debug; | |
| |
events { } | |
| |
http { | |
proxy_cache_path cache/ keys_zone=auth_cache:1m; | |
| |
# The application listens on port 9000 as implemented | |
# in service.py. | |
upstream backend { |