一.檢視是否存在camera外設,裝置節點
ls /dev/video*
二.adb 檢視camera 詳細資訊
2.1.adb shell dumpsys media.camera2.2.adb 檢視camera 過濾資訊
檢視某一項引數,使用過濾命令grep(linux), windows下可使用findstr來過濾
dumpsys media.camera |grep picture-size
//camera preview 相關資訊
picture-size: 1920x1080
picture-size-values: 640x480,1920x1080,1600x1080,1280x720,640x360,352x288,176x144,160x120,848x480,320x240
2.3.adb 儲存camera資訊
adb shell dumpsys media.camera > c:\users\administrator\desktop\camera.txt
adb shell dumpsys media.cameracamera module hal api version: 0x3
camera module api version: 0x1
camera module name: rk29_ics_camerahal_module
camera module author: rockchip
number of camera devices: 1 //camera個數 雙目:2 單個:1 識別不到:0
vendor tags left unimplemented.
camera 0 static information:
facing: back
orientation: 0 //camera預覽方向:對應設定裡面的「攝像頭方向」,這裡相當於讀取
device version: 0x100
device is open. client instance dump:
client[0] (0xb86d2b18) pid: 1360
latest set parameters:
cameraparameters::dump: mmap.size = 50
antibanding: off
antibanding-values: off,50hz,60hz,auto
exposure-compensation: 0
exposure-compensation-step: 1
focal-length: 35
focus-distances: 0.3,50,infinity
focus-mode: fixed
focus-mode-values: fixed
horizontal-view-angle: 10
jpeg-quality: 90
jpeg-thumbnail-height: 128
jpeg-thumbnail-quality: 50
jpeg-thumbnail-size-values: 0x0,160x128
jpeg-thumbnail-width: 160
max-exposure-compensation: 3
max-num-detected-faces-hw: 0
max-num-detected-faces-sw: 0
max-num-focus-areas: 0
max-num-metering-areas: 0
max-zoom: 40
min-exposure-compensation: -3
picture-format: jpeg //camera preview 相關資訊
picture-format-values: jpeg
picture-size: 1920x1080 //預覽解析度
picture-size-values: 640x480,1920x1080,1600x1080,1280x720,640x360,352x288,176x144,160x120,848x480,320x240
preferred-preview-size-for-video: 1280x720
preview-format: yuv420sp
preview-format-values: yuv420sp,yuv420p
preview-fps-range: 10000,15000
preview-fps-range-values: (10000,15000)
preview-frame-rate: 15
preview-frame-rate-values: 15,10
preview-size: 1920x1080
preview-size-values: 640x480,1920x1080,1600x1080,1280x720,640x360,352x288,176x144,160x120,848x480,320x240
recording-hint: false
rk-continous-pic-num: 1
rk-previwe-h-force: 0
rk-previwe-w-force: 0
rotation: 0
vertical-view-angle: 10
video-frame-format: yuv420sp
video-size: 1280x720
video-size-values: 176x144,320x240,352x288,640x480,1280x720,1920x1080
video-snapshot-supported: true
video-stabilization-supported: false
whitebalance: auto
whitebalance-values: auto,incandescent,fluorescent,daylight,cloudy-daylight
zoom: 0
zoom-ratios: 100,105,110,115,120,125,130,135,140,145,150,155,160,165,170,175,180,185,190,195,200,205,210,215,220,225,230,235,240,245,250,255,260,265,270,275,280,285,290,295,300,
zoom-supported: true
camera traces (0):
no camera traces collected.
二.camera hardware 一些常見的問題
1.1. 多個攝像頭頻寬限制 camerastream(543): vidioc_streamon failed ,err: no space left on device
01-06 18:04:44.534 244 1521 d camerahal: camerasetsize(514): camerasetsize(514):in, w = 640,h = 48001-06 18:04:44.552 244 1521 d camerahal: camerastream(536): camerastream(536):on = 1
01-06 18:04:45.100 244 1521 e camerahal: camerastream(543): camerastream(543): vidioc_streamon failed ,err: no space left on device
01-06 18:04:45.100 244 1521 d camerahal: startpreview(255): startpreview(255):out
01-06 18:04:45.102 244 1521 d camerahal: commandthread(1013): commandthread(1013): cmd_preview_start out
01-06 18:04:45.102 244 1521 d camerahal: commandthread(1045): commandthread(1045):receive cmd_set_preview_window
1.2.攝像頭協議錯誤 usb線材可能有問題 camerastream(543): vidioc_streamon failed ,err: protocol error
檢視camera裝置 linux
前言 本文介紹如何在linux平台檢視是否有camera外設。操作過程 1.開啟shell,輸入以下命令 ls dev video 即可檢視是否有camera外設 2.如果確實連線了camera外設,但是並沒有查詢到,那麼可能是camera驅動安裝的問題 需要安裝編譯camera驅動,目前手邊的驅動...
camera驅動電源配置 camera驅動
在手機中,我們常將camera直接稱為sensor。一 sensor的種類 其實這個對於驅動來說基本略知就可以了,處於那種說出來要知道是在說sensor的專業名次這種程度就ok了!一般來說,sensor有兩大類,cmos和ccd。一般來說,ccd的功耗高,拍攝質量高,造價高,他更適合在數位相機或dv...
Camera相關介紹
qxga 2048 x 1536 又稱300萬畫素 uxga 1600x 1200 又稱200萬畫素 sxga 1280 x1024 又稱130萬畫素 xga 1024 x768 又稱80萬畫素 svga 800 x600 又稱50萬畫素 vga 640x480 又稱30萬畫素 35萬是指648x4...