WO2017148211A1 - 移动终端及网页截图方法 - Google Patents

移动终端及网页截图方法 Download PDF

Info

Publication number
WO2017148211A1
WO2017148211A1 PCT/CN2016/113749 CN2016113749W WO2017148211A1 WO 2017148211 A1 WO2017148211 A1 WO 2017148211A1 CN 2016113749 W CN2016113749 W CN 2016113749W WO 2017148211 A1 WO2017148211 A1 WO 2017148211A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshot
dynamic
short video
webpage
current webpage
Prior art date
Application number
PCT/CN2016/113749
Other languages
English (en)
French (fr)
Inventor
陈一
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017148211A1 publication Critical patent/WO2017148211A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • the user In the process of using the mobile terminal, the user usually saves the information being viewed in a screenshot manner.
  • the screenshot method in the related art is not intelligent and convenient.
  • the image interchange format (Graphics) Interchange Format referred to as: GIF
  • Dynamic pictures or short videos can not be completely intercepted, resulting in the lack of content, resulting in the inability to guarantee the completeness of the screenshot information and reduce the user experience.
  • the present invention provides a mobile terminal and a webpage screenshot method, so that when a mobile terminal is used to take a screenshot of a webpage, a dynamic picture or a short video can be completely intercepted to ensure the completeness of the screenshot information, thereby providing a user experience.
  • a mobile terminal includes:
  • the obtaining module is configured to: initiate a screenshot operation on the current webpage, and obtain a static image of the current webpage;
  • the determining module is configured to: determine whether the current webpage acquired by the acquiring module has a dynamic picture or a short video;
  • a generating module configured to: when the determining module determines that the current webpage has a dynamic picture or a short video, performing the same frequency interruption on the dynamic picture or the short video to generate a dynamic screenshot;
  • the splitting module is configured to: combine the dynamic screenshot generated by the generating module with the static image acquired by the acquiring module to form a complete webpage screenshot.
  • the generating module includes:
  • a reading unit configured to: read a frame rate of the dynamic picture or the short video
  • the intercepting unit is configured to: perform the same frequency truncation on the dynamic picture or the short video on the current webpage according to the frame rate read by the reading unit;
  • the generating unit is configured to: after the intercepting unit completes the intra-frequency truncation, generate a dynamic screenshot corresponding to the dynamic picture or the short video.
  • the generating module further includes:
  • the prompting unit is configured to: set the current webpage to an inoperable state, and pop up a waiting prompt until the intercepting unit completes the same frequency interception.
  • the generating module further includes:
  • the storage unit is configured to: temporarily store the dynamic screenshot generated by the generating unit.
  • the splitting module includes:
  • a retrieving unit configured to: retrieve the dynamic screenshot temporarily stored by the storage unit;
  • the splitting unit is configured to: combine the dynamic screenshot captured by the calling unit with the static image to form the complete webpage screenshot, and save the image to the gallery.
  • the storage unit is further configured to: delete the temporarily stored dynamic screenshot according to a user selection operation.
  • the determining module determines whether the current webpage obtained by the acquiring module has a dynamic picture or a short video, and includes:
  • the current webpage When it is detected that the header is not included in the current webpage, it is determined that the current webpage does not have a dynamic picture or a short video.
  • the format of the dynamic picture includes: an image interchange format GIF, an audio video interlace format AVI, bmx, and a support vector and a dot pattern swf.
  • the splitting module combines the dynamic screenshot generated by the generating module with the static image acquired by the acquiring module, including:
  • the dynamic screenshot generated by the generation module performing the same-frequency interception is replaced or overwritten at a corresponding position of the static image acquired by the acquiring module, and the position of the static image except the replaced or covered location is retained. Other content.
  • the splitting module combines the dynamic screenshot generated by the generating module with the static image acquired by the acquiring module, including:
  • the dynamic screenshot is populated to the location of the static image where the image content has been removed.
  • a web page capture method including:
  • the dynamic screenshot is combined with the static image to form a complete webpage screenshot.
  • performing the same frequency truncation on the dynamic picture or the short video to generate a dynamic screenshot including:
  • a dynamic screenshot corresponding to the dynamic picture or the short video is generated.
  • the method further includes:
  • the current webpage is set to an inoperable state, and a waiting prompt is popped up until the same frequency truncation is completed.
  • the method further includes:
  • the dynamic screenshot is combined with the static image to form a complete webpage screenshot, including:
  • the captured dynamic screenshot is combined with the static image to form the complete webpage screenshot and saved to the gallery.
  • the method further includes:
  • the dynamic screenshot temporarily stored is deleted according to a user's selection operation.
  • the determining whether the current webpage has a dynamic picture or a short video includes:
  • the current webpage When it is detected that the header is not included in the current webpage, it is determined that the current webpage does not have a dynamic picture or a short video.
  • the format of the dynamic picture includes: an image interchange format GIF, an audio video interlace format AVI, bmx, and a support vector and a dot pattern swf.
  • the combining the dynamic screenshot with the static image includes:
  • the combining the dynamic screenshot with the static image includes:
  • the dynamic screenshot is populated to the location of the static image where the image content has been removed.
  • the mobile terminal and the webpage screenshot method provided by the embodiment of the present invention obtain a static image of the current webpage by initiating a screenshot operation on the current webpage, and determine whether the current webpage has a dynamic image or a short video, and determine that the current webpage has a dynamic
  • the dynamic picture or the short video is recorded in the same frequency, and a dynamic screenshot is generated, and the dynamic screenshot is combined with the static image to form a complete screenshot of the webpage.
  • a dynamic image or a short video can be completely intercepted to ensure the integrity of the screenshot information, thereby providing a user experience.
  • FIG. 1 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a wireless communication device of the mobile terminal shown in FIG. 1;
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a generation module in a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another generation module in a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a mobile terminal performing intra-frequency interception according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another generation module in a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a split module in a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic flowchart of a webpage screenshot method according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of generating a dynamic screenshot in a screenshot method of a webpage according to an embodiment of the present invention
  • FIG. 11 is a schematic flowchart of another method for generating a dynamic screenshot in a webpage screenshot method according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of another method for generating a dynamic screenshot in a webpage screenshot method according to an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of a dynamic screenshot and a static image in a webpage screenshot method according to an embodiment of the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, a controller 180, a power supply unit 190, and the like.
  • figure 1 Mobile terminals having various components are shown, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication device or network.
  • the wireless communication unit can include at least one of the mobile communication module 112, the wireless internet module 113, and the location information module 115.
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
  • a typical example of a location information module is a GPS (Global Positioning Device).
  • the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information according to longitude, latitude, and altitude.
  • the method for calculating position and time information uses three satellites and corrects the error of the calculated position and time information by using another satellite. Further, the GPS module 115 is capable of calculating speed information by continuously calculating current position information in real time.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the sensing unit 140 detects the current display content of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of the user's contact with the mobile terminal 100 (ie, touch input), and movement.
  • the orientation of the terminal 100, the acceleration of the mobile terminal 100 or the speed of movement and The direction or the like, and a command or signal for controlling the operation of the mobile terminal 100 is generated.
  • the sensing unit 140 can sense whether the slide type phone is turned on or off.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display module 151 or the like.
  • the display module 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display module 151 can display a user interface (UI) or graphical user interface (GUI) associated with a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capture mode, the display module 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display module 151 can function as an input device and an output device.
  • the display module 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the memory 160 may store a software program or the like for processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, etc.) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, disk, CD and so on.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180.
  • the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal 100 as shown in FIG. 1 may be configured to operate using, for example, wired and wireless communication devices and satellite-based communication devices that transmit data via frames or packets.
  • a communication device in which a mobile terminal according to the present invention can be operated will now be described with reference to FIG.
  • Such communication devices may use different air interfaces and/or physical layers.
  • the air interface used by the communication device includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access. (CDMA) and Universal Mobile Telecommunications Equipment (UMTS) (in particular, Long Term Evolution (LTE)), Global System for Mobile Communications (GSM), and the like.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications Equipment
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to CDMA communication devices, but such teachings are equally applicable to other types of devices.
  • the CDMA wireless communication device shown in FIG. 2 may include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, and a base station controller (BSC). 275 and Mobile Switching Center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • PSTN public switched telephone network
  • the backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be understood that the apparatus as shown in FIG. 2 may include a plurality of BSC 2750s.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Sub-Device (BTS) or other equivalent terminology.
  • BTS Base Transceiver Sub-Device
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the device.
  • a broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295.
  • GPS Global Positioning Device
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it will be appreciated that useful positioning information can be obtained using any number of satellites.
  • the GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • the BS 270 receives reverse link signals from various mobile terminals 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
  • the mobile terminal and the webpage screenshot method in the embodiment of the present invention are proposed.
  • FIG. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal 100 provided by the embodiment of the present invention may include:
  • the obtaining module 10 is configured to: initiate a screenshot operation on the current webpage, and obtain a static image of the current webpage.
  • the mobile terminal 100 includes, but is not limited to, a personal computer, a handheld device, an electronic tablet, a personal digital assistant (PDA), a mobile phone, a smart phone, etc.; the current webpage is, for example, a user currently browsing using the mobile terminal 100. Page.
  • PDA personal digital assistant
  • the mobile terminal 100 such as a mobile phone
  • the screenshot operation may be triggered by simultaneously pressing the screenshot button of the mobile phone, the screenshot.
  • the button can be a preset button or a preset combination button, such as a power button plus a menu button.
  • the screenshot button may be, for example, a power button of the mobile phone plus a volume plus/minus button.
  • the screenshot button may also be, for example, a power button of the mobile phone and some virtual buttons in the mobile phone.
  • the acquisition module 10 performs a screenshot operation to obtain a static image for the current webpage.
  • the full-screen static image may be defaulted.
  • the full-screen static image may be provided with an edit menu bar, and the edit menu bar is set to: graffiti, enlarge, reduce, rotate, or change the color and brightness of the screenshot of the current webpage, the full-screen static map
  • the functions of inputting characters, adding a graphic frame, and the like can also be set.
  • the present invention is not limited to the several examples listed above, and can be reasonably set according to actual needs.
  • the size of the full-screen static image may be adjusted in the following manner.
  • the adjustment button may be used to adjust, and the angle of the full-screen static image may be directly dragged by the finger to perform zoom adjustment.
  • the above-mentioned full-screen still image may be suspended to the screen of the mobile terminal 100 in a ratio of 2/3 or 4/5 of the screen size of the mobile terminal 100, and tools for setting various functions are provided on the periphery of the screen, for example, on the screen.
  • the cancel and save option buttons are respectively set on both sides of the sidebar, and the option buttons of sharing, recording, editing, etc. are sequentially set on the lower sidebar of the screen, and the adjustment screen shapes such as rectangle and circle are sequentially set on the left or right side of the screen. Buttons in the shape of a heart or a flower.
  • the determining module 20 is configured to: determine whether the current webpage acquired by the obtaining module 10 has a dynamic picture or a short video.
  • the determining, by the determining module 20, whether the current webpage has a dynamic image or a short video may be: checking whether the current webpage file includes a dynamic image or a preset extended functional segment in the short video.
  • the header of the preset extended function segment is, for example, a header of a extended function segment unique to a dynamic picture or a short video.
  • the current webpage may be determined to have Dynamic picture or short video; when it is detected that the header is not included in the current webpage, it can be determined that the current webpage does not have a dynamic picture or a short video, that is, the static picture of the current webpage is a screenshot of the webpage, and then , exit the next steps of the screenshot of the page.
  • the format of the dynamic picture includes: an Image Interchange Format (GIF), an Audio Video Interleaved (AVI), bmx, and Support vector and dot wave flash (shf), swf is also commonly known as Flash file.
  • GIF Image Interchange Format
  • AVI Audio Video Interleaved
  • bmx bmx
  • shf Support vector and dot wave flash
  • swf is also commonly known as Flash file.
  • the short video may be defined according to actual needs, such as a video within one minute or two minutes, that is, a short video.
  • the generating module 30 is configured to: when the determining module 20 determines that the current webpage has a dynamic picture or a short video, perform the same frequency truncation on the dynamic picture or the short video to generate a dynamic screenshot.
  • the frame rate of the dynamic picture or the short video may be obtained, and the dynamic picture or the short video is simultaneously recorded on the current webpage at the frame rate, thereby generating the dynamic picture.
  • a dynamic screenshot of the short video may be obtained, and the dynamic picture or the short video is simultaneously recorded on the current webpage at the frame rate, thereby generating the dynamic picture.
  • the time of the same frequency interception may be preset, for example, the time is preset to 30S, or 60S, etc., and may be set according to actual needs, or may be set by the user. Define settings.
  • the splitting module 40 is configured to: combine the dynamic screenshot generated by the generating module 30 with the static image acquired by the obtaining module 10 to form a complete webpage screenshot.
  • the method for combining the dynamic screenshot with the static image may be: corresponding to the static image acquired by the acquisition module 10 by the generation module 20 for the same frequency acquisition.
  • the location is replaced, and the other part is reserved, that is, the content other than the replaced location in the static image is retained; or the dynamic screenshot generated by the generation module 20 for the same-frequency interception is performed at the corresponding position of the static image acquired by the obtaining module 10.
  • Overwrite other parts are reserved, that is, other content in the static picture except the covered position is retained.
  • the method for merging the dynamic screenshot with the static image may be: first, the location of the static screenshot generated by the obtaining module 10 and the dynamic screenshot generated by the generating module 20 The image content is removed, and then the dynamic screenshot is filled into the position of the static image where the image content has been removed.
  • the mobile terminal obtained by the embodiment of the present invention obtains a static image of the current webpage by acquiring a screenshot operation on the current webpage, and the determining module determines whether the current webpage has a dynamic image or a short video, and the determining module determines that the current webpage has dynamic
  • the generating module performs the same frequency truncation on the dynamic picture or the short video to generate a dynamic screenshot
  • the flattening module combines the dynamic screenshot generated by the generating module with the static picture acquired by the obtaining module to form a complete webpage screenshot;
  • the dynamic picture or the short video can be completely intercepted to ensure the integrity of the screenshot information, thereby providing a user experience.
  • FIG. 4 is a schematic structural diagram of a generation module in a mobile terminal according to an embodiment of the present invention.
  • the generating module 30 may include:
  • the reading unit 301 is configured to: read a frame rate of the dynamic picture or the short video;
  • the intercepting unit 302 is configured to: move on the current webpage according to the frame rate read by the reading unit 301 Status pictures or short videos are recorded at the same frequency.
  • the mobile terminal 100 reads the frame rate of the dynamic picture or the short video, and performs the same frequency interruption on the current picture or the short picture at the current page, so that the intercepted picture can be Dynamic form to guarantee the integrity of dynamic pictures or short videos.
  • the time of the same frequency recording can be preset.
  • the time is preset to 30S, or 60S, etc., and may be set according to actual needs, or may be customized by the user.
  • the generating unit 303 is configured to: after the intercepting unit 302 completes the intra-frequency truncation, generate a dynamic screenshot corresponding to the dynamic picture or the short video.
  • a dynamic screenshot corresponding to the dynamic picture or the short video may be generated, and the dynamic screenshot retains the original content or the scheduled time of the original dynamic picture or the short video.
  • the mobile terminal 100 presets the time of the same frequency recording to be 60S
  • the dynamic picture or the short video with the playing time length less than 60S can be completely intercepted, thereby ensuring the content of the dynamic picture or the short video. Integrity; for dynamic pictures or short videos with a playback time greater than 60S, only the length of time of 60S can be recorded, so that the integrity of the screenshot information of the webpage is still improved compared with related technologies, thereby improving the user experience. .
  • FIG. 5 it is a schematic structural diagram of another generating module in a mobile terminal according to an embodiment of the present invention.
  • the generating module 30 may further include:
  • the prompting unit 304 is configured to: set the current webpage to an inoperable state, and pop up a waiting prompt until the intercepting unit 302 completes the same frequency truncation completion.
  • the mobile terminal 100 when the mobile terminal 100 performs the same frequency truncation of the dynamic picture or the short video on the current webpage according to the frame rate read by the reading unit 301, the current webpage may be set to an inoperable state at this time. And wait for the prompt until the interception unit 302 completes the same frequency interception.
  • FIG. 6 a schematic diagram of performing the same frequency interception by the mobile terminal according to the embodiment of the present invention, and the same frequency truncation shown in FIG.
  • the mobile terminal 100 can display the progress of the intra-frequency interception on the current webpage to prompt the user to wait.
  • FIG. 7 is a schematic structural diagram of another generation module in a mobile terminal according to an embodiment of the present invention.
  • the generating module 30 may further include:
  • the storage unit 305 is configured to temporarily store the dynamic screenshot generated by the generating unit 303.
  • the dynamic screenshot may be temporarily stored by the storage unit 305.
  • the storage unit 305 is further configured to delete the temporarily stored dynamic screenshot according to the user's selection operation.
  • the user can preview the actual effect of the dynamic screenshot in advance through the UI of the mobile terminal. If the actual effect does not meet the user's request, the user may select a dynamic screenshot that is temporarily stored. Delete and re-intercept.
  • FIG. 8 is a schematic structural diagram of a split module in a mobile terminal according to an embodiment of the present invention.
  • the split module 40 may include:
  • the retrieving unit 401 is configured to: retrieve a dynamic screenshot temporarily stored by the storage unit 305;
  • the splicing unit 402 is configured to: combine the dynamic screenshots captured by the retrieving unit 401 with the static images to form a complete webpage screenshot, and save the template to the gallery.
  • the dynamic screenshot of the interception reaches the requirement of the user, the dynamic screenshot that is temporarily stored by the storage unit 305 can be retrieved by the calling unit 401, and the dynamic screenshot captured by the retrieving unit 401 by the splicing unit 402 can be obtained.
  • the static map is combined to form a complete webpage screenshot and saved to the library of the mobile terminal 100.
  • FIG. 9 is a schematic flowchart diagram of a webpage screenshot method according to an embodiment of the present invention.
  • the web page screenshot method provided by the embodiment of the present invention may include the following steps, namely, S10 to S40:
  • S10 Initiating a screenshot operation on the current webpage to obtain a static image of the current webpage.
  • the mobile terminal 100 includes, but is not limited to, a personal computer, a handheld device, an electronic tablet, a personal digital assistant (PDA), a mobile phone, a smart phone, etc.; the current webpage is, for example, a user currently browsing using the mobile terminal 100. Page.
  • PDA personal digital assistant
  • the mobile terminal 100 such as a mobile phone
  • the screenshot operation may be triggered by simultaneously pressing the screenshot button of the mobile phone, the screenshot.
  • the button can be a preset button or a preset combination button, such as a power button plus a menu button.
  • the screenshot button may be, for example, a power button of the mobile phone plus a volume plus/minus button.
  • the screenshot button may also be, for example, a power button of the mobile phone and some virtual buttons in the mobile phone.
  • the screenshot operation obtains a static image for the current webpage, and at this time, it can be a full-screen static image by default.
  • the full-screen static image may be provided with an edit menu bar, and the edit menu bar is set to: graffiti, enlarge, reduce, rotate, or change the color and brightness of the screenshot of the current webpage, the full-screen static map
  • the functions of inputting characters, adding a graphic frame, and the like can also be set.
  • the present invention is not limited to the several examples listed above, and can be reasonably set according to actual needs.
  • the size of the full-screen static image may be adjusted in the following manner.
  • the adjustment button may be used to adjust, and the angle of the full-screen static image may be directly dragged by the finger to perform zoom adjustment.
  • the above-mentioned full-screen still image may be suspended to the screen of the mobile terminal 100 in a ratio of 2/3 or 4/5 of the screen size of the mobile terminal 100, and tools for setting various functions are provided on the periphery of the screen, for example, on the screen.
  • the cancel and save option buttons are respectively set on both sides of the sidebar, and the option buttons of sharing, recording, editing, etc. are sequentially set on the lower sidebar of the screen, and the adjustment screen shapes such as rectangle and circle are sequentially set on the left or right side of the screen. Buttons in the shape of a heart or a flower.
  • the method for determining whether the current webpage has a dynamic picture or a short video may be: checking whether the current webpage file includes a header of the extended function segment preset in the dynamic picture or the short video.
  • the header of the preset extended function segment is, for example, a header of a extended function segment unique to a dynamic picture or a short video.
  • the current web page When detecting that the current page includes the header, it can determine that the current web page has a dynamic picture or Short video; when it is detected that the header is not included in the current webpage, it can be determined that the current webpage does not have a dynamic picture or a short video, that is, the current
  • the static image of the web page is the screenshot of the web page, and then, the subsequent steps of the screenshot of the web page are exited.
  • the format of the dynamic picture includes GIF, AVI, bmx, and swf, and the swf is also generally referred to as a Flash file.
  • the short video may be defined according to actual needs, such as a video within one minute or two minutes, that is, a short video.
  • the dynamic picture or the short video is simultaneously recorded in the same frequency to generate a dynamic screenshot.
  • the frame rate of the dynamic picture or the short video may be obtained, and the dynamic picture or the short video is simultaneously recorded on the current webpage at the frame rate, thereby generating the dynamic picture.
  • a dynamic screenshot of the short video may be obtained, and the dynamic picture or the short video is simultaneously recorded on the current webpage at the frame rate, thereby generating the dynamic picture.
  • the time of the intra-frequency interception may be preset, for example, the time is preset to 30S, or 60S, etc., and may be set according to actual needs, or may be customized by the user.
  • the dynamic screenshot is combined with the static image to form a complete webpage screenshot.
  • the method of combining the dynamic screenshot with the static image may be: replacing the dynamic screenshot generated by the same frequency interception in the corresponding position of the static image, and the other parts are reserved, that is, Keep the content in the static image except the replaced position; or, the dynamic screenshot generated by the same-frequency interception is overwritten at the corresponding position of the static image, and the other parts are retained, that is, the remaining positions in the static image except the covered position are retained.
  • the method of combining the dynamic screenshot with the static image may also be: first removing the image content corresponding to the dynamic screenshot in the static image, and then filling the dynamic screenshot. The position where the image content has been removed from the static image.
  • the webpage screenshot method obtained by the embodiment of the present invention obtains a static image of the current webpage by initiating a screenshot operation on the current webpage, and determines whether the current webpage has a dynamic image or a short video, and determines that the current webpage has a dynamic image or a short The same picture or short video The frequency is recorded, the dynamic screenshot is generated, and the dynamic screenshot is combined with the static image to form a complete screenshot of the webpage.
  • the dynamic image or the short video may be completely intercepted. The integrity of the screenshot information is guaranteed to provide a user experience.
  • FIG. 10 it is a schematic flowchart of generating a dynamic screenshot in a webpage screenshot method provided by an embodiment of the present invention.
  • the S30 may include the following steps, namely, S301 to S303:
  • the mobile terminal 100 reads the frame rate of the dynamic picture or the short video, and performs the same frequency interruption on the current picture or the short picture at the current page, so that the intercepted picture can be Dynamic form to guarantee the integrity of dynamic pictures or short videos.
  • the time of the same frequency recording can be preset.
  • the time is preset to 30S, or 60S, etc., and may be set according to actual needs, or may be customized by the user.
  • a dynamic screenshot corresponding to the dynamic picture or the short video may be generated, and the dynamic screenshot retains the original content of the original dynamic picture or the short video or the content of the predetermined time, for example,
  • the mobile terminal 100 presets the time of the same frequency recording to be 60S
  • the dynamic picture or the short video with the playing time length less than 60S can be completely intercepted, thereby ensuring the content integrity of the dynamic picture or the short video;
  • the length of time of the 60S can only be intercepted, so that the completeness of the screenshot information of the webpage is still improved compared with the related art, thereby improving the user experience.
  • FIG. 11 is a schematic flowchart of another method for generating a dynamic screenshot in a webpage screenshot method provided by an embodiment of the present invention.
  • the method provided by the embodiment of the present invention may further include: after S302:
  • the current webpage when the mobile terminal 100 performs the same frequency truncation on the current webpage according to the read frame rate, the current webpage may be set to an inoperable state, and the waiting prompt is popped up. Until the completion of the same frequency interception.
  • the webpage screenshot process shown in FIG. 6 can also be referred to, and the mobile terminal 100 can display the progress of the intra-frequency interception on the current webpage to prompt the user to wait.
  • FIG. 12 another schematic flowchart of generating a dynamic screenshot in the webpage screenshot method provided by the embodiment of the present invention.
  • the method provided by the embodiment of the present invention may further include:
  • the dynamic screenshot when the same frequency truncation is completed and a dynamic screenshot corresponding to the dynamic picture or the short video is generated, the dynamic screenshot may be temporarily stored.
  • the method further includes: deleting the temporarily stored dynamic screenshot according to the user's selection operation.
  • the user can preview the actual effect of the dynamic screenshot in advance through the UI of the mobile terminal. If the actual effect does not meet the user's request, the user may choose to directly delete the temporarily stored dynamic screenshot, and Re-intercept.
  • S40 may include the following steps, namely, S401 to S402:
  • S402 Combine the captured dynamic screenshot with the static image to form a complete webpage screenshot and save it to the gallery.
  • the dynamic screenshot of the temporary storage may be retrieved, and the captured dynamic screenshot is combined with the static image to form a complete screenshot of the webpage, and saved to In the gallery of the mobile terminal 100. It should be noted that, in the embodiment of the present invention, the implementation of the dynamic screenshot and the static image is described in detail in the foregoing embodiment, and details are not described herein again.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in a contribution to the related art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic
  • the disc, the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods provided by various embodiments and alternative embodiments of the present invention.
  • 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.
  • 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.
  • the device/function module/functional unit in the above embodiment When the 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 embodiment of the present invention obtains a static image of the current webpage by initiating a screenshot operation on the current webpage, and determines whether the current webpage has a dynamic image or a short video.
  • the dynamic The picture or the short video is recorded in the same frequency, and the dynamic screenshot is generated, and the dynamic screenshot is combined with the static image to form a complete screenshot of the webpage.
  • the embodiment of the present invention can completely intercept the webpage by using the above technical solution. Dynamic picture or short video to ensure the integrity of the screenshot information to provide a user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种移动终端及网页截图方法,包括:获取模块,设置为:在当前网页发起截图操作,获取该当前网页的静态图;判断模块,设置为:判断获取模块获取的当前网页是否具有动态图片或短视频;生成模块,设置为:在判断模块判断出该当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同频截录,生成动态截图;拼合模块,设置为:将生成模块生成的动态截图与获取模块获取的静态图进行拼合,形成完整的网页截图。

Description

移动终端及网页截图方法 技术领域
本申请涉及但不限于通信技术领域。
背景技术
用户在使用移动终端的过程中,通常会对正在浏览的信息以截图方式进行保存。但在某些场景,相关技术中的截图方式并不具备智能性和便捷性,例如,当用户浏览网页看到有价值的内容想要通过截图方式进行保存时,其中的图像互换格式(Graphics Interchange Format,简称为:GIF)动态图片或短视频却不能被完整截取到,从而造成内容的缺失,导致无法保证截图信息的完整,降低了用户体验。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是相关技术。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供一种移动终端及网页截图方法,以实现在使用移动终端进行网页截图时,可完整截取到动态图片或短视频,以保证截图信息的完整,从而提供用户体验。
一种移动终端,包括:
获取模块,设置为:在当前网页发起截图操作,获取所述当前网页的静态图;
判断模块,设置为:判断所述获取模块获取的所述当前网页中是否具有动态图片或短视频;
生成模块,设置为:在所述判断模块判断出所述当前网页中具有动态图片或短视频时,对所述动态图片或所述短视频进行同频截录,生成动态截图;
拼合模块,设置为:将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,形成完整的网页截图。
可选地,作为一种实施方式,所述生成模块包括:
读取单元,设置为:读取所述动态图片或所述短视频的帧率;
截录单元,设置为:根据所述读取单元读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录;
生成单元,设置为:在所述截录单元完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图。
可选地,作为一种实施方式,所述生成模块还包括:
提示单元,设置为:将所述当前网页设置为不可操作状态,并弹出等待提示,直至所述截录单元完成同频截录。
可选地,作为一种实施方式,所述生成模块还包括:
存储单元,设置为:对所述生成单元生成的所述动态截图进行临时存储。
可选地,作为一种实施方式,所述拼合模块包括:
调取单元,设置为:调取所述存储单元临时存储的所述动态截图;
拼合单元,设置为:将所述调取单元调取的所述动态截图与所述静态图进行拼合,形成所述完整的网页截图,并保存至图库。
可选地,作为一种实施方式,所述存储单元,还设置为:根据用户的选择操作,将临时存储的所述动态截图删除。
可选地,作为一种实施方式,所述判断模块判断所述获取模块获取的所述当前网页中是否具有动态图片或短视频,包括:
检查所述当前网页中是否包含动态图片或短视频中预设的扩展功能段的标头;
当检测到所述当前网页中包含所述标头时,判断出所述当前网页中具有动态图片或短视频;
当检测到所述当前网页中不包含所述标头时,判断出所述当前网页中不具有动态图片或短视频。
可选地,作为一种实施方式,所述动态图片的格式包括:图像互换格式GIF、音频视频交错格式AVI、bmx和支持矢量和点阵图形swf。
可选地,作为一种实施方式,所述拼合模块将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,包括:
将所述生成模块进行同频截录生成的所述动态截图在所述获取模块获取的所述静态图的对应位置进行替换或进行覆盖,保留所述静态图中除所替换或所覆盖位置之外的其它内容。
可选地,作为一种实施方式,所述拼合模块将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,包括:
将所述获取模块获取的所述静态图中与所述生成模块生成的所述动态截图对应位置的图像内容去掉;
将所述动态截图填充到所述静态图中已去掉图像内容的位置。
一种网页截图方法,包括:
在当前网页发起截图操作,获取所述当前网页的静态图;
判断所述当前网页是否具有动态图片或短视频;
在判断出所述当前网页中具有动态图片或短视频时,对所述动态图片或所述短视频进行同频截录,生成动态截图;
将所述动态截图与所述静态图进行拼合,形成完整的网页截图。
可选地,作为一种实施方式,所述对所述动态图片或所述短视频进行同频截录,生成动态截图,包括:
读取所述动态图片或所述短视频的帧率;
根据读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录;
在完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图。
可选地,作为一种实施方式,所述根据读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录之后,所述方法还包括:
将所述当前网页设置为不可操作状态,并弹出等待提示,直至完成同频截录。
可选地,作为一种实施方式,所述在完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图之后,所述方法还包括:
对所生成的动态截图进行临时存储。
可选地,作为一种实施方式,所述将所述动态截图与所述静态图进行拼合,形成完整的网页截图,包括:
调取临时存储的所述动态截图;
将所调取的动态截图与所述静态图进行拼合,形成所述完整的网页截图,并保存至图库。
可选地,作为一种实施方式,所述对所生成的动态截图进行临时存储之后,所述方法还包括:
根据用户的选择操作,将临时存储的所述动态截图删除。
可选地,作为一种实施方式,所述判断所述当前网页是否具有动态图片或短视频,包括:
检查所述当前网页中是否包含动态图片或短视频中预设的扩展功能段的标头;
当检测到所述当前网页中包含所述标头时,判断出所述当前网页中具有动态图片或短视频;
当检测到所述当前网页中不包含所述标头时,判断出所述当前网页中不具有动态图片或短视频。
可选地,作为一种实施方式,所述动态图片的格式包括:图像互换格式GIF、音频视频交错格式AVI、bmx和支持矢量和点阵图形swf。
可选地,作为一种实施方式,所述将所述动态截图与所述静态图进行拼合,包括:
将所述生成模块进行同频截录生成的所述动态截图在所述获取模块获取的所述静态图的对应位置进行替换或进行覆盖,保留所述静态图中除所替 换或所覆盖位置之外的其它内容。
可选地,作为一种实施方式,所述将所述动态截图与所述静态图进行拼合,包括:
将所述获取模块获取的所述静态图中与所述生成模块生成的所述动态截图对应位置的图像内容去掉;
将所述动态截图填充到所述静态图中已去掉图像内容的位置。
本发明实施例提供的移动终端及网页截图方法,通过在当前网页发起截图操作,获取该当前网页的静态图,并判断当前网页是否具有动态图片或短视频,在判断出该当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同频截录,生成动态截图,并将该动态截图与静态图进行拼合,形成完整的网页截图;本发明实施例通过上述技术方案,在进行网页截图时,可完整截取到动态图片或短视频,以保证截图信息的完整性,从而提供用户体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为实现本发明实施例提供的一种移动终端的硬件结构示意图;
图2为如图1所示的移动终端的无线通信装置示意图;
图3为本发明实施例提供的一种移动终端的结构示意图;
图4为本发明实施例提供的移动终端中一种生成模块的结构示意图;
图5为本发明实施例提供的移动终端中另一种生成模块的结构示意图;
图6为本发明实施例提供的移动终端进行同频截录的示意图;
图7为本发明实施例提供的移动终端中又一种生成模块的结构示意图;
图8为本发明实施例提供的移动终端中一种拼合模块的结构示意图;
图9为本发明实施例提供的一种网页截图方法的流程示意图;
图10为本发明实施例提供的网页截图方法中一种生成动态截图的流程示意图;
图11为本发明实施例提供的网页截图方法中另一种生成动态截图的流程示意图;
图12为本发明实施例提供的网页截图方法中又一种生成动态截图的流程示意图;
图13为本发明实施例提供的网页截图方法中一种拼合动态截图和静态图的流程示意图。
本发明的实施方式
应当理解,以下所描述的实施例仅仅用以解释本发明,并不用于限定本发明。
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。
图1为实现本发明实施例提供的一种移动终端的硬件结构示意。
移动终端100可以包括无线通信单元110、用户输入单元130、感测单元140、输出单元150、存储器160、控制器180和电源单元190等等。图1 示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信装置或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块112、无线互联网模块113和位置信息模块115中的至少一个。
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块的典型示例是GPS(全球定位装置)。根据相关的技术,GPS模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。相关技术中,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块115能够通过实时地连续计算当前位置信息来计算速度信息。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示模块151上时,可以形成触摸屏。
感测单元140检测移动终端100的当前显示内容,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或将速移动和 方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。
输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示模块151等。
显示模块151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示模块151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示模块151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示模块151和触摸板以层的形式彼此叠加以形成触摸屏时,显示模块151可以用作输入装置和输出装置。显示模块151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、 光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信装置以及基于卫星的通信装置来操作。
现在将参考图2描述其中根据本发明的移动终端能够操作的通信装置。
这样的通信装置可以使用不同的空中接口和/或物理层。例如,由通信装置使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址 (CDMA)和通用移动通信装置(UMTS)(特别地,长期演进(LTE))、全球移动通信装置(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信装置,但是这样的教导同样适用于其它类型的装置。
参考图2,为如图1所示的移动终端的无线通信装置示意图,图2中所示的CDMA无线通信装置可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的装置可以包括多个BSC2750。
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子装置(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在装置内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位装置(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。
在图2中,描绘了多个卫星300,但是可以理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信装置的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。 特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。
基于上述移动终端硬件结构以及通信***,提出本发明实施例中的移动终端及网页截图方法。
如图3所示,为本发明实施例提供的一种移动终端的结构示意图,本发明实施例提供的移动终端100可以包括:
获取模块10,设置为:在当前网页发起截图操作,获取当前网页的静态图。
在本发明实施例中,移动终端100包括但不局限于:个人电脑、手持设备、电子平板、个人数字助理(PDA)、移动电话、智能手机等;当前网页例如是用户使用移动终端100当前浏览的网页。
在本发明实施例中,以移动终端100如手机为例予以说明,当用户在手机上浏览网页时,若发现感兴趣的内容,可以通过同时按下手机的截图按键来触发截图操作,该截图按键可以是预设按键或预设的组合按键,例如为电源键加菜单键。可选地,在本发明实施例中,上述截图按键例如还可以为手机的电源键加音量加/减键,该截图按键例如还可以为手机的电源键加手机中的某些虚拟按键等。
可以理解的是,获取模块10执行截图操作获取的是针对当前网页的静态图,此时,可以默认为全屏静态图。在实际应用中,该全屏静态图上可以设置有编辑菜单栏,该编辑菜单栏,设置为:对当前网页的截屏图片进行涂鸦、放大、缩小、旋转或颜色和亮度改变操作,该全屏静态图上还可以设置输入文字、添加图形框等功能,本发明并不局限于以上列举的几种示例,可以根据实际需要合理设置。
在本发明实施例中,上述全屏静态图的大小可以通过以下方式进行调整,例如,可以通过编辑按钮进行调整,还可以直接用手指拖住全屏静态图的某一角进行缩放调整。此外,上述全屏静态图可以以移动终端100屏幕大小的2/3或4/5等比例悬浮至移动终端100的屏幕上,并在屏幕的周边设置多种功能的工具,例如,在屏幕的上侧栏两侧分别设置取消、保存选项按钮,在屏幕的下侧栏上依次设置分享、录像、编辑等选项按钮,在屏幕的左侧或右侧栏上依次设置调整截屏形状如矩形、圆形、心形或花形等形状的按钮。
判断模块20,设置为:判断获取模块10获取的当前网页是否具有动态图片或短视频。
可选地,在本发明实施例中,判断模块20判断当前网页是否具有动态图片或短视频的实现方式可以为:检查当前网页文件中是否包含动态图片或短视频中预设的扩展功能段的标头,该预设的扩展功能段的标头例如为动态图片或短视频中特有的扩展功能段的标头,当检测到当前网页中包括该标头时,则可以判断出当前网页中具有动态图片或短视频;当检测到当前网页中不包括该标头时,则可以判断出当前网页中不具有动态图片或短视频,也就是说,该当前网页的静态图即为网页截图,随后,退出网页截图的后续步骤。
可选地,在本发明实施例中,上述动态图片的格式包括:图像互换格式(Graphics Interchange Format,简称为:GIF)、音频视频交错格式(Audio Video Interleaved,简称为:AVI)、bmx和支持矢量和点阵图形(shock wave flash,简称为:swf),swf通常也被称为Flash文件。
可选地,在本发明实施例中,短视频可以根据实际需要定义其时间长短,例如1分钟内或2分钟内时长的视频,即为短视频。
生成模块30,设置为:在判断模块20判断出当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同频截录,生成动态截图。
可选地,在本发明实施例中,可以通过获取动态图片或短视频的帧率,并以此帧率在当前网页对该动态图片或短视频进行同频截录,从而生成与该动态图片或短视频对应的动态截图。
可选地,在本发明实施例中,同频截录的时间可以预设,例如,将时间预设为30S、或60S等,可以根据实际需要进行合理设置,也可以由用户自 定义设置。
拼合模块40,设置为:将生成模块30生成的动态截图与获取模块10获取的静态图进行拼合,形成完整的网页截图。
在本发明实施例的一种可能的实现方式中,将动态截图与静态图进行拼合的方法可以为:将生成模块20进行同频截录生成的动态截图在获取模块10获取的静态图的对应位置进行替换,其他部分保留,即保留静态图中除所替换位置之外的其它内容;或者,将生成模块20进行同频截录生成的动态截图在获取模块10获取的静态图的对应位置进行覆盖,其他部分保留,即保留静态图中除所覆盖位置之外的其它内容。在本发明实施例的另一种可能的实现方式中,将动态截图与静态图进行拼合的方法还可以为:先将获取模块10获取的静态图中与生成模块20生成的动态截图对应位置的图像内容去掉,然后,将动态截图填充到静态图中已去掉图像内容的位置。
需要说明的是,本发明实施例中的拼合模块对动态截图和静态图进行拼合的实现方式,并不局限于上述列举的几种示例,还可以根据实际情形合理设置,在此不再做赘述。
本发明实施例提供的移动终端,通过获取模块在当前网页发起截图操作,获取到当前网页的静态图,判断模块判断当前网页是否具有动态图片或短视频,在判断模块判断出当前网页中具有动态图片或短视频时,生成模块对动态图片或短视频进行同频截录,生成动态截图,拼合模块将生成模块生成的动态截图与获取模块获取的静态图进行拼合,形成完整的网页截图;本发明实施例通过上述移动终端,在进行网页截图时,可完整截取到动态图片或短视频,以保证截图信息的完整性,从而提供用户体验。
可选地,如图4所示,为本发明实施例提供的移动终端中一种生成模块的结构示意图。在上述图3实施例的基础上,本发明实施例提供的移动终端100中,生成模块30可以包括:
读取单元301,设置为:读取动态图片或短视频的帧率;
截录单元302,设置为:根据读取单元301读取的帧率在当前网页对动 态图片或短视频进行同频截录。
在本发明实施例中,移动终端100读取动态图片或短视频的帧率,并以此帧率在当前网页对动态图片或短视频进行同频截录,这样,可使截取出来的图片为动态形式,从而可保证动态图片或短视频的完整性。可以理解的是,同频截录的时间可以预设,例如,将时间预设为30S、或60S等,具体可以根据实际需要合理设置,也可以由用户自定义设置。
生成单元303,设置为:在截录单元302完成同频截录后,生成与动态图片或短视频对应的动态截图。
在本发明实施例中,在截录单元302完成同频截录后,即可生成与动态图片或短视频对应的动态截图,该动态截图保留了原始动态图片或短视频的原始内容或预定时间的内容,例如,当移动终端100预设同频记录的时间为60S,则对于播放时间长度小于60S的动态图片或短视频,可以完整的截录下来,从而可以保证动态图片或短视频的内容完整性;而对于播放时间大于60S的动态图片或短视频,则只能截录60S的时间长度,这样,相对于相关技术而言,仍然提高了网页截图信息的完整度,从而可以提高用户体验。
可选地,如图5所示,为本发明实施例提供的移动终端中另一种生成模块的结构示意图。在上述图4所示生成模块的结构基础上,本发明实施例提供的移动终端100中,生成模块30还可以包括:
提示单元304,设置为:将当前网页设置为不可操作状态,并弹出等待提示,直至截录单元302完成同频截录完成。
在本发明实施例中,当移动终端100根据读取单元301读取的帧率在当前网页对动态图片或短视频进行同频截录时,此时,可以将当前网页设置为不可操作状态,并弹出等待提示,直至截录单元302完成同频截录。在本发明实施例的一种可能的实现方式中,如图6所示,为本发明实施例提供的移动终端进行同频截录的示意图,图6所示同频截录以动态图片的格式为GIF为例予以示出,移动终端100可在当前网页显示同频截录的进度,以提示用户需要等待。
可选地,如图7所示,为本发明实施例提供的移动终端中又一种生成模块的结构示意图。在上述图5所示生成模块的结构基础上,本发明实施例提供的移动终端100中,生成模块30还可以包括:
存储单元305,设置为:对生成单元303生成的动态截图进行临时存储。
在本发明实施例中,当截录单元302完成同频截录,并且生成单元303已生成与动态图片或短视频对应的动态截图时,可将由存储单元305对动态截图进行临时存储。
可选地,在本发明实施例中,存储单元305,还设置为:根据用户的选择操作,将临时存储的动态截图删除。在实际应用中,存储单元305存储生成的动态截图后,用户可以通过移动终端的UI提前预览动态截图的实际效果,若实际效果达不到用户要求时,用户可以选择直接将临时存储的动态截图删除,并重新截录。
可选地,如图8所示,为本发明实施例提供的移动终端中一种拼合模块的结构示意图。基于图7所示实施例提供的移动终端,本发明实施例提供的移动终端100中,拼合模块40可以包括:
调取单元401,设置为:调取存储单元305临时存储的动态截图;
拼合单元402,设置为:将调取单元401调取的动态截图与静态图进行拼合,形成完整的网页截图,并保存至图库。
在本发明实施例中,若截录的动态截图达到用户的要求,则可以通过调取单元401调取存储单元305临时存储的动态截图,由拼合单元402将调取单元401调取的动态截图与静态图进行拼合,形成完整的网页截图,并保存至移动终端100的图库中。需要说明的是,本发明实施例中将动态截图与静态图进行拼合的实现方式,上述实施例中已做具体描述,此处不再赘述。
如图9所示,为本发明实施例提供的一种网页截图方法的流程示意图。本发明实施例提供的网页截图方法可以包括以下步骤,即S10~S40:
S10,在当前网页发起截图操作,获取该当前网页的静态图。
在本发明实施例中,移动终端100包括但不局限于:个人电脑、手持设备、电子平板、个人数字助理(PDA)、移动电话、智能手机等;当前网页例如是用户使用移动终端100当前浏览的网页。
在本发明实施例中,以移动终端100如手机为例予以说明,当用户在手机上浏览网页时,若发现感兴趣的内容,可以通过同时按下手机的截图按键来触发截图操作,该截图按键可以是预设按键或预设的组合按键,例如为电源键加菜单键。可选地,在本发明实施例中,上述截图按键例如还可以为手机的电源键加音量加/减键,该截图按键例如还可以为手机的电源键加手机中的某些虚拟按键等。
可以理解的是,截图操作获取的是针对当前网页的静态图,此时,可以默认为全屏静态图。在实际应用中,该全屏静态图上可以设置有编辑菜单栏,该编辑菜单栏,设置为:对当前网页的截屏图片进行涂鸦、放大、缩小、旋转或颜色和亮度改变操作,该全屏静态图上还可以设置输入文字、添加图形框等功能,本发明并不局限于以上列举的几种示例,可以根据实际需要合理设置。
在本发明实施例中,上述全屏静态图的大小可以通过以下方式进行调整,例如,可以通过编辑按钮进行调整,还可以直接用手指拖住全屏静态图的某一角进行缩放调整。此外,上述全屏静态图可以以移动终端100屏幕大小的2/3或4/5等比例悬浮至移动终端100的屏幕上,并在屏幕的周边设置多种功能的工具,例如,在屏幕的上侧栏两侧分别设置取消、保存选项按钮,在屏幕的下侧栏上依次设置分享、录像、编辑等选项按钮,在屏幕的左侧或右侧栏上依次设置调整截屏形状如矩形、圆形、心形或花形等形状的按钮。
S20,判断该当前网页是否具有动态图片或短视频。
可选地,在本发明实施例中,判断当前网页是否具有动态图片或短视频的实现方式可以为:检查当前网页文件中是否包含动态图片或短视频中预设的扩展功能段的标头,该预设的扩展功能段的标头例如为动态图片或短视频中特有的扩展功能段的标头,当检测到当前网页中包括该标头时,则可以判断出当前网页中具有动态图片或短视频;当检测到当前网页中不包括该标头时,则可以判断出当前网页中不具有动态图片或短视频,也就是说,该当前 网页的静态图即为网页截图,随后,退出网页截图的后续步骤。
可选地,在本发明实施例中,上述动态图片的格式包括:GIF、AVI、bmx和swf,swf通常也被称为Flash文件。
可选地,在本发明实施例中,短视频可以根据实际需要定义其时间长短,例如1分钟内或2分钟内时长的视频,即为短视频。
S30,在判断出该当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同频截录,生成动态截图。
可选地,在本发明实施例中,可以通过获取动态图片或短视频的帧率,并以此帧率在当前网页对该动态图片或短视频进行同频截录,从而生成与该动态图片或短视频对应的动态截图。
可选地,在本发明实施例中,同频截录的时间可以预设,例如,将时间预设为30S、或60S等,可以根据实际需要进行合理设置,也可以由用户自定义设置。
S40,将该动态截图与静态图进行拼合,形成完整的网页截图。
在本发明实施例的一种可能的实现方式中,将动态截图与静态图进行拼合的方法可以为:将同频截录生成的动态截图在静态图的对应位置进行替换,其他部分保留,即保留静态图中除所替换位置之外的其它内容;或者,将同频截录生成的动态截图在静态图的对应位置进行覆盖,其他部分保留,即保留静态图中除所覆盖位置之外的其它内容。在本发明实施例的另一种可能的实现方式中,将动态截图与静态图进行拼合的方法还可以为:先将静态图中与动态截图对应位置的图像内容去掉,然后,将动态截图填充到静态图中已去掉图像内容的位置。
需要说明的是,本发明实施例中的拼合模块对动态截图和静态图进行拼合的实现方式,并不局限于上述列举的几种示例,还可以根据实际情形合理设置,在此不再做赘述。
本发明实施例提供的网页截图方法,通过在当前网页发起截图操作,获取该当前网页的静态图,并判断当前网页是否具有动态图片或短视频,在判断出该当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同 频截录,生成动态截图,并将该动态截图与静态图进行拼合,形成完整的网页截图;本发明实施例通过上述方法,在进行网页截图时,可完整截取到动态图片或短视频,以保证截图信息的完整性,从而提供用户体验。
可选地,如图10所示,为本发明实施例提供的网页截图方法中一种生成动态截图的流程示意图。在上述图9实施例的基础上本发明实施例提供的网页截图方法中,S30可以包括如下步骤,即S301~S303:
S301,读取动态图片或短视频的帧率;
S302,根据读取的帧率在当前网页对该动态图片或短视频进行同频截录。
在本发明实施例中,移动终端100读取动态图片或短视频的帧率,并以此帧率在当前网页对动态图片或短视频进行同频截录,这样,可使截取出来的图片为动态形式,从而可保证动态图片或短视频的完整性。可以理解的是,同频截录的时间可以预设,例如,将时间预设为30S、或60S等,具体可以根据实际需要合理设置,也可以由用户自定义设置。
S303,在完成同频截录后,生成与该动态图片或短视频对应的动态截图。
在本发明实施例中,在完成同频截录后,即可生成与动态图片或短视频对应的动态截图,该动态截图保留了原始动态图片或短视频的原始内容或预定时间的内容,例如,当移动终端100预设同频记录的时间为60S,则对于播放时间长度小于60S的动态图片或短视频,可以完整的截录下来,从而可以保证动态图片或短视频的内容完整性;而对于播放时间大于60S的动态图片或短视频,则只能截录60S的时间长度,这样,相对于相关技术而言,仍然提高了网页截图信息的完整度,从而可以提高用户体验。
可选地,如图11所示,为本发明实施例提供的网页截图方法中另一种生成动态截图的流程示意图。在上述图10所示实施例的基础上,本发明实施例提供的方法,在S302之后还可以包括:
S304,将该当前网页设置为不可操作状态,并弹出等待提示,直至完成 同频截录。
在本发明实施例中,当移动终端100根据读取的帧率在当前网页对动态图片或短视频进行同频截录时,此时,可以将当前网页设置为不可操作状态,并弹出等待提示,直至完成同频截录。在本发明实施例的一种可能的实现方式中,同样可以参照图6所示的网页截图过程,移动终端100可在当前网页显示同频截录的进度,以提示用户需要等待。
可选地,如图12所示,为本发明实施例提供的网页截图方法中又一种生成动态截图的流程示意图。在上述图10或图11所示实施例的基础上,本发明实施例提供的方法,在S303之后还可以包括:
S305,对所生成的动态截图进行临时存储。
在本发明实施例中,当完成同频截录,并生成与动态图片或短视频对应的动态截图时,可将该动态截图进行临时存储。
可选地,在本发明实施例中,还可以包括:根据用户的选择操作,将临时存储的动态截图删除。在实际应用中,存储生成的动态截图后,用户可以通过移动终端的UI提前预览动态截图的实际效果,若实际效果达不到用户要求时,用户可以选择直接将临时存储的动态截图删除,并重新截录。
可选地,如图13所示,为本发明实施例提供的网页截图方法中一种拼合动态截图和静态图的流程示意图。基于图9所示实施例提供的网页截图方法,本发明实施例提供的方法中,S40可以包括以下步骤,即S401~S402:
S401,调取临时存储的动态截图;
S402,将所调取的动态截图与静态图进行拼合,形成完整的网页截图,并保存至图库。
在本发明实施例中,若截录的动态截图达到用户的要求,则可以通过调取临时存储的动态截图,将调取的动态截图与静态图进行拼合,形成完整的网页截图,并保存至移动终端100的图库中。需要说明的是,本发明实施例中将动态截图与静态图进行拼合的实现方式,上述实施例中已做具体描述,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例中的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例和可选实施方式所提供的方法。
以上仅为本发明的实施例和可选实施例方式,并非因此限制本发明实施例的保护范围,凡是利用本文说明书及说明书附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过在当前网页发起截图操作,获取该当前网页的静态图,并判断当前网页是否具有动态图片或短视频,在判断出该当前网页中具有动态图片或短视频时,对该动态图片或短视频进行同频截录,生成动态截图,并将该动态截图与静态图进行拼合,形成完整的网页截图;本发明实施例通过上述技术方案,在进行网页截图时,可完整截取到动态图片或短视频,以保证截图信息的完整性,从而提供用户体验。

Claims (20)

  1. 一种移动终端,包括:
    获取模块,设置为:在当前网页发起截图操作,获取所述当前网页的静态图;
    判断模块,设置为:判断所述获取模块获取的所述当前网页中是否具有动态图片或短视频;
    生成模块,设置为:在所述判断模块判断出所述当前网页中具有动态图片或短视频时,对所述动态图片或所述短视频进行同频截录,生成动态截图;
    拼合模块,设置为:将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,形成完整的网页截图。
  2. 根据权利要求1所述的移动终端,其中,所述生成模块包括:
    读取单元,设置为:读取所述动态图片或所述短视频的帧率;
    截录单元,设置为:根据所述读取单元读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录;
    生成单元,设置为:在所述截录单元完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图。
  3. 根据权利要求2所述的移动终端,其中,所述生成模块还包括:
    提示单元,设置为:将所述当前网页设置为不可操作状态,并弹出等待提示,直至所述截录单元完成同频截录。
  4. 根据权利要求2或3所述的移动终端,其中,所述生成模块还包括:
    存储单元,设置为:对所述生成单元生成的所述动态截图进行临时存储。
  5. 根据权利要求4所述的移动终端,其中,所述拼合模块包括:
    调取单元,设置为:调取所述存储单元临时存储的所述动态截图;
    拼合单元,设置为:将所述调取单元调取的所述动态截图与所述静态图进行拼合,形成所述完整的网页截图,并保存至图库。
  6. 根据权利要求4所述的移动终端,其中,所述存储单元,还设置为:根据用户的选择操作,将临时存储的所述动态截图删除。
  7. 根据权利要求1~3中任一项所述的移动终端,其中,所述判断模块判断所述获取模块获取的所述当前网页中是否具有动态图片或短视频,包括:
    检查所述当前网页中是否包含动态图片或短视频中预设的扩展功能段的标头;
    当检测到所述当前网页中包含所述标头时,判断出所述当前网页中具有动态图片或短视频;
    当检测到所述当前网页中不包含所述标头时,判断出所述当前网页中不具有动态图片或短视频。
  8. 根据权利要求1~3中任一项所述的移动终端,其中,所述动态图片的格式包括:图像互换格式GIF、音频视频交错格式AVI、bmx和支持矢量和点阵图形swf。
  9. 根据权利要求1~3中任一项所述的移动终端,其中,所述拼合模块将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,包括:
    将所述生成模块进行同频截录生成的所述动态截图在所述获取模块获取的所述静态图的对应位置进行替换或进行覆盖,保留所述静态图中除所替换或所覆盖位置之外的其它内容。
  10. 根据权利要求1~3中任一项所述的移动终端,其中,所述拼合模块将所述生成模块生成的所述动态截图与所述获取模块获取的所述静态图进行拼合,包括:
    将所述获取模块获取的所述静态图中与所述生成模块生成的所述动态截图对应位置的图像内容去掉;
    将所述动态截图填充到所述静态图中已去掉图像内容的位置。
  11. 一种网页截图方法,包括:
    在当前网页发起截图操作,获取所述当前网页的静态图;
    判断所述当前网页是否具有动态图片或短视频;
    在判断出所述当前网页中具有动态图片或短视频时,对所述动态图片或 所述短视频进行同频截录,生成动态截图;
    将所述动态截图与所述静态图进行拼合,形成完整的网页截图。
  12. 根据权利要求11所述的网页截图方法,其中,所述对所述动态图片或所述短视频进行同频截录,生成动态截图,包括:
    读取所述动态图片或所述短视频的帧率;
    根据读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录;
    在完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图。
  13. 根据权利要求12所述的网页截图方法,其中,所述根据读取的所述帧率在所述当前网页对所述动态图片或所述短视频进行同频截录之后,所述方法还包括:
    将所述当前网页设置为不可操作状态,并弹出等待提示,直至完成同频截录。
  14. 根据权利要求12或13所述的网页截图方法,其中,所述在完成同频截录后,生成与所述动态图片或所述短视频对应的动态截图之后,所述方法还包括:
    对所生成的动态截图进行临时存储。
  15. 根据权利要求14所述的网页截图方法,其中,所述将所述动态截图与所述静态图进行拼合,形成完整的网页截图,包括:
    调取临时存储的所述动态截图;
    将所调取的动态截图与所述静态图进行拼合,形成所述完整的网页截图,并保存至图库。
  16. 根据权利要求14所述的网页截图方法,其中,所述对所生成的动态截图进行临时存储之后,所述方法还包括:
    根据用户的选择操作,将临时存储的所述动态截图删除。
  17. 根据权利要求11~13中任一项所述的网页截图方法,其中,所述判 断所述当前网页是否具有动态图片或短视频,包括:
    检查所述当前网页中是否包含动态图片或短视频中预设的扩展功能段的标头;
    当检测到所述当前网页中包含所述标头时,判断出所述当前网页中具有动态图片或短视频;
    当检测到所述当前网页中不包含所述标头时,判断出所述当前网页中不具有动态图片或短视频。
  18. 根据权利要求11~13中任一项所述的网页截图方法,其中,所述动态图片的格式包括:图像互换格式GIF、音频视频交错格式AVI、bmx和支持矢量和点阵图形swf。
  19. 根据权利要求11~13中任一项所述的网页截图方法,其中,所述将所述动态截图与所述静态图进行拼合,包括:
    将所述生成模块进行同频截录生成的所述动态截图在所述获取模块获取的所述静态图的对应位置进行替换或进行覆盖,保留所述静态图中除所替换或所覆盖位置之外的其它内容。
  20. 根据权利要求11~13中任一项所述的网页截图方法,其中,所述将所述动态截图与所述静态图进行拼合,包括:
    将所述获取模块获取的所述静态图中与所述生成模块生成的所述动态截图对应位置的图像内容去掉;
    将所述动态截图填充到所述静态图中已去掉图像内容的位置。
PCT/CN2016/113749 2016-02-29 2016-12-30 移动终端及网页截图方法 WO2017148211A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610111927.1A CN105808659B (zh) 2016-02-29 2016-02-29 移动终端及其网页截图方法
CN201610111927.1 2016-02-29

Publications (1)

Publication Number Publication Date
WO2017148211A1 true WO2017148211A1 (zh) 2017-09-08

Family

ID=56466481

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113749 WO2017148211A1 (zh) 2016-02-29 2016-12-30 移动终端及网页截图方法

Country Status (2)

Country Link
CN (1) CN105808659B (zh)
WO (1) WO2017148211A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110138A (zh) * 2019-04-09 2019-08-09 努比亚技术有限公司 保存方法、移动终端及计算机可读存储介质
EP3783505A4 (en) * 2019-06-26 2021-02-24 Wangsu Science & Technology Co., Ltd. METHOD OF DETECTING WEBPAGE FRAMES, SERVER AND STORAGE MEDIUM
CN112702624A (zh) * 2020-12-22 2021-04-23 山东鲁能软件技术有限公司 一种短视频播放效率的优化方法、***、介质及设备
CN114666621A (zh) * 2022-03-22 2022-06-24 阿里云计算有限公司 页面处理方法、装置及设备

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808659B (zh) * 2016-02-29 2019-03-05 努比亚技术有限公司 移动终端及其网页截图方法
CN106780685B (zh) * 2017-03-23 2018-09-04 维沃移动通信有限公司 一种动态图片的生成方法及终端
CN109948495A (zh) * 2019-03-11 2019-06-28 河南发明哥知识产权代理有限公司 一种截图方法、终端及计算机可读存储介质
CN112202958B (zh) * 2020-08-31 2021-07-23 维沃移动通信有限公司 截图方法、装置及电子设备
CN113905254B (zh) * 2021-09-03 2024-03-29 前海人寿保险股份有限公司 视频合成方法、装置、***与可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685359A (zh) * 2012-05-14 2012-09-19 大道计算机技术(上海)有限公司 基于硬件加速的视频画面在远程桌面中的实现方法
CN104822099A (zh) * 2015-04-30 2015-08-05 努比亚技术有限公司 视频封装方法及移动终端
CN105045823A (zh) * 2015-06-26 2015-11-11 上海卓易科技股份有限公司 一种基于截图的移动终端演示文件的生成方法及装置
CN105094617A (zh) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 一种截屏方法及装置
CN105100870A (zh) * 2015-07-23 2015-11-25 海信集团有限公司 一种截屏方法及终端设备
GB2526618A (en) * 2014-05-30 2015-12-02 Canon Kk Method for generating a screenshot of an image to be displayed by a multi-display system
CN105808659A (zh) * 2016-02-29 2016-07-27 努比亚技术有限公司 移动终端及其网页截图方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685359A (zh) * 2012-05-14 2012-09-19 大道计算机技术(上海)有限公司 基于硬件加速的视频画面在远程桌面中的实现方法
GB2526618A (en) * 2014-05-30 2015-12-02 Canon Kk Method for generating a screenshot of an image to be displayed by a multi-display system
CN104822099A (zh) * 2015-04-30 2015-08-05 努比亚技术有限公司 视频封装方法及移动终端
CN105045823A (zh) * 2015-06-26 2015-11-11 上海卓易科技股份有限公司 一种基于截图的移动终端演示文件的生成方法及装置
CN105100870A (zh) * 2015-07-23 2015-11-25 海信集团有限公司 一种截屏方法及终端设备
CN105094617A (zh) * 2015-08-24 2015-11-25 北京锤子数码科技有限公司 一种截屏方法及装置
CN105808659A (zh) * 2016-02-29 2016-07-27 努比亚技术有限公司 移动终端及其网页截图方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110138A (zh) * 2019-04-09 2019-08-09 努比亚技术有限公司 保存方法、移动终端及计算机可读存储介质
CN110110138B (zh) * 2019-04-09 2023-09-19 努比亚技术有限公司 保存方法、移动终端及计算机可读存储介质
EP3783505A4 (en) * 2019-06-26 2021-02-24 Wangsu Science & Technology Co., Ltd. METHOD OF DETECTING WEBPAGE FRAMES, SERVER AND STORAGE MEDIUM
CN112702624A (zh) * 2020-12-22 2021-04-23 山东鲁能软件技术有限公司 一种短视频播放效率的优化方法、***、介质及设备
CN112702624B (zh) * 2020-12-22 2023-04-07 山东鲁软数字科技有限公司 一种短视频播放效率的优化方法、***、介质及设备
CN114666621A (zh) * 2022-03-22 2022-06-24 阿里云计算有限公司 页面处理方法、装置及设备

Also Published As

Publication number Publication date
CN105808659B (zh) 2019-03-05
CN105808659A (zh) 2016-07-27

Similar Documents

Publication Publication Date Title
WO2017148211A1 (zh) 移动终端及网页截图方法
WO2017143847A1 (zh) 关联应用分屏显示装置、方法及终端
KR101824007B1 (ko) 이동 단말기 및 그의 멀티 태스킹 방법
WO2016173422A1 (zh) 多屏互动方法及***
WO2016173468A1 (zh) 组合操作方法和装置、触摸屏操作方法及电子设备
WO2017143855A1 (zh) 具有截屏功能的装置和截屏方法
CN106507173B (zh) 移动终端和分屏显示控制方法
WO2016169483A1 (zh) 移动终端及其利用虚拟边框区域实现功能调节的方法
WO2017050115A1 (zh) 一种图像合成方法和装置
WO2017071481A1 (zh) 一种移动终端及其实现分屏的方法
WO2017071599A1 (zh) 一种分屏大小实时调整方法、分屏装置及计算机存储介质
WO2017088631A1 (zh) 一种移动终端及其增减调节方法及装置、存储介质
WO2017152748A1 (zh) 一种截屏方法及终端、计算机存储介质
CN105100396A (zh) 一种移动终端及其旋转显示方法和装置
KR20130038076A (ko) 이동 단말기 및 그의 아웃 포커싱 이미지 생성방법
CN105761211A (zh) 移动终端拼接截图方法及装置
WO2017032217A1 (zh) 多点触控装置及方法
CN106775391A (zh) 界面切换装置和方法
WO2016155597A1 (zh) 基于无边框终端的应用控制方法及装置
WO2018045961A1 (zh) 一种图片处理方法及终端、存储介质
KR101698091B1 (ko) 이동 단말기 및 그의 화면표시 제어방법
WO2017107703A1 (zh) 一种实现对焦的方法和装置
WO2017113893A1 (zh) 一种搜网的方法及装置
WO2017113884A1 (zh) 一种视频播放方法、装置及计算机存储介质
CN106506965A (zh) 一种拍摄方法及终端

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16892389

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16892389

Country of ref document: EP

Kind code of ref document: A1