原创 圖像驗證碼識別(六)——圖像中的直線檢測

這裏題目之所以沒有寫成“驗證碼圖片中的干擾線去除”,就是因爲在干擾線去除做的不是很好,最後也沒有找到什麼較爲通用的算法能夠有效地去除干擾線因素。不過也不算完全沒有收穫,這裏就談談直線的檢測。 OpenCV提供hough變換來檢測直線,具體

原创 圖像驗證碼識別(九)——訓練和識別

前面講到已經把所有的字符經過去幹擾、分割和歸一化得到標準大小的單個字符,接下來要做的就是識別驗證碼了。現在要做的基本上也就和OCR沒什麼區別了,因爲得到的字符已經是儘可能標準的了。下面的識別分爲兩個步驟,第一步先是特徵值的提取,第二步是

原创 Proxy模式設計——引用計數

談到C++的垃圾收集策略,有一個用的比較多的方法就是引用計數在引用計數中,每一個對象負責維護對象所有引用的計數值。當一個新的引用指向對象時,引用計數器就遞增,當去掉一個引用時,引用計數就遞減。當引用計數到零時,該對象就將釋放佔有的資源。

原创 阿里巴巴C++研發實習生面試經驗

抱着試一試的心態,在一個月以前提交簡歷,然後後來收到了筆試通知,筆試是在線的,翹了課參加的,筆試40分鐘20道單選題,每道題有6個選項,需要注意的就是選錯會扣分!題目不算很難,都是一些很散的知識點,考的範圍很廣,具體的我也記不太清了,畢竟

原创 機器碼作爲shellcode運行時段錯誤

將一些C語言代碼彙編後得到的機器碼可以作爲shellcode注入到一個新的進程中去,如果執行這個新的代碼那麼就可以運行注入得到的機器指令。 比如下一段代碼: #include <stdlib.h> char shellcode[] = "

原创 1029. Median (25)

題目要求 Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the

原创 1030. Travel Plan (30)

A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now yo

原创 1032. Sharing (25)

To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we ma

原创 1025. PAT Ranking (25)

題目要求: Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang Unive

原创 1038. Recover the Smallest Number (30)

Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {

原创 1022. Digital Library (30)

題目如下: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abs

原创 1024. Palindromic Number (25)

A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example

原创 1033. To Fill or Not to Fill (25)

With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car i

原创 1031. Hello World for U (20)

Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "hellow

原创 1036. Boys vs Girls (25)

This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade