WO2016145831A1 - Image acquisition method and device - Google Patents

Image acquisition method and device Download PDF

Info

Publication number
WO2016145831A1
WO2016145831A1 PCT/CN2015/091780 CN2015091780W WO2016145831A1 WO 2016145831 A1 WO2016145831 A1 WO 2016145831A1 CN 2015091780 W CN2015091780 W CN 2015091780W WO 2016145831 A1 WO2016145831 A1 WO 2016145831A1
Authority
WO
WIPO (PCT)
Prior art keywords
resolution
image
terminal
consistent
camera
Prior art date
Application number
PCT/CN2015/091780
Other languages
French (fr)
Chinese (zh)
Inventor
潘春岭
汪文领
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016145831A1 publication Critical patent/WO2016145831A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Definitions

  • the present invention relates to the field of image capture, and in particular to an image acquisition method and apparatus.
  • the objective resolution of the test camera needs to be tested, and the ISO resolution Chart for Electronics Still Cameras needs to be adjusted when the test sample is turned on and the camera is set to the maximum resolution.
  • the distance between the images makes the image of the card clear, and the horizontal frame is parallel to the horizontal frame of the picture.
  • the shooting is to make the effective height of the card (the height inside the thick frame) just fill the picture.
  • the ratio of horizontal pixels to vertical pixels is 4:3, so that the captured image is within the black line.
  • the size of the picture (pixel) stored by the camera is generally two, 4:3 resolution or 16:9 resolution, and the highest pixel aspect ratio of the mobile phone is also taken in two resolutions.
  • the size of the mobile phone screen is VGA, QVGA, WVGA, etc., the aspect ratio is usually 4:3, 3:2, 16:10, 15:9, 16:9, etc.; when the mobile phone enters the full-screen photo, when When the size ratio of the mobile phone screen is 4:3 or 16:9, the photo taken is also a resolution picture of 4:3 or 16:9, then the captured image can be achieved and the horizontal direction is achieved.
  • the thick frame is parallel to the horizontal frame of the picture.
  • the shooting is to make the effective height of the card (the height inside the thick frame) just fill the picture to ensure the correctness of the resolution test.
  • the screen size ratio of the mobile phone does not meet 4:3 or In the case of 16:9, there is a difference between the full-screen mode and the captured photo, which causes the test resolution to fail and cannot be detected.
  • the embodiment of the invention provides a method and a device for acquiring an image, so as to solve at least the problem that the upper and lower sides of the mobile phone preview interface do not display an image when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera in the related art. .
  • a method for acquiring an image including: acquiring a first resolution of the display screen of the terminal and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen And comparing the first resolution and the second resolution; acquiring an image that is consistent with the second resolution when the first resolution and the second resolution are inconsistent.
  • the acquiring an image that is consistent with the second resolution includes: generating a finder frame that is consistent with the second resolution; and acquiring an image that is framing according to the framing frame.
  • the method further includes: saving an image that is framing according to the framing frame, and displaying an image that is framing through the finder frame.
  • acquiring the first resolution of the terminal display screen and the second resolution of the terminal camera include: reading the first resolution of the display screen from a hardware configuration information table of the terminal Reading the resolution of the last set image from the terminal to obtain the second resolution.
  • the first resolution and the second resolution respectively comprise a plurality of resolutions.
  • an image obtaining apparatus including: a first acquiring module, configured to acquire a first resolution of the terminal display screen and before previewing an image acquired by the terminal camera in full screen a second resolution of the terminal camera; a comparison module configured to compare the first resolution and the second resolution; and a second acquisition module configured to be at the first resolution and the second resolution When the rates are inconsistent, an image that is consistent with the second resolution is acquired.
  • the second obtaining module includes: a generating unit configured to generate a finder frame that is consistent with the second resolution; and a first acquiring unit configured to acquire an image that is framing according to the framing frame.
  • the device further includes: a processing module, configured to save an image that is framing according to the finder frame, and display the framing through the finder frame image.
  • a processing module configured to save an image that is framing according to the finder frame, and display the framing through the finder frame image.
  • the first obtaining module includes: a second acquiring unit, configured to read the first resolution of the display screen from a hardware configuration information table of the terminal; and a third acquiring unit, configured to The resolution of the last set image is read from the terminal to obtain the second resolution.
  • the first resolution and the second resolution respectively comprise a plurality of resolutions.
  • the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are compared.
  • the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is obtained, that is, when the resolution of the terminal camera and the display screen are inconsistent, the corresponding image is obtained based on the resolution of the camera. Therefore, in the related art, when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface do not display an image, thereby improving the user experience.
  • FIG. 1 is a flowchart of a method of acquiring an image according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the structure of an image acquiring apparatus according to an alternative embodiment of the present invention.
  • FIG. 3 is a block diagram 1 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention.
  • FIG. 4 is a block diagram 2 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention.
  • FIG. 5 is a block diagram 3 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a relationship between a full-screen preview photographing result and an actual preview interface according to an alternative embodiment of the present invention
  • FIG. 7 is a flow chart of a method for photographing a specific scale view according to an alternative embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a preview prompt box effect according to an alternative embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for acquiring an image according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 acquiring a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
  • Step S104 comparing the first resolution and the second resolution
  • Step S106 Acquire an image that is consistent with the second resolution when the first resolution and the second resolution are inconsistent.
  • the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are acquired.
  • the ratio is compared, when the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is acquired, that is, in the embodiment, when the resolution of the terminal camera and the display screen are inconsistent, the camera is used.
  • the resolution is accurate to obtain the corresponding image, thereby solving the problem in the related art that when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface will not display the image, and the user is improved. Experience the effect.
  • Step S11 generating a finder frame that is consistent with the second resolution
  • Step S12 Acquire an image for framing according to the framing frame.
  • the first resolution may be 15:9, two The second resolution is 4:3. At this time, the first resolution and the second resolution are inconsistent. Therefore, a 4:3 framing frame is generated on the terminal display screen, and the framing of the image is performed through the finder frame.
  • the method of the embodiment further includes: saving an image according to the framing frame, and displaying the image framing through the finder frame; that is, saving in the embodiment.
  • the image is an image that matches the resolution of the camera.
  • the optional implementation manner of this embodiment may be implemented as follows:
  • Step S21 reading the first resolution of the display screen from the hardware configuration information table of the terminal;
  • Step S22 Read the resolution of the last set image from the terminal to obtain the second resolution.
  • the first resolution and the second resolution in this embodiment respectively include multiple resolutions, for example, the first resolution may be 4:3, 3:2, 16:10, 15:9, and 16:9. One, and the second resolution can be one of 4:3, 16:9.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • module may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a first acquiring module 22 configured to acquire a terminal display before previewing an image acquired by a terminal camera in a full screen. a first resolution of the screen and a second resolution of the terminal camera; the comparison module 24 is coupled to the first acquisition module 22 and configured to compare the first resolution and the second resolution; the second acquisition module 26, and the comparison module 24 coupling connection, configured to acquire an image consistent with the second resolution when the first resolution and the second resolution are inconsistent.
  • the second obtaining module 26 includes: a generating unit 32 configured to generate a framing consistent with the second resolution.
  • the first acquisition unit 34 is coupled to the generating unit 32 and configured to acquire an image that is framing according to the finder frame.
  • FIG. 4 is a block diagram 2 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention. As shown in FIG. 4, after acquiring an image consistent with a second resolution, the apparatus further includes: a processing module 42, and The two obtaining modules 26 are coupled and configured to save an image framing according to the framing frame and display an image framing through the framing frame.
  • FIG. 5 is a block diagram 3 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention, as shown in FIG. 5,
  • the obtaining module 22 includes: a second obtaining unit 52 configured to read the first resolution of the display screen from the hardware configuration information table of the terminal; the third obtaining unit 54 is coupled to the second obtaining unit 52 and configured as a slave terminal. The resolution of the last set image is read to obtain the second resolution.
  • the first resolution and the second resolution respectively comprise a plurality of resolutions.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • an imaging preview frame prompt is generated according to the set shooting image size ratio, and the image in the preview frame is the image range of the actual generated photo.
  • FIG. 6 is a schematic diagram showing the relationship between a full-screen preview photographing result and an actual preview interface according to an alternative embodiment of the present invention.
  • the ratio of digital photos is now 4:3 and 16:9, while the screen size ratio of mobile phones is 4:3, 3:2, 16:10, 15:9 and 16:9, any two Combination, in the case of full-screen mode preview, there will be a non-obtained situation.
  • FIG. 7 is a flow chart of a method for photographing a specific scale view according to an alternative embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
  • Step S701 Collect hardware information of the mobile phone, where the hardware information includes: a mobile phone LCD hardware resolution and an LCD hardware size information;
  • Step S702 Acquire a pixel ratio of the LCD
  • Step S703 setting a camera resolution
  • Step S704 collecting the resolution set by the mobile phone camera, wherein the resolution of the camera may be 4:3 or 16:9;
  • Step S705 it is determined whether the LCD resolution and the resolution of the camera are consistent; when the determination result is no, step S706 is performed;
  • Step S706 full screen preview
  • Step S707 Generate a preview frame prompt to take a photo.
  • the resolution and size information of the LCD screen in the mobile phone needs to be read from the mobile phone hardware configuration information table, and it is determined whether the screen has the characteristics of 4:3 or 16:9, and the mobile phone is recorded. Proportional characteristics. Further, the camera setting module of the mobile phone reads the last set photo resolution information and preview status information, and mainly determines whether it is a full screen preview or a non-full screen preview, and calculates a ratio relationship of the resolution of the photo set by the mobile phone camera, and the judgment is 4 :3 is still a 16:9 relationship and saved.
  • FIG. 8 is a schematic diagram of a preview prompt box effect according to an alternative embodiment of the present invention.
  • the dotted line box shown in Figure 8 indicates that the photo can be left on the photo. Outside the dotted frame, although the preview interface can be seen, the captured photo cannot be saved on the photo.
  • the actual framing range data needs to be transferred to the entry function of the image storage operation to ensure the range of the prompt box in the user preview interface and the actually saved photo range.
  • the data is consistent.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S1 obtaining a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
  • S3 Acquire an image consistent with the second resolution when the first resolution and the second resolution are inconsistent.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are compared.
  • the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is obtained, that is, when the resolution of the terminal camera and the display screen are inconsistent, the corresponding image is obtained based on the resolution of the camera. Therefore, in the related art, when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface do not display an image, thereby improving the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

Provided are an image acquisition method and device, the method comprising: before previewing, on a full screen, an image acquired by a camera of a terminal, acquiring a first resolution ratio of a display screen of the terminal and a second resolution ratio of the camera of the terminal; comparing the first resolution ratio and the second resolution ratio; and if the first resolution ratio is not consistent with the second resolution ratio, then acquiring an image having a resolution ratio consistent with the second resolution ratio. The present invention addresses the problem in the related art in which an image cannot be displayed at an upper edge and a lower edge of a preview interface of a mobile phone when a dimensional proportion of a mobile phone screen is not consistent with the resolution ratio of a mobile phone camera, and improves user experience.

Description

图像的获取方法及装置Image acquisition method and device 技术领域Technical field
本发明涉及图像拍摄领域,具体而言,涉及一种图像的获取方法及装置。The present invention relates to the field of image capture, and in particular to an image acquisition method and apparatus.
背景技术Background technique
相关技术中,对于摄像头客观测试需要测试摄像头的客观分辨率,需要在测试样品处于开机状态,摄像头设置为最大分辨率条件下,通过调节终端镜头与测试图卡(ISO resolution Chart for Electronics Still Cameras)之间的距离,使图卡成像清晰,并使水平方向的粗框与画面水平框平行,拍摄是让图卡的有效高度(粗框内侧的高度)正好沾满画面。一般图像格式水平像素与垂直像素比例为4:3,使所拍摄画面为黑线内区域即可。In the related art, for the objective test of the camera, the objective resolution of the test camera needs to be tested, and the ISO resolution Chart for Electronics Still Cameras needs to be adjusted when the test sample is turned on and the camera is set to the maximum resolution. The distance between the images makes the image of the card clear, and the horizontal frame is parallel to the horizontal frame of the picture. The shooting is to make the effective height of the card (the height inside the thick frame) just fill the picture. In general image format, the ratio of horizontal pixels to vertical pixels is 4:3, so that the captured image is within the black line.
相关技术中,照相机拍摄出来存储的图片尺寸(像素)比例一般两种,4:3分辨率或是16:9分辨率,手机的最高像素长宽比例也是按两种分辨率取其一。而手机屏幕的尺寸有VGA、QVGA、WVGA等等,长宽比通常有4:3、3:2、16:10、15:9、16:9等;当手机进入全屏拍照的情况下,当手机屏幕的尺寸比例符合4:3或是16:9的情况下,拍出的照片对应也是4:3或是16:9的分辨率图片,那么,就可以实现所拍及所得,使得水平方向的粗框与画面水平框平行,拍摄是让图卡的有效高度(粗框内侧的高度)正好沾满画面,才能保证分辨率测试的正确性,当手机屏幕尺寸比率不满足4:3或是16:9要求的情况下,全屏模式拍照在预览时和拍出的照片之间就有差别,导致测试分辨率取景失败,无法检测。In the related art, the size of the picture (pixel) stored by the camera is generally two, 4:3 resolution or 16:9 resolution, and the highest pixel aspect ratio of the mobile phone is also taken in two resolutions. The size of the mobile phone screen is VGA, QVGA, WVGA, etc., the aspect ratio is usually 4:3, 3:2, 16:10, 15:9, 16:9, etc.; when the mobile phone enters the full-screen photo, when When the size ratio of the mobile phone screen is 4:3 or 16:9, the photo taken is also a resolution picture of 4:3 or 16:9, then the captured image can be achieved and the horizontal direction is achieved. The thick frame is parallel to the horizontal frame of the picture. The shooting is to make the effective height of the card (the height inside the thick frame) just fill the picture to ensure the correctness of the resolution test. When the screen size ratio of the mobile phone does not meet 4:3 or In the case of 16:9, there is a difference between the full-screen mode and the captured photo, which causes the test resolution to fail and cannot be detected.
进而在相关技术中的照相机拍照时,为了表现出所拍及所得,在预览界面进行了强制的预览尺寸的转换,4:3像素的照片拍摄,预览图片就是4:3的,16:9像素的照片拍摄,预览图片就是16:9的。当手机屏幕不是这两个比例时,手机预览界面的上边和下边就会不显示图像,呈现给用户的就是黑边。Further, in the related art camera photographing, in order to express the photographed and obtained, a forced preview size conversion is performed on the preview interface, and a 4:3 pixel photograph is taken, and the preview image is 4:3, 16:9 pixels. Photo shoot, preview image is 16:9. When the screen of the mobile phone is not the two ratios, the upper and lower sides of the mobile preview interface will not display the image, and the black border will be presented to the user.
针对相关技术中在手机屏幕尺寸比率与该手机相机的分辨率不一致时,手机预览界面的上边和下边就会不显示图像的问题,目前尚未存在有效的解决方案。In the related art, when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface do not display an image problem, and there is no effective solution at present.
发明内容Summary of the invention
本发明实施例提供了一种图像的获取方法及装置,以至少解决相关技术中在手机屏幕尺寸比率与该手机相机的分辨率不一致时,手机预览界面的上边和下边就会不显示图像的问题。The embodiment of the invention provides a method and a device for acquiring an image, so as to solve at least the problem that the upper and lower sides of the mobile phone preview interface do not display an image when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera in the related art. .
根据本发明实施例的一个方面,提供了一种图像的获取方法,包括:在全屏预览终端摄像头获取的图像之前,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率;比较所述第一分辨率和所述第二分辨率;在所述第一分辨率和所述第二分辨率不一致时,获取与所述第二分辨率一致的图像。 According to an aspect of an embodiment of the present invention, a method for acquiring an image is provided, including: acquiring a first resolution of the display screen of the terminal and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen And comparing the first resolution and the second resolution; acquiring an image that is consistent with the second resolution when the first resolution and the second resolution are inconsistent.
可选地,所述获取与所述第二分辨率一致的图像包括:生成与所述第二分辨率一致的取景框;获取依据所述取景框进行取景的图像。Optionally, the acquiring an image that is consistent with the second resolution includes: generating a finder frame that is consistent with the second resolution; and acquiring an image that is framing according to the framing frame.
可选地,在所述获取与所述第二分辨率一致的图像之后,所述方法还包括:保存依据所述取景框取景的图像,并显示通过所述取景框取景的图像。Optionally, after the acquiring an image that is consistent with the second resolution, the method further includes: saving an image that is framing according to the framing frame, and displaying an image that is framing through the finder frame.
可选地,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率包括:从所述终端的硬件配置信息表中读取所述显示屏的所述第一分辨率;从所述终端中读取最后一次设置的图像的分辨率,得到所述第二分辨率。Optionally, acquiring the first resolution of the terminal display screen and the second resolution of the terminal camera include: reading the first resolution of the display screen from a hardware configuration information table of the terminal Reading the resolution of the last set image from the terminal to obtain the second resolution.
可选地,所述第一分辨率和所述第二分辨率分别包括多种分辨率。Optionally, the first resolution and the second resolution respectively comprise a plurality of resolutions.
根据本发明实施例的另一个方面,提供了一种图像的获取装置,包括:第一获取模块,设置为在全屏预览终端摄像头获取的图像之前,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率;比较模块,设置为比较所述第一分辨率和所述第二分辨率;第二获取模块,设置为在所述第一分辨率和所述第二分辨率不一致时,获取与所述第二分辨率一致的图像。According to another aspect of the present invention, an image obtaining apparatus is provided, including: a first acquiring module, configured to acquire a first resolution of the terminal display screen and before previewing an image acquired by the terminal camera in full screen a second resolution of the terminal camera; a comparison module configured to compare the first resolution and the second resolution; and a second acquisition module configured to be at the first resolution and the second resolution When the rates are inconsistent, an image that is consistent with the second resolution is acquired.
可选地,所述第二获取模块包括:生成单元,设置为生成与所述第二分辨率一致的取景框;第一获取单元,设置为获取依据所述取景框进行取景的图像。Optionally, the second obtaining module includes: a generating unit configured to generate a finder frame that is consistent with the second resolution; and a first acquiring unit configured to acquire an image that is framing according to the framing frame.
可选地,在所述获取与所述第二分辨率一致的图像之后,所述装置还包括:处理模块,设置为保存依据所述取景框取景的图像,并显示通过所述取景框取景的图像。Optionally, after the acquiring the image that is consistent with the second resolution, the device further includes: a processing module, configured to save an image that is framing according to the finder frame, and display the framing through the finder frame image.
可选地,所述第一获取模块包括:第二获取单元,设置为从所述终端的硬件配置信息表中读取所述显示屏的所述第一分辨率;第三获取单元,设置为从所述终端中读取最后一次设置的图像的分辨率,得到所述第二分辨率。Optionally, the first obtaining module includes: a second acquiring unit, configured to read the first resolution of the display screen from a hardware configuration information table of the terminal; and a third acquiring unit, configured to The resolution of the last set image is read from the terminal to obtain the second resolution.
可选地,所述第一分辨率和所述第二分辨率分别包括多种分辨率。Optionally, the first resolution and the second resolution respectively comprise a plurality of resolutions.
通过本发明实施例,采用在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率,进而对第一分辨率和第二分辨率进行比较,在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像,也就是说,在终端摄像头与显示屏的分辨率不一致时,以摄像头的分辨率为准获取相应的图像,从而解决了相关技术中在手机屏幕尺寸比率与该手机相机的分辨率不一致时,手机预览界面的上边和下边就会不显示图像的问题,提高了用户的体验效果。According to the embodiment of the present invention, before the image acquired by the terminal camera is previewed in full screen, the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are compared. When the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is obtained, that is, when the resolution of the terminal camera and the display screen are inconsistent, the corresponding image is obtained based on the resolution of the camera. Therefore, in the related art, when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface do not display an image, thereby improving the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的图像的获取方法的流程图; 1 is a flowchart of a method of acquiring an image according to an embodiment of the present invention;
图2是根据本发明可选实施例的图像的获取装置的结构框图;2 is a block diagram showing the structure of an image acquiring apparatus according to an alternative embodiment of the present invention;
图3是根据本发明可选实施例的图像的获取装置的可选结构框图一;3 is a block diagram 1 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention;
图4是根据本发明可选实施例的图像的获取装置的可选结构框图二;4 is a block diagram 2 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention;
图5是根据本发明可选实施例的图像的获取装置的可选结构框图三;FIG. 5 is a block diagram 3 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention; FIG.
图6是根据本发明可选实施例的全屏预览拍照结果与实际预览界面关系示意图;6 is a schematic diagram of a relationship between a full-screen preview photographing result and an actual preview interface according to an alternative embodiment of the present invention;
图7是根据本发明可选实施例的特定比例取景拍照方法的流程图;7 is a flow chart of a method for photographing a specific scale view according to an alternative embodiment of the present invention;
图8是根据本发明可选实施例的预览提示框效果示意图。FIG. 8 is a schematic diagram of a preview prompt box effect according to an alternative embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种图像的获取方法,图1是根据本发明实施例的图像的获取方法的流程图,如图1所示,该流程包括如下步骤:A method for acquiring an image is provided in this embodiment. FIG. 1 is a flowchart of a method for acquiring an image according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102:在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率;Step S102: acquiring a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
步骤S104:比较第一分辨率和第二分辨率;Step S104: comparing the first resolution and the second resolution;
步骤S106:在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像。Step S106: Acquire an image that is consistent with the second resolution when the first resolution and the second resolution are inconsistent.
通过本实施例的步骤S102至步骤S106,采用在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率,进而对第一分辨率和第二分辨率进行比较,在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像,也就是说,在本实施例中在终端摄像头与显示屏的分辨率不一致时,以摄像头的分辨率为准获取相应的图像,从而解决了相关技术中在手机屏幕尺寸比率与该手机相机的分辨率不一致时,手机预览界面的上边和下边就会不显示图像的问题,提高了用户的体验效果。Through the steps S102 to S106 of the embodiment, before the image acquired by the full-screen preview terminal camera is acquired, the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are acquired. The ratio is compared, when the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is acquired, that is, in the embodiment, when the resolution of the terminal camera and the display screen are inconsistent, the camera is used. The resolution is accurate to obtain the corresponding image, thereby solving the problem in the related art that when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface will not display the image, and the user is improved. Experience the effect.
对于本实施例中涉及到的获取与第二分辨率一致的图像的方式,在本实施例的可选实施方式中,通过如下方式来实现:The manner of obtaining the image consistent with the second resolution involved in this embodiment is implemented in the following manner in an optional implementation manner of the embodiment:
步骤S11:生成与第二分辨率一致的取景框;Step S11: generating a finder frame that is consistent with the second resolution;
步骤S12:获取依据取景框进行取景的图像。Step S12: Acquire an image for framing according to the framing frame.
对于该步骤S11和步骤S12,在本实施例的具体应用场景中第一分辨率可以是15:9,二第 二分辨率则是4:3,此时第一分辨率和第二分辨率不一致,因此,在终端显示屏生成4:3的取景框,通过该取景框进行图像的取景。For the step S11 and the step S12, in the specific application scenario of the embodiment, the first resolution may be 15:9, two The second resolution is 4:3. At this time, the first resolution and the second resolution are inconsistent. Therefore, a 4:3 framing frame is generated on the terminal display screen, and the framing of the image is performed through the finder frame.
而在获取与第二分辨率一致的图像之后,本实施例的方法还包括:保存依据取景框取景的图像,并显示通过所述取景框取景的图像;也就是说,在本实施例中保存的图像是与摄像头分辨率一致的图像。After the image is consistent with the second resolution, the method of the embodiment further includes: saving an image according to the framing frame, and displaying the image framing through the finder frame; that is, saving in the embodiment. The image is an image that matches the resolution of the camera.
对于本实施例中的获取终端显示屏的第一分辨率和终端摄像头的第二分辨率的方式,在本实施例的可选实施方式,可以通过如下方式来实现:For the manner of obtaining the first resolution of the display screen of the terminal and the second resolution of the terminal camera in this embodiment, the optional implementation manner of this embodiment may be implemented as follows:
步骤S21:从终端的硬件配置信息表中读取显示屏的第一分辨率;Step S21: reading the first resolution of the display screen from the hardware configuration information table of the terminal;
步骤S22:从终端中读取最后一次设置的图像的分辨率,得到第二分辨率。Step S22: Read the resolution of the last set image from the terminal to obtain the second resolution.
对于本实施例中的第一分辨率和第二分辨率分别包括多种分辨率,例如第一分辨率可以为4:3、3:2、16:10、15:9和16:9其中之一,而第二分辨率可以4:3,16:9其中之一。The first resolution and the second resolution in this embodiment respectively include multiple resolutions, for example, the first resolution may be 4:3, 3:2, 16:10, 15:9, and 16:9. One, and the second resolution can be one of 4:3, 16:9.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种图像的获取装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An apparatus for acquiring an image is also provided in the embodiment, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明可选实施例的图像的获取装置的结构框图,如图2所示,该装置包括:第一获取模块22,设置为在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率;比较模块24,与第一获取模块22耦合连接,设置为比较第一分辨率和第二分辨率;第二获取模块26,与比较模块24耦合连接,设置为在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像。2 is a structural block diagram of an image acquiring apparatus according to an alternative embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first acquiring module 22 configured to acquire a terminal display before previewing an image acquired by a terminal camera in a full screen. a first resolution of the screen and a second resolution of the terminal camera; the comparison module 24 is coupled to the first acquisition module 22 and configured to compare the first resolution and the second resolution; the second acquisition module 26, and the comparison module 24 coupling connection, configured to acquire an image consistent with the second resolution when the first resolution and the second resolution are inconsistent.
图3是根据本发明可选实施例的图像的获取装置的可选结构框图一,如图3所示,第二获取模块26包括:生成单元32,设置为生成与第二分辨率一致的取景框;第一获取单元34,与生成单元32耦合连接,设置为获取依据取景框进行取景的图像。3 is a block diagram of an optional structure of an image obtaining apparatus according to an alternative embodiment of the present invention. As shown in FIG. 3, the second obtaining module 26 includes: a generating unit 32 configured to generate a framing consistent with the second resolution. The first acquisition unit 34 is coupled to the generating unit 32 and configured to acquire an image that is framing according to the finder frame.
图4是根据本发明可选实施例的图像的获取装置的可选结构框图二,如图4所示,在获取与第二分辨率一致的图像之后,装置还包括:处理模块42,与第二获取模块26耦合连接,设置为保存依据取景框取景的图像,并显示通过所述取景框取景的图像。4 is a block diagram 2 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention. As shown in FIG. 4, after acquiring an image consistent with a second resolution, the apparatus further includes: a processing module 42, and The two obtaining modules 26 are coupled and configured to save an image framing according to the framing frame and display an image framing through the framing frame.
图5是根据本发明可选实施例的图像的获取装置的可选结构框图三,如图5所示,第一 获取模块22包括:第二获取单元52,设置为从终端的硬件配置信息表中读取显示屏的第一分辨率;第三获取单元54,与第二获取单元52耦合连接,设置为从终端中读取最后一次设置的图像的分辨率,得到第二分辨率。FIG. 5 is a block diagram 3 of an optional structure of an image acquiring apparatus according to an alternative embodiment of the present invention, as shown in FIG. 5, first The obtaining module 22 includes: a second obtaining unit 52 configured to read the first resolution of the display screen from the hardware configuration information table of the terminal; the third obtaining unit 54 is coupled to the second obtaining unit 52 and configured as a slave terminal. The resolution of the last set image is read to obtain the second resolution.
可选地,该第一分辨率和第二分辨率分别包括多种分辨率。Optionally, the first resolution and the second resolution respectively comprise a plurality of resolutions.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
下面结合本发明的可选实施例进行举例说明;The following is exemplified in conjunction with an alternative embodiment of the present invention;
本可选实施例通过对手机屏幕尺寸比率、分辨率的判断,在全屏预览状态下,根据设置的拍摄图片尺寸比率,生成成像预览框提示,保证预览框内的图片是实际生成照片的图像范围。In the optional embodiment, by determining the screen size ratio and resolution of the mobile phone, in the full-screen preview state, an imaging preview frame prompt is generated according to the set shooting image size ratio, and the image in the preview frame is the image range of the actual generated photo. .
图6是根据本发明可选实施例的全屏预览拍照结果与实际预览界面关系示意图,如图6所示,当手机屏幕尺寸与照片的尺寸比例一样的时候,不存在所见非所得的情况,数码照片的比例现在目前是4:3和16:9两种,而手机的屏幕尺寸比例却有多种4:3、3:2、16:10、15:9和16:9,任意两种组合,全屏模式预览情况下都会出现所见非所得的情况。6 is a schematic diagram showing the relationship between a full-screen preview photographing result and an actual preview interface according to an alternative embodiment of the present invention. As shown in FIG. 6, when the screen size of the mobile phone is the same as the size ratio of the photo, there is no non-obtained situation. The ratio of digital photos is now 4:3 and 16:9, while the screen size ratio of mobile phones is 4:3, 3:2, 16:10, 15:9 and 16:9, any two Combination, in the case of full-screen mode preview, there will be a non-obtained situation.
图7是根据本发明可选实施例的特定比例取景拍照方法的流程图,如图7所示,该方法的步骤包括:7 is a flow chart of a method for photographing a specific scale view according to an alternative embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
步骤S701:采集手机的硬件信息,其中,该硬件信息包括:手机LCD硬件分辨率以及LCD硬件尺寸信息;Step S701: Collect hardware information of the mobile phone, where the hardware information includes: a mobile phone LCD hardware resolution and an LCD hardware size information;
步骤S702:获取所述LCD的像素比率;Step S702: Acquire a pixel ratio of the LCD;
步骤S703:设置相机分辨率;Step S703: setting a camera resolution;
步骤S704:采集手机照相机设置的分辨率,其中,该相机的分辨率可以是4:3或16:9;Step S704: collecting the resolution set by the mobile phone camera, wherein the resolution of the camera may be 4:3 or 16:9;
步骤S705,判断该LCD分辨率和该照相机的分辨率是否一致;在判断结果为否时,执行步骤S706;Step S705, it is determined whether the LCD resolution and the resolution of the camera are consistent; when the determination result is no, step S706 is performed;
步骤S706:全屏预览;Step S706: full screen preview;
步骤S707:生成预览框提示符,进行拍照。Step S707: Generate a preview frame prompt to take a photo.
通过上述步骤S701至步骤S707可知,需要从手机硬件配置信息表中读取手机中LCD屏幕的分辨率和尺寸信息,判断屏幕是否具有4:3或是16:9的特征,同时记录下本手机的比例特征。进而从手机中照相机设置模块读取最后一次设置的照片分辨率信息、预览状态信息,主要判断是否是全屏预览还是非全屏预览,计算出手机照相机设置的照片的分辨率的比率关系,判断是4:3还是16:9的关系并保存。 Through the above steps S701 to S707, it is known that the resolution and size information of the LCD screen in the mobile phone needs to be read from the mobile phone hardware configuration information table, and it is determined whether the screen has the characteristics of 4:3 or 16:9, and the mobile phone is recorded. Proportional characteristics. Further, the camera setting module of the mobile phone reads the last set photo resolution information and preview status information, and mainly determines whether it is a full screen preview or a non-full screen preview, and calculates a ratio relationship of the resolution of the photo set by the mobile phone camera, and the judgment is 4 :3 is still a 16:9 relationship and saved.
当照相机上设置的分辨率及照片尺寸比率不同于手机屏幕分辨率比率时,同时手机预览界面处于全屏预览状态下,手机生成与照片尺寸比率相一致的提示取景框,方便用户取景,保证取景与照片结果一致。图8是根据本发明可选实施例的预览提示框效果示意图。如图8所示的虚线框内表示拍照后可以留存在照片上,虚线框外,虽然预览界面可以看到,但是拍摄出来的照片不能保存在照片上。When the resolution and photo size ratio set on the camera are different from the screen resolution ratio of the mobile phone, and the mobile phone preview interface is in full-screen preview state, the mobile phone generates a prompt finder frame that is consistent with the photo size ratio, which is convenient for the user to view the picture, and ensures the framing and the framing. The photo results are consistent. FIG. 8 is a schematic diagram of a preview prompt box effect according to an alternative embodiment of the present invention. The dotted line box shown in Figure 8 indicates that the photo can be left on the photo. Outside the dotted frame, although the preview interface can be seen, the captured photo cannot be saved on the photo.
根据生成的预览框的效果和大小,当用户实际做拍照操作时,需要将实际的取景范围数据传递到图片存储操作的入口函数中,保证用户预览界面中提示框的范围与实际保存的照片范围的数据一致。According to the effect and size of the generated preview box, when the user actually performs the photographing operation, the actual framing range data needs to be transferred to the entry function of the image storage operation to ensure the range of the prompt box in the user preview interface and the actually saved photo range. The data is consistent.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1:在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率;S1: obtaining a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
S2:比较第一分辨率和第二分辨率;S2: comparing the first resolution and the second resolution;
S3:在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像。S3: Acquire an image consistent with the second resolution when the first resolution and the second resolution are inconsistent.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
通过本发明实施例,采用在全屏预览终端摄像头获取的图像之前,获取终端显示屏的第一分辨率和终端摄像头的第二分辨率,进而对第一分辨率和第二分辨率进行比较,在第一分辨率和第二分辨率不一致时,获取与第二分辨率一致的图像,也就是说,在终端摄像头与显示屏的分辨率不一致时,以摄像头的分辨率为准获取相应的图像,从而解决了相关技术中在手机屏幕尺寸比率与该手机相机的分辨率不一致时,手机预览界面的上边和下边就会不显示图像的问题,提高了用户的体验效果。 According to the embodiment of the present invention, before the image acquired by the terminal camera is previewed in full screen, the first resolution of the terminal display screen and the second resolution of the terminal camera are acquired, and then the first resolution and the second resolution are compared. When the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is obtained, that is, when the resolution of the terminal camera and the display screen are inconsistent, the corresponding image is obtained based on the resolution of the camera. Therefore, in the related art, when the screen size ratio of the mobile phone is inconsistent with the resolution of the mobile phone camera, the upper and lower sides of the mobile phone preview interface do not display an image, thereby improving the user experience.

Claims (10)

  1. 一种图像的获取方法,包括:An image acquisition method includes:
    在全屏预览终端摄像头获取的图像之前,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率;Obtaining a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
    比较所述第一分辨率和所述第二分辨率;Comparing the first resolution and the second resolution;
    在所述第一分辨率和所述第二分辨率不一致时,获取与所述第二分辨率一致的图像。When the first resolution and the second resolution are inconsistent, an image that is consistent with the second resolution is acquired.
  2. 根据权利要求1所述的方法,其中,所述获取与所述第二分辨率一致的图像包括:The method of claim 1 wherein said obtaining an image consistent with said second resolution comprises:
    生成与所述第二分辨率一致的取景框;Generating a finder frame consistent with the second resolution;
    获取依据所述取景框进行取景的图像。Acquire an image that is framing according to the framing frame.
  3. 根据权利要求2所述的方法,其中,在所述获取与所述第二分辨率一致的图像之后,所述方法还包括:The method of claim 2, wherein after the obtaining an image that is consistent with the second resolution, the method further comprises:
    保存依据所述取景框取景的图像,并显示通过所述取景框取景的图像。An image that is framing according to the finder frame is saved, and an image framing through the finder frame is displayed.
  4. 根据权利要求1所述的方法,其中,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率包括:The method of claim 1, wherein obtaining the first resolution of the terminal display screen and the second resolution of the terminal camera comprises:
    从所述终端的硬件配置信息表中读取所述显示屏的所述第一分辨率;Reading the first resolution of the display screen from a hardware configuration information table of the terminal;
    从所述终端中读取最后一次设置的图像的分辨率,得到所述第二分辨率。The resolution of the last set image is read from the terminal to obtain the second resolution.
  5. 根据权利要求1所述的方法,其中,所述第一分辨率和所述第二分辨率分别包括多种分辨率。The method of claim 1 wherein said first resolution and said second resolution comprise a plurality of resolutions, respectively.
  6. 一种图像的获取装置,包括:An image acquiring device includes:
    第一获取模块,设置为在全屏预览终端摄像头获取的图像之前,获取所述终端显示屏的第一分辨率和所述终端摄像头的第二分辨率;a first acquiring module, configured to acquire a first resolution of the terminal display screen and a second resolution of the terminal camera before previewing the image acquired by the terminal camera in full screen;
    比较模块,设置为比较所述第一分辨率和所述第二分辨率;Comparing a module, configured to compare the first resolution and the second resolution;
    第二获取模块,设置为在所述第一分辨率和所述第二分辨率不一致时,获取与所述第二分辨率一致的图像。The second obtaining module is configured to acquire an image that is consistent with the second resolution when the first resolution and the second resolution are inconsistent.
  7. 根据权利要求6所述的装置,其中,所述第二获取模块包括:The apparatus of claim 6, wherein the second acquisition module comprises:
    生成单元,设置为生成与所述第二分辨率一致的取景框;Generating unit configured to generate a finder frame consistent with the second resolution;
    第一获取单元,设置为获取依据所述取景框进行取景的图像。The first obtaining unit is configured to acquire an image that is framing according to the finder frame.
  8. 根据权利要求7所述的装置,其中,在所述获取与所述第二分辨率一致的图像之后,所述装置还包括: The apparatus of claim 7, wherein after the acquiring an image that is consistent with the second resolution, the apparatus further comprises:
    处理模块,设置为保存依据所述取景框取景的图像,并显示通过所述取景框取景的图像。The processing module is configured to save an image that is framing according to the finder frame, and display an image that is framing through the finder frame.
  9. 根据权利要求6所述的装置,其中,所述第一获取模块包括:The apparatus of claim 6, wherein the first obtaining module comprises:
    第二获取单元,设置为从所述终端的硬件配置信息表中读取所述显示屏的所述第一分辨率;a second obtaining unit, configured to read the first resolution of the display screen from a hardware configuration information table of the terminal;
    第三获取单元,设置为从所述终端中读取最后一次设置的图像的分辨率,得到所述第二分辨率。The third obtaining unit is configured to read the resolution of the last set image from the terminal to obtain the second resolution.
  10. 根据权利要求6所述的装置,其中,所述第一分辨率和所述第二分辨率分别包括多种分辨率。 The apparatus of claim 6 wherein said first resolution and said second resolution comprise a plurality of resolutions, respectively.
PCT/CN2015/091780 2015-09-08 2015-10-12 Image acquisition method and device WO2016145831A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510566761.8A CN106506932A (en) 2015-09-08 2015-09-08 The acquisition methods and device of image
CN201510566761.8 2015-09-08

Publications (1)

Publication Number Publication Date
WO2016145831A1 true WO2016145831A1 (en) 2016-09-22

Family

ID=56919725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/091780 WO2016145831A1 (en) 2015-09-08 2015-10-12 Image acquisition method and device

Country Status (2)

Country Link
CN (1) CN106506932A (en)
WO (1) WO2016145831A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390199A (en) * 2018-10-15 2022-04-22 华为技术有限公司 Shooting method and electronic equipment
CN114422694A (en) * 2022-01-18 2022-04-29 杭州逗酷软件科技有限公司 Preview resolution adaptation method and device and electronic equipment
CN116091392A (en) * 2022-08-16 2023-05-09 荣耀终端有限公司 Image processing method, system and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110636354A (en) * 2019-06-10 2019-12-31 青岛海信电器股份有限公司 Display device
CN111010513B (en) * 2019-12-23 2021-07-02 北大方正集团有限公司 Picture acquisition method and system and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592364A (en) * 2003-08-27 2005-03-09 富士胶片株式会社 Video outputting method and digital camera
CN1812495A (en) * 2004-12-22 2006-08-02 索尼株式会社 Image pickup apparatus, guide frame displaying controlling method and computer program
CN101785294A (en) * 2007-08-27 2010-07-21 索尼公司 Imaging device and imaging method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1225895C (en) * 2003-07-01 2005-11-02 致伸科技股份有限公司 Viewfinding auxiliary method and equipment
US20050146631A1 (en) * 2004-01-07 2005-07-07 Shelton Michael J. In-camera cropping to standard photo sizes
CN103546689B (en) * 2013-10-11 2018-02-13 Tcl集团股份有限公司 The resolution ratio acquisition methods and device of external camera of android system
CN103888670B (en) * 2014-02-21 2018-06-01 联想(北京)有限公司 A kind of information processing method and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592364A (en) * 2003-08-27 2005-03-09 富士胶片株式会社 Video outputting method and digital camera
CN1812495A (en) * 2004-12-22 2006-08-02 索尼株式会社 Image pickup apparatus, guide frame displaying controlling method and computer program
CN101785294A (en) * 2007-08-27 2010-07-21 索尼公司 Imaging device and imaging method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390199A (en) * 2018-10-15 2022-04-22 华为技术有限公司 Shooting method and electronic equipment
CN114422694A (en) * 2022-01-18 2022-04-29 杭州逗酷软件科技有限公司 Preview resolution adaptation method and device and electronic equipment
CN114422694B (en) * 2022-01-18 2024-03-26 杭州逗酷软件科技有限公司 Preview resolution adaptation method and device and electronic equipment
CN116091392A (en) * 2022-08-16 2023-05-09 荣耀终端有限公司 Image processing method, system and storage medium
CN116091392B (en) * 2022-08-16 2023-10-20 荣耀终端有限公司 Image processing method, system and storage medium

Also Published As

Publication number Publication date
CN106506932A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CA2969482C (en) Method and apparatus for multiple technology depth map acquisition and fusion
WO2016145831A1 (en) Image acquisition method and device
US20230027389A1 (en) Distance determination method, apparatus and system
US8937669B2 (en) Image processing apparatus, control method thereof, and program
AU2015320751B2 (en) Distance measurement device for motion picture camera focus applications
US9332195B2 (en) Image processing apparatus, imaging apparatus, and image processing method
US20190172214A1 (en) Measurement method and apparatus
WO2018228466A1 (en) Focus region display method and apparatus, and terminal device
JP2018121233A (en) Portable information processing device having camera function for performing guide display for photographing character-recognizable image, display control method thereof, and program
KR102198172B1 (en) Photo Information Management Method, and User's Terminal Installed with Program Executing the Method
US20120201465A1 (en) Image processing apparatus
CN103795927B (en) Photographing method and system
US10009545B2 (en) Image processing apparatus and method of operating the same
WO2015196681A1 (en) Picture processing method and electronic device
CN111201773A (en) Photographing method and device, mobile terminal and computer readable storage medium
CN106488128B (en) Automatic photographing method and device
JP2013149034A (en) Image display apparatus, image display method, and program
KR101860778B1 (en) Apparatus and method for for editing photograph image
KR100781680B1 (en) Photo file store and transmission method for camera phone
WO2017071560A1 (en) Picture processing method and device
CN114945072A (en) Dual-camera frame synchronization processing method and device, user terminal and storage medium
US20160323490A1 (en) Extensible, automatically-selected computational photography scenarios
JP2017184021A (en) Content providing device and content providing program
CN107087114B (en) Shooting method and device
CN108431867B (en) Data processing method and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885203

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885203

Country of ref document: EP

Kind code of ref document: A1