CN102883069A - Mobile terminal and operating method thereof - Google Patents

Mobile terminal and operating method thereof Download PDF

Info

Publication number
CN102883069A
CN102883069A CN201210391392XA CN201210391392A CN102883069A CN 102883069 A CN102883069 A CN 102883069A CN 201210391392X A CN201210391392X A CN 201210391392XA CN 201210391392 A CN201210391392 A CN 201210391392A CN 102883069 A CN102883069 A CN 102883069A
Authority
CN
China
Prior art keywords
parameter
target object
module
image
assignment
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
CN201210391392XA
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.)
Huaqin Telecom Technology Co Ltd
Original Assignee
Huaqin Telecom 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 Huaqin Telecom Technology Co Ltd filed Critical Huaqin Telecom Technology Co Ltd
Priority to CN201210391392XA priority Critical patent/CN102883069A/en
Publication of CN102883069A publication Critical patent/CN102883069A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a mobile terminal and an operating method thereof. The operating method comprises the following steps of: S1, setting a first parameter and a second parameter, and shooting a target object to generate a first image; S2, assigning a value to the first parameter by using the size of the first image; S3, shooting the target object again to generate a second image; S4, assigning a value to the second parameter by using the size of the second image; S5, judging whether the first parameter is greater than the second parameter, if the first parameter is greater than the second parameter, executing S6, and if the first parameter is not greater than the second parameter, executing S7; S6, executing first operation, and judging whether to end the flow, if so, ending the flow, otherwise, assigning the second parameter to the first parameter; and returning to S3; and S7, executing second operation, and judging whether to end the flow, if so, ending the flow, otherwise, assigning the second parameter to the first parameter, and returning to S3. By the mobile terminal and the operating method, the relative distance between the mobile terminal and the target object can be judged; and different types of user operation can be executed according to judgment results.

Description

Portable terminal and method of operation thereof
Technical field
The present invention relates to a kind of portable terminal and method of operation thereof, particularly relate to a kind of portable terminal and a kind of method of operation of utilizing the portable terminal that described portable terminal realizes that can judge relative distance far and near of described target object and then carry out different user's operations by taking a target object.
Background technology
Existing Distance Judgment function, all be initiatively to object being measured emission ultrasonic wave, infrared ray or laser etc. by terminal equipment, the ultrasonic wave of launching by calculating again, infrared ray or laser are back to the time that terminal equipment consumes, and utilize mathematical computations just can access the variation of distance and the distance of terminal and object being measured.But, described terminal equipment need to comprise reflector, receiver and processing unit etc., needed cost compare is high, and for portable terminals such as mobile phones, owing to there is not the integrated device that is specifically designed to measuring distance, therefore existing mobile phone also can't carry out to a target object measurement of relative distance, also can't further operate and use by measuring relative distance.
Summary of the invention
The technical problem to be solved in the present invention is that the portable terminal such as mobile phone does not have the integrated device that is specifically designed to measuring distance in the prior art in order to overcome, cause the defective that to measure and can't further operate and use the relative distance of a target object, a kind of portable terminal and a kind of method of operation of utilizing the portable terminal that described portable terminal realizes that can judge relative distance far and near of described target object and then carry out different user's operations by taking a target object is provided.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of method of operation of portable terminal, its characteristics are that described method of operation may further comprise the steps:
S 1, set one first parameter and one second parameter, a target object is taken to generate one first image;
S 2, be of a size of described the first parameter assignment with target object described in described the first image;
S 3, described target object is taken to generate the second image again;
S 4, be of a size of described the second parameter assignment with target object described in the second image;
S 5, judge described the first parameter value whether greater than the value of described the second parameter, if, execution in step S then 6, if not, execution in step S then 7
S 6, carry out one first operation, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step S 3
S 7, carry out one second operation, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step S 3
Preferably, the combination or the amplification that are combined as the combination, screen locking and the releasing screen locking that start an application program and close an application program of moving of described the first operation and described the second operation and dwindle the combination of a picture.
Preferably, described the first image and the second image are photo or video.
The object of the invention is to also provide a kind of portable terminal, its characteristics are that it comprises a setting module, a photographing module, an assignment module, one first judge module, one second judge module and a control module;
Described setting module is used for setting one first parameter and one second parameter;
Described photographing module is used for a target object is taken to generate one first image;
Described assignment module is used for being of a size of described the first parameter assignment with target object described in described the first image, then call described photographing module described target object is taken to generate the second image again, described assignment module also is used for being of a size of described the second parameter assignment with target object described in the second image;
Whether the value that described the first judge module is used for judging described the first parameter is greater than the value of described the second parameter, if greater than, then call described control module and carry out one first operation, then call described the second judge module and judge whether to receive the instruction of a process ends, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and calls described photographing module described target object is taken to generate the second image again;
If less than, then call described control module and carry out one second operation, then call described the second judge module and judge whether to receive the instruction of a process ends, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and calls described photographing module described target object is taken to generate the second image again.
When the user carries described portable terminal walking or moves, if the user wishes to judge the distance of the relative distance of described portable terminal and a target object, then after starting described photographing module, described photographing module will be taken first to described target object, and generate described the first image that comprises described target object, described assignment module just can identify described target object and calculate the size of described target object from described the first image, and is of a size of described the first parameter assignment with target object described in described the first image.
Then, described photographing module can be taken again to described target object, and generate the second image that comprises described target object, described assignment module can identify described target object equally and calculate the size of described target object from the second image, and is of a size of described the second parameter assignment with target object described in the second image.
Because described photographing module carries out the first image that successively twice shooting generate afterwards and the size of the second image is fixed, according to general knowledge as can be known, when the close described target object of described portable terminal, the size of target object can be relatively more greatly described in the image that described photographing module is taken, and when described portable terminal during away from described target object, the size of target object can be relatively a little bit smaller described in the image that described photographing module is taken.
Therefore, whether the value that described the first judge module will be judged described the first parameter is greater than the value of described the second parameter, if greater than, illustrate that then the size of the described target object in the first image is greater than the size of the target object in the second image, just illustrate that also the relative distance between described portable terminal and the described target object becomes far gradually, just call described control module this moment and carry out one first operation.Then call described the second judge module and judge whether to receive the instruction of a process ends, described instruction can be sent by touch screen or button by the user, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and call described photographing module described target object is taken again, at this moment, described photographing module can be taken the second image that makes new advances, and described assignment module can identify described target object and calculate the new size of described target object from described the second image newly, and described assignment module uses target object described in the second new image and is of a size of described the second parameter assignment, and whether the value that described the first judge module can continue to judge the first new parameter is greater than the value of the second new parameter.
If less than, illustrate that then the size of the described target object in the first image is less than the size of the target object in the second image, just illustrate that also the relative distance between described portable terminal and the described target object becomes near gradually, then call described control module and carry out one second operation, then call described the second judge module and judge whether to receive the instruction of a process ends, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and calls described photographing module described target object is taken again.
Wherein, described the first operation is various common processing and the operation that the user carries out portable terminal with described the second operation.
Preferably, the combination or the amplification that are combined as the combination, screen locking and the releasing screen locking that start an application program and close an application program of moving of described the first operation and described the second operation and dwindle the combination of a picture.Described screen locking represents that namely the screen of described portable terminal no longer receives user's touching instruction, and described releasing screen locking represents that namely the screen of described portable terminal can normally receive user's touching instruction.
Preferably, described the first image and the second image are photo or video.
Preferably, described photographing module is the camera of described portable terminal.
Positive progressive effect of the present invention is: the present invention can judge the distance of the relative distance of portable terminal and a target object, and then the user operation different according to different judged result execution, thereby enriched the function of portable terminal and a kind of brand-new user's mode of operation is provided, promoted user's experience.
Description of drawings
Fig. 1 is the structure chart of the portable terminal of embodiments of the invention 1.
Fig. 2 is the flow chart of method of operation of the portable terminal of embodiments of the invention 1.
Fig. 3 is the flow chart of method of operation of the portable terminal of embodiments of the invention 2.
Fig. 4 is the flow chart of method of operation of the portable terminal of embodiments of the invention 3.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail.
Embodiment 1:
As shown in Figure 1, the portable terminal of present embodiment comprises a camera 1, a setting module 2, an assignment module 3, one first judge module 4, one second judge module 5 and a control module 6.
When the user carries described portable terminal walking or moves, if the user wishes to judge the distance of the relative distance of described portable terminal and a target object, then at first described setting module 2 is set one first parameter and one second parameter, and after starting described camera 1, described camera 1 will be taken pictures first to described target object, and generate the first photo that comprises described target object, described assignment module 3 just can identify described target object and calculate the size of described target object from described the first photo, and is of a size of described the first parameter assignment with target object described in described the first photo.
Then, described camera 1 can be taken pictures again to described target object, and generate the second photo that comprises described target object, described assignment module 3 can identify described target object equally and calculate the size of described target object from the second photo, and is of a size of described the second parameter assignment with target object described in the second photo.
Because described camera 1 carries out the first photo that successively twice shooting generate afterwards and the size of the second photo is fixed, according to general knowledge as can be known, when the close described target object of described portable terminal, the size of target object can be relatively more greatly described in the photo that described camera 1 is taken, and when described portable terminal during away from described target object, the size of target object can be relatively a little bit smaller described in the photo that described camera 1 is taken.
Therefore, whether the value that described the first judge module 4 will be judged described the first parameter is greater than the value of described the second parameter, if greater than, illustrate that then the size of the described target object in the first photo is greater than the size of the target object in the second photo, just illustrate that also the relative distance between described portable terminal and the described target object becomes far gradually, just call described control module 6 this moment and carry out one first operation.Then call described the second judge module 5 and judge whether to receive the instruction of a process ends, described instruction can be sent by touch screen or button by the user, if, process ends then, if not, the value of then calling described the second parameter of described assignment module 3 usefulness is described the first parameter assignment, and calls 1 pair of described target object of described camera and again take.At this moment, described camera 1 can be taken the second photo that makes new advances, and described assignment module 3 can identify described target object and calculate the new size of described target object from described the second photo newly, and described assignment module 3 uses target object described in the second new photo and is of a size of described the second parameter assignment, and whether the value that described the first judge module 4 can continue to judge the first new parameter is greater than the value of the second new parameter.
At this moment, the value of the second parameter has originally been given the first parameter by assignment, and described camera 1 can be taken the second photo that makes new advances, and described assignment module 3 can identify described target object and calculate the second new size of described target object from described the second photo newly, and be of a size of the second parameter assignment with new second, and whether the value that described the first judge module 4 can continue to judge the first new parameter is greater than the value of the second new parameter, therefore, the flow process of the judgement of described portable terminal and control just can circulate down.
If less than, illustrate that then the size of the described target object in the first photo is less than the size of the target object in the second photo, just illustrate that also the relative distance between described portable terminal and the described target object becomes near gradually, then call described control module 6 and carry out one second operation, then call described the second judge module 5 and judge whether to receive the instruction of a process ends, if, process ends then, if not, the value of then calling described the second parameter of described assignment module 3 usefulness is described the first parameter assignment, and call 1 pair of described target object of described camera and again take, judgement herein and the flow process of control can continue circulation and go down just with above-mentioned consistent.
Wherein, described the first operation is various common processing and the operation that the user carries out portable terminal with described the second operation, specifically in the present embodiment, described first is operating as an application program that starts in the described portable terminal, such as music player, described the second operation is then for closing the current a certain application program of moving in the described portable terminal.
As shown in Figure 2, the present invention utilizes the method for operation of the portable terminal that the portable terminal of present embodiment realizes may further comprise the steps:
Step 100, setting one first parameter and one second parameter take to generate one first photo to a target object.
Step 101, be of a size of described the first parameter assignment with target object described in described the first photo.
Step 102, described target object is taken to generate the second photo again.
Step 103, be of a size of described the second parameter assignment with target object described in the second photo.
Step 104, judge described the first parameter value whether greater than the value of described the second parameter, if then execution in step 105, if not, then execution in step 106.
Step 105, start the application program in the described portable terminal, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 102.
Step 106, close an application program of moving in the described portable terminal, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 102.
Embodiment 2:
Referring to Fig. 1, the portable terminal of present embodiment comprises a camera 1, a setting module 2, an assignment module 3, one first judge module 4, one second judge module 5 and a control module 6 equally.The difference of present embodiment and embodiment 1 is: in the present embodiment, after starting described camera 1, described camera 1 can successively carry out real-time photography comprises described target object with generation the first video and the second video to described target object, described assignment module 3 then can identify the described target object in described the first video and described the second video and can calculate successively the size of target object equally, and is respectively described the first parameter and described the second parameter assignment.
Whether the value that 4 of described the first judge modules can be judged described the first parameter equally is greater than the value of described the second parameter, the subsequent operation of carrying out according to the result who judges afterwards then with embodiment 1 in identical, difference only is: in the present embodiment, described first is operating as screen locking, namely so that the screen of described portable terminal no longer receives user's touching instruction, and described second be operating as the releasing screen locking, namely so that the screen of described portable terminal can receive the touching instruction normally.
As shown in Figure 3, the present invention utilizes the method for operation of the portable terminal that the portable terminal of present embodiment realizes may further comprise the steps:
Step 200, setting one first parameter and one second parameter make a video recording to generate one first video to a target object.
Step 201, be of a size of described the first parameter assignment with target object described in described the first video.
Step 202, described target object is taken to generate the second video again.
Step 203, be of a size of described the second parameter assignment with target object described in the second video.
Step 204, judge described the first parameter value whether greater than the value of described the second parameter, if then execution in step 205, if not, then execution in step 206.
Then step 205, screen locking judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 202.
Step 206, remove screen locking, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 202.
Embodiment 3:
Referring to Fig. 1, the portable terminal of present embodiment comprises a camera 1, a setting module 2, an assignment module 3, one first judge module 4, one second judge module 5 and a control module 6 equally.The difference of present embodiment and embodiment 1 is: in the present embodiment, described first is operating as the picture in the described portable terminal is amplified, and described the second operation is then for to dwindle the picture in the described portable terminal.
As shown in Figure 4, the present invention utilizes the method for operation of the portable terminal that the portable terminal of present embodiment realizes may further comprise the steps:
Step 300, setting one first parameter and one second parameter take to generate one first photo to a target object.
Step 301, be of a size of described the first parameter assignment with target object described in described the first photo.
Step 302, described target object is taken to generate the second photo again.
Step 303, be of a size of described the second parameter assignment with target object described in the second photo.
Step 304, judge described the first parameter value whether greater than the value of described the second parameter, if then execution in step 305, if not, then execution in step 306.
Step 305, amplify the picture in the described portable terminal, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 302.
Step 306, dwindle the picture in the described portable terminal, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step 302.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art can make various changes or modifications to these execution modes under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.

Claims (7)

1. the method for operation of a portable terminal is characterized in that, described method of operation may further comprise the steps:
S 1, set one first parameter and one second parameter, a target object is taken to generate one first image;
S 2, be of a size of described the first parameter assignment with target object described in described the first image;
S 3, described target object is taken to generate the second image again;
S 4, be of a size of described the second parameter assignment with target object described in the second image;
S 5, judge described the first parameter value whether greater than the value of described the second parameter, if, execution in step S then 6, if not, execution in step S then 7
S 6, carry out one first operation, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step S 3
S 7, carry out one second operation, then judge whether to receive the instruction of a process ends, if, process ends then, if not, then the value with described the second parameter is described the first parameter assignment, and returns step S 3
2. method of operation as claimed in claim 1, it is characterized in that the combination or the amplification that are combined as the combination, screen locking and the releasing screen locking that start an application program and close an application program of moving that described the first operation and described second operates and the combination of dwindling a picture.
3. method of operation as claimed in claim 1 or 2 is characterized in that, described the first image and the second image are photo or video.
4. a portable terminal is characterized in that, it comprises a setting module, a photographing module, an assignment module, one first judge module, one second judge module and a control module;
Described setting module is used for setting one first parameter and one second parameter;
Described photographing module is used for a target object is taken to generate one first image;
Described assignment module is used for being of a size of described the first parameter assignment with target object described in described the first image, then call described photographing module described target object is taken to generate the second image again, described assignment module also is used for being of a size of described the second parameter assignment with target object described in the second image;
Whether the value that described the first judge module is used for judging described the first parameter is greater than the value of described the second parameter: if greater than, then call described control module and carry out one first operation, then call described the second judge module and judge whether to receive the instruction of a process ends, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and calls described photographing module described target object is taken to generate the second image again; If less than, then call described control module and carry out one second operation, then call described the second judge module and judge whether to receive the instruction of a process ends, if, process ends then, if not, then calling described assignment module is described the first parameter assignment with the value of described the second parameter, and calls described photographing module described target object is taken to generate the second image again.
5. portable terminal as claimed in claim 4, it is characterized in that the combination or the amplification that are combined as the combination, screen locking and the releasing screen locking that start an application program and close an application program of moving that described the first operation and described second operates and the combination of dwindling a picture.
6. such as claim 4 or 5 described portable terminals, it is characterized in that described the first image and the second image are photo or video.
7. portable terminal as claimed in claim 6 is characterized in that, described photographing module is the camera of described portable terminal.
CN201210391392XA 2012-10-15 2012-10-15 Mobile terminal and operating method thereof Pending CN102883069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210391392XA CN102883069A (en) 2012-10-15 2012-10-15 Mobile terminal and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210391392XA CN102883069A (en) 2012-10-15 2012-10-15 Mobile terminal and operating method thereof

Publications (1)

Publication Number Publication Date
CN102883069A true CN102883069A (en) 2013-01-16

Family

ID=47484199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210391392XA Pending CN102883069A (en) 2012-10-15 2012-10-15 Mobile terminal and operating method thereof

Country Status (1)

Country Link
CN (1) CN102883069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103604371A (en) * 2013-12-06 2014-02-26 上海华勤通讯技术有限公司 Mobile terminal and object measurement method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050003799A1 (en) * 2003-07-05 2005-01-06 Lg Electronics Inc. Method and system for controlling access to a mobile communication terminal
CN101931692A (en) * 2010-07-14 2010-12-29 康佳集团股份有限公司 Mobile terminal and method for automatically adjusting display size of image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050003799A1 (en) * 2003-07-05 2005-01-06 Lg Electronics Inc. Method and system for controlling access to a mobile communication terminal
CN101931692A (en) * 2010-07-14 2010-12-29 康佳集团股份有限公司 Mobile terminal and method for automatically adjusting display size of image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103604371A (en) * 2013-12-06 2014-02-26 上海华勤通讯技术有限公司 Mobile terminal and object measurement method thereof

Similar Documents

Publication Publication Date Title
RU2632120C2 (en) Method and device for controlling terminal device charging
EP3787095B1 (en) Method and device for charging lithium ion battery
US10558511B2 (en) Method and device for evaluating system fluency, and UE
CN107611507B (en) Update method, device and the mobile terminal of battery parameter
US9635279B2 (en) Image acquisition method and apparatus
CN104951335B (en) The processing method and processing device of application program installation kit
WO2018219170A1 (en) Focusing control method, computer device and computer readable storage medium
WO2016019926A1 (en) Photo shooting method, device, and mobile terminal
EP3116165A1 (en) Method and device for testing a terminal
CN106371086B (en) A kind of method and apparatus of ranging
CN102594984A (en) Mobile terminal, and system and method for quickly photographing mobile terminal
CN107566746B (en) Photographing method and user terminal
WO2017096959A1 (en) Image collection method and device for terminal
CN105847413A (en) Camera parameter processing method, apparatus and system, and server
CN112713322A (en) Battery temperature determination method, battery temperature determination device, and storage medium
CN104811690A (en) Message prompting method and device
CN111200304A (en) Temperature detection circuit, method and device of wireless charging coil and storage medium
CN111373728B (en) Control method and device for camera application
CN105120158B (en) The image pickup method and device of mobile terminal
CN109561255B (en) Terminal photographing method and device and storage medium
CN106127720B (en) A kind of method and apparatus shooting enlarged drawing
CN105657280B (en) A kind of quick focusing method, device and mobile terminal
CN107491353A (en) Method for recovering internal storage, device and computer-readable recording medium
CN102883069A (en) Mobile terminal and operating method thereof
CN105142190B (en) Network cell reselecting 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
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130116