CN105141834A - Device and method for controlling picture shooting - Google Patents

Device and method for controlling picture shooting Download PDF

Info

Publication number
CN105141834A
CN105141834A CN201510447874.6A CN201510447874A CN105141834A CN 105141834 A CN105141834 A CN 105141834A CN 201510447874 A CN201510447874 A CN 201510447874A CN 105141834 A CN105141834 A CN 105141834A
Authority
CN
China
Prior art keywords
distance
mobile terminal
camera
photo
preserved
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510447874.6A
Other languages
Chinese (zh)
Inventor
赵欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510447874.6A priority Critical patent/CN105141834A/en
Publication of CN105141834A publication Critical patent/CN105141834A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a device and a method for controlling picture shooting. The device comprises a calculation module, an adding module and a processing module; wherein the calculation module is used for calculating distance between a mobile terminal and each object in a to-be-shot picture before shooting; the processing module is used for storing the shot picture when detecting that a click operation exists in a preset induction area of the mobile terminal, and sending a first notice to the adding module; and the adding module is used for receiving the first notice and adding the calculated distance between the mobile terminal and each object into information of the picture. By the technical scheme of the invention, operability for users is improved, and user experience is enhanced.

Description

The apparatus and method that a kind of control is taken pictures
Technical field
The present invention relates to intelligent terminal technology, the apparatus and method that espespecially a kind of control is taken pictures.
Background technology
At present, the display mode of taking pictures is more single, can only show the object in photo, can not well present for some data (distance relation as between object and object) on photo; In addition, above-mentioned display mode of taking pictures lacks the interaction with user, more dull, and only wrapped when shooting containing image information, can not comprise the information such as the distance of each object in image, Consumer's Experience is bad, and shooting photo is out handling not high.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides the apparatus and method that a kind of control is taken pictures, the operability of user can be promoted, strengthen Consumer's Experience.
In order to reach the object of the invention, the invention provides the device that a kind of control is taken pictures, comprising: computing module, interpolation and processing module; Wherein,
Computing module, for before taking, calculates the distance of each object and mobile terminal in the photo needing shooting;
Processing module, for when detecting that the induction region pre-set of mobile terminal has clicking operation, preserves the photo of shooting, sends the first notice to interpolation module;
Adding module, for receiving the first notice, the distance of each object calculated and mobile terminal being added in the information of this photo.
Further, described computing module, specifically for:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
Further, described computing module is by the distance of each object of following formulae discovery and mobile terminal:
f × T ( x l - x r )
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
Further, when editing the photo preserved, described processing module, also for: when judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of the object chosen and described mobile terminal, and/or also show the distance found with the distance of the object except self in the described photo preserved and described mobile terminal.
Further, described processing module is also for judging whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting described mobile terminal has pressing operation; When detecting that the induction region pre-set of described mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
Further, when editing the photo preserved, described processing module, also for: when judging at least two objects that user chooses in the photo preserved, in the information of this photo preserved, search the distance of object and the mobile terminal chosen; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
Present invention also offers a kind of method that control is taken pictures, comprising:
Before taking, calculate the distance of each object and mobile terminal in the photo needing shooting;
When detecting that the induction region pre-set of mobile terminal has clicking operation, preserving the photo of shooting and the distance of each object calculated and mobile terminal is added in the information of this photo.
Further, the described distance calculating each object and mobile terminal in the photo needing shooting, comprising:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
Further, by the distance of each object of following formulae discovery and mobile terminal:
f × T ( x l - x r )
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
Further, when editing the photo preserved, the method also comprises: when judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of the object chosen and described mobile terminal, and/or also show the distance found with the distance of the object except self in the described photo preserved and described mobile terminal.
Further, the method also comprises and judges whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting described mobile terminal has pressing operation; When detecting that the induction region pre-set of described mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
Further, when editing the photo preserved, the method also comprises: when judging at least two objects that user chooses in the photo preserved, search the distance of object and the mobile terminal chosen in the information of this photo preserved; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
Technical solution of the present invention comprises: computing module, interpolation and processing module; Wherein, computing module, for before taking, calculates the distance of each object and mobile terminal in the photo needing shooting; Processing module, for when detecting that the induction region pre-set of mobile terminal has clicking operation, preserves the photo of shooting, sends the first notice to interpolation module; Adding module, for receiving the first notice, the distance of each object calculated and mobile terminal being added in the information of this photo.Technical solution of the present invention improves the operability of user, enhances Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the schematic diagram of supporting to carry out between mobile terminal of the present invention the communication system communicated;
Fig. 3 is the structural representation of the device that the present invention controls to take pictures;
Fig. 4 is the flow chart of the method that the present invention controls to take pictures;
Fig. 5 is the exemplary plot of double-camera mobile terminal of the present invention;
Fig. 6 is the exemplary plot of calculating object of the present invention and distance of mobile terminal.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in detail.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digit broadcasting system receiving digital broadcast of Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global positioning system).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loud speaker, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA), code division multiple access (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several global positioning system (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Fig. 3 is the structural representation of the device that the present invention controls to take pictures, and this device is placed in mobile terminal, as shown in Figure 3, comprising: computing module, interpolation and processing module.Wherein,
Computing module, for before taking, calculates the distance of each object and mobile terminal in the photo needing shooting.
Wherein, computing module, specifically for:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
Wherein, computing module comprises the first photographing module and the second photographing module; First shooting mould for gather need shooting photo in the first image of each object; Second photographing module for gather need shooting photo in the second image of each object.Wherein, the first photographing module and the second photographing module can for being placed in two cameras of the same side, and the same side refers to preposition or rearmounted.
Wherein, computing module is by the distance of each object of following formulae discovery and mobile terminal:
f × T ( x l - x r )
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
Illustrate, as shown in Figure 6, utilize the first camera 51 in Fig. 5 and second camera 52 couples of destination object P to carry out IMAQ, obtain the first image P lwith the second image P r, the O wherein shown in Fig. 6 lbe the light source of the first camera 51, O rfor the light source of second camera 52, by O lwith O rbetween connecting line as X-axis, X-axis as shown in Figure 6, using in display plane perpendicular to the direction of X-axis as Y-axis, Y-axis as shown in Figure 6, to set up coordinate system; Like this, the first image P is obtained lrelative to the x of X-axis l, the second image P rrelative to the x of X-axis r, according to formula (1), derive formula (2), calculate the distance Z between mobile terminal and destination object P according to formula (2).
T - ( x l - x r ) Z - f = T Z - - - ( 1 )
Z = f × T ( x l - x r ) - - - ( 2 )
Wherein, T is the centre-to-centre spacing between the first camera 51 and second camera 52, and f is focal length.
It should be noted that, be the situation of preposition two cameras in Fig. 5, the situation of rearmounted two cameras, within protection scope of the present invention, does not repeat them here yet.
Processing module, for when detecting that the induction region pre-set of mobile terminal has clicking operation, preserves the photo of shooting, sends the first notice to interpolation module.
Adding module, for receiving the first notice, the distance of each object calculated and mobile terminal being added in the information of this photo.
Further, when editing the photo preserved, processing module, also for: when judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of object and the mobile terminal chosen, and/or also show the distance found with the distance of the object except self in the photo preserved and mobile terminal.Further, processing module is also for judging whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting mobile terminal has pressing operation; When detecting that the induction region pre-set of mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
Further, when editing the photo preserved, processing module, also for: when judging at least two objects that user chooses in the photo preserved, in the information of this photo preserved, search the distance of object and the mobile terminal chosen; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
Further, processing module, also for: when need the object chosen to be added in new background picture form new photo time, obtain the reference substance in new background picture corresponding to the position that needs to place the object chosen; Obtain the distance of above-mentioned reference substance and mobile terminal; According to the scaling of each object in the distance of the reference substance obtained and mobile terminal and the new photo choosing the distance of the object of interpolation and mobile terminal to calculate to be formed.Wherein, above-mentioned scaling is choose the object of interpolation and the distance of mobile terminal divided by the distance of reference substance and mobile terminal.Wherein, new background picture is the photo that with the addition of each object and distance of mobile terminal.
Illustrate, object and the distance being mobile terminal in material database (photo library that with the addition of the distance of each object and mobile terminal of having preserved), so the object chosen in material can be shifted out and add on new pattern, convergent-divergent is carried out in position according to placing, such as object A distance mobile terminal is 5 meters, user is placed into object B side object A, and object B distance mobile terminal is 10 meters, so he can recommend a scale value, and the ratio making object A and side reference substance (i.e. object B) is harmonious.
It should be noted that, computing module in this device can arrange in controller 180 in FIG, adding module can arrange in controller 180 in FIG, also can arrange in memory 160 in FIG, processing module can be arranged in controller 180 in FIG or in sensing cell 140 or in output unit 150.
Fig. 4 is the flow chart of the method that the present invention controls to take pictures, and comprising:
Step 401: before taking, calculates the distance of each object and mobile terminal in the photo needing shooting.
Wherein, calculate the distance of each object and mobile terminal in the photo needing shooting, comprising:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
Wherein, the first image of each object in the photo of shooting is needed by the first camera collection; And the second image of each object in the photo being needed shooting by second camera collection.
Particularly, by the distance of each object of following formulae discovery and mobile terminal:
f × T ( x l - x r )
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
Illustrate, as shown in Figure 6, utilize the first camera 51 in Fig. 5 and second camera 52 couples of destination object P to carry out IMAQ, obtain the first image P lwith the second image P r, the O wherein shown in Fig. 6 lbe the light source of the first camera 51, O rfor the light source of second camera 52, by O lwith O rbetween connecting line as X-axis, X-axis as shown in Figure 6, using in display plane perpendicular to the direction of X-axis as Y-axis, Y-axis as shown in Figure 6, to set up coordinate system; Like this, the first image P is obtained lrelative to the x of X-axis l, the second image P rrelative to the x of X-axis r, according to formula (1), derive formula (2), calculate the distance Z between mobile terminal and destination object P according to formula (2).
T - ( x l - x r ) Z - f = T Z - - - ( 1 )
Z = f × T ( x l - x r ) - - - ( 2 )
Wherein, T is the centre-to-centre spacing between the first camera 51 and second camera 52, and f is focal length.
It should be noted that, be the situation of preposition two cameras in Fig. 5, the situation of rearmounted two cameras is also within protection scope of the present invention.
Step 402: when detecting that the induction region pre-set of mobile terminal has clicking operation, preserves the photo of shooting and the distance of each object calculated and mobile terminal is added in the information of this photo.
Wherein, the induction region pre-set of mobile terminal comprises the display screen of mobile terminal and/or the side of mobile terminal.
It should be noted that, the distance of each object calculated and mobile terminal being added in the information of this photo is conventional techniques means well-known to those skilled in the art, does not repeat them here, and is no longer used for limiting the present invention.
Further, when editing the photo preserved, the method also comprises:
When judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of object and the mobile terminal chosen, and/or also show the distance found with the distance of the object except self in the photo preserved and mobile terminal.
Further, the method also comprises and judges whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting mobile terminal has pressing operation; When detecting that the induction region pre-set of mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
Further, when editing the photo preserved, the method also comprises: when judging at least two objects that user chooses in the photo preserved, search the distance of object and the mobile terminal chosen in the information of this photo preserved; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
It should be noted that, about how, the distance calculated according to the distance of the object found and mobile terminal between the object chosen belongs to common practise well-known to those skilled in the art, does not repeat them here, and is not used for restriction the present invention.
Further, when need the object chosen to be added in new background picture form new photo time, the method also comprises: obtain needs and place reference substance in new background picture corresponding to the position of the object chosen; Obtain the distance of above-mentioned reference substance and mobile terminal; According to the scaling of each object in the distance of the reference substance obtained and mobile terminal and the new photo choosing the distance of the object of interpolation and mobile terminal to calculate to be formed.Wherein, above-mentioned scaling is choose the object of interpolation and the distance of mobile terminal divided by the distance of reference substance and mobile terminal.Wherein, new background picture is the photo that with the addition of each object and distance of mobile terminal.
Illustrate, object and the distance being mobile terminal in material database (photo library that with the addition of the distance of each object and mobile terminal of having preserved), so the object chosen in material can be shifted out and add on new pattern, convergent-divergent is carried out in position according to placing, such as object A distance mobile terminal is 5 meters, user is placed into object B side object A, and object B distance mobile terminal is 10 meters, so he can recommend a scale value, and the ratio making object A and side reference substance (i.e. object B) is harmonious.
In the inventive method, by the distance of the object calculated and mobile terminal is added in photo, improve the operability of user, enhance Consumer's Experience; By editing the photo that with the addition of distance, enhance the direct feel of user and recreational.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (12)

1. a control device of taking pictures, is characterized in that, comprising: computing module, interpolation and processing module; Wherein,
Computing module, for before taking, calculates the distance of each object and mobile terminal in the photo needing shooting;
Processing module, for when detecting that the induction region pre-set of mobile terminal has clicking operation, preserves the photo of shooting, sends the first notice to interpolation module;
Adding module, for receiving the first notice, the distance of each object calculated and mobile terminal being added in the information of this photo.
2. device according to claim 1, is characterized in that, described computing module, specifically for:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
3. device according to claim 1, is characterized in that, described computing module is by the distance of each object of following formulae discovery and mobile terminal:
001"/>
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
4. device according to claim 1, it is characterized in that, when editing the photo preserved, described processing module, also for: when judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of the object chosen and described mobile terminal, and/or also show the distance found with the distance of the object except self in the described photo preserved and described mobile terminal.
5. device according to claim 4, is characterized in that, described processing module is also for judging whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting described mobile terminal has pressing operation; When detecting that the induction region pre-set of described mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
6. device according to claim 1, it is characterized in that, when editing the photo preserved, described processing module, also for: when judging at least two objects that user chooses in the photo preserved, in the information of this photo preserved, search the distance of object and the mobile terminal chosen; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
7. a control method of taking pictures, is characterized in that, comprising:
Before taking, calculate the distance of each object and mobile terminal in the photo needing shooting;
When detecting that the induction region pre-set of mobile terminal has clicking operation, preserving the photo of shooting and the distance of each object calculated and mobile terminal is added in the information of this photo.
8. method according to claim 7, is characterized in that, the described distance calculating each object and mobile terminal in the photo needing shooting, comprising:
Gather the first image and second image of each object in the photo needing shooting respectively;
Obtain the first camera and second camera centre distance and obtain focal length;
Obtain the distance relative to the first camera and second camera centre distance place reference axis of the distance relative to the first camera and second camera centre distance place reference axis of the first image and the second image;
According to the distance calculating each object and mobile terminal relative to the distance of the first camera and second camera centre distance place reference axis of the centre distance obtained and focal length and acquisition.
9. method according to claim 7, is characterized in that, the distance by each object of following formulae discovery and mobile terminal:
002"/>
Wherein, f is focal length, and T is the first camera and second camera centre distance, x lbe the distance relative to the first camera and second camera centre distance place reference axis of the first image, x rit is the distance relative to the first camera and second camera centre distance place reference axis of the second image.
10. method according to claim 7, it is characterized in that, when editing the photo preserved, the method also comprises: when judging the object that user chooses in the photo preserved, in the information of this photo preserved, search the distance of the object chosen and described mobile terminal, and/or also show the distance found with the distance of the object except self in the described photo preserved and described mobile terminal.
11. methods according to claim 10, is characterized in that, the method also comprises and judges whether user chooses the object in the photo preserved, and comprising: whether the induction region pre-set detecting described mobile terminal has pressing operation; When detecting that the induction region pre-set of described mobile terminal has pressing operation, obtain position and the force value of pressing operation;
When the force value obtained is more than or equal to the threshold value pre-set, judge that user chooses the object in the photo preserved; Wherein, the object that the position of the pressing operation of acquisition is corresponding is the object that user chooses in the photo preserved;
When the force value obtained is less than the threshold value pre-set, judge that user does not choose the object in the photo preserved.
12. methods according to claim 7, it is characterized in that, when editing the photo preserved, the method also comprises: when judging at least two objects that user chooses in the photo preserved, search the distance of object and the mobile terminal chosen in the information of this photo preserved; The distance between the object chosen is calculated according to the distance of the object found and mobile terminal; Show the distance between the object chosen that calculates and the object chosen respectively with the distance of mobile terminal.
CN201510447874.6A 2015-07-27 2015-07-27 Device and method for controlling picture shooting Pending CN105141834A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510447874.6A CN105141834A (en) 2015-07-27 2015-07-27 Device and method for controlling picture shooting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510447874.6A CN105141834A (en) 2015-07-27 2015-07-27 Device and method for controlling picture shooting

Publications (1)

Publication Number Publication Date
CN105141834A true CN105141834A (en) 2015-12-09

Family

ID=54727032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510447874.6A Pending CN105141834A (en) 2015-07-27 2015-07-27 Device and method for controlling picture shooting

Country Status (1)

Country Link
CN (1) CN105141834A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888833A (en) * 2017-11-28 2018-04-06 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107948516A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN111726531A (en) * 2020-06-29 2020-09-29 北京小米移动软件有限公司 Image shooting method, processing method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102072745A (en) * 2009-11-20 2011-05-25 中国农业科学院农业资源与农业区划研究所 Remote monitoring-based device, system and method for measuring crop yield in real time
WO2011078913A1 (en) * 2009-12-22 2011-06-30 Apple Inc. Image capture device having tilt or perspective correction
CN101610421B (en) * 2008-06-17 2011-12-21 华为终端有限公司 Video communication method, video communication device and video communication system
CN102938825A (en) * 2012-11-12 2013-02-20 北京小米科技有限责任公司 Method and device for shooting pictures and recording videos
CN103344213A (en) * 2013-06-28 2013-10-09 三星电子(中国)研发中心 Method and device for measuring distance of double-camera
CN104243798A (en) * 2013-06-14 2014-12-24 索尼公司 Image processing device, server, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610421B (en) * 2008-06-17 2011-12-21 华为终端有限公司 Video communication method, video communication device and video communication system
CN102072745A (en) * 2009-11-20 2011-05-25 中国农业科学院农业资源与农业区划研究所 Remote monitoring-based device, system and method for measuring crop yield in real time
WO2011078913A1 (en) * 2009-12-22 2011-06-30 Apple Inc. Image capture device having tilt or perspective correction
CN102938825A (en) * 2012-11-12 2013-02-20 北京小米科技有限责任公司 Method and device for shooting pictures and recording videos
CN104243798A (en) * 2013-06-14 2014-12-24 索尼公司 Image processing device, server, and storage medium
CN103344213A (en) * 2013-06-28 2013-10-09 三星电子(中国)研发中心 Method and device for measuring distance of double-camera

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵勋杰 等: "双目立体实时测距系统的关键技术研究", 《激光与红外》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888833A (en) * 2017-11-28 2018-04-06 维沃移动通信有限公司 A kind of image capturing method and mobile terminal
CN107948516A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN111726531A (en) * 2020-06-29 2020-09-29 北京小米移动软件有限公司 Image shooting method, processing method, device, electronic equipment and storage medium
CN111726531B (en) * 2020-06-29 2022-03-01 北京小米移动软件有限公司 Image shooting method, processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN104750420A (en) Screen capturing method and device
CN105183308A (en) Picture display method and apparatus
CN104935747A (en) Processing method and device for application icon, and terminal
CN105187521A (en) Service processing device and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN105119825A (en) Data transmission device and data transmission method
CN105094612A (en) Object selecting method and device
CN104915140A (en) Processing method based on virtual key touch operation data and processing device based on virtual key touch operation data
CN105045502A (en) Image processing method and image processing device
CN104898940A (en) Picture processing method and device
CN105160628A (en) Method and device for acquiring RGB data
CN105100416A (en) Event reminding method and wearable device
CN104917891A (en) Mobile terminal and page-turning control method thereof
CN105357367A (en) Keystroke identification device and method based on pressure sensor
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN104951229A (en) Screen capturing method and device
CN105138871A (en) Unlocking method and apparatus for mobile terminal and mobile terminal
CN104658535A (en) Voice control method and device
CN104661095A (en) Audio and video data recommendation method and system
CN105353346A (en) Mobile terminal and hot spot positioning method thereof
CN105261054A (en) Device and method for compositing audio GIF image
CN105049612A (en) Method of realizing recording and device of realizing recording
CN104657484A (en) Method, device and system for downloading application software
CN104731455A (en) Application identification display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209