CN106331336A - 一种自动设置拍摄模式的装置 - Google Patents

一种自动设置拍摄模式的装置 Download PDF

Info

Publication number
CN106331336A
CN106331336A CN201610703268.0A CN201610703268A CN106331336A CN 106331336 A CN106331336 A CN 106331336A CN 201610703268 A CN201610703268 A CN 201610703268A CN 106331336 A CN106331336 A CN 106331336A
Authority
CN
China
Prior art keywords
module
mode
subregion
shooting mode
accounting
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201610703268.0A
Other languages
English (en)
Inventor
劳诚山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Meiyada Photoelectric Technology Co Ltd
Original Assignee
Sichuan Meiyada Photoelectric Technology Co Ltd
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 Sichuan Meiyada Photoelectric Technology Co Ltd filed Critical Sichuan Meiyada Photoelectric Technology Co Ltd
Priority to CN201610703268.0A priority Critical patent/CN106331336A/zh
Publication of CN106331336A publication Critical patent/CN106331336A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种自动设置拍摄模式的装置,目的在于解决传统算法复杂,CPU开销过大等问题。区域划分模块:对像头采集的图像进行矩阵划分,得到N*M子区域;人脸识别模块:识别图像中的所有人脸;占比分析模块:统计包含有人脸信息的子区域区域的个数H,并计算包含人脸信息的子区域占比:β=H/(N*M);拍摄模式切换模块:当β大于阈值γ时,拍摄模式切换为人物主题模式,当β小于阈值γ时切换为非人物主题模式。

Description

一种自动设置拍摄模式的装置
技术领域
本发明涉及手机屏幕解锁技术领域,提供了一种自动设置拍摄模式的装置。
背景技术
随着智能手机的普及,手机拍照功能几乎涵盖了所有智能手机,但是很多老年用户对手机牌子模式的设置比较陌生,基本不会设置拍照模式,因此拍照效果不理想,为此现有技术也提出了一些根据环境进行自动设置拍照模式的方法,但是其算法复杂,对于普通安卓手机来说CPU开销过大,容易出现卡顿现象。
发明内容
本发明的目的在于解决传统算法复杂,CPU开销过大等问题。
本发明为了实现上述目的采用以下技术方案:
一种自动设置拍摄模式的装置,其特征在于包括:
区域划分模块:对像头采集的图像进行矩阵划分,得到N*M子区域;
人脸识别模块:识别图像中的所有人脸;
占比分析模块:统计包含有人脸信息的子区域区域的个数H,并计算包含人脸信息的子区域占比:β=H/(N*M);
拍摄模式切换模块:当β大于阈值γ时,拍摄模式切换为人物主题模式,当β小于阈值γ时切换为非人物主题模式。
上述技术方案中,占比分析模块具体采用以下方法:
对识别图像中的人脸做最小矩形,并对矩形区域RGB设置为255,255,255,即为纯白色,然后统计RGB为255,255,255的子区域个数H,并计算包含人脸信息的子区域占比:β=H/(N*M)。
综上所述,由于采用了上述技术方案,本发明的有益效果是:
本发明步骤简单,原理简单,只需在现有的手机算法上增加将人脸矩形方框RGB设置成255,255,255,即纯白色,然后对被设置为纯白色的子区域数量进行统计,然后计算其与整个子区域的占比,即可得到人脸所占百分比,方便简单,CPU开销小。
具体实施方式
本说明书中公开的所有特征,或公开的所有方法或过程中的步骤,除了互相排斥的特征和/或步骤以外,均可以以任何方式组合。
一种自动设置拍摄模式的装置,其特征在于包括:
区域划分模块:对像头采集的图像进行矩阵划分,得到N*M子区域;
人脸识别模块:识别图像中的所有人脸;
占比分析模块:统计包含有人脸信息的子区域区域的个数H,并计算包含人脸信息的子区域占比:β=H/(N*M);
拍摄模式切换模块:当β大于阈值γ时,拍摄模式切换为人物主题模式,当β小于阈值γ时切换为非人物主题模式。
上述技术方案中,占比分析模块具体采用以下方法:
对识别图像中的人脸做最小矩形,并对矩形区域RGB设置为255,255,255,即为纯白色,然后统计RGB为255,255,255的子区域个数H,并计算包含人脸信息的子区域占比:β=H/(N*M)。
实施例1
摄像头采集图像,将图像划分为50*50个子区域,然后人脸识别模块识别图像中的人脸,并采用最小矩形框框选人脸,并将矩形框RGB设置为255,255,255,然后对被设置为纯白色的子区域数量进行统计,然后计算其与整个子区域的占比,当β大于阈值γ时,拍摄模式切换为人物主题模式,当β小于阈值γ时切换为非人物主题模式。即可得到人脸所占百分比,方便简单,CPU开销小。

Claims (2)

1.一种自动设置拍摄模式的装置,其特征在于包括:
区域划分模块:对像头采集的图像进行矩阵划分,得到N*M子区域;
人脸识别模块:识别图像中的所有人脸;
占比分析模块:统计包含有人脸信息的子区域区域的个数H,并计算包含人脸信息的子区域占比:β=H/(N*M);
拍摄模式切换模块:当β大于阈值γ时,拍摄模式切换为人物主题模式,当β小于阈值γ时切换为非人物主题模式。
2.根据权利要求1所述的一种自动设置拍摄模式的装置,其特征在于:占比分析模块具体采用以下方法:
对识别图像中的人脸做最小矩形,并对矩形区域RGB设置为255,255,255,即为纯白色,然后统计RGB为255,255,255的子区域个数H,并计算包含人脸信息的子区域占比:β=H/(N*M)。
CN201610703268.0A 2016-08-22 2016-08-22 一种自动设置拍摄模式的装置 Pending CN106331336A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610703268.0A CN106331336A (zh) 2016-08-22 2016-08-22 一种自动设置拍摄模式的装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610703268.0A CN106331336A (zh) 2016-08-22 2016-08-22 一种自动设置拍摄模式的装置

Publications (1)

Publication Number Publication Date
CN106331336A true CN106331336A (zh) 2017-01-11

Family

ID=57741748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610703268.0A Pending CN106331336A (zh) 2016-08-22 2016-08-22 一种自动设置拍摄模式的装置

Country Status (1)

Country Link
CN (1) CN106331336A (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111754A (zh) * 2017-12-18 2018-06-01 维沃移动通信有限公司 一种确定图像采集模式的方法及移动终端
CN112188075A (zh) * 2019-07-05 2021-01-05 杭州海康威视数字技术股份有限公司 抓拍机、图像处理设备及图像处理方法
US11108953B2 (en) 2017-08-18 2021-08-31 Huawei Technologies Co., Ltd. Panoramic photo shooting method and apparatus
US11169688B2 (en) 2017-09-29 2021-11-09 Huawei Technologies Co., Ltd. Message processing method, message viewing method, and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11108953B2 (en) 2017-08-18 2021-08-31 Huawei Technologies Co., Ltd. Panoramic photo shooting method and apparatus
US11169688B2 (en) 2017-09-29 2021-11-09 Huawei Technologies Co., Ltd. Message processing method, message viewing method, and terminal
CN108111754A (zh) * 2017-12-18 2018-06-01 维沃移动通信有限公司 一种确定图像采集模式的方法及移动终端
CN108111754B (zh) * 2017-12-18 2021-03-12 维沃移动通信有限公司 一种确定图像采集模式的方法及移动终端
CN112188075A (zh) * 2019-07-05 2021-01-05 杭州海康威视数字技术股份有限公司 抓拍机、图像处理设备及图像处理方法

Similar Documents

Publication Publication Date Title
CN106331336A (zh) 一种自动设置拍摄模式的装置
US10715773B2 (en) Method and system of lens shading color correction using block matching
KR102169431B1 (ko) 이미지들의 시퀀스 중의 이미지에서의 객체 경계 안정화를 위한 이미지 처리 장치 및 방법
WO2020034896A1 (en) Method and apparatus for image processing, and mobile terminal
US10185879B2 (en) Image processing device
US20170339409A1 (en) Fast and robust human skin tone region detection for improved video coding
CN109639982A (zh) 一种图像降噪方法、装置、存储介质及终端
US10237490B2 (en) Shooting method and shooting device for dynamic image
US10217243B2 (en) Method, system and apparatus for modifying a scene model
US9390511B2 (en) Temporally coherent segmentation of RGBt volumes with aid of noisy or incomplete auxiliary data
EP3544286B1 (en) Focusing method, device and storage medium
WO2017034220A1 (en) Method of automatically focusing on region of interest by an electronic device
Ghazali et al. An innovative face detection based on skin color segmentation
CN103402102A (zh) 双摄像头摄像系统及其白平衡调节的方法与装置
CN102694969A (zh) 图像处理装置和图像处理方法
US20150332471A1 (en) User hand detecting device for detecting user's hand region and method thereof
CN106097354B (zh) 一种结合自适应高斯肤色检测和区域生长的手部图像分割方法
WO2021077878A1 (zh) 图像处理方法、装置及电子设备
US8896747B2 (en) Depth estimation based on interpolation of inverse focus statistics
US11967129B2 (en) Multi-camera device
CN112930677B (zh) 用于在第一镜头和第二镜头之间切换的方法和电子设备
JP2015069234A (ja) 表示処理装置、並びにその制御方法および制御プログラム
CN106022236A (zh) 一种基于人体轮廓的动作识别方法
CN108830820A (zh) 电子装置、图像采集方法和计算机可读存储介质
CN106303245A (zh) 一种自动设置拍摄模式的方法

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170111

WD01 Invention patent application deemed withdrawn after publication