WO2011076098A1 - 模拟雷达扫描的人脸检测方法 - Google Patents

模拟雷达扫描的人脸检测方法 Download PDF

Info

Publication number
WO2011076098A1
WO2011076098A1 PCT/CN2010/080035 CN2010080035W WO2011076098A1 WO 2011076098 A1 WO2011076098 A1 WO 2011076098A1 CN 2010080035 W CN2010080035 W CN 2010080035W WO 2011076098 A1 WO2011076098 A1 WO 2011076098A1
Authority
WO
WIPO (PCT)
Prior art keywords
scan
area
face
radar
vertical
Prior art date
Application number
PCT/CN2010/080035
Other languages
English (en)
French (fr)
Inventor
金友芝
熊中柱
Original Assignee
汉王科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 汉王科技股份有限公司 filed Critical 汉王科技股份有限公司
Publication of WO2011076098A1 publication Critical patent/WO2011076098A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation

Definitions

  • the present invention belongs to the field of interface design of application software, and more particularly to a user interface capable of searching for any target from a screen window. Background technique
  • biometric method face recognition has the advantages of simplicity, user acceptance, non-contact, non-intrusion, safety and sanitation. It is widely used in security verification, monitoring, identity authentication, e-commerce information system, security facilities. Hunting for suspects and counter-terrorism.
  • N verification Quickly extract the face data of the target, compare it with the data in the system database, and quickly find the person with higher similarity.
  • Verification The fixed target data is compared with the fixed data in the system database. When the similarity reaches a certain domain value, the comparison is successful and the identity is confirmed.
  • the current face recognition products mostly capture image information directly from the camera and then project it onto the display screen.
  • the user can reflect his own information into the device through proximity adjustment, which is the same effect as ordinary video surveillance.
  • the device is passively receiving.
  • the status of the message and does not allow the user to know the status of the test in real time. Therefore, it is necessary to provide a more intelligent and user-friendly interface, so that the device actively acquires the user's information, and the user knows his or her own status in real time and adjusts accordingly, thereby interacting with the device and improving the user experience.
  • the technical problem to be solved by the present invention is to provide a face detection method for simulating radar scanning.
  • the method calls the basic graphic drawing method to combine the radar scanning and the vertical scanning in the detection interface to visually represent the entire target detection.
  • the process provides users with a good experience.
  • a face detection method for simulating radar scanning comprising the steps of: creating a window area for displaying an interface;
  • the step of drawing a scanned image includes: calling a radar scan object to perform a fan sweep when no face target is detected; when the face target is detected in the form, stopping the fan sweep and calling the vertical scan object to perform vertical Scanning in the direction.
  • the method further includes an initializing step, the initializing step comprising:
  • the lookup table includes a sine function lookup table and a cosine function lookup table.
  • the basic graphic drawing methods include: point drawing, line drawing, rectangle drawing, circle drawing, arc drawing, sector area drawing, and transparency algorithm.
  • the basic graphic drawing method is called to draw a circle and a sector area having the same radius in the circle.
  • the basic graphic drawing method is called to draw a rectangular frame and a gradation area composed of a plurality of straight lines in the rectangular frame.
  • center of the rectangular frame drawn by the vertical scanning object coincides with the center of the face target, and the rectangular frame is circumscribed to the face target.
  • the gradation area is formed by a transparent algorithm process.
  • the rectangular frame drawn by the vertical scanning object moves as the face target moves.
  • a face detection system for simulating radar scanning comprising: a form area creation module for creating a form area for displaying an interface;
  • the radar scan object creation module creates a radar scan object
  • Call the module call the radar scan object and the vertical scan object in the form area to draw the scanned image; adjust the module to adjust the area of the vertical scan object.
  • a face target detection interface is developed, and the basic graphic drawing method is called to detect the interface and use the combination of radar scanning and vertical scanning to visually represent the whole target detection process.
  • the device applied to the detection method is in an active state of receiving information, so that the user can know the state of the detection in real time. More user-friendly and intelligent, allowing users to understand their status in real time and adjust accordingly to interact with the device and improve the user experience.
  • Figure 1 is a flow chart of the method of the present invention
  • Figure 2 is a schematic view of a radar scanned image of the present invention
  • Figure 3 is a schematic illustration of a rectangular scanned image of the present invention. detailed description
  • All interface programming is to draw the required graphics in a form.
  • the form can be thought of as a display, and the drawn graphic can be various shapes or pictures, and the unit of drawing is pixels.
  • this embodiment requires that all functional modules be completely rebuilt.
  • FIG. 1 shows specific implementation steps of the method of the present invention, including:
  • Step 0 Create a query table that includes a sine function lookup table and a chord function lookup table.
  • Trigonometric functions are floating-point operations that are well supported on floating-point processors.
  • the fixed-point processor can only simulate floating-point operations, which greatly increases the amount of computation of the fixed-point processor. Therefore, the use of fixed-point processors to achieve trigonometric functions is very inefficient.
  • the general solution is to create a query table for functions. The larger the table structure, the higher the precision of the query.
  • the query table as a one-dimensional array.
  • the item value can represent all angles.
  • the input angle value is the index value of the array
  • the obtained array item is the enlarged value of the result of the trigonometric function.
  • the query table is established by using the runtime library.
  • Create basic graphic drawing methods including: Using the transparent algorithm function to draw basic graphics by point drawing, straight line drawing, rectangle drawing, circle drawing, arc drawing, and/or fan area drawing.
  • the transparent algorithm implements:
  • G Gl * Alpha + G2 * (1 - Alpha)
  • (R1, G1, B1) represents the red, green, and blue color components of the pixels in image 1
  • (R2, G2, B2) represents the red, green, and blue color components of the pixels in image 2
  • Alpha is the transparency.
  • the pixel in 1 shows the pixel in image 2 when Alpha is 0.
  • the value of Alpha is [0, 256].
  • the function interface is designed as follows:
  • Void MixColor (Color colorl, Color color2, uintl6_t alpha)
  • colorl represents the color value of the pixel in image 1
  • color2 represents the color value of the pixel in image 2
  • alpha represents transparency
  • the point is drawn to modify the value of the predetermined position in the memory, and the corresponding position of the calculated index is assigned in the in-memory array, and the remaining positions are re-assigned by the transparent algorithm.
  • Void glDrawHorLine (Color color, uint8_t size, Coord* pointl, Coord* point2, uintl6_t Alpha)
  • Void glDrawVerLine (Color color, uint8_t size, Coord* pointl, Coord* point2, uintl6—t Alpha)
  • Color represents the color value of the line
  • Size represents the width of the line
  • Pointl represents the starting point coordinate value of the line
  • Point2 represents the coordinate value of the line ending point
  • Alpha represents the transparency of the line.
  • line drawing actually draws points on a series of calculated coordinates.
  • the method of drawing a rectangular frame is to implement two vertical lines and two horizontal lines.
  • the function interface is as follows:
  • Void glDrawRect (Rect* prect, Color color, uint8_t size, uintl6_t Alpha ) where: Prect represents the coordinate point of the rectangle; Color represents the color value of the rectangle; Size represents the width of the line of the rectangle; Alpha represents the transparency of the line of the rectangle.
  • the method of circle drawing mainly uses the query table generated in the zeroth step to calculate all the coordinate points and draws this point.
  • the function interface is as follows:
  • Void glDrawCircle (Coord *point, uintl6__t radius , Color color, uint 16 — ⁇ alpha)
  • Point represents the coordinates of the circle
  • Radius represents the radius of the circle
  • Color represents the arc color of the circle
  • Alpha represents the arc transparency of the circle.
  • the arc is drawn similarly to the circle, and the coordinate table of the arc is also calculated using the generated lookup table and drawn. At the same time, the color of the arc needs to start from the starting angle. In this embodiment, an arc having an angle of 64 degrees is realized.
  • the function interface is as follows:
  • Void glDrawArc (Coord *point, uintl6_t radius, uintl6— t angleStart, uintl6_t clockwise, Color color)
  • Point represents the coordinate value of the concentric circle of the arc
  • Radius represents the radius length of the concentric circle of the arc
  • angleStart represents the starting angle value of the arc, the value range is [0, 360);
  • clockwise represents the arc color gradient The direction, when clockwise is 1, the color gradient is clockwise reverse, 0 is counterclockwise; color is the sector color value.
  • Void glDrawSector (Coord *point, uintl6_t radius, uintl6_t angleStart, uintl6_t clockwise , Color color)
  • Point is the coordinate value of the sector of the sector; Radius represents the radius of the radius of the sector; angleStart represents the angle of the starting point of the sector; colockwise represents the direction of the color of the sector, and when the clockwise is 1, the color gradient is clockwise reversed. 0 is counterclockwise; color is sector Area color value.
  • Step 1 Create a form area for the display interface.
  • the image displayed in the second step and the third frame is displayed in the window area.
  • an object of a form area is created, a form attribute of a length, a width, a color, and the like is added to the object, and a method is added to enable the form to be dragged, and the radar scan object and the vertical scan object can be called.
  • the radar scan object and the vertical scan object provide a display area.
  • the form area can be encapsulated as a control to call.
  • Step 2 Call the basic drawing method to generate various basic graphics to create a radar scan object.
  • a circle representing the range of the radar search; a sector-shaped area with the same radius in the circle, and rotating the sector-shaped area with the center of the circle, representing that the radar wave is emitted to the periphery Sector scan.
  • draw a cross in a straight line at the center of the circle and mark the scale on the cross, which is like a sight.
  • the interface of the radar scan object package is as follows - Typedef struct _RadarScaner Int Step ;
  • Int (InitRadar*) (Coord pointer, int radius, int step, Color color);
  • Step represents the angle of rotation of the radar scan of each control call.
  • Angle represents the angle of the direction in which the current radar wave is emitted.
  • the function of the InitRadar function interface is to initialize the radar scan control, mainly to realize the query table of the zeroth step, and initialize the speed of the radar scan rotation and the initial angle of the radar launch.
  • the function of the RadarStart function interface is to implement the rendering of the radar.
  • Angle increases by Step.
  • Angle> 360 or Angle ⁇ 0 degrees
  • Angle returns to 0 degrees.
  • the radar scan object when no face target is detected in the form, the radar scan object is called to draw a scanned image in the form of a radar to indicate that the target is being searched.
  • the sector angle is rotated by the Step angle.
  • the radar wave rotates continuously. Adjust the Step parameter in the radar scan object to control the speed of the radar rotation.
  • Step 3 Call the basic drawing method to generate various basic graphics to create a vertical scanning object.
  • the straight line drawing method in the basic graphic drawing method is called to draw a rectangle, which represents the size of the face target, the center of the rectangular frame and the center of the face target coincide, and is external to the face target.
  • the rectangular frame follows the face target movement, and the face target becomes larger or smaller due to the adjustment of the distance from the lens, and the rectangular frame follows the face target correspondingly becomes larger or smaller, and always remains. The state of the external and face targets.
  • the rectangular frame is 128.
  • X 128px in the vertical direction of this rectangle, draw 16 lines parallel to the bottom of the rectangle at a frequency of 0.5 Hz.
  • the starting line has a transparency of 0, which is a completely opaque line.
  • the ending line has a transparency of 256, which is a completely transparent line.
  • Each line differs by 4 transparency.
  • the interfaces of the vertical scan object package are as follows:
  • Step represents the speed of the vertical scan
  • verticalPosition represents the distance between the current vertical scan line and the top of the rectangle.
  • the function of the VerticalStart function interface is to draw a vertical scan.
  • a vertical scan object is created to symbolize that face detection is in progress.
  • the line in the rectangle moves to achieve a vertical scan.
  • the order of the first step, the second step, and the third step in this embodiment may be reversed and Exchange.
  • Step 4 Call the radar scan object and the vertical scan object in the form area to draw the scanned image, which symbolizes the process of target search and face detection.
  • the radar scan object is called for fan sweep, indicating that the target is being searched; when the face target is detected in the form, the radar scan object fan sweep is stopped, and the call is called. Scanning the object vertically in the vertical direction indicates the process of face detection.
  • Step 5 Adjust the area where the vertical scan object is located.
  • the rectangular frame drawn by the vertical scanning object moves as the face target moves. Since the rectangular frame drawn by the vertical scanning object is externally connected to the face target, when the face target moves, the rectangular frame of the external and the face target also follows the face. The target moves, indicating that the face target is tracked and detected, and the target to be detected is not lost due to the face target moving.
  • a face detection system for simulating radar scanning comprising:
  • a form area creation module that creates a form area for displaying the interface
  • the radar scan object creation module creates a radar scan object
  • Call the module call the radar scan object and the vertical scan object in the form area to draw the scanned image; adjust the module to adjust the area of the vertical scan object.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Description

模拟雷达扫描的人脸检测方法 技术领域
本发明属于应用软件的界面设计领域,尤其涉及一种能够从屏幕窗口中搜索任意 目标的用户界面。 背景技术
人脸识别作为一种常用的生物识别方式, 具有简便、 用户接受性良好、 非接触、 非侵扰、 安全卫生等优点, 被广泛应用于安全验证、 监控、 身份认证、 电子商务信息 系统、 安全设施、 追捕犯罪嫌疑人和反恐等众多领域。
常见的人脸识别应用模式如下-
1: N 验证: 快速提取目标的人脸数据, 与系统数据库中的数据进行比对, 快速 找到相似度较高的人员。
1: 1 验证: 用固定目标的数据与系统数据库中的固定数据比对, 当相似度达到 某一个域值时比对成功, 身份确认。
监视: 在一定范围内发现人脸, 与背景分割, 并实现连续跟踪。
目前的人脸识别产品多为摄像头直接采集图像信息然后投射到显示屏上,依靠用 户通过接近调整来把自己的信息反映到设备里面去, 与普通的视频监控是一样的效 果, 设备处于被动接收信息状态, 且不能让用户实时了解检测的状态。 因此需要提供 更智能化和人性化的界面, 让设备主动获取用户的信息, 用户实时了解自己的状态并 相应调整, 从而与设备产生互动, 改善用户体验。 发明内容
本发明所要解决的技术问题是提供一种模拟雷达扫描的人脸检测方法,本方法调 用基本图形绘制方法对检测界面采用雷达扫描和垂直扫描相结合的形式形象、 直观地 表现了整个目标检测的过程, 为用户提供一个很好的使用感受。
为实现上述目的, 提供了一种模拟雷达扫描的人脸检测方法,包括步骤: 创建用于显示界面的窗体区域;
创建雷达扫描对象;
创建垂直扫描对象; 在窗体区域中调用雷达扫描对象和垂直扫描对象以绘制扫描图像;
调整垂直扫描对象所在区域。
进一步地, 所述绘制扫描图像步骤包括: 当没有检测到任何人脸目标时, 调用雷 达扫描对象进行扇扫; 当窗体中检测到人脸目标时, 停止扇扫并调用垂直扫描对象进 行垂直方向上的扫描。
进一步地, 该方法还包括初始化步骤, 所述初始化步骤包括:
创建査询表;
创建基本图形绘制方法。
所述查询表包括一个正弦函数查询表和一个余弦函数查询表。
所述基本图形绘制方法包括: 点绘制、直线绘制、矩形绘制、 圆绘制、 圆弧绘制、 扇形区域绘制和透明算法。
进一步地,所述创建雷达扫描对象时, 调用基本图形绘制方法绘制出一个圆和在 该圆内同圆心同半径的扇形区域。
进一步地,所述创建垂直扫描对象时, 调用基本图形绘制方法绘制一个矩形框和 在矩形框内由多条直线组成的渐变区域。
进一步地,所述垂直扫描对象绘制的矩形框的中心和人脸目标中心重合, 且所述 矩形框外接于人脸目标。
进一步地, 所述渐变区域由透明算法处理形成。
进一步地,所述调整垂直扫描对象所在区域时, 垂直扫描对象绘制的矩形框随着 人脸目标的移动而移动。
一种模拟雷达扫描的人脸检测系统,包括- 窗体区域创建模块,创建用于显示界面的窗体区域;
雷达扫描对象创建模块, 创建雷达扫描对象;
垂直扫描对象创建模块, 创建垂直扫描对象;
调用模块, 在窗体区域中调用雷达扫描对象和垂直扫描对象以绘制扫描图像; 调整模块, 调整垂直扫描对象所在区域。
利用本发明所提供的方法开发出了一种的人脸目标检测界面,调用基本图形绘制 方法对检测界面釆用雷达扫描和垂直扫描相结合的形式形象、 直观地表现了整个目标 检测的过程, 为用户提供一个很好的使用感受。 使应用于该检测方法的设备处于主动 接收信息状态, 让用户实时了解检测的状态。 更加人性化和智能化, 使用户实时了解 自己的状态并相应调整, 从而与设备产生互动, 改善用户体验。 附图说明
图 1是本发明的方法流程图;
图 2是本发明雷达扫描图像的示意图;
图 3是本发明矩形扫描图像的示意图。 具体实施方式
所有的界面程序设计都是在一个窗体中绘制需要的图形。 窗体可以看做是显示 器, 绘制的图形可以是各种形状或图片, 绘制的单位为像素。 本实施方式为了通用性 及可移植性, 因此需要全部重新搭建所有的功能模块。
如图 1, 示出本发明的方法的具体实施步骤, 包括:
第零步: 创建查询表, 包括一个正弦函数査询表和一个佘弦函数査询表。
图形绘制时常常会运用到各种三角函数, 尤其是正余弦函数, 因此 c语言运行库 一般会提供一个 math, h 的库函数接口。 但是, 三角函数为浮点运算, 在浮点处理器 上能够很好的支持这种运算。 而定点处理器只能模拟浮点运算, 这会极大增加定点处 理器的运算量。 因此, 使用定点处理器实现三角函数运算效率很低, 一般的解决方法 是创建函数的査询表, 表结构越大, 查询的精度也就越高。
将查询表实现为一个一维数组, 当查询的精度为单位一度时, 数组大小需要为 360 项。 因为正余弦函数具有周期性, sin (t) =~sin (360-t) , sin (t+180) =- sin (t) , sin (t+90) =sin (90-t) , 因此 90项数值即可表示全部角度。
查询时, 输入的角度值就是数组的索引值, 得到的数组项即是此三角函数运算结 果的放大后的值。
本实施例中, 利用运行库建立这个査询表。
创建基本图形绘制方法, 包括: 运用透明算法函数进行点绘制、 直线绘制、 矩形 绘制、 圆绘制、 圆弧绘制和 /或扇形区域绘制方式绘制基本图形。
本实施例中, 透明算法实现:
当两个图片重叠时, 仍然可以看到重叠部分被遮挡的部分, 这就是透明的效果。 透明算法的实现方法的原理是将每个像素的 RGB分量进行混合:
R = Rl * Alpha + R2 * (1-Alpha)
G = Gl * Alpha + G2 * (1 - Alpha)
B = Bl * Alpha + B2 Alpha)
其中(R1, G1, B1)表示图像 1中的像素的红、绿、蓝颜色分量, (R2,G2, B2)表示图 像 2中的像素的红、 绿、 蓝颜色分量, Alpha为透明度, 当 Alpha为 1时, 显示图像 1中的像素, 当 Alpha为 0时, 显示图像 2中的像素。 当 0<Alpha〈l时, 能够同时显 示图像 1和图像 2中的像素, 实现透明效果。
为使透明算法在定点处理器和浮点处理器上通用, 需要将透明算法定点化, 将其 修改为- R = (Rl * Alpha + R2 * (256-Alpha) ) »8
G = (Gl * Alpha + G2 * (256 Alpha) )》8
B = (Bl * Alpha + B2 * (256- Alpha) )》8
其中 Alpha的取值范围是 [0, 256]。
函数接口设计如下:
Void MixColor (Color colorl, Color color2, uintl6_t alpha)
其中: colorl代表图像 1中像素点的颜色值; color2代表图像 2中的像素点的 颜色值; alpha代表透明度。
点绘制:
本实施例中, 点绘制为修改内存中既定位置的值, 在内存中的数组中对计算出的 索引的对应位置进行赋值, 其余位置调用透明算法重新赋值。
直线绘制:
直线的绘制方法有多种算法,其最经典的实现为 DDA算法和 Bresenham算法, 在 本实施中, 只需要画出垂直直线和水平直线两种。 函数接口如下:
void glDrawHorLine (Color color, uint8_t size, Coord* pointl, Coord* point2, uintl6_t Alpha)
void glDrawVerLine (Color color, uint8_t size, Coord* pointl, Coord* point2, uintl6— t Alpha)
其中: Color代表直线的颜色值; Size 代表直线的宽度; Pointl代表直线的起 始点坐标值; Point2 代表直线终止点坐标值; Alpha代表直线的透明度。内部实现时, 直线绘制实际上是在一系列计算得到的坐标上绘制点。
矩形绘制:
矩形框的绘制方法是实现两条垂直直线和两条水平直线。本实施例中, 函数接口 如下:
void glDrawRect (Rect* prect, Color color, uint8_t size, uintl6_t Alpha ) 其中: Prect代表矩形框的坐标点; Color代表矩形框的颜色值; Size 代表矩形 框直线的宽度; Alpha代表矩形框直线的透明度。 圆绘制:
圆绘制的方法主要是利用第零步产生的查询表计算所有的坐标点, 并画出此点。 函数接口如下:
void glDrawCircle (Coord *point, uintl6__t radius , Color color, uint 16— ΐ alpha)
其中: Point代表圆点坐标值; Radius代表圆的半径长度; Color代表圆的圆弧 颜色; Alpha代表圆的圆弧透明度。
圆弧绘制:
圆弧的绘制与圆类似, 同样利用产生的查询表计算圆弧的坐标点并进行绘制。 同 时, 圆弧的颜色需要从起始角度开始渐变。 本实施例中, 实现一个角度为 64度渐变 的圆弧。
实现颜色渐变时, 圆弧起始点(xl, yl)和原点(xO,yO) 之间的连线 Ll, 圆弧上任 意一点 (x2, y2)与圆弧原点 (xO, yO)之间的连线 L2. L1和 L2之间形成的夹角为 A度时, 点(x2, y2)得透明度为 4A。 因此, 圆弧起始点的透明度为 0, 而终止点的透明度为 64 X 4=256. 函数接口如下:
Void glDrawArc (Coord *point, uintl6_t radius, uintl6— t angleStart, uintl6_t clockwise, Color color)
其中: Point代表圆弧的同心圆的坐标值; Radius代表圆弧的同心圆的半径长度; angleStart 代表圆弧的起始角度值, 取值范围为 [ 0, 360 ); clockwise代表圆弧颜 色渐变的方向, clockwise为 1时, 颜色渐变为顺时针反向, 为 0时为逆时针方向; color代表扇形区域颜色值。
扇形区域的绘制- 本实施例中, 绘制一个同心圆半径为 R, 起始角度为 A1 , 圆弧角度为 A2的扇形 区域时, 调用圆弧绘制方法, 绘制 R条起始角度为 Al, 圆弧角度为 A2的圆弧, 这 R 条圆弧的同心圆半径长度分别为 1到 1^。 由于圆弧的颜色渐变, 扇形区域也实现了颜 色渐变。 函数接口如下:
Void glDrawSector (Coord *point, uintl6_t radius, uintl6_t angleStart, uintl6_t clockwise , Color color)
其中: Point 为扇形区域的圆点坐标值; Radius 代表扇形区域半径长度; angleStart 代表扇形区域起始点角度值; colockwise 代表扇形区域颜色渐变方向, clockwise为 1时, 颜色渐变为顺时针反向, 为 0时为逆时针方向; color代表扇形 区域颜色值。
第一步: 创建用于显示界面的窗体区域。使第二步、 第三歩中显示的图像在该窗 体区域中显示。
本实施例中, 建立一窗体区域的对象, 对该对象添加长、 宽、 色彩等窗体属性, 并添加方法使窗体能够被拖拽, 且能调用雷达扫描对象和垂直扫描对象, 为雷达扫描 对象和垂直扫描对象提供显示区域。 该窗体区域可被封装为控件进行调用。
第二步: 调用基本图形绘制方法, 生成各种基本图形以创建雷达扫描对象。 实现雷达效果时, 需要画出一个圆, 代表雷达搜索的范围; 一个在该圆内同圆心 同半径的扇形区域, 并使该扇形区域以圆心为轴进行转动, 代表雷达波向四周发射时 呈扇形扫描。 为了使界面效果更佳, 在圆的圆心处以画直线的方式画出一个十字架, 并十字架上分别标注刻度, 比喻为一个瞄准镜。
雷达扫描对象封装的接口如下- Typedef struct _RadarScaner Int Step ;
Int Angle;
Int (InitRadar*) (Coord pointer, int radius, int step, Color color);
Int (RadarStart*) (void);
} RadarScaner;
其中
Step代表每次调用控件雷达扫描的转动的角度,
Angle代表当前雷达波发射的方向的角度。
InitRadar函数接口的功能是初始化雷达扫描控件, 主要实现第零步的查询表, 并初始化雷达扫描转动的速度和雷达发射初始角度。
RadarStart函数接口的功能是实现绘制雷达。
RadarStart函数接口的实现过程:
绘制圆点为 pointer , 半径为 radius 的圆。 即调用第一步中的接口 glDrawCircle (pointer, radius , color, 0)
绘制经过 pointer的十字架, 绘制十字架上的代表刻度的直线, 即调用第一步中 的直线绘制接口函数。
绘制起始角度为 Angle的颜色渐变扇区区域。即第一步中的扇形区域绘制接口函 数, 注意: 当 Step<0时, 扇形渐变方向为逆时针, Step>0时, 扇形渐变方向为顺时 针。
函数每调用一次, Angle增加 Step度, 当 Angle>=360或 Angle<0度时, Angle 恢复为 0度。
如图 2所示的雷达扫描示意图, 当窗体中没有检测到任何人脸目标时, 通过调用 雷达扫描对象, 绘制雷达状形式的扫描图像, 表示正在搜索目标。 每次调用雷达扫描 对象时, 扇形区域发生 Step 角度的转动。 当周期性连续调用雷达扫描对象时, 雷达 波就不停的转动。 调整雷达扫描对象中的 Step参数, 可以控制雷达转动的速度。
第三步: 调用基本图形绘制方法, 生成各种基本图形创建垂直扫描对象。
实现垂直扫描的效果时, 调用基本图形绘制方法中的直线绘制方法绘制 -个矩 形, 代表人脸目标的大小, 矩形框的中心和人脸目标中心重合, 且外接于人脸目标。 本实施例中, 人脸目标移动时, 矩形框跟随人脸目标移动, 人脸目标由于调整与镜头 的距离而变大或变小时, 矩形框跟随人脸目标相应变大或变小, 始终保持外接与人脸 目标的状态。
再在矩形框内绘制一个由多条直线组成的渐变区域, 本实施例中, 矩形框为 128
X 128px, 在此矩形框中的垂直方向上, 以 0. 5Hz 的频率逐像素地平行于矩形框的底 边绘制 16条直线。起始直线的透明度为 0, 即为完全不透明的直线, 终止直线的透明 度为 256, 即完全透明的直线, 每条直线相差 4个透明度。 这些直线形成的渐变区域 垂直方向上为 16个像素, 占整个矩形区域的 16/128=1/8, 形成了垂直扫描的效果。
垂直扫描对象封装的接口如下:
Typedef struct _VerticalScaner
Int Step ;
Int verticalPosition ;
Int (VerticalStart*) (Rect *pRect); 其中, Step表示垂直扫描的速度, verticalPosition表示当前垂直扫描线与矩 形顶部的距离; VerticalStart函数接口的功能是实现绘制垂直扫描。
如图 3所示, 创建垂直扫描对象来象征正在进行人脸检测。每次调用垂直扫描对 象时, 矩形框中的直线发生移动, 实现垂直扫描的效果。
在其他实施例中,本实施例中的第一步、第二步和第三步的顺序可以进行颠倒和 调换。
第四步: 在窗体区域中调用雷达扫描对象和垂直扫描对象以绘制扫描图像, 象征 目标搜索和人脸检测的过程。
在窗体区域中, 当没有检测到任何人脸目标时, 调用雷达扫描对象进行扇扫, 表 示正在搜索目标; 当窗体中检测到人脸目标时, 停止调用雷达扫描对象扇扫, 并调用 垂直扫描对象进行垂直方向上的扫描, 表示进行人脸检测的过程。
第五步: 调整垂直扫描对象所在区域。
垂直扫描对象绘制的矩形框随着人脸目标的移动而移动,由于垂直扫描对象绘制 的矩形框外接与人脸目标, 当人脸目标移动时, 外接与人脸目标的矩形框也跟着人脸 目标移动, 表示对人脸目标进行跟踪性的检测, 不会因人脸目标移动造成待检测目标 的丢失。
一种模拟雷达扫描的人脸检测系统,包括:
窗体区域创建模块,创建用于显示界面的窗体区域;
雷达扫描对象创建模块, 创建雷达扫描对象;
垂直扫描对象创建模块, 创建垂直扫描对象;
调用模块, 在窗体区域中调用雷达扫描对象和垂直扫描对象以绘制扫描图像; 调整模块, 调整垂直扫描对象所在区域。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精 神和范围。 这样, 倘若对本发明的这些修改和变型属于本发明权利要求及其等同技术 的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

1 . 一种模拟雷达扫描的人脸检测方法,其特征在于, 包括:
创建显示界面的窗体区域;
创建模拟雷达扫描, 用于扫描窗体区域;
创建垂直扫描, 用于绘制人脸图像。
2. 根据权利要求 1所述的方权法, 其特征在于,
当没有检测到任何人脸目标时, 调用模拟雷达扫描在窗体区域进行扇扫; 当窗体区域中检测到人脸目标时,停止扇扫并调用垂直扫描进行垂直方向上的扫 描。
3. 根据权利要求 1所述的方法, 其特征在于求, 该方法还包括初始化步骤, 所述 初始化步骤包括:
创建查询表;
创建基本图形绘制方法。
4. 根据权利要求 3所述的方法, 其特征在于, 所述查询表包括一个正弦函数查 询表和一个余弦函数査询表。
5. 根据权利要求 3或 4所述的方法, 其特征在于, 所述基本图形绘制方法包括: 运用透明算法绘制基本图像。
6.根据权利要求 5所述的方法,其特征在于,所述运用透明算法绘制基本图像包 括运用透明算法通过点绘制、 直线绘制、 矩形绘制、 圆绘制、 圆弧绘制和 /或扇形区 域绘制基本图像。
7. 根据权利要求 3所述的方法, 其特征在于, 所述创建模拟雷达扫描时, 调用 基本图形绘制方法绘制出一个圆和在该圆内同圆心同半径的扇形区域。
8. 根据权利要求 5所述的方法, 其特征在于, 所述创建垂直扫描时, 调用基本 图形绘制方法绘制一个矩形框和在矩形框内由多条直线组成的渐变区域。
9. 根据权利要求 8所述的方法, 其特征在于, 所述垂直扫描绘制的矩形框的中 心和人脸目标中心重合, 且所述矩形框外接于人脸目标。
10. 根据权利要求 8或 9所述的方法, 其特征在于, 所述渐变区域由透明算法处 理形成。
11.根据权利要求 8所述的方法, 其特征在于, 所述调整垂直扫描所在区域时, 垂直扫描绘制的矩形框随着人脸目标的移动而移动。
12. 一种模拟雷达扫描的人脸检测系统,其特征在于, 包括: 窗体区域创建模块,创建显示界面的窗体区域;
模拟雷达扫描创建模块, 用于扫描窗体区域;
垂直扫描创建模块, 用于绘制人脸图像。
PCT/CN2010/080035 2009-12-21 2010-12-21 模拟雷达扫描的人脸检测方法 WO2011076098A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009102427937A CN101706721B (zh) 2009-12-21 2009-12-21 模拟雷达扫描的人脸检测方法
CN200910242793.7 2009-12-21

Publications (1)

Publication Number Publication Date
WO2011076098A1 true WO2011076098A1 (zh) 2011-06-30

Family

ID=42376947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080035 WO2011076098A1 (zh) 2009-12-21 2010-12-21 模拟雷达扫描的人脸检测方法

Country Status (2)

Country Link
CN (1) CN101706721B (zh)
WO (1) WO2011076098A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706721B (zh) * 2009-12-21 2012-11-28 汉王科技股份有限公司 模拟雷达扫描的人脸检测方法
CN110363787A (zh) * 2018-03-26 2019-10-22 北京市商汤科技开发有限公司 信息获取方法和系统、电子设备、程序和介质
CN109740005A (zh) * 2018-12-29 2019-05-10 北京经纬恒润科技有限公司 一种图像目标标注方法及装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593269A (zh) * 2008-05-29 2009-12-02 汉王科技股份有限公司 人脸识别装置及方法
CN101706721A (zh) * 2009-12-21 2010-05-12 汉王科技股份有限公司 模拟雷达扫描的人脸检测方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100390811C (zh) * 2005-11-03 2008-05-28 中国科学院自动化研究所 实时的从视频中跟踪多个人脸的方法
CN100361138C (zh) * 2005-12-31 2008-01-09 北京中星微电子有限公司 视频序列中人脸的实时检测与持续跟踪的方法及系统
CN101216885A (zh) * 2008-01-04 2008-07-09 中山大学 一种基于视频的行人人脸检测与跟踪算法
CN101587536A (zh) * 2008-05-21 2009-11-25 上海新联纬讯科技发展有限公司 可疑人员跟踪方法与系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593269A (zh) * 2008-05-29 2009-12-02 汉王科技股份有限公司 人脸识别装置及方法
CN101706721A (zh) * 2009-12-21 2010-05-12 汉王科技股份有限公司 模拟雷达扫描的人脸检测方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HANVON CORP: "Use Training of Series Products of Hanvon Face Tong", 10 April 2009 (2009-04-10), Retrieved from the Internet <URL:http://www.hw99.com/faceid/download/> [retrieved on 20110317] *

Also Published As

Publication number Publication date
CN101706721B (zh) 2012-11-28
CN101706721A (zh) 2010-05-12

Similar Documents

Publication Publication Date Title
US10732725B2 (en) Method and apparatus of interactive display based on gesture recognition
US20210011556A1 (en) Virtual user interface using a peripheral device in artificial reality environments
US9395821B2 (en) Systems and techniques for user interface control
CA2880054C (en) Virtual controller for visual displays
US7535463B2 (en) Optical flow-based manipulation of graphical objects
US9367951B1 (en) Creating realistic three-dimensional effects
JP6539816B2 (ja) 1つのシングル・センシング・システムを使用したマルチ・モーダル・ジェスチャー・ベースの対話型のシステム及び方法
US20220398767A1 (en) Pose determining method and apparatus, electronic device, and storage medium
CN116134405A (zh) 用于扩展现实的私有控制接口
JP2004246578A (ja) 自己画像表示を用いたインタフェース方法、装置、およびプログラム
CN109656363A (zh) 一种用于设置增强交互内容的方法与设备
CN110264523A (zh) 一种确定测试图像中的目标图像的位置信息的方法与设备
CN106971370B (zh) 一种基于图片作为背景画平面矢量图的系统及方法
WO2011076098A1 (zh) 模拟雷达扫描的人脸检测方法
CN109147001A (zh) 一种用于呈现虚拟指甲的方法与设备
Liang et al. Turn any display into a touch screen using infrared optical technique
Qin et al. Selecting Real-World Objects via User-Perspective Phone Occlusion
Koutlemanis et al. Tracking of multiple planar projection boards for interactive mixed-reality applications
KR20200108660A (ko) 2차원 카메라를 이용하여 객체 제어를 지원하는 방법, 시스템 및 비일시성의 컴퓨터 판독 가능 기록 매체
Pullan et al. High Resolution Touch Screen Module
CN116030191B (zh) 用于展示虚拟对象的方法、装置、设备及介质
US11226704B2 (en) Projection-based user interface
KR102612591B1 (ko) 객체 인식 기반 디스플레이 제어 장치 및 방법
Rusnak Unobtrusive Multi-User Interaction in Group Collaborative Environments
Wu et al. Research and implementation on multi-touch whiteboard system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10838661

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26/10/2012)

122 Ep: pct application non-entry in european phase

Ref document number: 10838661

Country of ref document: EP

Kind code of ref document: A1