一、前言
这块知识不太懂,所以结合MTK官网文档学习下。最近做的项目有Feature截图如下
二、Camera & Video Feature 汇总
- Auto Scene Detect
- Face Detection && Smile Shutter
- Object tracking
- Auto-panorama
- Multi-angle-View
- Motion track
- Live photo
- High Dynamic Range
- Face beauty
- EV Bracket
- Best Shot
- Continue shot
- Zero Shutter Delay
- EIS (VIDEO)
- Video -Snapshot (VIDEO)
2.1 Auto Scene Detect
自动场景检测(Auto Scene Detect,ASD)的目的是全自动检测周围环境的场景类型,使成像系统可以采取相应的形动,生成质量更好的图像
常见场景类型如下
Normal、Night、Backlight、Landscape、Portrait、Night Portrait 、Backlight Portrait
const char BasicParameters::KEY_DETECTED_ASD_ENABLE[] = "effect-auto-scene-en";
const char BasicParameters::KEY_DETECTED_ASD_3A_INFO[] = "effect-asd-3a-info";
const char BasicParameters::KEY_DETECTED_USE_ASD[] = "effect-use-auto-scene-detect";
2.2 Face Detection && Smile Shutter
人脸检测是相机的一项功能,用于自动检测人脸并绘制面框
微笑快门是当被摄对象微笑时启动快门的一个功能
const char BasicParameters::KEY_DETECTED_USE_FD[] = "effect-use-face-detect";
void get_fd_CustomizeData(FD_Customize_PARA *FDDataOut)
{
FDDataOut->FDThreadNum = 1;
FDDataOut->FDThreshold = 256;
FDDataOut->MajorFaceDecision = 1;
FDDataOut->OTRatio = 1088;
FDDataOut->SmoothLevel = 8;
FDDataOut->Momentum = 0;
FDDataOut->MaxTrackCount = 10;
FDDataOut->FDSkipStep = 2;
FDDataOut->FDRectify = 10;
FDDataOut->FDRefresh = 3;
FDDataOut->SDThreshold = 69;
FDDataOut->SDMainFaceMust = 1;
FDDataOut->SDMaxSmileNum = 3;
FDDataOut->GSensor = 1;
FDDataOut->FDModel = 1;
FDDataOut->OTFlow = 1; //0:Original Flow (FDRefresh:60) , 1:New Flow (FDRefresh:3)
FDDataOut->UseCustomScale = 1;
FDDataOut->FDSizeRatio = 0.0; // float:0~1
FDDataOut->SkipPartialFD = 0;
FDDataOut->SkipAllFD = 0;
}
2.3 Object tracking
对象跟踪是跟踪用户想要的对象跟踪
void get_ot_CustomizeData(OT_Customize_PARA *OTDataOut)
{
OTDataOut->OBLoseTrackingFrm = 90;
OTDataOut->OCLoseTrackingFrm = 90;
OTDataOut->LtOcOb_ColorSimilarity_TH = 0.16;
OTDataOut->ARFA = 0.00;
OTDataOut->Numiter_shape_F = 1;
OTDataOut->LightResistance = 0;
OTDataOut->MaxObjHalfSize = 40;
OTDataOut->MinObjHalfSize = 12;
OTDataOut->IniwinW = 15;
OTDataOut->IniwinH = 15;
OTDataOut->AEAWB_LOCK = 1;
}
2.4 Auto-panorama
全景拍照,用运行在camera preview模式,抓取连续的preview buffer。通过算法将连续的图片拼接成一张图片
typedef enum DRVMotionObject_s {
DRV_MOTION_OBJ_NONE = 0,
DRV_MOTION_OBJ_PANO, // Motion of Auto Panorama
DRV_MOTION_OBJ_PANO_NEON, // Motion of Auto Panorama (neon version)
DRV_MOTION_OBJ_MAV, // Motion of Multi-angle View
DRV_MOTION_OBJ_MAV_NEON, // Motion of Multi-angle View (neon version)
DRV_MOTION_OBJ_3D_PANO, // Motion of Auto Panorama
DRV_MOTION_OBJ_UNKNOWN = 0xFF,
} DrvMotionObject_e;
2.5 Multi-angle-View
多角度拍照,camera preview模式,抓取连续的preview frame。将多个角度的图片合成一张MPO图片
typedef enum DRVMotionObject_s {
DRV_MOTION_OBJ_NONE = 0,
DRV_MOTION_OBJ_PANO, // Motion of Auto Panorama
DRV_MOTION_OBJ_PANO_NEON, // Motion of Auto Panorama (neon version)
DRV_MOTION_OBJ_MAV, // Motion of Multi-angle View
DRV_MOTION_OBJ_MAV_NEON, // Motion of Multi-angle View (neon version)
DRV_MOTION_OBJ_3D_PANO, // Motion of Auto Panorama
DRV_MOTION_OBJ_UNKNOWN = 0xFF,
} DrvMotionObject_e;
2.6 Motion track
动态捕捉
//这块比较重要,后面会继续补充
2.7 Live photo
当选择Live Photo拍照模式时,Camera开始进行后台录像。当拍照时,会保存最近1-4s的录像
2.8 High Dynamic Range
从一组不同曝光图像中生成一张曝光良好的图像
2.9 Face beauty
美颜拍照包含美白、磨皮、瘦脸和大眼等美化功能
2.10 EV Bracket
会拍三张照片,分别是 -1 EV,0 EV ,+1 EV供用户选择
2.11 Best Shot
会拍三张相同EV的照片,并自动选择最好的一张照片保存
2.12 Continue shot
连拍模式与前面HDR、Face beauty、Smile Shot、Best Shot、EV Bracket shot 等不支持连拍等一样,都是拍照模式的一种,各个拍照模式之间相互独立
2.13 Zero Shutter Delay
当触发ZSD拍照模式,sensor无需切换拍照模式,直接拍照键抬起的瞬间Sensor输出压缩Jpeg file
2.14 EIS
电子防抖用于视频录制,它使用可见真边框外的像素为运动一个提议,是输出帧可以根据振动程度进行裁剪
2.15 Video -Snapshot
VSS是指录像过程中进行拍照
三、常见问题
//TODO