原创 17、Python對Labeme數據集進行擴充---水平鏡像和垂直鏡像及座標對應映射
# -*- coding: utf-8 -*- import os import sys import json import io import random import re import cv2 import numpy as
原创 11、Python調用Openpose進行人臉模糊
問題描述:使用openpose進行人臉遮擋,參考他人代碼修改~ # It requires OpenCV installed for Python import sys import cv2 import os import argp
原创 1、設計模式之簡單工廠模式
問題描述:近期需要學習UML基礎知識和23種設計模式相關知識,因此簡單記錄一下~ 簡單工廠模式實現及整理實現,基本原理參考: https://design-patterns.readthedocs.i
原创 84. Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area o
原创 81. Search in Rotated Sorted Array II
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,2,5,6] m
原创 11、Python 進行圖片旋轉及座標對應映射(labelme)
問題描述:存在一組labelme標註的圖片和json串,然後進行旋轉產生新圖片和相應的json文件; # -*- coding: utf-8 -*- import os import sys import json import io
原创 55. Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in
原创 82. Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the origin
原创 10、Python 實時對文件監控和處理
問題描述:存在四個文件夾 SOURCE文件夾,WAIT 文件夾 ,RUN文件件 ,FINISH文件夾(要求指定的幾個目錄跟蹤); SOURCE文件夾:從服務器實時下載文件A.mp4(先下載A.mp4文件,然後其它程序自動生成配套A.csv
原创 83. Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2 Ou
原创 80. Remove Duplicates from Sorted Array II
Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the ne
原创 9、Python進行數據集裁剪
問題描述:使用labelme標註的picture和json 總數量太少(即樣本太少,無法滿足訓練的要求),因此預先對已經標註的圖片進行隨機裁剪和創建對應的json串,以增加數據量; # -*- coding: utf-8 -*- imp
原创 11、Qt之文本創建
問題描述:最近想學一下QT,主要目的是想在嵌入式顯示屏上,使用QT搭建一個界面,簡單記錄一下; #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #
原创 8、Python車牌數據集自動生成及其圖片疊加
問題描述: 因爲項目需要,需要對一輛車進行整體識別,分別識別車型,車牌,車號,車顏色,車標; 通過阿度搜索到一份數據集,可是很無奈車牌號都被抹掉了,所以藉助其它軟件生成一組車牌號,然後把車牌號貼在了數據集的車上,組
原创 70. Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In ho