WO2018119554A1 - 一种智能终端相机控制方法 - Google Patents

一种智能终端相机控制方法 Download PDF

Info

Publication number
WO2018119554A1
WO2018119554A1 PCT/CN2016/112026 CN2016112026W WO2018119554A1 WO 2018119554 A1 WO2018119554 A1 WO 2018119554A1 CN 2016112026 W CN2016112026 W CN 2016112026W WO 2018119554 A1 WO2018119554 A1 WO 2018119554A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
smart terminal
control method
micro
value
Prior art date
Application number
PCT/CN2016/112026
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 上海传英信息技术有限公司
Priority to PCT/CN2016/112026 priority Critical patent/WO2018119554A1/zh
Publication of WO2018119554A1 publication Critical patent/WO2018119554A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices

Definitions

  • the present invention relates to the field of intelligent terminal control, and in particular, to a smart terminal camera control method.
  • an object of the present invention is to provide a smart terminal camera control method that can accurately acquire code values of close-range and distant views even if the camera consistency of the smart terminal is different.
  • the invention discloses a smart terminal camera control method, which comprises the following steps:
  • Step 1 Start the smart terminal, read the OTP in the camera sensor to burn the micro and infinity values of the camera, and write into a file node;
  • Step 2 Start the camera
  • Step 3 reading the micro and infinity values from the file node
  • Step 4 Split the micro and infinity values to a required number of copies, and assign the required number of copies to a camera position key value in the smart terminal system.
  • the file node is located on a sys/class/focus/focus/focus_level path of the smart terminal system.
  • the micro and infinity values are split according to an arithmetic progression column.
  • the camera position key value is pref_camera_afeng_pos_key.
  • step 2 the method further includes: step 2': initializing a list preference option in the smart terminal system.
  • the method further includes:
  • Step 5 Determine whether the smart terminal is started for the first time. If yes, go to step 3. If no, go to step 4.
  • micro and infinity values are stored in the static variables min_value and max_value.
  • Any camera in any brand of intelligent terminal can automatically obtain the micro and infinity values of the motor to improve consistency
  • FIG. 1 is a flow chart showing a method of managing a camera in accordance with a preferred embodiment of the present invention.
  • the present invention provides a smart terminal camera control method, which is implemented by the following steps:
  • Step 1 Start the smart terminal, so that the system of the smart terminal reads the OTP in the camera sensor, and burns the micro and infinity values of the read camera into the OTP after the smart terminal is started.
  • the micro and infinity values of the camera preset have been recorded, and the micro and infinity values of the burn can be recalled when the camera is subsequently enabled. After the burn is complete, the micro and infinity values are written to the file node for subsequent calls.
  • Step 2 After the file node is formed, start the camera
  • Step 3 The camera reads the micro and infinity values from the file node to invoke to correct the difference between the close-up and the distant view of the different camera modules during assembly.
  • Step 4 After obtaining the micro and infinity values, the minimum and maximum values formed by the micro and infinity values are split and decomposed into multiple data values, and the multiple data values are finally assigned to the required number of copies to
  • the camera position key value in the smart terminal system for example, pref_camera_afeng_pos_key.
  • the minimum and maximum values formed for the micro and infinity values, and the required number of copies are determined according to the accuracy, and are split in the form of an arithmetic progression to form a stepped close-range and distant view code value, so that the camera can select among these values. , fixed and consistent shooting parameters of different cameras.
  • the file node is located in the sys/class/focus/focus/focus_level path of the intelligent terminal system, and is directly written into the system to reduce the call parameters. Counts the use of system memory and speeds up the call.
  • step 2 the method further includes:
  • Step 2' Initialize the list preference option in the smart terminal system to re-determine the optional content of the list preference option listpreference, replacing the original close-range and distant focus parameters.
  • step 2' and step 3 the method further includes:
  • Step 5 Determine whether the smart terminal is started for the first time. If yes, execute step 3 to store the micro and infinity values in the static variables min_value and max_value to burn the micro and infinity values into the system. If not, perform the steps directly. 4. The steps of splitting the micro and infinity values by the required number of copies of the existing static variables min_value and max_value in the system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

本发明提供了一种智能终端相机控制方法,包括以下步骤:步骤1:启动智能终端,读取相机传感器内OTP,以烧录所述相机的micro和infinity值,并写入一文件节点内;步骤2:启动相机;步骤3:自所述文件节点内读取所述micro和infinity值;步骤4:分拆所述micro和infinity值至一需求份数,并将所述需求份数赋值至智能终端***内的相机位置key值。采用上述技术方案后,能自动准确获得每颗镜头马达对应最小值及最大值,即便智能终端的相机一致性不同,也可准确地获取近景和远景的code值。

Description

一种智能终端相机控制方法 技术领域
本发明涉及智能终端控制领域,尤其涉及一种智能终端相机控制方法。
技术背景
目前安卓手机随着CPU性能的提升,相机像素的增加,使得用户可以使用普通相机拍出比较专业的图片。
目前,在相机使用时,经常发现在专业模式下,滑动到无穷远预览10米之外的景物时,并不能做到预览最清晰,原因是镜头马达从最小值变化为最大值时,两者的code值相差较大,一致性差。由于原先的最小值和最大值为预先设置,这样在不同的智能终端中,成像效果大相径庭。
因此,需要一种新型智能终端相机控制方法,能自动准确获得每颗镜头马达对应最小值及最大值。
发明概要
为了克服上述技术缺陷,本发明的目的在于提供一种智能终端相机控制方法,即便智能终端的相机一致性不同,也可准确地获取近景和远景的code值。
本发明公开了一种智能终端相机控制方法,包括以下步骤:
步骤1:启动智能终端,读取相机传感器内OTP,以烧录所述相机的micro和infinity值,并写入一文件节点内;
步骤2:启动相机;
步骤3:自所述文件节点内读取所述micro和infinity值;
步骤4:分拆所述micro和infinity值至一需求份数,并将所述需求份数赋值至智能终端***内的相机位置key值。
优选地,所述文件节点位于所述智能终端***的sys/class/focus/focus/focus_level路径上。
优选地,所述步骤4中,根据等差数列拆分所述micro和infinity值。
优选地,所述相机位置key值为pref_camera_afeng_pos_key。
优选地,所述步骤2和步骤3间,还包括:步骤2’:初始化智能终端***内的列表偏好选项。
优选地,所述控制方法的步骤2’和步骤3间还包括:
步骤5:判断智能终端是否首次启动,若是,则执行步骤3,若否,则执行步骤4。
优选地,所述micro和infinity值存储与static变量min_value和max_value中。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.任意品牌的智能终端内的任意相机可自动获取马达的micro和infinity值,提高了一致性;
2.照片成像效果内的景深和锁附深度更佳。
附图说明
图1为符合本发明一优选实施例中相机管理方法的流程示意图。
发明内容
以下结合附图与具体实施例进一步阐述本发明的优点。
参阅图1,本发明提供了一种智能终端相机控制方法,并通过以下步骤执行实现:
步骤1:对智能终端开机启动,使得智能终端的***读取相机传感器内的OTP,并将读取后的相机的micro和infinity值烧录至其内,则在智能终端启动后的OTP内,已记录有相机预设的micro和infinity值,相机在后续启用时,可调用烧录的micro和infinity值。在烧录完成后,将把该micro和infinity值写入文件节点内,以供后续调用。
步骤2:文件节点形成后,启动相机;
步骤3:相机自文件节点读取micro和infinity值,以调用,以矫正不同相机模组在组装时对近景和远景的差异值。
步骤4:获取了micro和infinity值后,对micro和infinity值形成的最小值和最大值进行拆分,分解成多份数据值,这些多份数据值将以一需求份数的形式最终赋值至智能终端***内的相机位置key值处,例如pref_camera_afeng_pos_key。针对micro和infinity值形成的最小值和最大值,并根据准度决定需求份数,以等差数列的形式拆分,可形成具有阶梯度近景和远景code值,使得相机可在这些值中选择,固定化一致化不同相机的拍摄参数。
可以理解的是,上述步骤4中,若决定拆分的等差数列的公差越小,需求份数将越大,相机取景的准度效果也将越好。
在一优选实施例中,文件节点位于智能终端***的sys/class/focus/focus/focus_level路径上,直接地写入***内部,减少调用参 数时对***内存的占用,并加快了调用的速度。
优选或可选地,步骤2和步骤3间,还包括了:
步骤2’:在智能终端***内初始化列表偏好选项,以重新确定列表偏好选项listpreference的可选内容,替换原有的近景和远景对焦参数。
进而,步骤2’和步骤3间还包括:
步骤5:判断智能终端是否首次启动,若是,则执行步骤3,将micro和infinity值存储与static变量min_value和max_value中,以将micro和infinity值烧录至***内,若否,则直接执行步骤4,对***内已有的static变量min_value和max_value进行按需求份数拆分micro和infinity值的步骤。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。

Claims (7)

  1. 一种智能终端相机控制方法,其特征在于,包括以下步骤:
    步骤1:启动智能终端,读取相机传感器内OTP,以烧录所述相机的micro和infinity值,并写入一文件节点内;
    步骤2:启动相机;
    步骤3:自所述文件节点内读取所述micro和infinity值;
    步骤4:分拆所述micro和infinity值至一需求份数,并将所述需求份数赋值至智能终端***内的相机位置key值。
  2. 如权利要求1所述的智能终端相机控制方法,其特征在于,
    所述文件节点位于所述智能终端***的sys/class/focus/focus/focus_level路径上。
  3. 如权利要求1所述的智能终端相机控制方法,其特征在于,
    所述步骤4中,根据等差数列拆分所述micro和infinity值。
  4. 如权利要求1所述的智能终端相机控制方法,其特征在于,
    所述相机位置key值为pref_camera_afeng_pos_key。
  5. 如权利要求1所述的智能终端相机控制方法,其特征在于,
    所述步骤2和步骤3间,还包括:
    步骤2’:初始化智能终端***内的列表偏好选项。
  6. 如权利要求5所述的智能终端相机控制方法,其特征在于,
    所述控制方法的步骤2’和步骤3间还包括:
    步骤5:判断智能终端是否首次启动,若是,则执行步骤3,若否,则执行步骤4。
  7. 如权利要求1所述的智能终端相机控制方法,其特征在于,
    所述micro和infinity值存储于static变量min_value和max_value中。
PCT/CN2016/112026 2016-12-26 2016-12-26 一种智能终端相机控制方法 WO2018119554A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112026 WO2018119554A1 (zh) 2016-12-26 2016-12-26 一种智能终端相机控制方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112026 WO2018119554A1 (zh) 2016-12-26 2016-12-26 一种智能终端相机控制方法

Publications (1)

Publication Number Publication Date
WO2018119554A1 true WO2018119554A1 (zh) 2018-07-05

Family

ID=62707609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112026 WO2018119554A1 (zh) 2016-12-26 2016-12-26 一种智能终端相机控制方法

Country Status (1)

Country Link
WO (1) WO2018119554A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689095A (zh) * 2020-12-29 2021-04-20 上海摩勤智能技术有限公司 一种相机传感器对焦数据校准的方法及相机传感器

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019950A (zh) * 2012-12-28 2013-04-03 信利光电(汕尾)有限公司 一次性可编程芯片的空间分配方法、使用方法,及装置
WO2016000874A1 (en) * 2014-07-01 2016-01-07 Fotonation Limited A method for calibrating an image capture device
CN105988282A (zh) * 2015-11-08 2016-10-05 乐视移动智能信息技术(北京)有限公司 相机模组故障检测方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019950A (zh) * 2012-12-28 2013-04-03 信利光电(汕尾)有限公司 一次性可编程芯片的空间分配方法、使用方法,及装置
WO2016000874A1 (en) * 2014-07-01 2016-01-07 Fotonation Limited A method for calibrating an image capture device
CN105988282A (zh) * 2015-11-08 2016-10-05 乐视移动智能信息技术(北京)有限公司 相机模组故障检测方法及装置

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"android mtk6732 camera otp - info5 - IT610.com", VASVAS, 5 September 2014 (2014-09-05), XP055507358, Retrieved from the Internet <URL:http://www.it610.com/article/3818795.htm> *
ERIC WANG, CAMERA OTP, 17 December 2012 (2012-12-17), Retrieved from the Internet <URL:http://blog.csdn.net/sbaini/article/details/8306910> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689095A (zh) * 2020-12-29 2021-04-20 上海摩勤智能技术有限公司 一种相机传感器对焦数据校准的方法及相机传感器

Similar Documents

Publication Publication Date Title
US9589209B2 (en) Training image adjustment preferences
US8983176B2 (en) Image selection and masking using imported depth information
CN101795355B (zh) 成像设备及图像处理方法
CN108174097B (zh) 图片拍摄、拍摄参数提供方法及装置
EP3127323A1 (en) Method and apparatus for controlling image capture
WO2017076000A1 (zh) 夜景拍照方法、装置及移动终端
US9781293B2 (en) Apparatus and method for managing image files by displaying backup information
US9258458B2 (en) Displaying an image with an available effect applied
WO2019119986A1 (zh) 图像处理方法、装置、计算机可读存储介质和电子设备
CN102104709A (zh) 相机拍摄图像的处理方法及相机
US20140241592A1 (en) Systems and Methods for Automatic Image Editing
CN111432134A (zh) 图像采集设备的曝光时间的确定方法、确定装置与处理器
WO2018119554A1 (zh) 一种智能终端相机控制方法
CN105681645A (zh) 防抖拍照方法、装置及移动终端
US20230070365A1 (en) User interface for modifying pictures
JP6132343B2 (ja) 画像処理装置、画像処理方法、及びプログラム
EP2811732B1 (en) Image processing apparatus, image processing method, computer-readable storage medium and program
US8629925B2 (en) Image processing apparatus, image processing method, and computer program
CN114266694A (zh) 图像处理方法、设备及计算机存储介质
KR20180065438A (ko) 실시간 디지털 후반 처리 방법
JP2008035388A (ja) 撮像装置
CN113542705B (zh) 无边界式投影控制方法
CN106803885A (zh) 一种基于智能终端***相机功能的调试处理方法
JP5807695B2 (ja) 被写体検出装置、被写体検出方法及びプログラム
Andrews et al. Raw workflow from capture to archives: a complete digital photographer's guide to raw imaging

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: 16925061

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 10.09.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16925061

Country of ref document: EP

Kind code of ref document: A1