WO2018119554A1 - Camera control method for intelligent terminal - Google Patents

Camera control method for intelligent terminal 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
French (fr)
Chinese (zh)
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/en
Publication of WO2018119554A1 publication Critical patent/WO2018119554A1/en

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

Provided in the present invention are a camera control method for an intelligent terminal, comprising the following steps: step 1, activating an intelligent terminal, accessing OTP in a sensor of a camera to burn a micro value and infinity value of the camera, and writing the same in a file node; step 2, activating the camera; step 3, reading the micro value and infinity value from the file node; and step 4, dividing the micro value and infinity value into a desired number of portions, and assigning values of the desired portions to camera position key values of a system of the intelligent terminal. By employing the above technical solution, the present invention enables accurate automated acquisition of corresponding minimum and maximum values of each lens motor, thus accurately acquiring code values of close and distant views for different cameras of intelligent terminals.

Description

一种智能终端相机控制方法Intelligent terminal camera control method 技术领域Technical field
本发明涉及智能终端控制领域,尤其涉及一种智能终端相机控制方法。The present invention relates to the field of intelligent terminal control, and in particular, to a smart terminal camera control method.
技术背景technical background
目前安卓手机随着CPU性能的提升,相机像素的增加,使得用户可以使用普通相机拍出比较专业的图片。At present, with the improvement of CPU performance and the increase of camera pixels, Android users can use professional cameras to take more professional pictures.
目前,在相机使用时,经常发现在专业模式下,滑动到无穷远预览10米之外的景物时,并不能做到预览最清晰,原因是镜头马达从最小值变化为最大值时,两者的code值相差较大,一致性差。由于原先的最小值和最大值为预先设置,这样在不同的智能终端中,成像效果大相径庭。At present, when using the camera, it is often found that in the professional mode, when sliding to an infinity preview of a scene 10 meters away, the preview is not clear, because the lens motor changes from the minimum value to the maximum value, both The code values differ greatly and the consistency is poor. Since the original minimum and maximum values are preset, the imaging effects are quite different in different smart terminals.
因此,需要一种新型智能终端相机控制方法,能自动准确获得每颗镜头马达对应最小值及最大值。Therefore, there is a need for a novel intelligent terminal camera control method that automatically and accurately obtains the minimum and maximum values corresponding to each lens motor.
发明概要Summary of invention
为了克服上述技术缺陷,本发明的目的在于提供一种智能终端相机控制方法,即便智能终端的相机一致性不同,也可准确地获取近景和远景的code值。In order to overcome the above technical deficiencies, 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:
步骤1:启动智能终端,读取相机传感器内OTP,以烧录所述相机的micro和infinity值,并写入一文件节点内;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;
步骤2:启动相机; Step 2: Start the camera;
步骤3:自所述文件节点内读取所述micro和infinity值;Step 3: reading the micro and infinity values from the file node;
步骤4:分拆所述micro和infinity值至一需求份数,并将所述需求份数赋值至智能终端***内的相机位置key值。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.
优选地,所述文件节点位于所述智能终端***的sys/class/focus/focus/focus_level路径上。Preferably, the file node is located on a sys/class/focus/focus/focus_level path of the smart terminal system.
优选地,所述步骤4中,根据等差数列拆分所述micro和infinity值。Preferably, in the step 4, the micro and infinity values are split according to an arithmetic progression column.
优选地,所述相机位置key值为pref_camera_afeng_pos_key。Preferably, the camera position key value is pref_camera_afeng_pos_key.
优选地,所述步骤2和步骤3间,还包括:步骤2’:初始化智能终端***内的列表偏好选项。Preferably, between step 2 and step 3, the method further includes: step 2': initializing a list preference option in the smart terminal system.
优选地,所述控制方法的步骤2’和步骤3间还包括:Preferably, between step 2' and step 3 of the control method, the method further includes:
步骤5:判断智能终端是否首次启动,若是,则执行步骤3,若否,则执行步骤4。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和infinity值存储与static变量min_value和max_value中。Preferably, the micro and infinity values are stored in the static variables min_value and max_value.
采用了上述技术方案后,与现有技术相比,具有以下有益效果:After adopting the above technical solution, compared with the prior art, the following beneficial effects are obtained:
1.任意品牌的智能终端内的任意相机可自动获取马达的micro和infinity值,提高了一致性;1. Any camera in any brand of intelligent terminal can automatically obtain the micro and infinity values of the motor to improve consistency;
2.照片成像效果内的景深和锁附深度更佳。2. The depth of field and the depth of the lock in the photo imaging effect are better.
附图说明DRAWINGS
图1为符合本发明一优选实施例中相机管理方法的流程示意图。1 is a flow chart showing a method of managing a camera in accordance with a preferred embodiment of the present invention.
发明内容Summary of the invention
以下结合附图与具体实施例进一步阐述本发明的优点。Advantages of the present invention are further explained below in conjunction with the accompanying drawings and specific embodiments.
参阅图1,本发明提供了一种智能终端相机控制方法,并通过以下步骤执行实现:Referring to FIG. 1, the present invention provides a smart terminal camera control method, which is implemented by the following steps:
步骤1:对智能终端开机启动,使得智能终端的***读取相机传感器内的OTP,并将读取后的相机的micro和infinity值烧录至其内,则在智能终端启动后的OTP内,已记录有相机预设的micro和infinity值,相机在后续启用时,可调用烧录的micro和infinity值。在烧录完成后,将把该micro和infinity值写入文件节点内,以供后续调用。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.
步骤2:文件节点形成后,启动相机;Step 2: After the file node is formed, start the camera;
步骤3:相机自文件节点读取micro和infinity值,以调用,以矫正不同相机模组在组装时对近景和远景的差异值。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.
步骤4:获取了micro和infinity值后,对micro和infinity值形成的最小值和最大值进行拆分,分解成多份数据值,这些多份数据值将以一需求份数的形式最终赋值至智能终端***内的相机位置key值处,例如pref_camera_afeng_pos_key。针对micro和infinity值形成的最小值和最大值,并根据准度决定需求份数,以等差数列的形式拆分,可形成具有阶梯度近景和远景code值,使得相机可在这些值中选择,固定化一致化不同相机的拍摄参数。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.
可以理解的是,上述步骤4中,若决定拆分的等差数列的公差越小,需求份数将越大,相机取景的准度效果也将越好。It can be understood that, in the above step 4, if the tolerance of the determined arithmetic progression column is smaller, the required number of copies will be larger, and the accuracy of the camera framing will be better.
在一优选实施例中,文件节点位于智能终端***的sys/class/focus/focus/focus_level路径上,直接地写入***内部,减少调用参 数时对***内存的占用,并加快了调用的速度。In a preferred embodiment, 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.
优选或可选地,步骤2和步骤3间,还包括了:Preferably or optionally, between step 2 and step 3, the method further includes:
步骤2’:在智能终端***内初始化列表偏好选项,以重新确定列表偏好选项listpreference的可选内容,替换原有的近景和远景对焦参数。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.
进而,步骤2’和步骤3间还包括:Further, between step 2' and step 3, the method further includes:
步骤5:判断智能终端是否首次启动,若是,则执行步骤3,将micro和infinity值存储与static变量min_value和max_value中,以将micro和infinity值烧录至***内,若否,则直接执行步骤4,对***内已有的static变量min_value和max_value进行按需求份数拆分micro和infinity值的步骤。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.
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。 It should be noted that the embodiments of the present invention are preferred embodiments, and are not intended to limit the scope of the present invention. Any one skilled in the art may use the above-disclosed technical contents to change or modify the equivalent embodiments. Any modification or equivalent changes and modifications of the above embodiments in accordance with the technical spirit of the present invention are still within the scope of the technical solutions of the present invention.

Claims (7)

  1. 一种智能终端相机控制方法,其特征在于,包括以下步骤:A smart terminal camera control method, comprising the steps of:
    步骤1:启动智能终端,读取相机传感器内OTP,以烧录所述相机的micro和infinity值,并写入一文件节点内;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;
    步骤2:启动相机;Step 2: Start the camera;
    步骤3:自所述文件节点内读取所述micro和infinity值;Step 3: reading the micro and infinity values from the file node;
    步骤4:分拆所述micro和infinity值至一需求份数,并将所述需求份数赋值至智能终端***内的相机位置key值。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.
  2. 如权利要求1所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 1, wherein
    所述文件节点位于所述智能终端***的sys/class/focus/focus/focus_level路径上。The file node is located on a sys/class/focus/focus/focus_level path of the smart terminal system.
  3. 如权利要求1所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 1, wherein
    所述步骤4中,根据等差数列拆分所述micro和infinity值。In the step 4, the micro and infinity values are split according to the arithmetic progression column.
  4. 如权利要求1所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 1, wherein
    所述相机位置key值为pref_camera_afeng_pos_key。The camera position key value is pref_camera_afeng_pos_key.
  5. 如权利要求1所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 1, wherein
    所述步骤2和步骤3间,还包括:Between the steps 2 and 3, the method further includes:
    步骤2’:初始化智能终端***内的列表偏好选项。Step 2': Initialize the list preference option in the smart terminal system.
  6. 如权利要求5所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 5, wherein
    所述控制方法的步骤2’和步骤3间还包括:The step 2' and the step 3 of the control method further include:
    步骤5:判断智能终端是否首次启动,若是,则执行步骤3,若否,则执行步骤4。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.
  7. 如权利要求1所述的智能终端相机控制方法,其特征在于,A smart terminal camera control method according to claim 1, wherein
    所述micro和infinity值存储于static变量min_value和max_value中。 The micro and infinity values are stored in the static variables min_value and max_value.
PCT/CN2016/112026 2016-12-26 2016-12-26 Camera control method for intelligent terminal WO2018119554A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112026 WO2018119554A1 (en) 2016-12-26 2016-12-26 Camera control method for intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112026 WO2018119554A1 (en) 2016-12-26 2016-12-26 Camera control method for intelligent terminal

Publications (1)

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

Family

ID=62707609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112026 WO2018119554A1 (en) 2016-12-26 2016-12-26 Camera control method for intelligent terminal

Country Status (1)

Country Link
WO (1) WO2018119554A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689095A (en) * 2020-12-29 2021-04-20 上海摩勤智能技术有限公司 Camera sensor focusing data calibration method and camera sensor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019950A (en) * 2012-12-28 2013-04-03 信利光电(汕尾)有限公司 Space allocation method and use method of one-time programmable chip and device
WO2016000874A1 (en) * 2014-07-01 2016-01-07 Fotonation Limited A method for calibrating an image capture device
CN105988282A (en) * 2015-11-08 2016-10-05 乐视移动智能信息技术(北京)有限公司 Camera module set fault detection method and camera module set fault detection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019950A (en) * 2012-12-28 2013-04-03 信利光电(汕尾)有限公司 Space allocation method and use method of one-time programmable chip and device
WO2016000874A1 (en) * 2014-07-01 2016-01-07 Fotonation Limited A method for calibrating an image capture device
CN105988282A (en) * 2015-11-08 2016-10-05 乐视移动智能信息技术(北京)有限公司 Camera module set fault detection method and camera module set fault detection device

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 (en) * 2020-12-29 2021-04-20 上海摩勤智能技术有限公司 Camera sensor focusing data calibration method and camera sensor

Similar Documents

Publication Publication Date Title
US9589209B2 (en) Training image adjustment preferences
US8983176B2 (en) Image selection and masking using imported depth information
CN101795355B (en) Imaging apparatus and image processing method
EP3127323A1 (en) Method and apparatus for controlling image capture
WO2017008353A1 (en) Capturing method and user terminal
CN102104709B (en) Method for processing image shot by camera and camera
US9799099B2 (en) Systems and methods for automatic image editing
WO2017076000A1 (en) Method and device for night photography and mobile terminal
US9258458B2 (en) Displaying an image with an available effect applied
CN111432134A (en) Method and device for determining exposure time of image acquisition equipment and processor
KR102180474B1 (en) Apparatus and Method For Managing Image Files By Displaying Backup Information
WO2018119554A1 (en) Camera control method for intelligent terminal
US7970238B2 (en) Method and apparatus for acquiring image of internal structure, and computer product
KR102146857B1 (en) Photographing apparatus and method
CN105681645A (en) Anti-shake photographing method and device, and mobile terminal
JP6132343B2 (en) Image processing apparatus, image processing method, and program
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
KR20220140633A (en) User interface for photo editing
KR20180065438A (en) Real time digital post production method
CN108419092B (en) Method and device for determining same video
JP2008035388A (en) Imaging apparatus
CN113542705B (en) Borderless projection control method
Andrews et al. Raw workflow from capture to archives: a complete digital photographer's guide to raw imaging
US20140280258A1 (en) Methods and apparatus for exporting digital content using a profile

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