CN108776570B - Picture processing method and device - Google Patents

Picture processing method and device Download PDF

Info

Publication number
CN108776570B
CN108776570B CN201810541375.7A CN201810541375A CN108776570B CN 108776570 B CN108776570 B CN 108776570B CN 201810541375 A CN201810541375 A CN 201810541375A CN 108776570 B CN108776570 B CN 108776570B
Authority
CN
China
Prior art keywords
picture
target
display interface
processing
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810541375.7A
Other languages
Chinese (zh)
Other versions
CN108776570A (en
Inventor
禄一湛
刘越
李绍铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810541375.7A priority Critical patent/CN108776570B/en
Publication of CN108776570A publication Critical patent/CN108776570A/en
Application granted granted Critical
Publication of CN108776570B publication Critical patent/CN108776570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The disclosure relates to a picture processing method and device. The method comprises the following steps: when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired; loading a picture processing control for processing the target picture on the display interface through the operating system; and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation. The technical scheme can realize unified entry of picture legend operation, is convenient for a user to operate, can extract and process pictures in any application on the terminal, can process the pictures appearing at any position in the global of a terminal system, is simple and convenient to operate, and improves user experience.

Description

Picture processing method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for processing an image.
Background
When a user sees a favorite picture in the process of using the smart phone, the user usually wants to save the favorite picture in the smart phone.
In the related art, a method for saving a picture on a mobile phone generally includes: the scheme a) realizes picture saving in the application by using a picture saving function in the application; for example, a part of third-party applications with picture contents may have a picture saving function, and usually, a user pops up a menu on a screen of a mobile phone by long pressing a picture in the application, and after the user can select a function of "saving a picture" in the menu, the mobile phone saves the picture to a specified position in the specified mobile phone. Or, the scheme b) adopts a screenshot tool of the operating system to obtain the picture in the application; for example, a user may use a screenshot tool of the operating system global to obtain a screenshot of an in-application picture, and then use a screenshot function in a system album to cut the screenshot to obtain the in-application picture.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for processing an image. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an image processing method, including:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired;
loading a picture processing control for processing the target picture on the display interface through the operating system;
and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation.
In one embodiment, when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation includes:
when a preset operation aiming at the picture processing control is detected, loading a picture preview component on the display interface, wherein the target picture and at least one preset control button are displayed in the picture preview component;
and when any preset control button in the at least one preset control button is detected to be triggered, processing the target picture according to the operation associated with the preset control button.
In one embodiment, after the acquiring the target picture on the display interface, the method further includes:
when the target picture is a thumbnail, acquiring a Uniform Resource Locator (URL) of the original picture corresponding to the target picture;
and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
In one embodiment, when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation includes:
and when the preset operation aiming at the picture processing control is detected, processing the original picture corresponding to the target picture according to the preset operation.
In one embodiment, the acquiring a target picture on a display interface of a terminal when a target operation is detected on the display interface through an operating system includes:
when target operation is detected on a display interface of a terminal through an operating system, calling page analysis capability of the operating system of the terminal, analyzing a layout hierarchical structure of the display page, and acquiring a target picture on the display interface.
In one embodiment, the target operation comprises: the long-time pressing operation with the touch control time length exceeding the preset time length or the pressure touch control operation with the touch control pressure exceeding the preset pressure.
According to a second aspect of the embodiments of the present disclosure, there is provided a picture processing apparatus including:
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target picture on a display interface when a target operation matched with a preset operation is detected on the display interface of the terminal through an operating system;
the loading module is used for loading a picture processing control for processing the target picture on the display interface through the operating system;
and the processing module is used for processing the target picture according to the preset operation when the preset operation aiming at the picture processing control is detected.
In one embodiment, the processing module includes:
the loading sub-module is used for loading a picture preview component on the display interface when a preset operation aiming at the picture processing control is detected, and the target picture and at least one preset control button are displayed in the picture preview component;
and the processing sub-module is used for processing the target picture according to the operation associated with the preset control button when any preset control button of the at least one preset control button is triggered.
In one embodiment, the apparatus further comprises:
the second acquisition module is used for acquiring a Uniform Resource Locator (URL) of the original image corresponding to the target image when the target image is the thumbnail; and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
In an embodiment, when a preset operation for the picture processing control is detected, the processing module processes the original picture corresponding to the target picture according to the preset operation.
In one embodiment, when a target operation is detected on a display interface of a terminal through an operating system, the first obtaining module invokes a page analysis capability of the operating system of the terminal to analyze a layout hierarchical structure of the display page, and obtains a target picture on the display interface.
According to a third aspect of the embodiments of the present disclosure, there is provided a picture processing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired;
loading a picture processing control for processing the target picture on the display interface through the operating system;
and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: based on the technical scheme, when a user wants to process the target picture on the display interface, the user performs target operation on the display area of the target picture on the display interface, the terminal can automatically acquire the target picture on the display interface and process the target picture according to user instructions, so that unified entry of picture legend operation is realized, the user operation is facilitated, pictures in any application on the terminal can be extracted and processed, the pictures at any position can be processed in the whole terminal system, the operation is simple and convenient, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a picture processing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a picture processing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a picture processing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a picture processing method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, a method for saving a picture on a mobile phone generally includes: the scheme a) realizes picture saving in the application by using a picture saving function in the application; and b) acquiring the picture in the application by adopting a screenshot tool of the operating system. However, for the scheme a), the triggering modes of the picture saving functions in different applications are also different, so that a user needs to pay certain cognitive cost when searching for the picture saving functions in the applications, which brings inconvenience to the user, and the user experience is influenced because some applications do not support the picture saving functions; for the scheme b), the whole process of acquiring the picture in the application by adopting the screenshot tool of the operating system is very complicated and inefficient, if the picture is long, the picture content cannot be acquired through screenshot of one screen, and a mobile phone with a long screenshot function is also needed instead of all mobile phone operating systems supporting the long screenshot function, so that inconvenience is brought to a user, and user experience is influenced.
In order to solve the above problem, an embodiment of the present disclosure provides an image processing method, including: when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired; loading a picture processing control for processing the target picture on the display interface through the operating system; and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation. According to the technical scheme, when a user wants to process the target picture on the display interface, the user performs target operation on the display area of the target picture on the display interface, the terminal can automatically acquire the target picture on the display interface and process the target picture according to user instructions, so that unified entry of picture legend operation is achieved, the user operation is facilitated, pictures in any application on the terminal can be extracted and processed, the pictures at any position can be processed in the whole terminal system, the operation is simple and convenient, and the user experience is improved.
It should be noted that, in the embodiment of the present disclosure, the terminal may be a user equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer, and a wearable device.
Based on the above analysis, the following specific examples are proposed.
Fig. 1 is a flowchart illustrating a picture processing method according to an exemplary embodiment, where an execution subject of the method may be a terminal, as shown in fig. 1, the method includes the following steps 101 and 103:
in step 101, when a target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired.
For example, the types of target operations may include: the long-time pressing operation with the touch control time length exceeding the preset time length or the pressure touch control operation with the touch control pressure exceeding the preset pressure. When target operation is detected on a display interface of a terminal through an operating system, a target picture corresponding to the target operation is acquired; for example, when the terminal monitors a long-press operation for a target picture in a current interface of the terminal through an operating system, the target picture is obtained; the current interface of the terminal may be any interface of the terminal, such as a web page, a gallery, or an open interface of any application. The technical scheme provided by the embodiment of the disclosure does not limit the environment of the target picture, the target picture can be located in any interface of the terminal, such as a webpage, a gallery or an opening interface of any application, the operation is simple and convenient, and the user experience can be improved. In the technical scheme provided by the embodiment of the disclosure, an application environment where the target picture is located is not limited, and a current operation interface is not limited, a user only needs to perform target operation in a display area of the target picture on the display interface, and when the terminal detects the target operation on the display interface of the terminal through an operation system, the target picture on the display interface can be automatically acquired.
Illustratively, when the terminal detects a target operation on a display interface of the terminal through an operating system, the page analysis capability of the operating system of the terminal is called, the layout hierarchical structure of the display page is analyzed, and a target picture corresponding to the target operation on the display interface is obtained. For example, the terminal uses the in-application information acquisition capability of the operating system level as basic capability, triggers the structural analysis of the application page by the operating system through long-press gestures and other operations, and acquires the picture of the display area corresponding to the long-press operation of the user, so that the terminal can extract and store the picture in any application on the terminal, can store the picture appearing at any position in the global terminal system, and is simple and convenient to operate.
In step 102, a picture processing control for processing the target picture is loaded on the display interface through the operating system.
For example, after a target picture corresponding to a target operation on a display interface is acquired, a picture processing control for processing the target picture is loaded on the display interface; icons can be displayed in the picture processing control; optionally, information such as a picture format and a picture size of the target picture may also be displayed in the picture processing control. For example, after a target picture corresponding to a target operation on the display interface is acquired, the acquired result is loaded in the bottom area of the display interface in the form of a small card, and an icon can be displayed in the small card.
In step 103, when a preset operation for the picture processing control is detected, the target picture is processed according to the preset operation.
For example, when a preset operation for a picture processing control is detected, a picture preview component is loaded on a display interface, and a target picture and at least one preset control button are displayed in the picture preview component; and when any preset control button in the at least one preset control button is detected to be triggered, processing the target picture according to the operation associated with the preset control button. Optionally, the operation associated with the preset manipulation button may include: and performing storage operation on the target picture, editing operation on the target picture and the like.
For example, after a target picture on a display interface is acquired, whether the target picture is a thumbnail or an original picture is judged; when the target picture is a thumbnail, acquiring a Uniform Resource Locator (URL) of the original picture corresponding to the target picture; acquiring an original image corresponding to the target picture according to the URL of the original image corresponding to the target picture; correspondingly, an original image corresponding to the target picture is displayed in the picture preview component; when any preset control button of the at least one preset control button is detected to be triggered, processing an original image corresponding to the target picture according to operation associated with the preset control button; therefore, the terminal can directly obtain the original image corresponding to the thumbnail, the high definition and high resolution ratio of the original image are high, a user can directly process the original image, the quality of the picture saved by the user is guaranteed, the operation is simple, and the operation efficiency is high.
Optionally, the implementation manner of obtaining the URL of the original image corresponding to the target image may at least include any one of the following manners or combinations:
in implementation mode 1, the URL of the original image corresponding to the target picture is searched from the historical access record of the terminal.
The implementation mode 2 is that the URL of the target picture and the URL rule of the application to which the target picture belongs are obtained; and determining the URL of the original image corresponding to the target image according to the URL of the target image and the URL rule of the application to which the target image belongs.
According to the technical scheme, when a user wants to process the target picture on the display interface, the user performs target operation on the display area of the target picture on the display interface, the terminal can automatically acquire the target picture on the display interface and process the target picture according to user instructions, so that unified entry of picture legend operation is realized, the user operation is facilitated, pictures in any application on the terminal can be extracted and processed, the pictures at any position can be processed in the whole terminal system, the operation is simple and convenient, and the user experience is improved.
Fig. 2 is a flow chart illustrating a picture processing method according to an example embodiment. As shown in fig. 2, on the basis of the embodiment shown in fig. 1, the picture processing method according to the present disclosure may include the following steps 201 and 203:
in step 201, when a target operation is detected on a display interface of a terminal through an operating system, a page analysis capability of the operating system of the terminal is called, a layout hierarchical structure of the display page is analyzed, and a target picture on the display interface is obtained.
In step 202, a picture processing control for processing the target picture is loaded on the display interface through the operating system.
In step 203, when a preset operation for the picture processing control is detected, the target picture is processed according to the preset operation.
According to the technical scheme, the page analysis capability of the operating system of the terminal is called, the layout hierarchical structure of the display page is analyzed, the target picture on the display interface is obtained, the terminal can extract and process the picture in any application on the terminal, the picture appearing in any position can be processed in the whole situation of the terminal system, the operation is simple and convenient, and the operation of a user is facilitated.
Fig. 3 is a flow chart illustrating a picture processing method according to an example embodiment. As shown in fig. 3, on the basis of the embodiment shown in fig. 1, the picture processing method according to the present disclosure may include the following steps 301-304:
in step 301, when a target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired.
In step 302, a picture processing control for processing the target picture is loaded on the display interface through the operating system.
In step 303, when a preset operation for the picture processing control is detected, a picture preview component is loaded on the display interface, and the target picture and at least one preset control button are displayed in the picture preview component.
In step 304, when it is detected that any one of the at least one preset manipulation button is triggered, processing the target picture according to an operation associated with the preset manipulation button.
According to the technical scheme provided by the embodiment of the disclosure, the target picture is displayed in the picture preview component, so that a user can check and confirm whether to process the picture, and the picture can be processed after the user confirms, so that misoperation is avoided, and the operation efficiency is high.
Fig. 4 is a flowchart illustrating a picture processing method according to an example embodiment. As shown in fig. 4, on the basis of the embodiment shown in fig. 1, the picture processing method according to the present disclosure may include the following steps 401 and 406:
in step 401, when a target operation is detected on a display interface of a terminal through an operating system, a page analysis capability of the operating system of the terminal is called, a layout hierarchical structure of the display page is analyzed, and a target picture on the display interface is obtained.
In step 402, when the target picture is a thumbnail, the URL of the original image corresponding to the target picture is acquired.
For example, acquiring the URL of the original image corresponding to the target image includes: searching the URL of the original image corresponding to the target picture from the historical access record of the terminal; alternatively, the first and second electrodes may be,
the terminal acquires the URL of the target picture and the URL rule of the application to which the target picture belongs; and determining the URL of the original image corresponding to the target image according to the URL of the target image and the URL rule of the application to which the target image belongs.
In step 403, the original image corresponding to the target picture is acquired according to the URL of the original image corresponding to the target picture.
In step 404, a picture processing control for processing the original picture corresponding to the target picture is loaded on the display interface through the operating system.
In step 405, when a preset operation for the picture processing control is detected, a picture preview component is loaded on the display interface, and the target picture and at least one preset control button are displayed in the picture preview component.
In step 406, when it is detected that any one of the at least one preset manipulation button is triggered, processing the target picture according to an operation associated with the preset manipulation button.
According to the technical scheme provided by the embodiment of the disclosure, pictures appearing at any position in the whole situation of the terminal system can be processed, so that the unification of the picture processing experience in the whole situation is facilitated, and the operation habit of a user is developed; the user can use the method to extract pictures in the system or any third-party application; the user can click the thumbnail rapidly to obtain a high-definition image, and efficiency is greatly improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
FIG. 5 is a block diagram illustrating a picture processing device according to an example embodiment; the apparatus may be implemented in various ways, for example, with all of the components of the apparatus being implemented in a terminal, or with components of the apparatus being implemented in a coupled manner on the terminal side; the apparatus may implement the method related to the present disclosure through software, hardware, or a combination of the two, as shown in fig. 5, the image processing apparatus includes: a first obtaining module 501, a loading module 502 and a processing module 503, wherein:
the first obtaining module 501 is configured to, when a target operation matching a preset operation is detected on a display interface of a terminal through an operating system, obtain a target picture on the display interface;
the loading module 502 is configured to load a picture processing control for processing the target picture on the display interface through the operating system;
the processing module 503 is configured to, when a preset operation for the picture processing control is detected, process the target picture according to the preset operation.
The device provided by the embodiment of the invention can be used for executing the technical scheme of the embodiment shown in fig. 1, and the execution mode and the beneficial effect are similar, and are not described again here.
In a possible implementation, as shown in fig. 6, the picture processing apparatus shown in fig. 5 may further include a processing module 503 configured to include: a loading sub-module 601 and a processing sub-module 602, wherein:
the loading sub-module 601 is configured to load a picture preview component on the display interface when a preset operation for the picture processing control is detected, wherein the target picture and at least one preset control button are displayed in the picture preview component;
the processing sub-module 602 is configured to, when detecting that any one of the at least one preset manipulation button is triggered, process the target picture according to an operation associated with the preset manipulation button.
In a possible implementation, as shown in fig. 7, the picture processing apparatus shown in fig. 5 may further include: a second obtaining module 701, configured to obtain, when the target picture is a thumbnail, a URL of an original image corresponding to the target picture; and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
In a possible implementation manner, when a preset operation for the picture processing control is detected, the processing module 503 processes the original picture corresponding to the target picture according to the preset operation.
In a possible implementation manner, when a target operation is detected on a display interface of a terminal through an operating system, the first obtaining module 501 invokes a page analysis capability of the operating system of the terminal, analyzes a layout hierarchical structure of the display page, and obtains a target picture on the display interface.
Fig. 8 is a block diagram illustrating a picture processing device 800 according to an exemplary embodiment, where the picture processing device 800 may be implemented in various ways, such as implementing all components of the device in a terminal or implementing components of the device in a coupled manner on the terminal side; the picture processing apparatus 800 includes:
a processor 801;
a memory 802 for storing processor-executable instructions;
wherein the processor 801 is configured to:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired;
loading a picture processing control for processing the target picture on the display interface through the operating system;
and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation.
In one embodiment, the processor 801 may be further configured to:
when a preset operation aiming at the picture processing control is detected, loading a picture preview component on the display interface, wherein the target picture and at least one preset control button are displayed in the picture preview component;
and when any preset control button in the at least one preset control button is detected to be triggered, processing the target picture according to the operation associated with the preset control button.
In one embodiment, the processor 801 may be further configured to:
when the target picture is a thumbnail, acquiring a Uniform Resource Locator (URL) of the original picture corresponding to the target picture;
and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
In one embodiment, the processor 801 may be further configured to:
and when the preset operation aiming at the picture processing control is detected, processing the original picture corresponding to the target picture according to the preset operation.
In one embodiment, the processor 801 may be further configured to:
when target operation is detected on a display interface of a terminal through an operating system, calling page analysis capability of the operating system of the terminal, analyzing a layout hierarchical structure of the display page, and acquiring a target picture on the display interface.
In one embodiment, the target operation comprises: the long-time pressing operation with the touch control time length exceeding the preset time length or the pressure touch control operation with the touch control pressure exceeding the preset pressure.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment. For example, the image processing apparatus 900 may be a terminal such as a smartphone or a tablet computer.
Referring to fig. 9, picture processing device 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the picture processing device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations in the picture processing apparatus 900. Examples of such data include instructions for any application or method operating on picture processing device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 906 provides power to the various components of the picture processing device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the picture processing device 900.
The multimedia components 908 include a screen that provides an output interface between the picture processing device 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. When the picture processing apparatus 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when picture processing device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status evaluation of various aspects for the picture processing device 900. For example, the sensor component 914 may detect an open/closed state of the picture processing device 900, a relative positioning of components, such as a display and a keypad of the picture processing device 900, a change in position of the picture processing device 900 or a component of the picture processing device 900, the presence or absence of user contact with the picture processing device 900, orientation or acceleration/deceleration of the picture processing device 900, and a change in temperature of the picture processing device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the picture processing apparatus 900 and other devices in a wired or wireless manner. The picture processing device 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the picture processing device 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the picture processing device 900 to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 10 is a block diagram illustrating a picture processing apparatus according to an exemplary embodiment. For example, the image processing apparatus 1000 may be provided as a server. The picture processing device 1000 includes a processing component 1002 that further includes one or more processors, and memory resources, represented by memory 1003, for storing instructions, such as applications, that are executable by the processing component 1002. The application programs stored in memory 1003 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1002 is configured to execute instructions to perform the above-described methods.
The picture processing device 1000 may also include a power component 1006 configured to perform power management of the picture processing device 1000, a wired or wireless network interface 1005 configured to connect the picture processing device 1000 to a network, and an input/output (I/O) interface 1008. Picture processing device 1000 may operate based on an operating system stored in memory 1003, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
A non-transitory computer-readable storage medium, in which instructions, when executed by a processor of a picture processing device 900 or a picture processing device 1000, enable the picture processing device 900 or the picture processing device 1000 to perform a picture processing method comprising:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired;
loading a picture processing control for processing the target picture on the display interface through the operating system;
and when the preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation.
In one embodiment, when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation includes:
when a preset operation aiming at the picture processing control is detected, loading a picture preview component on the display interface, wherein the target picture and at least one preset control button are displayed in the picture preview component;
and when any preset control button in the at least one preset control button is detected to be triggered, processing the target picture according to the operation associated with the preset control button.
In one embodiment, after the acquiring the target picture on the display interface, the method further includes:
when the target picture is a thumbnail, acquiring a Uniform Resource Locator (URL) of the original picture corresponding to the target picture;
and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
In one embodiment, when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation includes:
and when the preset operation aiming at the picture processing control is detected, processing the original picture corresponding to the target picture according to the preset operation.
In one embodiment, the acquiring a target picture on a display interface of a terminal when a target operation is detected on the display interface through an operating system includes:
when target operation is detected on a display interface of a terminal through an operating system, calling page analysis capability of the operating system of the terminal, analyzing a layout hierarchical structure of the display page, and acquiring a target picture on the display interface.
In one embodiment, the target operation comprises: the long-time pressing operation with the touch control time length exceeding the preset time length or the pressure touch control operation with the touch control pressure exceeding the preset pressure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. An image processing method, comprising:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired; the display interface is an opening interface of any application of the terminal;
loading a picture processing control for processing the target picture on the display interface through the operating system;
when a preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation;
when a target operation is detected on a display interface of a terminal through an operating system, acquiring a target picture on the display interface, wherein the target operation comprises the following steps:
when target operation is detected on a display interface of a terminal through an operating system, calling in-application information acquisition capability and page analysis capability of the operating system of the terminal, analyzing a layout hierarchical structure of the display interface, and acquiring a target picture corresponding to the target operation on the display interface.
2. The method according to claim 1, wherein when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation comprises:
when a preset operation aiming at the picture processing control is detected, loading a picture preview component on the display interface, wherein the target picture and at least one preset control button are displayed in the picture preview component;
and when any preset control button in the at least one preset control button is detected to be triggered, processing the target picture according to the operation associated with the preset control button.
3. The method according to claim 1 or 2, wherein after the acquiring the target picture on the display interface, the method further comprises:
when the target picture is a thumbnail, acquiring a Uniform Resource Locator (URL) of the original picture corresponding to the target picture;
and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
4. The method according to claim 3, wherein when a preset operation for the picture processing control is detected, processing the target picture according to the preset operation comprises:
and when the preset operation aiming at the picture processing control is detected, processing the original picture corresponding to the target picture according to the preset operation.
5. The method of claim 1, wherein the target operation comprises: the long-time pressing operation with the touch control time length exceeding the preset time length or the pressure touch control operation with the touch control pressure exceeding the preset pressure.
6. A picture processing apparatus, comprising:
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target picture on a display interface when a target operation matched with a preset operation is detected on the display interface of the terminal through an operating system; the display interface is an opening interface of any application of the terminal;
the loading module is used for loading a picture processing control for processing the target picture on the display interface through the operating system;
the processing module is used for processing the target picture according to preset operation when the preset operation aiming at the picture processing control is detected;
the first obtaining module calls the in-application information obtaining capability and the page analysis capability of the operating system of the terminal when the target operation is detected on the display interface of the terminal through the operating system, analyzes the layout hierarchical structure of the display interface and obtains a target picture corresponding to the target operation on the display interface.
7. The apparatus of claim 6, wherein the processing module comprises:
the loading sub-module is used for loading a picture preview component on the display interface when a preset operation aiming at the picture processing control is detected, and the target picture and at least one preset control button are displayed in the picture preview component;
and the processing sub-module is used for processing the target picture according to the operation associated with the preset control button when any preset control button of the at least one preset control button is triggered.
8. The apparatus of claim 6 or 7, further comprising:
the second acquisition module is used for acquiring a Uniform Resource Locator (URL) of the original image corresponding to the target image when the target image is the thumbnail; and acquiring the original image corresponding to the target picture according to the URL of the original image corresponding to the target picture.
9. The apparatus according to claim 8, wherein the processing module processes original images corresponding to the target picture according to a preset operation when the preset operation for the picture processing control is detected.
10. A picture processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when target operation is detected on a display interface of a terminal through an operating system, a target picture on the display interface is acquired; the display interface is an opening interface of any application of the terminal;
loading a picture processing control for processing the target picture on the display interface through the operating system;
when a preset operation aiming at the picture processing control is detected, processing the target picture according to the preset operation;
the processor is further configured to: when target operation is detected on a display interface of a terminal through an operating system, calling in-application information acquisition capability and page analysis capability of the operating system of the terminal, analyzing a layout hierarchical structure of the display interface, and acquiring a target picture corresponding to the target operation on the display interface.
11. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 5.
CN201810541375.7A 2018-05-30 2018-05-30 Picture processing method and device Active CN108776570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810541375.7A CN108776570B (en) 2018-05-30 2018-05-30 Picture processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810541375.7A CN108776570B (en) 2018-05-30 2018-05-30 Picture processing method and device

Publications (2)

Publication Number Publication Date
CN108776570A CN108776570A (en) 2018-11-09
CN108776570B true CN108776570B (en) 2021-04-27

Family

ID=64028035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810541375.7A Active CN108776570B (en) 2018-05-30 2018-05-30 Picture processing method and device

Country Status (1)

Country Link
CN (1) CN108776570B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566900A (en) * 2011-11-17 2012-07-11 珠海金山办公软件有限公司 Scroll toolbar display control method
CN106406855A (en) * 2016-08-26 2017-02-15 乐视控股(北京)有限公司 Picture processing method and device based on browser
CN106682037A (en) * 2015-11-11 2017-05-17 百度在线网络技术(北京)有限公司 Method and device for operating pictures in pages
WO2019042403A1 (en) * 2017-09-01 2019-03-07 惠州Tcl移动通信有限公司 Mobile terminal and mobile terminal-based image selection method, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9310907B2 (en) * 2009-09-25 2016-04-12 Apple Inc. Device, method, and graphical user interface for manipulating user interface objects
CN103559239B (en) * 2013-10-25 2017-11-10 北京奇虎科技有限公司 The processing method and system and task server of picture
CN103646052A (en) * 2013-11-28 2014-03-19 小米科技有限责任公司 Picture information processing method and device
CN104331225B (en) * 2013-12-16 2018-05-15 乐视网信息技术(北京)股份有限公司 A kind of image display method and device
CN107885423B (en) * 2017-10-30 2020-09-29 维沃移动通信有限公司 Picture processing method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566900A (en) * 2011-11-17 2012-07-11 珠海金山办公软件有限公司 Scroll toolbar display control method
CN106682037A (en) * 2015-11-11 2017-05-17 百度在线网络技术(北京)有限公司 Method and device for operating pictures in pages
CN106406855A (en) * 2016-08-26 2017-02-15 乐视控股(北京)有限公司 Picture processing method and device based on browser
WO2019042403A1 (en) * 2017-09-01 2019-03-07 惠州Tcl移动通信有限公司 Mobile terminal and mobile terminal-based image selection method, and storage medium

Also Published As

Publication number Publication date
CN108776570A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN106970754B (en) Screen capture processing method and device
US20180088764A1 (en) Method, apparatus, and storage medium for sharing content
CN107153541B (en) Browsing interaction processing method and device
EP3407287A1 (en) Method and apparatus for screenshot processing
EP3128411B1 (en) Interface display method, terminal, computer program and recording medium
CN106201734B (en) File sharing method and device
EP3147802B1 (en) Method and apparatus for processing information
CN105786507B (en) Display interface switching method and device
CN108764003B (en) Picture identification method and device
CN106775202B (en) Information transmission method and device
CN106354504B (en) Message display method and device
CN104462296B (en) File management method and device and terminal
CN110262692B (en) Touch screen scanning method, device and medium
CN117390330A (en) Webpage access method and device
CN105389083B (en) Large font implementation method and device and intelligent terminal
EP3647970A1 (en) Method and apparatus for sharing information
CN106919302B (en) Operation control method and device of mobile terminal
US11836342B2 (en) Method for acquiring historical information, storage medium, and system
CN108776570B (en) Picture processing method and device
US20170316039A1 (en) Information acquisition method, device and system
CN107360315B (en) Information display method and device
CN107315590B (en) Notification message processing method and device
CN111814797A (en) Picture character recognition method and device and computer readable storage medium
CN111724398A (en) Image display method and device
CN110784721A (en) Picture data compression method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant