WO2015131651A1 - Slide generation method and device - Google Patents

Slide generation method and device Download PDF

Info

Publication number
WO2015131651A1
WO2015131651A1 PCT/CN2014/095699 CN2014095699W WO2015131651A1 WO 2015131651 A1 WO2015131651 A1 WO 2015131651A1 CN 2014095699 W CN2014095699 W CN 2014095699W WO 2015131651 A1 WO2015131651 A1 WO 2015131651A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
slideshow
pictures
photo
picture
Prior art date
Application number
PCT/CN2014/095699
Other languages
French (fr)
Chinese (zh)
Inventor
时玉娟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131651A1 publication Critical patent/WO2015131651A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • G11B27/105Programmed access in sequence to addressed parts of tracks of operating record carriers of operating discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel

Definitions

  • the present invention relates to the field of mobile applications, and in particular, to a method and an apparatus for generating a slideshow on a mobile terminal.
  • the content of the slide play mode on the mobile terminal is not customizable, and the problem that the audio and the picture play are not synchronized is easy to occur, and the use experience is poor.
  • the embodiment of the invention provides a method and a device for generating a slide, which solves the problem that the use experience of the slide show mode on the mobile terminal in the related art is poor.
  • an embodiment of the present invention provides a method for generating a slideshow, including:
  • a slideshow is generated according to the playback rate.
  • obtaining a plurality of images selected by the user for making a slideshow include:
  • obtaining a plurality of images selected by the user for making a slideshow include:
  • the number of images obtained by statistical screening is the number of images obtained by statistical screening.
  • the screening condition includes any one or more of the following:
  • the photo filtering conditions for obtaining the user selection include:
  • the first picture selected by the user is obtained, and the content of the screening condition is determined from the attribute information of the picture.
  • an embodiment of the present invention further provides a slideshow generating apparatus, including:
  • a picture material acquisition module configured to obtain a plurality of pictures selected by the user for making a slide show
  • An audio acquisition module configured to obtain a background audio file
  • a play rate calculation module configured to determine a slide show rate according to a duration of the background audio and a number of pictures used to create a slide show
  • a slideshow production module is configured to generate a slideshow based on the playback rate.
  • the picture material obtaining module includes:
  • the user selects a collection unit, and is set to obtain a plurality of pictures selected by the user one by one;
  • the first quantity statistics unit is set to count the number of pictures selected by the user.
  • the picture material obtaining module includes:
  • the filter condition configuration unit is configured to obtain a photo selection condition selected by the user
  • Filtering the execution unit set to be stored locally from the terminal, according to the filtering conditions, Filter out multiple images for making slides;
  • the second number of statistical units is set to the number of pictures obtained by statistical filtering.
  • the screening condition includes any one or more of the following:
  • the screening condition configuration unit includes:
  • the configuration information extraction subunit is configured to obtain the first picture selected by the user, and determine the content of the screening condition from the attribute information of the picture.
  • an embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by a slideshow generating device, causing the slideshow generating device to perform the method as described above.
  • an embodiment of the present invention further provides a carrier carrying the computer program.
  • An embodiment of the present invention provides a slideshow generation method and apparatus, which first acquires a plurality of pictures selected by a user for making a slideshow, and then acquires a background audio file, and then uses the duration of the background audio to create a slideshow.
  • the number of pictures, the slide show rate is determined, and a slide show is generated according to the play rate.
  • the slideshow generation of the customized content and the playback synchronization is realized, which solves the problem that the use experience of the slideshow playing mode on the mobile terminal in the related art is poor.
  • FIG. 1 is a schematic structural diagram of a slideshow production system according to Embodiment 1 of the present invention.
  • 3 is a flow chart of manual selection of the photo selection module 101
  • FIG. 4 is a flow chart of the audio file selection module 102 selecting an audio file
  • FIG. 5 is a flow chart of the final slide production module 103 generating a slide show
  • FIG. 6 is a flowchart of a method for generating a slide according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic structural diagram of a slideshow generating apparatus according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of a picture material acquiring module 701 of FIG. 7;
  • FIG. 9 is a schematic structural diagram of the screening condition configuration unit 7013 of FIG.
  • a slide application that is more common on a terminal is to display a picture that has already been taken, a slide show with a certain frame rate and different animation effects, and can add background music.
  • this method often has two shortcomings. First, the user can only preview all the photos taken, can not customize the selected photos, and can not automatically match the photos according to the photo attributes to automatically select; second, the user I can't control the number of slides and the fit of the music. Sometimes the background music hasn't finished, but the photos have already finished playing. Sometimes there are a lot of slides that haven't finished, but the music is too short.
  • an embodiment of the present invention provides a method and apparatus for generating a slideshow on a mobile terminal, so that a user can arbitrarily select a photo while providing an intelligent matching function, that is, automatically matching according to the attribute of the photo selected by the terminal. Automatically selecting photos with the same attributes also improves the user experience.
  • the embodiment of the invention provides a slideshow production system.
  • the structure of the system is as shown in FIG. 1 and includes:
  • Photo selection module 101 the module includes a counter and provides intelligent selection function
  • the above module constitutes the entire slide production system, and the scheme is described below.
  • the user can customize the selected photo, and can use the smart matching function to automatically match the photo according to the specific attribute of the selected photo; the customized audio file can be loaded as the playing background, and the music can be selected according to the selected music.
  • the duration and the number of sheets of the selected photo are used to calculate the playback rate, which is the perfect match between the length of the music playback and the length of the slideshow.
  • the terminal can enter the saved photo path from the file manager's entrance when making the slide show.
  • the counter is incremented by one until the selected photo ends, and the counter accumulates the number of selected photos and sends the slide to the slide.
  • the system provides two ways of intelligent selection, one is according to the picture taking time, and the other is according to the picture taking place. If the former is selected, after the user selects the first photo, the system automatically extracts the time information in the file attribute, and then automatically searches for the file with the same attribute in the current path, and each time a photo with the same attribute is searched, The system will automatically select and increment the counter until all searches are completed and the final result is sent to the slideshow production module.
  • the system will extract the file attribute of the first photo to see if there is location information, if The next selection is not performed in sequence, but the photo information selected by the user is also saved effectively, and the counter is also accumulated and sent to the slideshow production module until the first photo of the location attribute appears, and the location is The information is saved and then searched for photos with the same location attribute. Each time one is searched, it is automatically selected, and the counter is incremented by one until the search is completed, and the finally selected photo information and the accumulated number of sheets are sent to the slideshow making module.
  • the terminal After the photo selection is completed, the terminal enters the path of the audio file storage of the file manager to select background music, and the terminal extracts the duration information of the audio file storage, and then stores the information and sends it to the slideshow production module; the slideshow production module According to the number of photos in the counter and the length of the music obtained, the rate of playing the slideshow is calculated as a function, which maximizes the effect of the length of the music and the length of the slideshow.
  • the first is the photo selection module 101 of the terminal. If the user does not open the smart selection function, the terminal performs manual selection: the system enters the path of the file manager to save the image, and the user selects a valid selection operation, and the counter of the photo selection module is added. First, when the photo selection is completed, The terminal will receive a system trigger signal. At this time, the counter is accumulated and the final accumulated result is saved and sent to the slideshow production module, and the counter is cleared. If the user turns on the smart selection function, the user can select to automatically select according to the photographing time or Automatically select according to the location of the photo.
  • the terminal will automatically extract the time attribute of the file when the first photo is selected, and then automatically search for the file with the same attribute, the file attribute to be extracted is saved, and then all other file attributes are saved. This byte is compared. If they are the same, the time is the same.
  • the system automatically selects the photo. Each time a valid selection is made, the system will send the photo information to the slideshow production module, and the counter will be incremented until all the photos are automatically selected. At the end, this process is consistent with manual selection. If you choose to automatically select the location according to the location, the terminal will extract the location attribute of the first photo selected. If there is no such property, the photo has no matching features, but it is also a valid selection.
  • the photo will be sent to the slideshow. Make a module and increment the counter to continue selecting the next photo until the first photo with the location attribute appears. At this point, the terminal will extract the location information and automatically search for files with the same attributes. For each search, The photo is tagged and sent to the slideshow production module, and the counter is incremented by one until the search match is completed and the counter is cleared.
  • the system enters the music selection module 102, and the module enters the file manager to find the storage path of the audio file.
  • the music selection module extracts the duration information of the audio file, and This information is sent to the slideshow creation module 103; after the selection of the picture and music is completed, the system proceeds to the slideshow creation module 103.
  • the slideshow making module 103 calculates a matching play rate by a function according to the received photo number information and the music duration information.
  • the calculated play rate is less than a specific value (this value).
  • This value The user can set in advance, if it is not set, it is the default minimum experience value of the system), then the user is prompted that the music is too short, and the music needs to be selected again.
  • the music selection module 102 is entered again, and the user can re-select an audio file with a longer duration. It is also possible to select one audio file and the previous audio file to play in sequence. If the latter is selected, the slideshow creation module 103 needs to accumulate the first acquired music duration and the second acquired music duration to calculate the playback speed. . After the playback speed is set, the user can select the playback effect. After the above settings are completed, the system will play the selected photos at a certain playback speed with the set music background. At this time, the entire slide is completed.
  • the flowchart of the smart selection of the photo selection module 101 is used to obtain the photo information selected by the terminal and accumulate the number of sheets.
  • the user first chooses to automatically select by time or automatically according to location. If the selection is automatically selected according to time, the first photo is manually selected first, and the terminal tags the information of the photo and counts it, sends it to the slideshow creation module 103, and extracts the time attribute of the file and saves it. Then search all the pictures in sequence, compare the saved time attribute with the same byte of each picture file. If the comparison result is the same, the photo will be automatically selected, and the photo will be tagged and sent to the 103 module, the counter plus One. Repeat the above process until all image searches are completed.
  • the system will receive a trigger message.
  • all files with the same time attribute are automatically selected and the counter is cleared. If the latter is selected, that is, the picture is automatically selected according to the location information, the first photo is manually selected first, and the terminal tags the information of the photo and counts it, and sends it to the slideshow making module 103, and determines whether the file can be extracted. Location information (whether the file contains location information depends on whether the GPS function is turned on when the photo is taken). If it is not extracted, the photo is also a valid selection. According to the process, the information is sent to the C module, and the counter is incremented by one.
  • FIG. 3 is a flow chart of manual selection of the photo selection module 101.
  • the terminal first searches for the image save path through the path of the file manager, and then manually selects the photo, and sends each selected photo to the C module, and the counter adds one after each successful acquisition of the photo of the selected photo. Until the end of the selection, the result is also sent to the slideshow creation module 103 that creates the slideshow, and the slideshow creation module 103 saves the information and clears the counter.
  • FIG. 4 is a flow chart of the audio file selection module 102 selecting an audio file in the embodiment of the present invention.
  • the terminal first searches through the path of the file manager to the storage path of the audio file, and then selects the audio file. After receiving the message of the valid selected file, the terminal sends the file to the slideshow creation module 103, and the time length information of the extracted file is simultaneously sent to the slideshow creation module 103, and the slideshow creation module 103 saves the information after receiving the information.
  • FIG. 5 is a flow chart of the final slide show module 103 generating a slide show. First select the photo The information acquired by the module 101 and the audio file selection module 102 are extracted separately, and the appropriate playback speed is calculated in the following function calculation manner.
  • the terminal allows the user to set the minimum value of the playback speed in advance. If the user does not set it, the default experience value is used. If the calculated playback speed is less than the minimum value, the system prompts the user to select the music background file again, and can re-select the last selected file again, or on the basis of the last file, re-select and re-enter B. The flow of the module. If the user selects the latter, the system will play the selected files in sequence, and the duration will be accumulated, and the playback speed will be calculated again by the function one above.
  • the photo information determined by the photo selection module 101, the audio file information determined by the audio file selection module 102, and the entire processing flow of the slide creation module 103 constitute the entire slide production system, and are selected according to the calculated playback speed.
  • the fixed audio file is used as the background to play the selected files in sequence until the photo and music playback ends.
  • An embodiment of the present invention provides a method for generating a slideshow.
  • the process of creating a slideshow using the method is as shown in FIG. 6, and includes:
  • Step 601 Acquire a plurality of pictures selected by the user for making a slide show
  • the picture used may be a photo taken by the mobile terminal, or may be another saved picture.
  • the acquisition includes two methods, namely:
  • the user determines the picture to be used for the slideshow by selecting one by one;
  • the mobile terminal first acquires a plurality of pictures selected by the user one by one, and then counts the number of pictures selected by the user.
  • the counter can be incremented by one every time the user selects a picture by using a counter, and reference can be made to the related description in the first embodiment of the present invention.
  • the user turns on the automatic matching mode, and the terminal selects a picture according to the screening condition set by the user;
  • the screening conditions include any one or more of the following:
  • the custom label content may be a picture title edited by the user when taking a photo or saving a picture, a group (folder) where the picture is located, and the like.
  • the attribute information of the picture is extracted, such as shooting or saving time, shooting location, etc., and the attribute information is used as a screening condition, and other pictures having the same attribute information are selected as the picture for making the slide.
  • a plurality of pictures can be filtered out from the photos stored locally by the terminal according to the screening conditions for making a slide show.
  • Step 602 Acquire a background audio file.
  • an audio file as a slide background sound is selected from the audio files stored locally by the mobile terminal.
  • Step 603 Determine a slide show rate according to the duration of the background audio and the number of pictures used to create a slide show.
  • the playback rate can be calculated, that is, the time of each picture display is determined, so as to ensure that the picture display and the audio play are basically finished at the same time, and the picture is completed and the audio file is not played or the audio file has been played.
  • the problem For the calculation, refer to the corresponding description in the first embodiment of the present invention.
  • Step 604 Generate a slide show according to the play rate.
  • the embodiment of the present invention provides a slideshow generating device.
  • the structure of the device is as shown in FIG. 7, and includes:
  • the picture material obtaining module 701 is configured to obtain a plurality of pictures selected by the user for making a slide show
  • the audio acquiring module 702 is configured to obtain a background audio file.
  • the play rate calculation module 703 is configured to determine a slide show rate according to the duration of the background audio and the number of pictures used to create a slide show;
  • the slideshow production module 704 is configured to generate a slideshow based on the playback rate.
  • the structure of the picture material obtaining module 701 is as shown in FIG. 8 and includes:
  • the user selects the collecting unit 7011, and is configured to obtain a plurality of pictures selected by the user one by one;
  • the first quantity statistics unit 7012 is configured to count the number of pictures selected by the user.
  • the picture material obtaining module 701 further includes:
  • the screening condition configuration unit 7013 is configured to acquire a photo screening condition selected by the user;
  • the screening execution module 7014 is configured to filter out a plurality of pictures for making a slide according to the filtering condition from the photos stored locally by the terminal;
  • the second quantity statistics unit 7015 is configured to count the number of pictures obtained by the screening.
  • the screening condition includes any one or more of the following:
  • the structure of the screening condition configuration unit 7013 is as shown in FIG. 9, and includes:
  • the direct configuration subunit 901 is configured to directly obtain the content of the screening condition input by the user;
  • the configuration information extraction sub-unit 902 is configured to acquire the first picture selected by the user, and determine the content of the screening condition from the attribute information of the picture.
  • the above-mentioned slide generating device can be integrated into the mobile terminal system, or can be installed in the mobile terminal system as a separate software application, and the corresponding functions are completed by the mobile terminal.
  • An embodiment of the present invention provides a slideshow generating method and apparatus, which first acquires a plurality of pictures selected by a user for making a slideshow, and then acquires a background audio file, and then according to the duration of the background audio and used to create a slideshow The number of pictures of the slice, determining the slide show rate, and generating a slide show according to the play rate.
  • the slideshow generation of the customized content and the playback synchronization is realized, which solves the problem that the use experience of the slideshow playing mode on the mobile terminal in the related art is poor.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above technical solution realizes the slideshow generation of the customized content and the play synchronization, and solves the problem that the use experience of the slide show mode on the mobile terminal in the related art is poor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Television Signal Processing For Recording (AREA)
  • Non-Portable Lighting Devices Or Systems Thereof (AREA)

Abstract

A slide generation method and device, which relate to the field of mobile applications and solve the problem in the related art of poor user experience in playing slides on a mobile terminal. The method comprises: acquiring multiple pictures selected by a user and used for producing slides; acquiring a background audio file; determining a play speed of the slides according to the duration of the background audio and the number of the pictures used for producing the slides; and generating the slides according to the play speed. The technical scheme is applicable to a mobile terminal and implements slide generation with user-defined content and synchronized play.

Description

幻灯片生成方法和装置Slide generation method and device 技术领域Technical field
本发明涉及移动应用领域,尤其涉及一种在移动终端上的幻灯片生成方法和装置。The present invention relates to the field of mobile applications, and in particular, to a method and an apparatus for generating a slideshow on a mobile terminal.
背景技术Background technique
移动终端在现今社会的普遍性和重要性毋庸置疑,随着移动终端越来越重要,其兼具的娱乐性也越来越受到用户的重视,尤其是拍照功能以及相关的后期图片编辑和制作也越来越丰富,制作幻灯片也是其中一个很重要的功能。相关技术中,终端上比较普遍的幻灯片应用,是将已经拍摄好的图片,设置成一定帧率和不同动画效果的幻灯片进行预览播放,并且可以添加背景音乐。The universality and importance of mobile terminals in today's society is undoubted. As mobile terminals become more and more important, their entertainment is more and more valued by users, especially the camera function and related post-editing and production. It is also becoming more and more abundant, and making slides is one of the most important functions. In the related art, a slide application that is more common on a terminal is to display a picture that has already been taken, a slide show with a certain frame rate and different animation effects, and can add background music.
但相关技术中移动终端上幻灯片播放方式内容不可自定义,且容易出现音频与图片播放不同步的问题,使用体验差。However, in the related art, the content of the slide play mode on the mobile terminal is not customizable, and the problem that the audio and the picture play are not synchronized is easy to occur, and the use experience is poor.
发明内容Summary of the invention
本发明实施例提供了一种幻灯片生成方法和装置,解决了相关技术中移动终端上幻灯片播放方式使用体验差的问题。The embodiment of the invention provides a method and a device for generating a slide, which solves the problem that the use experience of the slide show mode on the mobile terminal in the related art is poor.
为解决上述技术问题,本发明实施例提供了一种幻灯片生成方法,包括:To solve the above technical problem, an embodiment of the present invention provides a method for generating a slideshow, including:
获取用户选择的多张用于制作幻灯片的图片;Obtain multiple images selected by the user for making slides;
获取背景音频文件;Get the background audio file;
根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;Determining a slide show rate according to the duration of the background audio and the number of pictures used to make a slide show;
根据所述播放速率,生成幻灯片。A slideshow is generated according to the playback rate.
可选的,获取用户选择的多张用于制作幻灯片的图片包括:Optionally, obtaining a plurality of images selected by the user for making a slideshow include:
获取用户逐张点选的多张图片; Obtain multiple images selected by the user one by one;
统计用户选择的图片的数量。Count the number of pictures selected by the user.
可选的,获取用户选择的多张用于制作幻灯片的图片包括:Optionally, obtaining a plurality of images selected by the user for making a slideshow include:
获取用户选择的照片筛选条件;Obtain the photo filter conditions selected by the user;
从终端本地存储的照片中,根据所述筛选条件,筛选出多张图片用于制作幻灯片;Extracting a plurality of pictures for making a slide according to the screening condition from photos stored locally by the terminal;
统计筛选得到的图片的数量。The number of images obtained by statistical screening.
可选的,所述筛选条件包括以下任一项或任意多项:Optionally, the screening condition includes any one or more of the following:
拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
可选的,获取用户选择的照片筛选条件包括:Optionally, the photo filtering conditions for obtaining the user selection include:
直接获取用户输入的筛选条件内容;或,Directly obtain the content of the filter condition input by the user; or,
获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容。The first picture selected by the user is obtained, and the content of the screening condition is determined from the attribute information of the picture.
为解决上述技术问题,本发明实施例还提供了一种幻灯片生成装置,包括:In order to solve the above technical problem, an embodiment of the present invention further provides a slideshow generating apparatus, including:
图片素材获取模块,设置为获取用户选择的多张用于制作幻灯片的图片;a picture material acquisition module, configured to obtain a plurality of pictures selected by the user for making a slide show;
音频获取模块,设置为获取背景音频文件;An audio acquisition module, configured to obtain a background audio file;
播放速率计算模块,设置为根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;a play rate calculation module, configured to determine a slide show rate according to a duration of the background audio and a number of pictures used to create a slide show;
幻灯片制作模块,设置为根据所述播放速率,生成幻灯片。A slideshow production module is configured to generate a slideshow based on the playback rate.
可选的,所述图片素材获取模块包括:Optionally, the picture material obtaining module includes:
用户选择收集单元,设置为获取用户逐张点选的多张图片;The user selects a collection unit, and is set to obtain a plurality of pictures selected by the user one by one;
第一数量统计单元,设置为统计用户选择的图片的数量。The first quantity statistics unit is set to count the number of pictures selected by the user.
可选的,所述图片素材获取模块包括:Optionally, the picture material obtaining module includes:
筛选条件配置单元,设置为获取用户选择的照片筛选条件;The filter condition configuration unit is configured to obtain a photo selection condition selected by the user;
筛选执行单元,设置为从终端本地存储的照片中,根据所述筛选条件, 筛选出多张图片用于制作幻灯片;Filtering the execution unit, set to be stored locally from the terminal, according to the filtering conditions, Filter out multiple images for making slides;
第二数量统计单元,设置为统计筛选得到的图片的数量。The second number of statistical units is set to the number of pictures obtained by statistical filtering.
可选的,所述筛选条件包括以下任一项或任意多项:Optionally, the screening condition includes any one or more of the following:
拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
可选的,所述筛选条件配置单元包括:Optionally, the screening condition configuration unit includes:
直接配置子单元,设置为直接获取用户输入的筛选条件内容;Directly configure the subunit, set to directly obtain the content of the filter condition input by the user;
配置信息提取子单元,设置为获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容。The configuration information extraction subunit is configured to obtain the first picture selected by the user, and determine the content of the screening condition from the attribute information of the picture.
为解决上述技术问题,本发明实施例还提供了一种计算机程序,包括程序指令,当该程序指令被幻灯片生成装置执行时,使得该幻灯片生成装置可执行如上所述的方法。In order to solve the above technical problem, an embodiment of the present invention further provides a computer program, including program instructions, when the program instruction is executed by a slideshow generating device, causing the slideshow generating device to perform the method as described above.
为解决上述技术问题,本发明实施例还提供了一种载有所述计算机程序的载体。In order to solve the above technical problem, an embodiment of the present invention further provides a carrier carrying the computer program.
本发明实施例提供了一种幻灯片生成方法和装置,首先获取用户选择的多张用于制作幻灯片的图片,再获取背景音频文件,然后根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率,根据所述播放速率,生成幻灯片。实现了自定义内容和播放同步的幻灯片生成,解决了相关技术中移动终端上幻灯片播放方式使用体验差的问题。An embodiment of the present invention provides a slideshow generation method and apparatus, which first acquires a plurality of pictures selected by a user for making a slideshow, and then acquires a background audio file, and then uses the duration of the background audio to create a slideshow. The number of pictures, the slide show rate is determined, and a slide show is generated according to the play rate. The slideshow generation of the customized content and the playback synchronization is realized, which solves the problem that the use experience of the slideshow playing mode on the mobile terminal in the related art is poor.
附图概述BRIEF abstract
图1为本发明实施例一提供的一种幻灯片制作系统的结构示意图;1 is a schematic structural diagram of a slideshow production system according to Embodiment 1 of the present invention;
图2为照片选取模块101的智能选取的流程图;2 is a flow chart of intelligent selection of the photo selection module 101;
图3为照片选取模块101的手动选取的流程图;3 is a flow chart of manual selection of the photo selection module 101;
图4为音频文件选取模块102选取音频文件的流程图; 4 is a flow chart of the audio file selection module 102 selecting an audio file;
图5为最终的幻灯片制作模块103生成幻灯片的流程图;FIG. 5 is a flow chart of the final slide production module 103 generating a slide show;
图6为本发明实施例二提供的一种幻灯片生成方法的流程图;FIG. 6 is a flowchart of a method for generating a slide according to Embodiment 2 of the present invention;
图7为本发明实施例三提供的一种幻灯片生成装置的结构示意图;FIG. 7 is a schematic structural diagram of a slideshow generating apparatus according to Embodiment 3 of the present invention; FIG.
图8为图7中图片素材获取模块701的结构示意图;FIG. 8 is a schematic structural diagram of a picture material acquiring module 701 of FIG. 7;
图9为图8中筛选条件配置单元7013的结构示意图。FIG. 9 is a schematic structural diagram of the screening condition configuration unit 7013 of FIG.
本发明的较佳实施方式Preferred embodiment of the invention
相关技术中,终端上比较普遍的幻灯片应用,是将已经拍摄好的图片,设置成一定帧率和不同动画效果的幻灯片进行预览播放,并且可以添加背景音乐。但是这种方法往往有两个缺点,第一,用户只能将所有拍照的照片进行幻灯片预览,不能自定义选取照片,更无法智能的根据照片属性来自动匹配照片进行选择;第二,用户无法控制幻灯片的张数和播放音乐的配合度,有时背景音乐还没有放完,但是照片已经播放完了,有时则是幻灯片还有很多没放完,但是音乐太短了。In the related art, a slide application that is more common on a terminal is to display a picture that has already been taken, a slide show with a certain frame rate and different animation effects, and can add background music. However, this method often has two shortcomings. First, the user can only preview all the photos taken, can not customize the selected photos, and can not automatically match the photos according to the photo attributes to automatically select; second, the user I can't control the number of slides and the fit of the music. Sometimes the background music hasn't finished, but the photos have already finished playing. Sometimes there are a lot of slides that haven't finished, but the music is too short.
为了解决上述问题,本发明的实施例提供了一种移动终端上的幻灯片生成方法和装置,让用户可以任意选择照片的同时,提供智能匹配功能,即根据终端选取的照片的属性来自动匹配相同属性的照片进行自动选择,同时也很好的提高了用户体验。In order to solve the above problem, an embodiment of the present invention provides a method and apparatus for generating a slideshow on a mobile terminal, so that a user can arbitrarily select a photo while providing an intelligent matching function, that is, automatically matching according to the attribute of the photo selected by the terminal. Automatically selecting photos with the same attributes also improves the user experience.
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
首先结合附图,对本发明的实施例一进行说明。First, the first embodiment of the present invention will be described with reference to the accompanying drawings.
本发明实施例提供了一种幻灯片制作系统,该系统的结构如图1所示,包括:The embodiment of the invention provides a slideshow production system. The structure of the system is as shown in FIG. 1 and includes:
照片选取模块101,此模块包含一个计数器,并提供智能选取功能; Photo selection module 101, the module includes a counter and provides intelligent selection function;
音乐选取模块102; Music selection module 102;
幻灯片制作模块103。 Slideshow production module 103.
由上述模块就组成了整个幻灯片制作的系统,下面介绍方案。 The above module constitutes the entire slide production system, and the scheme is described below.
用户在拍照后,可以自定义选取所拍的照片,并可以使用智能匹配功能,根据选取的照片的特定属性自动匹配照片;可以加载自定义选取的音频文件作为播放背景,并且可以按照选取音乐的时长和所选照片的张数来计算播放的速率,达到音乐播放时长和幻灯片播放时长完美吻合的效果。After the user takes a photo, the user can customize the selected photo, and can use the smart matching function to automatically match the photo according to the specific attribute of the selected photo; the customized audio file can be loaded as the playing background, and the music can be selected according to the selected music. The duration and the number of sheets of the selected photo are used to calculate the playback rate, which is the perfect match between the length of the music playback and the length of the slideshow.
在用户拍完照片后,开始制作幻灯片。终端可以在制作幻灯片时,从文件管理器的入口进入到保存的照片路径,每选取一张照片,计数器加一,直到选取照片结束,计数器累计了所选照片的张数并发送给幻灯片制作模块,上述是手动选取照片的过程。After the user takes a photo, start making a slideshow. The terminal can enter the saved photo path from the file manager's entrance when making the slide show. Each time a photo is selected, the counter is incremented by one until the selected photo ends, and the counter accumulates the number of selected photos and sends the slide to the slide. Making a module, the above is the process of manually selecting a photo.
如果用户在选取照片前打开智能选取功能,此时系统提供两种智能选取的方式,一种是按照图片的拍照时间,另一种是按照图片的拍照地点。如果选择前者,那么在用户选取第一张照片后,系统会自动提取文件属性中的时间信息,然后在当前路径下自动搜索匹配有相同属性的文件,每搜索到一张具有相同属性的照片,系统会自动选取,计数器加一,直到全部搜索完成,将最终的结果发送给幻灯片制作模块。如果选择按照图片的拍照地点来智能选取,因为地点属性需要在拍照前打开GPS功能,所以不是所有照片都有此属性,因此系统会提取第一张照片的文件属性,看是否有地点信息,如果没有再顺序进行下一张选取,但是本次用户选取的照片信息也是有效保存,计数器也会累计并发送给幻灯片制作模块,直到有地点属性的第一张照片出现,此时会将此地点信息保存然后搜索具有相同地点属性的照片,每搜索到一张,则自动选取,计数器加一,直到搜索完成,将最终选取的照片信息和累计张数发送给幻灯片制作模块。If the user opens the smart selection function before selecting the photo, the system provides two ways of intelligent selection, one is according to the picture taking time, and the other is according to the picture taking place. If the former is selected, after the user selects the first photo, the system automatically extracts the time information in the file attribute, and then automatically searches for the file with the same attribute in the current path, and each time a photo with the same attribute is searched, The system will automatically select and increment the counter until all searches are completed and the final result is sent to the slideshow production module. If you choose to follow the photo location of the picture to intelligently select, because the location attribute needs to open the GPS function before taking pictures, not all photos have this attribute, so the system will extract the file attribute of the first photo to see if there is location information, if The next selection is not performed in sequence, but the photo information selected by the user is also saved effectively, and the counter is also accumulated and sent to the slideshow production module until the first photo of the location attribute appears, and the location is The information is saved and then searched for photos with the same location attribute. Each time one is searched, it is automatically selected, and the counter is incremented by one until the search is completed, and the finally selected photo information and the accumulated number of sheets are sent to the slideshow making module.
照片选取完成后,终端进入文件管理器的音频文件存储的路径进行选取背景音乐,终端此时提取音频文件存储的时长信息,将此信息存储后也发送给幻灯片制作模块;幻灯片制作模块此时根据计数器中的照片张数和获取到的音乐时长,以函数的方式计算出播放幻灯片的速率,最大程度上满足音乐时长和幻灯片播放时长吻合的效果。After the photo selection is completed, the terminal enters the path of the audio file storage of the file manager to select background music, and the terminal extracts the duration information of the audio file storage, and then stores the information and sends it to the slideshow production module; the slideshow production module According to the number of photos in the counter and the length of the music obtained, the rate of playing the slideshow is calculated as a function, which maximizes the effect of the length of the music and the length of the slideshow.
首先是终端的照片选取模块101,如果用户没有打开智能选取功能,终端则进行手动选取:系统进入文件管理器的图片保存的路径进行选取,用户每操作一次有效选取操作,照片选取模块的计数器加一,照片选取完成时, 终端会收到一个系统的触发信号,此时计数器累加结束,将最终的累加结果保存并发送给幻灯片制作模块,计数器清零;如果用户打开智能选取功能:用户可以选择按照拍照时间自动选取或按照拍照地点自动选取。选择按照拍照时间自动选取,则终端会在选取到第一张照片时,自动提取文件的时间属性,然后自动搜索具有相同属性的文件,即将提取的文件属性保存,然后对所有其他的文件属性中的这个字节进行对比,如果相同,则说明时间一致,系统则自动选取该照片,每进行一次有效选取,系统会将照片信息发送给幻灯片制作模块,并且计数器加一,直到所有照片自动选取结束,这个过程和手动选取是一致的。如果选择按照拍照地点自动选取,终端会提取选取的第一张照片的地点属性,如果没有此属性,则说明此照片没有匹配要素,但是也是一次有效选取,系统会将该照片信息发送给幻灯片制作模块并计数器加一,继续选取下一张照片,直到第一张有地点属性的照片出现,此时终端会提取该地点信息,自动搜索匹配具有相同属性的文件,每搜索到一张,则将该照片打上标签发送给幻灯片制作模块,计数器加一,直到搜索匹配完成,计数器清零。The first is the photo selection module 101 of the terminal. If the user does not open the smart selection function, the terminal performs manual selection: the system enters the path of the file manager to save the image, and the user selects a valid selection operation, and the counter of the photo selection module is added. First, when the photo selection is completed, The terminal will receive a system trigger signal. At this time, the counter is accumulated and the final accumulated result is saved and sent to the slideshow production module, and the counter is cleared. If the user turns on the smart selection function, the user can select to automatically select according to the photographing time or Automatically select according to the location of the photo. Select to automatically select according to the time of the photo, the terminal will automatically extract the time attribute of the file when the first photo is selected, and then automatically search for the file with the same attribute, the file attribute to be extracted is saved, and then all other file attributes are saved. This byte is compared. If they are the same, the time is the same. The system automatically selects the photo. Each time a valid selection is made, the system will send the photo information to the slideshow production module, and the counter will be incremented until all the photos are automatically selected. At the end, this process is consistent with manual selection. If you choose to automatically select the location according to the location, the terminal will extract the location attribute of the first photo selected. If there is no such property, the photo has no matching features, but it is also a valid selection. The photo will be sent to the slideshow. Make a module and increment the counter to continue selecting the next photo until the first photo with the location attribute appears. At this point, the terminal will extract the location information and automatically search for files with the same attributes. For each search, The photo is tagged and sent to the slideshow production module, and the counter is incremented by one until the search match is completed and the counter is cleared.
照片选取结束后,系统进入到音乐选取模块102,此模块进入到文件管理器的入口找到音频文件的存储路径,用户有效选取音频文件后,音乐选取模块会提取该音频文件的时长信息,并将此信息发送给幻灯片制作模块103;图片和音乐都选取结束后,系统进入到幻灯片制作模块103。幻灯片制作模块103根据收到的照片张数信息和音乐时长信息,用函数的方式计算出匹配的播放速率,如果选取的音频文件太短,计算出的播放速率小于特定的值,(这个值用户可以预先设置,不设置的话就是系统默认的最小经验值),则提示用户音乐太短,需要再次选取音乐,此时又进入音乐选取模块102,用户可以重新选取一个时长更长的音频文件,也可以再选取一个音频文件和上一个音频文件依次播放,如果选择后者,幻灯片制作模块103则需要把第一次获取的音乐时长和第二次获取的音乐时长进行累加来计算出播放速度。播放速度设置好后,用户可以选择播放效果,以上设置都完成后,系统就以设置好的音乐背景,按照一定的播放速度一次播放所选取的照片,这时整个幻灯片就制作完成了。 After the photo selection is finished, the system enters the music selection module 102, and the module enters the file manager to find the storage path of the audio file. After the user effectively selects the audio file, the music selection module extracts the duration information of the audio file, and This information is sent to the slideshow creation module 103; after the selection of the picture and music is completed, the system proceeds to the slideshow creation module 103. The slideshow making module 103 calculates a matching play rate by a function according to the received photo number information and the music duration information. If the selected audio file is too short, the calculated play rate is less than a specific value (this value The user can set in advance, if it is not set, it is the default minimum experience value of the system), then the user is prompted that the music is too short, and the music needs to be selected again. At this time, the music selection module 102 is entered again, and the user can re-select an audio file with a longer duration. It is also possible to select one audio file and the previous audio file to play in sequence. If the latter is selected, the slideshow creation module 103 needs to accumulate the first acquired music duration and the second acquired music duration to calculate the playback speed. . After the playback speed is set, the user can select the playback effect. After the above settings are completed, the system will play the selected photos at a certain playback speed with the set music background. At this time, the entire slide is completed.
如图2所示,本发明实施例涉及到的照片选取模块101的智能选取的流程图,用于获取终端选取的照片信息并累计张数。用户首先选择按照时间自动选取还是按照地点自动选取。如果选择按照时间自动选取,首先手动选取第一张照片,终端将此照片的信息打标签并计数后发送给幻灯片制作模块103,并提取该文件的时间属性并保存。然后顺序搜索所有图片,将保存的时间属性和每一个图片文件的相同字节进行对比,如果对比结果一致,则自动选取照片,并将该照片打标签后将此信息发送给103模块,计数器加一。重复以上流程直到所有图片搜索完成,完成后系统会收到触发消息,此时所有具有相同时间属性的文件都被自动选取,计数器清零。如果选择后者,也就是按照地点信息自动选取图片,首先手动选取第一张照片,终端将此照片的信息打标签并计数后发送给幻灯片制作模块103,并判断是否能提取到该文件的地点信息(文件是否包含地点信息,依赖于拍照时是否打开了GPS功能),如果没有提取到,则此照片也属于一次有效选取,按照流程将信息发送给C模块,并计数器加一,再次手动选取照片,重复以上流程直到第一张有地点属性的照片出现,提取该信息并保存,顺序搜索所有图片,对比其相同字节是否一致,如果一致则自动选取,直到所有图片对比完成,此时所有具有相同地点属性的照片选取完成,计数器结果发送给C后清零。As shown in FIG. 2, the flowchart of the smart selection of the photo selection module 101 is used to obtain the photo information selected by the terminal and accumulate the number of sheets. The user first chooses to automatically select by time or automatically according to location. If the selection is automatically selected according to time, the first photo is manually selected first, and the terminal tags the information of the photo and counts it, sends it to the slideshow creation module 103, and extracts the time attribute of the file and saves it. Then search all the pictures in sequence, compare the saved time attribute with the same byte of each picture file. If the comparison result is the same, the photo will be automatically selected, and the photo will be tagged and sent to the 103 module, the counter plus One. Repeat the above process until all image searches are completed. After the completion, the system will receive a trigger message. At this time, all files with the same time attribute are automatically selected and the counter is cleared. If the latter is selected, that is, the picture is automatically selected according to the location information, the first photo is manually selected first, and the terminal tags the information of the photo and counts it, and sends it to the slideshow making module 103, and determines whether the file can be extracted. Location information (whether the file contains location information depends on whether the GPS function is turned on when the photo is taken). If it is not extracted, the photo is also a valid selection. According to the process, the information is sent to the C module, and the counter is incremented by one. Select the photo, repeat the above process until the first photo with the location attribute appears, extract the information and save it, search all the images in sequence, compare whether the same byte is consistent, if it is consistent, select it automatically until all the images are compared. All photos with the same location attribute are selected and the counter result is sent to C and cleared.
图3是照片选取模块101的手动选取的流程图。终端首先通过文件管理器的路径搜索到图片保存路径,然后进行手动选取照片,将每一个选取成功的照片都打标志发给C模块,计数器在每一次获取到成功选取照片的消息后累计加一,直到选取结束,将此结果也发送给制作幻灯片的幻灯片制作模块103,幻灯片制作模块103收到信息后保存,计数器清零。FIG. 3 is a flow chart of manual selection of the photo selection module 101. The terminal first searches for the image save path through the path of the file manager, and then manually selects the photo, and sends each selected photo to the C module, and the counter adds one after each successful acquisition of the photo of the selected photo. Until the end of the selection, the result is also sent to the slideshow creation module 103 that creates the slideshow, and the slideshow creation module 103 saves the information and clears the counter.
图4是本发明实施例中音频文件选取模块102选取音频文件的流程图。4 is a flow chart of the audio file selection module 102 selecting an audio file in the embodiment of the present invention.
终端首先通过文件管理器的路径搜素到音频文件的存储路径,然后进行音频文件的选取。终端收到有效选取文件的消息后,将此文件打标发送给幻灯片制作模块103,并提取文件的时长信息同时发送给幻灯片制作模块103,幻灯片制作模块103收到信息后保存。The terminal first searches through the path of the file manager to the storage path of the audio file, and then selects the audio file. After receiving the message of the valid selected file, the terminal sends the file to the slideshow creation module 103, and the time length information of the extracted file is simultaneously sent to the slideshow creation module 103, and the slideshow creation module 103 saves the information after receiving the information.
图5是最终的幻灯片制作模块103生成幻灯片的流程图。首先将照片选 取模块101和音频文件选取模块102获取到的信息分别提取出来,以如下的函数计算的方式,计算出合适的播放速度。FIG. 5 is a flow chart of the final slide show module 103 generating a slide show. First select the photo The information acquired by the module 101 and the audio file selection module 102 are extracted separately, and the appropriate playback speed is calculated in the following function calculation manner.
函数一:播放速度=音乐时长(s)/照片数(张)Function one: play speed = music duration (s) / number of photos (张)
终端允许用户提前设置播放速度的最小值,如果用户不设置,就采用默认的经验值。计算出的播放速度如果小于这个最小值,那么系统提示用户需要再次选择音乐背景文件,可以撤销上次选择的文件重新再次选择,也可以在上次文件的基础上,累计再选择,重新进入B模块的流程。如果用户选择后者,那么系统会将两次选择的文件顺序播放,时长进行累加,再次以上面函数一的方式计算出播放速度。The terminal allows the user to set the minimum value of the playback speed in advance. If the user does not set it, the default experience value is used. If the calculated playback speed is less than the minimum value, the system prompts the user to select the music background file again, and can re-select the last selected file again, or on the basis of the last file, re-select and re-enter B. The flow of the module. If the user selects the latter, the system will play the selected files in sequence, and the duration will be accumulated, and the playback speed will be calculated again by the function one above.
照片选取模块101确定的照片信息,音频文件选取模块102确定的音频文件信息,以及幻灯片制作模块103的整个处理流程,就组成了整个幻灯片制作的系统,按照计算出的播放速度,以选定的音频文件做背景,顺序播放所选中的文件,直到照片和音乐播放结束。The photo information determined by the photo selection module 101, the audio file information determined by the audio file selection module 102, and the entire processing flow of the slide creation module 103 constitute the entire slide production system, and are selected according to the calculated playback speed. The fixed audio file is used as the background to play the selected files in sequence until the photo and music playback ends.
下面结合附图,对本发明的实施例一进行说明。Embodiment 1 of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供了一种幻灯片生成方法,使用该方法制作幻灯片的流程如图6所示,包括:An embodiment of the present invention provides a method for generating a slideshow. The process of creating a slideshow using the method is as shown in FIG. 6, and includes:
步骤601、获取用户选择的多张用于制作幻灯片的图片;Step 601: Acquire a plurality of pictures selected by the user for making a slide show;
本发明实施例中,所使用的图片可以是移动终端拍照得到的照片,也可以是保存的其他图片。In the embodiment of the present invention, the picture used may be a photo taken by the mobile terminal, or may be another saved picture.
本步骤中,获取包含两种方式,分别为:In this step, the acquisition includes two methods, namely:
1、用户通过逐张选取的方式确定要制作幻灯片使用的图片;1. The user determines the picture to be used for the slideshow by selecting one by one;
此种方式,移动终端首先获取用户逐张点选的多张图片,然后统计用户选择的图片的数量。可通过计数器,在用户每选取一张图片时,计数器就加1,可参考本发明的实施例一中的相关说明。In this way, the mobile terminal first acquires a plurality of pictures selected by the user one by one, and then counts the number of pictures selected by the user. The counter can be incremented by one every time the user selects a picture by using a counter, and reference can be made to the related description in the first embodiment of the present invention.
2、用户开启自动匹配模式,终端根据用户设置的筛选条件选择图片;2. The user turns on the automatic matching mode, and the terminal selects a picture according to the screening condition set by the user;
所述筛选条件包括以下任一或任意多项: The screening conditions include any one or more of the following:
拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
其中,自定义标签内容可以是用户在拍摄照片或保存图片时编辑的图片标题、图片所在分组(文件夹)等。The custom label content may be a picture title edited by the user when taking a photo or saving a picture, a group (folder) where the picture is located, and the like.
首先需要获取用户选择的照片筛选条件,包括:First you need to get the photo filter conditions selected by the user, including:
1)直接获取用户输入的筛选条件内容,即用户可直接设置筛选条件。在设置筛选条件时,可设只包含一项内容的筛选条件,如只设置拍摄时间或保存时间是2014年2月10号或只设置拍摄地点为上海这样的筛选条件,也可以设置包含多个内容的筛选条件,如保存图片文件夹中2014年1月1日至3月1日的图片。1) directly obtain the content of the filter condition input by the user, that is, the user can directly set the filter condition. When setting the filter condition, you can set a filter condition that includes only one item. For example, only set the shooting time or save time is February 10, 2014 or only set the shooting condition to be the screening condition of Shanghai. Content filtering conditions, such as saving pictures in the image folder from January 1 to March 1, 2014.
2)获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容;2) obtaining the first picture selected by the user, and determining the content of the screening condition from the attribute information of the picture;
即用户选取一张图片后,提取该图片的属性信息,如拍摄或保存时间、拍摄地点等,以这些属性信息作为筛选条件,选择具有相同属性信息的其他图片作为用来制作幻灯片的图片。That is, after the user selects a picture, the attribute information of the picture is extracted, such as shooting or saving time, shooting location, etc., and the attribute information is used as a screening condition, and other pictures having the same attribute information are selected as the picture for making the slide.
在确定筛选条件后,即可从终端本地存储的照片中,根据所述筛选条件,筛选出多张图片用于制作幻灯片。After the screening conditions are determined, a plurality of pictures can be filtered out from the photos stored locally by the terminal according to the screening conditions for making a slide show.
统计筛选得到的图片的数量Number of pictures obtained by statistical screening
步骤602、获取背景音频文件;Step 602: Acquire a background audio file.
本步骤中,从移动终端本地存储的音频文件中,选择作为幻灯片背景音的音频文件。In this step, an audio file as a slide background sound is selected from the audio files stored locally by the mobile terminal.
步骤603、根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;Step 603: Determine a slide show rate according to the duration of the background audio and the number of pictures used to create a slide show.
本步骤中,可计算播放速率,即确定每张图片展示的时间,以保证图片展示与音频播放基本同时结束,消除图片展示完毕而音频文件未播放完或音频文件已播放完图片仍在继续展示的问题。计算方式可参照本发明的实施例一中的相应说明。In this step, the playback rate can be calculated, that is, the time of each picture display is determined, so as to ensure that the picture display and the audio play are basically finished at the same time, and the picture is completed and the audio file is not played or the audio file has been played. The problem. For the calculation, refer to the corresponding description in the first embodiment of the present invention.
步骤604、根据所述播放速率,生成幻灯片。 Step 604: Generate a slide show according to the play rate.
下面结合附图,对本发明的实施例三进行说明。Embodiment 3 of the present invention will be described below with reference to the accompanying drawings.
本发明实施例提供了一种幻灯片生成装置,该装置的结构如图7所示,包括:The embodiment of the present invention provides a slideshow generating device. The structure of the device is as shown in FIG. 7, and includes:
图片素材获取模块701,设置为获取用户选择的多张用于制作幻灯片的图片;The picture material obtaining module 701 is configured to obtain a plurality of pictures selected by the user for making a slide show;
音频获取模块702,设置为获取背景音频文件;The audio acquiring module 702 is configured to obtain a background audio file.
播放速率计算模块703,设置为根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;The play rate calculation module 703 is configured to determine a slide show rate according to the duration of the background audio and the number of pictures used to create a slide show;
幻灯片制作模块704,设置为根据所述播放速率,生成幻灯片。The slideshow production module 704 is configured to generate a slideshow based on the playback rate.
可选的,所述图片素材获取模块701的结构如图8所示,包括:Optionally, the structure of the picture material obtaining module 701 is as shown in FIG. 8 and includes:
用户选择收集单元7011,设置为获取用户逐张点选的多张图片;The user selects the collecting unit 7011, and is configured to obtain a plurality of pictures selected by the user one by one;
第一数量统计单元7012,设置为统计用户选择的图片的数量。The first quantity statistics unit 7012 is configured to count the number of pictures selected by the user.
可选的,所述图片素材获取模块701还包括:Optionally, the picture material obtaining module 701 further includes:
筛选条件配置单元7013,设置为获取用户选择的照片筛选条件;The screening condition configuration unit 7013 is configured to acquire a photo screening condition selected by the user;
筛选执行模块7014,设置为从终端本地存储的照片中,根据所述筛选条件,筛选出多张图片用于制作幻灯片;The screening execution module 7014 is configured to filter out a plurality of pictures for making a slide according to the filtering condition from the photos stored locally by the terminal;
第二数量统计单元7015,设置为统计筛选得到的图片的数量。The second quantity statistics unit 7015 is configured to count the number of pictures obtained by the screening.
可选的,所述筛选条件包括以下任一或任意多项:Optionally, the screening condition includes any one or more of the following:
拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
可选的,所述筛选条件配置单元7013的结构如图9所示,包括:Optionally, the structure of the screening condition configuration unit 7013 is as shown in FIG. 9, and includes:
直接配置子单元901,设置为直接获取用户输入的筛选条件内容;The direct configuration subunit 901 is configured to directly obtain the content of the screening condition input by the user;
配置信息提取子单元902,设置为获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容。The configuration information extraction sub-unit 902 is configured to acquire the first picture selected by the user, and determine the content of the screening condition from the attribute information of the picture.
上述幻灯片生成装置可集成于移动终端系统,也可作为一个单独的软件应用安装于移动终端系统中,由移动终端完成相应功能。 The above-mentioned slide generating device can be integrated into the mobile terminal system, or can be installed in the mobile terminal system as a separate software application, and the corresponding functions are completed by the mobile terminal.
本发明的实施例提供了一种幻灯片生成方法和装置,首先获取用户选择的多张用于制作幻灯片的图片,再获取背景音频文件,然后根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率,根据所述播放速率,生成幻灯片。实现了自定义内容和播放同步的幻灯片生成,解决了相关技术中移动终端上幻灯片播放方式使用体验差的问题。An embodiment of the present invention provides a slideshow generating method and apparatus, which first acquires a plurality of pictures selected by a user for making a slideshow, and then acquires a background audio file, and then according to the duration of the background audio and used to create a slideshow The number of pictures of the slice, determining the slide show rate, and generating a slide show according to the play rate. The slideshow generation of the customized content and the playback synchronization is realized, which solves the problem that the use experience of the slideshow playing mode on the mobile terminal in the related art is poor.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
上述技术方案实现了自定义内容和播放同步的幻灯片生成,解决了相关技术中移动终端上幻灯片播放方式使用体验差的问题。 The above technical solution realizes the slideshow generation of the customized content and the play synchronization, and solves the problem that the use experience of the slide show mode on the mobile terminal in the related art is poor.

Claims (12)

  1. 一种幻灯片生成方法,包括:A slide generation method includes:
    获取用户选择的多张用于制作幻灯片的图片;Obtain multiple images selected by the user for making slides;
    获取背景音频文件;Get the background audio file;
    根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;Determining a slide show rate according to the duration of the background audio and the number of pictures used to make a slide show;
    根据所述播放速率,生成幻灯片。A slideshow is generated according to the playback rate.
  2. 根据权利要求1所述的幻灯片生成方法,其中,获取用户选择的多张用于制作幻灯片的图片包括:The slideshow generating method according to claim 1, wherein the acquiring a plurality of pictures selected by the user for making a slideshow comprises:
    获取用户逐张点选的多张图片;Obtain multiple images selected by the user one by one;
    统计用户选择的图片的数量。Count the number of pictures selected by the user.
  3. 根据权利要求1所述的幻灯片生成方法,其中,获取用户选择的多张用于制作幻灯片的图片包括:The slideshow generating method according to claim 1, wherein the acquiring a plurality of pictures selected by the user for making a slideshow comprises:
    获取用户选择的照片筛选条件;Obtain the photo filter conditions selected by the user;
    从终端本地存储的照片中,根据所述筛选条件,筛选出多张图片用于制作幻灯片;Extracting a plurality of pictures for making a slide according to the screening condition from photos stored locally by the terminal;
    统计筛选得到的图片的数量。The number of images obtained by statistical screening.
  4. 根据权利要求3所述的幻灯片生成方法,其中,所述筛选条件包括以下任一项或任意多项:The slideshow generating method according to claim 3, wherein the screening condition comprises any one or more of the following:
    拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
  5. 根据权利要求4所述的幻灯片生成方法,其中,获取用户选择的照片筛选条件包括:The slideshow generating method according to claim 4, wherein the obtaining the photo selection condition selected by the user comprises:
    直接获取用户输入的筛选条件内容;或,Directly obtain the content of the filter condition input by the user; or,
    获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容。 The first picture selected by the user is obtained, and the content of the screening condition is determined from the attribute information of the picture.
  6. 一种幻灯片生成装置,其包括:A slideshow generating device comprising:
    图片素材获取模块,设置为获取用户选择的多张用于制作幻灯片的图片;a picture material acquisition module, configured to obtain a plurality of pictures selected by the user for making a slide show;
    音频获取模块,设置为获取背景音频文件;An audio acquisition module, configured to obtain a background audio file;
    播放速率计算模块,设置为根据所述背景音频的时长和用于制作幻灯片的图片的数量,确定幻灯片播放速率;a play rate calculation module, configured to determine a slide show rate according to a duration of the background audio and a number of pictures used to create a slide show;
    幻灯片制作模块,设置为根据所述播放速率,生成幻灯片。A slideshow production module is configured to generate a slideshow based on the playback rate.
  7. 根据权利要求6所述的幻灯片生成装置,其中,所述图片素材获取模块包括:The slideshow generating apparatus according to claim 6, wherein the picture material acquisition module comprises:
    用户选择收集单元,设置为获取用户逐张点选的多张图片;The user selects a collection unit, and is set to obtain a plurality of pictures selected by the user one by one;
    第一数量统计单元,设置为统计用户选择的图片的数量。The first quantity statistics unit is set to count the number of pictures selected by the user.
  8. 根据权利要求6所述的幻灯片生成装置,其中,所述图片素材获取模块包括:The slideshow generating apparatus according to claim 6, wherein the picture material acquisition module comprises:
    筛选条件配置单元,设置为获取用户选择的照片筛选条件;The filter condition configuration unit is configured to obtain a photo selection condition selected by the user;
    筛选执行单元,设置为从终端本地存储的照片中,根据所述筛选条件,筛选出多张图片用于制作幻灯片;The screening execution unit is configured to filter out a plurality of pictures for making a slide according to the filtering condition in the photos stored locally from the terminal;
    第二数量统计单元,设置为统计筛选得到的图片的数量。The second number of statistical units is set to the number of pictures obtained by statistical filtering.
  9. 根据权利要求8所述的幻灯片生成装置,其中,所述筛选条件包括以下任一项或任意多项:The slideshow generating device according to claim 8, wherein the filter condition comprises any one or more of the following:
    拍摄时间或保存时间,拍摄地点,自定义标签内容。Shooting time or save time, shooting location, custom label content.
  10. 根据权利要求9所述的幻灯片生成装置,其中,所述筛选条件配置单元包括:The slideshow generating apparatus according to claim 9, wherein the filter condition configuration unit comprises:
    直接配置子单元,设置为直接获取用户输入的筛选条件内容;Directly configure the subunit, set to directly obtain the content of the filter condition input by the user;
    配置信息提取子单元,设置为获取用户点选的第一张图片,从该图片的属性信息中确定筛选条件的内容。The configuration information extraction subunit is configured to obtain the first picture selected by the user, and determine the content of the screening condition from the attribute information of the picture.
  11. 一种计算机程序,包括程序指令,当该程序指令被幻灯片生成装置 执行时,使得该幻灯片生成装置可执行权利要求1~5中任一项所述的方法。A computer program comprising program instructions, when the program instructions are used by a slide generation device When executed, the slideshow generating device can execute the method according to any one of claims 1 to 5.
  12. 一种载有权利要求11所述计算机程序的载体。 A carrier carrying the computer program of claim 11.
PCT/CN2014/095699 2014-09-19 2014-12-30 Slide generation method and device WO2015131651A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410484460.6 2014-09-19
CN201410484460.6A CN105488067B (en) 2014-09-19 2014-09-19 Slide generation method and device

Publications (1)

Publication Number Publication Date
WO2015131651A1 true WO2015131651A1 (en) 2015-09-11

Family

ID=54054512

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095699 WO2015131651A1 (en) 2014-09-19 2014-12-30 Slide generation method and device

Country Status (2)

Country Link
CN (1) CN105488067B (en)
WO (1) WO2015131651A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882015A (en) * 2018-06-27 2018-11-23 Oppo广东移动通信有限公司 Recall the broadcasting speed method of adjustment and relevant device of video
CN113706401A (en) * 2021-07-05 2021-11-26 南京师范大学 Automatic slide shooting and intelligent editing method based on mobile phone camera

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102847B (en) * 2020-09-09 2022-08-09 四川大学 Audio and slide content alignment method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492342A1 (en) * 2002-04-11 2004-12-29 Konica Minolta Holdings, Inc. Information recording medium and manufacturing method thereof
CN1779715A (en) * 2004-09-14 2006-05-31 索尼株式会社 Information processing apparatus, method and program therefor.

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100448285C (en) * 2002-12-18 2008-12-31 索尼株式会社 Information processing device, information processing method and program, and recording medium
US20120272171A1 (en) * 2011-04-21 2012-10-25 Panasonic Corporation Apparatus, Method and Computer-Implemented Program for Editable Categorization
CN102323936A (en) * 2011-08-31 2012-01-18 宇龙计算机通信科技(深圳)有限公司 Method and device for automatically classifying photos
JP5854208B2 (en) * 2011-11-28 2016-02-09 日本電気株式会社 Video content generation method for multistage high-speed playback

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1492342A1 (en) * 2002-04-11 2004-12-29 Konica Minolta Holdings, Inc. Information recording medium and manufacturing method thereof
CN1779715A (en) * 2004-09-14 2006-05-31 索尼株式会社 Information processing apparatus, method and program therefor.

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882015A (en) * 2018-06-27 2018-11-23 Oppo广东移动通信有限公司 Recall the broadcasting speed method of adjustment and relevant device of video
CN108882015B (en) * 2018-06-27 2021-07-23 Oppo广东移动通信有限公司 Method and device for adjusting playing speed of recall video, electronic equipment and storage medium
CN113706401A (en) * 2021-07-05 2021-11-26 南京师范大学 Automatic slide shooting and intelligent editing method based on mobile phone camera
CN113706401B (en) * 2021-07-05 2024-05-10 南京师范大学 Slide automatic shooting and intelligent editing method based on mobile phone camera

Also Published As

Publication number Publication date
CN105488067B (en) 2020-04-21
CN105488067A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
US9934225B2 (en) Integrated architecture and network for arrangement and delivery of media
US11915723B2 (en) Automated audio-video content generation
US20130117671A1 (en) Methods and systems for editing video clips on mobile devices
WO2015038351A1 (en) Method and apparatus for generating a text color for a group of images
US10652421B2 (en) Apparatus and method for capturing image with audio data
CN103604271A (en) Intelligent-refrigerator based food recognition method
JP2017503394A (en) VIDEO PROCESSING METHOD, VIDEO PROCESSING DEVICE, AND DISPLAY DEVICE
KR20150099774A (en) Digital platform for user-generated video synchronized editing
CN103839562A (en) Video creation system
CN106331869B (en) Video-based picture re-editing method and device
US10169659B1 (en) Video summarization using selected characteristics
US8943020B2 (en) Techniques for intelligent media show across multiple devices
JP2009124206A (en) Multimedia composing data generation device
KR20160098949A (en) Apparatus and method for generating a video, and computer program for executing the method
CN111556329B (en) Method and device for inserting media content in live broadcast
CN110881131B (en) Classification method of live review videos and related device thereof
WO2017157135A1 (en) Media information processing method, media information processing device and storage medium
WO2015131651A1 (en) Slide generation method and device
JP5878523B2 (en) Content processing apparatus and integrated circuit, method and program thereof
WO2017045068A1 (en) Methods and apparatus for information capture and presentation
WO2013187796A1 (en) Method for automatically editing digital video files
US20190141283A1 (en) System for video recording
Hua et al. Lazycut: content-aware template-based video authoring
KR101970383B1 (en) Device and method for contents production
US20140244640A1 (en) Method and apparatus for content manipulation

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

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

Country of ref document: EP

Kind code of ref document: A1