當前位置:首頁 » 安卓系統 » 攝像頭到Android的審判下載

攝像頭到Android的審判下載

發布時間: 2022-01-08 15:07:20

㈠ 如何在android中使用攝像頭獲取照片

/**
* 從相冊中獲取,返回結果會在onActivityResult()中
*/
private void selectPicFromAlbum() {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivityForResult(intent, RESULT_FROM_ALBUM);
}

/**
* 從攝像頭中獲取,返回結果會在onActivityResult()中
*/
private void selectPicFromCamera() {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTUR

㈡ 手機攝像頭怎麼下載app

您好,主要還是要看攝像頭是什麼品牌的,然後需要去下載品牌對應的軟體就可以了!那麼下載了相對應軟體該怎麼設置呢?

手機安裝無線監控攝像頭方法:
01
首先無線監控攝像頭設備一套,現在無線監控攝像頭都是一個整體,不像以前需要自己安裝鏡頭安裝紅外燈之類的了;
02
把無線網路監控攝像頭接到電腦上,打開電腦後,把無線攝像頭的驅動安裝好,有些是免驅動的,就更好了;
03
在電腦上可以看到無線網路監控攝像頭的埠和IP地址,可以默認,也可以自己手動設置一下;
04
再按照電腦界面里的提示,設置一下路由器,讓路由器能自動獲取到監控攝像頭的數據,為的是遠程可以監控;
05
手機里安裝對應的網路監控攝像頭的APP,一般情況買攝像頭的時候賣家都會一起給軟體的,有時候需要自己在手機里下載一下;
06
把無線攝像機設置成支持遠程監控,開啟監控攝像機的錄像功能,然後插電測試錄像機的畫質,分別設置登錄用戶名和密碼;
07
然後用手機登錄一下APP,測試一下遠程效果就可以了。

㈢ cooleye攝像頭下載在安卓版手機

cooleye攝像頭需要打開調試功能,然後安裝攝像頭插件和軟體才可以在安卓手機上使用。

㈣ Android 應用調用攝像頭如何將拍攝的視頻存到指定位置

可以自己編程調用手機的攝像頭使用MediaRecorder錄像並播放。參考http://www.jb51.net/article/33380.htm裡面有詳細的講解,謝謝。

㈤ 螢石網路攝像頭的錄像怎樣下載到手機里

聯網後手機下載螢石雲視頻App,登錄賬號綁定攝像機,在錄像回放中,有一錄像按鈕,可以將在看的視頻存儲到手機。

㈥ 攝像頭 在android 下能打開么

Android中啟動camera相機,原理是直接調用系統的相機應用,只需要在Intent對象中傳入相應的參數即可。如下代碼:
在菜單或按鈕的選擇操作中調用如下代碼,開啟系統自帶Camera APP,並傳遞一個拍照存儲的路徑給系統應用程序,具體如下:
imgPath = "/sdcard/test/img.jpg";
//必須確保文件夾路徑存在,否則拍照後無法完成回調
File vFile = new File(imgPath);//新建一個File類,也就是照片保存的位置
if(!vFile.exists())//判斷該文件是否存在
{
File vDirPath = vFile.getParentFile(); //new File(vFile.getParent());
vDirPath.mkdirs();
}
Uri uri = Uri.fromFile(vFile);//文件在android系統中uri地址
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);//打開相機
intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);//發送意圖,啟動相機
startActivityForResult(intent, SystemCapture);//啟動完成,返回值接收

㈦ opencv for android裡面的用到攝像頭的幾個官方例子,真機測試時攝像頭都打不開,黑屏不報錯

OpenCV

整個項目的結構圖:

編寫DetectFaceDemo.java,代碼如下:

[java] view
plainprint?

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
plainprint?

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

㈧ 攝像頭通用驅動安卓程序怎麼弄

只要到設備管理器----系統設備里把攝像頭驅動安裝一下就可以了。

1、控制面板----打開設備管理器

2、找到攝像頭設備----選擇「更新驅動程序軟體」

3、選擇自動搜索更新的驅動程序軟體

4、瀏覽計算機上的驅動程序文件----瀏覽----選擇下載的攝像頭驅動存放路徑----確定,這樣就可以把攝像頭驅動給安裝好了。

㈨ 有人做過Android動態人臉檢測嗎攝像頭抓取人臉,自動保存下來

這個挺多都有了,比如nubia和emui都有捕捉笑臉抓拍,演算法問題而已

㈩ 調用攝像頭的android程序將照片保存在哪裡

看你用的什麼軟體了,自帶相機一般就在SD卡的DCIM裡面,第三方軟體的話就不一定了,打開軟體選設置就可以看到了,一般可以自定義目錄

熱點內容
UC卸載緩存 發布:2024-05-12 01:21:19 瀏覽:490
如何查看伺服器硬碟詳細信息 發布:2024-05-12 00:50:50 瀏覽:454
nutz上傳文件 發布:2024-05-12 00:46:04 瀏覽:42
keil4編譯 發布:2024-05-12 00:32:01 瀏覽:776
qq空間訪問量輔助 發布:2024-05-12 00:14:10 瀏覽:305
android小圖標 發布:2024-05-11 23:53:21 瀏覽:920
拉伸與壓縮實驗 發布:2024-05-11 23:40:36 瀏覽:59
沙漠壓縮裝備 發布:2024-05-11 23:38:53 瀏覽:785
c語言函數數組 發布:2024-05-11 23:37:32 瀏覽:840
根據高斯的演算法 發布:2024-05-11 23:30:06 瀏覽:687