CN104184895B - The control method and mobile terminal of camera module output image resolution - Google Patents

The control method and mobile terminal of camera module output image resolution Download PDF

Info

Publication number
CN104184895B
CN104184895B CN201410416636.4A CN201410416636A CN104184895B CN 104184895 B CN104184895 B CN 104184895B CN 201410416636 A CN201410416636 A CN 201410416636A CN 104184895 B CN104184895 B CN 104184895B
Authority
CN
China
Prior art keywords
resolution
output image
camera module
image resolution
sequence
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.)
Active
Application number
CN201410416636.4A
Other languages
Chinese (zh)
Other versions
CN104184895A (en
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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN201410416636.4A priority Critical patent/CN104184895B/en
Publication of CN104184895A publication Critical patent/CN104184895A/en
Application granted granted Critical
Publication of CN104184895B publication Critical patent/CN104184895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses the control method and mobile terminal of camera module output image resolution, wherein, the control method includes:A, acquisition user input operation, and it is converted into corresponding output image resolution;Described in B, comparison, whether the resolution of the output image of output image resolution and camera module current setting is identical;C, when the output image resolution is different from the resolution of camera module output image, the resolution of camera module output image is set to into the output image resolution.The present invention is needed according to user operation, the resolution of control break camera module output image by way of writing and sequence is set, so as to effectively improving mobile terminal output image processing speed, it is to avoid a large amount of invalid datas waste memory headrooms and extend data transmission period.

Description

The control method and mobile terminal of camera module output image resolution
Technical field
The present invention relates to mobile terminal camera-enabled application, more particularly to camera module output image resolution Control method and mobile terminal.
Background technology
Camera(That is photographing unit)Be in mobile terminal must be with one of function;At present, the view data of Camera outputs Resolution is fixed as maximum output resolution.Resolution of taking pictures that mobile terminal is selected according to user, preview resolution are by scheming As the view data that Camera is exported is converted to corresponding image resolution ratio size by Processing Algorithm.
For example, certain mobile terminal using Camera be the five mega pixels i.e. resolution of maximum output image for 2560 × 1920, conventional art is that the image resolution ratio for arranging Camera outputs is fixed as 2560 × 1920;Take a picture when mobile terminal is entered During the preview of machine, the image resolution ratio if necessary to show is 640 × 480, then export Camera by image processing algorithm Resolution be 2560 × 1920 view data be converted to 640 × 480 view data;When needing to take three mega pixels When the photo of (2048 × 1536) is, then the resolution for exporting Camera by image processing algorithm is 2560 × 1920 images Data are converted to 2048 × 1536 view data.It is this that the image resolution ratio that Camera is exported is set to into fixed value, then The figure for being converted into different resolution is arranged by the fixed resolution view data that Camera is exported by software algorithm according to user As the method for data, performing in above-mentioned software algorithm needs the long period, and the processing speed of mobile terminal is slow.It is additionally, since not Which kind of image resolution ratio selected by user, Camera causes a large amount of invalid according to its maximum image resolution output data Data take, and waste memory headroom and extend data transmission period.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of camera module output image resolution Control method and mobile terminal, it is intended to solve the problems, such as that camera module output image transmission speed is slow.
Technical scheme is as follows:
A kind of control method of camera module output image resolution, comprises the following steps:
A, acquisition user input operation, and it is converted into corresponding output image resolution;
Described in B, comparison, whether the resolution of the output image of output image resolution and camera module current setting is identical;
C, when the output image resolution is different from the resolution of camera module output image, camera module is exported The resolution of image is set to the output image resolution.
In the control method of described camera module output image resolution, before step A, described method is also wrapped Include:
A0, in advance acquisition camera module export the corresponding setting sequence of various image in different resolution.
In the control method of described camera module output image resolution, step C is specifically included:
C1, acquisition setting sequence corresponding with the output image resolution;
C1, by digital communication interface by it is described setting sequence write camera module in, make camera module output image Resolution is the output image resolution.
In the control method of described camera module output image resolution, in the setting sequence, each sequence pair should A kind of image resolution ratio is set.
In the control method of described camera module output image resolution, after step C, also include:
D, reception camera module output resolution ratio and the output image resolution identical image.
A kind of mobile terminal of the output image resolution of control camera module, including:
Input module, for obtaining user operation;
Resolution acquisition module, for the user operation of acquisition is changed into corresponding output image resolution,
Resolution comparison module, for the comparison output image resolution and the output image of camera module current setting Resolution;
Sequence setup module, when the output image resolution is different from the resolution of camera module output image, will The resolution of camera module output image is set to the output image resolution.
In the mobile terminal of the output image resolution of described control camera module, the resolution acquisition module, also The corresponding setting sequence of various image in different resolution is exported for obtaining camera module in advance, and is stored in sequence memory module;
The mobile terminal also includes:Sequence memory module, for storing various output image resolution and camera module The corresponding setting sequence of output image.
In the mobile terminal of the output image resolution of described control camera module,
The resolution acquisition module, is additionally operable to obtain setting sequence corresponding with the output image resolution;
The sequence setup module, specifically for searching in sequence memory module, the resolution acquisition module is obtained The corresponding setting sequence of output image resolution, by digital communication interface by it is described setting sequence write camera module in, The resolution for making camera module output image is the output image resolution.
In the mobile terminal of the output image resolution of described control camera module, the mobile terminal also includes:Figure As data reception module, for receiving camera module output resolution ratio with the output image resolution identical image.
Beneficial effect:The present invention provides a kind of control method and mobile terminal of camera module output image resolution, according to Need according to user operation, the resolution of control break camera module output image by way of writing and sequence is set, so as to have Effect improves mobile terminal output image processing speed, it is to avoid a large amount of invalid datas waste memory headrooms and extend data and pass The defeated time.
Description of the drawings
Fig. 1 is the method flow of the control method of camera module output image resolution in the specific embodiment of the invention Figure.
Fig. 2 is the structural frames of the mobile terminal of control camera module output image resolution in the specific embodiment of the invention Figure.
Fig. 3 is the concrete connected mode of the sequence setup module with photographing unit of mobile terminal in the specific embodiment of the invention Structured flowchart.
Specific embodiment
The present invention provides a kind of control method and mobile terminal of camera module output image resolution, to make the present invention's Purpose, technical scheme and effect are clearer, clear and definite, and the present invention is described in more detail below.It should be appreciated that this place is retouched The specific embodiment stated only to explain the present invention, is not intended to limit the present invention.
As shown in figure 1, a kind of control method of camera module output image resolution in the specific embodiment of the invention, described Method is comprised the following steps:
S100, acquisition user input operation, and it is converted into corresponding output image resolution.
The resolution of output image resolution described in S200, comparison and the output image of camera module current setting whether phase Together;If identical, execution step S400;If it is different, then execution step S300.
S300, the resolution of camera module output image is set to into the output image resolution.
S400, output image.
When being embodied as, before step S100, the control method also includes:Obtain from camera module supplier in advance And setting sequence corresponding with various output image resolution described in storing.Specifically, mobile terminal can also open setting sequence The write authority of row, the resolution for alloing user to need according to itself, write are correspondingly arranged sequence and store, so that mobile Terminal can be according to the individual demand of user, there is provided corresponding output image resolution and be not limited to factory setting.
Wherein, each arranges sequence and is correspondingly arranged a kind of output image resolution.The setting sequence is a string 16 Binary data, output image resolution are one-to-one relationship with sequence is arranged.The selection of output image resolution, the kind of adjustment Class and corresponding setting when sequence is dispatched from the factory by mobile terminal preset.
Specifically, step S300 is specifically included:Setting sequence corresponding with the output image resolution is obtained first; The setting sequence is write in camera module by digital communication interface afterwards, the resolution for making camera module output image is The output image resolution.The present invention can conveniently, efficiently change photographing unit by way of write is correspondingly arranged sequence Output image resolution, realize according to user operation adjust camera module output image resolution.
It is preferred that camera module is when output meets the image of user's request resolution, while by ultimate resolution figure As exporting and preserving into a certain specific memory.When user is in the behaviour that preview is finished or other required image resolution are relatively low After work, further artwork can also be modified, process, without losing ultimate resolution image.
Specifically, the present invention can also be used to change output image resolution using directly increasing by one in photographing unit key-course The interface of rate, directly changes the resolution of camera module output image according to user operation instruction by the interface.Should illustrate , in other embodiments, it would however also be possible to employ any other suitably changes the method reality of camera module output image resolution The now control to output image resolution.
Further, the control method of camera module output image resolution of the invention, after step S300, Also include:Camera module output resolution ratio and the output image resolution identical image are received, for grasping with the user Make corresponding back-end function.
The view data of camera module output, is used directly for the other functions of rear end, compared with prior art, this The view data that camera module is exported is converted to the resolution that corresponding rear end needs by the bright image processing algorithm that needs not move through After the view data of rate, could be used by rear end, so as to effectively improve the speed of mobile terminal calculation process, it is to avoid tired Miscellaneous computing.
As shown in Fig. 2 the present invention correspondingly provides a kind of output image, which includes:
Input module 100, resolution acquisition module 200, resolution comparison module 300, camera module 400 and sequence are arranged Module 500.The input module 100, resolution acquisition module 200, resolution comparison module 300 and sequence setup module 500 It is sequentially connected, sequence setup module 500 connects the camera module 400 of mobile terminal.
Wherein, input module 100 is used to obtain user operation, and the input module is keyboard, touch screen etc., the user Operate the operational order by the input of the modules such as keyboard, touch screen for user.
Resolution acquisition module 200 is for changing into corresponding output image resolution by the user operation of acquisition.For example, It is 640 × 480 that input module 100 obtain user to change preview resolution size, then the resolution that resolution acquisition module 200 is obtained Rate value is 640 × 480;Again for example, it is 2048 × 1536 that input module 100 obtain user to change resolution sizes of taking pictures, then divide When user takes camera button, the resolution value for obtaining is 2048 × 1536 to resolution acquisition module 200.
It is defeated with 400 current setting of camera module that resolution comparison module 300 is used for the comparison output image resolution Go out the resolution of image.Sequence setup module 500, for when the output image resolution and 400 output image of camera module When resolution is differed, the resolution of 400 output image of camera module is set to into the output image resolution, so that shining 400 output image resolution of phase module is identical with the output image resolution.When the output image resolution and photograph mould When 400 output image resolution of block is identical, it is not operate, direct output image.
Specifically, as shown in figure 3, sequence setup module 500 is connected by I2C digital communication interfaces with camera module 400 Connect, the I2C_SCL ends of sequence setup module 500 connect the CSCL ends of photographing unit, the I2C_SDA ends of sequence setup module 500 connect Connect the CSDA ends of photographing unit.
It is preferred that as shown in Fig. 2 the mobile terminal also includes:Sequence memory module 600, which arranges mould with sequence Block 500 connects, for storing various output image resolution setting sequence corresponding with 400 output image of camera module.Wherein, The setting sequence is by camera module 400(Such as photographic head)Supplier provides, and which includes that output image resolution is corresponding Sequence.The resolution acquisition module 200, being additionally operable to obtain in advance camera module 400, to export various image in different resolution corresponding Sequence is set, and is stored in sequence memory module 600.
Further, the resolution acquisition module 200, is additionally operable to obtain set corresponding with the output image resolution Put sequence.The sequence setup module 500 is additionally operable to from sequence memory module 600 call 400 supplier of camera module advance The setting sequence corresponding with resolution for providing, is write the setting sequence in camera module 400 by digital communication interface, The resolution for making 400 output image of camera module is the output image resolution, even if the output of camera module 400 and the resolution The corresponding view data of rate size.
Specifically, as shown in Fig. 2 the mobile terminal also includes view data receiver module 700, connect the photograph mould Block 400, for receiving 400 output resolution ratio of camera module and the output image resolution identical image, and is applied In respective rear ends function.View data receiver module 700 receives the output image data for obtaining, and is used directly for rear end its His function, the view data without resolution required for corresponding rear end is converted to by image processing algorithm, effectively Improve the speed of mobile terminal calculation process, it is to avoid miscellaneous computing.
In sum, the present invention provides a kind of control method and mobile terminal of camera module output image resolution, according to Need according to user operation, the resolution of control break camera module output image by way of writing and sequence is set, so as to have Effect improves mobile terminal output image processing speed, it is to avoid a large amount of invalid datas waste memory headrooms and extend data and pass The defeated time.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention Shield scope.

Claims (7)

1. a kind of control method of camera module output image resolution, it is characterised in that the method comprising the steps of:
A, acquisition user input operation, and it is converted into corresponding output image resolution;
Described in B, comparison, whether the resolution of the output image of output image resolution and camera module current setting is identical;
C, when the output image resolution is different from the resolution of camera module output image, by camera module output image Resolution be set to the output image resolution;
Step C is specifically included:
C1, acquisition setting sequence corresponding with the output image resolution;
C1, by digital communication interface by it is described setting sequence write camera module in, make the resolution of camera module output image Rate is the output image resolution.
2. the control method of camera module output image resolution according to claim 1, it is characterised in that in step A Before, described method also includes:
A0, in advance acquisition camera module export the corresponding setting sequence of various image in different resolution.
3. the control method of camera module output image resolution according to claim 1, it is characterised in that the setting In sequence, each sequence is correspondingly arranged a kind of image resolution ratio.
4. the control method of camera module output image resolution according to claim 1, it is characterised in that in the step After rapid C, also include:
D, reception camera module output resolution ratio and the output image resolution identical image.
5. it is a kind of control camera module output image resolution mobile terminal, it is characterised in that the mobile terminal includes:
Input module, for obtaining user operation;
Resolution acquisition module, for the user operation of acquisition is changed into corresponding output image resolution, is additionally operable to obtain Setting sequence corresponding with the output image resolution;
Resolution comparison module, for comparing dividing for the output image of the output image resolution and camera module current setting Resolution;
Sequence setup module, when the output image resolution is different from the resolution of camera module output image, will photograph The resolution of module output image is set to the output image resolution;For the resolution is searched in sequence memory module The setting sequence is write by the corresponding setting sequence of output image resolution that rate acquisition module is obtained by digital communication interface Enter in camera module, the resolution for making camera module output image is the output image resolution.
6. it is according to claim 5 control camera module output image resolution mobile terminal, it is characterised in that institute Resolution acquisition module is stated, is additionally operable to obtain the corresponding setting sequence of the various image in different resolution of camera module output in advance, and is deposited Storage is in sequence memory module;
The mobile terminal also includes:Sequence memory module, is exported with camera module for storing various output image resolution The corresponding setting sequence of image.
7. it is according to claim 5 control camera module output image resolution mobile terminal, it is characterised in that institute Stating mobile terminal also includes:View data receiver module, for receiving camera module output resolution ratio with the output image point Resolution identical image.
CN201410416636.4A 2014-08-22 2014-08-22 The control method and mobile terminal of camera module output image resolution Active CN104184895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410416636.4A CN104184895B (en) 2014-08-22 2014-08-22 The control method and mobile terminal of camera module output image resolution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410416636.4A CN104184895B (en) 2014-08-22 2014-08-22 The control method and mobile terminal of camera module output image resolution

Publications (2)

Publication Number Publication Date
CN104184895A CN104184895A (en) 2014-12-03
CN104184895B true CN104184895B (en) 2017-03-29

Family

ID=51965614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410416636.4A Active CN104184895B (en) 2014-08-22 2014-08-22 The control method and mobile terminal of camera module output image resolution

Country Status (1)

Country Link
CN (1) CN104184895B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911887A (en) * 2015-12-28 2017-06-30 小米科技有限责任公司 Image capturing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217643A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 A method and corresponding device for dynamic capture and collection, display of images with different sizes and resolution
CN101902659A (en) * 2009-05-26 2010-12-01 鸿富锦精密工业(深圳)有限公司 Automatic test method of shooting function of electronic product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882929B2 (en) * 2004-03-29 2007-02-21 セイコーエプソン株式会社 Image processing system, projector, and image processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217643A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 A method and corresponding device for dynamic capture and collection, display of images with different sizes and resolution
CN101902659A (en) * 2009-05-26 2010-12-01 鸿富锦精密工业(深圳)有限公司 Automatic test method of shooting function of electronic product

Also Published As

Publication number Publication date
CN104184895A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
JP6134281B2 (en) Electronic device for processing an image and method of operating the same
WO2022012657A1 (en) Image editing method and apparatus, and electronic device
CN103347152A (en) Method, device and terminal for picture processing
CN104050651A (en) Scene image processing method and device
CN110505411A (en) Image capturing method, device, storage medium and electronic equipment
CN103139478A (en) Photographing method with real-time rendering of main image and secondary image
CN106155692A (en) A kind of terminal brightness control method and terminal
CN108737739A (en) A kind of preview screen acquisition method, preview screen harvester and electronic equipment
EP4200742A1 (en) Image processing based on object categorization
CN106791468A (en) A kind of mobile terminal and its shooting light compensation method
TW201923703A (en) Image hardware encoding processing method and device
KR20140125984A (en) Image Processing Method, Electronic Device and System
WO2019237982A1 (en) Sticker setting method and apparatus
TW201351983A (en) Storyboards for capturing images
US20220329729A1 (en) Photographing method, storage medium and electronic device
TW201937449A (en) Application processor
WO2019179242A1 (en) Image processing method and electronic device
CN112637515A (en) Shooting method and device and electronic equipment
CN104184895B (en) The control method and mobile terminal of camera module output image resolution
CN105530425A (en) Automatic continuous shooting system
CN104394320A (en) Image processing method, device and electronic equipment
CN111885298A (en) Image processing method and device
CN105893578A (en) Method and device for selecting photos
CN105827936A (en) Image processing method and mobile terminal
CN112446848B (en) Image processing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant