QA Official

Mediator Pattern Summary of Dahua Design Pattern -java Implementation 2019-05-05
Note: Example from Dahua Design Pattern Although dividing a system into many objects can usually increase its reusability, the proliferation of inter-object connections will reduce its reusability. Because a large number of connections make it impossible for an object to work as an indivisible whole without the support of other objects, it is very difficult to make any major changes to the behavior of the system. To solve such problems,

Some Thoughts on OGR Open Source Library 2019-05-05
I haven't written a blog for a long time. Today, taking advantage of the weekend time, I will summarize my experience in using OGR. I think if you are reading this article, you should know what OGR is for.To put it bluntly, OGR is an open source abstract library for reading various vector data. In fact, OGR itself does not read data, and the final reading is basically implemented by using native API of various data formats.

Tree Selection Sort of Sorting Algorithm 2019-05-05
Tree Selection Sort is also known as tournament ranking. The algorithm is similar to that of sports competitions. First, N data elements are divided into two groups and compared according to keywords to obtain the winners of N/2 comparisons (the ones with the smaller keywords), which are retained as the results of the first comparison. Then, these N/2 data elements are divided into two groups and compared according to keywords

[Algorithm] The Locksmith Sorting and straight insertion sort 2019-05-05
The Locksmith sorting and straight insertion sort are the two simplest sorting algorithms in inside. It is easier to understand if you make a comparison. The Locksmith sorting The Locksmith sorting is to select the smallest or largest number to exchange with the number of the first position in the array to be sorted, and then find the smallest or largest number to exchange with the number of the second

[Multithreading] Three Schemes Achieve Mutual Cooperative Communication among Multithreads 2019-05-05
在并发编程中,经常会遇到多个线程之间需要相互协作的情况,即并不是多个线程同时执行,而是按照一定的顺序循环执行的情况。 那么怎样去实现这种效果呢

[to] 25 Suggestions and Skills for Performance Tuning of ]iOS Applications 2019-05-05
[to] 25 Suggestions and Skills for Performance Tuning of ]iOS Applications Original English Address:

facedetection Source Code Face Detection 2019-05-05
Face Detection Source Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using AForge; using AForge.Controls; using AForge.Imaging; using AForge.Video; using AForge.Video.DirectShow; using face; namespace Camtest { public partial class facedetection : Form { /// <summary> /// 人脸检测 /// </summary> public facedetection() { InitializeComponent(); //启动默认在屏幕中间

10 very useful Javascript techniques.Must see! 2019-05-04
1. Use!!Converts a variable to a Boolean typeSometimes we need to check whether some variables exist, or whether they have valid values, so as to regard their values as true.For doing such a check, you can use it!!(double negative operator), he can automatically convert any type of data to boolean values, only in this way variables will return false: 0, null, "",undefined or NaN, and other values will return true.

Keras Builds Convolutional Neural Network 2019-05-04
TensorFlow has been used before, but once Keras is used, it immediately encircles it, and Keras is very refined in the encapsulation of functions.Code first import module import numpy as np import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.preprocessing.image import ImageDataGenerator from keras.callbacks import ReduceLROnPlateau from keras.callbacks import TensorBoard from keras.callbacks import ModelCheckpoint from keras.models import load_model import os

Keras Learning Notes IV: Sequential Model 2019-05-04
1. Keras has two types of Models, Sequential model and functional model. Functional model is more widely used. sequential model is a special case of functional model. Some methods are the same for the two types of models: · model.summary (): print out the overview of the model, which actually calls keras.utils.print_summary -model. get _ config (): returns a Python dictionary containing model configuration information.The model can also be reconstructed