CN102984358A - A camera method and system for a terminal device - Google Patents
A camera method and system for a terminal device Download PDFInfo
- Publication number
- CN102984358A CN102984358A CN2012104464824A CN201210446482A CN102984358A CN 102984358 A CN102984358 A CN 102984358A CN 2012104464824 A CN2012104464824 A CN 2012104464824A CN 201210446482 A CN201210446482 A CN 201210446482A CN 102984358 A CN102984358 A CN 102984358A
- Authority
- CN
- China
- Prior art keywords
- module
- terminal equipment
- threshold values
- values
- proximity transducer
- 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
Links
Images
Landscapes
- Telephone Function (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种拍照方法,特别是涉及一种终端设备的拍照方法及系统。 The present invention relates to a photographing method, in particular to a photographing method and system for a terminal device.
背景技术 Background technique
目前手机拍照的方法都需要用手指点击触摸屏上的软件拍照键位置,或多或少都会因为点击的力道过导致手机震动、歪斜,导致拍照画面不稳,降低照片质量。避免此种情况发生的好办法就是不要碰触手机,防止接触手机表面所导致震动,防止破坏画面的完整性。 At present, the methods of taking pictures with mobile phones all need to click the position of the software camera key on the touch screen with fingers, which will more or less cause the mobile phone to vibrate and tilt due to excessive clicking force, resulting in unstable picture taking pictures and reducing the quality of pictures. A good way to avoid this situation is not to touch the phone, to prevent vibration caused by contact with the surface of the phone, and to prevent damage to the integrity of the screen.
发明内容 Contents of the invention
本发明的目的在于克服现有技术的不足,提供一种终端设备的拍照方法,在手指接近屏幕时,自动拍照,有效防止抖动,提高了拍照质量。 The purpose of the present invention is to overcome the deficiencies of the prior art, and provide a photographing method of terminal equipment, which automatically photographs when a finger approaches the screen, effectively prevents shaking, and improves photographing quality.
为了达到上述目的,本发明采用的技术方案是,一种终端设备的拍照方法,包括以下步骤: In order to achieve the above object, the technical solution adopted in the present invention is a method for taking pictures of a terminal device, comprising the following steps:
a.设置接近传感器的接近传感值阀值; a. Set the proximity sensing value threshold of the proximity sensor;
b.手机进入拍摄界面,启动接近传感器; b. The mobile phone enters the shooting interface and activates the proximity sensor;
c.获取实时接近传感值; c. Obtain real-time proximity sensing value;
d.将实时接近传感值与阀值进行比较,大于阀值则进行拍照,小于阀值则返回步骤c。 d. Compare the real-time proximity sensing value with the threshold value, if it is greater than the threshold value, take a picture, and if it is less than the threshold value, return to step c.
进一步的,步骤a所述的接近传感值为接收器接收反射回来的红外光的能量,接近传感值阀值为系统预设的拍照阀值,为定值,大于阀值则判定为接近拍摄界面,小于阀值则判定为离开拍摄界面。 Further, the proximity sensing value described in step a is the energy of the reflected infrared light received by the receiver, and the proximity sensing value threshold value is the preset camera threshold of the system, which is a fixed value, and if it is greater than the threshold value, it is judged as proximity Shooting interface, if it is less than the threshold, it is judged as leaving the shooting interface.
进一步的,步骤b具体包括: Further, step b specifically includes:
步骤101.打开手机拍照按钮; Step 101. Turn on the camera button of the mobile phone;
步骤102.系统获取该操作命令后,发送开启命令至接近传感器; Step 102. After the system acquires the operation command, it sends an opening command to the proximity sensor;
步骤103. 接近传感器自动启动。 Step 103. The proximity sensor is automatically activated.
进一步的,步骤c具体包括: Further, step c specifically includes:
步骤201.终端设备内置的红外LED灯发射红外光; Step 201. The built-in infrared LED lamp of the terminal device emits infrared light;
步骤202.接收器接收反射回来的红外光的能量; Step 202. The receiver receives the energy of the reflected infrared light;
步骤203.生成接近传感值。 Step 203. Generate proximity sensing values.
进一步的,步骤d所述的将实时接近传感值与阀值进行比较进一步包括至少将实时接近传感值与阀值进行比较一次。 Further, comparing the real-time proximity sensing value with the threshold value in step d further includes comparing the real-time proximity sensing value with the threshold value at least once.
一种终端设备的拍照方法的系统,包括: A system for taking pictures of a terminal device, comprising:
设置模块,用于设置接近传感器的接近传感值阀值; A setting module is used to set the proximity sensing value threshold of the proximity sensor;
拍照模块,用于手机进入拍摄界面,启动接近传感器; The camera module is used for the mobile phone to enter the shooting interface and activate the proximity sensor;
获取模块,获取实时接近传感值; Get the module to get the real-time proximity sensor value;
比较模块,用于将实时接近传感值与阀值进行比较。 The comparison module is used for comparing the real-time proximity sensing value with the threshold value.
进一步的,所述的拍照模块进一步包括: Further, the camera module further includes:
启动模块,用于打开手机拍照按钮,并将打开操作发送至系统主芯片; The startup module is used to open the camera button of the mobile phone, and send the opening operation to the main chip of the system;
系统主芯片包括获取模块、发送模块; The main chip of the system includes an acquisition module and a sending module;
系统获取模块,设置于系统主芯片内,用于获取手机拍照按钮打开操作; The system acquisition module is set in the main chip of the system and is used to acquire the opening operation of the camera button of the mobile phone;
系统发送模块,用于发送开启命令至接近传感器; The system sending module is used to send the opening command to the proximity sensor;
接近传感器用于在收到开启命令后自动启动。 Proximity sensors are used for automatic activation upon receipt of an open command.
进一步的,所述的获取模块进一步包括: Further, the acquisition module further includes:
发射模块,用于终端设备内置的红外LED灯发射红外光; The transmitting module is used for emitting infrared light from the built-in infrared LED lamp of the terminal equipment;
接收模块,用于接收器接收反射回来的红外光的能量; The receiving module is used for the receiver to receive the energy of the reflected infrared light;
生成模块,生成接近传感值。 Generate module to generate proximity sensing values.
与现有技术相比,本发明的有益效果是:在手指接近屏幕时,接近传感器通过感应人体的接近或远离,在接近时进行自动拍照,有效防止抖动,提高了拍照质量。 Compared with the prior art, the beneficial effect of the present invention is that when a finger approaches the screen, the proximity sensor senses the approach or distance of the human body, automatically takes pictures when approaching, effectively prevents shaking, and improves the quality of pictures.
附图说明 Description of drawings
图1为本发明的方法流程图。 Fig. 1 is method flowchart of the present invention.
具体实施方式 Detailed ways
下面结合实施例参照附图进行详细说明,以便对本发明的技术特征及优点进行更深入的诠释。 The following will describe in detail with reference to the accompanying drawings in conjunction with the embodiments, so as to further explain the technical features and advantages of the present invention.
本发明的方法流程图如图1所示,一种终端设备的拍照方法,包括以下步骤: The method flow chart of the present invention is shown in Figure 1, a kind of photographing method of terminal equipment, comprises the following steps:
a.设置接近传感器的接近传感值阀值,接近传感能够检测终端设备红外LED发射的红外光被外界反射回来的能量高低来判断物体接近或离开。步骤a所述的接近传感值为接收器接收反射回来的红外光的能量,接近传感值阀值为系统预设的拍照阀值,为定值,大于阀值则判定为接近拍摄界面,小于阀值则判定为离开拍摄界面。 a. Set the proximity sensing value threshold of the proximity sensor. The proximity sensor can detect the energy level of the infrared light emitted by the infrared LED of the terminal device and reflected back from the outside to judge whether the object is approaching or leaving. The proximity sensing value described in step a is the energy of the reflected infrared light received by the receiver, and the proximity sensing value threshold value is the preset camera threshold value of the system, which is a fixed value. If it is greater than the threshold value, it is determined to be close to the shooting interface. If it is less than the threshold, it is judged as leaving the shooting interface.
b.手机进入拍摄界面,启动接近传感器,本发明所用的接近传感器,是代替限位开关等接触式检测方式,以无需接触检测对象进行检测为目的的传感器的总称。能检测对象的移动信息和存在信息转换为电气信号。在换为电气信号的检测方式中,包括利用电磁感应引起的检测对象的金属体中产生的涡电流的方式、捕测体的接近引起的电气信号的容量变化的方式、利石和引导开关的方式。步骤b具体包括:步骤101.打开手机拍照按钮;步骤102.系统获取该操作命令后,发送开启命令至接近传感器;步骤103. 接近传感器自动启动。 b. The mobile phone enters the shooting interface and activates the proximity sensor. The proximity sensor used in the present invention is a general term for sensors that replace contact detection methods such as limit switches and detect without touching the detection object. The movement information and presence information of the detected object can be converted into electrical signals. Among the detection methods replaced by electrical signals, there are methods that use electromagnetic induction to generate eddy currents generated in the metal object of the detection object, methods that use the capacity change of electrical signals caused by the approach of the object to be detected, and methods that use lithium stones and guide switches. . Step b specifically includes: Step 101. Turn on the camera button of the mobile phone; Step 102. After the system obtains the operation command, it sends an opening command to the proximity sensor; Step 103. The proximity sensor starts automatically.
c.获取实时接近传感值;步骤c具体包括:步骤201.终端设备内置的红外LED灯发射红外光;步骤202.接收器接收反射回来的红外光的能量;步骤203.生成接近传感值。接近传感能够检测手机红外LED发射的红外光被外界反射回来的能量高低,通过能量高低来判断物体接近或离开。 c. Acquire real-time proximity sensing values; Step c specifically includes: Step 201. The built-in infrared LED lamp of the terminal device emits infrared light; Step 202. The receiver receives the energy of the reflected infrared light; Step 203. Generates proximity sensing values . The proximity sensor can detect the energy level of the infrared light emitted by the infrared LED of the mobile phone and reflected back by the outside world, and judge the approach or departure of the object through the energy level.
d.将实时接近传感值与阀值进行比较,大于阀值则进行拍照,小于阀值则返回步骤c。步骤d所述的将实时接近传感值与阀值进行比较进一步包括至少将实时接近传感值与阀值进行比较一次。例如,当获取一次接近传感值的实时值大于阀值时,准备拍照,在拍摄前再次获取一次实时值,如果仍然大于阀值,则认为物体接近稳定,进行拍照,避免了误操作,提高了拍照准确率,当然,两次获取实时值之间的间隔时间很短,为毫秒级获取间隔。 d. Compare the real-time proximity sensing value with the threshold value, if it is greater than the threshold value, take a picture, and if it is less than the threshold value, return to step c. The comparing the real-time proximity sensing value with the threshold in step d further includes comparing the real-time proximity sensing value with the threshold at least once. For example, when the real-time value of the proximity sensing value obtained once is greater than the threshold value, prepare to take pictures, and obtain the real-time value again before shooting. If it is still greater than the threshold value, it is considered that the object is close to stable and the photo is taken, which avoids misoperation and improves In order to ensure the accuracy of taking photos, of course, the interval between two acquisitions of real-time values is very short, which is the interval of milliseconds.
一种终端设备的拍照方法的系统,包括:设置模块,用于设置接近传感器的接近传感值阀值;拍照模块,用于手机进入拍摄界面,启动接近传感器;获取模块,获取实时接近传感值;比较模块,用于将实时接近传感值与阀值进行比较。 A system of a photographing method for a terminal device, comprising: a setting module for setting the proximity sensing value threshold of a proximity sensor; a photographing module for a mobile phone to enter a shooting interface and start the proximity sensor; an acquisition module for obtaining real-time proximity sensing value; comparison module for comparing the real-time proximity sensing value with the threshold value.
进一步的,所述的拍照模块进一步包括:启动模块,用于打开手机拍照按钮,并将打开操作发送至系统主芯片;系统主芯片包括获取模块、发送模块;系统获取模块,设置于系统主芯片内,用于获取手机拍照按钮打开操作;系统发送模块,用于发送开启命令至接近传感器;接近传感器用于在收到开启命令后自动启动。 Further, the camera module further includes: a startup module, which is used to open the camera button of the mobile phone, and sends the opening operation to the system main chip; the system main chip includes an acquisition module and a sending module; a system acquisition module, which is arranged on the system main chip Inside, it is used to obtain the opening operation of the camera button of the mobile phone; the system sending module is used to send the opening command to the proximity sensor; the proximity sensor is used to automatically start after receiving the opening command.
进一步的,所述的获取模块进一步包括:发射模块,用于终端设备内置的红外LED灯发射红外光;接收模块,用于接收器接收反射回来的红外光的能量;生成模块,生成接近传感值。 Further, the acquisition module further includes: a transmitting module, used for the built-in infrared LED lamp of the terminal device to emit infrared light; a receiving module, used for the receiver to receive the energy of the reflected infrared light; a generating module, used to generate proximity sensing value.
本发明的较佳实施例,实施步骤如下: Preferred embodiment of the present invention, implementation steps are as follows:
步骤1、进入拍摄界面,启动接近传感器; Step 1. Enter the shooting interface and activate the proximity sensor;
步骤2、设置接近传感器阀值y; Step 2, setting the proximity sensor threshold y;
步骤3、读取当前接近传感值i; Step 3, read the current proximity sensor value i;
步骤4、判断是否i>y,是则执行下一步,否则返回步骤3; Step 4. Determine whether i>y, if yes, execute the next step, otherwise return to step 3;
步骤5、启动拍照功能; Step 5. Start the camera function;
步骤6、再次获取当前接近传感器i; Step 6. Obtain the current proximity sensor i again;
步骤7、判断是否i<y,是则拍照,否则返回步骤3。 Step 7. Determine whether i<y, if yes, take a picture, otherwise return to step 3.
以上内容是结合具体的优选方式对本发明所作的进一步详细说明,不应认定本发明的具体实施只局限于以上说明。对于本技术领域的技术人员而言,在不脱离本发明构思的前提下,还可以作出若干简单推演或替换,均应视为由本发明所提交的权利要求确定的保护范围之内。 The above content is a further detailed description of the present invention in combination with specific preferred modes, and it should not be deemed that the specific implementation of the present invention is limited to the above description. For those skilled in the art, on the premise of not departing from the concept of the present invention, some simple deduction or replacement can also be made, which should be regarded as within the scope of protection determined by the claims submitted in the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104464824A CN102984358A (en) | 2012-11-09 | 2012-11-09 | A camera method and system for a terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104464824A CN102984358A (en) | 2012-11-09 | 2012-11-09 | A camera method and system for a terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102984358A true CN102984358A (en) | 2013-03-20 |
Family
ID=47858085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104464824A Pending CN102984358A (en) | 2012-11-09 | 2012-11-09 | A camera method and system for a terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102984358A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103645840A (en) * | 2013-12-11 | 2014-03-19 | 广东步步高电子工业有限公司 | Shooting system and method on mobile terminal |
CN104104856A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Image acquisition method and device and electronic device |
CN105827938A (en) * | 2015-09-17 | 2016-08-03 | 维沃移动通信有限公司 | Photographing method and terminal |
CN107566716A (en) * | 2017-08-02 | 2018-01-09 | 努比亚技术有限公司 | Adjusting method, terminal and the computer-readable recording medium of camera acquisition parameter |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055844A (en) * | 2010-11-15 | 2011-05-11 | 惠州Tcl移动通信有限公司 | Method for realizing camera shutter function by means of gesture recognition and |
US7986874B2 (en) * | 2009-12-30 | 2011-07-26 | Chi Mei Communication Systems, Inc. | Camera device and method for taking photos |
CN102158645A (en) * | 2011-01-11 | 2011-08-17 | 华为终端有限公司 | Shooting control method, shooting control device and photographic device |
CN102595044A (en) * | 2011-01-12 | 2012-07-18 | 宏碁股份有限公司 | Electronic device with anti-shake photographing function and photographing method thereof |
-
2012
- 2012-11-09 CN CN2012104464824A patent/CN102984358A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7986874B2 (en) * | 2009-12-30 | 2011-07-26 | Chi Mei Communication Systems, Inc. | Camera device and method for taking photos |
CN102055844A (en) * | 2010-11-15 | 2011-05-11 | 惠州Tcl移动通信有限公司 | Method for realizing camera shutter function by means of gesture recognition and |
CN102158645A (en) * | 2011-01-11 | 2011-08-17 | 华为终端有限公司 | Shooting control method, shooting control device and photographic device |
CN102595044A (en) * | 2011-01-12 | 2012-07-18 | 宏碁股份有限公司 | Electronic device with anti-shake photographing function and photographing method thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104104856A (en) * | 2013-04-09 | 2014-10-15 | 腾讯科技(深圳)有限公司 | Image acquisition method and device and electronic device |
CN104104856B (en) * | 2013-04-09 | 2016-08-10 | 腾讯科技(深圳)有限公司 | Image-pickup method, device and electronic equipment |
US9621806B2 (en) | 2013-04-09 | 2017-04-11 | Tencent Technology (Shenzhen) Company Limited | Image capturing method, apparatus, and electronic device |
CN103645840A (en) * | 2013-12-11 | 2014-03-19 | 广东步步高电子工业有限公司 | Shooting system and method on mobile terminal |
CN105827938A (en) * | 2015-09-17 | 2016-08-03 | 维沃移动通信有限公司 | Photographing method and terminal |
CN107566716A (en) * | 2017-08-02 | 2018-01-09 | 努比亚技术有限公司 | Adjusting method, terminal and the computer-readable recording medium of camera acquisition parameter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100452B (en) | A kind of method and device of smart machine flashlight control | |
CN111434129B (en) | Method for controlling express cabinet based on express message and electronic equipment | |
CN103079036B (en) | A kind of photographic camera and method thereof entering screening-mode fast | |
KR102165818B1 (en) | Method, apparatus and recovering medium for controlling user interface using a input image | |
RU2612031C2 (en) | Method of controlling photography and corresponding device | |
CN107220592B (en) | Optical fingerprint acquisition method and related product | |
CN103973986B (en) | A kind of focusing and its Shot change method based on mobile terminal camera | |
US9413939B2 (en) | Apparatus and method for controlling a camera and infrared illuminator in an electronic device | |
CN105278655B (en) | The control method and device of fingerprint sensor | |
WO2017088579A1 (en) | Fingerprint identification method and apparatus | |
JP6105953B2 (en) | Electronic device, line-of-sight input program, and line-of-sight input method | |
WO2022110614A1 (en) | Gesture recognition method and apparatus, electronic device, and storage medium | |
CN106959761B (en) | Terminal photographing method and device and terminal | |
CN103618832B (en) | A kind of information cuing method for mobile terminal and terminal | |
CN109348135A (en) | Photographing method and device, storage medium and terminal equipment | |
CN107153818A (en) | Optical finger print verification method and Related product | |
WO2017128723A1 (en) | Method and device for acquiring position information | |
KR101322465B1 (en) | Method and apparatus for taking a self camera recording | |
CN110505549A (en) | The control method and device of earphone | |
CN107145886A (en) | Optical fingerprint collection method and related products | |
WO2014023217A1 (en) | Image capturing method and mobile terminal | |
CN104780316A (en) | Camera starting detection method and camera starting detection device | |
CN103399642A (en) | Screen awakening control method and terminal | |
CN107807772A (en) | Image processing method, device and mobile terminal | |
CN102984358A (en) | A camera method and system for a terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130320 |