CN106506795A - A kind of mobile terminal and image processing method - Google Patents
A kind of mobile terminal and image processing method Download PDFInfo
- Publication number
- CN106506795A CN106506795A CN201610822269.7A CN201610822269A CN106506795A CN 106506795 A CN106506795 A CN 106506795A CN 201610822269 A CN201610822269 A CN 201610822269A CN 106506795 A CN106506795 A CN 106506795A
- Authority
- CN
- China
- Prior art keywords
- pictures
- picture
- mobile terminal
- spliced
- selecting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of mobile terminal and image processing method, the mobile terminal includes:Select unit, for when there is the picture that at least M definition is more than predetermined threshold value in the picture for pre-saving, M pictures of the definition more than predetermined threshold value are selected in the picture for pre-saving as picture to be spliced, M picture to be spliced is sent to concatenation unit, wherein, M is the natural number more than or equal to 2;The concatenation unit, for when M picture to be spliced is satisfied by default splicing condition, being spliced into a Zhang Quanjing picture by M picture to be spliced.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to a mobile terminal and a picture processing method.
Background
With continuous progress and rapid development of mobile communication technology, many intelligent terminals such as mobile phones and tablet computers have a photographing function, for example, after a user takes a photo by using the intelligent terminal, the taken photo can be modified by image processing software to change the image attributes such as contrast, saturation and color of the photo, so that the taken photo is more beautiful. Among them, the picture splicing function in the mobile terminal is also more and more widely used. The picture splicing is to seamlessly splice two or more partially overlapped images to generate a high-resolution image with a wide view angle; the basic shooting principle is to search the edge parts of two pictures and superpose the areas with the closest imaging effect to generate a picture with a larger visual angle.
In the existing picture splicing method, after a user presses a photographing key, the mobile terminal detects the overlapping area of every two pictures in real time along with the change of the rotation angle of the mobile terminal, and then splices the photographed pictures in real time.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing picture splicing method, the mobile terminal splices the shot pictures in real time, that is, the mobile terminal needs to calculate the overlapping area of every two pictures in real time, so that the processing power consumption of the mobile terminal is increased; and when all the shot pictures have unclear pictures, the display effect after the pictures are spliced is also influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a mobile terminal and a picture processing method, which can not only reduce processing power consumption of the mobile terminal, but also improve a display effect after picture splicing.
The technical scheme of the embodiment of the invention is realized as follows:
an embodiment of the present invention provides a mobile terminal, including:
the device comprises a selecting unit, a splicing unit and a judging unit, wherein the selecting unit is used for selecting M pictures with the definition larger than a preset threshold value from prestored pictures as pictures to be spliced when at least M pictures with the definition larger than the preset threshold value exist in the prestored pictures, and sending the M pictures to be spliced to the splicing unit, wherein M is a natural number larger than or equal to 2;
and the splicing unit is used for splicing the M to-be-spliced pictures into a panoramic picture when the M to-be-spliced pictures meet the preset splicing condition.
In the above embodiment, the mobile terminal further includes:
the judging unit is used for judging whether a preset splicing mode is in an open state or not, and sending a selection instruction to the selecting unit when the splicing mode is in the open state;
and the selection unit is used for selecting M pictures with the definition larger than a preset threshold value from the pre-stored pictures as the pictures to be spliced after receiving the selection instruction.
In the above embodiment, the selection unit includes:
the dividing subunit is used for dividing the pre-stored pictures into M groups of pictures and sending the M groups of pictures to the selecting subunit;
and the selecting subunit is used for selecting one picture from each group of pictures as the picture to be spliced when at least one picture with the definition larger than the preset threshold exists in each group of pictures.
In the above embodiment, the dividing subunit is specifically configured to divide N pictures in the pre-stored pictures into a group when the number of the pre-stored pictures is not less than N; and when the number of the pre-saved pictures is less than N, dividing all the rest pictures in the pre-saved pictures into a group.
In the above embodiment, the selecting subunit is specifically configured to select, when more than one picture with a definition greater than a preset threshold exists in each group of pictures, a picture with a highest definition as a picture to be spliced.
The embodiment of the invention also provides a picture processing method, which comprises the following steps:
when at least M pictures with the definition larger than a preset threshold exist in the pre-stored pictures, selecting the M pictures with the definition larger than the preset threshold from the pre-stored pictures as pictures to be spliced, wherein M is a natural number larger than or equal to 2;
and when the M to-be-spliced pictures meet the preset splicing condition, splicing the M to-be-spliced pictures into a panoramic picture.
In the above embodiment, before selecting M to-be-spliced pictures with a definition greater than a preset threshold from the pre-stored pictures, the method further includes:
judging whether a preset splicing mode is in an opening state or not;
and when the splicing mode is in an opening state, selecting M pictures with the definition greater than a preset threshold value from the pre-stored pictures as the pictures to be spliced.
In the above embodiment, the selecting, from the pre-stored pictures, M pictures to be stitched whose sharpness is greater than the preset threshold includes:
dividing the pre-stored pictures into M groups of pictures;
and when at least one picture with the definition larger than a preset threshold exists in each group of pictures, selecting one picture in each group of pictures as a picture to be spliced.
In the above embodiment, the dividing the pre-saved pictures into M groups of pictures includes:
when the number of the pre-stored pictures is not less than N, dividing N pictures in the pre-stored pictures into a group;
and when the number of the pre-saved pictures is less than N, dividing all the rest pictures in the pre-saved pictures into a group.
In the above embodiment, the selecting one picture in each group of pictures as the picture to be stitched includes:
and when more than one picture with the definition larger than a preset threshold exists in each group of pictures, selecting the picture with the highest definition as the picture to be spliced.
Therefore, in the technical scheme of the embodiment of the invention, when at least M pictures with the definition larger than the preset threshold exist in the prestored pictures, the M pictures with the definition larger than the preset threshold can be selected from the prestored pictures to be used as the pictures to be spliced, and then when all the M pictures to be spliced meet the preset splicing condition, the M pictures to be spliced are spliced into a panoramic picture. That is to say, in the technical solution provided by the present invention, the mobile terminal may select M pictures with a definition greater than a preset threshold from the pre-stored pictures for stitching, instead of stitching all the shot pictures in real time as in the prior art. Therefore, compared with the prior art, the mobile terminal and the picture processing method provided by the embodiment of the invention not only can reduce the processing power consumption of the mobile terminal, but also can improve the display effect after picture splicing; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Drawings
Fig. 1 is a schematic hardware configuration diagram of an alternative mobile terminal 100 for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal 100 shown in FIG. 1;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an implementation flow of a picture processing method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of an implementation method for selecting a picture to be spliced according to an embodiment of the present invention.
Detailed Description
It should be understood that the embodiments described herein are only for explaining the technical solutions of the present invention, and are not intended to limit the scope of the present invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a Personal Digital Assistant (PDA), a PAD computer (PAD), a Portable Multimedia Player (PMP), a navigation device, and the like.
Fig. 1 is a schematic hardware structure of a mobile terminal 100 for implementing various embodiments of the present invention, and as shown in fig. 1, the mobile terminal 100 may include: a wireless communication unit 110, a user input unit 120, a sensing unit 130, an output unit 140, a memory 150, an interface unit 160, a controller 170, and a power supply unit 180, etc. Fig. 1 illustrates the mobile terminal 100 having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. The elements of the mobile terminal 100 will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit 110 may include: at least one of a mobile communication module 111, a wireless internet module 112, and a short-range communication module 113.
The mobile communication module 111 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 112 supports wireless internet access of the mobile terminal 100. The wireless internet module 112 may be internally or externally coupled to the terminal. The wireless internet access technology referred to by the wireless internet module 112 may include Wireless Local Area Network (WLAN), wireless compatibility authentication (Wi-Fi), wireless broadband (Wibro), worldwide interoperability for microwave access (Wimax), High Speed Downlink Packet Access (HSDPA), and the like.
The short-range communication module 113 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetoothTMRadio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbeeTMAnd the like.
The user input unit 120 may generate key input data to control various operations of the mobile terminal 100 according to a command input by a user. The user input unit 120 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects a change in resistance, pressure, capacitance, etc. due to being touched), a jog wheel, a jog stick, etc. In particular, when the touch pad is superimposed on the display unit 141 in the form of a layer, a touch screen may be formed.
The sensing unit 130 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 130 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 130 can detect whether the power supply unit 180 supplies power or whether the interface unit 160 is coupled with an external device.
The interface unit 160 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port (a typical example is a Universal Serial Bus (USB) port), a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like.
The interface unit 160 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 160 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal 100. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal 100 is accurately mounted on the cradle.
The output unit 140 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 140 may include a display unit 141, an audio output module 142, and the like.
The display unit 141 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 141 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 141 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, or the like.
Meanwhile, when the display unit 141 and the touch pad are stacked on each other in the form of layers to form a touch screen, the display unit 141 may 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. 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 transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, mobile terminal 100 may include two or more display units (or other display devices), for example, mobile terminal 100 may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 142 may convert audio data received by the wireless communication unit 110 or stored in the memory 150 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 142 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 142 may include a speaker, a buzzer, and the like.
The memory 150 may store software programs or the like for processing and controlling operations performed by the controller 170, or may temporarily store data (e.g., a phonebook, messages, still images, videos, etc.) that has been output or is to be output. Also, the memory 150 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch 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 (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 150 through a network connection.
The controller 170 generally controls the overall operation of the mobile terminal 100. For example, the controller 170 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 170 may include a multimedia module 171 for reproducing or playing back multimedia data, and the multimedia module 171 may be constructed within the controller 170 or may be constructed separately from the controller 170. The controller 170 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 180 receives external power or internal power and provides appropriate power required to operate the respective elements and components under the control of the controller 170.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 170. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory 150 and executed by controller 170.
Up to this point, the mobile terminal 100 has been described in terms of its functions. Hereinafter, the slide-type mobile terminal 100 among various types of mobile terminals 100, such as the folder-type, bar-type, swing-type, slide-type mobile terminal 100, etc., will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal 100, and is not limited to the slide type mobile terminal 100.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which the mobile terminal 100 according to the present invention is capable of operating will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz, 5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular BS270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
The mobile communication module 112 of the wireless communication unit 110 in the mobile terminal accesses the mobile communication network based on the necessary data (including the user identification information and the authentication information) of the mobile communication network (such as the mobile communication network of 2G/3G/4G, etc.) built in the mobile terminal, so as to transmit the mobile communication data (including the uplink mobile communication data and the downlink mobile communication data) for the services of web browsing, network multimedia playing, etc. of the mobile terminal user.
The wireless internet module 113 of the wireless communication unit 110 implements a function of a wireless hotspot by operating a related protocol function of the wireless hotspot, the wireless hotspot supports access by a plurality of mobile terminals (any mobile terminal other than the mobile terminal), transmits mobile communication data (including uplink mobile communication data and downlink mobile communication data) for mobile terminal user's services such as web browsing, network multimedia playing, etc. by multiplexing the mobile communication connection between the mobile communication module 112 and the mobile communication network, since the mobile terminal essentially multiplexes the mobile communication connection between the mobile terminal and the communication network for transmitting mobile communication data, the traffic of mobile communication data consumed by the mobile terminal is charged to the communication tariff of the mobile terminal by a charging entity on the side of the communication network, thereby consuming the data traffic of the mobile communication data included in the communication tariff contracted for use by the mobile terminal.
Based on the above hardware structure of the mobile terminal 100 and the communication system, various embodiments of the method of the present invention are proposed.
Fig. 3 is a schematic diagram of a composition structure of a mobile terminal according to a first embodiment of the present invention, and as shown in fig. 3, the mobile terminal according to the first embodiment of the present invention may include: a selection unit 301 and a splicing unit 302; wherein,
the selecting unit 301 is configured to, when at least M pictures with the definitions greater than a preset threshold exist in the pre-stored pictures, select M pictures with the definitions greater than the preset threshold from the pre-stored pictures as pictures to be spliced, and send the M pictures to be spliced to the splicing unit 302, where M is a natural number greater than or equal to 2.
In an embodiment of the present invention, the selecting unit 301 may select M pictures with a definition greater than a preset threshold from the pre-stored pictures by using a plurality of methods as the pictures to be spliced. Preferably, the selecting unit 301 may divide the pre-stored pictures into M groups, and then may select one picture to be stitched from each group of pictures.
Specifically, in a specific embodiment of the present invention, when the number of the pre-saved pictures is not less than N, the selection unit 301 may divide N pictures in the pre-saved pictures into one group; when the number of pre-saved pictures is less than N, the selection unit 301 may divide all remaining pictures in the pre-saved pictures into one group. When at least one picture with the definition greater than the preset threshold exists in each group of pictures, the selecting unit 301 may select one picture in each group of pictures as a picture to be spliced.
Preferably, in an embodiment of the present invention, the selecting unit 301 may be further configured to select, when the number of pictures with a resolution greater than the preset threshold in each group of pictures is more than one, a picture with a highest resolution in each group of pictures as a picture to be stitched.
The splicing unit 302 is configured to splice the M to-be-spliced pictures into one panoramic picture when the M to-be-spliced pictures all meet a preset splicing condition.
In an embodiment of the present invention, when all of the M to-be-stitched pictures meet the preset stitching condition, the stitching unit 302 may stitch the M to-be-stitched pictures into one panoramic picture. Wherein, the preset splicing condition can be as follows: and each picture to be spliced and at least one picture to be spliced in the M pictures to be spliced have an overlapped area.
Therefore, according to the technical scheme provided by the embodiment of the invention, the mobile terminal can select M pictures with the definition greater than the preset threshold value from the pre-stored pictures as the pictures to be spliced, and then when the M pictures to be spliced all meet the preset splicing condition, the M pictures to be spliced are spliced into a panoramic picture, so that the processing power consumption of the mobile terminal can be reduced, and the display effect after the pictures are spliced can be improved; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Fig. 4 is a schematic diagram of a composition structure of a mobile terminal according to a second embodiment of the present invention, and as shown in fig. 4, the selecting unit 301 may include: a dividing subunit 3011 and a selecting subunit 3012; wherein,
a dividing subunit 3011, configured to divide pre-stored pictures into M groups of pictures, and send the M groups of pictures to the selecting subunit 3012.
In an embodiment of the present invention, the dividing subunit 3011 may divide the pre-saved pictures into M groups of pictures. The dividing unit 3011 may be specifically configured to divide N pictures in the pre-stored pictures into a group when the number of the pre-stored pictures is not less than N; when the number of pre-saved pictures is less than N, the dividing subunit 3011 may divide all remaining pictures in the pre-saved pictures into one group. For example, if 10 pictures are stored in advance, when N is 3, M is 4. Namely: dividing 1 st to 3 rd pictures into a first group; dividing 4 th to 6 th pictures into a second group; dividing the 7 th to 9 th pictures into a third group; divide the 10 th page into a fourth group.
And the selecting subunit 3012 is configured to, when at least one picture with a definition greater than a preset threshold exists in each group of pictures, select one picture in each group of pictures as a picture to be spliced.
In an embodiment of the present invention, when there is at least one picture with a resolution greater than a preset threshold in each group of pictures, the selecting subunit 3012 may select one picture in each group of pictures as the picture to be stitched. Preferably, when the number of pictures with the definition greater than the preset threshold in each group of pictures is more than one, the selecting subunit 3012 may select the picture with the highest definition in each group of pictures as the picture to be stitched.
The splicing unit 302 is configured to splice the M to-be-spliced pictures into one panoramic picture when the M to-be-spliced pictures all meet a preset splicing condition.
In an embodiment of the present invention, when all of the M to-be-stitched pictures meet the preset stitching condition, the stitching unit 302 may stitch the M to-be-stitched pictures into one panoramic picture. Wherein, the preset splicing condition can be as follows: and each picture to be spliced and at least one picture to be spliced in the M pictures to be spliced have an overlapped area.
Preferably, in an embodiment of the present invention, the mobile terminal may further include:
a judging unit 303, configured to judge whether a preset splicing mode is an open state; when the splicing mode is in an on state, a selection instruction is sent to the selection unit 301;
the selecting unit 301 is configured to, after receiving the selection instruction, select M pictures with a definition greater than a preset threshold from the pre-stored pictures as pictures to be spliced.
In the specific embodiment of the present invention, a splicing mode may be preset in the mobile terminal; when the splicing mode is in an open state, the mobile terminal can splice the pictures to be spliced into a panoramic picture; and when the splicing mode is in a closed state, the mobile terminal cannot splice the pictures to be spliced into one panoramic picture. Preferably, in the embodiment of the present invention, the determining unit 303 may first determine whether a preset splicing mode is in an on state, and when the splicing mode is in the on state, the determining unit 303 sends a selection instruction to the selecting unit 301; the selecting unit 301 is configured to, after receiving the selection instruction, select M pictures with a definition greater than a preset threshold from the pre-stored pictures as pictures to be spliced.
The selection unit 301 and the splicing unit 302 provided by the embodiment of the invention can be realized by a processor in the mobile terminal; of course, the implementation can also be realized through a specific logic circuit; in the course of a particular embodiment, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
The mobile terminal provided by the embodiment of the invention can select M pictures with the definition larger than the preset threshold value from the pre-stored pictures for splicing, instead of splicing all the shot pictures in real time like in the prior art. Therefore, compared with the prior art, the mobile terminal and the picture processing method provided by the embodiment of the invention not only can reduce the processing power consumption of the mobile terminal, but also can improve the display effect after picture splicing; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Fig. 5 is a schematic flow chart illustrating an implementation of the picture processing method in the embodiment of the present invention, and as shown in fig. 5, the picture processing method may include the following steps:
step 501, when at least M pictures with the definition larger than a preset threshold exist in the pre-stored pictures, selecting the M pictures with the definition larger than the preset threshold from the pre-stored pictures as the pictures to be spliced.
In the specific embodiment of the present invention, the mobile terminal may adopt multiple methods to select M pictures with a definition greater than a preset threshold from the pre-stored pictures as the pictures to be spliced, where M is a natural number greater than or equal to 2. Preferably, in an embodiment of the present invention, the mobile terminal may first divide the pre-stored pictures into M groups, and then may select one picture to be stitched from each group of pictures.
Specifically, in the specific embodiment of the present invention, when the number of the pre-saved pictures is not less than N, the mobile terminal may divide N pictures in the pre-saved pictures into a group; when the number of the pre-saved pictures is less than N, the mobile terminal may divide all remaining pictures in the pre-saved pictures into one group. When at least one picture with the definition larger than the preset threshold exists in each group of pictures, the mobile terminal can select one picture in each group of pictures as a picture to be spliced.
Preferably, in an embodiment of the present invention, the mobile terminal may be further configured to select, when the number of pictures with a resolution greater than the preset threshold in each group of pictures is more than one, a picture with a highest resolution in each group of pictures as a picture to be stitched.
Fig. 6 is a schematic flow chart of an implementation method for selecting pictures to be stitched according to an embodiment of the present invention, and as shown in fig. 6, the method for selecting pictures to be stitched from pre-stored pictures may include the following steps:
step 501a, dividing the pre-saved pictures into M groups of pictures.
In a specific embodiment of the present invention, the mobile terminal may first divide the pre-stored pictures into M groups, and then may select one picture to be stitched from each group of pictures. Specifically, when the number of the pre-saved pictures is not less than N, the mobile terminal may divide N pictures in the pre-saved pictures into a group; when the number of the pre-saved pictures is less than N, the mobile terminal may divide all remaining pictures in the pre-saved pictures into one group. For example, if 10 pictures are stored in advance, when N is 3, M is 4. Namely: dividing 1 st to 3 rd pictures into a first group; dividing 4 th to 6 th pictures into a second group; dividing the 7 th to 9 th pictures into a third group; divide the 10 th page into a fourth group.
And step 501b, when at least one picture with the definition larger than a preset threshold exists in each group of pictures, selecting one picture in each group of pictures as a picture to be spliced.
In a specific embodiment of the present invention, when at least one picture with a definition greater than a preset threshold exists in each group of pictures, the mobile terminal may select one picture in each group of pictures as a picture to be stitched. Preferably, when more than one picture with the definition greater than the preset threshold exists in each group of pictures, the mobile terminal may select the picture with the highest definition as the picture to be spliced.
And 502, splicing the M pictures to be spliced into a panoramic picture when the M pictures to be spliced all meet the preset splicing condition.
In the specific embodiment of the invention, when the M to-be-spliced pictures all meet the preset splicing condition, the mobile terminal can splice the M to-be-spliced pictures into one panoramic picture. Wherein, the preset splicing condition can be as follows: and each picture to be spliced and at least one picture to be spliced in the M pictures to be spliced have an overlapped area.
Preferably, in the embodiment of the present invention, the mobile terminal may be preset with a splicing mode; when the splicing mode is in an open state, the mobile terminal can splice the pictures to be spliced into a panoramic picture; and when the splicing mode is in a closed state, the mobile terminal cannot splice the pictures to be spliced into one panoramic picture. Therefore, the mobile terminal can firstly judge whether the preset splicing mode is in an open state, and when the splicing mode is in the open state, the mobile terminal can select M pictures with the definition greater than a preset threshold value from the pre-stored pictures as the pictures to be spliced.
According to the picture processing method provided by the embodiment of the invention, the mobile terminal can select M pictures with the definition greater than the preset threshold value from the pre-stored pictures for splicing, instead of splicing all the shot pictures in real time in the prior art. Therefore, compared with the prior art, the mobile terminal and the picture processing method provided by the embodiment of the invention not only can reduce the processing power consumption of the mobile terminal, but also can improve the display effect after picture splicing; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A mobile terminal, characterized in that the mobile terminal comprises:
the device comprises a selecting unit, a splicing unit and a judging unit, wherein the selecting unit is used for selecting M pictures with the definition larger than a preset threshold value from prestored pictures as pictures to be spliced when at least M pictures with the definition larger than the preset threshold value exist in the prestored pictures, and sending the M pictures to be spliced to the splicing unit, wherein M is a natural number larger than or equal to 2;
and the splicing unit is used for splicing the M to-be-spliced pictures into a panoramic picture when the M to-be-spliced pictures meet the preset splicing condition.
2. The mobile terminal of claim 1, wherein the mobile terminal further comprises:
the judging unit is used for judging whether a preset splicing mode is in an open state or not, and sending a selection instruction to the selecting unit when the splicing mode is in the open state;
and the selection unit is used for selecting M pictures with the definition larger than a preset threshold value from the pre-stored pictures as the pictures to be spliced after receiving the selection instruction.
3. The mobile terminal according to claim 1, wherein the selecting unit comprises:
the dividing subunit is used for dividing the pre-stored pictures into M groups of pictures and sending the M groups of pictures to the selecting subunit;
and the selecting subunit is used for selecting one picture from each group of pictures as the picture to be spliced when at least one picture with the definition larger than the preset threshold exists in each group of pictures.
4. The mobile terminal according to claim 3, wherein the dividing subunit is configured to, when the number of the pre-stored pictures is not less than N, divide N pictures in the pre-stored pictures into a group; and when the number of the pre-saved pictures is less than N, dividing all the rest pictures in the pre-saved pictures into a group.
5. The mobile terminal according to claim 3, wherein the selecting subunit is configured to, when there is more than one picture with a resolution greater than a preset threshold in each group of pictures, select a picture with a highest resolution as the pictures to be stitched.
6. A picture processing method, characterized in that the method comprises:
when at least M pictures with the definition larger than a preset threshold exist in the pre-stored pictures, selecting the M pictures with the definition larger than the preset threshold from the pre-stored pictures as pictures to be spliced, wherein M is a natural number larger than or equal to 2;
and when the M to-be-spliced pictures meet the preset splicing condition, splicing the M to-be-spliced pictures into a panoramic picture.
7. The method according to claim 6, wherein before the selecting M pictures to be stitched with a definition greater than a preset threshold from the pre-saved pictures, the method further comprises:
judging whether a preset splicing mode is in an opening state or not;
and when the splicing mode is in an opening state, selecting M pictures with the definition greater than a preset threshold value from the pre-stored pictures as the pictures to be spliced.
8. The method according to claim 6, wherein the selecting M pictures to be stitched with a definition greater than a preset threshold from the pre-saved pictures comprises:
dividing the pre-stored pictures into M groups of pictures;
and when at least one picture with the definition larger than a preset threshold exists in each group of pictures, selecting one picture in each group of pictures as a picture to be spliced.
9. The method of claim 8, wherein the dividing the pre-saved pictures into M groups of pictures comprises:
when the number of the pre-stored pictures is not less than N, dividing N pictures in the pre-stored pictures into a group;
and when the number of the pre-saved pictures is less than N, dividing all the rest pictures in the pre-saved pictures into a group.
10. The method according to claim 8, wherein the selecting one picture in each group of pictures as the picture to be stitched comprises:
and when more than one picture with the definition larger than a preset threshold exists in each group of pictures, selecting the picture with the highest definition as the picture to be spliced.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610822269.7A CN106506795A (en) | 2016-09-13 | 2016-09-13 | A kind of mobile terminal and image processing method |
| PCT/CN2017/101653 WO2018050080A1 (en) | 2016-09-13 | 2017-09-13 | Mobile terminal, picture processing method and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610822269.7A CN106506795A (en) | 2016-09-13 | 2016-09-13 | A kind of mobile terminal and image processing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106506795A true CN106506795A (en) | 2017-03-15 |
Family
ID=58291354
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610822269.7A Pending CN106506795A (en) | 2016-09-13 | 2016-09-13 | A kind of mobile terminal and image processing method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106506795A (en) |
| WO (1) | WO2018050080A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106815809A (en) * | 2017-03-31 | 2017-06-09 | 联想(北京)有限公司 | A kind of image processing method and device |
| CN107577399A (en) * | 2017-08-24 | 2018-01-12 | 上海与德科技有限公司 | A kind of picture joining method and device |
| WO2018050080A1 (en) * | 2016-09-13 | 2018-03-22 | 努比亚技术有限公司 | Mobile terminal, picture processing method and computer storage medium |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110047037B (en) * | 2019-04-26 | 2022-11-25 | 湖南科技学院 | Cloud computing-based image-assisted virtual splicing system |
| CN112446497B (en) * | 2019-09-02 | 2024-02-27 | 中科寒武纪科技股份有限公司 | Data block splicing method, related equipment and computer readable medium |
| CN113568578B (en) * | 2021-07-27 | 2023-10-10 | 北京奇艺世纪科技有限公司 | Picture processing method and device, electronic equipment and readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070297693A1 (en) * | 2006-06-22 | 2007-12-27 | Samsung Electronics Co., Ltd. | Apparatus and method for panoramic photography in portable terminal |
| CN103685952A (en) * | 2013-12-06 | 2014-03-26 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and Image Processing Methods |
| CN105245640A (en) * | 2014-07-10 | 2016-01-13 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
| CN105467741A (en) * | 2015-12-16 | 2016-04-06 | 魅族科技(中国)有限公司 | Panoramic shooting method and terminal |
| CN105611169A (en) * | 2015-12-31 | 2016-05-25 | 联想(北京)有限公司 | Image obtaining method and electronic device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102279515A (en) * | 2010-06-09 | 2011-12-14 | 鸿富锦精密工业(深圳)有限公司 | Panoramic shooting apparatus and method thereof |
| CN106506795A (en) * | 2016-09-13 | 2017-03-15 | 努比亚技术有限公司 | A kind of mobile terminal and image processing method |
-
2016
- 2016-09-13 CN CN201610822269.7A patent/CN106506795A/en active Pending
-
2017
- 2017-09-13 WO PCT/CN2017/101653 patent/WO2018050080A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070297693A1 (en) * | 2006-06-22 | 2007-12-27 | Samsung Electronics Co., Ltd. | Apparatus and method for panoramic photography in portable terminal |
| CN103685952A (en) * | 2013-12-06 | 2014-03-26 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and Image Processing Methods |
| CN105245640A (en) * | 2014-07-10 | 2016-01-13 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
| CN105467741A (en) * | 2015-12-16 | 2016-04-06 | 魅族科技(中国)有限公司 | Panoramic shooting method and terminal |
| CN105611169A (en) * | 2015-12-31 | 2016-05-25 | 联想(北京)有限公司 | Image obtaining method and electronic device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018050080A1 (en) * | 2016-09-13 | 2018-03-22 | 努比亚技术有限公司 | Mobile terminal, picture processing method and computer storage medium |
| CN106815809A (en) * | 2017-03-31 | 2017-06-09 | 联想(北京)有限公司 | A kind of image processing method and device |
| CN106815809B (en) * | 2017-03-31 | 2020-08-25 | 联想(北京)有限公司 | Picture processing method and device |
| CN107577399A (en) * | 2017-08-24 | 2018-01-12 | 上海与德科技有限公司 | A kind of picture joining method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2018050080A1 (en) | 2018-03-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106909274B (en) | Image display method and device | |
| CN106775391B (en) | Interface switching device and method | |
| CN105100603B (en) | A kind of triggering camera arrangement and its method that intelligent terminal is embedded | |
| CN107071263B (en) | Image processing method and terminal | |
| CN106506795A (en) | A kind of mobile terminal and image processing method | |
| CN106791017A (en) | A kind of terminal and photographic method | |
| CN106028090A (en) | Mobile terminal and video recording method thereof | |
| CN105338244B (en) | A kind of information processing method and mobile terminal | |
| CN106792609A (en) | A kind of method of calling of mobile terminal and emergency numbers | |
| CN105975887A (en) | Information interconversion method of information identification and terminal thereof | |
| CN106973226B (en) | Shooting method and terminal | |
| CN106020706A (en) | Touch operation processing method and mobile terminal | |
| CN106020677A (en) | Information processing method and mobile terminal | |
| CN105898158B (en) | A kind of data processing method and electronic equipment | |
| CN106851098A (en) | A kind of image processing method and mobile terminal | |
| CN107690178B (en) | Method for reducing power consumption, mobile terminal and computer readable storage medium | |
| CN106709882A (en) | Image fusion method and device | |
| CN106020693A (en) | Desktop page entry method and electronic device | |
| CN106254643B (en) | Mobile terminal and picture processing method | |
| CN106900037B (en) | Display method and terminal | |
| CN106227411B (en) | Electronic device and information processing method | |
| CN106021291B (en) | A kind of information processing method and mobile terminal | |
| CN106327425B (en) | Mobile terminal and picture processing method | |
| CN106875960A (en) | The player method and mobile terminal of a kind of audio file | |
| CN106383871A (en) | Mobile terminal and search method of application |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |
|
| RJ01 | Rejection of invention patent application after publication |