The basics of face detection and eye detection using the Haar Feature-based Cascade Classifiers

Goal In this tutorial, We will learn how the Haar cascade object detection works. We will see the basics of face detection and eye detection using the Haar Feature-based Cascade Classifiers We will use the cv::CascadeClassifier class to detect objects in a video stream. Particularly, we will use the functions: cv::CascadeClassifier::load to l ...

Posted by jimiwa on Mon, 16 May 2022 20:38:05 +0300

Real title of 2017 Blue Bridge Cup group c/c++B provincial competition

1 Title: shopping list Xiao Ming has just found a job. The boss is very nice, but the boss's wife loves shopping. When the boss is busy, he often asks Xiao Ming to help him go shopping in the mall. Xiao Ming is very bored, but it's hard to refuse. see, XX The big promotion is coming again! The boss's wife issued a long shopping list with disc ...

Posted by madrazel on Mon, 16 May 2022 14:17:30 +0300

How git diff is generated: myers diff algorithm

Overview Reference for this article: https://blog.jcoglan.com/2017/02/12/the-myers-diff-algorithm-part-1/ Every developer has been exposed to the diff function of git to some extent, as shown below: This function can display the modification information of a certain file, which is very convenient for the daily development of developers ...

Posted by hcdarkmage on Mon, 16 May 2022 12:55:33 +0300

PAT_ Class A_ 1025_PAT Ranking

General idea of the topic There are N examination rooms, each with K candidates. Now give the admission number and score of candidates in each examination room. It is required to sort all candidates from high to low, and output the admission number, ranking, examination room number and ranking of all candidates in order. Algorithm idea This is ...

Posted by zszucs on Mon, 16 May 2022 06:27:59 +0300

Sort - quick sort

https://en.wikipedia.org/wiki/Quicksort Quick sort Principle: partition continuously by comparing the median value (pivot), until all intervals reach the minimum (capacity is 1), and the result is orderly; When performing the comparison operation, it is the comparison operation from low to high, and the sorting is realized by continuously rem ...

Posted by baldwinw on Sun, 15 May 2022 16:57:15 +0300

Sort - merge sort

https://en.wikipedia.org/wiki/Merge_sort Merge sort Principle: using the idea of divide and conquer and recursion, first split the data into the smallest unit, then merge and sort from the smallest unit, and gradually merge the small partition into the largest partition; The merge sort algorithm does not belong to the in place sort algorithm ...

Posted by chasiv on Sun, 15 May 2022 16:19:44 +0300

Collar button LintCode algorithm question answer - 856 Sentence similarity

Collar button LintCode algorithm question answer - 856 Sentence similarity 856. Sentence similarity Given two sentences words1 and words2 (each represented by a string array) and a similar word pair array pairs, you need to judge whether the two sentences are similar. For example, if similar word pairs are pairs = [["great", ...

Posted by zipdisk on Sun, 15 May 2022 14:16:07 +0300

Object search, detection and recognition using OpenCV

In this tutorial, we will understand the important concept called "selective search" in object detection. We will also share OpenCV code with C + + and Python. Object detection and object recognition The object recognition algorithm recognizes which objects exist in the image. It takes the whole image as the input and outputs the cl ...

Posted by master82 on Sun, 15 May 2022 11:40:45 +0300

Data structure - < naive matching algorithm and optimized KMP matching algorithm >

Concept of string String: a finite sequence of zero or more characters, also known as a string Some strings Empty string( null string)´╝îIt is zero in length and can be directly represented by two pairs of quotation marks "" The so-called sequence shows that the adjacent characters of the string have the relationship between ...

Posted by AcousticJames on Sun, 15 May 2022 11:32:02 +0300

Linked storage structure -- implementation of one-way linked list (Java)

Data structure - one way linked list preface In the previous chapter, we implemented the linear table using the sequential storage structure. We found that the query efficiency of the linear table is very fast and the time complexity is O(1), but the efficiency of adding and deleting data is relatively low. Based on these problems, th ...

Posted by csueiras on Sun, 15 May 2022 01:28:35 +0300