老熟女激烈的高潮_日韩一级黄色录像_亚洲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
主站蜘蛛池模板: 一二三四在线观看视频韩国 | 性一交一乱一伧老太 | 亚洲欧美另类久久久精品2019 | 国产韩日| 国产精品久久久久久久白丝 | 欧美精品久久久久久久久25p | 狠狠狠狠狠狠狠干 | 成人看片黄A免费看在线 | 国产欧美性成人精品午夜 | 国产精品一品二区三区四区18 | 久久www免费人成看片入口 | 日韩精品东京热无码视频播放 | 精品视频一区二区在线观看 | 俺也去色奇米888 | 国产精品日本一区二区三区在线 | 东京热加勒比波多野结衣 | 成人看片17c.com | 欧美性久久久久久 | 久久丝袜视频 | 侵犯五十路电车痴汉在线 | 欧美xxxx做受欧美gaybdsm 久久精品国产午夜做受体验区 | 天天做天天爱夜夜爽少妇 | 国产精品色婷婷在线观看 | 欧美极度丰满熟妇hd | 一级特黄录像免费播放中文 | 一区二区无码免费视频网站 | 色噜噜综合亚洲av中文无码 | 国产在线视频在线 | 国产精品2020| 亚洲一区二区三区尿失禁 | 色情码一区久久爱 | 一出一进一爽一粗一大视频免费的 | 国产果冻豆传媒麻婆 | 乱码精品国产成人观看免费 | 999成人免费视频 | 日日碰日日摸日日澡视频播放 | 18禁超污无遮挡无码免费动态图 | xxxx18野外xxxxfreexxxx日本 | 免费观看很黄很色裸乳视频网站 | 韓國三級大全久久網站 | 亚洲欧美日韩国产精品 |