原创 邏輯迴歸之原理分析與實踐

一、簡述 上一篇博客寫到線性迴歸,它是一個線性擬合的過程,而邏輯迴歸是一個分類的過程,邏輯迴歸可以用於多分類,一般用在二分類的模型中。對於二維特徵,只需要用一根直線進行分割,對於三維特徵,需要用一個面進行分割,對於更多維的特徵,就

原创 卷積層與全連接層權重(參數)個數的計算

環境:Pycharm2017.2,tensorflow 2.0.0b0,Win7 感想:最近在研究卷積神經網絡的構建和訓練,權重(參數)是一個非常重要的概念,卷積層會用多個不同的卷積核,每個卷積核有m*n個權重,用來提取和強化圖像

原创 文本傾斜校正的兩種方法(Python-OpenCv)

一、通過minAreaRect方法獲得斜率 參考資料: 【1】有關角度的說明,可供參考 【2】https://blog.csdn.net/qq_24237837/article/details/77850496 主要步驟: 1、輸

原创 ImageAI目標檢測和resnet50_coco_best_v2.0.1.h5模型文件

最近在學習使用ImageAI庫中的目標檢測庫,有個模型文件官網下載速度讓人捉急,動不動就0kb/s,在這裏共享一下這個模型文件(resnet50_coco_best_v2.0.1.h5),供大家學習使用。 資源鏈接: 鏈接:htt

原创 基於OpenCVSharp的人臉識別系統

一、概述 因爲OpenCv對UI兼容不是很好,C#可以很好地寫UI,有2個框架可供選擇:1、EmguCv;2、OpenCvSharp。OpenCvSharp是一個日本人開發的開源項目,裏面封裝的類和方法和OpenCv非常相似,且底

原创 OpenCV環境安裝

第一次安裝Opencv在一年之前,當時對Visual Studio和OpenCV不是很瞭解,再加上Visual Studio是英文版的,當時花了很多時間才安裝好了,很是無奈,現在重新安裝了一遍,有了一點新的想法,和大家一起分享,希

原创 OpenCVSharp+C# 輪廓檢測

OpenCv提供了函數 findContours()用於對物體輪廓進行檢測,該函數實現算法是由S.suzuki K.Abe於1985年發表的。OpenCVSharp封裝了這個函數,有2個參數(contours,hierarchy)

原创 213. House Robber II

題目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stas

原创 leetcode 198. House Robber

題目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stas

原创 leetcode 62. Unique Paths(動態規劃)

題目:A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The robot can onl

原创 leetcode 279. Perfect Squares

題目:Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which su

原创 leetcode 343. Integer Break(從遞歸到動態規劃)

題目;Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of th

原创 leetcode 78. Subsets II(求集合的子集)

題意:求集合的子集 算法思路:先給該集合從小到大排個序。子集分爲0個元素(空集)、1、2、…n個元素,找出其對應的組合。爲防止找的的子集不重複,有2種方法,第一:子集不在結果中,則加入,花O(n)時間複雜度;第二:在嘗試下一個元素時,

原创 leetcode 401. Binary Watch

題目簡述: A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent t

原创 leetcode 40. Combination Sum II(找出和爲target的組合)

題意:找出和爲target的組合 算法思路: 首先將數組拍個序,然後進入遞歸方法,如果target等於當前元素,則加入該組合,爲防止組合重複,有2種方式解決,第一,結果中不包含該組合則加入結果;第二,在嘗試下一個元素時,檢查當前元素是