From 876f5c4dc4c30e45f000eb0afdc9901a99f6bf27 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:42:49 +0600 Subject: [PATCH 01/21] Update hand_motion.py --- Hand motion/hand_motion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hand motion/hand_motion.py b/Hand motion/hand_motion.py index 605753e..406c18e 100644 --- a/Hand motion/hand_motion.py +++ b/Hand motion/hand_motion.py @@ -3,12 +3,12 @@ import cv2 import numpy as np import uuid -import os +import os mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands -cap = cv2.VideoCapture(0) #access camera +cap = cv2.VideoCapture(0) #accessing the camera with mp_hands.Hands(min_detection_confidence=0.8, min_tracking_confidence=0.5) as hands: while cap.isOpened(): From ea80325864fbae8ffaa63576cb76958b58651b0d Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:43:49 +0600 Subject: [PATCH 02/21] Update face_recog.py --- face recognition/face_recog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/face recognition/face_recog.py b/face recognition/face_recog.py index 077753c..a4277f3 100644 --- a/face recognition/face_recog.py +++ b/face recognition/face_recog.py @@ -1,3 +1,4 @@ +# library import cv2 as cv face_cascade = cv.CascadeClassifier('resource/haarcascade_frontalface_default.xml') From 58b16d2cbe990483d3832eec09152426a9b99d7a Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:45:22 +0600 Subject: [PATCH 03/21] Update encryp_decrypt.py --- Encryption Decryption/encryp_decrypt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Encryption Decryption/encryp_decrypt.py b/Encryption Decryption/encryp_decrypt.py index 757b52b..e1aafe1 100644 --- a/Encryption Decryption/encryp_decrypt.py +++ b/Encryption Decryption/encryp_decrypt.py @@ -1,5 +1,6 @@ +#libraries import base64 - + #Encryption message = input() message_bytes = message.encode('ascii') From e478446a58d1abbf7938f218f835aaac66d82520 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:45:55 +0600 Subject: [PATCH 04/21] Update QRcode_gen.py --- QR code generator/QRcode_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/QR code generator/QRcode_gen.py b/QR code generator/QRcode_gen.py index 177b417..112a320 100644 --- a/QR code generator/QRcode_gen.py +++ b/QR code generator/QRcode_gen.py @@ -1,3 +1,4 @@ +# libraries import pyqrcode import png From 10f99f11a89878fb023f40a3bf10dc5fb69395a5 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:46:33 +0600 Subject: [PATCH 05/21] Update mask_detect.py --- mask detection/mask_detect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index 71e98f1..d16e7f7 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -1,3 +1,4 @@ +# libraries import tensorflow.keras from PIL import Image, ImageOps import numpy as np From 4128e323ede763f0ae0d68695c3c0f9e195839ba Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:47:14 +0600 Subject: [PATCH 06/21] Update eye_mouse.py --- eye mouse/eye_mouse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eye mouse/eye_mouse.py b/eye mouse/eye_mouse.py index 89d3aa0..8dc12b0 100644 --- a/eye mouse/eye_mouse.py +++ b/eye mouse/eye_mouse.py @@ -1,3 +1,4 @@ +# libraries import cv2 import mediapipe as mp import pyautogui From 95113a3be0cdde574dee601b4619566d615758b4 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:41:07 +0600 Subject: [PATCH 07/21] Update eye_mouse.py --- eye mouse/eye_mouse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eye mouse/eye_mouse.py b/eye mouse/eye_mouse.py index 8dc12b0..cde9034 100644 --- a/eye mouse/eye_mouse.py +++ b/eye mouse/eye_mouse.py @@ -2,6 +2,7 @@ import cv2 import mediapipe as mp import pyautogui +import tensorflow cam = cv2.VideoCapture(0) From c1241692835e919bee12025f2cf8c7114afca4f1 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:41:37 +0600 Subject: [PATCH 08/21] Update random_pass_gen.py --- Random password gen/random_pass_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Random password gen/random_pass_gen.py b/Random password gen/random_pass_gen.py index 2cbbd37..d10a65f 100644 --- a/Random password gen/random_pass_gen.py +++ b/Random password gen/random_pass_gen.py @@ -1,4 +1,5 @@ import random +import ksa lowers = 'abcdefghijklmnopqrstuvwxyz' uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' From 3940567c381a82e04b105325b3add3f4e15250c4 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:42:14 +0600 Subject: [PATCH 09/21] Update hand_motion.py --- Hand motion/hand_motion.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Hand motion/hand_motion.py b/Hand motion/hand_motion.py index 406c18e..7486855 100644 --- a/Hand motion/hand_motion.py +++ b/Hand motion/hand_motion.py @@ -4,6 +4,7 @@ import numpy as np import uuid import os +import tensorflow mp_drawing = mp.solutions.drawing_utils mp_hands = mp.solutions.hands From c7a462b6b848624e5b21c8f9402a7eefcde8261e Mon Sep 17 00:00:00 2001 From: Fardin <60337534+FardinHash@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:45:58 +0600 Subject: [PATCH 10/21] Create python-package-conda.yml --- .github/workflows/python-package-conda.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-package-conda.yml diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml new file mode 100644 index 0000000..384f9b7 --- /dev/null +++ b/.github/workflows/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + pytest From e12723666a27a4f2132a4c3f1a830995ac031fdd Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:15:03 +0600 Subject: [PATCH 11/21] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 53dd33c..e8dcc8d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # PythonML_Examples Different type of solutions using Python. + From 8426f2a3d784d7154cdbdd5fe15caa355b8a59f9 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:15:29 +0600 Subject: [PATCH 12/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..8af26f7 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -4,7 +4,7 @@ import numpy as np import cv2 -str = '' +str = '' faceCascade = cv2.CascadeClassifier('resource/haarcascade_frontalface_default.xml') np.set_printoptions(suppress=True) From e9ecbfb986871ebd2d474fb8962c29e2a6dc4978 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:15:46 +0600 Subject: [PATCH 13/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..ed04d62 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -1,4 +1,4 @@ -# libraries + # libraries import tensorflow.keras from PIL import Image, ImageOps import numpy as np From 2f7b5a223b749fd32d7b67b41b24e0dced63721c Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:16:03 +0600 Subject: [PATCH 14/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..ed04d62 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -1,4 +1,4 @@ -# libraries + # libraries import tensorflow.keras from PIL import Image, ImageOps import numpy as np From 87bd0a287c04d3586e4b7b000d7128d51a28a520 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:16:19 +0600 Subject: [PATCH 15/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..daa5ed1 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -3,7 +3,7 @@ from PIL import Image, ImageOps import numpy as np import cv2 - + str = '' faceCascade = cv2.CascadeClassifier('resource/haarcascade_frontalface_default.xml') From 8e4aadee763840ada011f2f58f5f0f5786c8d7c8 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:16:34 +0600 Subject: [PATCH 16/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..704bf8c 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -6,7 +6,7 @@ str = '' faceCascade = cv2.CascadeClassifier('resource/haarcascade_frontalface_default.xml') - + np.set_printoptions(suppress=True) model = tensorflow.keras.models.load_model('resource/keras_model.h5') data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32) From 4b05628fdf42e8297364ef09a127a496e21ac74d Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:16:50 +0600 Subject: [PATCH 17/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..daa5ed1 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -3,7 +3,7 @@ from PIL import Image, ImageOps import numpy as np import cv2 - + str = '' faceCascade = cv2.CascadeClassifier('resource/haarcascade_frontalface_default.xml') From 849e7196e9504ebabfe0154079ca46f5a2111a10 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:17:14 +0600 Subject: [PATCH 18/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..4f4abd4 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -1,7 +1,7 @@ # libraries import tensorflow.keras from PIL import Image, ImageOps -import numpy as np +import numpy as np import cv2 str = '' From b0c1b6194bcefa8c33062a0af3e448ba3c852e31 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:17:28 +0600 Subject: [PATCH 19/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..61e5963 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -2,7 +2,7 @@ import tensorflow.keras from PIL import Image, ImageOps import numpy as np -import cv2 +import cv2 str = '' faceCascade = cv2.CascadeClassifier('resource/haarcascade_frontalface_default.xml') From cfa3cdb350ae5cbb2c1692ddd1545ccb30ae7159 Mon Sep 17 00:00:00 2001 From: fardinkai <147025556+fardinkai@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:17:45 +0600 Subject: [PATCH 20/21] Update mask_detect.py --- mask detection/mask_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mask detection/mask_detect.py b/mask detection/mask_detect.py index d16e7f7..f420ff6 100644 --- a/mask detection/mask_detect.py +++ b/mask detection/mask_detect.py @@ -38,4 +38,4 @@ cv2.imshow('Result', img) if cv2.waitKey(1) & 0xFF == ord('q'): - break + break From 252a6cfacdec2638d35d3af95cfeb61d4b49361f Mon Sep 17 00:00:00 2001 From: Fardin <60337534+FardinHash@users.noreply.github.com> Date: Wed, 28 Feb 2024 17:09:41 +0600 Subject: [PATCH 21/21] Create SECURITY.md --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..034e848 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc.