WO2015180587A1 - 一种图像的展示处理方法和装置 - Google Patents
一种图像的展示处理方法和装置 Download PDFInfo
- Publication number
- WO2015180587A1 WO2015180587A1 PCT/CN2015/079552 CN2015079552W WO2015180587A1 WO 2015180587 A1 WO2015180587 A1 WO 2015180587A1 CN 2015079552 W CN2015079552 W CN 2015079552W WO 2015180587 A1 WO2015180587 A1 WO 2015180587A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- normalized
- attribute
- image
- display
- aspect ratio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
Definitions
- the present application relates to the field of computer technology, and in particular, to an image display processing method and apparatus.
- a certain frame image in the video information may be displayed to the user as an identifier of the multimedia information
- the multimedia information is a certain singer album a song (ie, audio information)
- the cover image of the album may be displayed to the user as an identifier of the multimedia information
- the image may be directly displayed as an identifier of the multimedia information.
- the user can intuitively distinguish the content in the corresponding multimedia information according to the image as the identifier of the multimedia information.
- the method of displaying a plurality of images to the user is generally: a page in which an image is to be displayed in advance. Divided into several blocks, and then displayed multiple images in different blocks according to the principle of adding an image in one block. Wherein, when an image is added to a block, the image is scaled according to the size of the block, and then added to the block.
- the size of the picture to be displayed is fixed, and in the actual application scenario, the picture to be displayed is displayed.
- the size of the film is varied.
- the image taken by a typical SLR camera is usually 3:2 or 2:3, and the image taken by the card camera is 3:4 or 4:3, 720p and 1080p.
- the image displayed on the screen is generally 16:9 or 9:16, and the image of the album cover is generally 1:1.
- the main purpose of the present application is to provide an image display processing method and apparatus for solving the problem of low flexibility in the manner of displaying images in the prior art.
- an image display processing method comprising: for each image, according to an original attribute of the image, and a correspondence between a preset original attribute and a normalized attribute, the image is The original attribute is converted into a corresponding normalized attribute; according to the order in which the images are to be displayed, the normalized attributes of the converted images are sorted to obtain a normalized attribute sequence; in the pre-stored display mode, the search is performed. The display mode corresponding to the normalized attribute sequence, and displaying the converted images by using the found display manner.
- an image display processing apparatus comprising: a conversion module, configured, for each image, according to an original attribute of the image, and a correspondence between a preset original attribute and a normalized attribute Converting the original attribute of the image into a corresponding normalized attribute; the sequence obtaining module is configured to sort the normalized attributes of the converted images according to the order in which the images are to be displayed, to obtain a normalized attribute.
- the display module is configured to search for a display manner corresponding to the normalized attribute sequence in a pre-saved display manner, and display the converted images by using the displayed display manner.
- the technical solution of the present application it is possible to convert the original attribute of each image into a corresponding return
- the attributes are attributed, and the sequence of normalized attributes is obtained according to the order in which the images are to be displayed.
- the converted images can be displayed by using the display method corresponding to the normalized attribute sequence found in the pre-saved display mode.
- the technical solution provided by the present application does not display images of various sizes in a fixed-size block when displaying images of multiple sizes in a page, but may be based on original attributes of the image.
- the feature is to display the image in a manner suitable for the original attribute, thus effectively improving the flexibility of displaying the image.
- FIG. 1 is a flowchart of a method for displaying an image according to an embodiment of the present application
- FIG. 2a is a schematic diagram of a display manner corresponding to a normalized attribute sequence “TNWP” provided by an embodiment of the present application;
- FIG. 2b is a schematic diagram showing an image a to d according to the display manner shown in FIG. 2a according to an embodiment of the present application;
- FIG. 3 is a process of searching for a corresponding display manner and displaying an image according to a normalized attribute sequence according to an embodiment of the present application
- FIG. 58 is a schematic diagram of each image corresponding to the normalized attribute sequence “TNTPPTW#” shown in the display manners shown in FIG. 4 to FIG.
- FIG. 59 is a schematic structural diagram of an image display processing apparatus according to an embodiment of the present application.
- the main idea of the present application is to display the converted original images by converting the original attributes of the images into corresponding normalized attributes, and displaying the converted images by using the display manner corresponding to the normalized attributes. High display of the flexibility of the image.
- the technical solution provided by the present application can be applied to various scenes related to image display, for example, display of photos in a mobile phone album, display of images in a webpage by a personal computer (PC), and the like.
- FIG. 1 is a flowchart of a method for displaying an image according to an embodiment of the present application.
- Step 101 For each image, convert the original attribute of the image into a corresponding normalized attribute according to the original attribute of the image and the correspondence between the preset original attribute and the normalized attribute.
- the original attributes of each image may be extracted, and then according to the original attributes of each image and the corresponding relationship between the original attribute and the normalized attribute, The original properties of the image are normalized. That is to say, according to the correspondence between the preset original attribute and the normalized attribute, the original attribute of each image is converted into a corresponding normalized attribute.
- the original attributes of the image include, but are not limited to, the aspect ratio, color, format, description information, name, author, creation date, and the like of the image.
- the normalized attributes also include, but are not limited to, the aspect ratio, color, format, description information, name, author, creation date, and the like of the image.
- the original aspect ratio of the image is taken as an example for the original aspect ratio of the image.
- the normalized attribute is the normalized aspect ratio.
- the aspect ratio of the original aspect ratio may be determined according to the original aspect ratio of the image, according to a preset width. Corresponding relationship between the high ratio range and the normalized aspect ratio, determining a normalized aspect ratio corresponding to the aspect ratio range of the original aspect ratio, and then converting the aspect ratio of the image to the determined normalization Aspect ratio.
- the aspect ratio of the image may be directly reduced to the normalized aspect ratio according to the normalized aspect ratio, or the image may be clipped to the normalized width and height by clipping. Than the image.
- the aspect ratio range can be arbitrarily divided within the interval of (0, + ⁇ ) when the aspect ratio range is preset.
- the original aspect ratio of the image taken by the SLR camera is generally 3:2 or 2:3, and the original aspect ratio of the image taken by the card camera is 3:4 or 4:3.
- the original aspect ratio of the images displayed on the 720p and 1080p screens is generally 16:9 or 9:16.
- the original aspect ratio of the image on the album cover is generally 1:1.
- the original aspect ratio of the panorama is variable, generally 3:1 ⁇ 7:1, therefore, the preset four aspect ratio ranges are (0,0.8], (0.8,1.25], (1.25,2], (2,+ ⁇ ).
- the corresponding normalized aspect ratio can be preset.
- the normalized aspect ratio corresponding to one aspect ratio range can representatively represent images of various original aspect ratios within the aspect ratio range.
- the aspect ratio of the original aspect ratios of 9:16 and 3:4 is (0,0.8), and since 2:3 can be representatively represented (0,0.8) ]
- This image in the aspect ratio range therefore, 2:3 is used as the normalized aspect ratio corresponding to the aspect ratio range (0, 0.8).
- 1:1 can be selected as the aspect ratio range (0.8).
- the aspect ratio range of the original aspect ratio of the image can be determined according to Table 1, and then, according to the aspect ratio range of the original aspect ratio
- the normalized aspect ratio is determined, and a normalized aspect ratio corresponding to the aspect ratio range is determined, so that the original aspect ratio of the image can be converted to the normalized aspect ratio.
- Step 102 Sort the normalized attributes of the converted images according to the order in which the images are to be displayed, to obtain a normalized attribute sequence.
- the display order of the plurality of images is predetermined when displaying a plurality of images (for example, the display time of each image may be displayed in order from front to back or from back to front), and the image name may also be followed.
- the order of the initials in the alphabet is displayed in order from front to back or from back to front. Therefore, after the original attributes of the images to be displayed are converted into normalized attributes by step 101, the display of each image can be displayed. In order, the normalized attributes of each converted image are directly sorted to obtain a normalized attribute sequence.
- a corresponding attribute identifier may be set for each normalized attribute, and each normalized attribute may be represented by a corresponding attribute identifier.
- the method for obtaining the normalized attribute sequence may be: determining an attribute identifier corresponding to the normalized attribute of each converted image, and normalizing the attribute of each converted image according to a display order in which each image is to be displayed.
- the corresponding attribute identifiers are sorted, and the obtained identification sequence is used as a sequence of normalized attributes.
- the attribute identifier may include, but is not limited to, a letter, a Chinese character, a number, or other characters, or may be a character string composed of a combination of the above several characters.
- the attribute identifier W is the attribute identifier P for the normalized aspect ratio of 3:1.
- the correspondence between the aspect ratio range, the normalized aspect ratio, and the attribute identifier of the image is as shown in Table 2:
- the image to be displayed is the four images of image a, image b, image c, and image d
- the normalized aspect ratio corresponding to the aspect ratio range of the original aspect ratio of image a is 2:3
- the attribute identifier corresponding to the normalized aspect ratio 2:3 is T
- the attribute identifier corresponding to the image a is T
- the original aspect ratio of the image b corresponds to a normalized aspect ratio corresponding to the aspect ratio of 1:1
- the attribute corresponding to the image b is identified as N
- the original aspect ratio of the image c is the width and height.
- the normalized aspect ratio corresponding to the range is 3:2, and the attribute corresponding to the image c is identified as W, and the normalized aspect ratio of the original aspect ratio of the image d is 3:1. , the attribute corresponding to the image d is identified as P.
- the attribute identifiers corresponding to the normalized attributes of the converted images are sorted, and the obtained identification sequence is “TNWP”.
- the identification sequence "TNWP" is used as a sequence of normalized attributes.
- Step 103 Search for the display mode corresponding to the normalized attribute sequence in the pre-stored display mode, and display the converted images by using the displayed display manner.
- the preset normalized attribute is a limited number of normalized attributes, it is theoretically possible to exhaust all the normalized attribute sequences composed of these normalized attributes, and Preset the corresponding presentation for each normalized attribute sequence. Then, according to the normalized attribute sequence obtained in step 102, the display mode corresponding to the normalized attribute sequence can be directly searched in the pre-stored display mode, and the converted display method obtained by step 101 is displayed by using the found display manner. Each image.
- the obtained normalized attribute sequence is "TNWP", and the pre-stored "TNWP" corresponding display mode is as shown in FIG. 2a, that is, the image corresponding to the attribute identifier T is displayed in the first On the left side of the line, the image corresponding to the attribute identifier N is displayed in the middle of the first line, the image corresponding to the attribute identifier W is displayed on the right side of the first line, and the image with the attribute identifier P is displayed on the second line, and the first The three images displayed in the row are equal in height, the sum of the widths is the width of the page where the image is displayed, and the width of the image displayed in the second row is the width of the page on which the image is displayed.
- the four images of the images a to d converted to the corresponding normalized aspect ratios can be displayed in the manner shown in FIG. 2a.
- a schematic diagram showing the four images is shown in FIG. 2b.
- the preset normalization attributes are only a limited number
- the number of images to be displayed is not fixed, and assuming that the number of images to be displayed is n
- the attribute is four, so the need for an exhaustive normalized attribute sequence is 4 1 + 4 2 + 4 3 + ... + 4 n-1 + 4 n .
- an exhaustive representation of the normalized attribute sequence is required.
- the number will increase exponentially, and it will be unacceptable because it takes up a lot of storage resources. Therefore, in the embodiment of the present application, in order to ensure that the number of display modes corresponding to the various normalized attribute sequences is not excessive in the actual application scenario, to ensure the applicability of the method shown in FIG.
- the number of images displayed in any of the pre-saved presentations is not greater than the set number.
- the set number can be 4, and in theory, only 340 kinds of display modes corresponding to the normalized attribute sequence need to be exhausted.
- an end identifier may be added at the end of the normalized attribute sequence obtained in step 102.
- the end identifier may be, for example, “#”. For example, if the normalized attribute sequence obtained in the above example is “TNWP”, the normalized attribute sequence after adding the end identifier is “TNWP#”.
- the normalized attribute sequence is obtained, in step 103 shown in FIG. 1, the normalized attribute is searched in the pre-saved display mode.
- the method corresponding to the display mode of the sequence and displaying the converted image by using the displayed display manner can be as shown in FIG. 3 .
- FIG. 3 is a process for searching for a corresponding display manner and displaying an image according to a normalized attribute sequence according to an embodiment of the present application, and specifically includes the following steps:
- Step 1031 Add a normalized attribute in the normalized attribute sequence to a preset storage space according to a sequence of normalized attributes in the normalized attribute sequence.
- the preset storage space described in the embodiment of the present application may be a reserved stack or a part of a cache. This storage space is emptied during initialization.
- the normalized attribute in the embodiment of the present application can be represented by the corresponding attribute identifier, in step 1031, the normalized attribute sequence may be in the order of the attribute identifiers in the normalized attribute sequence.
- An attribute ID is added to the preset storage space.
- the normalized attribute (ie, normalized aspect ratio) sequence obtained by step 102 shown in FIG. 1 is “TNTPPTW#” (where “#” is the end identifier)
- the The first attribute identifier (ie, the first T) in the normalized attribute sequence is added to the preset storage space.
- the sub-sequence composed of the normalized attributes currently stored in the storage space is "T".
- Step 1032 In the pre-stored display mode, search for a display manner corresponding to the sub-sequence formed by each normalized attribute stored in the current storage space.
- the current attribute added to the storage space and the order of adding each attribute identifier may be determined to be stored by the current storage space.
- the display mode corresponding to the sub-sequence "T" can be searched for in the pre-stored display mode.
- Step 1033 Determine whether the display mode corresponding to the sub-sequence is found. If step 1034 is performed, otherwise return to step 1031.
- Step 1034 Display the converted image to which each normalized attribute stored in the storage space belongs, and clear the sub-sequence, and perform step 1035.
- Step 1035 Determine whether all images have been displayed. If yes, go to step 1036. Otherwise, return to step 1031.
- Step 1036 The process ends.
- the searched display manner is used to display the normalized attributes stored in the current storage space.
- the converted image is added, and the subsequence is emptied, and the next normalized attribute (specifically, the attribute identifier corresponding to the normalized attribute) in the normalized attribute sequence is added to the storage space through step 1031.
- step 1032 searching for the display manner corresponding to the sub-sequence formed by the current normalized attributes stored in the storage space until all the converted images are displayed; if not found by the current storage space Returning to the sub-sequence formed by each normalized attribute, returning to step 1031, the next step in the normalized attribute sequence
- the normalized attribute is added to the storage space, and through step 1032, the display manner corresponding to the sub-sequence formed by the current normalized attributes stored in the storage space is searched until the current storage space is found.
- the searched display mode is used to display the converted image to which the normalized attribute stored in the current storage space belongs.
- step 1032 if the display mode corresponding to the sub-sequence "T" is not found in step 1032, the determination result in step 1033 is no, so returning to step 1031, the second of the normalized attribute sequence "TNTPPTW#" is returned.
- the attribute identifier "N” is added to the storage space, and since the attribute identifiers currently stored in the storage space are "T" and "N", and the order of addition is "T” and "N", The sub-sequence formed by each attribute identifier stored in the storage space becomes "TN", and then step 1032 is executed to continue searching for the display mode corresponding to the sub-sequence "TN".
- step 1034 is executed, that is, the attribute identifiers "T" and "N" in the sub-sequence are displayed in the displayed display manner.
- the normalized attribute belongs to the converted image, and the subsequence is cleared, and step 1035 is performed.
- step 1035 it may be determined whether there is an end identifier "#" in the previous subsequence. If not, it may be determined that all images are not displayed, and if so, it is determined that all images have been displayed. Since the previous subsequence is "TN”, there is no end identifier "#”, so the judgment result of step 1035 is no, and the process returns to step 1031, and the third attribute identifier "T in the normalized attribute sequence "TNTPPTW#" is returned. "Add to the storage space and continue with step 1032, looping through until all the images are displayed.
- the width of the display area occupied by the display image is the page.
- the width of the page is the page on which the image is displayed. That is to say, when displaying images in any one of the display modes, 100% of the page width is occupied for display, so as to maximize the utilization of the page.
- the gap between the displayed images may not be greater than a set threshold. For example, the gap width is no more than 10 pixels.
- the image is displayed by using any of the pre-stored display modes, 100% of the page width is occupied for display. Therefore, the display mode corresponding to the first sub-sequence is found and each image corresponding to the sub-sequence is displayed. Then, when searching for the display mode corresponding to the second sub-sequence and displaying the image, the image corresponding to the second sub-sequence can be continuously displayed below the display area of the image for displaying the image corresponding to the first sub-sequence.
- the aspect ratio of the image is fixed, that is, the ratio of the width to the height of the image is fixed, but the width and height of the same normalized aspect ratio image are different in different display modes.
- the image width is 100%, and the page width is fixed, and the gap between the images is not greater than the set threshold, so When displaying an image in some way, the width and height of each image can be determined according to the width of the page, the gap between the images, and the normalized aspect ratio of each image, and the width and height of each image are normalized accordingly.
- the aspect ratio is scaled to a defined width and height, and the display is used to present the image.
- the method of finding the corresponding display manner and displaying the image according to the normalized attribute sequence is not limited to the method shown in FIG. 3, and may be other methods, for example, an image displayed by any one of the preset display modes.
- the normalized attribute sequence may be directly divided into several sub-sequences, wherein the number of attribute identifiers included in each sub-sequence is not greater than The set quantity, and then, for each sub-sequence obtained by the partition, in the pre-stored display manner, searching for the display manner corresponding to the sub-sequence, and displaying the normalization corresponding to each attribute identifier included in the sub-sequence by using the display manner
- the converted image to which the attribute belongs is not repeated here.
- each image may be displayed according to other original attributes of each image, for example, when the original attribute of the image is description information, An image, determining a type of the image according to a keyword in the description information of the image (eg, when the keyword is a certain place name or a scenic spot name, determining the image type as a landscape type), and according to the type of the previous image
- the correspondence with the normalized attribute for example, the normalized attribute corresponding to the landscape type may also be a normalized aspect ratio of 3:1), and the image is converted into a normalized attribute corresponding to the type of the image, and then According to the corresponding display of the normalized attributes, we will not repeat them here.
- the present application further provides an image display device, as shown in FIG.
- FIG. 59 is a schematic structural diagram of an image display processing apparatus according to an embodiment of the present disclosure, which specifically includes:
- the conversion module 5901 is configured to convert the original attribute of the image into a corresponding normalized attribute according to the original attribute of the image and the corresponding relationship between the original attribute and the normalized attribute for each image;
- the sequence obtaining module 5902 is configured to sort the normalized attributes of the converted images according to a display order in which each image is to be displayed, to obtain a normalized attribute sequence;
- the display module 5903 is configured to search for a display manner corresponding to the normalized attribute sequence in a pre-stored display manner, and display the converted images by using the displayed display manner.
- the conversion module 5901 is specifically configured to determine, according to an original aspect ratio of the image, a range of aspect ratios in which the original aspect ratio is located, according to a correspondence between a preset aspect ratio range and a normalized aspect ratio. And determining a normalized aspect ratio corresponding to the aspect ratio range in which the original aspect ratio is located, and converting the aspect ratio of the image to the determined normalized aspect ratio.
- the display module 5903 is specifically configured to perform the following steps A to C:
- Step A Add a normalized attribute in the normalized attribute sequence to a preset storage space according to a sequence of normalized attributes in the normalized attribute sequence;
- Step B In the pre-stored display mode, search for a display manner corresponding to the sub-sequence formed by each normalized attribute stored in the current storage space, and if not found, return to step A, and if found, execute Step C;
- Step C Display the converted image to which the normalized attribute stored in the current storage space belongs, and clear the storage space, and continue to perform step A until all converted images are displayed. .
- the normalized attribute is represented by a corresponding attribute identifier.
- the display module 5903 displays the width of the display area occupied by the image in any display manner saved in advance as the width of the page, wherein the page is a page where the image is displayed; and/or the display module 5903 adopts a pre- The number of images displayed in any of the saved presentations is no more than the set number.
- a normalized attribute sequence can be obtained by converting the original attributes of each image into corresponding normalized attributes, and according to the order in which the images are to be displayed.
- the converted images may be displayed in a display manner corresponding to the normalized attribute sequence found in the pre-saved display mode.
- the technical solution provided by the present application does not display images of various sizes in a fixed-size block when displaying images of multiple sizes in a page, but may be based on original attributes of the image.
- the feature is to display the image in a manner suitable for the original attribute, thus effectively improving the flexibility of displaying the image.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is an example of a computer readable medium.
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology.
- the information can be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
- embodiments of the present application can be provided as a method, system or computer Program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
- the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种图像的展示处理方法和装置,用以解决现有技术中展示图像的方式灵活性较低的问题。该方法通过将各图像的原始属性转换为对应的归一化属性,并且按照要展示各图像的展示顺序,得到归一化属性序列,然后可以采用在预先保存的展示方式中查找到的与归一化属性序列对应的展示方式展示转换后的各图像。由于在页面中展示多种尺寸的图像时,并非是在固定尺寸的区块中展示多种多样尺寸的图像,而是可以根据图像的原始属性的特点,采用适合于该原始属性的展示方式展示图像,因此,可有效提高展示图像的灵活性。
Description
本申请涉及计算机技术领域,更具体地,涉及一种图像的展示处理方法和装置。
随着计算机技术的发展,用户已经可以方便的通过多种渠道获取各种多媒体信息,如,通过网络在线观看某个视频或图片,或者,调取存储在本地的音频进行播放。而为了使用户可以更加直观方便的辨别出多媒体信息的内容,将更具代表性的图像作为多媒体信息的标识展示给用户的方法应运而生。
例如,对于一个多媒体信息来说,如果该多媒体信息是视频信息,则可将该视频信息中的某一帧图像作为该多媒体信息的标识展示给用户,如果该多媒体信息是某歌手专辑中的某个歌曲(即,音频信息),则可将该专辑的封面图像作为该多媒体信息的标识展示给用户,如果该多媒体信息只是一幅图像,则可直接将该图像作为该多媒体信息的标识展示给用户。这样,用户就可以根据作为多媒体信息的标识的图像,直观的辨别出相应多媒体信息中的内容。
然而,在实际应用场景中,要向用户提供的多媒体信息的数量往往是很多的,因此,要展示给用户的这些作为多媒体信息的标识的图像也是很多的,如果展示给用户的多个图像杂乱无章,不但会引起用户的反感,也会极大的降低用户根据这些图像进行操作的便利性,因此,在现有技术中,将多个图像展示给用户的方法一般为:预先将要展示图像的页面划分为若干个区块,再按照在一个区块中添加一个图像的原则,将多个图像展示在不同的区块中。其中,将一个图像添加到一个区块中时,可根据该区块的大小,将该图像按比例放缩,再添加到该区块中。
但是,由于不可能预见要展示的图片的尺寸,因此,预先在页面中划分区块时,划分的区块的尺寸都是固定的,而在实际应用场景中,要展示的图
片的尺寸却是多种多样的,如:一般单反相机拍摄的图像的宽高比一般是3:2或2:3,卡片相机拍摄的图像多为3:4或4:3,720p和1080p的屏幕上显示的图像一般是16:9或9:16,专辑封面的图像一般是1:1。
显然,在固定尺寸的区块中展示多种多样尺寸的图像是非常不灵活的,而且,某些尺寸的图像按比例放缩并添加到区块中后,会导致页面中出现过多的空白区域,降低了页面的利用率,或者,会导致放缩后的图像的面积过小,不便于用户操作。
因此,在本领域,需要一种图像的展示处理方案,能够解决展示图像的方式灵活性较低的问题。
发明内容
本申请的主要目的在于提供一种图像的展示处理方法和装置,用以解决现有技术中展示图像的方式灵活性较低的问题。
根据本申请的第一方面,提供了一种图像的展示处理方法,包括:针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性;按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列;在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
根据本申请的第二方面,提供了一种图像的展示处理装置,包括:转换模块,用于针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性;序列获取模块,用于按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列;展示模块,用于在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
根据本申请的技术方案,能够通过将各图像的原始属性转换为对应的归
一化属性,并且按照要展示各图像的展示顺序,得到归一化属性序列,然后可以采用在预先保存的展示方式中查找到的与归一化属性序列对应的展示方式展示转换后的各图像。与现有技术相比,本申请提供的技术方案在页面中展示多种尺寸的图像时,并非是在固定尺寸的区块中展示多种多样尺寸的图像,而是可以根据图像的原始属性的特点,采用适合于该原始属性的展示方式展示图像,因此,可有效提高展示图像的灵活性。
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本申请实施例提供的图像的展示处理方法的流程图;
图2a为本申请实施例提供的归一化属性序列“TNWP”对应的展示方式示意图;
图2b为本申请实施例提供的采用如图2a所示的展示方式展示图像a~d的示意图;
图3为本申请实施例提供的根据归一化属性序列查找相应的展示方式并展示图像的过程;
图4~57为本申请实施例提供的当归一化属性为四个、且每种预设的展示方式所展示的图像的数量不大于四个时,穷举的每种归一化属性序列对应的展示方式示意图;
图58为本申请实施例提供的基于图4~57所示的展示方式展示的归一化属性序列“TNTPPTW#”对应的各图像的示意图;
图59为本申请实施例提供的图像的展示处理装置结构示意图。
本申请的主要思想在于,通过将各图像的原始属性转换为对应的归一化属性,并采用该归一化属性对应的展示方式展示转换后的各图像,以达到提
高展示图像的灵活性的目的。本申请提供的技术方案可以应用于涉及图像展示的各种场景,例如,手机相册中照片的展示、个人计算机(Personal Computer,PC)展示网页中的图像等。
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参考图1,图1为本申请实施例提供的图像的展示处理方法的流程图。
步骤101,针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性。
具体而言,在对要展示的各图像进行展示之前,可先提取各图像的原始属性,然后根据各图像的原始属性以及预设的原始属性与归一化属性的对应关系,对要展示的图像的原始属性进行归一化处理。也就是说,根据预设的原始属性与归一化属性的对应关系,将各图像的原始属性转换为对应的归一化属性。
在本申请中,图像的原始属性包括但不限于图像的宽高比、颜色、格式、描述信息、名称、作者、创建日期等。相应地,归一化属性也包括但不限于图像的宽高比、颜色、格式、描述信息、名称、作者、创建日期等。
下面以图像的原始属性为该图像的原始宽高比为例进行说明。
当进行归一化处理所针对的图像的原始属性是图像的原始宽高比时,归一化属性为归一化宽高比。则在步骤101中,将一个图像的原始属性转换为对应的归一化属性时,可根据该图像的原始宽高比,确定该原始宽高比所在的宽高比范围,根据预设的宽高比范围与归一化宽高比的对应关系,确定该原始宽高比所在的宽高比范围对应的归一化宽高比,再将该图像的宽高比转换为确定的归一化宽高比。其中,在将该图像的宽高比转换为归一化宽高比
时,可以按照该归一化宽高比直接将该图像的宽高比放缩成该归一化宽高比,或者,也可以通过剪裁的方式,将该图像剪裁成该归一化宽高比的图像。
由于理论上一个图像的原始宽高比可以是任意的正数,因此,在预设宽高比范围时,可以在(0,+∞)这个区间内任意划分宽高比范围。而由于在实际的应用场景中,一般单反相机拍摄的图像的原始宽高比一般是3:2或2:3,卡片相机拍摄的图像的原始宽高比多为3:4或4:3,720p和1080p的屏幕上显示的图像的原始宽高比一般是16:9或9:16,专辑封面的图像的原始宽高比一般是1:1,全景图的原始宽高比不定,一般为3:1~7:1,因此,可以将预设四种宽高比范围,分别是(0,0.8]、(0.8,1.25]、(1.25,2]、(2,+∞)。
对于每一个宽高比范围,可以预设对应的归一化宽高比。其中,一个宽高比范围对应的归一化宽高比可以代表性地体现该宽高比范围内的各种原始宽高比的图像。例如,在上述常见的原始宽高比中,原始宽高比9:16和3:4所在的宽高比范围是(0,0.8],而由于2:3可以代表性的体现(0,0.8]这个宽高比范围内的图像,因此,将2:3作为宽高比范围(0,0.8]对应的归一化宽高比。类似的,可以选择1:1作为宽高比范围(0.8,1.25]对应的归一化宽高比,选择3:2作为宽高比范围(1.25,2]对应的归一化宽高比,选择3:1作为宽高比范围(2,+∞)对应的归一化宽高比。由此,作为本申请示意性的示例,预设的宽高比范围和归一化宽高比的对应关系如表1所示:
| 宽高比范围 | 归一化宽高比 |
| (0,0.8] | 2:3 |
| (0.8,1.25] | 1:1 |
| (1.25,2] | 3:2 |
| (2,+∞) | 3:1 |
表1
如表1可知,当提取一个图像的原始宽高比后,可以根据表1确定该图像的原始宽高比所在的宽高比范围,然后,根据该原始宽高比所在的宽高比范围与归一化宽高比的对应关系,确定与该宽高比范围对应的归一化宽高比,从而可以将图像的原始宽高比转换为该归一化宽高比。
步骤102,按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列。
具体而言,由于在展示多个图像时,这多个图像的展示顺序是预先确定的(如,可按照各图像的生成时间从前到后或从后到前的顺序展示,也可按照图像名称首字母在字母表中的排序从前到后或从后到前的顺序展示),因此,通过步骤101将要展示的各图像的原始属性转换为归一化属性后,可以按照要展示各图像的展示顺序,直接对转换后的各图像的归一化属性进行排序,得到归一化属性序列。
此外,在实际操作中,为了便于根据归一化属性序列进行后续的展示,可以为每个归一化属性设定相应的属性标识,每个归一化属性均可通过对应的属性标识表示,相应的,得到归一化属性序列的方法可以为:确定转换后的各图像的归一化属性对应的属性标识,按照要展示各图像的展示顺序,对转换后的各图像的归一化属性对应的属性标识进行排序,将得到的该标识序列作为归一化属性序列。其中,属性标识可以包括但不限于字母、汉字、数字或其他字符,也可以是由上述几种字符的组合构成的字符串。
继续沿用上例,可以为归一化宽高比2:3设定属性标识T,为归一化宽高比1:1设定属性标识N,为归一化宽高比3:2设定属性标识W,为归一化宽高比3:1设定属性标识P,则图像的宽高比范围、归一化宽高比、属性标识之间的对应关系如表2所示:
| 宽高比范围 | 归一化宽高比 | 属性标识 |
| (0,0.8] | 2:3 | T |
| (0.8,1.25] | 1:1 | N |
| (1.25,2] | 3:2 | W |
| (2,+∞) | 3:1 | P |
表2
如表2所示,假设要展示的图像为图像a、图像b、图像c、图像d这四个图像,图像a的原始宽高比所在的宽高比范围对应的归一化宽高比为2:3,
而归一化宽高比2:3对应的属性标识为T,则图像a对应的属性标识为T。类似的,图像b的原始宽高比所在的宽高比范围对应的归一化宽高比为1:1,则图像b对应的属性标识为N,图像c的原始宽高比所在的宽高比范围对应的归一化宽高比为3:2,则图像c对应的属性标识为W,图像d的原始宽高比所在的宽高比范围对应的归一化宽高比为3:1,则图像d对应的属性标识为P。假设要展示这四个图像的顺序为图像a、图像b、图像c、图像d,则对转换后的各图像的归一化属性对应的属性标识进行排序,得到的标识序列为“TNWP”,将该标识序列“TNWP”作为归一化属性序列。
步骤103,在预先保存的展示方式中,查找该归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
具体而言,由于预设的归一化属性是数量有限的几种归一化属性,因此,理论上可以穷举出所有由这几种归一化属性所构成的归一化属性序列,并为每种归一化属性序列预设对应的展示方式。则根据步骤102得到的归一化属性序列,可以直接在预先保存的展示方式中,查找该归一化属性序列对应的展示方式,并采用查找到的展示方式展示通过步骤101得到的转换后的各图像。
继续沿用上例,由于得到的归一化属性序列为“TNWP”,而预先存储的“TNWP”对应的展示方式为如图2a所示的展示方式,即,属性标识T对应的图像展示在第一行的左侧,属性标识N对应的图像展示在第一行的中间,属性标识W对应的图像展示在第一行的右侧,属性标识为P的图像展示在第二行,且第一行展示的三个图像的高度相等,宽度之和为展示图像所在的页面的宽度,第二行展示的图像的宽度为展示图像所在的页面的宽度。则可采用如图2a所示的展示方式展示转换成相应归一化宽高比后的图像a~d这四个图像,展示这4个图像的示意图如图2b所示。
进一步的,在实际应用场景中,虽然预设的归一化属性只是有限的几种,但是要展示的图像的数量却并不是固定的,假设要展示的图像的数量为n个,则由于归一化属性是四种,因此需要穷举的归一化属性序列共有41+42+43+……+4n-1+4n种。如,上例中要展示四个图像,因此需要穷举的归一
化属性序列共有41+42+43+44=340种。穷举340种归一化属性序列对应的展示方式并保存在实际应用场景中是可接受的,但如果要展示的图像的数量较多,则需要穷举的归一化属性序列对应的展示方式的数量会呈指数级别增长,也就会因为要占用大量的存储资源而不被接受。因此,为了保证在实际应用场景中穷举各种归一化属性序列对应的展示方式的数量不至于过大,以保证上述如图1所示的方法的适用性,在本申请实施例中,预先保存的任一展示方式所展示的图像的数量不大于设定数量。例如,该设定数量可以为4,则理论上只需穷举340种归一化属性序列对应的展示方式即可。
另外,为了表示出归一化属性序列的结束位置,还可在步骤102得到的归一化属性序列的末尾添加一个结束标识。其中,该结束标识例如可以为“#”。如,上例中得到的归一化属性序列为“TNWP”,则添加了结束标识后的归一化属性序列即为“TNWP#”。
相应的,当要展示的图像的数量大于上述设定数量时,则在得到归一化属性序列后,如图1所示的步骤103中,在预先保存的展示方式中查找该归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的图像的方法可以如图3所示。
图3为本申请实施例提供的根据归一化属性序列查找相应的展示方式并展示图像的过程,具体包括以下步骤:
步骤1031:按照该归一化属性序列中各归一化属性的先后顺序,将该归一化属性序列中的一个归一化属性添加到预设的存储空间中。
其中,本申请实施例中所述的预设的存储空间可以是预留的一个堆栈或一部分缓存。在初始化时,该存储空间是被清空的。并且,由于本申请实施例中归一化属性可通过对应的属性标识表示,因此,在步骤1031中,可按照归一化属性序列中各属性标识的先后顺序,将归一化属性序列中的一个属性标识添加到预设的存储空间中。
例如,假设通过如图1所示的步骤102得到的归一化属性(即,归一化宽高比)序列为“TNTPPTW#”(其中,“#”为结束标识),则可先将该
归一化属性序列中的第一个属性标识(即,第一个T)添加到预设的存储空间中。则此时,由当前该存储空间中存储的各归一化属性所构成的子序列为“T”。
步骤1032:在预先保存的展示方式中,查找由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式。
具体的,由于可通过属性标识表示相应的归一化属性,因此,可根据当前添加到该存储空间中的各属性标识,以及添加各属性标识的先后顺序,确定由当前该存储空间中存储的各属性标识所构成的子序列。
继续沿用上例,由于由当前该存储空间中存储的属性标识所构成的子序列为“T”,因此,可在预先保存的展示方式中,查找该子序列“T”对应的展示方式。
步骤1033:判断是否查找到该子序列对应的展示方式,若是执行步骤1034,否则返回步骤1031。
步骤1034:采用查找到的展示方式,展示当前该存储空间中存储的各归一化属性所属的转换后的图像,并清空子序列,执行步骤1035。
步骤1035:判断是否已经展示了所有图像,若是,执行步骤1036,否则,返回步骤1031。
步骤1036:流程结束。
也即,若查找到由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式,则采用查找到的展示方式,展示当前该存储空间中存储的各归一化属性所属的转换后的图像,并清空子序列,继续通过步骤1031将该归一化属性序列中的下一个归一化属性(具体可以是归一化属性对应的属性标识)添加到该存储空间中,并执行步骤1032,查找由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式,直至展示所有转换后的图像为止;若未查找到由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式,则返回步骤1031,将该归一化属性序列中的下一
个归一化属性添加到该存储空间中,并通过步骤1032,查找由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式,直至查找到由当前该存储空间中存储的各归一化属性所构成的子序列对应的展示方式时,再采用查找到的展示方式,展示当前该存储空间中存储的各归一化属性所属的转换后的图像。
继续沿用上例,假设步骤1032中未查找到子序列“T”对应的展示方式,则步骤1033的判断结果为否,因此返回步骤1031,将归一化属性序列“TNTPPTW#”中的第二个属性标识“N”添加到该存储空间中,则由于当前该存储空间中存储的属性标识为“T”和“N”,且添加的先后顺序为“T”、“N”,因此,由当前该存储空间中存储的各属性标识所构成的子序列变成了“TN”,然后执行步骤1032,继续查找子序列“TN”对应的展示方式。
假设查找到了子序列“TN”对应的展示方式,则步骤1033的判断结果为是,执行步骤1034,即,采用查找到的展示方式,展示子序列中的属性标识“T”和“N”对应的归一化属性所属的转换后的图像,并清空子序列,执行步骤1035。
在执行步骤1035时,可判断前一个子序列中是否存在结束标识“#”,若不存在,可确定未展示所有图像,若存在,则确定已经展示了所有的图像。由于前一个子序列为“TN”,不存在结束标识“#”,因此步骤1035的判断结果为否,返回步骤1031,将归一化属性序列“TNTPPTW#”中的第三个属性标识“T”添加到存储空间中,并继续执行步骤1032,以此循环,直至展示了所有图像为止。
需要说明的是,在上例中,虽然预设的每种展示方式所展示的图像的数量不大于4,因此理论上共可穷举出340种归一化属性序列对应的展示方式,但是,在实际应用中,采用如图3所示的方法查找展示方式并展示图像时,理论上的这340种归一化属性序列有很多是存在矛盾的,因此,实际上并不需要穷举出340种归一化属性对应的展示方式。具体的,当每种展示方式所展示的图像的数量不大于4时,需要穷举出的归一化属性序列及其对应的展示方式如图4~图57所示。
如图4~57所示,共穷举了54种归一化属性序列及其对应的展示方式,这54种归一化属性序列中并不包含归一化属性序列“TT”(需要说明的是,归一化属性序列“TT”并不等同于“TT#”,“TT#”表示归一化属性序列中的最后两个属性标识是“TT”,而“TT”则表示归一化属性序列中包含属性标识“TT”,但并不是最后两个属性标识),这是因为如果穷举的归一化属性序列中包含“TT”,且展示方式中包含“TT”对应的展示方式,那么采用如图3所示的查找展示方式并展示图像的方法时,如果由当前存储空间中存储的各属性标识所构成的子序列为“TT”,后续就不会再查找归一化属性序列“TTT”、“TTN”、“TTW”或“TTP”,而会直接采用“TT”对应的展示方式展示图像。也就是说,归一化属性序列“TTT”、“TTN”、“TTW”、“TTP”这几种序列,与归一化属性序列“TT”是矛盾的。类似的,理论上的340种归一化属性序列中存在诸多这种矛盾的序列,从而,将矛盾的序列去除后,就只剩下如图4~57这54种。
进一步的,在采用如图3所示的方法查找展示方式并相应展示图像时,每采用一种展示方式展示图像时,采用该展示方式展示图像时,展示图像所占用的展示区域的宽度为页面的宽度,其中,所述的页面为展示图像所在的页面。也即,采用任意一种展示方式展示图像时,都要占用100%的页面宽度进行展示,以尽量提高页面的利用率。而且,为了进一步提高页面的利用率,采用一种展示方式展示图像时,所展示的各图像之间的空隙可不大于设定阈值。例如,空隙宽度不大于10个像素。
另外,由于采用预先保存的任意一种展示方式展示图像时,都要占用100%的页面宽度进行展示,因此,在查找到第一个子序列对应的展示方式并展示该子序列对应的各图像之后,查找第二个子序列对应的展示方式并展示图像时,可在页面中用于展示第一个子序列对应的图像的展示区域的下方继续展示第二个子序列对应的图像。
继续沿用上例,由于得到的归一化属性序列为“TNTPPTW#”,因此,基于图4~57,展示“TNTPPTW#”对应的各图像的示意图如图58所示。
另外,由图4~图57可见,虽然对于一种归一化宽高比的图像来说,该
图像的宽高比是固定的,也即,该图像的宽度与高度的比值是固定的,但是在不同的展示方式下,同一种归一化宽高比的图像的宽度和高度却不尽相同,而由于本申请实施例中采用任意一种展示方式展示图像时,都要占用100%的页面宽度,页面宽度是固定的,而且图像之间的空隙也是不大于设定阈值的,因此,根据某种展示方式展示图像时,可根据页面宽度、图像之间的空隙、各图像的归一化宽高比,确定各图像的宽度和高度,并将各图像宽度和高度按相应的归一化宽高比放缩至确定的宽度和高度,再采用该展示方式展示图像。
当然,根据归一化属性序列查找相应的展示方式并展示图像的方法并不仅限于如图3所示的方法,也可以是其他方法,例如,当预设的任意一种展示方式所展示的图像的数量不大于设定数量(如,该设定数量为4)时,可直接将该归一化属性序列划分为若干个子序列,其中,每个子序列中所包含的属性标识的数量均不大于该设定数量,然后针对划分得到的每个子序列,在预先保存的展示方式中,查找该子序列对应的展示方式,并采用该展示方式展示该子序列中包含的各属性标识对应的归一化属性所属的转换后的图像,这里就不再一一赘述。
以上仅是以各图像的原始属性为原始宽高比为例说明的图像展示方法,当然还可以根据各图像的其他原始属性展示各图像,例如,当图像的原始属性为描述信息时,可针对一个图像,根据该图像的描述信息中的关键词,确定该图像的类型(如,当关键词为某地名或风景区名时,确定该图像类型为风景类型),并根据预先的图像的类型与归一化属性的对应关系(例如,风景类型对应的归一化属性也可以是归一化宽高比3:1),将该图像转换成该图像的类型对应的归一化属性,再根据归一化属性相应的展示,这里就不再一一赘述。
以上为本申请实施例提供的图像的展示方法,基于同样的思路,本申请还提供一种图像的展示装置,如图59所示。
图59为本申请实施例提供的图像的展示处理装置结构示意图,具体包括:
转换模块5901,用于针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性;
序列获取模块5902,用于按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列;
展示模块5903,用于在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
所述转换模块5901具体用于,根据该图像的原始宽高比,确定所述原始宽高比所在的宽高比范围,根据预设的宽高比范围与归一化宽高比的对应关系,确定所述原始宽高比所在的宽高比范围对应的归一化宽高比,将该图像的宽高比转换为确定的归一化宽高比。
所述展示模块5903具体用于,执行下述步骤A~C:
步骤A、按照所述归一化属性序列中各归一化属性的先后顺序,将所述归一化属性序列中的一个归一化属性添加到预设的存储空间中;
步骤B、在预先保存的展示方式中,查找由当前所述存储空间中存储的各归一化属性所构成的子序列对应的展示方式,若未查找到,返回步骤A,若查找到,执行步骤C;
步骤C、采用查找到的展示方式,展示当前所述存储空间中存储的归一化属性所属的转换后的图像,并清空所述存储空间,继续执行步骤A,直至展示所有转换后的图像为止。
所述归一化属性通过对应的属性标识表示。
所述展示模块5903采用预先保存的任一展示方式展示图像所占用的展示区域的宽度为页面的宽度,其中,所述页面为展示图像所在的页面;和/或,所述展示模块5903采用预先保存的任一展示方式所展示的图像的数量不大于设定数量。
根据本申请的技术方案,能够通过将各图像的原始属性转换为对应的归一化属性,并且按照要展示各图像的展示顺序,得到归一化属性序列,然后
可以采用在预先保存的展示方式中查找到的与归一化属性序列对应的展示方式展示转换后的各图像。与现有技术相比,本申请提供的技术方案在页面中展示多种尺寸的图像时,并非是在固定尺寸的区块中展示多种多样尺寸的图像,而是可以根据图像的原始属性的特点,采用适合于该原始属性的展示方式展示图像,因此,可有效提高展示图像的灵活性。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机
程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。
Claims (10)
- 一种图像的展示处理方法,其特征在于,包括:针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性;按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列;在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
- 如权利要求1所述的方法,其特征在于,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性,具体包括:根据该图像的原始宽高比,确定所述原始宽高比所在的宽高比范围;根据预设的宽高比范围与归一化宽高比的对应关系,确定所述原始宽高比所在的宽高比范围对应的归一化宽高比;将该图像的宽高比转换为确定的归一化宽高比。
- 如权利要求1所述的方法,其特征在于,在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示各图像,具体包括:步骤A、按照所述归一化属性序列中各归一化属性的先后顺序,将所述归一化属性序列中的一个归一化属性添加到预设的存储空间中;步骤B、在预先保存的展示方式中,查找由当前所述存储空间中存储的各归一化属性所构成的子序列对应的展示方式,若未查找到,返回步骤A,若查找到,执行步骤C;步骤C、采用查找到的展示方式,展示当前所述存储空间中存储的归一化属性所属的转换后的图像,并清空所述存储空间,继续执行步骤A,直至展示所有转换后的图像为止。
- 如权利要求3所述的方法,其特征在于,所述归一化属性通过对应的属性标识表示。
- 如权利要求1~4任一所述的方法,其特征在于,采用预先保存的任一展示方式展示图像所占用的展示区域的宽度为页面的宽度,其中,所述页 面为展示图像所在的页面;和/或采用预先保存的任一展示方式所展示的图像的数量不大于设定数量。
- 一种图像的展示处理装置,其特征在于,包括:转换模块,用于针对各图像,根据该图像的原始属性,以及预设的原始属性与归一化属性的对应关系,将该图像的原始属性转换为对应的归一化属性;序列获取模块,用于按照要展示各图像的展示顺序,对转换后的各图像的归一化属性进行排序,得到归一化属性序列;展示模块,用于在预先保存的展示方式中,查找所述归一化属性序列对应的展示方式,并采用查找到的展示方式展示转换后的各图像。
- 如权利要求6所述的装置,其特征在于,所述转换模块具体用于,根据该图像的原始宽高比,确定所述原始宽高比所在的宽高比范围,根据预设的宽高比范围与归一化宽高比的对应关系,确定所述原始宽高比所在的宽高比范围对应的归一化宽高比,将该图像的宽高比转换为确定的归一化宽高比。
- 如权利要求6所述的装置,其特征在于,所述展示模块具体用于,执行下述步骤A~C:步骤A、按照所述归一化属性序列中各归一化属性的先后顺序,将所述归一化属性序列中的一个归一化属性添加到预设的存储空间中;步骤B、在预先保存的展示方式中,查找由当前所述存储空间中存储的各归一化属性所构成的子序列对应的展示方式,若未查找到,返回步骤A,若查找到,执行步骤C;步骤C、采用查找到的展示方式,展示当前所述存储空间中存储的归一化属性所属的转换后的图像,并清空所述存储空间,继续执行步骤A,直至展示所有转换后的图像为止。
- 如权利要求8所述的装置,其特征在于,所述归一化属性通过对应的属性标识表示。
- 如权利要求6~9任一所述的装置,其特征在于,所述展示模块采用预先保存的任一展示方式展示图像所占用的展示区域的宽度为页面的宽度,其中,所述页面为展示图像所在的页面;和/或,所述展示模块采用预先保存的任一展示方式所展示的图像的数量不大于设定数量。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410226041.2A CN105335111B (zh) | 2014-05-26 | 2014-05-26 | 一种图像的展示处理方法和装置 |
| CN201410226041.2 | 2014-05-26 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2015180587A1 true WO2015180587A1 (zh) | 2015-12-03 |
Family
ID=54698074
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/079552 Ceased WO2015180587A1 (zh) | 2014-05-26 | 2015-05-22 | 一种图像的展示处理方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105335111B (zh) |
| WO (1) | WO2015180587A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112084367A (zh) * | 2019-06-14 | 2020-12-15 | 西安光启未来技术研究院 | 图片播放方法、装置、计算机设备和存储介质 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108236454B (zh) * | 2016-12-26 | 2021-05-07 | 阿里巴巴集团控股有限公司 | 健康测量数据采集方法及电子设备 |
| JP7098353B2 (ja) * | 2018-03-01 | 2022-07-11 | キヤノン株式会社 | 電子機器およびそのプログラムおよびそのプログラムの記憶媒体および表示制御方法 |
| CN110851749A (zh) * | 2018-07-25 | 2020-02-28 | 北京京东尚科信息技术有限公司 | 图片展示方法、装置、电子设备及可读介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1925590A (zh) * | 2005-08-31 | 2007-03-07 | 索尼株式会社 | 信息处理装置和方法、及程序 |
| US20110038550A1 (en) * | 2008-08-21 | 2011-02-17 | Pere Obrador | Automatic Creation Of A Scalable Relevance Ordered Representation Of An Image Collection |
| CN102567300A (zh) * | 2011-12-29 | 2012-07-11 | 方正国际软件有限公司 | 图片文档的处理方法及装置 |
| CN103546746A (zh) * | 2009-07-31 | 2014-01-29 | 索尼公司 | 图像解码装置、图像解码方法、电视接收机和便携式电话 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103310005A (zh) * | 2013-06-28 | 2013-09-18 | 北京小米科技有限责任公司 | 缩略图显示方法及装置 |
-
2014
- 2014-05-26 CN CN201410226041.2A patent/CN105335111B/zh active Active
-
2015
- 2015-05-22 WO PCT/CN2015/079552 patent/WO2015180587A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1925590A (zh) * | 2005-08-31 | 2007-03-07 | 索尼株式会社 | 信息处理装置和方法、及程序 |
| US20110038550A1 (en) * | 2008-08-21 | 2011-02-17 | Pere Obrador | Automatic Creation Of A Scalable Relevance Ordered Representation Of An Image Collection |
| CN103546746A (zh) * | 2009-07-31 | 2014-01-29 | 索尼公司 | 图像解码装置、图像解码方法、电视接收机和便携式电话 |
| CN102567300A (zh) * | 2011-12-29 | 2012-07-11 | 方正国际软件有限公司 | 图片文档的处理方法及装置 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112084367A (zh) * | 2019-06-14 | 2020-12-15 | 西安光启未来技术研究院 | 图片播放方法、装置、计算机设备和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105335111A (zh) | 2016-02-17 |
| CN105335111B (zh) | 2018-12-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11340754B2 (en) | Hierarchical, zoomable presentations of media sets | |
| CN105786969B (zh) | 信息展示方法和装置 | |
| WO2017129018A1 (zh) | 一种图片处理方法、装置和智能终端 | |
| CN102132244A (zh) | 图像标记用户界面 | |
| WO2019134587A1 (zh) | 视频数据处理方法、装置、电子设备和存储介质 | |
| CN106503059B (zh) | 展示页面推送方法及装置 | |
| CN105354203A (zh) | 一种信息展示方法及装置 | |
| US11176143B2 (en) | Location-aware content detection | |
| CN101853297A (zh) | 一种在电子设备中快速获得期望图像的方法 | |
| CN106033418A (zh) | 语音添加、播放方法及装置、图片分类、检索方法及装置 | |
| CN104103087A (zh) | 一种具有文字介绍功能的图片显示和管理的方法和系统 | |
| WO2015180587A1 (zh) | 一种图像的展示处理方法和装置 | |
| WO2022105507A1 (zh) | 文本录制视频清晰度检测方法、装置、计算机设备及存储介质 | |
| CN105373593A (zh) | 一种展示网页中目标元素的方法及装置 | |
| WO2021098263A1 (zh) | 应用程序的分享方法及装置、电子设备、可读介质 | |
| US20180314698A1 (en) | Media sharing based on identified physical objects | |
| WO2018210113A1 (zh) | 动态信息展示的方法、计算机设备和存储介质 | |
| CN108009251A (zh) | 一种图像文件搜索方法及装置 | |
| WO2017148194A1 (zh) | 一种图片展示方法、装置及电子设备 | |
| WO2023051062A1 (zh) | 一种信息展示方法、装置以及计算机存储介质 | |
| WO2016202306A1 (zh) | 视频处理方法及装置 | |
| WO2015000433A1 (zh) | 一种多媒体查找方法、终端、服务器及系统 | |
| CN107391163A (zh) | 移动终端中页面数据加载方法、装置和应用 | |
| CN106155996A (zh) | 一种本地便签的生成方法及装置 | |
| US11615133B2 (en) | Sharing user generated content for media searches |
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: 15799028 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: 15799028 Country of ref document: EP Kind code of ref document: A1 |