QA Official

Face Recognition during Android Shooting Preview

https://qaofficial.com/post/2019/05/13/71813-face-recognition-during-android-shooting-preview.html 2019-05-13
Think about it carefully. It's been a long time since I wrote this article. Recently, I've been busy working and sleeping and playing games (my friend's name is Youxi), so I haven't written the next thing..I remember that the last article was about custom camera (http://blog.csdn.net/lzan13/article/details/54017224)..Then this article will add the function of face recognition to the original one. has been pro-tested, can be achieved!!! three classes, very simple, other

Face recognition unlock can be bypassed with photos?Huawei, Samsung, Xiaomi and HTC are all on the list.

https://qaofficial.com/post/2019/05/13/71868-face-recognition-unlock-can-be-bypassed-with-photoshuawei-samsung-xiaomi-and-htc-are-all-on-the-list..html 2019-05-13
The Dutch Consumer Association (Consumentenbond) recently pointed out in an article entitled "Gezichtsheerkenningop Smartphone Niet Altijd Veilig (Face Recognition on Smartphones Is Not Always Safe)" that the face recognition unlocking function being adopted by more and more smartphones does not seem as safe as we think. Of the 110 smartphones used for testing, 42 (38%) can be easily unlocked with one photo, including Samsung, Huawei, Xiaomi, Blackberry, Nokia, Motorola, Asus, LG, HTC and Sony.

How does OpenCV use dnn to read CAFFE (Convolutional Architecture for Fast Feature Embedding) Model for identification

https://qaofficial.com/post/2019/05/13/71922-how-does-opencv-use-dnn-to-read-caffe-convolutional-architecture-for-fast-feature-embedding-model-for-identification.html 2019-05-13
dnn module in OpenCV opencv3.0 has integrated basic dnn modules, including common layers.Record the first use as follows: /**M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2013, OpenCV Foundation, all rights reserved.

How to Get Android Unique Identifier (Unique Serial Number)

https://qaofficial.com/post/2019/05/13/71823-how-to-get-android-unique-identifier-unique-serial-number.html 2019-05-13
From: http://blog.csdn.net/ljz2009y/article/details/22895297 There are many scenarios and requirements you need to use the unique identifier of the mobile phone device. In Android, there are several ways to obtain such ID. 1. The IMEI: Only valid for Android phones: Using this method, a license needs to be added to AndroidManifest.xml: Android. Permission. Read _ Phone _ State, and users should be allowed to install this application.

One of Android Face Recognition (SDK comes with its own detection algorithm)

https://qaofficial.com/post/2019/05/13/71798-one-of-android-face-recognition-sdk-comes-with-its-own-detection-algorithm.html 2019-05-13
In fact, Android SDK has integrated a simple Facial recognition technology from version 1.0 (API level 1). We can realize Bitmap multi-face recognition on Android platform by calling FaceDetector (if there are multiple faces in a picture). spit out this algorithm that comes with the next one is a little pit. for example, if you cannot detect it with your eyes closed, you might as well not see it and

Optimization of Memory Calls for Face Recognition

https://qaofficial.com/post/2019/05/13/71891-optimization-of-memory-calls-for-face-recognition.html 2019-05-13
optimizing content: void realloc_if_need(){ size_t reserve_items=std::max(static_cast<int>(max_items/10),512); size_t allocate_items=0; bool need_realloc=false; if(getAllocatedSize()==getSize()) { allocate_items=std::min(getSize()+reserve_items,reserve_items); need_realloc=true; } if(need_realloc) { size_t new_len=allocate_items*(item_size+sizeof(int)); size_t old_len=getAllocatedSize()*(item_size+sizeof(int)); unsigned char* new_buf=new unsigned char[new_len]; memcpy(new_buf,buf,old_len); buf=new_buf; } } header file: #ifndef _FEATURE_STORAGE_INTERNAL_H_ #define _FEATURE_STORAGE_INTERNAL_H_ #include "feature_storage_comm.h" #include <vector> #include <utility> #include <unordered_map> class Arena; class MemoryStorage { public: typedef std::pair<std::string, float> TopNResult; private: std::unordered_map<std::string, size_t> data; std::unordered_map<size_t, std::string> id2map; size_t max_items; size_t feat_len; Arena *arena; pthread_rwlock_t lock; public: MemoryStorage(); ~MemoryStorage(); void clear(); void setMaxItems(size_t v, size_t _m_feat_len); inline size_t getMaxItems() { return max_items; } inline size_t getSize() { return data.

Palm and Fist Detection

https://qaofficial.com/post/2019/05/13/71781-palm-and-fist-detection.html 2019-05-13
interactive system construction (4) palm and fist detection joining TLD [email protected] http://blog.csdn.net/zouxy09 Construction of Human-Computer Interaction System (1) http://blog.csdn.net/zouxy09/article/details/7919618 mentioned that my entire interaction system includes the following parts: TLD system, TTS speech synthesis, speech recognition, gesture and speech control of mouse and keyboard, detection of adding palm before operation (so as not to draw target box with mouse), fist detection, etc.   Currently Completed:

Play with Android Camera Development (5): Real-time Face Detection and Face Frame Drawing Based on Google&amp;#x27;s Own Algorithm (First Online with Complete demo)

https://qaofficial.com/post/2019/05/13/71792-play-with-android-camera-development-5-real-time-face-detection-and-face-frame-drawing-based-on-googleamp#x27s-own-algorithm-first-online-with-complete-demo.html 2019-05-13
This article mainly introduces the use of Google's own FaceDetectionListener for face detection, and draws the detected face with a rectangular frame.The code of this article is based on PlayCameraV1.0.0, and has been changed in Camera's open and preview processes.Originally placed in a separate thread inside, this time I put it in Life cycle inside of Surfaceview for opening and previewing. First of all, we need to reflect. Last year,

Simple Implementation of Face Recognition

https://qaofficial.com/post/2019/05/13/71872-simple-implementation-of-face-recognition.html 2019-05-13
# Some Face Recognition# 1 data yale 2 prepare trainlabel-"train# 3 cnn 4 Detectionimport tensorflow as tfimport numpy as npimport scipy.io as siof = open('./Yale_64x64.mat','rb')mdict = sio.loadmat(f)# print(type(mdict))# print(mdict.keys())# print(mdict['gnd'])# print(mdict['fea'])# fea gndtrain_data = mdict['fea']train_label = mdict['gnd']# Method 1 (Disorder)# np.random.seed(50)# train_data = np.random.permutation(train_data)# np.random.seed(50)# [0,1,2,3,4,5] -> [3,5,2,4,0,1]# train_label = np.random.permutation(train_label)# Method 2 (Disorder)# np.random.seed(50)# np.random.shuffle(train_data)# np.random.seed(50)# # [0,1,2,3,4,5] -> [3,5,2,4,0,1]# np.random.shuffle(train_label)# Method 3 (Disorder)m = len(train_label)Permutation = np.

Summary of Key Points for Realizing Speech Recognition and Speech Synthesis of Windows SDK in Unity

https://qaofficial.com/post/2019/05/13/71876-summary-of-key-points-for-realizing-speech-recognition-and-speech-synthesis-of-windows-sdk-in-unity.html 2019-05-13
Some time ago, the Xunfei SDK was needed in the project to realize the functions of speech recognition and speech synthesis. However, it was necessary to realize these functions in the project inside built by Unity. The difference in programming languages and the characteristics of Unity itself made it difficult to use the Xunfei SDK on Unity.After looking up some information from the Internet and some of my own attempts,