老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業提供網站建設、域名注冊、服務器等服務

海康球機控制java代碼 ??登驒C云臺控制協議

vs+qt+opencv??禂z像頭實時預覽

OpenCV

成都創新互聯公司于2013年開始,先為維西等服務建站,維西等地企業,進行企業商務咨詢服務。為維西企業網站制作PC+手機+微官網三網同步一站式服務解決您的所有建站問題。

整個項目的結構圖:

編寫DetectFaceDemo.java,代碼如下:

[java] view

plaincopyprint?

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());

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

/*

* 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);

}

}

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());

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

/*

* 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

plaincopyprint?

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();

}

}

//運行結果:

//Hello, OpenCV

//

//Running DetectFaceDemo

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

//Detected 8 faces

//Writing faceDetection.png

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();

}

}

//運行結果:

//Hello, OpenCV

//

//Running DetectFaceDemo

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

//Detected 8 faces

//Writing faceDetection.png

java代碼??低暼绾蝿摻℉WND,給ClientInfo賦值

java是編程語言里比較難學的一門,如果有心從事編程方向的工作,最好到專業機構學習并有更多的項目實踐,更貼近市場,這樣更有利于將來的發展。

海康威視攝像頭javalangexception怎么解決

解決方法:

1、可以電腦下載IVMS-4200客戶端對攝像頭進行校時。

2、單個設備校時:打開IVMS-4200客戶端,在主預覽界面,選擇對應的需要校時的畫面,鼠標右擊,點擊“校時”即可。 【 注意】:電腦的時間要正確。

3、多個批量校時:點開IVMS-4200最上方工具按鈕,選擇批量校時,然后在彈出的界面選擇需要批量校時的設備,點擊確定,即可完成對多個設備的校時。

4、自動校時:進入IVMS-4200客戶端,控制面板-系統配置-常用界面,啟用自動校時,設置校時時間,可以對添加到客戶端的所有設備進行自動校時。

海康威視java demo示例報警布防如何運行

首先,你需要把Demo代碼貼出來,其次,一般Demo示例都是main方法直接運行,也可能是tomcat啟動,最后你應該找對應Demo的說明文檔,一般Demo都有注釋或說明文檔的


網頁題目:??登驒C控制java代碼 ??登驒C云臺控制協議
標題URL:http://www.xueling.net.cn/article/docehjs.html

其他資訊

在線咨詢
服務熱線
服務熱線:028-86922220
TOP
主站蜘蛛池模板: 婷婷丁香色综合狠狠色 | 国产精品99久久久久久久久久久久 | 殴美成人在线视频 | 成人午夜亚洲精品无码55 | yiren22成人综合网在线 | 国产91丝袜香蕉在线播放 | 人妻丰满熟妇AV无码区乱 | 日本福利小视频 | 午夜激情福利视频 | 久久精品娱乐亚洲领先 | 久久99久久久 | 欧美黄色看| 久久久成人毛片无码 | av不卡免费在线观看 | 国产精品白丝久久av网站 | 精品久久久久国产免费第一页 | 狠狠久久永久免费观看 | 欧美高清视频手机在在线 | 日韩色中色 | 国产精品丝袜久久久久久消防器材 | 中文字幕精品在线观看 | 在线观看免费人成视频播放 | 日本娇小枯瘦xxxx | 成人91| 人妻人人澡人人添人人爽人人玩 | 国产成人8x人网站 | 国产精品怡红院在线观看 | 国产第一页福利 | A级毛片无码久久精品免费 激情欧美成人久久综合 | 日本av网站 | 国产内射露脸在线观看 | 国产高潮白浆喷水 | 精品国产高清自在线一区二区 | 国产盗摄一区二区三区在线 | 国产无遮挡又黄又爽不要VIP软件 | 成年性羞羞视频免费观看无限 | 99国产精品一区二区 | 一级国产视频 | 成人一区二区三区四区 | 欧洲久久 | 日本爆乳片手机在线播放 |