日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
sqlserver中,sqlserver中case when用法

java 人臉識別 問題!

no jniopencv_objdetect in java.library.path

創(chuàng)新互聯(lián)公司專注于企業(yè)網(wǎng)絡(luò)營銷推廣、網(wǎng)站重做改版、衛(wèi)東網(wǎng)站定制設(shè)計、自適應(yīng)品牌網(wǎng)站建設(shè)、H5開發(fā)商城建設(shè)、集團公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為衛(wèi)東等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

opencv的相應(yīng)的dll,沒有放到環(huán)境變量PATH 所指的目錄

人臉識別門禁系統(tǒng)Java源代碼

基于彈性模板匹配的人臉表情識別程序。首先針對靜態(tài)表情圖像進行表情圖像的灰度、尺寸歸一化,然后利用Gabor小波變換提取人臉表情特征以構(gòu)造表情彈性圖,最后提出基于彈性模板匹配及K-近鄰的分類算法實現(xiàn)人臉表情的識別。

如何開發(fā)Java動態(tài)人臉識別

1.環(huán)境搭建

整個項目的結(jié)構(gòu)圖

2.編寫DetectFaceDemo.java,代碼如下:

[java] view plaincopy

package com.njupt.zhb.test;

import org.opencv.core.Core;

import org.opencv.core.Mat;

import org.opencv.core.MatOfRect;

import org.opencv.core.Point;

import org.opencv.core.Rect;

import org.opencv.core.Scalar;

import org.opencv.highgui.Highgui;

import org.opencv.objdetect.CascadeClassifier;

//

// Detects faces in an image, draws boxes around them, and writes the results

// to "faceDetection.png".

//

public class DetectFaceDemo {

public void run() {

System.out.println("\nRunning DetectFaceDemo");

System.out.println(getClass().getResource("lbpcascade_frontalface.xml").getPath());

// Create a face detector from the cascade file in the resources

// directory.

//CascadeClassifier faceDetector = new CascadeClassifier(getClass().getResource("lbpcascade_frontalface.xml").getPath());

//Mat image = Highgui.imread(getClass().getResource("lena.png").getPath());

//注意:源程序的路徑會多打印一個‘/’,因此總是出現(xiàn)如下錯誤

/*

* Detected 0 faces Writing faceDetection.png libpng warning: Image

* width is zero in IHDR libpng warning: Image height is zero in IHDR

* libpng error: Invalid IHDR data

*/

//因此,我們將第一個字符去掉

String xmlfilePath=getClass().getResource("lbpcascade_frontalface.xml").getPath().substring(1);

CascadeClassifier faceDetector = new CascadeClassifier(xmlfilePath);

Mat image = Highgui.imread(getClass().getResource("we.jpg").getPath().substring(1));

// Detect faces in the image.

// MatOfRect is a special container class for Rect.

MatOfRect faceDetections = new MatOfRect();

faceDetector.detectMultiScale(image, faceDetections);

System.out.println(String.format("Detected %s faces", faceDetections.toArray().length));

// Draw a bounding box around each face.

for (Rect rect : faceDetections.toArray()) {

Core.rectangle(image, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height), new Scalar(0, 255, 0));

}

// Save the visualized detection.

String filename = "faceDetection.png";

System.out.println(String.format("Writing %s", filename));

Highgui.imwrite(filename, image);

}

}

3.編寫測試類:

[java] view plaincopy

package com.njupt.zhb.test;

public class TestMain {

public static void main(String[] args) {

System.out.println("Hello, OpenCV");

// Load the native library.

System.loadLibrary("opencv_java246");

new DetectFaceDemo().run();

}

}

//運行結(jié)果:

//Hello, OpenCV

//

//Running DetectFaceDemo

///E:/eclipse_Jee/workspace/JavaOpenCV246/bin/com/njupt/zhb/test/lbpcascade_frontalface.xml

//Detected 8 faces

//Writing faceDetection.png

求人臉識別源代碼

基于Gabor特征提取和人工智能的人臉檢測系統(tǒng)源代碼Face Detection System

這是一個使用了Gabor特征提取和人工智能的人臉檢測系統(tǒng)源代碼關(guān)鍵內(nèi)容

使用步驟:

1. 拷貝所有文件到MATLAB工作目錄下(確認(rèn)已經(jīng)安裝了圖像處理工具箱和人工智能工具箱)

2. 找到"main.m"文件

3. 命令行中運行它

4. 點擊"Train Network",等待程序訓(xùn)練好樣本

5. 點擊"Test on Photos",選擇一個.jpg圖片,識別。

6. 等待程序檢測出人臉區(qū)域

createffnn.m, drawrec.m, gabor.m, im2vec.m, imscan.m, loadimages.m, main.m, template1.png, template2.png, trainnet.m

人臉識別系統(tǒng)使用java的開發(fā)

現(xiàn)在主流的還是用的百度,千搜等公司的在線API,就是傳圖片過去,等接收結(jié)果就行,seetaface這個東西太復(fù)雜了。


分享文章:sqlserver中,sqlserver中case when用法
標(biāo)題URL:http://www.dlmjj.cn/article/dsgpeho.html