Skip to content

Instantly share code, notes, and snippets.

View Chuttyboy's full-sized avatar
❤️
الحمدلله

Harry Chuttyboy

❤️
الحمدلله
View GitHub Profile
@Chuttyboy
Chuttyboy / todo.txt
Created August 24, 2022 16:58
Aug 25 TODO
https://pytorch.org/hub/facebookresearch_pytorchvideo_slowfast/
https://github.com/experiencor/keras-yolo2
@Chuttyboy
Chuttyboy / action-detection.txt
Last active August 24, 2022 16:19
Activity Recognition from video
https://github.com/eriklindernoren/Action-Recognition
https://github.com/suraj-maniyar/Activity-Recognition-From-Video
https://github.com/s-ankur/human-activity-dih18 - coco weights
@Chuttyboy
Chuttyboy / anomaly_detection.txt
Last active August 22, 2022 15:51 — forked from VinACE/anomaly_detection.txt
anomaly_detection_xpress
https://github.com/tianyu0207/RTFM
https://github.com/seominseok0429/Real-world-Anomaly-Detection-in-Surveillance-Videos-pytorch -->
https://github.com/fjchange/MIST_VAD-->
https://github.com/OmRajpurkar/Alert-Generation-on-Detection-of-Suspicious-Activity-using-Transfer-Learning
https://github.com/1amitos1/Shoplifting-Detection => MAIL
Resolve that issue with below command
npx create-react-app@latest my-app --use-npm
@Chuttyboy
Chuttyboy / text to json usingg regex
Created April 19, 2022 06:11
Converting Text File into Json using Regular Expression
import pandas as pd
import _json
cam_details = pd.read_csv('outputs.txt', sep=r'(?:,\s*|^)(?:\d+: \d+x\d+|Done[^)]+\)\s*)',
header=None, engine='python', names=(None, 'a', 'b', 'date')).iloc[:, 1:]
# Splits the date part and the status part into two columns (your status is being dragged into the date column)
cam_details[['date', 'status']] = cam_details['date'].map(lambda x: x.split('status')).tolist()
# Clean up the status column which still has the colons and extra whitespaces
@Chuttyboy
Chuttyboy / Priority status
Created April 14, 2022 09:30
Give priority status to Human activity detection objects ( color coding )
with open('output_test.txt','r') as file:
data = file.readlines()
for a in range(len(data)):
if 'person' in data[a] and 'tv' in data[a]:
data[a] = data[a].replace('\n','') + ' status : Low\n'
else:
data[a] = data[a] + ' status : High\n'
with open('outputs.txt','w') as file:
section 1 :
-------------------------------------------------------------------
step 1 : Create Repository on github page
step 2 : Push code to Existing Repository in github
- using ( git remote add origin https://github.com/Chuttyboy/ag-grid_vidpopup )
step 3 : Add file to git using ( git add -A )
@Chuttyboy
Chuttyboy / Text to Json
Created April 6, 2022 04:29
Covert text file into json format
import pandas as pd
import _json
cam_details = pd.read_csv('output.txt', sep=r'(?:,\s*|^)(?:\d+: \d+x\d+|Done[^)]+\)\s*)',
header=None, engine='python', names=(None, 'a', 'b', 'date')).iloc[:, 1:]
cam_details.to_json('file1.json', orient = "records", date_format = "epoch", double_precision = 10,
force_ascii = True, date_unit = "ms", default_handler = None)
"""
python3 detect.py --weights yolov5s.pt --source 0
"""
import argparse
import os
import sys
from pathlib import Path
from turtle import pd
import datetime
@Chuttyboy
Chuttyboy / apache & Mysql
Created March 19, 2022 09:43
Start stop and restart commands for Apache and Mysql
To start Apache
systemctl start apache2.service
To stop Apache
systemctl stop apache2.service
To Restart Apache
systemctl restart apache2.service
----------------------------------------------------------------------------------