嵌入式开发之davinci--- 8148/8168/8127 中的添加算饭scd 场景检测

Osd

Scd

(1)     Introduction

  1. over view

a)         scene change detection

  1. block diagram

a)         graph

b)         resvolution

d1:720x576(pal)-25fps 720x480 30-fps(ntsc)--------------704x576 ti

cif:352x288 (支持的处理帧)

quwu:1024x768/4

c)         说明:

The block diagram above illustrates the  basic flow of the algorithm.  It is helpful to regard the SCD algorithm as an  “engine”  that consumes input  video  frames and produces  metadata.  Input video frames  fed  to  SCD  are  first  partitioned  into  blocks.  Valid  YUV  input  frames  provided  by  the framework are generally CIF resolution or smaller, but block widths are always fixed to be 32-pixels

wide.  The  xth horizontal  and  yth vertical  block  in  the  partition  matrix  at  time  t,  i.e.  b(x,y,t),  is compared against the co-located block from a prior frame  b(x,y,t-1) if motion detection for that block is  enabled.  If  frame-level  change,  e.g.  tamper  detection,  is  enabled,  then   b(x,y,t)  is  com pared

against  a  learned  model  of  the  scene  m(x,y,t-1).  The  actual  operations  to  generate  block-level metadata are more complex than a simple “subtraction,” as depicted in the block diagram.

These  metadata  are  evaluated  by  logical  rules  at  both  a  block-  and  frame-level,  depending  on whether motion monitoring and/or tamper monitoring is in effect, respectively. Rules for interpreting the  metadata  are  housed  inside  the  algorithm ;  however,  rules  and  how  they  influence  decisions can be manipulated by channel-specific parameters selected by the application.

(2)     Application programming interface for scene change detection

a)         Alglink_scdmod

typedef enum

{

ALG_LINK_SCD_DETECTMODE_DISABLE  = 0,

ALG_LINK_SCD_DETECTMODE_MONITOR_FULL_FRAME  = 1,

ALG_LINK_SCD_DETECTMODE_MONITOR_BLOCKS    = 2,

ALG_LINK_SCD_DETECTMODE_MONITOR_BLOCKS_AND_FRAME  = 3

} AlgLink_ScdMode;

ALG_LINK_SCD_DETECTMODE_DISABLE ptz

b)         Alglink_scdsensitivity

typedef enum {

ALG_LINK_SCD_SENSITIVITY_VERYLOW   = 0,

ALG_LINK_SCD_SENSITIVITY_LOW   = 1,

ALG_LINK_SCD_SENSITIVITY_MIDLO   = 2,

ALG_LINK_SCD_SENSITIVITY_MID   = 3,

ALG_LINK_SCD_SENSITIVITY_MIDHI   = 4,

ALG_LINK_SCD_SENSITIVITY_HIGH   = 5,

ALG_LINK_SCD_SENSITIVITY_VERYHIGH  = 6

} AlgLink_ScdSensitivity;

ALG_LINK_SCD_SENSITIVITY_VERYHIGH

c)         Alglink_scdoutput

typedef enum

{

ALG_LINK_SCD_DETECTOR_UNAVAILABLE =-1,

ALG_LINK_SCD_DETECTOR_NO_CHANGE  = 0,

ALG_LINK_SCD_DETECTOR_CHANGE = 1

} AlgLink_ScdOutput;

SCD_TI_process

d)         Scd struct

e)         Scd function call

General guidelines for video and scene characterstics

SCD  is designed to  analyze  video  that  is  acquired  from  a  fixed  camera,  i.e.  the  field  of  view  does  not  change  due  to panning,  tilting,  or  zooming.   Video  is  processed  frame-by-frame.  The  order  and  timing  of  frames  are

crucial for analysis.  SCD  algorithms expect frames to be  available  in sequential order  with  inter-frame jitter  (variability  in  frame  timing)  minimized  to  be  no  greater  than  ±100  ms  outside  of  the  specified processing rate.

SCD  relies on a  fairly  stable field of view to identify relevant changes caused by moving objects.  Tamper events  are  assumed  to  affect  the  majority  of  the  field  of  view,  depending  on  the  sensitivity  setting.  To

prevent false alarms  and achieve desired results,  installers should be careful to position the camera to satisfy the following constraints:

?  The video should be in focus and as sharp as possible.

?  Camera mounting should be fixed and stable. Excessive vibration or movement from wind,  large vehicles, or other external factors should be avoided.

Scene Change Detection API & User’s Guide: Beta 00.50  – January 2012

TI Confidential – NDA Restrictions

?  Good  contrast  with  strong  edges  and  corners  is  desirable  for  optimum  performance.  Large reflective  surfaces,  glare  and  direct  illumination  (camera  pointed  at  the  sun)  can  result  in  poor contrast  and  must  be  avoided.  Tamper  detection  in  scenes  without  enough  visual  texture  or contrast, e.g. camera pointed at a blank wall, could be ineffective. However, motion detection has

no similar requirement, except for sufficient illumination.

?  No more than 75% of the scene should experience motion or change in appearance  at any given time.  The size  of  any individual moving object should not fill more than 50% of the camera’s field of view at any time. If these recommendations are unavoidable and the field of view is easily filled by objects moving into the scene temporarily, e.g. the scene of a camera monitoring traffic  is filled by vehicles in traffic, consider lowering the sensitivity to prevent false detections.

?  Areas monitored by the camera should be reasonably well lit, e.g. adequate for supporting human eyesight.  SCD  can  work  with  infrared  illuminators  to  assist  in  very  low-light  environments  or conditions, but operation under these circumstances can produce undesired effects. Precipitation, e.g. rain drops, snow flakes, ice, sleet,  etc., dirt, insects, or other debris  on the camera lens can cause SCD algorithms to work improperly.

Adjustments to sensitivity  settings  will  influence  detection  performance.  Lower sensitivity will require a larger  degree of high-contrast change for a  tamper  event to be generated and will result in fewer false events. Higher sensitivity will require a smaller amount of change for an event to be generated and could therefore result in more events, some of them false alarms.

http://blog.csdn.net/mianhuantang848989/article/details/38035731

时间: 2024-08-07 04:31:26

嵌入式开发之davinci--- 8148/8168/8127 中的添加算饭scd 场景检测的相关文章

嵌入式开发之GCC编译器使用

嵌入式开发之GCC编译器使用 Linux系统下GCC是GNU推出的功能强大的性能优越的多平台编译器,是GNU的代表作之一.GCC 可以在多种硬件平台上编译出可执行程序,其执行效率一般比其他编译器高%20到%30.GCC编译器能将C C++语言程序汇编程序编译,链接成可执行程序.在linux文件没有统一的后缀,系统从文件的属性来区分可执行程序和不可执行程序.  1.1GCC编译程序的四个阶段 预处理(Pre-Processing) 编译(Comping) 汇编(Assembing) 连接(Link

嵌入式开发之davinci--- 8148/8168/8127 中的High-DefinitionVideo Processing Subsystem (HDVPSS)

High-DefinitionVideo Processing Subsystem (HDVPSS) 这一章介绍了高清视频处理子系统(HDVPSS). 2.1导论 2.1.1 简介 HDVPSS 使用TI开发的算法,灵活的复合和融合引擎,各种高质量外部视频接口,实现视频/图像显示和采集处理功能.   2.1.3 缩略语 名称 定义 COMP Compositor 复合器 DEI De-Interlacer 去隔行 DEIH High quality De-Interlacer 高质量去隔行 DV

嵌入式开发之davinci--- 8148/8168/8127 中的xdc 简介

XDC是TI公司为嵌入式实时系统可重用软件组件(在XDC里被成为packages,以下成为包)制定的一套标准.它包括一些有用的工具,标准的API函数,静态配置文件和打包(packaging)操作.XDC最主要的亮点在于它标准化了传递过程,并简化了在应用程序中引用目标平台下其他包的过程. 本文从一个简单的“Hello,World“入手,引领大家进入XDC开发世界. 在XDC开发世界中,首先需要明确两个概念,package和repository. 所谓package,类似与java里的jar文件或.

嵌入式开发之davinci---DM8168 8127 8148 HDVPSS中的一些英文缩写解释

BLEND:Alpha blends input with the graphics.将输入的视频与图形做Alpha融合. CPROC:Color Processing.颜色处理.如动态对比度增强.饱和度增强.色彩空间转换等. CEC:Consumer Electronics Control.消费者电子控制 CHR_US/CHR_DS:Chroma downSampler(CHR_DS), Chroma_upSampler(CHR_US), Used for converting YUV420<

嵌入式开发之davinci--- 8148/8168/8127 中的图像缩放sclr、swms之后出现图像视频卡顿、屏幕跳跃的问题

()问题原因 这边的case链路是这样的camera->sclr(yuv420sp cif)->dup->ipcframeoutm3<->ipcframerocess<->ipncframeindsp<->dspalg<->osdalg<->scdalg | | | swms->display | ipcoutm3->ipcinvideo->enc->ipcbitoutrtos->ipcbitinh

嵌入式开发之davinci--- 8148/8168/8127 中的音频alsa 采集

1.snd_pcm_open,打开句柄. 2.配置参数,可能用到的接口:snd_pcm_hw_params_alloca.snd_pcm_hw_params_any.snd_pcm_hw_params_set_rate_near.snd_pcm_hw_params_set_format.snd_pcm_hw_params_set_access.snd_pcm_hw_params_set_channels.snd_pcm_hw_params_set_period_size_near.snd_pcm

嵌入式开发之davinci--- 8148/8168/8127 中的图像采集格式Sensor信号输出YUV、RGB、RAW DATA、JPEG 4种方式区别

简单来说,YUV: luma (Y) + chroma (UV) 格式, 一般情况下sensor支持YUV422格式,即数据格式是按Y-U-Y-V次序输出的RGB: 传统的红绿蓝格式,比如RGB565,其16-bit数据格式为5-bit R + 6-bit G + 5-bit B.G多一位,原因是人眼对绿色比较敏感.RAW RGB: sensor的每一像素对应一个彩色滤光片,滤光片按Bayer pattern分布.将每一个像素的数据直接输出,即RAW RGB dataJPEG: 有些sensor

嵌入式开发之davinci--- 8148/8168/8127 中swms、Mosaic’s、display 显示pal 模式

(1) (2) (3) (4) -------------------------author:pkf ------------------------------time:2-3 -----------------------------------------------qq:1327706646 () Void VdecVdis_start(){ VSYS_PARAMS_S vsysParams; VDEC_PARAMS_S vdecParams; VDIS_PARAMS_S vdisPa

嵌入式开发之davinci--- 8148/8168/8127 中的alsa音频pcm g711 和aac 音频格式

(1)alsa pcm (2)g711 (3)aac (4) --------------author:pkf -------------------time:2-4 ---------------------------qq:1327706646 (1)alsa pcm (2)g711 G.711 G.711 也称为PCM(脉冲编码调制),是国际电信联盟订定出来的一套语音压缩标准,主要用于电话.它主要用脉冲编码调制对音频采样,采样率为8k每秒.它利用一个 64Kbps 未压缩通道传输语音讯号.