CN103870102A - Method and device for image switching - Google Patents

Method and device for image switching Download PDF

Info

Publication number
CN103870102A
CN103870102A CN201210544740.2A CN201210544740A CN103870102A CN 103870102 A CN103870102 A CN 103870102A CN 201210544740 A CN201210544740 A CN 201210544740A CN 103870102 A CN103870102 A CN 103870102A
Authority
CN
China
Prior art keywords
image
target
picture
corresponding
identifier
Prior art date
Application number
CN201210544740.2A
Other languages
Chinese (zh)
Other versions
CN103870102B (en
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 腾讯科技(武汉)有限公司
Priority to CN201210544740.2A priority Critical patent/CN103870102B/en
Publication of CN103870102A publication Critical patent/CN103870102A/en
Application granted granted Critical
Publication of CN103870102B publication Critical patent/CN103870102B/en

Links

Abstract

A method for image switching comprises the steps of obtaining input image switching instructions; obtaining target image marks corresponding to the image switching instructions; obtaining source image set marks, and obtaining an image mark assembly corresponding to the source image set marks; judging whether the target image marks belong to the image mark assembly; if the target image marks do not belong to the image mark assembly, obtaining target image sets corresponding to the source image set marks, and obtaining target images in the target image sets according to the target image marks; and loading and displaying the target images. In addition, a device for image switching is further provided. Convenience in operation can be improved through the method and device for image switching.

Description

图片切换方法及装置 Image switching method and apparatus

技术领域 FIELD

[0001] 本发明涉及互联网技术领域,特别是涉及一种图片切换方法及装置。 [0001] The present invention relates to the field of Internet technologies, particularly to a method and apparatus for switching image.

背景技术 Background technique

[0002] 现有的互联网技术中,为了方便用户管理个人空间中的图片,通常以图集的方式分类展示多幅图片。 [0002] existing Internet technology in order to facilitate user management of personal space in the picture, usually classified atlas way to show multiple pictures. 用户通过点击图集的封面进入图集展示页面。 Users enter Atlas Atlas display page by clicking on the cover. 图集展示页面则以幻灯片的形式展示图集内的图片。 Atlas page showing places slideshow display pictures in the atlas.

[0003] 然而,传统技术中以幻灯片的形式展示图片的方法只能在依次切换展示图集内的图片,当需要切换图集展示图片时,需要用户先手动退出当前图集,然后再通过多次点击切换进入新的图集后才可继续展示图片,使得用户操作的便利性不足。 [0003] However, the conventional technology methods to show pictures as a slide show can only be switched in order to show the picture in the atlas, when the need to switch atlas to show pictures, requires the user to manually exit the current atlas, then by after multiple clicks to switch into the new atlas can continue to show pictures, so that the user operate convenience insufficient.

发明内容 SUMMARY

[0004] 基于此,有必要提供一种能提高操作的便利性的图片切换方法。 [0004] Based on this, it is necessary to provide the convenience of images that can increase the switching operation method.

[0005] 一种图片切换方法,包括: [0005] An image switching method, comprising:

[0006] 获取输入的图片切换指令; [0006] acquired image switching instruction input;

[0007] 获取所述图片切换指令对应的目标图片标识; [0007] The image acquiring handover instruction identifier corresponding to a target image;

[0008] 获取源图集标识,获取所述源图集标识对应的图片标识集合; [0008] portfolio acquisition source identification, acquiring a source image corresponding to the identifier portfolio identified set;

[0009] 判断所述目标图片标识是否属于所述图片标识集合,若否,则获取与所述源图集标识对应的目标图集,根据所述目标图片标识在所述目标图集中获取目标图片; [0009] Analyzing the target picture belongs to the picture identification identifier set, if not, obtains a target portfolio portfolio and the source corresponding to the identifier, a target image according to the focus acquisition target identified in the target image of FIG. ;

[0010] 加载并展示所述目标图片。 [0010] loads and displays the target picture.

[0011] 此外,还有必要提供一种能提高操作的便利性的图片切换装置。 [0011] In addition, there is a need to provide a convenient one that enhances image switching operation means.

[0012] 一种图片切换装置,包括: [0012] An image switching apparatus comprising:

[0013] 指令获取模块,用于获取输入的图片切换指令; [0013] The instruction acquiring module configured to acquire an input image switching instruction;

[0014]目标图片定位模块,用于获取所述图片切换指令对应的目标图片标识; [0014] The target image positioning module, configured to obtain the picture switching instruction corresponding to the target picture identification;

[0015] 图集获取模块,用于获取源图集标识,获取所述源图集标识对应的图片标识集合; [0015] portfolio obtaining module, configured to obtain the source identifier portfolio, acquiring the source image corresponding to the identifier portfolio identified set;

[0016] 切换检测模块,用于判断所述目标图片标识是否属于所述图片标识集合; [0016] handover detection module, for determining whether the identification of the target picture belongs to the picture identified set;

[0017]目标图片获取模块,用于在所述目标图片标识不属于所述图片标识集合时,获取与所述源图集标识对应的目标图集,根据所述目标图片标识在所述目标图集中获取目标图片; [0017] The target image acquisition module for identifying when the picture does not belong to the target image set identification, obtaining the source identifier corresponding target portfolio portfolio, according to the target identified in the target image of FIG. focus on acquiring a target picture;

[0018] 图片加载模块,用于加载并展示所述目标图片。 [0018] Image loading means for loading and displaying the target image.

[0019] 上述图片切换方法和装置,在接收到图片切换指令之后,根据图片切换指令中提取的目标图片标识和获取的源图集(当前展示的图集)标识判断是否需要切换图集,并在需要切换图集时,自动获取与源图集标识对应的目标图集,根据目标图片标识在目标图集中获取目标图片,使得用户在操作时,不需要进行多次选择图集的操作,从而提高了操作的便利性。 [0019] The image switching method and apparatus, after receiving the image switching instruction based on the image switching instruction extracted target picture source identification and Atlas (Atlas current shown) determines whether the acquired identifier Atlas be switched, and switching portfolio when needed, and automatic acquisition target portfolio portfolio source identifier corresponding to the identification image capturing target concentration in view of certain target pictures, so that the user at the time of operation, no multiple selection operation atlas, whereby improved ease of operation. [0020] 同时,图片切换后仅仅加载目标图片,而并不加载整个目标图集的图片,使得内存占用减小,提闻了存储空间的利用率。 [0020] Meanwhile, the image just loaded handover target picture, but does not load the entire target image atlas, so memory usage is reduced, mention smell storage space utilization.

附图说明 BRIEF DESCRIPTION

[0021] 图1为一个实施例中图片切换方法的流程图; [0021] FIG. 1 is a flowchart of an embodiment of image switching method;

[0022] 图2为一个实施例中图集显示界面的展示效果图; [0022] Figure 2 is an embodiment showing the effect of portfolio embodiment of FIG interface display;

[0023] 图3为一个实施例中图片显示界面的展示效果图; [0023] FIG. 3 is an embodiment showing the effect of image embodiment of FIG interface display;

[0024] 图4为一个实施例中图片切换装置的结构示意图; [0024] FIG. 4 is a schematic diagram of a configuration image switching device embodiment;

[0025] 图5为另一个实施例中图片切换装置的结构示意图。 [0025] FIG. 5 is a structural view of another embodiment of the image switching apparatus.

具体实施方式 Detailed ways

[0026] 在一个实施例中,如图1所示,一种图片切换方法,包括以下步骤: [0026] In one embodiment, shown in FIG. A method of switching an image, comprising the steps of:

[0027] 步骤S102,获取输入的图片切换指令。 [0027] Step S102, the acquired image switching instruction input.

[0028] 在本实施例中,如图2所示,显示界面上图片按照类型以多个图集分类展示。 [0028] In the present embodiment, as shown in FIG 2, according to the type of image on the display screen to display a plurality of classification portfolio. 多个图集按顺序排列。 A plurality arranged in order portfolio. 显示界面上的缩略图标均为图集的封面,可通过点击缩略图标进入相应的图集。 Thumbnail icons on the display screen are atlas covers, accessible by clicking on the appropriate atlas thumbnail icons. 如图3所示,点击进入图集后,即可展示该图集内的图片。 As shown in Figure 3, click into Atlas, you can show pictures in the atlas. 图集内的图片具有图片标识,且可预先根据图片标识进行排序。 Having a picture in picture identification portfolio, and may be ordered in advance based on the image identifier.

[0029] 在本实施例中,可通过检测滑动操作获取图片切换指令。 [0029] In the present embodiment, the image may be acquired by detecting a sliding operation of the switching instruction. 例如,用户可在触摸屏上左右滑动输入图片切换指令,也可以通过鼠标滑动显示界面上的进度条输入图片切换至零。 For example, a user may slide around image switching instruction input on the touch screen, the progress bar on the image input interface is switched to zero can be displayed by sliding the mouse.

[0030] 在一个实施例中,还可通过检测按键触发获取图片切换指令。 [0030] In one embodiment, the acquisition may be triggered by detecting the key image switching instruction. 例如,用户可通过点击显示界面上的“上一张”或“下一张”等图标触发图片切换指令,用户还可通过触发键盘或其他按键输入设备上的快捷键触发图片切换指令。 For example, the user can click on the "Previous" on the display interface or "next" and icon image trigger switch instruction, the switching instruction by the user may trigger the keyboard shortcut keys or other input device to trigger image.

[0031] 步骤S104,获取图片切换指令对应的目标图片标识。 [0031] Step S104, the acquired image switching instruction corresponding to the target picture identification.

[0032]目标图片标识即将要切换到的目标图片的标识。 Identification [0032] to identify target picture is about to switch to the target image. 目标图片标识可以是目标图片的文件名、在目标图片所处的目标图集中的序号以及在数据库中对应的主键等。 Target image identification may be the file name of the target image, the target number set in FIG target picture is located, and the like corresponding to the primary key in the database.

[0033] 在本实施例中,用户通过滑动进度条触发图片切换指令。 [0033] In the present embodiment, the user triggers the image switching instruction by sliding the progress bar. 可根据图片切换指令对应的进度条的进度信息获取对应的目标图片标识。 Available corresponding target image identifier according to the image switching instruction corresponding to the progress information in the progress bar. 例如,再如图3所示,进度条的进度信息为3/10 (进度条可在停止滑动时处于隐藏状态,可在捕获到显示界面上的点击或按压事件时变为显示状态),即当前显示的图集中总图片数的30%的位置,则获取到的目标图片标识可对应该图集中的序号为3的图片。 For example, FIG progress information and then, the progress bar shown in FIG. 3 3/10 (progress bar is hidden when the slider is stopped, can be captured on the display screen or click when pressed event display-state), i.e., FIG concentration of 30% the total number of pictures of the position of the currently displayed image is acquired to identify the target may be set to be numbered in FIG. 3 of the picture.

[0034] 在一个实施例中,还可获取图片切换指令对应的源图片标识,根据源图片标识获取目标图片标识。 [0034] In one embodiment, images may be acquired corresponding to the source image switching instruction identifier, obtaining target picture identifier identifying the source image. 源图片标识即将要被切换掉的源图片的标识。 Identify the source of the picture is about to be handed out to identify the source of the picture. 例如,若用户通过按键触发了图片切换指令,则用户触发按键之前显示的图片即为源图片。 For example, if the user triggers a handover instruction through the button image, the image before the user triggers the key display is the source image. 若按键对应的是“上一张图片”或“下一张图片”的指令,则可根据源在源图集中获取与源图片标识相邻的目标图片标识。 If the key corresponding to the "previous picture" or the "next image" command, the source identifier can be acquired focus images of adjacent target picture based on the source identifier in the source of FIG.

[0035] 步骤S106,获取源图集标识,获取与源图集标识对应的图片标识集合。 [0035] In step S106, Atlas acquisition source identification, acquiring a source image identifier corresponding to the identifier atlas set.

[0036] 源图集标识即获取图片切换指令之前当前显示的源图片对应的图集标识。 [0036] portfolio source identifier i.e. switching instruction before obtaining the image currently displayed image corresponding to the source identifier Atlas. 与源图集标识对应的图片标识集合即源图集包含的图片对应的图片标识的集合。 Atlas source image identifier corresponding to the identifier set that is set corresponding to the source image included in the portfolio image identifier. 图片标识集合中的图片标识可预先排序。 Pictures logo collection picture identification can be pre-sorted. 例如,可根据ascii码、英文字母顺序等排序。 For example, it can be sorted according to ascii code, like the English alphabetical order.

[0037] 步骤S108,判断目标图片标识是否属于图片标识集合,若是,执行步骤SllO根据目标图片标识在源图集标识对应的源图集中获取目标图片;否则,则执行步骤S112获取与源图集标识对应的目标图集,根据目标图片标识在目标图集中获取目标图片。 [0037] step S108, it is determined whether the target image identification image identifier set, if yes, step SllO concentrated in acquiring the target image corresponding to the source identifier Atlas source image identifier according to the target image; otherwise, step S112 is performed to acquire the source portfolio Atlas target identifier corresponding to the identifier according to the target image acquisition target in the target image focused FIG.

[0038] 在本实施例中,若目标图片标识属于图片标识集合,表示目标图片对应的图集不需要切换,则根据目标图片标识在源图集中获取目标图片。 [0038] In the present embodiment, if the target image belongs to pictures identified set identifier, indicating the target image corresponding to the portfolio need not be switched, the image capturing target identifier focus the target image in the source of FIG. 例如,如同3中,若目标图片标识的为序号3,属于源图集的图片标识集合,则获取图片标识集合中序号为3的目标图片。 For example, as 3, if the target image is identified by number 3, belonging to Atlas source image identifier set is acquired picture identifier set as the target number of images 3.

[0039] 在本实施例中,若目标图片标识不属于图片标识集合,则表示需要切换图集。 [0039] In the present embodiment, if the target image identification image does not belong to the set of identification, indicating a need for handover portfolio. 例如,如图3所示,若展示的源图片的进度条信息为10/10,此时如果用户继续向右滑动进度条则触发的图片切换指令中的目标图片标识为序号11,不包含在源图集对应的图片标识集合中(I至10),则获取与源图集标识在存储顺序上相邻的目标图集标识,然后获取该目标图集标识对应的图片标识集合,选取其中排序处于首位的目标图片。 For example, as shown in FIG. 3, when the source picture displayed progress bar information 10/10, at this time if the user continues sliding rightward progress of the image switching instruction triggering the target image is identified as number 11, is not included in the Atlas source image identifier corresponding to the set (I to 10), it acquires a source identifier portfolio adjacent in the identifier storage order of the target portfolio, and then obtaining the target portfolio image identifier corresponding to the identifier set, wherein the selected ordering the goal in the first picture.

[0040] 步骤SI 14,加载并展示目标图片。 [0040] Step SI 14, the target load and display pictures.

[0041] 在一个实施例中,加载并展示目标图片的步骤可具体为:从本地缓存中加载目标图片并展示,若加载失败,则获取目标图片对应的链接地址,根据链接地址抓取图片并展 Step [0041] In one embodiment, the target load and display images may be embodied as: loading the target image from the local cache and displayed, if loading fails, the address of the target for a link corresponding to the image, according to the link address to fetch image and exhibition

/Jn ο / Jn ο

[0042] 本地缓存即用户使用的终端上的存储设备,例如,内存、闪存和硬盘等。 [0042] The terminal storage device on the local cache that is used by the user, e.g., RAM, flash memory and hard disk. 目标图片可以是网络图片,其对应链接地址,可通过链接地址将其抓取。 Target picture can be a network picture, the corresponding link address, link address to crawl through. 若用户曾浏览过在目标图片,则缓存中存在该目标图片的副本,可直接在缓存中获取并加载。 If the user has visited in the target picture, the cache exists in the target image copies can be obtained and loaded directly in the cache. 这种优先利用本地缓存加载目标图片的方式可以提闻目标图片的加载速度。 Use this priority objective picture of the local cache load can smell mention the loading speed of the target picture.

[0043] 在一个实施例中,加载并展示目标图片的步骤之后还包括:获取与目标图片标识对应的邻接图片标识,获取邻接图片标识对应的链接地址,抓取与链接地址对应的邻接图片并存储到本地缓存中。 After step [0043] In one embodiment, load and display the target image further comprising: obtaining a target image corresponding to the identification image identification abutment, adjacent images acquired link address corresponding to the identifier, the fetch address corresponding to the link and adjacent image stored in a local cache.

[0044] 邻接图片即与目标图片在前述的排序顺序上相邻的图片。 [0044] adjacent to the target image and the image that is adjacent to the sort order on the picture. 例如,目标图片的前一张图片和后一张图片。 For example, the target picture and the previous picture after picture. 也就是说,在展示目标图片时,可对与目标图片邻接的图片进行预读,并存储在本地缓存中。 That is, when the target picture show, can be pre-read of the images adjacent to the target picture, and stored in the local cache. 若用户点击“下一张”或“上一张”的按钮,则可直接从本地缓存中加载相应的图片,从而合理利用了加载时机,提高了加载速度。 If the user clicks the button "next" or "previous", you can load the corresponding picture directly from the local cache, thus loading the rational use of the opportunity to improve the loading speed.

[0045] 在一个实施例中,加载并展示目标图片的步骤还包括:获取目标图片对应的图片信息,展示图片信息。 Step [0045] In one embodiment, load and display the target image further comprising: obtaining a target image corresponding to the image information, display image information.

[0046] 图片信息可包括图片对应的图集名称、图集大小、图片标识、图片名称以及图片描述信息中的一种或多种。 [0046] The image information may include the name of the picture corresponding to the portfolio, portfolio size, image identification, image name, and image information is described in one or more. 例如,如图3所示,可将图片名称、图片标识和图集大小(图3中的3/10,3为图片标识,10为图集大小)展示。 For example, as shown in FIG. 3, it may be picture name, picture and logo portfolio size (in FIG. 33 / 10,3 identified as pictures, portfolio size 10) shows.

[0047] 在一个实施例中,如图4所示,一种图片切换装置,包括指令获取模块102、目标图片定位模块104、图集获取模块106、切换检测模块108、目标图片获取模块110以及图片加载模块112,其中: [0047] In one embodiment, as shown in FIG An image switching means 4, including an instruction fetch block 102, positioning the target image block 104, portfolio acquisition module 106, a switching module 108 is detected, the target image acquisition module 110 and image loading module 112, wherein:

[0048] 指令获取模块102,用于获取输入的图片切换指令。 [0048] The instruction acquiring module 102 configured to acquire an input image switching instruction.

[0049] 在本实施例中,如图2所示,显示界面上图片按照类型以多个图集分类展示。 [0049] In the present embodiment, as shown in FIG 2, according to the type of image on the display screen to display a plurality of classification portfolio. 多个图集按顺序排列。 A plurality arranged in order portfolio. 显示界面上的缩略图标均为图集的封面,可通过点击缩略图标进入相应的图集。 Thumbnail icons on the display screen are atlas covers, accessible by clicking on the appropriate atlas thumbnail icons. 如图3所示,点击进入图集后,即可展示该图集内的图片。 As shown in Figure 3, click into Atlas, you can show pictures in the atlas. 图集内的图片具有图片标识,且可预先根据图片标识进行排序。 Having a picture in picture identification portfolio, and may be ordered in advance based on the image identifier.

[0050] 在本实施例中,指令获取模块102可用于通过检测滑动操作获取图片切换指令。 [0050] In the present embodiment, the instruction acquisition module 102 may be configured to acquire image switching instruction by detecting a sliding operation. 例如,用户可在触摸屏上左右滑动输入图片切换指令,也可以通过鼠标滑动显示界面上的进度条输入图片切换至零。 For example, a user may slide around image switching instruction input on the touch screen, the progress bar on the image input interface is switched to zero can be displayed by sliding the mouse.

[0051] 在一个实施例中,指令获取模块102还可用于通过检测按键触发获取图片切换指令。 [0051] In one embodiment, the instruction acquisition module 102 may also be acquired by detecting a trigger button image switching instruction. 例如,用户可通过点击显示界面上的“上一张”或“下一张”等图标触发图片切换指令,用户还可通过触发键盘或其他按键输入设备上的快捷键触发图片切换指令。 For example, the user can click on the "Previous" on the display interface or "next" and icon image trigger switch instruction, the switching instruction by the user may trigger the keyboard shortcut keys or other input device to trigger image.

[0052]目标图片定位模块104,用于获取图片切换指令对应的目标图片标识。 [0052] The target image positioning module 104, configured to acquire image switching instruction corresponding to the target picture identification.

[0053]目标图片标识即将要切换到的目标图片的标识。 [0053] identifies the target picture is about to switch to the identity of the target image. 目标图片标识可以是目标图片的文件名、在目标图片所处的目标图集中的序号以及在数据库中对应的主键等。 Target image identification may be the file name of the target image, the target number set in FIG target picture is located, and the like corresponding to the primary key in the database.

[0054] 在本实施例中,用户通过滑动进度条触发图片切换指令。 [0054] In the present embodiment, the user triggers the image switching instruction by sliding the progress bar. 可根据图片切换指令对应的进度条的进度信息获取对应的目标图片标识。 Available corresponding target image identifier according to the image switching instruction corresponding to the progress information in the progress bar. 例如,再如图3所示,进度条的进度信息为3/10 (进度条可在停止滑动时处于隐藏状态,可在捕获到显示界面上的点击或按压事件时变为显示状态),即当前显示的图集中总图片数的30%的位置,则获取到的目标图片标识可对应该图集中的序号为3的图片。 For example, FIG progress information and then, the progress bar shown in FIG. 3 3/10 (progress bar is hidden when the slider is stopped, can be captured on the display screen or click when pressed event display-state), i.e., FIG concentration of 30% the total number of pictures of the position of the currently displayed image is acquired to identify the target may be set to be numbered in FIG. 3 of the picture.

[0055] 在一个实施例中,目标图片定位模块104还可用于获取图片切换指令对应的源图片标识,根据源图片标识获取目标图片标识。 [0055] In one embodiment, the target image 104 may also be configured to acquire the positioning module image switching instruction corresponding to the source image identifier, the target identifier acquired image identifier according to the source image. 源图片标识即将要被切换掉的源图片的标识。 Identify the source of the picture is about to be handed out to identify the source of the picture. 例如,若用户通过按键触发了图片切换指令,则用户触发按键之前显示的图片即为源图片。 For example, if the user triggers a handover instruction through the button image, the image before the user triggers the key display is the source image. 若案件对应的是“上一张图片”或“下一张图片”的指令,则可根据源在源图集中获取与源图片标识相邻的目标图片标识。 When the case corresponds to the "previous picture" or the "next image" command, the source image may be adjacent to obtain identification target picture source identification in accordance with FIG centralized source.

[0056] 图集获取模块106,用于获取源图集标识,获取与源图集标识对应的图片标识集 [0056] portfolio obtaining module 106, configured to obtain the source identifier portfolio acquires image identifier corresponding to the identifier of the current source portfolio

口ο Mouth ο

[0057] 源图集标识即获取图片切换指令之前当前显示的源图片对应的图集标识。 [0057] portfolio source identifier i.e. switching instruction before obtaining the image currently displayed image corresponding to the source identifier Atlas. 与源图集标识对应的图片标识集合即源图集包含的图片对应的图片标识的集合。 Atlas source image identifier corresponding to the identifier set that is set corresponding to the source image included in the portfolio image identifier. 图片标识集合中的图片标识可预先排序。 Pictures logo collection picture identification can be pre-sorted. 例如,可根据ascii码、英文字母顺序等排序。 For example, it can be sorted according to ascii code, like the English alphabetical order.

[0058] 切换检测模块108,用于判断目标图片标识是否属于图片标识集合。 [0058] switch detection module 108 for determining whether the target image identification image identified set.

[0059]目标图片获取模块110,用于在目标图片标识不属于图片标识集合时,获取与源图集标识对应的目标图集,根据目标图片标识在目标图集中获取目标图片。 [0059] The target image acquisition module 110, a target portfolio when the target image identification image does not belong to the set of identification, obtaining source identifier corresponding portfolio, identifying the target image capturing target focus the target image of FIG.

[0060] 本实施例中,目标图片获取模块110还用于在目标图片标识属于图片标识集合时,根据目标图片标识在源图集标识对应的源图集中获取目标图片。 [0060] In this embodiment, the target image acquisition module 110 is further configured to identify the target picture belongs to a set of image identifier, the target identifier focused image capturing target image corresponding to the source identifier Atlas source image.

[0061] 在本实施例中,若目标图片标识属于图片标识集合,表示目标图片对应的图集不需要切换,则目标图片获取模块110可用于根据目标图片标识在源图集中获取目标图片。 [0061] In the present embodiment, if the target image belongs to pictures identified set identifier, indicating the target image corresponding to the portfolio need not be switched, the target image acquisition module 110 may be used to obtain the target concentration in the source image according to the target image identifier FIG. 例如,如同3中,若目标图片标识的为序号3,属于源图集的图片标识集合,则获取图片标识集合中序号为3的目标图片。 For example, as 3, if the target image is identified by number 3, belonging to Atlas source image identifier set is acquired picture identifier set as the target number of images 3.

[0062] 在本实施例中,若目标图片标识不属于图片标识集合,则表示需要切换图集。 [0062] In the present embodiment, if the target image identification image does not belong to the set of identification, indicating a need for handover portfolio. 例如,如图3所示,若展示的源图片的进度条信息为10/10,此时如果用户继续向右滑动进度条则触发的图片切换指令中的目标图片标识为序号11,不包含在源图集对应的图片标识集合中(I至10),则目标图片获取模块110可用于获取与源图集标识在存储顺序上相邻的目标图集标识,然后获取该目标图集标识对应的图片标识集合,选取其中排序处于首位的目标图片。 For example, as shown in FIG. 3, when the source picture displayed progress bar information 10/10, at this time if the user continues sliding rightward progress of the image switching instruction triggering the target image is identified as number 11, is not included in the Atlas source image identifier corresponding to the set (I to 10), the target image acquisition module 110 may be configured to obtain the source identifier portfolio adjacent in storage order portfolio target identifier, and then acquires the identifier corresponding to the target portfolio pictures logo collection, select one of the sort of goal in the first picture.

[0063] 图片加载模块112,用于加载并展示目标图片。 [0063] The image load module 112 for loading the target image and display.

[0064] 在一个实施例中,图片加载模块112可用于从本地缓存中加载目标图片并展示,若加载失败,则获取目标图片对应的链接地址,根据链接地址抓取图片并展示。 [0064] In one embodiment, module 112 may load the image for loading the target image from the local cache and displayed, if loading fails, obtaining a link address corresponding to the target image, according to the link address to fetch and display images.

[0065] 本地缓存即用户使用的终端上的存储设备,例如,内存、闪存和硬盘等。 [0065] The terminal storage device on the local cache that is used by the user, e.g., RAM, flash memory and hard disk. 目标图片可以是网络图片,其对应链接地址,可通过链接地址将其抓取。 Target picture can be a network picture, the corresponding link address, link address to crawl through. 若用户曾浏览过在目标图片,则缓存中存在该目标图片的副本,可直接在缓存中获取并加载。 If the user has visited in the target picture, the cache exists in the target image copies can be obtained and loaded directly in the cache. 这种优先利用本地缓存加载目标图片的方式可以提闻目标图片的加载速度。 Use this priority objective picture of the local cache load can smell mention the loading speed of the target picture.

[0066] 在一个实施例中,如图5所示,图片切换装置还包括预加载模块114,用于获取与目标图片标识对应的邻接图片标识,获取邻接图片标识对应的链接地址,抓取与链接地址对应的邻接图片并存储到本地缓存中。 [0066] In one embodiment, shown in Figure 5, image switching means 114 further includes a pre-loading module for acquiring a target image corresponding to the identification image identification abutment, adjacent images acquired link address corresponding to the identifier, crawling and link address corresponding to the adjacent image and stored in the local cache.

[0067] 邻接图片即与目标图片在前述的排序顺序上相邻的图片。 [0067] adjacent to the target image and the image that is adjacent to the sort order on the picture. 例如,目标图片的前一张图片和后一张图片。 For example, the target picture and the previous picture after picture. 也就是说,在展示目标图片时,可对与目标图片邻接的图片进行预读,并存储在本地缓存中。 That is, when the target picture show, can be pre-read of the images adjacent to the target picture, and stored in the local cache. 若用户点击“下一张”或“上一张”的按钮,则可直接从本地缓存中加载相应的图片,从而合理利用了加载时机,提高了加载速度。 If the user clicks the button "next" or "previous", you can load the corresponding picture directly from the local cache, thus loading the rational use of the opportunity to improve the loading speed.

[0068] 在一个实施例中,图片加载模块112还用于获取目标图片对应的图片信息,展示图片信息。 [0068] In one embodiment, the image load module 112 is further configured to obtain information of the target image corresponding to the image, display image information.

[0069] 图片信息可包括图片对应的图集名称、图集大小、图片标识、图片名称以及图片描述信息中的一种或多种。 [0069] The image information may include the name of the picture corresponding to the portfolio, portfolio size, image identification, image name, and image information is described in one or more. 例如,如图3所示,图片加载模块112可用于将图片名称、图片标识和图集大小(图3中的3/10,3为图片标识,10为图集大小)展示。 For example, 3, the image module 112 may be used to load the picture name, picture and logo portfolio size (in FIG. 33 / 10,3 identified as pictures, portfolio size 10) shows.

[0070] 上述图片切换方法和装置,在接收到图片切换指令之后,根据图片切换指令中提取的目标图片标识和获取的源图集(当前展示的图集)标识判断是否需要切换图集,并在需要切换图集时,自动获取与源图集标识对应的目标图集,根据目标图片标识在目标图集中获取目标图片,使得用户在操作时,不需要进行多次选择图集的操作,从而提高了操作的便利性。 [0070] The image switching method and apparatus, after receiving the image switching instruction based on the image switching instruction extracted target picture source identification and Atlas (Atlas current shown) determines whether the acquired identifier Atlas be switched, and switching portfolio when needed, and automatic acquisition target portfolio portfolio source identifier corresponding to the identification image capturing target concentration in view of certain target pictures, so that the user at the time of operation, no multiple selection operation atlas, whereby improved ease of operation.

[0071] 同时,图片切换后仅仅加载目标图片,而并不加载整个目标图集的图片,使得内存占用减小,提闻了存储空间的利用率。 [0071] Meanwhile, the image just loaded handover target picture, but does not load the entire target image atlas, so memory usage is reduced, mention smell storage space utilization.

[0072] 以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。 [0072] The above embodiments are only expressed several embodiments of the present invention, and detailed description thereof is more specific, but can not therefore be understood as limiting the scope of the present invention. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, without departing from the spirit of the present invention, can make various changes and modifications, which fall within the protection scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims (10)

1.一种图片切换方法,包括: 获取输入的图片切换指令; 获取所述图片切换指令对应的目标图片标识; 获取源图集标识,获取所述源图集标识对应的图片标识集合; 判断所述目标图片标识是否属于所述图片标识集合,若否,则获取与所述源图集标识对应的目标图集,根据所述目标图片标识在所述目标图集中获取目标图片; 加载并展示所述目标图片。 An image switching method, comprising: obtaining input image switching instruction; obtaining the image switching instruction corresponding to the target image identifier; portfolio acquisition source identifier, said source identifier set of acquired images corresponding to the identification portfolio; Analyzing the identifying whether said target image belongs to the picture identifier set, if no, obtaining the target portfolio portfolio source corresponding to the identification, acquiring a target image according to the focus target images identified in the target map; loading and impressions said target picture.
2.根据权利要求1所述的图片切换方法,其特征在于,所述判断所述目标图片标识是否属于所述图片标识集合的步骤之后还包括: 若是,则根据所述目标图片标识在所述源图集标识对应的源图集中获取目标图片,并执行所述加载并展示所述目标图片的步骤。 2. After the image switching method as claimed in claim 1, wherein said determining whether the step of identifying the target picture identifier set the picture belongs to further comprises: if yes, identifying the target picture in accordance with the Atlas source identifier corresponding to the source image of FIG focus acquisition target, and said step of performing said load and a target image display.
3.根据权利要求1所述的图片切换方法,其特征在于,所述加载并展示所述目标图片的步骤为: 从本地缓存中加载目标图片并展示,若加载失败,则获取所述目标图片对应的链接地址,根据所述链接地址抓取图片并展示。 3. The image switching method according to claim 1, wherein said step of loading and display of the target picture is: loading the target image from the local cache and displayed, if loading fails, the target image is acquired corresponding to the link address, according to the link address to crawl image and display.
4.根据权利要求1所述的图片切换方法,其特征在于,所述加载并展示所述目标图片的步骤之后还包括: 获取与所述目标图片标识对`应的邻接图片标识; 获取所述邻接图片标识对应的链接地址; 抓取与所述链接地址对应的邻接图片并存储到本地缓存中。 The image of the switching method of claim 1, wherein said step of loading and after the target picture display further comprising: obtaining an identification of the target picture to be adjacent to 'picture identifier; acquiring the adjoining link address corresponding to the identification image; crawl link address corresponding to the adjacent image and stored in a local cache.
5.根据权利要求1至4任一项所述的图片切换方法,其特征在于,所述加载并展示所述目标图片的步骤还包括: 获取所述目标图片对应的图片信息; 展示所述图片信息。 Image 1 according to any one of claims 4 switching method, characterized in that the loading and displaying the target image further comprises the step of: obtaining image information corresponding to the target picture; the picture display information.
6.一种图片切换装置,其特征在于,包括: 指令获取模块,用于获取输入的图片切换指令; 目标图片定位模块,用于获取所述图片切换指令对应的目标图片标识; 图集获取模块,用于获取源图集标识,获取所述源图集标识对应的图片标识集合; 切换检测模块,用于判断所述目标图片标识是否属于所述图片标识集合; 目标图片获取模块,用于在所述目标图片标识不属于所述图片标识集合时,获取与所述源图集标识对应的目标图集,根据所述目标图片标识在所述目标图集中获取目标图片;图片加载模块,用于加载并展示所述目标图片。 An image switching apparatus comprising: an instruction acquiring module, for acquiring image switching instruction input; target picture positioning module, configured to obtain the picture switching instruction corresponding to the target image identifier; acquiring module portfolio for portfolio acquisition source identification, acquiring a source image corresponding to the identifier portfolio identified set; switch detection means for determining whether the identification of the target picture belongs to the picture identifier set; target image acquisition module, configured to identification of the target picture when the picture does not belong to the set of identification, acquiring a target portfolio portfolio corresponding to the identifier of the source, according to the target identified in the target image acquisition FIG focus target picture; image load module, for load and display the target picture.
7.根据权利要求6所述的图片切换装置,其特征在于,所述目标图片获取模块还用于在所述目标图片标识属于所述图片标识集合时,根据所述目标图片标识在所述源图集标识对应的源图集中获取目标图片。 7. The image of the switching device according to claim 6, wherein said module is further used for obtaining the target image when said target image set identifier identifying the picture belongs to, based on the target image in the source identification Atlas identifies the corresponding source atlases acquisition target picture.
8.根据权利要求6所述的图片切换装置,其特征在于,所述图片加载模块还用于从本地缓存中加载目标图片并展示,若加载失败,则获取所述目标图片对应的链接地址,根据所述链接地址抓取图片并展示。 8. The image switching apparatus according to claim 6, wherein said loading module is further configured to load the image of the target picture from the local cache and displayed, if loading fails, obtaining a link address corresponding to the target picture, crawl image according to the link address and display.
9.根据权利要求6所述的图片切换装置,其特征在于,所述装置还包括预加载模块,用于获取与所述目标图片标识对应的邻接图片标识,获取所述邻接图片标识对应的链接地址,抓取与所述链接地址对应的邻接图片并存储到本地缓存中。 9. The image switching apparatus according to claim 6, characterized in that said apparatus further comprises a pre-loading module for obtaining the target image corresponding to the identification abutment image identifier acquiring adjacent pictures corresponding to the identifier of the link address, fetch address corresponding to the linked adjacent image and stored in a local cache.
10.根据权利要求6至9任一项所述的图片切换装置,其特征在于,所述图片加载模块还用于获取所述目标图片对应的图片`信息,展示所述图片信息。 10. The image according to any one of claim 6 to 9, the switching means, wherein said loading module is further configured to acquire image 'information of the target image corresponding to the image, display the image information.
CN201210544740.2A 2012-12-13 2012-12-13 Picture switching method and device CN103870102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210544740.2A CN103870102B (en) 2012-12-13 2012-12-13 Picture switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210544740.2A CN103870102B (en) 2012-12-13 2012-12-13 Picture switching method and device

Publications (2)

Publication Number Publication Date
CN103870102A true CN103870102A (en) 2014-06-18
CN103870102B CN103870102B (en) 2017-12-12

Family

ID=50908695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210544740.2A CN103870102B (en) 2012-12-13 2012-12-13 Picture switching method and device

Country Status (1)

Country Link
CN (1) CN103870102B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090809A (en) * 2014-07-23 2014-10-08 天脉聚源(北京)教育科技有限公司 Picture loading method and device
CN104536669A (en) * 2014-12-15 2015-04-22 小米科技有限责任公司 Information displaying method and device
CN104850303A (en) * 2015-04-20 2015-08-19 深圳市美贝壳科技有限公司 3D (Three dimensional) switching and browsing method of picture
CN105005429A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Method for showing picture through terminal and terminal
CN105550260A (en) * 2015-12-09 2016-05-04 小米科技有限责任公司 Picture display method and device
CN105630893A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Display method and device of photo title
CN105630310A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and device for displaying titles during graph group switching
CN105867769A (en) * 2016-03-29 2016-08-17 广州阿里巴巴文学信息技术有限公司 Picture switching method and device and user terminal
CN106126081A (en) * 2016-06-23 2016-11-16 珠海市魅族科技有限公司 A kind of information processing method and device
CN106648320A (en) * 2016-12-20 2017-05-10 天脉聚源(北京)传媒科技有限公司 Method and device for dynamic prompt of picture polling display
CN106648407A (en) * 2016-09-14 2017-05-10 上海斐讯数据通信技术有限公司 Picture display method and system for touch screen device
CN107515711A (en) * 2016-06-17 2017-12-26 中兴通讯股份有限公司 The method and device of exhibiting pictures

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030122949A1 (en) * 2001-11-06 2003-07-03 Koichi Kanematsu Picture display controller, moving-picture information transmission/reception system, picture display controlling method, moving-picture information transmitting/receiving method, and computer program
CN101030202A (en) * 2006-03-01 2007-09-05 腾讯科技(深圳)有限公司 System and method for switching picture in photo album
CN101650629A (en) * 2008-08-15 2010-02-17 鸿富锦精密工业(深圳)有限公司;鸿海精密工业股份有限公司 Electronic device and method for browsing pictures by using same
CN101877756A (en) * 2009-05-01 2010-11-03 索尼公司 Image processing apparatus, image processing method, and program
CN101923546A (en) * 2009-06-10 2010-12-22 中国移动通信集团公司 Method and system for playing image files inside folder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030122949A1 (en) * 2001-11-06 2003-07-03 Koichi Kanematsu Picture display controller, moving-picture information transmission/reception system, picture display controlling method, moving-picture information transmitting/receiving method, and computer program
CN101030202A (en) * 2006-03-01 2007-09-05 腾讯科技(深圳)有限公司 System and method for switching picture in photo album
CN101650629A (en) * 2008-08-15 2010-02-17 鸿富锦精密工业(深圳)有限公司;鸿海精密工业股份有限公司 Electronic device and method for browsing pictures by using same
CN101877756A (en) * 2009-05-01 2010-11-03 索尼公司 Image processing apparatus, image processing method, and program
CN101923546A (en) * 2009-06-10 2010-12-22 中国移动通信集团公司 Method and system for playing image files inside folder

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090809B (en) * 2014-07-23 2017-07-07 天脉聚源(北京)教育科技有限公司 A kind of picture loading method and device
CN104090809A (en) * 2014-07-23 2014-10-08 天脉聚源(北京)教育科技有限公司 Picture loading method and device
CN104536669A (en) * 2014-12-15 2015-04-22 小米科技有限责任公司 Information displaying method and device
CN104536669B (en) * 2014-12-15 2017-12-29 小米科技有限责任公司 Information displaying method and device
CN104850303B (en) * 2015-04-20 2019-04-09 深圳市美贝壳科技有限公司 A kind of 3D switching browsing method of picture
CN104850303A (en) * 2015-04-20 2015-08-19 深圳市美贝壳科技有限公司 3D (Three dimensional) switching and browsing method of picture
CN105005429A (en) * 2015-06-30 2015-10-28 广东欧珀移动通信有限公司 Method for showing picture through terminal and terminal
CN105550260A (en) * 2015-12-09 2016-05-04 小米科技有限责任公司 Picture display method and device
CN105630893A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Display method and device of photo title
CN105630310A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and device for displaying titles during graph group switching
CN105630893B (en) * 2015-12-18 2019-08-23 北京奇虎科技有限公司 A kind of display methods and device of group picture title
CN105867769A (en) * 2016-03-29 2016-08-17 广州阿里巴巴文学信息技术有限公司 Picture switching method and device and user terminal
CN107515711A (en) * 2016-06-17 2017-12-26 中兴通讯股份有限公司 The method and device of exhibiting pictures
CN106126081A (en) * 2016-06-23 2016-11-16 珠海市魅族科技有限公司 A kind of information processing method and device
CN106648407A (en) * 2016-09-14 2017-05-10 上海斐讯数据通信技术有限公司 Picture display method and system for touch screen device
CN106648320A (en) * 2016-12-20 2017-05-10 天脉聚源(北京)传媒科技有限公司 Method and device for dynamic prompt of picture polling display
CN106648320B (en) * 2016-12-20 2019-07-26 天脉聚源(北京)传媒科技有限公司 A kind of method and device for the dynamic reminding that picture poll is shown

Also Published As

Publication number Publication date
CN103870102B (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN100452036C (en) Contents management system, contents management method, and computer program
JP5268595B2 (en) Image processing apparatus, image display method, and image display program
EP2854380B1 (en) Method for quickly operating file of smart phone and smart phone
AU2011292026B2 (en) Touch-based gesture detection for a touch-sensitive device
US20190340209A1 (en) Method for searching and device thereof
JP2012529116A (en) Restore user interface timeline experience
JP2011239075A (en) Display device, display method and program
JP5735090B2 (en) Application for viewing images
US8325234B2 (en) Information processing apparatus, information processing method, and program for storing an image shot by a camera and projected by a projector
US8918739B2 (en) Display-independent recognition of graphical user interface control
JP2007286864A (en) Image processor, image processing method, program, and recording medium
KR101660271B1 (en) Metadata tagging system, image searching method, device, and method for tagging gesture
US7542994B2 (en) Graphical user interface for rapid image categorization
WO2010024992A1 (en) Image tagging user interface
CN101976169B (en) Electronic reading device and page turning method thereof
US7978936B1 (en) Indicating a correspondence between an image and an object
CN102306080A (en) Touch electronic device and icon moving method
CN102687140A (en) Methods and apparatuses for facilitating content-based image retrieval
JP5947131B2 (en) Search input method and system by region selection method
CN1924860A (en) Search engine based search result fast pre-reading device
CN101662584A (en) Information processing apparatus and method and computer program
CN101281593A (en) Method and system for researching intelligent video monitoring case
CN102474902A (en) Mobile device visual input systems and methods
US10095398B2 (en) Navigating galleries of digital content
CN101901109A (en) Picture processing method, device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
GR01