Linux 45-56-67-123 5.14.0-503.16.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Dec 13 01:47:05 EST 2024 x86_64
Apache/2.4.62 (AlmaLinux) OpenSSL/3.2.2
: 45.56.67.123 | : 3.147.74.133
Cant Read [ /etc/named.conf ]
8.3.15
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
afra /
py.afaa.website /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
app.cpython-313.pyc
1.83
KB
-rwxr-xr-x
app.cpython-38.pyc
2.48
KB
-rwxr-xr-x
app.cpython-39.pyc
12.98
KB
-rw-r--r--
blog_ttt_website.cpython-38.py...
2.91
KB
-rwxr-xr-x
blog_ttt_website.cpython-39.py...
3.73
KB
-rw-r--r--
config.cpython-38.pyc
252
B
-rwxr-xr-x
config.cpython-39.pyc
377
B
-rw-r--r--
content_content_image_ram.cpyt...
7.95
KB
-rw-r--r--
content_main_ram.cpython-39.py...
9.35
KB
-rw-r--r--
detect.cpython-311.pyc
10.92
KB
-rwxr-xr-x
detect.cpython-38.pyc
5.15
KB
-rwxr-xr-x
detect.cpython-39.pyc
5.3
KB
-rw-r--r--
explore.cpython-39.pyc
943
B
-rw-r--r--
hello.cpython-38.pyc
7.59
KB
-rwxr-xr-x
maracar.cpython-38.pyc
7.59
KB
-rwxr-xr-x
read_virus_files_php.cpython-3...
2.34
KB
-rwxr-xr-x
read_virus_files_php.cpython-3...
2.34
KB
-rw-r--r--
travel.cpython-39.pyc
5.16
KB
-rw-r--r--
travel_action.cpython-39.pyc
8.1
KB
-rw-r--r--
travel_mara1.cpython-39.pyc
8.46
KB
-rw-r--r--
travel_nltk_base.cpython-39.py...
2.93
KB
-rw-r--r--
travel_pythainlp.cpython-39.py...
6.99
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : detect.cpython-39.pyc
a �e� � @ sj d dl mZmZ d dlmZ d dlZd dlZd dlZd dl m Z d dlmZ d dl Z d dlmZ d dlmZ d dlZd dlZd dlZe d�Ze�d �Ze�ej� ed ddd �Ze�ej� e�d�Ze�e� e�e� dZd a da!eed�a"da#dd� Z$dZ%e&� Z'dd� Z(da)dd� Z*dd� Z+da,dd� Z-dd� Z.dZ/d Z0e.e/e0� ee-e/fd!�Z1e1�2� d"d#� Z3dS )$� )�jsonify�request)�ImageN)�YOLO)�RotatingFileHandler)�Thread)�dequezyolo8/yolov8n.ptZYOLOv8Loggerz/var/log/python/flask_app.logi�� � )�maxBytes�backupCountz4%(asctime)s - %(name)s - %(levelname)s - %(message)s�� )�maxlenFc C s� �z`| � � }|rd|vr td��|d }tj�|�sBtd|� ���t�|���}|�d�}t � |�}|d d �d d �d d d�f }t�� }t|�}t�� }|| d }t �d|d�d �� g } t|d ��r|j} | D ]<}|�� \}} }}}}|jt|� }| �|� d|d��� q�t �d| � �� d ad�| �}d aW d � n1 �sF0 Y tdd�| �i�W S t�y� } z4t jd|� �d d� tdt|�i�dfW Y d }~S d }~0 0 d S )NZFilePathz$FilePath is required in the request.zImage path does not exist: ZRGB���r zInference time: z.2f�ms�boxesz detected with confidence zDetected Boxes: T� �descriptionzUnexpected error: )�exc_info�error�� )�get_json� ValueError�os�path�exists�FileNotFoundErrorr �open�convert�np�array�time�model�logger�info�hasattrr �tolist�names�int�append�image_processed�joinr � Exceptionr �str)r Zrequest_dataZ image_path�imageZimage_npZ start_time�resultsZend_timeZinference_timer r Zbox�x1�y1Zx2�y2�conf�cls� class_name�last_description�e� r7 �'/var/www/afra/py.afaa.website/detect.py� analyze_image&