CN103019537B - A kind of image preview method and device - Google Patents

A kind of image preview method and device Download PDF

Info

Publication number
CN103019537B
CN103019537B CN201210468076.8A CN201210468076A CN103019537B CN 103019537 B CN103019537 B CN 103019537B CN 201210468076 A CN201210468076 A CN 201210468076A CN 103019537 B CN103019537 B CN 103019537B
Authority
CN
China
Prior art keywords
image
region
default display
display box
details area
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
CN201210468076.8A
Other languages
Chinese (zh)
Other versions
CN103019537A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201210468076.8A priority Critical patent/CN103019537B/en
Publication of CN103019537A publication Critical patent/CN103019537A/en
Application granted granted Critical
Publication of CN103019537B publication Critical patent/CN103019537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)

Abstract

The present invention is applicable to technical field of mobile terminals, provides a kind of image preview method and device, comprising: comprising: obtain the details area selected in image preview; In the original image of described image preview, extract the image-region with described details area same position, described same position refers to that the position of described details area in described image preview is identical with the position of described image-region in original image; Described image-region is generated in default display box on screen.In embodiments of the present invention, by the screen of the mobile terminal, amplification display is directly carried out to details area, to make user without the need to carrying out the manual adjustments zoom operation of repetition to mobile terminal camera, thus improves user operation efficiency.

Description

A kind of image preview method and device
Technical field
The invention belongs to technical field of mobile terminals, particularly relate to a kind of image preview method and device.
Background technology
Along with popularizing of mobile terminal camera function, increasing user takes image by mobile terminal, at the moment of different places shooting excellence or the scenery of grace, keeps fine moment so that slowly aftertaste here.Usual user, when taking image, first carries out image preview by the screen of mobile terminal, then presses shutter key and complete the shooting of finding a view.
But, if user need in image preview to details area carry out amplification check time, then need the zoom of manual adjustments mobile terminal camera, when there is different details area, then inevitably manual adjustments zoom repeatedly, the preview effect in full details region can be checked, to take group picture, need manual adjustments zoom, amplify the preview effect of certain member in collective, thus ensure the quality of group picture, if user also needs the preview shooting effect seeing another one member, then need manual adjustments zoom again, complex operation, reduce the operating efficiency of user.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of image preview method, is intended to solve existing user in image preview to details area inspection method complex operation, causes the inefficient problem of user operation.
The embodiment of the present invention is achieved in that a kind of image preview method, comprising:
Obtain the details area selected in image preview;
In the original image of described image preview, extract the image-region with described details area same position, described same position refers to that the position of described details area in described image preview is identical with the position of described image-region in original image;
Described image-region is generated in default display box on screen.
Another object of the embodiment of the present invention is to provide a kind of image preview device, comprising:
Acquiring unit, for obtaining the details area selected in image preview;
Extraction unit, for extracting the image-region with described details area same position in the original image of described image preview, described same position refers to that the position of described details area in described image preview is identical with the position of described image-region in original image;
Generation unit, generates described image-region in the default display box on screen.
In embodiments of the present invention, by the screen of the mobile terminal, amplification display is directly carried out to details area, to make user without the need to carrying out the manual adjustments zoom operation of repetition to mobile terminal camera, thus improves user operation efficiency.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the image preview method that the embodiment of the present invention provides;
Fig. 2 is the structured flowchart of the image preview device that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, by the screen of the mobile terminal, amplification display is directly carried out to details area, to make user without the need to carrying out the manual adjustments zoom operation of repetition to mobile terminal camera, thus improves user operation efficiency.
Fig. 1 shows the realization flow of a kind of image preview method that the embodiment of the present invention provides, and details are as follows:
In step S101, obtain the details area selected in image preview.
In the present embodiment, camera lens catches image by fixing frame rate, the data of the pixel of original image is preserved in the buffer, and therefrom extraction data carry out image preview on screen.User can select the details area needing to check in image preview, the mode of selection, includes but not limited to that touch-control is selected, button is selected.The figure choosing the display mode of details area to comprise according to presetting shows, and the figure preset includes but not limited to the geometric figure such as star, pentagon, rectangle, square, trapezoidal, parallelogram, circle, trapezoidal, fan-shaped, pentagram.The frame line of figure, includes but not limited to dotted line, solid line.
In addition, obtain details area, Intelligent Recognition can also be carried out in conjunction with recognition of face, using including the region of face as details area, choose, screen demonstrates all details area.
In step s 102, in the original image of image preview, extract the image-region with this details area same position, same position refers to that the position of this details area in this image preview is identical with the position of this image-region in original image.
Due to the resolution of original image and the inconsistent of screen resolution, need matching resampling to realize, the resolution of original image is original resolution, such as, original resolution is the image of 600*600, if when the resolution of screen is 500*500, then need to carry out compression display, namely the neighbor pixel merging viewfinder image meets the resolution requirement of screen, and the image display resolution therefore after compression, compared with the image display resolution of original resolution, exists decline to a certain degree.
As the preferred embodiments of the present invention, in the original image of image preview, extract the image-region with details area same position, comprising:
Obtain the scaling of this image preview, and the scope of this details area and the center at this image preview, this scaling refers to the ratio of the resolution of this image preview and the resolution of original image;
According to scaling, and scope and center, in the original image of this image preview, determine the image-region with this details area same position;
In the present embodiment, in the parameter of picture, obtain scaling, in the screen assembly of system, obtain the scope of the details area that user selects, go out center according to the range computation that user chooses, and obtain the screen coordinate of center.
Screen coordinate is converted to pixel coordinate, the distance at details area edge and image preview edge is generated according to pixel coordinate, the scope of this distance and details area is multiplied by scaling respectively, can determine the center of image-region and the size of image-region in original image respectively.
As an alternative embodiment of the invention, the image-region with details area same position is extracted in the original image of image preview, can when details area be selected, the edge of details area is recorded on backstage, set up a painting canvas simultaneously, point centered by the center of the image preview of screen, image preview carries out amplifying until identical with original image size, obtain the pixel coordinate at details area edge, this pixel coordinate and the image-region pixel coordinate in original image is identical, thus determines the position of image-region in original image.
As an alternative embodiment of the invention, the image-region with details area same position is extracted in the original image of image preview, encode by storing array to the pixel of original image, each pixel storage array distributes a unique mark, this mark and pixel store array one_to_one corresponding, be convenient to size and the position of determining image-region subsequently through the mark in details area, extract the image-region with details area same position.
By above-mentioned steps, extract and the image-region of details area same position in original image, be convenient to follow-uply in default display box, call display, and ensure that the sharpness that image shows.
In step s 103, synthetic image region in the default display box on screen.
In the present embodiment, obtain the resolution of image-region resolution and default display box, according to both resolution determination zoom factors, by zooming in or out algorithm, process the pixel value of original image, the image-region read in this original image stores array, calls storage array, decoding process is carried out to original pixel value, shows in default display box.
As the preferred embodiments of the present invention, obtain and preset the default display position of display box and the predeterminable range of this default display box and details area, according to this default display position and this predeterminable range, synthetic image region in the default display box on screen.Display position includes but not limited to top, below, right, left, and the unit of distance includes but not limited to centimetre.
As the preferred embodiments of the present invention, obtain the real-time resolution presetting display box, according to this real-time resolution, synthetic image region in the default display box on screen.By a control, setup times parameter, recording user operation time, when user to establish in advance show frame carry out zoom operations time, the real-time resolution of this default display box also correspondingly changes, thus carries out different displays to image-region, meets user's checking details area further.
As the preferred embodiments of the present invention, the corresponding default display box of each details area, obtain default the default of display box to put in order, according to this preset put in order, synthetic image region in default display box on screen, presetting puts in order includes but not limited to from top to bottom, from left to right.By being arranged by presetting to put in order by default display box, effectively show details area at screen.Be convenient to user and once check multiple details area.
Fig. 2 shows the structured flowchart of a kind of image preview device that the embodiment of the present invention provides, this device can run on the various terminals possessing camera, include but not limited to mobile phone, pocket computer (PocketPersonalComputer, PPC), palm PC, computing machine, notebook computer, personal digital assistant (PersonalDigitalAssistant, PDA), MP4, MP3 etc.For convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 2, this image preview device comprises:
Acquiring unit 21, obtains the details area selected in image preview.
Extraction unit 22, in the original image of this image preview, extract the image-region with this details area same position, same position refers to that the position of this details area in this image preview is identical with the position of this image-region in original image.
Generation unit 23, synthetic image region in the default display box on screen.
Particularly, described extraction unit 22, comprising:
Obtain subelement 221, obtain the scaling of image preview, and the scope of details area and the center at this image preview, this scaling refers to the ratio of the resolution of this image preview and the resolution of original image.
Determine subelement 222, according to scaling, and scope and this center, in the original image of this image preview, determine the image-region with this details area same position.
Extract subelement 223, in original image, this image-region determined is extracted.
Alternatively, generation unit 22, also for the predeterminable range of the default display position and this default display position and details area that obtain described default display box, according to this default display position and this predeterminable range, synthetic image region in this default display box on screen.
Alternatively, generation unit 22, also puts in order for obtaining the default of default display box, according to this preset put in order, synthetic image region in the default display box on screen.
Alternatively, generation unit 22, also for obtaining the real-time resolution of default display box, according to this real-time resolution, synthetic image region in this default display box on screen.
In embodiments of the present invention, by the screen of the mobile terminal, amplification display is directly carried out to details area, to make user without the need to carrying out the manual adjustments zoom operation of repetition to mobile terminal camera, thus improves user operation efficiency.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection size of the present invention.

Claims (10)

1. an image preview method, is characterized in that, comprising:
Obtain the details area selected in image preview;
In the original image of described image preview, extract the image-region with described details area same position, described same position refers to that the position of described details area in described image preview is identical with the position of described image-region in original image;
Described image-region is generated in default display box on screen;
Wherein, generate described image-region in described default display box on screen, be specially:
Obtain the resolution of image-region resolution and default display box, according to both resolution determination zoom factors, by zooming in or out algorithm, the pixel value of original image is processed, the image-region read in this original image stores array, call storage array, decoding process is carried out to original pixel value.
2. method as claimed in claim 1, is characterized in that, describedly in the original image of described image preview, extracts the step with the image-region of described details area same position, is specially:
Obtain the scaling of described image preview, and the scope of described details area and center, described scaling refers to the ratio of the resolution of described image preview and the resolution of original image;
According to described scaling, and the scope of described details area and described center, in the original image of described image preview, determine the image-region with described details area same position;
In described original image, the described image-region determined is extracted.
3. method as claimed in claim 1, is characterized in that, generate described image-region, comprising in described default display box on screen:
Obtain the default display position of described default display box and the predeterminable range of described default display position and details area, according to described default display position and described predeterminable range, in described default display box on the screen, generate described image-region.
4. method as claimed in claim 1, is characterized in that, generate described image-region, also comprise in described default display box on screen:
Obtain the real-time resolution of described default display box, according to described real-time resolution, in described default display box on the screen, generate described image-region.
5. method as claimed in claim 1, is characterized in that, generate described image-region, also comprise in described default display box on screen:
Obtain described the default of default display box to put in order, put in order according to described presetting, in described default display box on the screen, generate described image-region.
6. an image preview device, is characterized in that, comprising:
Acquiring unit, for obtaining the details area selected in image preview;
Extraction unit, for extracting the image-region with described details area same position in the original image of described image preview, described same position refers to that the position of described details area in described image preview is identical with the position of described image-region in original image;
Generation unit, generates described image-region in the default display box on screen;
Wherein, generate described image-region in described default display box on screen, be specially:
Obtain the resolution of image-region resolution and default display box, according to both resolution determination zoom factors, by zooming in or out algorithm, the pixel value of original image is processed, the image-region read in this original image stores array, call storage array, decoding process is carried out to original pixel value.
7. device as claimed in claim 6, it is characterized in that, described extraction unit, comprising:
Obtain subelement, for obtaining the scaling of described image preview, and the scope of described details area and center, described scaling refers to the ratio of the resolution of described image preview and the resolution of original image;
Determine subelement, for according to described scaling, and the scope of described details area and described center, in the original image of described image preview, determine the image-region with described details area same position;
Extract subelement, for extracting the described image-region determined in described original image.
8. device as claimed in claim 6, it is characterized in that, described generation unit, also for the predeterminable range of the default display position and described default display position and details area that obtain described default display box, according to described default display position and described predeterminable range, in described default display box on the screen, generate described image-region.
9. device as claimed in claim 6, is characterized in that, described generation unit, also for obtaining the real-time resolution of described default display box, according to described real-time resolution, generating described image-region in described default display box on the screen.
10. device as claimed in claim 6, is characterized in that, described generation unit, also putting in order for obtaining described the default of default display box, puts in order, generate described image-region in described default display box on the screen according to described presetting.
CN201210468076.8A 2012-11-19 2012-11-19 A kind of image preview method and device Active CN103019537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210468076.8A CN103019537B (en) 2012-11-19 2012-11-19 A kind of image preview method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210468076.8A CN103019537B (en) 2012-11-19 2012-11-19 A kind of image preview method and device

Publications (2)

Publication Number Publication Date
CN103019537A CN103019537A (en) 2013-04-03
CN103019537B true CN103019537B (en) 2016-04-13

Family

ID=47968195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210468076.8A Active CN103019537B (en) 2012-11-19 2012-11-19 A kind of image preview method and device

Country Status (1)

Country Link
CN (1) CN103019537B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513879B (en) * 2013-04-26 2017-10-24 展讯通信(上海)有限公司 Touch control device and its display control method and device
JP6659090B2 (en) * 2014-08-11 2020-03-04 キヤノン株式会社 Information processing apparatus, control method for information processing apparatus, and computer program
US10175264B2 (en) * 2014-11-21 2019-01-08 Shimadzu Corporation Data display processing device, data display processing method and control program for scanning probe microscope
CN106464799A (en) * 2015-03-27 2017-02-22 华为技术有限公司 Automatic zooming method and device
CN107547727B (en) * 2016-06-24 2020-12-29 中兴通讯股份有限公司 Image preview method and device
CN107645628B (en) * 2016-07-21 2021-08-06 中兴通讯股份有限公司 Information processing method and device
CN106161945A (en) * 2016-08-01 2016-11-23 乐视控股(北京)有限公司 Take pictures treating method and apparatus
CN106293589B (en) * 2016-08-31 2019-04-12 宇龙计算机通信科技(深圳)有限公司 A kind of method, apparatus and terminal that preview resolution is set
CN106612396B (en) * 2016-11-15 2020-06-16 努比亚技术有限公司 Photographing device, terminal and method
CN110896451B (en) * 2019-11-20 2022-01-28 维沃移动通信有限公司 Preview picture display method, electronic device and computer readable storage medium
CN110941375B (en) * 2019-11-26 2023-09-05 腾讯科技(深圳)有限公司 Method, device and storage medium for locally amplifying image
CN112764650B (en) * 2021-01-29 2022-08-23 久瓴(江苏)数字智能科技有限公司 Graph scaling method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150645A (en) * 2007-10-31 2008-03-26 广东威创日新电子有限公司 An image processing method and image processing device
CN101385045A (en) * 2006-02-17 2009-03-11 微软公司 Perceptual image preview
CN101645998A (en) * 2008-08-08 2010-02-10 佳能株式会社 Image reading apparatus, method for same, image reading system, and method of controlling image reading system
WO2012002742A2 (en) * 2010-06-30 2012-01-05 Lg Innotek Co., Ltd. Camera module and method for driving the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3894150B2 (en) * 2002-04-17 2007-03-14 セイコーエプソン株式会社 Display control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101385045A (en) * 2006-02-17 2009-03-11 微软公司 Perceptual image preview
CN101150645A (en) * 2007-10-31 2008-03-26 广东威创日新电子有限公司 An image processing method and image processing device
CN101645998A (en) * 2008-08-08 2010-02-10 佳能株式会社 Image reading apparatus, method for same, image reading system, and method of controlling image reading system
WO2012002742A2 (en) * 2010-06-30 2012-01-05 Lg Innotek Co., Ltd. Camera module and method for driving the same

Also Published As

Publication number Publication date
CN103019537A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103019537B (en) A kind of image preview method and device
US11017158B2 (en) Live document detection in a captured video stream
US11704771B2 (en) Training super-resolution convolutional neural network model using a high-definition training image, a low-definition training image, and a mask image
EP3547218B1 (en) File processing device and method, and graphical user interface
US10134165B2 (en) Image distractor detection and processing
CN109671106B (en) Image processing method, device and equipment
US10915998B2 (en) Image processing method and device
KR101821750B1 (en) Picture processing method and device
US9479693B2 (en) Method and mobile terminal apparatus for displaying specialized visual guides for photography
US10847073B2 (en) Image display optimization method and apparatus
US9373187B2 (en) Method and apparatus for producing a cinemagraph
KR101727169B1 (en) Method and apparatus for generating image filter
WO2021244455A1 (en) Image content removal method and related apparatus
KR20140104806A (en) Method for synthesizing valid images in mobile terminal having multi camera and the mobile terminal therefor
CN104410785A (en) An information processing method and electronic device
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN103034042A (en) Panoramic shooting method and device
US20140354784A1 (en) Shooting method for three dimensional modeling and electronic device supporting the same
CN106713739B (en) A kind of recognition methods of the two dimensional code shown based on electronic curtain
WO2015196681A1 (en) Picture processing method and electronic device
JP6739937B2 (en) Information processing apparatus, control method of information processing apparatus, and program
US9900516B2 (en) Method and electronic device for generating thumbnail image
CN103347151B (en) A kind of image processing method, device and terminal
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN104954688A (en) Image processing method and image processing 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
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP03 Change of name, title or address