[go: up one dir, main page]

CN106254791A - Camera startup method and mobile terminal - Google Patents

Camera startup method and mobile terminal Download PDF

Info

Publication number
CN106254791A
CN106254791A CN201610656977.8A CN201610656977A CN106254791A CN 106254791 A CN106254791 A CN 106254791A CN 201610656977 A CN201610656977 A CN 201610656977A CN 106254791 A CN106254791 A CN 106254791A
Authority
CN
China
Prior art keywords
mobile terminal
initial exposure
exposure time
current environment
camera
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
CN201610656977.8A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610656977.8A priority Critical patent/CN106254791A/en
Publication of CN106254791A publication Critical patent/CN106254791A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/65Control of camera operation in relation to power supply
    • 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/66Remote control of cameras or camera parts, e.g. by remote control devices

Landscapes

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

Abstract

The invention discloses a starting method of a camera, which comprises the following steps: when a camera starting instruction is detected, the mobile terminal obtains the current environment brightness, sets the initial exposure time according to the current environment brightness, and starts the camera based on the set initial exposure time. The invention also discloses a mobile terminal, and the initial exposure time used when the camera is started is set based on the current environment brightness, namely the initial exposure time is suitable for the current environment brightness, so that the phenomenon of flicker can not occur when the camera is started and the use experience of a user is improved.

Description

摄像头的启动方法及移动终端Camera startup method and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,尤其涉及一种摄像头的启动方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to a method for starting a camera and a mobile terminal.

背景技术Background technique

随着科学技术的发展,手机已经成为人们日常生活中必不可少的电子设备,几乎一人一部,且手机除了打电话之外,还具备许多的附件功能,例如:拍照功能、摄像功能、视频播放功能、音频播放功能等等。With the development of science and technology, mobile phones have become an indispensable electronic device in people's daily life, almost one for each person. In addition to making calls, mobile phones also have many accessory functions, such as: camera function, camera function, video playback function, audio playback function and so on.

其中,手机中的摄像头启动之后,通常会使用默认的初始曝光时间,然而,由于该初始曝光时间并非符合所有的环境条件的曝光需求,经常会出现手机的摄像头启动时出现闪烁的现象。Among them, after the camera in the mobile phone is started, the default initial exposure time is usually used. However, since the initial exposure time does not meet the exposure requirements of all environmental conditions, flickering often occurs when the camera of the mobile phone is started.

为了解决上述技术问题,目前常用的方式是:保留摄像头上一次关闭之前的曝光时间,使得摄像头在启动之后,使用上一次关闭之前的曝光时间作为初始曝光时间,然而,该方式只有在上一次关闭摄像头时的环境条件与此次启动摄像头时的环境条件相差不大的情况下,才会有一定的消除闪烁的效果,若上一次关闭摄像头时的环境条件与此次启动摄像头时的环境条件相差较大,则仍然会存在摄像头启动时出现闪烁的现象。In order to solve the above technical problems, the commonly used method at present is to keep the exposure time before the last shutdown of the camera, so that after the camera is started, the exposure time before the last shutdown is used as the initial exposure time. However, this method is only available after the last shutdown. Only when the environmental conditions of the camera are not much different from the environmental conditions when the camera is started this time will there be a certain effect of eliminating flicker. If it is larger, there will still be a flickering phenomenon when the camera is started.

然而,上述方式不能很好的解决摄像头在启动时出现闪烁的现象,因此,如何避免摄像头在启动时出现闪烁是目前亟待解决的问题。However, the above-mentioned method cannot well solve the phenomenon that the camera flickers when starting. Therefore, how to prevent the camera from flickering when starting is an urgent problem to be solved at present.

发明内容Contents of the invention

本发明的主要目的在于提供一种摄像头的启动方法及移动终端,旨在解决现有技术中摄像头在启动时出现闪烁的技术问题。The main purpose of the present invention is to provide a method for starting a camera and a mobile terminal, aiming at solving the technical problem that the camera flickers when starting in the prior art.

为实现上述目的,本发明第一方面提供一种摄像头的启动方法,所述方法包括:In order to achieve the above object, the first aspect of the present invention provides a method for starting a camera, the method comprising:

在检测到摄像头启动指令时,移动终端获取当前环境亮度;When the camera startup command is detected, the mobile terminal obtains the current ambient brightness;

所述移动终端根据所述当前环境亮度设置初始曝光时间;The mobile terminal sets an initial exposure time according to the current ambient brightness;

所述移动终端基于已设置的所述初始曝光时间启动所述摄像头。The mobile terminal starts the camera based on the set initial exposure time.

在第一方面第一种可行的实现方式中,所述移动终端根据所述当前环境亮度设置初始曝光时间,包括:In a first feasible implementation manner of the first aspect, the mobile terminal sets an initial exposure time according to the current ambient brightness, including:

查找预先设置的环境亮度与曝光时间之间的映射关系,确定与所述当前环境亮度对应的曝光时间;Find the mapping relationship between the preset ambient brightness and exposure time, and determine the exposure time corresponding to the current ambient brightness;

按照所述当前环境亮度对应的曝光时间设置所述初始曝光时间。The initial exposure time is set according to the exposure time corresponding to the current ambient brightness.

在第一方面第二种可行的实现方式中,所述移动终端获取当前环境亮度包括:In the second feasible implementation manner of the first aspect, the acquiring the current environment brightness by the mobile terminal includes:

所述移动终端获取所述移动终端内设置的光线感应器感应到的所述当前环境亮度。The mobile terminal acquires the current ambient brightness sensed by a light sensor provided in the mobile terminal.

结合第一方面或者第一方面第一种可行的实现方式或者第一方面第二种可行的实现方式,在第一方面第三种可行的实现方式中,所述移动终端基于已设置的所述初始曝光时间启动所述摄像头之前还包括:In combination with the first aspect or the first feasible implementation of the first aspect or the second feasible implementation of the first aspect, in the third feasible implementation of the first aspect, the mobile terminal is based on the set The initial exposure time before starting the camera also includes:

所述移动终端根据所述当前环境亮度设置初始曝光补偿值;The mobile terminal sets an initial exposure compensation value according to the current ambient brightness;

则所述移动终端基于已设置的所述初始曝光时间启动所述摄像头,包括:Then the mobile terminal starts the camera based on the set initial exposure time, including:

所述移动终端基于已设置的所述初始曝光时间及所述初始曝光补偿值启动所述摄像头。The mobile terminal starts the camera based on the set initial exposure time and the initial exposure compensation value.

结合第一方面第三种可行的实现方式,在第一方面第四中可行的实现方式中,所述移动终端根据所述当前环境亮度设置曝光补偿值,包括:In combination with the third feasible implementation of the first aspect, in the fourth feasible implementation of the first aspect, the mobile terminal sets an exposure compensation value according to the current ambient brightness, including:

查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与所述当前环境亮度对应的曝光补偿值;Finding the mapping relationship between the preset ambient brightness and the exposure compensation value, and determining the exposure compensation value corresponding to the current ambient brightness;

按照所述当前环境亮度对应的曝光补偿值设置所述初始曝光补偿值。The initial exposure compensation value is set according to the exposure compensation value corresponding to the current ambient brightness.

为解决上述问题,本发明第二方面提供一种移动终端,所述移动终端包括:In order to solve the above problems, the second aspect of the present invention provides a mobile terminal, the mobile terminal includes:

获取模块,用于在检测到摄像头启动指令时,获取当前环境亮度;An acquisition module, configured to acquire the current ambient brightness when a camera startup command is detected;

第一设置模块,用于根据所述当前环境亮度设置所述初始曝光时间;A first setting module, configured to set the initial exposure time according to the current ambient brightness;

启动模块,用于基于已设置的所述初始曝光时间启动所述摄像头。A starting module, configured to start the camera based on the set initial exposure time.

在第二方面第一种可行的实现方式中,所述第一设置模块包括:In a first feasible implementation manner of the second aspect, the first setting module includes:

第一查找模块,用于查找预先设置的环境亮度与曝光时间之间的映射关系,确定与所述当前环境亮度对应的曝光时间;A first search module, configured to search for a mapping relationship between preset ambient brightness and exposure time, and determine the exposure time corresponding to the current ambient brightness;

时间设置模块,用于按照所述当前环境亮度对应的曝光时间设置所述初始曝光时间。A time setting module, configured to set the initial exposure time according to the exposure time corresponding to the current ambient brightness.

在第二方面第二种可行的实现方式中,所述获取模块具体用于:In a second feasible implementation manner of the second aspect, the acquisition module is specifically configured to:

在检测到摄像头启动指令时,获取所述移动终端内设置的光线感应器感应到的所述当前环境亮度。When the camera startup instruction is detected, the current ambient brightness sensed by the light sensor provided in the mobile terminal is acquired.

结合第二方面或者第二方面第一种可行的实现方式或者第二方面第二种可行的实现方式,在第二方面第三种可行的实现方式中,移动终端还包括:In combination with the second aspect or the first feasible implementation manner of the second aspect or the second feasible implementation manner of the second aspect, in the third feasible implementation manner of the second aspect, the mobile terminal further includes:

第二设置模块,用于在所述启动模块之前,根据所述当前环境亮度设置初始曝光补偿值;The second setting module is used to set an initial exposure compensation value according to the current ambient brightness before the startup module;

则所述启动模块具体用于:基于已设置的所述初始曝光时间及所述初始曝光补偿值启动所述摄像头。The starting module is specifically configured to: start the camera based on the set initial exposure time and the initial exposure compensation value.

结合第二方面第三种可行的实现方式,在第二方面第四种可行的实现方式中,所述第二设置模块包括:With reference to the third possible implementation of the second aspect, in the fourth possible implementation of the second aspect, the second setting module includes:

第二查找模块,用于查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与所述当前环境亮度对应的曝光补偿值;A second search module, configured to search for a mapping relationship between a preset ambient brightness and an exposure compensation value, and determine an exposure compensation value corresponding to the current ambient brightness;

补偿设置模块,用于按照所述当前环境亮度对应的曝光补偿值设置所述初始曝光补偿值。A compensation setting module, configured to set the initial exposure compensation value according to the exposure compensation value corresponding to the current ambient brightness.

本发明提供一种摄像头的启动方法,该方法中,在检测到摄像头启动指令时,获取当前环境亮度,并根据当前环境亮度设置初始曝光时间,且基于已设置的初始曝光时间启动所述摄像头。由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。The present invention provides a method for starting a camera. In the method, when a camera start instruction is detected, the current ambient brightness is obtained, an initial exposure time is set according to the current ambient brightness, and the camera is started based on the set initial exposure time. Since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that there will be no flickering when the camera is started using this initial exposure time, which improves user experience. experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.

图1为一种移动终端的结构框图;Fig. 1 is a structural block diagram of a mobile terminal;

图2为本发明第一实施例中摄像头的启动方法的流程示意图;2 is a schematic flow chart of a method for starting a camera in the first embodiment of the present invention;

图3为本发明图2所示第一实施例中步骤202的细化步骤的流程示意图;FIG. 3 is a schematic flow chart of the detailed steps of step 202 in the first embodiment shown in FIG. 2 of the present invention;

图4为本发明第二实施例中摄像头的启动方法的流程示意图;4 is a schematic flow chart of a method for starting a camera in a second embodiment of the present invention;

图5为本发明图4所示第二实施例中步骤403的细化步骤的流程示意图;FIG. 5 is a schematic flow diagram of the refinement steps of step 403 in the second embodiment shown in FIG. 4 of the present invention;

图6为本发明第三实施例中移动终端的功能模块的示意图;FIG. 6 is a schematic diagram of functional modules of a mobile terminal in a third embodiment of the present invention;

图7为本发明图6所示第三实施例中第一设置模块602的细化功能模块的示意图;FIG. 7 is a schematic diagram of a detailed functional module of the first setting module 602 in the third embodiment shown in FIG. 6 of the present invention;

图8为本发明第四实施例中移动终端的功能模块的示意图;FIG. 8 is a schematic diagram of functional modules of a mobile terminal in a fourth embodiment of the present invention;

图9为本发明图8所示第四实施例中第二设置模块801的细化功能模块的示意图。FIG. 9 is a schematic diagram of detailed functional modules of the second setting module 801 in the fourth embodiment shown in FIG. 8 of the present invention.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

图1示出了一种移动终端的结构框图。本发明实施例提供的摄像头的启动方法可应用于如图1所示的移动终端10中,移动终端10可以但不限于包括:需依靠电池维持正常运行且支持网络及下载功能的智能手机、笔记本、平板电脑、穿戴智能设备等。Fig. 1 shows a structural block diagram of a mobile terminal. The method for starting the camera provided by the embodiment of the present invention can be applied to the mobile terminal 10 shown in Figure 1. The mobile terminal 10 can include, but is not limited to: smart phones and notebooks that need to rely on batteries to maintain normal operation and support network and download functions. , tablets, wearable smart devices, etc.

如图1所示,移动终端10包括存储器101、存储控制器102,一个或多个(图中仅示出一个)处理器103、外设接口104、射频模块105、按键模块106、音频模块107以及触控屏幕108。这些组件通过一条或多条通讯总线/信号线109相互通讯。As shown in Figure 1, the mobile terminal 10 includes a memory 101, a storage controller 102, one or more (only one is shown in the figure) processors 103, a peripheral interface 104, a radio frequency module 105, a button module 106, an audio module 107 and a touch screen 108 . These components communicate with each other via one or more communication buses/signal lines 109 .

可以理解,图1所示的结构仅为示意,其并不对移动终端的结构造成限定。移动终端10还可包括比图1所示更多或者更少的组件,或者具有与图1所示不同的配置。图1所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 1 is only for illustration, and does not limit the structure of the mobile terminal. The mobile terminal 10 may also include more or fewer components than those shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 . Each component shown in FIG. 1 may be implemented by hardware, software or a combination thereof.

存储器101可用于存储软件程序以及模块,如本发明实施例中的摄像头的启动方法及移动终端对应的程序指令/模块,处理器103通过运行存储在存储器101内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的移动终端10摄像头的启动方法。The memory 101 can be used to store software programs and modules, such as the starting method of the camera in the embodiment of the present invention and the corresponding program instructions/modules of the mobile terminal, and the processor 103 executes various functions by running the software programs and modules stored in the memory 101 Various functional applications and data processing, that is, to implement the method for starting the camera of the mobile terminal 10 described above.

存储器101可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器101可进一步包括相对于处理器103远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。处理器103以及其他可能的组件对存储器101的访问可在存储控制器102的控制下进行。The memory 101 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 101 may further include a memory that is remotely located relative to the processor 103, and these remote memories may be connected to the mobile terminal 10 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 101 by the processor 103 and possibly other components may be under the control of the memory controller 102 .

外设接口104将各种输入/输入装置耦合至CPU以及存储器101。处理器103运行存储器101内的各种软件、指令以执行移动终端10的各种功能以及进行数据处理。The peripheral interface 104 couples various input/output devices to the CPU and the memory 101 . The processor 103 runs various software and instructions in the memory 101 to execute various functions of the mobile terminal 10 and perform data processing.

在一些实施例中,外设接口104,处理器103以及存储控制器102可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。In some embodiments, peripheral interface 104, processor 103, and memory controller 102 may be implemented in a single chip. In some other instances, they can be implemented by independent chips respectively.

射频模块105用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。射频模块105可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。射频模块105可与各种网络如互联网、企业内部网、预置类型的无线网络进行通讯或者通过预置类型的无线网络与其他设备进行通讯。上述的预置类型的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的预置类型的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for MobileCommunication,GSM),增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(Wideband Code Division Multiple Access,W-CDMA),码分多址技术(Code Division Access,CDMA),时分多址技术(Time Division Multiple Access,TDMA),蓝牙,无线保真技术(Wireless-Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE802.11a、IEEE 802.11b、IEEE802.11g和/或IEEE 802.11n),网络电话(Voice overInternet Protocal,VoIP),全球微波互联接入(Worldwide Interoperability forMicrowave Access,Wi-Max),其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议。The radio frequency module 105 is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with communication networks or other devices. The radio frequency module 105 may include various existing circuit elements for performing these functions, such as antenna, radio frequency transceiver, digital signal processor, encryption/decryption chip, Subscriber Identity Module (SIM) card, memory and so on. The radio frequency module 105 can communicate with various networks such as the Internet, an intranet, a preset type of wireless network, or communicate with other devices through a preset type of wireless network. The aforementioned preset type of wireless network may include a cellular telephone network, a wireless local area network or a metropolitan area network. The aforementioned preset type of wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wi-Fi Technology (Wireless-Fidelity, WiFi) (such as IEEE802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet telephony (Voice over Internet Protocol, VoIP), global microwave interconnection In (Worldwide Interoperability for Microwave Access, Wi-Max), other protocols used for mail, instant messaging and short messages, and any other suitable communication protocols.

按键模块106提供用户向移动终端进行输入的接口,用户可以通过按下不同的按键以使移动终端10执行不同的功能。The button module 106 provides an interface for the user to input to the mobile terminal, and the user can press different buttons to make the mobile terminal 10 perform different functions.

音频模块107向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。音频电路从外设接口104处接收声音数据,将声音数据转换为电信息,将电信息传输至扬声器。扬声器将电信息转换为人耳能听到的声波。音频电路还从麦克风处接收电信息,将电信号转换为声音数据,并将声音数据传输至外设接口104中以进行进一步的处理。音频数据可以从存储器101处或者通过射频模块105获取。此外,音频数据也可以存储至存储器101中或者通过射频模块105进行发送。在一些实例中,音频模块107还可包括一个耳机播孔,用于向耳机或者其他设备提供音频接口。The audio module 107 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry. The audio circuit receives sound data from the peripheral interface 104, converts the sound data into electrical information, and transmits the electrical information to the speaker. Speakers convert electrical information into sound waves that can be heard by the human ear. The audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to the peripheral interface 104 for further processing. Audio data can be obtained from the memory 101 or through the radio frequency module 105 . In addition, the audio data can also be stored in the memory 101 or sent through the radio frequency module 105 . In some examples, the audio module 107 may further include an earphone jack for providing an audio interface for earphones or other devices.

触控屏幕108在移动终端与用户之间同时提供一个输出及输入界面。具体地,触控屏幕108向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。触控屏幕108还接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。触控屏幕108显示单元的具体实例包括但并不限于液晶显示器或发光聚合物显示器。The touch screen 108 simultaneously provides an output and input interface between the mobile terminal and the user. Specifically, the touch screen 108 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. The touch screen 108 also receives user input, such as user gesture operations such as clicking and sliding, so that the user interface objects respond to these user inputs. The technique for detecting user input may be based on resistive, capacitive or any other possible touch detection techniques. Specific examples of the display unit of the touch screen 108 include, but are not limited to, liquid crystal displays or light emitting polymer displays.

基于上述移动终端描述本发明实施例中摄像头的启动方法。The method for starting the camera in the embodiment of the present invention is described based on the above mobile terminal.

由于现有技术中,摄像头在启动时容易出现闪烁的现象,因此,如何避免摄像头在启动时出现闪烁是目前亟待解决的问题。Since in the prior art, the camera tends to flicker when it is started, how to prevent the camera from flickering when it is started is an urgent problem to be solved at present.

为了解决上述问题,本发明提出一种摄像头的启动方法及移动终端,在该方法中,在检测到摄像头启动指令时,获取当前环境亮度,并根据当前环境亮度设置初始曝光时间,且基于已设置的初始曝光时间启动所述摄像头。由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。In order to solve the above problems, the present invention proposes a camera startup method and a mobile terminal. In this method, when a camera startup command is detected, the current ambient brightness is obtained, and the initial exposure time is set according to the current ambient brightness, and based on the set The initial exposure time to start the camera. Since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that there will be no flickering when the camera is started using this initial exposure time, which improves user experience. experience.

请参阅图2,为本发明第一实施例中摄像头的启动方法的流程示意图,该摄像头的启动方法包括:Please refer to FIG. 2 , which is a schematic flow chart of the method for starting the camera in the first embodiment of the present invention. The method for starting the camera includes:

步骤201、在检测到摄像头启动指令时,移动终端获取当前环境亮度;Step 201, when detecting the camera startup instruction, the mobile terminal acquires the current ambient brightness;

步骤202、所述移动终端根据所述当前环境亮度设置初始曝光时间;Step 202, the mobile terminal sets an initial exposure time according to the current ambient brightness;

步骤203、所述移动终端基于已设置的所述初始曝光时间启动所述摄像头。Step 203, the mobile terminal starts the camera based on the set initial exposure time.

在本发明实施例中,移动终端通常具有摄像头,如前置摄像头、后置摄像头等,用户能够利用移动终端的摄像头实现拍照及录像。In the embodiment of the present invention, the mobile terminal usually has a camera, such as a front camera, a rear camera, etc., and the user can use the camera of the mobile terminal to take pictures and record videos.

在本发明实施例中,若移动终端检测到摄像头启动指令,将获取当前环境亮度,该当前环境亮度是指移动终端当前所处的环境的亮度。移动终端将根据该当前环境亮度设置摄像头的初始曝光时间,且基于已设置的初始曝光时间启动摄像头。In the embodiment of the present invention, if the mobile terminal detects a camera startup instruction, it will acquire the current ambient brightness, which refers to the brightness of the environment where the mobile terminal is currently located. The mobile terminal will set the initial exposure time of the camera according to the current ambient brightness, and start the camera based on the set initial exposure time.

在本发明实施例中,由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。In the embodiment of the present invention, since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that no flickering occurs when the camera is started using the initial exposure time phenomena to improve user experience.

请参阅图3,为本发明图2所示第一实施例中步骤202的细化步骤的流程示意图,该步骤202为:所述移动终端根据所述当前环境亮度设置初始曝光时间,且该步骤202的细化步骤包括:Please refer to FIG. 3 , which is a schematic flow chart of the detailed steps of step 202 in the first embodiment shown in FIG. 2 of the present invention. The step 202 is: the mobile terminal sets an initial exposure time according to the current ambient brightness, and this step The refinement steps of 202 include:

步骤301、查找预先设置的环境亮度与曝光时间之间的映射关系,确定与所述当前环境亮度对应的曝光时间;Step 301. Find the mapping relationship between the preset ambient brightness and exposure time, and determine the exposure time corresponding to the current ambient brightness;

步骤302、按照所述当前环境亮度对应的曝光时间设置所述初始曝光时间。Step 302. Set the initial exposure time according to the exposure time corresponding to the current ambient brightness.

在本发明实施例中,移动终端内预先设置了环境亮度与曝光时间之间的映射关系,其中,该环境亮度与曝光时间之间的映射关系可以在移动终端或者摄像头出厂之前基于实验的方式得到,并写入摄像头或者移动终端的参数存储区域中。其中,实验的方式可以是在某一固定的环境亮度下测试摄像在不同的初始曝光时间下启动时初始的显示效果,并基于不同的初始曝光时间下的摄像头启动时的初始显示效果确定最佳的曝光时间,并将该最佳的曝光时间作为上述固定的环境亮度对应的曝光时间,且通过上述方式,能够得到不同的环境亮度分别对应的曝光时间。In the embodiment of the present invention, the mapping relationship between the ambient brightness and the exposure time is preset in the mobile terminal, wherein the mapping relationship between the ambient brightness and the exposure time can be obtained based on experiments before the mobile terminal or the camera leaves the factory. , and write it into the parameter storage area of the camera or mobile terminal. Among them, the experimental method can be to test the initial display effect of the camera when it is started under different initial exposure times under a certain fixed ambient brightness, and determine the best display effect based on the initial display effect of the camera when it is started under different initial exposure times. The optimal exposure time is used as the exposure time corresponding to the above-mentioned fixed ambient brightness, and through the above method, the exposure times corresponding to different ambient brightness can be obtained respectively.

在本发明实施例中,移动终端在检测到摄像头启动指令之后,将获取当前环境亮度,且查找预先设置的环境亮度与曝光时间之间的映射关系,确定与该当前环境亮度对应的曝光时间,且按照该当前环境亮度对应的曝光时间设置初始曝光时间。In the embodiment of the present invention, after the mobile terminal detects the camera startup command, it will obtain the current ambient brightness, and search for the mapping relationship between the preset ambient brightness and exposure time, and determine the exposure time corresponding to the current ambient brightness. And the initial exposure time is set according to the exposure time corresponding to the current ambient brightness.

在本发明实施例中,通过使用移动终端内预先设置的环境亮度与曝光时间之间的映射关系,使得移动终端在获取当前环境亮度之后,能够基于该环境亮度与曝光时间之间的映射关系,确定与当前环境亮度对应的曝光时间,且能够基于该曝光时间设置初始曝光时间,有效实现初始曝光时间的设置。In the embodiment of the present invention, by using the mapping relationship between the environmental brightness and the exposure time preset in the mobile terminal, after the mobile terminal obtains the current environmental brightness, based on the mapping relationship between the environmental brightness and the exposure time, The exposure time corresponding to the current ambient brightness is determined, and the initial exposure time can be set based on the exposure time, effectively realizing the setting of the initial exposure time.

进一步的,在图2所示第一实施例中,上述步骤201具体包括:Further, in the first embodiment shown in FIG. 2, the above step 201 specifically includes:

所述移动终端获取所述移动终端内设置的光线感应器感应到的所述当前环境亮度。The mobile terminal acquires the current ambient brightness sensed by a light sensor provided in the mobile terminal.

在本发明实施例中,移动终端内设置光线感应器,其中,光线感应器也称为亮度感应器,一般位于移动终端显示屏幕的上方,能够用于感应光线强度,以确定移动终端当前所处的环境的亮度。In the embodiment of the present invention, a light sensor is set in the mobile terminal, wherein the light sensor is also called a brightness sensor, which is generally located above the display screen of the mobile terminal and can be used to sense the light intensity to determine the current location of the mobile terminal. the brightness of the environment.

其中,移动终端在检测到摄像头启动指令时,将获取移动终端内的光线感应器感应到的当前环境亮度,因此,在本发明实施例中,移动终端可以利用设置在该移动终端内的光线感应器获取到当前环境亮度,以便移动终端利用该当前环境亮度设置摄像头的初始曝光时间。Wherein, when the mobile terminal detects the camera startup command, it will obtain the current ambient brightness sensed by the light sensor in the mobile terminal. Therefore, in the embodiment of the present invention, the mobile terminal can use the light sensor installed in the mobile terminal to The device acquires the current ambient brightness, so that the mobile terminal uses the current ambient brightness to set the initial exposure time of the camera.

请参阅图4,为本发明第二实施例中摄像头的启动方法的流程示意图,该摄像头的启动方法包括:Please refer to FIG. 4 , which is a schematic flow chart of the method for starting the camera in the second embodiment of the present invention. The method for starting the camera includes:

步骤401、在检测到摄像头启动指令时,移动终端获取当前环境亮度;Step 401, when detecting the camera startup instruction, the mobile terminal acquires the current ambient brightness;

步骤402、所述移动终端根据所述当前环境亮度设置初始曝光时间;Step 402, the mobile terminal sets an initial exposure time according to the current ambient brightness;

步骤403、所述移动终端根据所述当前环境亮度设置初始曝光补偿值;Step 403, the mobile terminal sets an initial exposure compensation value according to the current ambient brightness;

步骤404、所述移动终端基于已设置的所述初始曝光时间及所述初始曝光补偿值启动所述摄像头。Step 404, the mobile terminal starts the camera based on the set initial exposure time and the initial exposure compensation value.

需要说明的是,在本发明实施例中,步骤401及步骤402描述的内容分别与图2所示第一实施例中步骤201及步骤202描述的内容相似,此处不做赘述。It should be noted that, in this embodiment of the present invention, the content described in step 401 and step 402 is similar to the content described in step 201 and step 202 in the first embodiment shown in FIG. 2 , and details are not repeated here.

需要说明的是,图4所示第二实施例中仅是以先执行步骤402再执行步骤403为例进行说明的,在实际应用中,并不限定步骤402及步骤403执行的先后顺序,移动终端可以同时执行步骤402及步骤403,也可以先执行步骤403再执行步骤402。It should be noted that, in the second embodiment shown in FIG. 4, it is only illustrated by first executing step 402 and then executing step 403. In practical applications, the order of execution of step 402 and step 403 is not limited. The terminal may perform step 402 and step 403 at the same time, or may first perform step 403 and then perform step 402 .

在本发明实施例中,移动终端根据当前环境亮度设置初始曝光时间之后,还将根据该当前环境亮度设置初始曝光补偿值,且基于已设置的初始曝光时间及初始曝光补偿值启动摄像头。In the embodiment of the present invention, after setting the initial exposure time according to the current ambient brightness, the mobile terminal will also set the initial exposure compensation value according to the current ambient brightness, and start the camera based on the set initial exposure time and initial exposure compensation value.

其中,曝光补偿值的作用是就是在环境光源偏暗时,增加曝光值,如调整+1EV(Expose Value)或+2EV,或者,在环境光源偏亮时,减少曝光值,如调整-1EV或-2EV,通过设置曝光补偿值,能够使得摄像头启动时摄像头的曝光值更符合当前环境亮度。Among them, the function of the exposure compensation value is to increase the exposure value when the ambient light source is too dark, such as adjusting +1EV (Expose Value) or +2EV, or, when the ambient light source is bright, to reduce the exposure value, such as adjusting -1EV or -2EV, by setting the exposure compensation value, the exposure value of the camera when the camera is started can be more in line with the current ambient brightness.

在本发明实施例中,在检测到摄像头启动指令时,移动终端获取当前环境亮度,并根据当前环境亮度设置初始曝光时间及初始曝光补偿值,且该移动终端将基于已设置的初始曝光时间及初始曝光补偿值启动所述摄像头。由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。进一步的,通过基于当前环境亮度设置初始曝光补偿值,使得能够进一步改善摄像头启动时的闪烁现象。In the embodiment of the present invention, when the camera startup command is detected, the mobile terminal obtains the current ambient brightness, and sets the initial exposure time and initial exposure compensation value according to the current ambient brightness, and the mobile terminal will set the initial exposure time and initial exposure compensation value based on the set initial exposure time and The initial exposure compensation value starts the camera. Since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that there will be no flickering when the camera is started using this initial exposure time, which improves user experience. experience. Furthermore, by setting the initial exposure compensation value based on the current ambient brightness, the flicker phenomenon when the camera is started can be further improved.

请参阅图5,为本发明图4所示第二实施例中步骤403的细化步骤的流程示意图,该步骤403包括:所述移动终端根据所述当前环境亮度设置曝光补偿值,且该步骤403的细化步骤包括:Please refer to FIG. 5 , which is a schematic flow chart of the refinement step of step 403 in the second embodiment shown in FIG. 4 of the present invention. The refinement steps of 403 include:

步骤501、查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与所述当前环境亮度对应的曝光补偿值;Step 501. Find the mapping relationship between the preset ambient brightness and exposure compensation value, and determine the exposure compensation value corresponding to the current ambient brightness;

步骤502、按照所述当前环境亮度对应的曝光补偿值设置所述初始曝光补偿值。Step 502. Set the initial exposure compensation value according to the exposure compensation value corresponding to the current ambient brightness.

在本发明实施例中,移动终端内预先设置了环境亮度与曝光补偿值之间的映射关系,其中,该环境亮度与曝光补偿时间之间的映射关系可以在移动终端或者摄像头出厂之前基于实验的方式得到,并写入摄像头或者移动终端的参数存储区域中。In the embodiment of the present invention, the mapping relationship between the ambient brightness and the exposure compensation value is preset in the mobile terminal, wherein the mapping relationship between the ambient brightness and the exposure compensation time can be based on experiments before the mobile terminal or the camera leaves the factory. method, and write it into the parameter storage area of the camera or mobile terminal.

在本发明实施例中,移动终端将查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与该当前环境亮度对应的曝光补偿值,并利用与该当前环境亮度对应的曝光补偿值设置初始曝光补偿值。In the embodiment of the present invention, the mobile terminal will look up the mapping relationship between the preset ambient brightness and the exposure compensation value, determine the exposure compensation value corresponding to the current ambient brightness, and use the exposure compensation value corresponding to the current ambient brightness Set the initial exposure compensation value.

在本发明实施例中,通过使用移动终端内预先设置的环境亮度与曝光补偿值之间的映射关系,使得移动终端在检测到摄像头启动指令时,能够基于该环境亮度与曝光补偿值之间的映射关系确定与当前环境亮度对应的曝光补偿值,并设置初始曝光补偿值,能够有效的实现初始曝光补偿值的设置。In the embodiment of the present invention, by using the mapping relationship between the ambient brightness and the exposure compensation value preset in the mobile terminal, when the mobile terminal detects the camera startup instruction, it can The mapping relationship determines the exposure compensation value corresponding to the current ambient brightness, and sets the initial exposure compensation value, which can effectively realize the setting of the initial exposure compensation value.

请参阅图6,为本发明第三实施例中移动终端的功能模块的示意图,该移动终端包括:获取模块601、第一设置模块602及启动模块603。Please refer to FIG. 6 , which is a schematic diagram of the functional modules of the mobile terminal in the third embodiment of the present invention. The mobile terminal includes: an obtaining module 601 , a first setting module 602 and a starting module 603 .

获取模块601,用于在检测到摄像头启动指令时,获取当前环境亮度;An acquisition module 601, configured to acquire the current ambient brightness when a camera startup instruction is detected;

第一设置模块602,用于根据所述当前环境亮度设置所述初始曝光时间;A first setting module 602, configured to set the initial exposure time according to the current ambient brightness;

启动模块603,用于基于已设置的所述初始曝光时间启动所述摄像头。A starting module 603, configured to start the camera based on the set initial exposure time.

在本发明实施例中,移动终端通常具有摄像头,如前置摄像头、后置摄像头等,用户能够利用移动终端的摄像头实现拍照及录像。In the embodiment of the present invention, the mobile terminal usually has a camera, such as a front camera, a rear camera, etc., and the user can use the camera of the mobile terminal to take pictures and record videos.

在本发明实施例中,若移动终端检测到摄像头启动指令,获取模块601将获取当前环境亮度,该当前环境亮度是指移动终端当前所处的环境的亮度。且第一设置模块602将根据该当前环境亮度设置摄像头的初始曝光时间,且由启动模块603基于已设置的初始曝光时间启动摄像头。In the embodiment of the present invention, if the mobile terminal detects a camera startup instruction, the acquiring module 601 will acquire the current ambient brightness, which refers to the brightness of the environment where the mobile terminal is currently located. And the first setting module 602 will set the initial exposure time of the camera according to the current ambient brightness, and the starting module 603 will start the camera based on the set initial exposure time.

在本发明实施例中,由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。In the embodiment of the present invention, since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that no flickering occurs when the camera is started using the initial exposure time phenomena to improve the user experience.

请参阅图7,为本发明图6所示第三实施例中第一设置模块602的细化功能模块的示意图,该第一设置模块602包括:第一查找模块701、时间设置模块702。Please refer to FIG. 7 , which is a schematic diagram of detailed functional modules of the first setting module 602 in the third embodiment shown in FIG. 6 of the present invention. The first setting module 602 includes: a first search module 701 and a time setting module 702 .

第一查找模块701,用于查找预先设置的环境亮度与曝光时间之间的映射关系,确定与所述当前环境亮度对应的曝光时间;The first search module 701 is configured to search for a mapping relationship between preset ambient brightness and exposure time, and determine the exposure time corresponding to the current ambient brightness;

时间设置模块702,用于按照所述当前环境亮度对应的曝光时间设置所述初始曝光时间。A time setting module 702, configured to set the initial exposure time according to the exposure time corresponding to the current ambient brightness.

在本发明实施例中,移动终端内预先设置了环境亮度与曝光时间之间的映射关系,其中,该环境亮度与曝光时间之间的映射关系可以在移动终端或者摄像头出厂之前基于实验的方式得到,并写入摄像头或者移动终端的参数存储区域中。其中,实验的方式可以是在某一固定的环境亮度下测试摄像在不同的初始曝光时间下启动时初始的显示效果,并基于不同的初始曝光时间下的摄像头启动时的初始显示效果确定最佳的曝光时间,并将该最佳的曝光时间作为上述固定的环境亮度对应的曝光时间,且通过上述方式,能够得到不同的环境亮度分别对应的曝光时间。In the embodiment of the present invention, the mapping relationship between the ambient brightness and the exposure time is preset in the mobile terminal, wherein the mapping relationship between the ambient brightness and the exposure time can be obtained based on experiments before the mobile terminal or the camera leaves the factory. , and write it into the parameter storage area of the camera or mobile terminal. Among them, the experimental method can be to test the initial display effect of the camera when it is started under different initial exposure times under a certain fixed ambient brightness, and determine the best display effect based on the initial display effect of the camera when it is started under different initial exposure times. The optimal exposure time is used as the exposure time corresponding to the above-mentioned fixed ambient brightness, and through the above method, the exposure times corresponding to different ambient brightness can be obtained respectively.

在本发明实施例中,移动终端在检测到摄像头启动指令之后,获取模块601将获取当前环境亮度,且第一查找模块701查找预先设置的环境亮度与曝光时间之间的映射关系,确定与该当前环境亮度对应的曝光时间,并由时间设置模块702按照该当前环境亮度对应的曝光时间设置初始曝光时间。In the embodiment of the present invention, after the mobile terminal detects the camera startup command, the obtaining module 601 will obtain the current ambient brightness, and the first search module 701 will search for the mapping relationship between the preset ambient brightness and exposure time, and determine the The exposure time corresponding to the current ambient brightness, and the initial exposure time is set by the time setting module 702 according to the exposure time corresponding to the current ambient brightness.

在本发明实施例中,通过使用移动终端内预先设置的环境亮度与曝光时间之间的映射关系,使得移动终端在获取当前环境亮度之后,能够基于该环境亮度与曝光时间之间的映射关系,确定与当前环境亮度对应的曝光时间,且能够基于该曝光时间设置初始曝光时间,有效实现初始曝光时间的设置。In the embodiment of the present invention, by using the mapping relationship between the environmental brightness and the exposure time preset in the mobile terminal, after the mobile terminal obtains the current environmental brightness, based on the mapping relationship between the environmental brightness and the exposure time, The exposure time corresponding to the current ambient brightness is determined, and the initial exposure time can be set based on the exposure time, effectively realizing the setting of the initial exposure time.

进一步的,在图6所示第三实施例中,获取模块601具体用于:Further, in the third embodiment shown in FIG. 6, the obtaining module 601 is specifically used for:

在检测到摄像头启动指令时,获取所述移动终端内设置的光线感应器感应到的所述当前环境亮度。When the camera startup instruction is detected, the current ambient brightness sensed by the light sensor provided in the mobile terminal is acquired.

在本发明实施例中,移动终端内设置光线感应器,其中,光线感应器也称为亮度感应器,一般位于移动终端显示屏幕的上方,能够用于感应光线强度,以确定移动终端当前所处的环境的亮度。In the embodiment of the present invention, a light sensor is set in the mobile terminal, wherein the light sensor is also called a brightness sensor, which is generally located above the display screen of the mobile terminal and can be used to sense the light intensity to determine the current location of the mobile terminal. the brightness of the environment.

其中,移动终端在检测到摄像头启动指令时,获取模块601将获取移动终端内的光线感应器感应到的当前环境亮度,因此,在本发明实施例中,移动终端可以利用设置在该移动终端内的光线感应器获取到当前环境亮度,以便移动终端利用该当前环境亮度设置摄像头的初始曝光时间。Wherein, when the mobile terminal detects the camera startup command, the obtaining module 601 will obtain the current ambient brightness sensed by the light sensor in the mobile terminal. Therefore, in the embodiment of the present invention, the mobile terminal can use the The light sensor of the device obtains the current ambient brightness, so that the mobile terminal can use the current ambient brightness to set the initial exposure time of the camera.

请参阅图8,为本发明第四实施例中移动终端的功能模块的示意图,该移动终端包括图6所示第三实施例中的获取模块601、第一设置模块602及启动模块603,其中,第一设置模块602包括:第一查找模块701、时间设置模块702,且与图6所示第三实施例中描述的内容相似,此处不做赘述。Please refer to FIG. 8, which is a schematic diagram of the functional modules of the mobile terminal in the fourth embodiment of the present invention. The mobile terminal includes the obtaining module 601, the first setting module 602 and the starting module 603 in the third embodiment shown in FIG. 6, wherein, The first setting module 602 includes: a first search module 701 and a time setting module 702, which are similar to those described in the third embodiment shown in FIG. 6 , and will not be repeated here.

在本发明实施例中,移动终端还包括:In the embodiment of the present invention, the mobile terminal also includes:

第二设置模块801,用于在所述启动模块之前,根据所述当前环境亮度设置初始曝光补偿值;The second setting module 801 is configured to set an initial exposure compensation value according to the current ambient brightness before the startup module;

则启动模块603具体用于:基于已设置的所述初始曝光时间及所述初始曝光补偿值启动所述摄像头。The starting module 603 is specifically configured to: start the camera based on the set initial exposure time and the initial exposure compensation value.

在本发明实施例中,移动终端根据当前环境亮度设置初始曝光时间之后,第二设置模块801还将根据该当前环境亮度设置初始曝光补偿值,且由启动模块603基于已设置的初始曝光时间及初始曝光补偿值启动摄像头。In the embodiment of the present invention, after the mobile terminal sets the initial exposure time according to the current ambient brightness, the second setting module 801 will also set the initial exposure compensation value according to the current ambient brightness, and the startup module 603 will set the initial exposure time and Initial exposure compensation value to start the camera.

其中,曝光补偿值的作用是就是在环境光源偏暗时,增加曝光值,如调整+1EV(Expose Value)或+2EV,或者,在环境光源偏亮时,减少曝光值,如调整-1EV或-2EV,通过设置曝光补偿值,能够使得摄像头启动时摄像头的曝光值更符合当前环境亮度。Among them, the function of the exposure compensation value is to increase the exposure value when the ambient light source is too dark, such as adjusting +1EV (Expose Value) or +2EV, or, when the ambient light source is bright, to reduce the exposure value, such as adjusting -1EV or -2EV, by setting the exposure compensation value, the exposure value of the camera when the camera is started can be more in line with the current ambient brightness.

在本发明实施例中,在检测到摄像头启动指令时,移动终端获取当前环境亮度,并根据当前环境亮度设置初始曝光时间及初始曝光补偿值,且该移动终端将基于已设置的初始曝光时间及初始曝光补偿值启动所述摄像头。由于摄像头启动时使用的初始曝光时间是基于当前环境亮度设置的,即该初始曝光时间是适应当前环境亮度的,使得摄像头启动时使用该初始曝光时间并不会出现闪烁的现象,改善用户的使用体验。进一步的,通过基于当前环境亮度设置初始曝光补偿值,使得能够进一步改善摄像头启动时的闪烁现象。In the embodiment of the present invention, when the camera startup command is detected, the mobile terminal obtains the current ambient brightness, and sets the initial exposure time and initial exposure compensation value according to the current ambient brightness, and the mobile terminal will set the initial exposure time and initial exposure compensation value based on the set initial exposure time and The initial exposure compensation value starts the camera. Since the initial exposure time used when the camera is started is set based on the current ambient brightness, that is, the initial exposure time is adapted to the current ambient brightness, so that there will be no flickering when the camera is started using this initial exposure time, which improves user experience. experience. Furthermore, by setting the initial exposure compensation value based on the current ambient brightness, the flicker phenomenon when the camera is started can be further improved.

请参阅图9,为本发明图8所示第四实施例中第二设置模块801的细化功能模块的示意图,该第二设置模块801包括:第二查找模块901及补偿设置模块902。Please refer to FIG. 9 , which is a schematic diagram of detailed functional modules of the second setting module 801 in the fourth embodiment shown in FIG. 8 of the present invention. The second setting module 801 includes: a second search module 901 and a compensation setting module 902 .

第二查找模块901,用于查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与所述当前环境亮度对应的曝光补偿值;The second search module 901 is configured to search for a mapping relationship between a preset ambient brightness and an exposure compensation value, and determine an exposure compensation value corresponding to the current ambient brightness;

补偿设置模块902,用于按照所述当前环境亮度对应的曝光补偿值设置所述初始曝光补偿值。The compensation setting module 902 is configured to set the initial exposure compensation value according to the exposure compensation value corresponding to the current ambient brightness.

在本发明实施例中,移动终端内预先设置了环境亮度与曝光补偿值之间的映射关系,其中,该环境亮度与曝光补偿时间之间的映射关系可以在移动终端或者摄像头出厂之前基于实验的方式得到,并写入摄像头或者移动终端的参数存储区域中。In the embodiment of the present invention, the mapping relationship between the ambient brightness and the exposure compensation value is preset in the mobile terminal, wherein the mapping relationship between the ambient brightness and the exposure compensation time can be based on experiments before the mobile terminal or the camera leaves the factory. method, and write it into the parameter storage area of the camera or mobile terminal.

在本发明实施例中,第二查找模块901将查找预先设置的环境亮度与曝光补偿值之间的映射关系,确定与该当前环境亮度对应的曝光补偿值,并由补偿设置模块902利用与该当前环境亮度对应的曝光补偿值设置初始曝光补偿值。In the embodiment of the present invention, the second search module 901 will search for the mapping relationship between the preset ambient brightness and the exposure compensation value, determine the exposure compensation value corresponding to the current ambient brightness, and use the compensation setting module 902 to use the The exposure compensation value corresponding to the current ambient brightness sets the initial exposure compensation value.

在本发明实施例中,通过使用移动终端内预先设置的环境亮度与曝光补偿值之间的映射关系,使得移动终端在检测到摄像头启动指令时,能够基于该环境亮度与曝光补偿值之间的映射关系确定与当前环境亮度对应的曝光补偿值,并设置初始曝光补偿值,能够有效的实现初始曝光补偿值的设置。In the embodiment of the present invention, by using the mapping relationship between the ambient brightness and the exposure compensation value preset in the mobile terminal, when the mobile terminal detects the camera startup instruction, it can The mapping relationship determines the exposure compensation value corresponding to the current ambient brightness, and sets the initial exposure compensation value, which can effectively realize the setting of the initial exposure compensation value.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, all the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

以上为对本发明所提供的一种摄像头的启动方法及移动终端的描述,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a method for starting a camera and a mobile terminal provided by the present invention. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. Above all, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

1. the startup method of a photographic head, it is characterised in that described method includes:
When photographic head enabled instruction being detected, acquisition for mobile terminal current environment brightness;
Described mobile terminal arranges initial exposure time according to described current environment brightness;
Described mobile terminal starts described photographic head based on the described initial exposure time arranged.
Method the most according to claim 1, it is characterised in that described mobile terminal is arranged according to described current environment brightness Initial exposure time, including:
Search the mapping relations between ambient brightness and the time of exposure pre-set, determine corresponding with described current environment brightness Time of exposure;
The time of exposure corresponding according to described current environment brightness arranges described initial exposure time.
Method the most according to claim 1, it is characterised in that described acquisition for mobile terminal current environment brightness includes:
The described current environment brightness that the light sensor arranged in mobile terminal described in described acquisition for mobile terminal senses.
4. according to the method described in claims 1 to 3 any one, it is characterised in that described mobile terminal is based on having arranged Described initial exposure time also includes before starting described photographic head:
Described mobile terminal arranges initial exposure offset according to described current environment brightness;
The most described mobile terminal starts described photographic head based on the described initial exposure time arranged, including:
Described mobile terminal starts described shooting based on the described initial exposure time arranged and described initial exposure offset Head.
Method the most according to claim 4, it is characterised in that described mobile terminal is arranged according to described current environment brightness Exposure bias value, including:
Search the mapping relations between ambient brightness and the exposure bias value pre-set, determine and described current environment brightness pair The exposure bias value answered;
According to the exposure bias value that described current environment brightness is corresponding, described initial exposure offset is set.
6. a mobile terminal, it is characterised in that described mobile terminal includes:
Acquisition module, for when photographic head enabled instruction being detected, obtains current environment brightness;
First arranges module, for arranging described initial exposure time according to described current environment brightness;
Start module, for starting described photographic head based on the described initial exposure time arranged.
Mobile terminal the most according to claim 6, it is characterised in that described first arranges module includes:
First searches module, for searching the mapping relations between ambient brightness and the time of exposure pre-set, determines and institute State the time of exposure that current environment brightness is corresponding;
Set of time module, for arranging described initial exposure time according to the time of exposure that described current environment brightness is corresponding.
Mobile terminal the most according to claim 6, it is characterised in that described acquisition module specifically for:
When photographic head enabled instruction being detected, obtain that the light sensor arranged in described mobile terminal senses described works as Front ambient brightness.
9. according to the mobile terminal described in claim 6 to 8 any one, it is characterised in that mobile terminal also includes:
Second arranges module, for before described startup module, arranges initial exposure according to described current environment brightness and compensates Value;
The most described startup module specifically for: open based on the described initial exposure time arranged and described initial exposure offset Dynamic described photographic head.
Mobile terminal the most according to claim 9, it is characterised in that described second arranges module includes:
Second searches module, for searching the mapping relations between the ambient brightness and the exposure bias value that pre-set, determine with The exposure bias value that described current environment brightness is corresponding;
Compensation arranges module, compensates for arranging described initial exposure according to the exposure bias value that described current environment brightness is corresponding Value.
CN201610656977.8A 2016-08-11 2016-08-11 Camera startup method and mobile terminal Pending CN106254791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610656977.8A CN106254791A (en) 2016-08-11 2016-08-11 Camera startup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610656977.8A CN106254791A (en) 2016-08-11 2016-08-11 Camera startup method and mobile terminal

Publications (1)

Publication Number Publication Date
CN106254791A true CN106254791A (en) 2016-12-21

Family

ID=58078816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610656977.8A Pending CN106254791A (en) 2016-08-11 2016-08-11 Camera startup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106254791A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN108012078A (en) * 2017-11-28 2018-05-08 广东欧珀移动通信有限公司 Image brightness processing method, device, storage medium and electronic equipment
CN110087060A (en) * 2019-03-11 2019-08-02 歌尔股份有限公司 Shutter triggering moment method of adjustment, device and the equipment of depth camera
CN112104812A (en) * 2019-06-18 2020-12-18 北京京东尚科信息技术有限公司 Method and device for acquiring picture
CN112153305A (en) * 2020-10-22 2020-12-29 努比亚技术有限公司 Camera starting method, mobile terminal and computer storage medium
CN115460355A (en) * 2022-08-31 2022-12-09 青岛海信移动通信技术股份有限公司 Image acquisition method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241294A (en) * 2007-02-06 2008-08-13 亚洲光学股份有限公司 Camera shooting control method and its device
US7711257B2 (en) * 2006-04-24 2010-05-04 Nokia Corporation Image quality in cameras using flash
CN102883055A (en) * 2012-09-19 2013-01-16 惠州Tcl移动通信有限公司 Mobile terminal with automatic exposure compensation function and automatic exposure compensation method
CN105611132A (en) * 2015-12-28 2016-05-25 广东欧珀移动通信有限公司 Exposure control method and device
CN105611037A (en) * 2015-07-22 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7711257B2 (en) * 2006-04-24 2010-05-04 Nokia Corporation Image quality in cameras using flash
CN101241294A (en) * 2007-02-06 2008-08-13 亚洲光学股份有限公司 Camera shooting control method and its device
CN102883055A (en) * 2012-09-19 2013-01-16 惠州Tcl移动通信有限公司 Mobile terminal with automatic exposure compensation function and automatic exposure compensation method
CN105611037A (en) * 2015-07-22 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Terminal control method, terminal control device and terminal
CN105611132A (en) * 2015-12-28 2016-05-25 广东欧珀移动通信有限公司 Exposure control method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王殿元: "《大学物理实验》", 31 January 2005 *
马铭刚,陈德安,胡汝舜,裘振华: "《无损检测技术》", 30 September 1982 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107613191A (en) * 2017-08-01 2018-01-19 努比亚技术有限公司 A kind of photographic method, equipment and computer-readable recording medium
CN107613191B (en) * 2017-08-01 2020-09-01 努比亚技术有限公司 Photographing method, photographing equipment and computer readable storage medium
CN108012078A (en) * 2017-11-28 2018-05-08 广东欧珀移动通信有限公司 Image brightness processing method, device, storage medium and electronic equipment
CN110087060A (en) * 2019-03-11 2019-08-02 歌尔股份有限公司 Shutter triggering moment method of adjustment, device and the equipment of depth camera
CN112104812A (en) * 2019-06-18 2020-12-18 北京京东尚科信息技术有限公司 Method and device for acquiring picture
CN112104812B (en) * 2019-06-18 2023-11-07 北京京东尚科信息技术有限公司 Picture acquisition method and device
CN112153305A (en) * 2020-10-22 2020-12-29 努比亚技术有限公司 Camera starting method, mobile terminal and computer storage medium
CN115460355A (en) * 2022-08-31 2022-12-09 青岛海信移动通信技术股份有限公司 Image acquisition method and device
CN115460355B (en) * 2022-08-31 2024-03-29 青岛海信移动通信技术有限公司 Image acquisition method and device

Similar Documents

Publication Publication Date Title
US20220408020A1 (en) Image Processing Method, Electronic Device, and Cloud Server
CN106254791A (en) Camera startup method and mobile terminal
CN108093134B (en) Anti-interference method for electronic equipment and related products
CN114924682A (en) Content connection method and electronic equipment
CN107708168A (en) SIM card switching method, mobile terminal and computer-readable storage medium
CN110602315A (en) Electronic equipment with foldable screen and display method
CN107171412B (en) Method and device for dynamically adjusting charging current, mobile terminal and storage medium
CN108063646A (en) Anti-interference method for electronic equipment and related products
CN112639675B (en) Method for dynamically modulating frequency of internal memory and electronic equipment
CN107367327A (en) Optical sensor calibration method, device, mobile terminal and readable storage medium
CN106445609A (en) Automatic updating method of application program and mobile terminal
CN107563187A (en) Access operation monitoring method, device, mobile terminal and readable storage medium
CN106445314A (en) Display interface refreshing method and device
CN109582976A (en) A kind of interpretation method and electronic equipment based on voice communication
CN106488413A (en) Notification message reminder method and mobile terminal
CN108124056A (en) Anti-interference method of electronic equipment and related product
CN108769387A (en) Application control method and related equipment
CN106126377A (en) The method and device of system start-up
CN105872980B (en) Method and device for scanning wireless network signals
CN108733337A (en) Screen display method and device, electronic equipment and computer readable storage medium
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
CN105843361A (en) Method for reducing power consumption when taking pictures and mobile terminal
CN108712563A (en) call control method, device and mobile terminal
CN107613115A (en) event reminding method and device, mobile terminal and readable storage medium
CN105933492A (en) Phone number obtaining method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20161221

RJ01 Rejection of invention patent application after publication