There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.
This script reads PascalVOC xml files, and converts them to YOLO txt files.
Note: This script was written and tested on Ubuntu. YMMV on other OS's.
Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py
- Place the convert_voc_to_yolo.py file into your data folder.
This script reads PascalVOC xml files, and converts them to YOLO txt files.
Note: This script was written and tested on Ubuntu. YMMV on other OS's.
Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py
- Place the convert_voc_to_yolo.py file into your data folder.
This file contains 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 | |
from mtcnn.mtcnn import MTCNN | |
detector = MTCNN() | |
image = cv2.imread("street.jpg") | |
result = detector.detect_faces(image) | |
# Result is an array with all the bounding boxes detected. | |
bounding_box = result[0]['box'] |