WO2014059847A1 - 一种终端相片处理方法和装置 - Google Patents

一种终端相片处理方法和装置 Download PDF

Info

Publication number
WO2014059847A1
WO2014059847A1 PCT/CN2013/083835 CN2013083835W WO2014059847A1 WO 2014059847 A1 WO2014059847 A1 WO 2014059847A1 CN 2013083835 W CN2013083835 W CN 2013083835W WO 2014059847 A1 WO2014059847 A1 WO 2014059847A1
Authority
WO
WIPO (PCT)
Prior art keywords
photo
terminal
photos
display screen
display
Prior art date
Application number
PCT/CN2013/083835
Other languages
English (en)
French (fr)
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 WO2014059847A1 publication Critical patent/WO2014059847A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4092Image resolution transcoding, e.g. by using client-server architectures

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for performing photo processing in a terminal. Background technique
  • FIG. 1 shows the process of processing, storing and displaying photos of the current mobile terminal photo application.
  • m*n represents the original pixel point of the photo
  • a*b represents the pixel of the terminal screen, each time the photo is viewed.
  • n photos are read from the main memory into the local memory, and then each photo is scaled, and the photo m*n is converted into a*b for the terminal screen display. Due to This kind of photo processing method is single, does not take advantage of the imbalance between image capture and image presentation, and does not take into account the use characteristics of photos on the terminal, so the processing cost is extremely high, and its defects can be roughly summarized into the following aspects:
  • the image needs to be scaled before each display, and a large amount of data needs to be read from the main memory, resulting in a large increase in power consumption.
  • the main object of the present invention is to provide a method and apparatus for processing a terminal photo, which can reduce the cost of photo processing in the terminal.
  • a terminal photo processing method comprising:
  • the photo is scaled so that the pixel and size of the photo match the parameters of the display of the terminal.
  • the method further includes: performing integration processing on the plurality of photos processed by the zooming, forming the plurality of photos into one file, and reading the adjacent photos of the currently viewed photos in advance when browsing the photos .
  • the method further includes: performing scaling processing on the photo after the predetermined time period after the terminal saves the photo.
  • the method further comprises: converting the chromaticity feature of the photo before or after the zooming process on the photo, so that the chromaticity feature of the photo and the display feature of the display screen of the terminal Match.
  • the method further includes: after the zooming process is performed on the photo, the terminal establishes contact with the target terminal, and acquires display screen parameters of the target terminal;
  • the terminal Comparing the display parameters of the display screen of the terminal and the display screen of the target terminal, if the target terminal display parameter is the same as the source terminal display parameter, the terminal transmits the photo to the target terminal; if the target terminal display parameter and the source terminal The display parameters are different.
  • the terminal converts the pixels and size of the photo to match the resolution and display size of the target terminal display, and then transmits it to the target terminal.
  • a terminal photo processing device comprising a photo preprocessing module configured to scale a photo after the photo is saved by the terminal, so that the pixel and the size of the photo match the resolution and the display size of the display of the terminal respectively .
  • the photo preprocessing module is further configured to perform integration processing on the plurality of photos processed by the scaling, so that the plurality of photos form a file, and when the photo is browsed, the photo preprocessing module is currently Browse the adjacent photos of the photo for reading in advance.
  • the device further includes a photo preprocessing activation module configured to start the photo preprocessing module after a predetermined period of time after the photo is saved by the terminal.
  • a photo preprocessing activation module configured to start the photo preprocessing module after a predetermined period of time after the photo is saved by the terminal.
  • the photo preprocessing module is further configured to convert the chromaticity features of the photo before or after the scaling process of the photo, so that the chromaticity features of the photo match the display features of the display screen of the terminal.
  • the device further includes a photo sharing processing module, configured to establish a connection between the terminal and the target terminal after the photo preprocessing module scales the photo, to obtain a display screen of the target terminal Comparing the display parameters of the display screen of the terminal and the display screen of the target terminal, if the target terminal display parameter is the same as the source terminal display parameter, the photo is transmitted to the target terminal; if the target terminal display parameter and the source terminal The display parameters are different, and the pixel and size of the photo are converted to the resolution and display size of the target terminal display. After matching, it is passed to the target terminal.
  • a photo sharing processing module configured to establish a connection between the terminal and the target terminal after the photo preprocessing module scales the photo, to obtain a display screen of the target terminal Comparing the display parameters of the display screen of the terminal and the display screen of the target terminal, if the target terminal display parameter is the same as the source terminal display parameter, the photo is transmitted to the target terminal; if the target terminal display parameter and the source terminal The display parameters are different, and the
  • the photo in the terminal is uniformly preprocessed, and the photo is converted into a pixel that matches the display capability of the terminal screen, and the size is consistent with the size of the display screen, and the photo is not required to be repeatedly zoomed in subsequent browsing, thereby reducing the photo processing.
  • Cost, for user terminals that often need to view photos, can greatly reduce power consumption.
  • a plurality of photos processed by the zooming process are integrated into one file, and the overhead of continuously opening and closing multiple photos can be avoided during browsing, and the photo browsing is smoother and the user experience is improved.
  • FIG. 1 is a schematic diagram of a method for processing a terminal photo in the prior art
  • FIG. 2 is a flowchart of a method for processing a terminal photo according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a preprocessing process of a terminal photo according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a preprocessing process of a terminal photo according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a process of sharing photos between different terminals in an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a terminal photo processing apparatus according to an embodiment of the present invention. detailed description
  • FIG. 2 is a flowchart of a method for processing a terminal photo according to an embodiment of the present invention, where the method includes The following steps:
  • Step S101 The terminal saves the photo.
  • Step S102 The photo in the terminal is scaled so that the pixels of the photo match the resolution of the display of the terminal.
  • the source of the photo stored by the terminal is first introduced, and the original information data of the photo is retained by the photo processing system through local acquisition or external storage.
  • the photos taken by the camera which are taken through the camera lens of the unit, retain the original photo features, and the display process is no different from the traditional mode, that is, reading the image, zooming the process, and displaying the screen.
  • some mobile terminal cameras have the ability to reach professional cameras with tens of millions of pixels.
  • the photos are very rich in detail.
  • the details of the images displayed on the large screen are still very clear, so the original photos taken by this unit are usually separate. Save, so that the photos are sent to a dedicated storage device or sent to a large-screen device for display, and processed based on high-quality original photos.
  • the stored photo file is the same as other files, and the mobile terminal does not process the photo and retains the original photo information.
  • the photo stored in the terminal is pre-processed by using the terminal photo processing method of the embodiment of the present invention shown in FIG. 2, and the photo is scaled so that the pixels of the photo match the resolution of the display screen of the terminal.
  • the n photos stored in the main memory are read into the memory of the terminal, and the Pl-Pn is directly scaled to obtain a ⁇ - ⁇ corresponding to the pixel of the terminal screen.
  • the goal of this is to calculate and scale the photo before the user browses the photo, so that the photo is made into a format that is easy to be rendered by the user.
  • the pixel value and the pixel aspect ratio of the photo match the screen of the local machine.
  • the size of the photo after the zoom processing is the same as the size of the display screen of the local device, that is, the pre-processed photo pixels and the size are respectively consistent with the resolution and display size of the display screen of the terminal, and the user can always use this when browsing the photos in the future. Formatted, compared to the previous process of directly using the original photo as the benchmark, each time The embodiment of the present invention does not need to repeatedly zoom the photos, especially for a user terminal that often needs to perform photo browsing, which can greatly avoid the power consumption of the terminal and improve the overall performance of the terminal.
  • the chromaticity feature of the photo may be further converted, so that the chromaticity feature of the photo matches the display feature of the display of the terminal.
  • Chromatic features such as the current mainstream display is red, green and blue (RGB, Red Green Blue); some are red, green, blue and white (RGBW, Red Green Blue White), which increases white; The space is red, green, and blue (RGBY, Red Green Blue Yellow), which adds yellow.
  • the preprocessing of the chroma features of the photos is because the same photo will be browsed repeatedly. If there is no preprocessing process, the chroma features need to be converted every time the photo is viewed, and this conversion process consumes the valuable value of the mobile terminal. Energy, which wastes the time that viewers wait to open.
  • the pre-processing of the photo may also include integrating the multiple photos to form a plurality of photos into one file. That is to say, a plurality of photos that are scaled and the same size are integrated into a single file inside the terminal, which is different from the conventional photo processing in processing one photo as one file.
  • the mutual position of each photo is also very easy to determine, and integrating them into one file can avoid the overhead of continuously opening and closing files.
  • multiple photos are saved as one file, but they are still presented as multiple photos, retaining the thumbnail browsing features of the existing photo system. When you need to share a single photo to someone else, the user can easily choose.
  • the end user interface displays the photo of a certain location, and the background software/hardware reads the adjacent photos of the currently displayed photo into the memory in advance, such as reading one or two in advance. 3, 5 or more, as shown in Figure 4, when the user browses the photo Pk continuously, the two photos Pk, -1, Pk, -2, Pk, +1, Pk'+ 2 has read the memory, Liu At the time of viewing, the photos can be rendered coherent, the display speed is faster, the waiting time for the photos to appear is reduced, and the user experience is improved.
  • the pre-processing of the photo is initiated after a predetermined period of time after the terminal saves the photo.
  • the photo preprocessing process is entered.
  • the reason for this setting is that, in general, the owner of the terminal device will carefully check the quality of the photo at the first time after the photo is taken. By carefully zooming in and out to observe the effect of the photo, the unsatisfactory photo will be deleted and deleted, so a section is reserved in this embodiment. Time, give the user the decision-making period of whether to keep the photos.
  • the probability of the user deleting the photos will be reduced, and then the photos will be viewed mainly, and the photos taken and displayed will be repeatedly enjoyed and displayed. Therefore, it is a reasonable setting to start the pre-processing of the photo after a predetermined period of time after the terminal saves the photo.
  • the pre-processed photo is saved separately and is never replaced with the original photo data. Of course, if you decide that you don't need to use the original photo, you can delete the original photo and only retain the pre-processed photo.
  • FIG. 5 is a schematic diagram of a process of sharing photos between different terminals by using a photo preprocessing process.
  • the photos of the terminal (hereinafter referred to as source terminals) need to be shared with other terminals (hereinafter referred to as target terminals).
  • the capability information is exchanged, and the source terminal knows the display capability of the target terminal, that is, the display related parameters. If the display capability of the target terminal is the same as that of the source terminal, the processing of the photo to be shared is directly transmitted to the target terminal. If the display capability of the target terminal and the source terminal are different, special processing is required. After the properties of the photo are converted to match the display capabilities of the target terminal screen, the compression is delivered. The details are as follows: On the source terminal side, the following steps are included:
  • Step 511 The source terminal starts the sharing process and establishes a connection with the target terminal.
  • Step 512 Obtain target terminal screen parameters.
  • Step 513 Compare the target terminal and the source terminal screen resolution; if they are the same, perform the steps 517; If the source terminal screen resolution is higher than the target terminal screen resolution, step 514 is performed; if the source terminal screen resolution is lower than the target terminal screen resolution, step 515 is performed.
  • Step 514 The sharing photo is subjected to scaling processing to match the target terminal screen resolution, and then step 517 is performed.
  • Step 515 Determine whether the photo to be shared has an original photo on the source terminal, and if yes, execute step 516; if not, execute step 517.
  • Step 516 The original photo of the shared photo is scaled to match the target terminal screen resolution. Then step 517 is performed.
  • Step 517 The zoomed photo cache is compressed, sent to the target terminal, and shared.
  • Step 521 Start the sharing process and establish contact with the source terminal.
  • Step 522 Notify the source terminal of the terminal screen parameters.
  • Step 523 Receive a photo from the source terminal.
  • Step 524 It is determined whether the pixels of the received photo are consistent with the resolution of the terminal screen. If they are consistent, step 526 is performed; otherwise, step 525 is performed.
  • Step 525 The photo is scaled to match the resolution of the terminal screen.
  • Step 526 Store the photo to the local, for browsing and sharing.
  • the foregoing embodiment can also compare and compare the chrominance characteristics of the source terminal and the target terminal display screen, and the processing manner is similar.
  • the target terminal screen chromaticity parameter is the same as the source terminal screen chromaticity parameter, no unnecessary processing is performed, and the photo is compressed. Passed to the target terminal;
  • the target terminal screen chrominance parameter is different from the source terminal screen chromaticity parameter, the chromaticity feature of the photo is converted to match the target terminal screen chromaticity parameter and then compressed and transmitted.
  • the embodiment of the present invention further provides a terminal photo processing device, where the device includes:
  • the photo preprocessing module 201 is configured to preprocess the photo after the photo is saved by the terminal, and before the photo is browsed, the preprocessing includes: the photo preprocessing module scales the photo to make the pixel and the size of the photo and the terminal The resolution and display size of the display match.
  • the photo preprocessing module 201 is further configured to perform integration processing on the plurality of photos processed by the scaling, so that the plurality of photos form a file.
  • the photo preprocessing module 201 is further configured to convert the chromaticity features of the photo before or after the scaling process of the photo, so that the chromaticity features of the photo match the display features of the display screen of the terminal.
  • the device further includes a photo preprocessing activation module 301 configured to activate the photo preprocessing module 201 after a predetermined period of time after the photo is saved by the terminal.
  • a photo preprocessing activation module 301 configured to activate the photo preprocessing module 201 after a predetermined period of time after the photo is saved by the terminal.
  • the device further includes a photo sharing processing module 401.
  • the photo sharing processing module 401 is configured to preprocess the photo.
  • the module 201 performs scaling processing on the photo, establishing a connection between the terminal and the target terminal, acquiring display screen parameters of the target terminal; comparing display screen parameters of the display screen of the terminal and the display screen of the target terminal, If the target terminal display parameter is the same as the source terminal display parameter, the photo is transmitted to the target terminal; if the target terminal display parameter is different from the source terminal display parameter, the pixel and size of the photo are converted to the resolution of the target terminal display The rate and display size are matched separately and passed to the target terminal.
  • the photo preprocessing module 201, the photo preprocessing initiating module 301, and the photo sharing processing module 401 in the terminal photo processing device may be a central processing unit (CPU) in the terminal photo processing device, or a digital a signal processor (DSP, Digital signal processor), or a programmable gate array bad 1 J (FPGA, Field - programmable gate array) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field - programmable gate array

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种终端相片处理方法和装置,在本终端保存相片之后、浏览相片之前进行相片预处理,对相片进行缩放处理,使得相片的像素和尺寸与本终端显示屏的参数相匹配。还可对经缩放处理的多张相片进行整合处理,使所述多张相片形成一个文件,对外显示时仍呈现为单张形式,后续浏览时不需反复缩放相片,可大幅减低耗电量,还避免了多张相片被不断地打开和关闭的开销,相片浏览更为流畅,提升了用户体验。在与其它终端进行相片传输时,对方终端的屏幕显示能力有限的情况下,将本地相片缩放到与对方终端屏幕显示能力相匹配后再进行传输,在不损失显示效果的情况下,尽可能地节约了传输占用的通信流量。

Description

一种终端相片处理方法和装置 技术领域
本发明涉及通信技术领域, 特别是涉及一种终端中进行相片处理的方 法和装置。 背景技术
目前的智能手机大多拥有照相功能, 分辨率达到数百万甚至数千万像 素。 移动终端相机质量的好坏也成为选择终端的关键因素, 微博、 社交网 站的兴起, 也极大地激发了大众随手拍、 随手发的热情。 从信息通信技术
( ICT, Information Communication Technology )行业统计数据看, 相片在 互连通信中占据的比重也越来越高。 智能手机拥有的存储空间, 自带 16G、 32G, 并且拥有扩展卡, 可以存储很多相片, 多数智能机用户相机中都保存 了大量的相片。 与此同时, 所存在的问题是智能手机的电池支撑时间短, 相片浏览时, 如果快速滑动相片, 将明显感到相片呈现迟緩, 需要用户等 待, 体验较差。 另外, 在不同终端间进行相片分享时, 大都是传送原始相 片, 导致在传送一些高清、 高分辨率图像分享时, 通信带宽耗费巨大。 造 成这些负面现象的主要原因在于, 在移动终端中, 移动终端屏幕的尺寸和 分辨率各不相同, 从几十万象素到高达二百万象素不等, 以几十万象素为 主的格局, 而相片的获取能力与移动终端屏幕的显示能力之间存在极度的 不平衡性。 智能终端的相片应用程序的特点是一次获取, 多次传递, 多次 呈现。 图 1 所示为当前的移动终端相片应用程序对相片的处理、 存储和显 示过程, 图中 m*n表示相片的原始象素点, a*b表示终端屏幕的像素, 每 次浏览相片时, 先从主存中读取 n张相片到本机内存中, 然后对每张相片 进行缩放处理, 将相片的像素 m*n转换为 a*b, 用于终端屏幕显示。 由于 这种相片处理方式单一, 没有利用图片捕获与图像呈现的不平衡性, 也没 有兼顾相片在终端上的使用特点, 因此处理成本极高, 其缺陷可大致归纳 为以下几个方面:
1、存储方面,每个移动终端上都保留了原始相片,存储空间浪费极大。
2、 通信方面, 每次相片由一个终端向另一个终端转移的时候, 不管源 终端与目标终端的能力差异, 都是传输原始图片, 这需要极大的通信流量, 尤其是对于高清图片更是如此。
3、 资源功耗方面, 每次显示前需对图片进行缩放处理, 需要从主存中 读取大量数据, 导致功耗大增。
4、 用户体验方面, 浏览相片时, 当快速划动终端屏幕的时候, 相片呈 现速度较慢。 发明内容
有鉴于此, 本发明的主要目的在于提供一种终端相片处理方法和装置, 能够降低终端中相片处理的成本。
为达到上述目的, 本发明的技术方案是这样实现的:
一种终端相片处理方法, 所述方法包括:
在本终端保存相片之后对相片进行缩放处理, 使得相片的像素和尺寸 与本终端显示屏的参数相匹配。
优选地, 所述方法还包括: 对经缩放处理的多张相片进行整合处理, 使所述多张相片形成一个文件, 且在浏览相片时, 对当前所浏览相片的相 邻相片进行提前读取。
其中, 所述方法还包括: 在本终端保存相片后的预定时间段之后, 对 相片进行缩放处理。
优选地, 所述方法还包括: 在对相片进行缩放处理之前或之后, 对相 片的色度特征进行转换, 使得相片的色度特征与本终端显示屏的显示特征 相匹配。
优选地, 所述方法还包括: 在对相片进行缩放处理之后, 本终端与目 标终端建立联系, 获取所述目标终端的显示屏参数;
比较本终端显示屏与所述目标终端的显示屏的显示屏参数, 如果目标 终端显示屏参数与源终端显示屏参数相同, 本终端将相片传递给目标终端; 如果目标终端显示屏参数与源终端显示屏参数不同, 本终端将相片的像素 和尺寸转换到与目标终端显示屏的分辨率和显示尺寸分别相匹配后, 传递 给目标终端。
一种终端相片处理装置, 所述装置包括相片预处理模块, 配置为在本 终端保存相片之后对相片进行缩放处理, 使得相片的像素和尺寸与本终端 显示屏的分辨率和显示尺寸分别相匹配。
优选地, 所述相片预处理模块, 还配置为对经缩放处理的多张相片进 行整合处理, 使所述多张相片形成一个文件, 且在浏览相片时, 所述相片 预处理模块对当前所浏览相片的相邻相片进行提前读取。
优选地, 所述装置还包括相片预处理启动模块, 配置为在本终端保存 相片后的预定时间段之后, 启动所述相片预处理模块。
优选地, 所述相片预处理模块, 还配置为在对相片进行缩放处理之前 或之后, 对相片的色度特征进行转换, 使得相片的色度特征与本终端显示 屏的显示特征相匹配。
优选地, 所述装置还包括相片分享处理模块, 配置为在所述相片预处 理模块对相片进行缩放处理之后, 在本终端和所述目标终端之间建立联系, 获取所述目标终端的显示屏参数; 比较本终端显示屏与所述目标终端的显 示屏的显示屏参数, 如果目标终端显示屏参数与源终端显示屏参数相同, 将相片传递给目标终端; 如果目标终端显示屏参数与源终端显示屏参数不 同, 将相片的像素和尺寸转换到与目标终端显示屏的分辨率和显示尺寸分 别相匹配后, 传递给目标终端。
本发明实施例对终端中的相片统一进行预处理, 将相片转换为与终端 屏幕显示能力相匹配的像素, 且大小与显示屏尺寸一致, 后续浏览时不需 要再反复缩放相片, 降低了相片处理成本, 对于经常需要进行相片浏览的 用户终端来说, 可大幅减低耗电量。
本发明实施例将终端内部将经过缩放处理的多张相片整和为一个文 件, 浏览时可避免多张相片被不断地打开和关闭的开销, 相片浏览更为流 畅, 提升用户体验。
在与其它终端进行相片传输时, 可根据其它终端的性能, 有针对性地 选择是否对本地相片进行再处理, 在对方终端的屏幕显示能力有限的情况 下, 将本地相片缩放到与对方终端屏幕显示能力相匹配后再进行传输, 在 不损失显示效果的情况下, 尽可能地节约了传输占用的通信流量。 附图说明
图 1是现有技术中终端相片处理方式示意图;
图 2是本发明实施例终端相片处理方法流程图;
图 3是本发明实施例的终端相片预处理过程示意图;
图 4是本发明另一实施例的终端相片预处理过程示意图;
图 5是本发明实施例中不同终端之间分享相片过程示意图;
图 6是本发明实施例的终端相片处理装置结构示意图。 具体实施方式
以下结合附图以及实施例, 对本发明实施例进行进一步详细说明。 应 当理解, 此处所描述的具体实施例仅仅用以解释本发明实施例, 并不限定 本发明实施例。
图 2所示为本发明实施例的终端相片处理方法流程图, 所述方法包括 以下步骤:
步骤 S101 : 终端保存相片。
步骤 S102: 对终端中的相片进行缩放处理, 使得相片的像素与本终端 显示屏的分辨率相匹配。
具体来看, 首先介绍终端保存相片的来源, 通过本机获取或外部存入, 由相片处理***保留相片的原始信息数据。 本机获取的相片, 即通过本机 的照相机镜头摄入, 保留原始的相片特征, 其显示的过程与传统模式没有 差别, 即读入图片, 缩放处理, 屏幕呈现。 目前, 有些移动终端的相机达 到专业相机的能力, 象素达到数千万, 其拍摄的相片细节非常丰富, 在大 屏幕上显示图像细节仍然非常清晰, 因此对于本机拍摄的原始相片通常要 单独保存, 以便本机相片发往专门的存储设备或发往大屏设备显示, 以高 质量的原始相片为基准再处理。 对于外部存入的图片, 当用户把移动终端 当存储设备转存相片时, 存入的相片文件与其它文件无异, 移动终端不对 相片作任何处理, 保留原始相片信息。
然后, 利用图 2 所示的本发明实施例的终端相片处理方法对保存在终 端的相片做预处理, 对相片进行缩放处理, 使得相片的像素与本终端显示 屏的分辨率相匹配。
具体还可参见图 3实施例, 将主存的 n张照片 (记为 Pl-Pn )读取到终 端内存中,对 Pl-Pn直接进行缩放处理,得到符合终端屏幕像素的 ΡΓ-Ρη,, 保存到主存中以备浏览分享。 这样做的目标是在用户浏览相片之前即对相 片进行计算缩放处理, 使相片先期成为本机容易呈现的格式大小, 最好是 相片的像素值和像素长宽比都与本机屏幕相匹配, 缩放处理后的相片尺寸 与本机显示屏幕大小一致, 即预处理后的相片像素和尺寸分别与本终端显 示屏的分辨率和显示尺寸一致, 则在以后用户浏览相片的时候总是能够以 这种格式呈现, 相对于以往每次直接以原始相片为基准进行处理, 每次显 示前均计算缩放相片尺寸, 进而显示的方案, 本发明实施例不需要反复地 缩放相片, 尤其对于经常需要进行相片浏览的用户终端来说, 可极大地避 免终端电量消耗, 提升终端整体性能。
在上述相片预处理的过程中, 可进一步对相片的色度特征进行转换, 使得相片的色度特征与本终端显示屏的显示特征相匹配。 色度特征, 如当 前主流的显示屏为红绿蓝(RGB, Red Green Blue ) 三原色; 还有部分为增 强亮度的红绿蓝白 (RGBW, Red Green Blue White ), 即增加白色; 也有增 加颜色空间的红绿蓝黄( RGBY, Red Green Blue Yellow ), 即增加黄色。 对 相片进行色度特征的预处理, 原因在于同一张相片会反复被浏览, 如果没 有预处理过程, 则每次浏览相片都需要进行色度特征的转换, 而这个转换 过程既耗移动终端的宝贵能源, 又浪费浏览者等待打开的时间。 利用本实 施例对相片进行色度特征的统一预处理转换, 可大幅减少色度特征转换的 次数, 节约终端能源, 提升用户体验。
在对相片的尺寸或色度特征处理之后, 对相片的预处理还可包括对多 张相片的整合处理, 使多张相片形成一个文件。 也就是说, 在终端内部将 经过缩放、 尺寸相同的多张相片整合为单个文件, 不同于传统的相片处理 将一张相片作为一个文件处理。 本实施例中, 由于每张相片的大小已经确 定了, 每张相片的相互位置也非常便于确定, 将它们整合为一个文件可避 免不断地打开、 关闭文件的开销。 需要注意的是, 对内多张相片被保存为 一个文件, 但对外仍然呈现为多张相片的形式, 保留现有相片***的缩略 浏览特点。 当需要把某一单张相片分享给别人的时候, 用户可方便地选择。 当需要连续浏览相片时, 终端用户界面显示某一位置相片的同时, 后台软 / 硬件提前读取当前显示相片的相邻几张相片到内存中,如前后各预先读取 1 张、 2张、 3张、 5张或更多, 如图 4所示, 当用户连续浏览相片 Pk,时, 其 前后相邻的两张相片 Pk,-1、 Pk,-2、 Pk,+1、 Pk'+2已经读取到了内存中, 浏 览时可以让相片呈现连贯性, 显示速度更快, 减少相片出现的等待时间, 提升用户感受。
较佳地, 在终端保存相片后的预定时间段之后, 启动对相片的预处理 过程。 详细地讲, 在终端本地相片***中, 以本机摄入相片为例, 在本机 保存摄入相片后, 经过固定时间, 如设定为 1 小时之后, 才进入对相片的 预处理流程。 这样设置的原因是, 通常终端设备拥有者会在相片照完后的 第一时间认真察看相片质量, 通过缩小放大仔细观察相片效果, 不满意的 相片会被整理删除, 所以本实施例中保留一段时间, 给用户做是否保留相 片的决策期, 待过了一定时间后, 用户删除相片的概率就会降低, 转而以 浏览相片为主, 反复欣赏与展示摄入的相片。 因此, 在终端保存相片后的 预定时间段之后再启动对相片的预处理是合理的设置。 为了保存原始的相 片数据以备使用, 对预处理后的相片另行保存, 始终不与原始相片数据发 生替换。 当然, 如果确定不需要使用原始相片, 可将原始相片删除, 仅保 留预处理后的相片。
图 5 所示为利用相片预处理流程实现不同终端之间分享相片的过程示 意图, 需要把本终端 (以下称为源终端) 的相片分享给其他终端 (以下称 为目标终端), 在分享之前, 首先进行能力信息交互, 源终端获知目标终端 的显示能力, 即显示屏相关参数。 如果目标终端显示能力与源终端显示能 力相同, 则不作多余处理, 直接将想要分享的相片压缩后传递给目标终端; 当目标终端与源终端显示能力不同时, 则需要作一些特殊处理, 将相片的 属性转换到与目标终端屏显示能力匹配后, 进行压缩传递。 具体如下: 在源终端侧, 包括以下步骤:
步骤 511 : 源终端启动分享过程, 与目标终端建立联系。
步骤 512: 获取目标终端屏参数。
步骤 513 : 比较目标终端与源终端屏分辨率; 如果相同, 则执行步骤 517; 如果源终端屏分辨率高于目标终端屏分辨率, 则执行步骤 514; 如果 源终端屏分辨率低于目标终端屏分辨率, 则执行步骤 515。
步骤 514: 对待分享相片进行缩放处理, 匹配目标终端屏分辨率, 然后 执行步骤 517。
步骤 515: 判断该待分享相片在源终端上是否有原始相片, 若有, 则执 行步骤 516; 若无, 则执行步骤 517。
步骤 516: 对待分享相片的原始相片进行缩放处理, 匹配目标终端屏分 辨率。 然后执行步骤 517。
步骤 517: 对缩放处理后的相片緩存, 压缩后发送至目标终端, 分享相 片。
在目标终端侧, 包括以下步骤:
步骤 521 : 启动分享过程, 与源终端建立联系。
步骤 522: 向源终端通报本终端屏参数。
步骤 523 : 接收来自源终端的相片。
步骤 524:判断接收相片的像素是否与本终端屏分辨率一致,如果一致, 则执行步骤 526; 否则, 执行步骤 525。
步骤 525: 对相片进行缩放处理, 使其匹配本终端屏分辨率。
步骤 526: 存储相片到本地, 用于浏览分享。
上述实施例还可针对源终端和目标终端显示屏的色度特征方面进行比 较处理, 处理方式相似, 当目标终端屏色度参数与源终端屏色度参数相同, 不作多余处理, 将相片压缩后传递给目标终端; 当目标终端屏色度参数与 源终端屏色度参数不同时, 将相片的色度特征转换到与目标终端屏色度参 数匹配后进行压缩传递。
为了解决终端相片处理成本高的问题, 本发明实施例还提供了一种终 端相片处理装置, 所述装置包括: 相片预处理模块 201, 配置为在本终端保存相片之后、 浏览相片之前, 对相片进行预处理, 所述预处理包括: 相片预处理模块对相片进行缩放处 理, 使得相片的像素和尺寸与本终端显示屏的分辨率和显示尺寸分别相匹 配。
其中, 所述相片预处理模块 201,还配置为对经缩放处理的多张相片进 行整合处理, 使所述多张相片形成一个文件。
所述相片预处理模块 201, 还配置为在对相片进行缩放处理之前或之 后, 对相片的色度特征进行转换, 使得相片的色度特征与本终端显示屏的 显示特征相匹配。
优选地, 所述装置还包括相片预处理启动模块 301, 配置为在本终端保 存相片后的预定时间段之后, 启动所述相片预处理模块 201。
优选地, 所述装置还包括相片分享处理模块 401, 如图 6所示, 在所述 相片预处理模块完成所述预处理之后, 所述相片分享处理模块 401, 配置为 在所述相片预处理模块 201 对相片进行缩放处理之后, 在本终端和所述目 标终端之间建立联系, 获取所述目标终端的显示屏参数; 比较本终端显示 屏与所述目标终端的显示屏的显示屏参数, 如果目标终端显示屏参数与源 终端显示屏参数相同, 将相片传递给目标终端; 如果目标终端显示屏参数 与源终端显示屏参数不同, 将相片的像素和尺寸转换到与目标终端显示屏 的分辨率和显示尺寸分别相匹配后, 传递给目标终端。
实际应用中, 所述终端相片处理装置中的相片预处理模块 201、相片预 处理启动模块 301 以及相片分享处理模块 401可由终端相片处理装置中的 央处理器(CPU, Central Processing Unit ),或数字信号处理器( DSP, Digital Signal Processor )、或可编程门阵歹1 J( FPGA, Field - Programmable Gate Array ) 实现。
尽管为示例目标, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。

Claims

权利要求书
1、 一种终端相片处理方法, 所述方法包括:
在本终端保存相片之后对相片进行缩放处理, 使得相片的像素和尺寸 与本终端显示屏的参数相匹配。
2、 如权利要求 1所述的终端相片处理方法, 其中, 所述方法还包括: 对经缩放处理的多张相片进行整合处理, 使所述多张相片形成一个文件, 且在浏览相片时, 对当前所浏览相片的相邻相片进行提前读取。
3、 如权利要求 1所述的终端相片处理方法, 其中, 所述方法还包括: 在本终端保存相片后的预定时间段之后, 对相片进行缩放处理。
4、 如权利要求 1-3中任一权利要求所述的终端相片处理方法, 其中, 所述方法还包括: 在对相片进行缩放处理之前或之后, 对相片的色度特征 进行转换, 使得相片的色度特征与本终端显示屏的显示特征相匹配。
5、 如权利要求 1-3中任一权利要求所述的终端相片处理方法, 其中, 所述方法还包括:
在对相片进行缩放处理之后, 本终端与目标终端建立联系, 获取所述 目标终端的显示屏参数;
比较本终端显示屏与所述目标终端的显示屏的显示屏参数, 如果目标 终端显示屏参数与源终端显示屏参数相同, 本终端将相片传递给目标终端; 如果目标终端显示屏参数与源终端显示屏参数不同, 本终端将相片的像素 和尺寸转换到与目标终端显示屏的分辨率和显示尺寸分别相匹配后, 传递 给目标终端。
6、 一种终端相片处理装置, 所述装置包括相片预处理模块, 配置为在 本终端保存相片之后对相片进行缩放处理, 使得相片的像素和尺寸与本终 端显示屏的参数相匹配。
7、 如权利要求 6所述的终端相片处理装置, 其中, 所述相片预处理模 块, 还配置为对经缩放处理的多张相片进行整合处理, 使所述多张相片形 成一个文件, 且在浏览相片时, 所述相片预处理模块对当前所浏览相片的 相邻相片进行提前读取。
8、 如权利要求 6所述的终端相片处理装置, 其中, 所述装置还包括相 片预处理启动模块, 配置为在本终端保存相片后的预定时间段之后, 启动 所述相片预处理模块。
9、 如权利要求 6-8中任一权利要求所述的终端相片处理装置, 其中, 所述相片预处理模块, 还配置为在对相片进行缩放处理之前或之后, 对相 片的色度特征进行转换, 使得相片的色度特征与本终端显示屏的显示特征 相匹配。
10、 如权利要求 6-8中任一权利要求所述的终端相片处理装置, 其中, 所述装置还包括相片分享处理模块, 配置为在所述相片预处理模块对相片 进行缩放处理之后, 在本终端和所述目标终端之间建立联系, 获取所述目 标终端的显示屏参数; 比较本终端显示屏与所述目标终端的显示屏的显示 屏参数, 如果目标终端显示屏参数与源终端显示屏参数相同, 将相片传递 给目标终端; 如果目标终端显示屏参数与源终端显示屏参数不同, 将相片 的像素和尺寸转换到与目标终端显示屏的分辨率和显示尺寸分别相匹配 后, 传递给目标终端。
PCT/CN2013/083835 2012-10-16 2013-09-18 一种终端相片处理方法和装置 WO2014059847A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210391175.0A CN103729375A (zh) 2012-10-16 2012-10-16 一种终端相片处理方法和装置
CN201210391175.0 2012-10-16

Publications (1)

Publication Number Publication Date
WO2014059847A1 true WO2014059847A1 (zh) 2014-04-24

Family

ID=50453453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083835 WO2014059847A1 (zh) 2012-10-16 2013-09-18 一种终端相片处理方法和装置

Country Status (2)

Country Link
CN (1) CN103729375A (zh)
WO (1) WO2014059847A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851075A (zh) * 2015-05-05 2015-08-19 天脉聚源(北京)教育科技有限公司 一种便于展示的笔记文件的实现方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183366A (zh) * 2006-12-26 2008-05-21 腾讯科技(深圳)有限公司 一种图片文件处理方法和***
WO2009011418A1 (ja) * 2007-07-19 2009-01-22 Sony Corporation 画像処理装置、画像処理方法、およびプログラム
CN101888611A (zh) * 2009-05-13 2010-11-17 北京博越世纪科技有限公司 一种将互联网站图片智能缩放供手机终端显示的技术
CN102572260A (zh) * 2010-10-13 2012-07-11 三星电子株式会社 执行相机的快速关联功能的方法和便携式装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3927989B2 (ja) * 2003-04-23 2007-06-13 ソフトバンクモバイル株式会社 表示処理方法及び表示処理装置
KR101213205B1 (ko) * 2006-11-23 2012-12-17 삼성전자주식회사 컬러 재현 시스템 및 방법
JP5558767B2 (ja) * 2009-09-25 2014-07-23 キヤノン株式会社 画像処理装置及びその処理方法
CN102044058B (zh) * 2010-11-22 2012-11-21 Tcl集团股份有限公司 一种在电子设备中处理图片的方法、***及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183366A (zh) * 2006-12-26 2008-05-21 腾讯科技(深圳)有限公司 一种图片文件处理方法和***
WO2009011418A1 (ja) * 2007-07-19 2009-01-22 Sony Corporation 画像処理装置、画像処理方法、およびプログラム
CN101888611A (zh) * 2009-05-13 2010-11-17 北京博越世纪科技有限公司 一种将互联网站图片智能缩放供手机终端显示的技术
CN102572260A (zh) * 2010-10-13 2012-07-11 三星电子株式会社 执行相机的快速关联功能的方法和便携式装置

Also Published As

Publication number Publication date
CN103729375A (zh) 2014-04-16

Similar Documents

Publication Publication Date Title
US11218649B2 (en) Photographing method, apparatus, and device
US8994845B2 (en) System and method of adjusting a camera based on image data
WO2020063505A1 (zh) 图像处理方法、***及计算机可读存储介质
WO2015149583A1 (zh) 一种终端及终端拍摄方法
WO2017128536A1 (zh) 一种基于双摄像头的扫描方法及装置
WO2013132828A1 (ja) 通信システムおよび中継装置
WO2020093850A1 (zh) 双光图像整合方法、整合设备及无人机
WO2022022019A1 (zh) 投屏数据处理方法和装置
JP2007124054A (ja) 画像処理パラメータ設定装置及び方法
US20230056332A1 (en) Image Processing Method and Related Apparatus
CN115514882B (zh) 一种分布式拍摄方法,电子设备及介质
US10674163B2 (en) Color space compression
WO2023160295A1 (zh) 视频处理方法和装置
US10567634B2 (en) Image capturing apparatus, communication apparatus, and control methods thereof
KR101547828B1 (ko) 영상 처리 장치 및 방법
WO2014059847A1 (zh) 一种终端相片处理方法和装置
JP7064373B2 (ja) 通信装置およびその制御方法、並びにプログラム
CN114089931B (zh) 图片打印方法、电子设备及计算机可读存储介质
CN113364964B (zh) 图像处理方法、图像处理装置、存储介质与终端设备
US10728451B2 (en) Communication device for communicating with external device, method for controlling the same, and recording medium
KR20220014801A (ko) 이미지 처리 방법, 장치 및 저장 매체
CN110378973A (zh) 图像信息处理方法、装置以及电子设备
JPWO2002041629A1 (ja) 画像ファイル生成装置及びディジタルスチルカメラ
JP2010056768A (ja) 撮影システム並びに当該撮影システムを構成する撮影装置及び操作装置
CN110365962A (zh) 色域转换处理方法、装置以及电子设备

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: 13846692

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: IDP00201502918

Country of ref document: ID

122 Ep: pct application non-entry in european phase

Ref document number: 13846692

Country of ref document: EP

Kind code of ref document: A1