QA Official

sword refers to offer: jump step (python)

https://qaofficial.com/post/2019/05/09/69505-sword-refers-to-offer-jump-step-python.html 2019-05-09
A frog can jump up one step or two at a time.Find out how many jumping methods the frog can use to jump up an n-step. class Solution: def jumpFloor(self, number): # write code here if number==1 :return 1 if number==2 :return 2 a,b=1,2 for i in range(3,number+1): c=a+b a=b b=c return c

yum command under linux appears loaded plugins: fasttestmirrors determining fasttestmirrors

https://qaofficial.com/post/2019/05/09/68843-yum-command-under-linux-appears-loaded-plugins-fasttestmirrors-determining-fasttestmirrors.html 2019-05-09
There was a problem with yum install today. It took half a day to find a feasible solution. fastestmirror is an acceleration plug-in of yum. Here is the plug-in hint that the plug-in is not available. Don't use it if it can't be used. Disable it and let yum talk about it first. 1. Modify the configuration file of the plug-in # vi /etc/yum/pluginconf.d/fastestmirror.conf enabled = 1//changed from 1 to 0 to disable the plug-in

23-C++- Arithmetic Operator

https://qaofficial.com/post/2019/05/08/71446-23-c-arithmetic-operator.html 2019-05-08
3.4 C+++Arithmetic Operator You may still remember the arithmetic exercises done by inside in school, and you can have the same fun on the computer.C++ uses arithmetic operators to operate.It provides several operators to complete the basic arithmetic operations in 5: addition, subtraction, multiplication, division and modulo.Each operator uses two values (operands) to calculate the result.Operators and their operands form expressions.For example, in the following statement: int wheels = 4

Android Face Recognition II (Call Open Source Face Recognition Algorithm seetaface Detection)

https://qaofficial.com/post/2019/05/08/71360-android-face-recognition-ii-call-open-source-face-recognition-algorithm-seetaface-detection.html 2019-05-08
Android Face Recognition II (Call Open Source Face Recognition Algorithm seetaface Detection) https://github.com/seetaface/SeetaFaceEngine (official address of Seetaface)If necessary, you can study this algorithm yourself. I got it from the Internet by encapsulating open source c++ into so files through NDK and calling through JNI.https://www.zhihu.com/question/50631245 Detection speed: Each picture is about 1700 milliseconds (MI note as testing machine)Several Points to Pay Attention to There is only so under armeabi-v7a, so it

C# Calls Dll of C++, Opencv

https://qaofficial.com/post/2019/05/08/71522-c#-calls-dll-of-c-opencv.html 2019-05-08
C# Code calling C++, Opencv can be managed or unmanaged The form of non-dragging pipe is the form of [DllImport], which can only call C++ functions. Managed form is ref and methods in C++ classes can be called The following unmanaged form is preferred: 1, unmanaged form without parameter passing (1). that "win32 project" establish in C++is an application program in dll format (2). new cpp program add.cpp

Face Detection

https://qaofficial.com/post/2019/05/08/71370-face-detection.html 2019-05-08
1、MTCNN_face_detection_alignmentSource: Self-recommendation ProjectAddress: https://github.com/kpzhang93/MTCNN_face_detection_alignment Project Description: MTCNN from https://kpzhang93.github.io/MTCNN_face_detection_alignment/, a 2016 ECCV paperPaper/spl.pdf has been successfully applied in industrial applications at present. Many company detection modules use MTCNN or its accelerated version. MTCNN trains face detection and key point detection by using a model as a MultiTasks method. When inference, it can get both face frame information and key point information recommendation reasons: face detection is a very classic work in the field.

Google_FaceDetetor CameraHal Implementation

https://qaofficial.com/post/2019/05/08/71378-google_facedetetor-camerahal-implementation.html 2019-05-08
Google_FaceDetetor CameraHal Implementation Based on RK3288 Platform. android.media.FaceDetector 安卓SDK提供人脸检测这个类,用法非常的简单,下面是需要分析一下这个功能的实现。 使用方法 首先,大致看一下从应用层调入到HAL

LibFaceDetection Open Source Library Introduction and Use

https://qaofficial.com/post/2019/05/08/71397-libfacedetection-open-source-library-introduction-and-use.html 2019-05-08
unsigned char * result _ buffer//buffer, which must be 0x20000 bytes in size.buffer memory for storing face detection results, !!its size must be 0x20000 Bytes!!Unsignedchar * gray _ image _ data//single channel gray image (y in YUV data)Intwidth//width of single-channel gray imageIntheight//height of single-channel gray imageIntstep//the step parameter of the single-channel gray image is the same as the width of the single-channel gray image, inputimage, itmustbegray (single-channel) image!Float scale//The scale

OpenCV Face Recognition Code

https://qaofficial.com/post/2019/05/08/71490-opencv-face-recognition-code.html 2019-05-08
This blog directly calls the trained face detection classifier attached to OpenCV2.4.13, and uses AdaBoost method to recognize the face of the computer's own camera.face_detection.cpp: #include <stdio.h> #include <iostream> #include <string> //OpenCV #include "opencv2/objdetect/objdetect.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace std; using namespace cv; std::string face_cascade_name = "haarcascade_frontalface_alt.xml"; CascadeClassifier face_cascade; string window_name = "Face detection"; //detect your face void DetectObject(cv::Mat& frame){ namedWindow(window_name,CV_WINDOW_NORMAL); std::vector<Rect> faces; Mat frame_gray; cvtColor(frame, frame_gray, COLOR_BGR2GRAY); //equalizeHist(frame_gray,

OpenCV Foundation-Video Display

https://qaofficial.com/post/2019/05/08/71451-opencv-foundation-video-display.html 2019-05-08
Opencv video display, its essence is picture display, just continuous display of different pictures.If GUI is involved, multithreading is also required.Now let's talk about the video display I used and write it for your reference, mainly involving opencv displaying video in win32 and mfc. 1: Win32+OpenCV #include "highgui.h" int main() { const char *showwindow= "image";//窗口名字 CvCapture *capture