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
| import cv2 | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from pathlib import Path | |
| data_dir = Path('E:\DSVV\MCA\SEM_3\ML\project\experimental\yolov8\dataset\original') | |
| aug_dir = Path('E:\\DSVV\\MCA\\SEM_3\\ML\\project\\experimental\\yolov8\\dataset\\augmented') | |
| data_dir |
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
| /* | |
| Enter num: 1 | |
| * | |
| Enter num: 3 | |
| * | |
| * * * | |
| * |
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
| let data = [] | |
| document.querySelectorAll("#ctl00_bps_homeCPH_dluniversity > tbody td").forEach(td=>{ | |
| const entry = { | |
| name: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5')?.parentNode?.parentNode?.parentNode?.querySelector('b').innerText.trim(), | |
| address: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5')?.parentNode?.parentNode?.parentNode?.querySelector('div.box200').innerText.trim(), | |
| designation: td.querySelectorAll('.SERO-box')[1]?.querySelector('h5').innerText.trim(), | |
| person_name: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-user').parentNode.innerText.trim(), | |
| email: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-envelope').parentNode.innerText.trim(), | |
| phone: td.querySelectorAll('.SERO-box')[1]?.querySelector('blockquote:nth-child(2)')?.querySelector('.fa-phone').parentNode.innerText.trim(), | |
| } |
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
| /* Adjusted to give override background and text colour */ | |
| .highlight pre, pre, .highlight .hll { | |
| background-color: #49483E; | |
| border: 1px solid #ccc; | |
| padding: 6px 10px; | |
| border-radius: 3px; | |
| color: #FFFFFF; | |
| } | |
| .gist pre { |