WO2017088603A1 - 移动终端进行拍摄方法及移动终端 - Google Patents

移动终端进行拍摄方法及移动终端 Download PDF

Info

Publication number
WO2017088603A1
WO2017088603A1 PCT/CN2016/102167 CN2016102167W WO2017088603A1 WO 2017088603 A1 WO2017088603 A1 WO 2017088603A1 CN 2016102167 W CN2016102167 W CN 2016102167W WO 2017088603 A1 WO2017088603 A1 WO 2017088603A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
independent camera
camera
button
independent
Prior art date
Application number
PCT/CN2016/102167
Other languages
English (en)
French (fr)
Inventor
付一鹏
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017088603A1 publication Critical patent/WO2017088603A1/zh

Links

Images

Classifications

    • 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
    • H04N23/651Control of camera operation in relation to power supply for reducing power consumption by affecting camera operations, e.g. sleep mode, hibernation mode or power off of selective parts of the camera
    • 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/63Control of cameras or camera modules by using electronic viewfinders

Definitions

  • the present application relates to, but is not limited to, the field of mobile terminal technologies, and in particular, to a mobile terminal performing a shooting method and a mobile terminal.
  • the mobile terminal camera basically replaces the card machine and becomes the first choice for ordinary users to travel.
  • the mobile terminals used by people are all intelligent devices.
  • the mobile terminal runs a large number of processes in normal work, and these processes are occupied in the background.
  • the system resources continuously consume the power of the battery, so that the mobile terminal is used for a very short time with a certain amount of power. In this case, when shooting with a mobile terminal, the mobile terminal can only capture a small number of images each time it is fully charged, limited by the battery capacity.
  • the user when the device is turned off, the user needs to boot the mobile terminal's main operating system to use the camera.
  • the user needs to turn off the mobile phone and other anti-radio signal interference when flying, the user wants to use the mobile terminal to shoot, but can not boot, which is very inconvenient.
  • the present invention provides a method for shooting a mobile terminal and a mobile terminal, which solves the problem that the mobile terminal can't shoot when the power consumption of the mobile terminal is fast and the radio frequency signal interferes, and the time and convenience of the mobile terminal for shooting are improved.
  • An embodiment of the present invention provides a mobile terminal, where the mobile terminal includes a main operating system and an independent camera system, and the mobile terminal includes:
  • the startup module is set to: after the mobile terminal enters the independent camera system, start the independent camera application;
  • the shooting module is configured to: in the startup module launching the independent camera application, calling a dynamic library of the hardware abstraction layer to perform control of the camera hardware and the image codec to capture the image.
  • the mobile terminal further includes:
  • a first switching module configured to: if the mobile terminal is currently running in a main operating system mode or in a shutdown state, controlling, according to the received switching instruction, the mobile terminal to switch from a main operating system or a shutdown state to the independent camera System mode.
  • the first switching module is configured to: obtain the switching instruction by receiving a pressing of a specified virtual button or a designated physical button.
  • the first switching module is configured to: receive the switching instruction by receiving a pressing of the designated physical button by using one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the shooting module is further configured to: invoke a dynamic library loading camera driver of the hardware abstraction layer, collect image data through the camera, display the captured image data on the screen, and display the current image according to the received shooting instruction.
  • the image data is encoded to generate an image file of a specified format for transmission or storage.
  • the mobile terminal further includes:
  • the setting module is configured to: set the shooting parameters of the independent camera application on the specified parameter setting interface according to the received user instruction.
  • the second switching module is configured to: control, according to the received switching instruction, the mobile terminal to switch from the independent camera system to the main operating system.
  • the second switching module is configured to: obtain the switching instruction by receiving a pressing of a specified virtual button or a designated physical button.
  • the second switching module is configured to: receive the switching instruction by receiving a pressing of the specified physical button by using one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the mobile terminal further includes:
  • the hibernation module is configured to: after the mobile terminal enters the independent camera system, if the user instruction is not received within the preset time, the mobile terminal is controlled to enter a sleep state.
  • the embodiment of the invention further provides a method for shooting by a mobile terminal, including:
  • the independent camera application is activated
  • a dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and image codec to capture an image.
  • the independent camera system before the mobile terminal enters the independent camera system. Also includes:
  • the mobile terminal is controlled to switch from the main operating system or the shutdown state to the independent camera system mode according to the received switching instruction.
  • the controlling, according to the received switching instruction, the switching of the mobile terminal from a main operating system or a shutdown state to the independent camera system mode includes:
  • the switching instruction is obtained by receiving a press of a designated virtual button or a designated physical button, and the mobile terminal is controlled to switch from a main operating system or a shutdown state to the independent camera system mode.
  • the switching instruction is received by receiving a button of the specified entity by one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the camera hardware includes a camera
  • the dynamic library that calls the hardware abstraction layer controls the camera hardware and the image codec to implement the captured image, including:
  • the method further includes:
  • the shooting parameters of the independent camera application are set at a specified parameter setting interface according to the received user instruction.
  • the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image, and further includes:
  • the mobile terminal is controlled to switch from the independent camera system to the main operating system according to the received switching instruction.
  • controlling the mobile terminal to switch from the independent camera system to the main operating system according to the received switching instruction comprises:
  • the switching instruction is obtained by receiving a press of a designated virtual button or a designated physical button, and the mobile terminal is controlled to switch from the independent camera system to the main operating system.
  • the switching instruction is received by receiving a button of the specified entity by one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the method for shooting by the mobile terminal further includes:
  • the mobile terminal After the mobile terminal enters the independent camera system, if the user instruction is not received within the preset time, the mobile terminal is controlled to enter a sleep state.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions that are implemented by a processor to implement the above method.
  • the independent camera application is started; in the independent camera application, the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image. Realizing that the mobile terminal shoots through a separate camera system, It solves the problem that the mobile terminal can't shoot when the power consumption of the mobile terminal is fast and the RF signal interferes, and the time and convenience of the mobile terminal for shooting are improved.
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal implementing an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a wireless communication device of the mobile terminal shown in FIG. 1;
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a mobile terminal that performs shooting based on an independent camera system according to the present invention
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of a mobile terminal that performs shooting based on an independent camera system according to the present invention
  • FIG. 5 is a schematic flow chart of a first embodiment of a method for photographing based on an independent camera system according to the present invention
  • FIG. 6 is a schematic flow chart of a second embodiment of a method for photographing based on an independent camera system according to the present invention.
  • the mobile terminal can be implemented in a variety of forms.
  • the terminals described herein may include mobile terminals such as smart phones, notebook computers, PADs (Plates), PMPs (Portable Multimedia Players), and the like, as well as fixed terminals such as digital TVs, desktop computers, and the like.
  • mobile terminals such as smart phones, notebook computers, PADs (Plates), PMPs (Portable Multimedia Players), and the like
  • fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • the configuration according to an embodiment of the present invention can be applied to a fixed type in addition to an element particularly for moving purposes. terminal.
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal implementing an embodiment of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an A/V input unit 120, a user input unit 130, an output unit 140, a memory 150, a controller 160, a power supply unit 170, and the like.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication device or network.
  • the wireless communication unit may include at least one of the mobile communication module 111, the wireless internet module 112, and the short-range communication module 113.
  • the mobile communication module 111 transmits radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or multiple types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 112 supports wireless internet access for mobile terminals.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the short range communication module 113 is arranged to support short range communication.
  • Some examples of short-range communication technology include Bluetooth TM, a radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, etc. TM.
  • the A/V input unit 120 is arranged to receive an audio or video signal.
  • the A/V input unit 120 may include a camera 121 that processes image data of still pictures or video obtained by an image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 141.
  • the image frames processed by the camera 121 may be stored in the memory 150 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the user input unit 130 can generate key input data according to a command input by the user to control the movement. Terminal operation.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a trigger board (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), and a scroll wheel. , rocker, etc.
  • a trigger board eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact
  • a scroll wheel e.g., rocker, etc.
  • a trigger screen can be formed.
  • the output unit 140 may include a display unit 141 that may display information processed in the mobile terminal 100.
  • the display unit 141 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • the display unit 141 can function as an input device and an output device.
  • the display unit 141 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the trigger screen can be used to detect the trigger input pressure as well as the trigger input position and trigger input area.
  • the memory 150 may store a software program or the like for processing and control operations performed by the controller 160, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 150 can store data regarding various modes of vibration and audio signals that are output when triggered to be applied to the trigger screen.
  • the memory 150 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 150 through a network connection.
  • Controller 160 typically controls the overall operation of the mobile terminal. For example, controller 160 performs the control and processing associated with voice calls, data communications, video calls, and the like. In addition, the controller 160 can A multimedia module 161 for reproducing (or playing back) multimedia data may be included, and the multimedia module 161 may be constructed within the controller 160 or may be configured to be separate from the controller 160. The controller 160 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the trigger screen as a character or an image.
  • the power supply unit 170 receives external power or internal power under the control of the controller 160 and provides appropriate power required to operate each component and component.
  • the embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein is implemented, in some cases such an embodiment may be at the controller 160 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 150 and executed by
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among a plurality of types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the embodiment of the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal 100 as shown in FIG. 1 may be configured to operate using, for example, wired and wireless communication devices and satellite-based communication devices that transmit data via frames or packets.
  • a communication device in which a mobile terminal is operable according to an embodiment of the present invention will now be described with reference to FIG.
  • Such communication devices may use different air interfaces and/or physical layers.
  • air interfaces used by communication devices include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications Equipment (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications Equipment
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • a CDMA wireless communication device can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be understood that the apparatus as shown in FIG. 2 may include a plurality of BSCs 275.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Sub-Device (BTS) or other equivalent terminology.
  • BTS Base Transceiver Sub-Device
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • multiple partitions of a particular BS 270 may be referred to as multiple cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the device.
  • BT broadcast transmitter
  • GPS Global Positioning Device
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it will be appreciated that useful positioning information can be obtained using any number of satellites. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • the BS 270 receives a reverse link signal from the mobile terminal 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • the PSTN 290 interfaces with the MSC 280
  • the MSC interfaces with the BSC 275
  • the BSC 275 controls the BS 270 accordingly.
  • the forward link signal is transmitted to the mobile terminal 100.
  • the mobile terminal of this embodiment includes a main operating system and a stand-alone camera system, and the mobile terminal includes:
  • the startup module 10 is configured to: after the mobile terminal enters the independent camera system, start the independent camera application;
  • the type of the mobile terminal may be set according to actual needs.
  • the mobile terminal may include a mobile phone, an iPad, and the like.
  • a separate camera system can be pre-created in the mobile terminal, ie a separate camera system can be added without changing the hardware conditions of the mobile terminal.
  • the stand-alone camera system can run a stand-alone camera application independently, and the stand-alone camera system is separate from the main operating system in the normal mode of the mobile terminal. After the mobile terminal enters the standalone camera system, the standalone camera application is launched by the boot module 10.
  • the main operating system of the mobile terminal may be an Android system, and the independent camera system is an embedded system.
  • the mobile terminal can only enable the independent camera application to perform the shooting function, and a large number of processes in the background are not running. Therefore, the mobile terminal can be controlled to be in a power saving state under the embedded system.
  • the mobile terminal is turned into a stand-alone camera without the support of the main operating system, so as to increase the shooting time of the mobile phone.
  • the shooting module 20 is configured to: in the startup of the independent camera application by the startup module 10, call a dynamic library of the hardware abstraction layer to perform control of the camera hardware and the image codec to capture an image.
  • the shooting module 20 In the independent camera application, in the case of not running the main operating system of the mobile terminal, the shooting module 20 directly calls the hardware abstraction layer (HAL) dynamic library operation camera hardware to realize the functions of photographing and imaging of the independent camera application. .
  • the shooting module 20 obtains a method for controlling an independent camera application provided by the HAL layer through functions such as dlopen, dlsym, and dlclose in the dynamic library, and uses the method provided by the HAL layer to perform the process of opening the camera, starting the preview image, taking a photo, encoding the image, and decoding. Display images, capture video, etc. for independent camera applications The function. Therefore, in the case that the user only needs the mobile phone to shoot, the ability to endurance for a long time can be achieved.
  • HAL hardware abstraction layer
  • the dlsym function is an address corresponding to the symbol and the return symbol according to the dynamic link library operation handle. Using this function not only gets the function address, but also the variable address.
  • the dlopen function opens a dynamic link library and returns the handle of the dynamic link library to the calling process of dlsym.
  • the dlclose function is used to close the dynamic link library of the specified handle, that is, use dlclose to unload the open library. Only when the usage count of this dynamic link library is 0, will it be actually uninstalled by the system.
  • the user can perform shooting through the screen touch operation of the mobile terminal or the shooting button preset by the mobile terminal.
  • the independent camera system stores the photographed image in an image storage space designated by the mobile terminal, and the image storage space may be shared with the image storage space under the main operating system, or may be separate, after the mobile terminal enters the main operating system. , you can browse or manipulate the images stored under the independent camera system.
  • the mobile terminal when the main operating system of the mobile terminal is turned off, since the device that is not needed by the camera system is turned off, the APP application built in the mobile terminal will not run in the background, saving the power of the mobile phone.
  • the mobile terminal since the mobile terminal turns off the device related to the search signal, the mobile terminal does not perform repeated search signals to achieve the purpose of reducing power consumption.
  • the user can use the mobile terminal instead of the card machine to use as a shooting tool.
  • the mobile terminal can be used under the independent camera system, so that the mobile phone can have a longer shooting time and a larger number of shots without changing the battery capacity of the mobile terminal.
  • the mobile terminal's main operating system is turned off, so that the mobile terminal's Bluetooth, sensor, NFC (Near Field Communication, near Devices such as wireless communication technology are turned off. Therefore, when the user is on the aircraft and needs to turn off the mobile terminal to prevent the network from interfering with the normal flight of the aircraft, the user may switch to the independent camera system when the user wants to use the mobile terminal for shooting, because the mobile terminal is not activated under the independent camera system.
  • the main operating system such as communication only realizes the camera's shooting function. Therefore, there is no radio frequency signal that interferes with the normal flight of the aircraft at this time, which can meet the needs of the mobile terminal to shut down. Users can use the camera to shoot under the independent camera system. Photographed.
  • the independent camera application is started; in the independent camera application, the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image.
  • the mobile terminal is photographed by the independent camera system, which solves the problem that the mobile terminal can not shoot when the power consumption of the mobile terminal is fast and the radio frequency signal interferes, and the time and convenience of the mobile terminal for shooting are improved.
  • the mobile terminal further includes: a first switching module 30, configured to: if the mobile terminal is currently running in a main operating system mode or When the power is off, the mobile terminal is controlled to switch from the main operating system or the shutdown state to the independent camera system mode according to the received switching instruction.
  • a first switching module 30 configured to: if the mobile terminal is currently running in a main operating system mode or When the power is off, the mobile terminal is controlled to switch from the main operating system or the shutdown state to the independent camera system mode according to the received switching instruction.
  • the first switching module is configured to: obtain the switching instruction by receiving a pressing of a specified virtual button or a designated physical button.
  • the first switching module is configured to: receive the switching instruction by receiving a pressing of the specified physical button by using one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the first switching module 30 can control the mobile terminal to switch to the running interface of the independent camera system mode by using the switching instruction.
  • the switching instruction may be generated by touching a virtual button of the mobile phone or a physical button of the hardware.
  • a switching button is disposed on the side of the mobile terminal, and the mobile terminal is controlled to enter the independent camera system by pressing the switching button.
  • Method 2 By simultaneously pressing the power button and the volume button of the mobile terminal, the two buttons can be combined to enter the independent camera system.
  • the power button of the mobile terminal can also be combined with the return button, or the home button, or the menu button.
  • Mode 3 When a preset time is reached by pressing a certain button, for example, the button may be a volume button, a return button, a menu button, etc., or by clicking a preset icon on the mobile phone, the preset time may be based on actual conditions. Flexible setting For example, it can be set to 3 seconds, which is equivalent to a long press event. It can be understood that the manner in which the first switching module 30 controls the mobile terminal to enter the independent camera system can also be flexibly set according to actual conditions, and the present application is not limited.
  • the mobile terminal when the mobile terminal is running and the main operating system is in the off state, the mobile terminal can be controlled to switch to the independent camera system, so that only the independent camera system is activated to perform image capturing, and the convenience of using the mobile terminal for shooting is improved.
  • the shooting module 20 is configured to invoke a dynamic library loading camera driver of the hardware abstraction layer, collect image data through the camera, and display the captured image data on the screen, according to The received shooting command encodes the current image data to generate an image file of a specified format for transmission or storage.
  • the shooting module 20 controls the camera hardware and the image codec through the dynamic library provided by the HAL layer.
  • the shooting module 20 opens the dynamic library provided by the HAL layer through the dlopen function, for example, libmmcamera_interface.so to obtain the camera hardware control instruction, loads the camera driver, collects image data through the camera, and displays the captured image data on the screen for preview.
  • the command to shoot is executed.
  • the dynamic library provided by the HAL layer is opened by the dlopen function, for example, libmmjpeg_interface.so obtains an instruction for image encoding, and when the user generates a shooting instruction through a screen touch operation of the mobile terminal or a shooting button preset by the mobile terminal, the camera reports the photo image data. .
  • the capturing module 20 obtains the image data currently sent by the camera according to the received shooting instruction, encodes the image, compresses and generates an image file of a specified format for transmission or storage, for example, saves jpeg image data generated by the image data obtained by the mobile terminal.
  • the shooting function is realized under the specified album path. When the stored image needs to be previewed, the compressed image can be decompressed to display a clear image.
  • the camera hardware and image codec control of the mobile terminal under the main operating system is implemented by a layer-by-layer function of the Android system to the HAL layer of the platform (for example, camera App->framework->HAL).
  • the independent camera system of the embodiment directly controls the encoding and decoding of the camera hardware and the image through the library function provided by the dynamic library, and solves the problem that the closed terminal cannot be photographed when the mobile terminal consumes power quickly and the radio frequency signal interferes with the main operating system. , improved the end of the mobile The length and convenience of shooting.
  • the mobile terminal further includes: a setting module, configured to: apply a shooting parameter to the independent camera in a specified parameter setting interface according to the received user instruction. Make settings.
  • the setting interface of the independent camera system includes a photographing interface, a camera interface, a camera-related parameter setting interface, and the like.
  • the setup module can set the shooting parameters of the independent camera application through the specified parameter setting interface, for example, white balance, exposure, shutter time and other shooting parameters. It is also possible to set the operating parameters of the independent camera system such as the running frequency of the CPU and the brightness of the screen, and control the mobile terminal to be in a power saving state, so as to reduce the power consumption when the mobile terminal performs photographing.
  • the camera parameters of the mobile terminal running in the normal mode of the main operating system are independently configured with the camera parameters of the independent camera system.
  • the mobile terminal enters the independent camera system to set the camera parameters, when the independent camera system re-enters the main operating system. You can continue to use the camera parameters of the main operating system.
  • the parameter configuration between the two systems is independent and does not affect each other. For example, in the main operating system, the user sets the front camera, and in the independent camera system, the user sets the rear camera. When the user controls the independent camera system to take a picture using the camera under the main operating system, the front camera is used; When the user controls the independent camera system to take a picture using the camera under the camera system, the rear camera is used.
  • the camera shooting parameters of the mobile terminal under the main operating system and the independent camera system are independently set, and the mobile terminal is operated under the independent camera system, and the shooting parameters of the independent camera application are independently set, so that the ideal shooting is performed.
  • Image effects enabling the shooting functions required for stand-alone camera applications, making it easy for users to use and improving the user experience.
  • the mobile terminal further includes: a second switching module, configured to: control, according to the received switching instruction, the mobile terminal to switch from the independent camera system to the main operating system.
  • the second switching module is configured to: obtain the switching instruction by receiving a pressing of a specified virtual button or a designated physical button.
  • the second switching module is configured to: receive the switching instruction by receiving a pressing of the specified physical button by using one of the following manners:
  • the specified physical button is pressed to reach the preset duration.
  • the mobile terminal is in the independent camera system
  • the second switching module can control the mobile terminal to switch to the main operating system through the virtual button/physical button to turn off the function of the independent camera system.
  • the button may be a power button, a volume button, a return button, a menu button, etc.
  • the mobile terminal is controlled to enter a main operation by clicking a preset icon on the mobile terminal.
  • the system returns to the normal mode of the mobile terminal.
  • the preset time can be flexibly set according to actual conditions, for example, can be set to 3 seconds.
  • the second switching module can also switch the mobile terminal from the independent camera system to the independent camera system by other means, and does not limit the present application.
  • the mobile terminal further includes:
  • the hibernation module is configured to: after the mobile terminal enters the independent camera system, if the user instruction is not received within the preset time, the mobile terminal is controlled to enter a sleep state.
  • the preset time can be set to 3 minutes, or it can be flexibly set according to the actual situation.
  • the image file captured under the independent camera system is shared between the two systems, the image stored by the independent camera system can be browsed under the main operating system, and the image can be cropped, modified, beautified, and the like.
  • the user can control the mobile terminal to switch between the main operating system and the independent camera system, save the power consumption of the mobile terminal according to the user's needs, and process the stored image in the main operating system to improve The convenience of the user to take a photo using the mobile terminal.
  • the shooting method based on the independent camera system of this embodiment includes:
  • Step S10 After the mobile terminal enters the independent camera system, the independent camera application is started;
  • the type of the mobile terminal may be set according to actual needs.
  • the mobile terminal may include a mobile phone, an iPad, and the like.
  • a separate camera system can be pre-created in the mobile terminal, ie a separate camera system can be added without changing the hardware conditions of the mobile terminal.
  • the stand-alone camera system can run a stand-alone camera application independently, and the stand-alone camera system is separate from the main operating system in the normal mode of the mobile terminal. After the mobile terminal enters the standalone camera system, the standalone camera application is launched.
  • the main operating system of the mobile terminal may be an Android system, and the independent camera system is an embedded system.
  • the mobile terminal can only enable the independent camera application to perform the shooting function, and a large number of processes in the background are not running. Therefore, the mobile terminal can be controlled to be in a power saving state under the embedded system.
  • the mobile terminal is turned into a stand-alone camera without the support of the main operating system, so as to increase the shooting time of the mobile phone.
  • Step S20 In the independent camera application that is started, the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image.
  • the mobile terminal directly calls the hardware abstraction layer (HAL) dynamic library operation camera hardware to realize the functions of photographing and imaging of the independent camera application without running the main operating system of the mobile terminal.
  • the mobile terminal acquires a method for controlling the independent camera application provided by the HAL layer through functions such as dlopen, dlsym, and dlclose in the dynamic library, and uses the method provided by the HAL layer to perform the process of opening the camera, starting the preview image, taking a picture, encoding the image, decoding the display image, Operations such as shooting video enable the functions required for stand-alone camera applications. Therefore, in the case that the user only needs the mobile phone to shoot, the ability to endurance for a long time can be achieved.
  • HAL hardware abstraction layer
  • the dlsym function is an address corresponding to the symbol and the return symbol according to the dynamic link library operation handle. Using this function not only gets the function address, but also the variable address.
  • the dlopen function opens a dynamic link library and returns the handle of the dynamic link library to the calling process of dlsym.
  • the dlclose function is used to close the dynamic link library of the specified handle, that is, use dlclose to uninstall The open library, only when the usage count of this dynamic link library is 0, will be actually uninstalled by the system.
  • the user can perform shooting through the screen touch operation of the mobile terminal or the shooting button preset by the mobile terminal.
  • the independent camera system stores the photographed image in an image storage space designated by the mobile terminal, and the image storage space may be shared with the image storage space under the main operating system, or may be separate, after the mobile terminal enters the main operating system. , you can browse or manipulate the images stored under the independent camera system.
  • the mobile terminal when the main operating system of the mobile terminal is turned off, since the device that is not needed by the camera system is turned off, the APP application built in the mobile terminal will not run in the background, saving the power of the mobile phone.
  • the mobile terminal since the mobile terminal turns off the device related to the search signal, the mobile terminal does not perform repeated search signals to achieve the purpose of reducing power consumption.
  • the user can use the mobile terminal instead of the card machine to use as a shooting tool.
  • the mobile terminal can be used under the independent camera system, so that the mobile phone can have a longer shooting time and a larger number of shots without changing the battery capacity of the mobile terminal.
  • the mobile terminal's main operating system is turned off, so that the mobile terminal's Bluetooth, sensor, NFC, etc. are all turned off. . Therefore, when the user is on the aircraft and needs to turn off the mobile terminal to prevent the network from interfering with the normal flight of the aircraft, the user may switch to the independent camera system when the user wants to use the mobile terminal for shooting, because the mobile terminal is not activated under the independent camera system.
  • the main operating system such as communication only realizes the camera's shooting function. Therefore, there is no RF signal to interfere with the normal flight of the aircraft at this time, which can meet the needs of the mobile terminal to shut down. The user can use the camera to shoot under the independent camera system.
  • the independent camera application is started; in the independent camera application, the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image.
  • the mobile terminal is photographed by the independent camera system, which solves the problem that the mobile terminal can not shoot when the power consumption of the mobile terminal is fast and the radio frequency signal interferes, and the time and convenience of the mobile terminal for shooting are improved.
  • the foregoing may further include: if the mobile terminal is currently running on a main operating system, The mode is in a shutdown state, and the mobile terminal is controlled to switch from the main operating system or the shutdown state to the independent camera system mode according to the received switching instruction.
  • the controlling the mobile terminal to switch from the main operating system or the shutdown state to the independent camera system mode according to the received switching instruction may include:
  • the switching instruction is obtained by receiving a press of a designated virtual button or a designated physical button, and the mobile terminal is controlled to switch from a main operating system or a shutdown state to the independent camera system mode.
  • the switching instruction can be obtained by receiving a press of the designated entity button by one of the following methods:
  • the specified physical button is pressed to reach the preset duration.
  • the mobile terminal when the mobile terminal is in the main operating system mode in the normal power-on state, or is in the power-off state, the mobile terminal can control the mobile terminal to switch to the running interface of the independent camera system mode to perform shooting by using the switching instruction.
  • the switching instruction may be generated by touching a virtual button of the mobile phone or a physical button of the hardware.
  • a switching button is disposed on the side of the mobile terminal, and the mobile terminal is controlled to enter the independent camera system by pressing the switching button.
  • Method 2 By simultaneously pressing the power button and the volume button of the mobile terminal, the two buttons can be combined to enter the independent camera system.
  • the power button of the mobile terminal can also be combined with the return button, or the home button, or the menu button.
  • Mode 3 When a preset time is reached by pressing a certain button, for example, the button may be a volume button, a return button, a menu button, etc., or by clicking a preset icon on the mobile phone, the preset time may be based on actual conditions.
  • the flexible setting for example, can be set to 3 seconds, which is equivalent to a long press event. It can be understood that the manner of controlling the mobile terminal to enter the independent camera system can also be flexibly set according to actual conditions, and the present application is not limited.
  • the mobile terminal when the mobile terminal is running and the main operating system is in the off state, the mobile terminal can be controlled to switch to the independent camera system, so that only the independent camera system is activated to perform image capturing, and the convenience of using the mobile terminal for shooting is improved.
  • the step S20 may include: calling a dynamic library loading camera driver of the hardware abstraction layer, collecting image data through the camera, and displaying the collected image data on the screen. Preview, encoding the current image data according to the received shooting instruction to generate an image file of a specified format for transmission or storage.
  • the mobile terminal controls the camera hardware and the image codec through the dynamic library provided by the HAL layer.
  • the dynamic library provided by the HAL layer through the dlopen function, for example, libmmcamera_interface.so to obtain the camera hardware control command, load the camera driver, collect image data through the camera, and display the captured image data on the screen for preview.
  • the command to shoot is executed.
  • the dynamic library provided by the HAL layer is opened by the dlopen function, for example, libmmjpeg_interface.so obtains an instruction for image encoding, and when the user generates a shooting instruction through a screen touch operation of the mobile terminal or a shooting button preset by the mobile terminal, the camera reports the photo image data. .
  • the mobile terminal obtains the image data currently sent by the camera according to the received shooting instruction, the image is encoded and compressed to generate an image file of a specified format for transmission or storage.
  • the jpeg image data generated by the image data obtained by the mobile terminal is saved to The shooting function is implemented under the specified album path.
  • the compressed image can be decompressed to display a clear image.
  • the camera hardware and image codec control of the mobile terminal under the main operating system is implemented by a layer-by-layer function of the Android system to the HAL layer of the platform (for example, camera App->framework->HAL).
  • the independent camera system of the embodiment directly controls the encoding and decoding of the camera hardware and the image through the library function provided by the dynamic library, and solves the problem that the closed terminal cannot be photographed when the mobile terminal consumes power quickly and the radio frequency signal interferes with the main operating system. , to improve the duration and convenience of the mobile terminal to shoot.
  • the method further includes: setting, according to the received user instruction, the shooting parameters of the independent camera application in the specified parameter setting interface.
  • the setting interface of the independent camera system includes a photographing interface, a camera interface, and a camera.
  • Related parameter setting interface, etc. the user can set the shooting parameters of the independent camera application in the specified parameter setting interface, for example, white balance, exposure, shutter time and other shooting parameters. It is also possible to set the operating parameters of the independent camera system such as the running frequency of the CPU and the brightness of the screen, and control the mobile terminal to be in a power saving state, so as to reduce the power consumption when the mobile terminal performs photographing.
  • the camera parameters of the mobile terminal running in the normal mode of the main operating system are independently configured with the camera parameters of the independent camera system.
  • the mobile terminal enters the independent camera system to set the camera parameters, when the independent camera system re-enters the main operating system. You can continue to use the camera parameters of the main operating system.
  • the parameter configuration between the two systems is independent and does not affect each other. For example, in the main operating system, the user sets the front camera, and in the independent camera system, the user sets the rear camera. When the user controls the independent camera system to take a picture using the camera under the main operating system, the front camera is used; When the user controls the independent camera system to take a picture using the camera under the camera system, the rear camera is used.
  • the camera shooting parameters of the mobile terminal under the main operating system and the independent camera system are independently set, and the mobile terminal is operated under the independent camera system, and the shooting parameters of the independent camera application are independently set, so that the ideal shooting is performed.
  • Image effects enabling the shooting functions required for stand-alone camera applications, making it easy for users to use and improving the user experience.
  • the foregoing step S20 may include: controlling, according to the received switching instruction, the mobile terminal to switch from the independent camera system to the main operating system.
  • the controlling the mobile terminal to switch from the independent camera system to the main operating system according to the received switching instruction may include:
  • the switching instruction is obtained by receiving a press of a designated virtual button or a designated physical button, and the mobile terminal is controlled to switch from the independent camera system to the main operating system.
  • the switching instruction can be obtained by receiving a press of the designated entity button by one of the following methods:
  • the specified physical button is pressed to reach the preset duration.
  • the user can control the mobile terminal to switch to the main operating system through the virtual button/physical button to turn off the function of the independent camera system.
  • the button may be a power button, a volume button, a return button, a menu button, etc.
  • the mobile terminal is controlled to enter a main operation by clicking a preset icon on the mobile terminal.
  • the system returns to the normal mode of the mobile terminal.
  • the preset time can be flexibly set according to actual conditions, for example, can be set to 3 seconds.
  • the mobile terminal can also be switched from the independent camera system to the independent camera system by other means, and the present application is not limited.
  • the method for performing shooting by the mobile terminal further includes:
  • the mobile terminal After the mobile terminal enters the independent camera system, if the user instruction is not received within the preset time, the mobile terminal is controlled to enter a sleep state.
  • the preset time can be set to 3 minutes, or it can be flexibly set according to the actual situation.
  • the image file captured under the independent camera system is shared between the two systems, the image stored by the independent camera system can be browsed under the main operating system, and the image can be cropped, modified, beautified, and the like.
  • the user can control the mobile terminal to switch between the main operating system and the independent camera system, save the power consumption of the mobile terminal according to the user's needs, and process the stored image in the main operating system to improve The convenience of the user to take a photo using the mobile terminal.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed by the processor.
  • the technical solution of the embodiment of the present invention may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM, a magnetic disk, an optical disk), and includes a plurality of instructions for making
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc. performs the method described in the embodiments of the present invention.
  • the independent camera application is started; in the independent camera application, the dynamic library of the hardware abstraction layer is called to perform control of the camera hardware and the image codec to capture the image.
  • the mobile terminal realizes shooting through an independent camera system, solves the problem that the mobile terminal can not shoot when the power consumption of the mobile terminal is fast and the radio frequency signal interferes, and the time and convenience of the mobile terminal for shooting are improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本文公布一种移动终端进行拍摄方法及移动终端,所述方法包括:在移动终端进入独立相机系统后,启动独立相机应用;在所启动的所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。

Description

移动终端进行拍摄方法及移动终端 技术领域
本申请涉及但不限于移动终端技术领域,尤指一种移动终端进行拍摄方法及移动终端。
背景技术
随着人们生活水平的不断提高以及网络技术的不断发展,越来越多的人习惯在任何时候任何地点均能通过移动终端与外界进行信息交互。现在移动终端摄像头基本替代卡片机,成为普通用户出行拍摄的首选,而人们使用的移动终端都是智能化的设备,移动终端在正常工作中,运行了大量的进程,这些进程都在后台占用着系统资源从而不断的消耗电池的电量,使得移动终端在电量一定的情况下使用时间非常短。这种情况下,在使用移动终端进行拍摄时,受电池容量的限制,移动终端每次充满电只能拍摄少量的图像。
另外,当在关机情况下时,用户需要经过开机启动移动终端的主操作系统才可以使用相机。当用户在坐飞机的时候需要关闭手机等防射频信号干扰的场合,用户希望使用移动终端进行拍摄的时候却不能开机,非常不方便。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种移动终端进行拍摄方法及移动终端,解决移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高移动终端进行拍摄的时长及便捷性。
本发明实施例提供了一种移动终端,所述移动终端包括主操作系统及搭载独立相机系统,该移动终端包括:
启动模块,设置为:在移动终端进入独立相机系统后,启动独立相机应用;
拍摄模块,设置为:在所述启动模块启动独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
可选地,所述移动终端还包括:
第一切换模块,设置为:若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
可选地,所述第一切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
可选地,所述第一切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
可选地,所述拍摄模块还设置为,调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。可选地,所述移动终端还包括:
设置模块,设置为:根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
可选地,第二切换模块,设置为:根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
可选地,所述第二切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
可选地,所述第二切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
可选地,所述移动终端还包括:
休眠模块,设置为:在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
本发明实施例还提供了一种移动终端进行拍摄方法,包括:
在移动终端进入独立相机系统后,启动独立相机应用;
在所启动的所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
可选地,在所述移动终端进入所述独立相机系统之前。还包括:
若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
可选地,所述根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式包括:
通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
可选地,通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
可选地,所述相机硬件包括摄像头,所述调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以实现拍摄得到图像包括:
调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。
可选地,所述在移动终端进入独立相机系统后,启动独立相机应用之后,还包括:
根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
可选地,所述在所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像之后,还包括:
根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
可选地,所述根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统包括:
通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从所述独立相机系统换至主操作系统。
可选地,通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
可选地,所述移动终端进行拍摄方法还包括:
在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述方法。
本发明实施例在移动终端进入独立相机系统后,启动独立相机应用;在独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。实现了移动终端通过独立相机系统进行拍摄, 解决移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终端进行拍摄的时长及便捷性。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为实现本发明实施例一个可选的移动终端的硬件结构示意图;
图2为如图1所示的移动终端的无线通信装置示意图;
图3为本发明基于独立相机系统进行拍摄的移动终端第一实施例的功能模块示意图;
图4为本发明基于独立相机系统进行拍摄的移动终端第二实施例的功能模块示意图;
图5为本发明基于独立相机系统进行拍摄方法第一实施例的流程示意图;
图6为本发明基于独立相机系统进行拍摄方法第二实施例的流程示意图。
本发明的实施方式
应当理解,此处所描述的实施例仅仅用以解释本申请,并不用于限定本申请。
现在将参考附图描述实现本发明实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明实施例的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
移动终端可以以多种形式来实施。例如,本文中描述的终端可以包括诸如智能电话、笔记本电脑、PAD(平板电脑)、PMP(便携式多媒体播放器)等等的移动终端,以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的 终端。
图1为实现本发明实施例一个可选的移动终端的硬件结构示意图。
移动终端100可以包括无线通信单元110、A/V输入单元120、用户输入单元130、输出单元140、存储器150、控制器160和电源单元170等等。图1示出了具有多种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信装置或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块111、无线互联网模块112和短程通信模块113中的至少一个。
移动通信模块111将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的多种类型的数据。
无线互联网模块112支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。
短程通信模块113设置为支持短程通信。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。
A/V输入单元120设置为接收音频或视频信号。A/V输入单元120可以包括相机121,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元141上。经相机121处理后的图像帧可以存储在存储器150(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动 终端的操作。用户输入单元130允许用户输入多种类型的信息,并且可以包括键盘、锅仔片、触发板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触发板以层的形式叠加在显示单元141上时,可以形成触发屏。
输出单元140可以包括显示单元141,显示单元141可以显示在移动终端100中处理的信息。例如,当移动终端100处于视频通话模式或者图像捕获模式时,显示单元141可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示单元141和触发板以层的形式彼此叠加以形成触发屏时,显示单元141可以用作输入装置和输出装置。显示单元141可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触发屏可用于检测触发输入压力以及触发输入位置和触发输入面积。
存储器150可以存储由控制器160执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器150可以存储关于当触发施加到触发屏时输出的多种方式的振动和音频信号的数据。
存储器150可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器150的存储功能的网络存储装置协作。
控制器160通常控制移动终端的总体操作。例如,控制器160执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器160可以 包括用于再现(或回放)多媒体数据的多媒体模块161,多媒体模块161可以构造在控制器160内,或者可以构造为与控制器160分离。控制器160可以执行模式识别处理,以将在触发屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元170在控制器160的控制下接收外部电力或内部电力并且提供操作每个元件和组件所需的适当的电力。
这里描述的实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器160中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器150中并且由控制器160执行。
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的多种类型的移动终端中的滑动型移动终端作为示例。因此,本发明实施例能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信装置以及基于卫星的通信装置来操作。
现在将参考图2描述其中根据本发明实施例的移动终端能够操作的通信装置。
这样的通信装置可以使用不同的空中接口和/或物理层。例如,由通信装置使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信装置(UMTS)(特别地,长期演进(LTE))、全球移动通信装置(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信装置,但是这样的教导同样适用于其它类型的装置。
参考图2,CDMA无线通信装置可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据多个己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的装置可以包括多个BSC275。
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子装置(BTS)或者其它等效术语。在这样的情况下,术语“基站”可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为“蜂窝站”。或者,特定BS270的多个分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在装置内操作的移动终端100。在图2中,示出了几个全球定位装置(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。
在图2中,描绘了多个卫星300,但是可以理解的是,可以利用任何数目的卫星获得有用的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信装置的一个典型操作,BS270接收来自移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270 以将正向链路信号发送到移动终端100。
基于上述移动终端硬件结构、通信装置的结构,提出本发明方法实施例。
如图3所示,示出了本发明一种基于独立相机系统进行拍摄的移动终端第一实施例。该实施例的移动终端包括主操作系统及搭载独立相机系统,该移动终端包括:
启动模块10,设置为:在移动终端进入独立相机系统后,启动独立相机应用;
本实施例中,移动终端的类型可根据实际需要进行设置,例如,移动终端可包括手机,iPad等。
可在移动终端内可预先创建一个独立相机系统,即在不改变移动终端硬件条件的情况下,加入一套独立相机系统。该独立相机系统可独立运行独立相机应用,独立相机系统与移动终端正常模式下的主操作系统是分开的。在移动终端进入独立相机系统后,由启动模块10启动独立相机应用。
可选地,移动终端的主操作系统可为安卓系统,独立相机系统为嵌入式系统,在此独立相机系统下,移动终端仅能实现启动独立相机应用进行拍摄功能,后台的大量进程都不运行,使得在嵌入式系统下可控制移动终端处于节电状态。在不需要主操作系统支撑的情况下将移动终端变成了一个独立相机使用,以达到增加手机拍摄时间的目的。
拍摄模块20,设置为:在所述启动模块10启动独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
在独立相机应用中,在不运行移动终端的主操作系统的情况下,拍摄模块20直接调用硬件抽象层(Hardware Abstraction Layer,HAL)的动态库操作相机硬件实现独立相机应用的拍照、摄像等功能。其中,拍摄模块20通过动态库中的dlopen、dlsym、dlclose等函数获取HAL层提供的控制独立相机应用的方法,使用HAL层提供的方法执行打开相机、启动预览图像、拍照、编码保存图像、解码显示图像、拍摄视频等操作实现独立相机应用所需 的功能。从而使得在用户只需要手机进行拍摄的情况下,可以达到超长时间续航的能力。
其中,dlsym函数为根据动态链接库操作句柄与符号,返回符号对应的地址。使用这个函数不但可以获取函数地址,也可以获取变量地址。dlopen函数为打开一个动态链接库,并返回动态链接库的句柄给dlsym的调用进程。dlclose函数用于关闭指定句柄的动态链接库,即使用dlclose来卸载打开的库,只有当此动态链接库的使用计数为0时,才会真正被系统卸载。
当移动终端进入独立相机应用后,用户可以通过移动终端的屏幕触摸操作或者移动终端预置的拍摄按键进行拍摄。独立相机系统将拍照得到的图像存储在移动终端指定的图像存储空间,该图像存储空间与主操作系统下的图像存储空间可以是共用的,也可以是分开的,当移动终端进入主操作系统后,可浏览或操作独立相机系统下所存储的图像。
可以理解的是,当移动终端的主操作系统关闭的情况下,由于关闭了相机系统不需要用到的设备,移动终端内置的APP应用程序将不会在后台运行,节省了手机的电量。另外,移动终端在无信号区域或弱信号区域内,由于移动终端关闭了搜寻信号相关的设备,因此移动终端不会进行反复搜寻信号,达到降低功耗的目的。在深山中旅行或者穿越时,用户可用该移动终端替代卡片机当拍摄工具使用,由于深山中本身没有网络信号,移动终端其他的功能没有多大的使用空间,用户主要希望利用移动终端进行拍摄,因此,可以在该独立相机系统下使用移动终端,这样在移动终端的电池容量不变的情况下,能够拍摄的时间更久,拍摄数量更多。
在独立相机应用中,仅加载摄像头驱动并启用与相机相应的拍摄应用软件来支持相机的拍照工作,而关闭移动终端的主操作系统,使移动终端的蓝牙、传感器、NFC(Near Field Communication,近距离无线通信技术)等设备都处于关闭状态。因此,当用户在飞机上,需要关闭移动终端以防网络干扰飞机正常飞行的情况下,用户希望使用移动终端进行拍摄时,可以切换到独立相机系统,由于在独立相机系统下,移动终端未启动通讯等主操作系统,仅实现相机的拍摄功能,因此,此时不会有射频信号干扰飞机正常飞行,可以满足移动终端关机的需求,用户可以在该独立相机系统下使用相机进行拍 摄。
本发明实施例在移动终端进入独立相机系统后,启动独立相机应用;在独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。实现了移动终端通过独立相机系统进行拍摄,解决了移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终端进行拍摄的时长及便捷性。
可选地,如图4所示,基于上述第一实施例,本实施例中,上述移动终端还包括:第一切换模块30,设置为:若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
可选地,所述第一切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
可选地,所述第一切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
本实施例中,在移动终端运行于正常开机状态的主操作系统模式下,或者是处于关机状态时,第一切换模块30可通过切换指令控制移动终端切换到独立相机系统模式的运行界面进行拍摄。该切换指令可为触摸手机的虚拟按键或硬件的某个实体按键来产生,例如,方式一:在移动终端侧面设置一个切换按键,通过按压该切换按键即可控制移动终端进入独立相机系统。方式二:通过同时按压移动终端的电源键与音量键,两个按键配合即可进入独立相机系统,当然,移动终端的电源键也可以是与返回按键、或主页键、或菜单键等配合进行控制移动终端进入独立相机系统。方式三:通过按压某一按键达到预设时间时,例如,该按键可以是音量键、返回键、菜单键等,或者通过点击手机上预置的图标等方式,该预设时间可根据实际情况而灵活设 置,例如,可设置为3秒,相当于长按压事件。可以理解的是,第一切换模块30控制移动终端进入独立相机系统的方式也可根据实际情况而灵活设置,并不限定本申请。
本实施例在移动终端运行与主操作系统或处于关机状态下,能够控制移动终端切换至独立相机系统,实现仅启动独立相机系统进行图像的拍摄,提高了使用移动终端进行拍摄的便捷性。
基于上述第一实施例,本实施例中,上述拍摄模块20设置为,调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。
本实施例中,在移动终端进入独立相机系统启动独立相机应用后,拍摄模块20通过HAL层提供的动态库实现对相机硬件及图像编解码的控制。首先拍摄模块20通过dlopen函数打开HAL层提供的动态库,例如libmmcamera_interface.so获取到相机硬件控制指令,加载摄像头驱动,通过摄像头采集图像数据,并将采集到的图像数据在屏幕上进行显示预览。用户点击快门后,执行拍摄的命令。即通过dlopen函数打开HAL层提供的动态库,例如,libmmjpeg_interface.so获取到图像编码的指令,当用户通过移动终端的屏幕触摸操作或者移动终端预置的拍摄按键产生拍摄指令,摄像头上报照片图像数据。拍摄模块20根据接收到的拍摄指令取到摄像头当前发出的图像数据后,对图像进行编码,压缩生成指定格式的图像文件进行传输或存储,例如,移动终端获的图像数据生成的jpeg图像数据保存到指定的相册路径下,实现了拍摄功能。当需要对存储的图像进行预览,可对压缩图像进行解压显示清晰图像。
移动终端在主操作系统下相机硬件和图像编解码控制是通过安卓系统一层一层的函数调用到平台的HAL层去实现的(例如,camera App->framework->HAL)。本实施例的独立相机系统通过动态库提供的库函数直接控制相机硬件及图像的编解码,相对于主操作系统,解决了移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终 端进行拍摄的时长及便捷性。
可选地,基于上述第一实施例,本实施例中,上述移动终端还包括:设置模块,设置为:根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
本实施例中,独立相机系统的设置界面包含拍照界面、摄像界面、相机相关的参数设置界面等。在独立相机应用中,设置模块可通过在指定的参数设置界面,对独立相机应用的拍摄参数进行设置,例如,白平衡、曝光、快门时间等拍摄参数。还可以对CPU的运行频率、屏幕的亮度等独立相机系统的运行参数进行设置,控制移动终端处于节电状态,以达到降低移动终端进行拍照时的功耗的目的。
移动终端运行在主操作系统正常模式下的相机参数与独立相机系统的相机参数是独立配置的。当用户在主操作系统对相机的闪光灯、白平衡、前后摄像头、延时、分辨率等参数进行设置,然后移动终端进入独立相机系统对相机参数进行设置,当独立相机系统重新进入主操作系统时,可以继续使用主操作系统的相机参数,两个系统之间的参数配置是独立的,相互不影响。例如,在主操作系统下用户设置的是前摄像头,而在独立相机系统用户设置的是后摄像头,当用户控制独立相机系统在主操作系统下使用相机进行拍照时,使用的是前摄像头;而当用户控制独立相机系统在相机系统下使用相机进行拍照时,使用的是后摄像头。
本实施例移动终端在主操作系统和独立相机系统下的相机拍摄参数是独立设置的,在移动终端运行在独立相机系统下,通过对独立相机应用的拍摄参数进行独立设置,使得拍摄出理想的图像效果,实现独立相机应用所需的拍摄功能,方便了用户的使用,提高了用户体验。
可选地,基于上述第一实施例,本实施例中,上述移动终端还包括:第二切换模块,设置为:根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
可选地,所述第二切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
可选地,所述第二切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
本实施例中,移动终端在独立相机系统下,第二切换模块可通过虚拟按键/实体按键切控制移动终端切换至主操作系统,关闭独立相机系统的功能。可通过按压某一按键达到预设时间时,例如,该按键可以是电源键、音量键、返回键、菜单键等,或者通过点击移动终端上预置的图标等方式,控制移动终端进入主操作系统,回到移动终端的正常模式。该预设时间可根据实际情况而灵活设置,例如,可设置为3秒。当然,第二切换模块也可通过其他方式将移动终端从独立相机系统切换至独立相机系统,并不限定本申请。
可选地,基于上述第一实施例,本实施例中,上述移动终端还包括:
休眠模块,设置为:在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
在独立相机系统下进行拍摄时,若在预设时间内用户不操作移动终端,则移动终端将进入休眠状态。该预设时间可设置为3分钟,也可根据实际情况而灵活设置。当用户需要继续进行拍照时需要按压任意按键或者触摸屏幕唤醒移动终端,进一步节省了移动终端的功耗。
由于上述在独立相机系统下拍摄得到的图像文件在两个系统间共享,所以可以在主操作系统下浏览独立相机系统所存储的图像,可对图像进行裁剪、修饰、美化等操作。
本实施例用户可控制移动终端在主操作系统与独立相机系统之间进行切换,根据用户需求对切换操作来节省移动终端的功耗,在主操作系统还可对所存储的图像进行处理,提高用户使用移动终端进行拍照的便捷性。
对应地,如图5所示,提出本发明一种基于独立相机系统进行拍摄方法第一实施例。该实施例的基于独立相机系统进行拍摄方法包括:
步骤S10、在移动终端进入独立相机系统后,启动独立相机应用;
本实施例中,移动终端的类型可根据实际需要进行设置,例如,移动终端可包括手机,iPad等。
可在移动终端内可预先创建一个独立相机系统,即在不改变移动终端硬件条件的情况下,加入一套独立相机系统。该独立相机系统可独立运行独立相机应用,独立相机系统与移动终端正常模式下的主操作系统是分开的。在移动终端进入独立相机系统后,启动独立相机应用。
可选地,移动终端的主操作系统可为安卓系统,独立相机系统为嵌入式系统,在此独立相机系统下,移动终端仅能实现启动独立相机应用进行拍摄功能,后台的大量进程都不运行,使得在嵌入式系统下可控制移动终端处于节电状态。在不需要主操作系统支撑的情况下将移动终端变成了一个独立相机使用,以达到增加手机拍摄时间的目的。
步骤S20、在所启动的所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
在独立相机应用中,在不运行移动终端的主操作系统的情况下,移动终端直接调用硬件抽象层(Hardware Abstraction Layer,HAL)的动态库操作相机硬件实现独立相机应用的拍照、摄像等功能。移动终端通过动态库中的dlopen、dlsym、dlclose等函数获取HAL层提供的控制独立相机应用的方法,使用HAL层提供的方法执行打开相机、启动预览图像、拍照、编码保存图像、解码显示图像、拍摄视频等操作实现独立相机应用所需的功能。从而使得在用户只需要手机进行拍摄的情况下,可以达到超长时间续航的能力。
其中,dlsym函数为根据动态链接库操作句柄与符号,返回符号对应的地址。使用这个函数不但可以获取函数地址,也可以获取变量地址。dlopen函数为打开一个动态链接库,并返回动态链接库的句柄给dlsym的调用进程。dlclose函数用于关闭指定句柄的动态链接库,即使用dlclose来卸载打 开的库,只有当此动态链接库的使用计数为0时,才会真正被系统卸载。
当移动终端进入独立相机应用后,用户可以通过移动终端的屏幕触摸操作或者移动终端预置的拍摄按键进行拍摄。独立相机系统将拍照得到的图像存储在移动终端指定的图像存储空间,该图像存储空间与主操作系统下的图像存储空间可以是共用的,也可以是分开的,当移动终端进入主操作系统后,可浏览或操作独立相机系统下所存储的图像。
可以理解的是,当移动终端的主操作系统关闭的情况下,由于关闭了相机系统不需要用到的设备,移动终端内置的APP应用程序将不会在后台运行,节省了手机的电量。另外,移动终端在无信号区域或弱信号区域内,由于移动终端关闭了搜寻信号相关的设备,因此移动终端不会进行反复搜寻信号,达到降低功耗的目的。在深山中旅行或者穿越时,用户可用该移动终端替代卡片机当拍摄工具使用,由于深山中本身没有网络信号,移动终端其他的功能没有多大的使用空间,用户主要希望利用移动终端进行拍摄,因此,可以在该独立相机系统下使用移动终端,这样在移动终端的电池容量不变的情况下,能够拍摄的时间更久,拍摄数量更多。
在独立相机应用中,仅加载摄像头驱动并启用与相机相应的拍摄应用软件来支持相机的拍照工作,而关闭移动终端的主操作系统,使移动终端的蓝牙、传感器、NFC等设备都处于关闭状态。因此,当用户在飞机上,需要关闭移动终端以防网络干扰飞机正常飞行的情况下,用户希望使用移动终端进行拍摄时,可以切换到独立相机系统,由于在独立相机系统下,移动终端未启动通讯等主操作系统,仅实现相机的拍摄功能,因此,此时不会有射频信号干扰飞机正常飞行,可以满足移动终端关机的需求,用户可以在该独立相机系统下使用相机进行拍摄。
本发明实施例在移动终端进入独立相机系统后,启动独立相机应用;在独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。实现了移动终端通过独立相机系统进行拍摄,解决了移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终端进行拍摄的时长及便捷性。
可选地,如图6所示,基于上述第一实施例,本实施例中,上述在所述移动终端进入所述独立相机系统之前还可包括:若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
其中,所述根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式可包括:
通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
其中,可通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
本实施例中,在移动终端运行于正常开机状态的主操作系统模式下,或者是处于关机状态时,移动终端可通过切换指令控制移动终端切换到独立相机系统模式的运行界面进行拍摄。该切换指令可为触摸手机的虚拟按键或硬件的某个实体按键来产生,例如,方式一:在移动终端侧面设置一个切换按键,通过按压该切换按键即可控制移动终端进入独立相机系统。方式二:通过同时按压移动终端的电源键与音量键,两个按键配合即可进入独立相机系统,当然,移动终端的电源键也可以是与返回按键、或主页键、或菜单键等配合进行控制移动终端进入独立相机系统。方式三:通过按压某一按键达到预设时间时,例如,该按键可以是音量键、返回键、菜单键等,或者通过点击手机上预置的图标等方式,该预设时间可根据实际情况而灵活设置,例如,可设置为3秒,相当于长按压事件。可以理解的是,控制移动终端进入独立相机系统的方式也可根据实际情况而灵活设置,并不限定本申请。
本实施例在移动终端运行与主操作系统或处于关机状态下,能够控制移动终端切换至独立相机系统,实现仅启动独立相机系统进行图像的拍摄,提高了使用移动终端进行拍摄的便捷性。
可选地,基于上述第一实施例,本实施例中,上述步骤S20可包括:调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。
本实施例中,在移动终端进入独立相机系统启动独立相机应用后,移动终端通过HAL层提供的动态库实现对相机硬件及图像编解码的控制。首先通过dlopen函数打开HAL层提供的动态库,例如libmmcamera_interface.so获取到相机硬件控制指令,加载摄像头驱动,通过摄像头采集图像数据,并将采集到的图像数据在屏幕上进行显示预览。用户点击快门后,执行拍摄的命令。即通过dlopen函数打开HAL层提供的动态库,例如,libmmjpeg_interface.so获取到图像编码的指令,当用户通过移动终端的屏幕触摸操作或者移动终端预置的拍摄按键产生拍摄指令,摄像头上报照片图像数据。移动终端根据接收到的拍摄指令取到摄像头当前发出的图像数据后,对图像进行编码,压缩生成指定格式的图像文件进行传输或存储,例如,移动终端获的图像数据生成的jpeg图像数据保存到指定的相册路径下,实现了拍摄功能。当需要对存储的图像进行预览,可对压缩图像进行解压显示清晰图像。
移动终端在主操作系统下相机硬件和图像编解码控制是通过安卓系统一层一层的函数调用到平台的HAL层去实现的(例如,camera App->framework->HAL)。本实施例的独立相机系统通过动态库提供的库函数直接控制相机硬件及图像的编解码,相对于主操作系统,解决了移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终端进行拍摄的时长及便捷性。
可选地,基于上述第一实施例,本实施例中,上述步骤S10之后还可包括:根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
本实施例中,独立相机系统的设置界面包含拍照界面、摄像界面、相机 相关的参数设置界面等。在独立相机应用中,用户可在指定的参数设置界面,对独立相机应用的拍摄参数进行设置,例如,白平衡、曝光、快门时间等拍摄参数。还可以对CPU的运行频率、屏幕的亮度等独立相机系统的运行参数进行设置,控制移动终端处于节电状态,以达到降低移动终端进行拍照时的功耗的目的。
移动终端运行在主操作系统正常模式下的相机参数与独立相机系统的相机参数是独立配置的。当用户在主操作系统对相机的闪光灯、白平衡、前后摄像头、延时、分辨率等参数进行设置,然后移动终端进入独立相机系统对相机参数进行设置,当独立相机系统重新进入主操作系统时,可以继续使用主操作系统的相机参数,两个系统之间的参数配置是独立的,相互不影响。例如,在主操作系统下用户设置的是前摄像头,而在独立相机系统用户设置的是后摄像头,当用户控制独立相机系统在主操作系统下使用相机进行拍照时,使用的是前摄像头;而当用户控制独立相机系统在相机系统下使用相机进行拍照时,使用的是后摄像头。
本实施例移动终端在主操作系统和独立相机系统下的相机拍摄参数是独立设置的,在移动终端运行在独立相机系统下,通过对独立相机应用的拍摄参数进行独立设置,使得拍摄出理想的图像效果,实现独立相机应用所需的拍摄功能,方便了用户的使用,提高了用户体验。
可选地,基于上述第一实施例,本实施例中,上述步骤S20之后可包括:根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
其中,所述根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统可包括:
通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从所述独立相机系统换至主操作系统。
其中,可通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
方式一,接收到切换按键的按压;
方式二、接收到两个指定实体按键的同时按压;
方式三,接收到指定实体按键按压达到预设时长。
本实施例中,移动终端在独立相机系统下,用户可通过虚拟按键/实体按键切控制移动终端切换至主操作系统,关闭独立相机系统的功能。可通过按压某一按键达到预设时间时,例如,该按键可以是电源键、音量键、返回键、菜单键等,或者通过点击移动终端上预置的图标等方式,控制移动终端进入主操作系统,回到移动终端的正常模式。该预设时间可根据实际情况而灵活设置,例如,可设置为3秒。当然,也可通过其他方式将移动终端从独立相机系统切换至独立相机系统,并不限定本申请。
可选地,基于上述第一实施例,本实施例中,所述移动终端进行拍摄方法还包括:
在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
在独立相机系统下进行拍摄时,若在预设时间内用户不操作移动终端,则移动终端将进入休眠状态。该预设时间可设置为3分钟,也可根据实际情况而灵活设置。当用户需要继续进行拍照时需要按压任意按键或者触摸屏幕唤醒移动终端,进一步节省了移动终端的功耗。
由于上述在独立相机系统下拍摄得到的图像文件在两个系统间共享,所以可以在主操作系统下浏览独立相机系统所存储的图像,可对图像进行裁剪、修饰、美化等操作。
本实施例用户可控制移动终端在主操作系统与独立相机系统之间进行切换,根据用户需求对切换操作来节省移动终端的功耗,在主操作系统还可对所存储的图像进行处理,提高用户使用移动终端进行拍照的便捷性。
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现上述移动终端进行拍摄方法。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括多个指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明实施例所述的方法。
以上仅为本发明的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
工业实用性
本发明实施例在移动终端进入独立相机系统后,启动独立相机应用;在独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。实现了移动终端通过独立相机系统进行拍摄,解决移动终端耗电快及射频信号干扰场合下关闭终端不能进行拍摄的问题,提高了移动终端进行拍摄的时长及便捷性。

Claims (20)

  1. 一种移动终端,所述移动终端包括主操作系统及搭载独立相机系统,该移动终端包括:
    启动模块,设置为:在移动终端进入独立相机系统后,启动独立相机应用;
    拍摄模块,设置为:在所述启动模块启动独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
  2. 如权利要求1所述的移动终端,所述移动终端还包括:
    第一切换模块,设置为:若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
  3. 如权利要求2所述的移动终端,其中,
    所述第一切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
  4. 如权利要求3所述的移动终端,其中,
    所述第一切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
    方式一,接收到切换按键的按压;
    方式二、接收到两个指定实体按键的同时按压;
    方式三,接收到指定实体按键按压达到预设时长。
  5. 如权利要求1所述的移动终端,其中,所述拍摄模块设置为,调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。
  6. 如权利要求1所述的移动终端,所述移动终端还包括:
    设置模块,设置为:根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
  7. 如权利要求1-6中任一项所述的移动终端,所述移动终端还包括:
    第二切换模块,设置为:根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
  8. 如权利要求7所述的移动终端,其中,
    所述第二切换模块,设置为:通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令。
  9. 如权利要求8所述的移动终端,其中,
    所述第二切换模块,设置为:通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
    方式一,接收到切换按键的按压;
    方式二、接收到两个指定实体按键的同时按压;
    方式三,接收到指定实体按键按压达到预设时长。
  10. 如权利要求1-6中任一项所述的移动终端,所述移动终端还包括:
    休眠模块,设置为:在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
  11. 一种移动终端进行拍摄方法,所述移动终端进行拍摄方法包括:
    在移动终端进入独立相机系统后,启动独立相机应用;
    在所启动的所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像。
  12. 如权利要求11所述的移动终端进行拍摄方法,其中,在所述移动终端进入所述独立相机系统之前,还包括:
    若所述移动终端当前运行于主操作系统模式或处于关机状态,则根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
  13. 如权利要求11所述的移动终端进行拍摄方法,其中,所述根据接收到的切换指令控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式包括:
    通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从主操作系统或关机状态切换至所述独立相机系统模式。
  14. 如权利要求11所述的移动终端进行拍摄方法,其中,通过如下方式中的一种,接收到指定实体按键的按压得到所述切换指令:
    方式一,接收到切换按键的按压;
    方式二、接收到两个指定实体按键的同时按压;
    方式三,接收到指定实体按键按压达到预设时长。
  15. 如权利要求11所述的移动终端进行拍摄方法,其中,所述相机硬件包括摄像头,所述调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以实现拍摄得到图像包括:
    调用硬件抽象层的动态库加载摄像头驱动,通过摄像头采集图像数据,将采集到的图像数据在屏幕上进行显示预览,根据接收到的拍摄指令对当前的图像数据进行编码生成指定格式的图像文件进行传输或存储。
  16. 如权利要求11所述的移动终端进行拍摄方法,其中,所述在移动终端进入独立相机系统后,启动独立相机应用之后,还包括:
    根据接收到的用户指令,在指定的参数设置界面对所述独立相机应用的拍摄参数进行设置。
  17. 如权利要求11-16中任一项所述的移动终端进行拍摄方法,其中,所述在所述独立相机应用中,调用硬件抽象层的动态库进行相机硬件及图像编解码的控制,以拍摄得到图像之后,还包括:
    根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统。
  18. 如权利要求17所述的移动终端进行拍摄方法,其中,所述根据接收到的切换指令控制所述移动终端从所述独立相机系统换至主操作系统包括:
    通过接收到指定虚拟按键或指定实体按键的按压得到所述切换指令,控制所述移动终端从所述独立相机系统换至主操作系统。
  19. 如权利要求18所述的移动终端进行拍摄方法,其中,通过如下方式 中的一种,接收到指定实体按键的按压得到所述切换指令:
    方式一,接收到切换按键的按压;
    方式二、接收到两个指定实体按键的同时按压;
    方式三,接收到指定实体按键按压达到预设时长。
  20. 如权利要求11-16中任一项所述的移动终端进行拍摄方法,所述移动终端进行拍摄方法还包括:
    在移动终端进入独立相机系统后,若在预设时间内没有接收到用户指令,则控制所述移动终端进入休眠状态。
PCT/CN2016/102167 2015-11-24 2016-10-14 移动终端进行拍摄方法及移动终端 WO2017088603A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510823920.8A CN105338249A (zh) 2015-11-24 2015-11-24 基于独立相机系统进行拍摄方法及移动终端
CN201510823920.8 2015-11-24

Publications (1)

Publication Number Publication Date
WO2017088603A1 true WO2017088603A1 (zh) 2017-06-01

Family

ID=55288503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/102167 WO2017088603A1 (zh) 2015-11-24 2016-10-14 移动终端进行拍摄方法及移动终端

Country Status (2)

Country Link
CN (1) CN105338249A (zh)
WO (1) WO2017088603A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745495A (zh) * 2021-01-07 2022-07-12 北京小米移动软件有限公司 图像生成方法、装置及存储介质
CN117135448A (zh) * 2023-02-24 2023-11-28 荣耀终端有限公司 拍摄的方法和电子设备

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338249A (zh) * 2015-11-24 2016-02-17 努比亚技术有限公司 基于独立相机系统进行拍摄方法及移动终端
CN108573186A (zh) * 2016-03-31 2018-09-25 青岛海信移动通信技术股份有限公司 二维码图片识别方法及装置
CN105912972A (zh) * 2016-03-31 2016-08-31 青岛海信移动通信技术股份有限公司 二维码图片识别方法及移动终端
CN106303226A (zh) * 2016-08-01 2017-01-04 乐视控股(北京)有限公司 图像处理方法及装置
CN106775902A (zh) * 2017-01-25 2017-05-31 北京奇虎科技有限公司 一种图像处理的方法和装置、移动终端
CN109672884B (zh) * 2017-10-13 2022-05-10 斑马智行网络(香港)有限公司 图像硬件编码处理方法和装置
CN110287751A (zh) * 2019-05-30 2019-09-27 江苏智联天地科技有限公司 一种基于高通平台的快速解码系统及方法
CN113094101A (zh) * 2019-12-19 2021-07-09 成都鼎桥通信技术有限公司 双域系统的控制方法、装置、电子设备和存储介质
CN111447439B (zh) * 2020-05-18 2022-08-09 Oppo(重庆)智能科技有限公司 图像编码方法、图像编码装置及移动终端
CN111970671B (zh) * 2020-08-24 2023-04-11 维沃移动通信有限公司 近场通信模块的控制方法、装置及电子设备
CN114519935B (zh) * 2020-11-20 2023-06-06 华为技术有限公司 道路识别方法以及装置
CN113473009B (zh) * 2021-06-29 2022-11-08 广州极飞科技股份有限公司 基于双系统的拍照方法、装置及摄像设备
CN116708988A (zh) * 2022-02-25 2023-09-05 荣耀终端有限公司 电子设备及其拍摄方法、介质

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402129A (zh) * 2001-08-21 2003-03-12 英业达股份有限公司 在笔记型电脑上实现支持多个个人数字助理系统的方法
CN1453685A (zh) * 2002-04-22 2003-11-05 联想(北京)有限公司 基于单功能模式启动的遥控装置
CN101226485A (zh) * 2007-01-18 2008-07-23 华硕电脑股份有限公司 便携式计算机
CN101308476A (zh) * 2007-05-15 2008-11-19 华为技术有限公司 外围设备运行方法、外围设备及主机
CN101464801A (zh) * 2007-12-20 2009-06-24 英业达股份有限公司 移动电子装置及其操作系统的载入方法
US20120081267A1 (en) * 2010-10-01 2012-04-05 Imerj LLC Desktop reveal expansion
CN103297614A (zh) * 2013-05-03 2013-09-11 广东欧珀移动通信有限公司 一种双系统智能终端运行方法及装置
CN104994566A (zh) * 2015-06-30 2015-10-21 努比亚技术有限公司 终端相机控制方法及装置
CN105338249A (zh) * 2015-11-24 2016-02-17 努比亚技术有限公司 基于独立相机系统进行拍摄方法及移动终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100151093A1 (en) * 2003-05-23 2010-06-17 Wilk Peter J Food forming and cooking apparatus and associated method
CN101482692A (zh) * 2008-01-10 2009-07-15 佛山市顺德区顺达电脑厂有限公司 可独立作动相机的手持装置及其方法
CN104038698A (zh) * 2014-06-25 2014-09-10 深圳市中兴移动通信有限公司 后台拍摄方法和拍摄装置
CN104994277B (zh) * 2015-06-30 2018-10-16 青岛海信移动通信技术股份有限公司 一种移动通信终端快速拍照的方法和装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402129A (zh) * 2001-08-21 2003-03-12 英业达股份有限公司 在笔记型电脑上实现支持多个个人数字助理系统的方法
CN1453685A (zh) * 2002-04-22 2003-11-05 联想(北京)有限公司 基于单功能模式启动的遥控装置
CN101226485A (zh) * 2007-01-18 2008-07-23 华硕电脑股份有限公司 便携式计算机
CN101308476A (zh) * 2007-05-15 2008-11-19 华为技术有限公司 外围设备运行方法、外围设备及主机
CN101464801A (zh) * 2007-12-20 2009-06-24 英业达股份有限公司 移动电子装置及其操作系统的载入方法
US20120081267A1 (en) * 2010-10-01 2012-04-05 Imerj LLC Desktop reveal expansion
CN103297614A (zh) * 2013-05-03 2013-09-11 广东欧珀移动通信有限公司 一种双系统智能终端运行方法及装置
CN104994566A (zh) * 2015-06-30 2015-10-21 努比亚技术有限公司 终端相机控制方法及装置
CN105338249A (zh) * 2015-11-24 2016-02-17 努比亚技术有限公司 基于独立相机系统进行拍摄方法及移动终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745495A (zh) * 2021-01-07 2022-07-12 北京小米移动软件有限公司 图像生成方法、装置及存储介质
CN117135448A (zh) * 2023-02-24 2023-11-28 荣耀终端有限公司 拍摄的方法和电子设备

Also Published As

Publication number Publication date
CN105338249A (zh) 2016-02-17

Similar Documents

Publication Publication Date Title
WO2017088603A1 (zh) 移动终端进行拍摄方法及移动终端
CN114679537B (zh) 一种拍摄方法及终端
CN106572302B (zh) 一种图像信息处理方法及设备
WO2017143847A1 (zh) 关联应用分屏显示装置、方法及终端
WO2016029766A1 (zh) 移动终端及其操作方法和计算机存储介质
CN106507173B (zh) 移动终端和分屏显示控制方法
WO2017071424A1 (zh) 一种移动终端和分享文件的方法
CN113545129A (zh) 一种切换上网卡的方法和电子设备
WO2016173468A1 (zh) 组合操作方法和装置、触摸屏操作方法及电子设备
WO2016155427A1 (zh) 移动终端及其快捷操作方法
WO2016180358A1 (zh) 按键控制方法、移动终端
WO2016019926A1 (zh) 照片拍摄方法、装置及移动终端
US20200050416A1 (en) Electronic device having double-sided display and method for controlling application
WO2016161986A1 (zh) 操作识别方法、装置、移动终端及计算机存储介质
WO2021063090A1 (zh) 一种建立应用组合的方法与电子设备
WO2016155431A1 (zh) 终端及其触控操作方法和装置、存储介质
KR20130038076A (ko) 이동 단말기 및 그의 아웃 포커싱 이미지 생성방법
WO2017152748A1 (zh) 一种截屏方法及终端、计算机存储介质
CN107071263B (zh) 一种图像处理方法及终端
WO2018045961A1 (zh) 一种图片处理方法及终端、存储介质
US20220327190A1 (en) Screen Display Control Method and Electronic Device
CN112449099A (zh) 一种图像处理方法、电子设备及云服务器
WO2017020828A1 (zh) 移动终端及其操控方法
CN114281439A (zh) 分屏方法、装置及电子设备
CN105094513A (zh) 用户头像设置方法、装置及电子设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867829

Country of ref document: EP

Kind code of ref document: A1