CN114546231A - Image data collection method and device based on browser plug-in and storage medium - Google Patents
Image data collection method and device based on browser plug-in and storage medium Download PDFInfo
- Publication number
- CN114546231A CN114546231A CN202210170627.6A CN202210170627A CN114546231A CN 114546231 A CN114546231 A CN 114546231A CN 202210170627 A CN202210170627 A CN 202210170627A CN 114546231 A CN114546231 A CN 114546231A
- Authority
- CN
- China
- Prior art keywords
- image data
- user
- operation behavior
- browser
- plug
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides an image data collection method, an image data collection device and a storage medium based on a browser plug-in, wherein a corresponding image data collection plug-in is configured in a browser in advance, and the image data collection plug-in collects image data in the browser through the following steps: monitoring the behavior of a user browsing a webpage in real time to obtain the current operation behavior of the user; comparing the current operation behavior of the user with a preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior; if the image is placed in the first area, the image placed in the first area is collected to generate image data, and the image data is stored in the target position. According to the technical scheme provided by the invention, the matched browser plug-in is added on the basis of the storage service, so that a user can store the image through simple operation, and further, the materials can be efficiently collected, and the method is easy to use.
Description
Technical Field
The invention relates to the technical field of image acquisition, in particular to an image data collection method and device based on a browser plug-in and a storage medium.
Background
Users using cloud storage service software have an increasing demand for collecting materials on web pages to a server when browsing web pages, particularly web pages such as pictures and videos.
Generally, the user collection mode is to click a right mouse button, then click a saved picture to be saved in a local computer hard disk, and finally upload the saved picture to a server by using an uploading method provided by a storage service party. This method is inefficient and tedious.
Therefore, a solution for efficiently acquiring image data is needed.
Disclosure of Invention
The embodiment of the invention provides an image data collection method and device based on a browser plug-in and a storage medium.
In a first aspect of the embodiments of the present invention, an image data collection method based on a browser plug-in is provided, where a corresponding image data collection plug-in is configured in a browser in advance, and the image data collection plug-in collects image data in the browser through the following steps, including:
monitoring the behavior of a user browsing a webpage in real time to obtain the current operation behavior of the user;
comparing the current operation behavior of the user with a preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
if the image is placed in the first area, the image placed in the first area is collected to generate image data, and the image data is stored in the target position.
Optionally, in a possible implementation manner of the first aspect, in the step of monitoring, in real time, a behavior of the user browsing a webpage to obtain a current operation behavior of the user, the step includes:
and monitoring the cursor of the user, and determining the current operation behavior of the user based on the cursor of the user.
Optionally, in a possible implementation manner of the first aspect, the step of comparing the current operation behavior of the user with a preset operation behavior, and if the current operation behavior is the same as the preset operation behavior, outputting the first area includes:
the preset operation behavior is that a user selects and drags a target image through a cursor;
and when the current operation behavior of the user is judged to be the selection and the dragging of the target image, generating a first area with a first area for placing the dragged image.
Optionally, in a possible implementation manner of the first aspect, in the step of acquiring, if an image is placed in the first area, the image placed in the first area to generate image data, and storing the image data in the target position, the step includes:
monitoring the first area in real time, and acquiring the image placed in the first area to obtain corresponding image data if the image placed in the first area is judged;
storing the image data at the corresponding target position.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
the target position is a storage server;
setting a first storage space in a storage server based on a registration request of a user;
and associating the webpage with a first storage space according to the association information of the user, and storing the image data into the first storage space after judging that the image data is generated.
Optionally, in one possible implementation manner of the first aspect, the browser is a *** browser.
Optionally, in a possible implementation manner of the first aspect, before the step of monitoring, in real time, a behavior of the user browsing a webpage to obtain a current operation behavior of the user, the method includes:
receiving configuration information input by a user, wherein the configuration information is at least one preset operation behavior.
Optionally, in a possible implementation manner of the first aspect, before the step of monitoring, in real time, a behavior of the user browsing a webpage to obtain a current operation behavior of the user, the method includes:
receiving an association request of a user, and associating the browser plug-in with the target position based on the association request, wherein the association request at least comprises the association relationship between the browser plug-in and the target position.
In a second aspect of the embodiments of the present invention, an image data collecting device based on a browser plug-in is provided, where a corresponding image data collecting plug-in is configured in a browser in advance, and the image data collecting plug-in collects image data in the browser through the following modules, including:
the behavior monitoring module is used for monitoring the behavior of the user for browsing the webpage in real time to obtain the current operation behavior of the user;
the behavior comparison module is used for comparing the current operation behavior of the user with the preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
and the image storage module is used for acquiring the images placed in the first area to generate image data and storing the image data in the target position if the images are placed in the first area.
In a third aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to implement the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
According to the image data collection method and device based on the browser plug-in and the storage medium, the matched browser plug-in can be added on the basis of storage service, so that a user can store the image through simple operation, the technical scheme provided by the invention simplifies the operation of collecting the image material on the webpage by the user, improves the efficiency of collecting the material by the user, and saves the hard disk space of a local computer of the user.
Drawings
FIG. 1 is a flow chart of a first embodiment of a browser plug-in based image data collection method;
FIG. 2 is a flowchart of a second embodiment of a browser plug-in based image data collection method;
fig. 3 is a block diagram of a first embodiment of an image data collection apparatus based on a browser plug-in.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that A, B, C all comprise, "comprises A, B or C" means comprise one of A, B, C, "comprises A, B and/or C" means comprise any 1 or any 2 or 3 of A, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides an image data collection method based on a browser plug-in, as shown in fig. 1 and fig. 2, a corresponding image data collection plug-in is configured in a browser in advance, and the image data collection plug-in collects image data in the browser through the following steps, including:
step S110, monitoring the behavior of a user for browsing a webpage in real time to obtain the current operation behavior of the user;
step S120, comparing the current operation behavior of the user with a preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
step S130, if the image is placed in the first area, the image placed in the first area is collected to generate image data, and the image data is stored in the target position.
In a possible implementation manner, the step of monitoring the behavior of the user browsing the web page in real time to obtain the current operation behavior of the user includes:
and monitoring the cursor of the user, and determining the current operation behavior of the user based on the cursor of the user.
In a possible implementation manner, the step of comparing the current operation behavior of the user with a preset operation behavior, and outputting the first region if the current operation behavior is the same as the preset operation behavior includes:
the preset operation behavior is that a user selects and drags a target image through a cursor;
and when the current operation behavior of the user is judged to be the selection and the dragging of the target image, generating a first area with a first area for placing the dragged image.
In a possible implementation manner, the step of acquiring, if an image is placed in the first area, the image placed in the first area to generate image data, and storing the image data in the target position includes:
monitoring the first area in real time, and acquiring the image placed in the first area to obtain corresponding image data if the image placed in the first area is judged;
storing the image data at the corresponding target location.
In a possible embodiment, the technical solution provided by the present invention further includes:
the target position is a storage server;
setting a first storage space in a storage server based on a registration request of a user;
and associating the webpage with a first storage space according to the association information of the user, and storing the image data into the first storage space after judging that the image data is generated.
According to the technical scheme provided by the invention, in a possible implementation mode, the browser is a Google browser.
In a possible implementation manner, before the step of monitoring the behavior of the user browsing the web page in real time to obtain the current operation behavior of the user, the technical scheme provided by the invention includes:
receiving configuration information input by a user, wherein the configuration information is at least one preset operation behavior.
In a possible implementation manner, before the step of monitoring the behavior of the user browsing the web page in real time to obtain the current operation behavior of the user, the technical scheme provided by the invention includes:
receiving an association request of a user, and associating the browser plug-in with the target position based on the association request, wherein the association request at least comprises the association relationship between the browser plug-in and the target position.
In order to realize the image data collection method based on the browser plug-in, the invention also provides an image data collection device based on the browser plug-in.
In one possible implementation, a user has an account number of a storage service, the user installs a *** browser plug-in (hereinafter referred to as plug-in) provided by a service provider, the user browses a webpage on a computer, the plug-in monitors a user dragging behavior on the webpage, when the user drags a picture, a visible dragging target area is generated in a visible range, the user drags the picture to the target area, and the plug-in obtains picture information and uploads the picture information to a storage server under the account of the user.
The image data collecting device based on the browser plug-in, as shown in fig. 3, is configured with a corresponding image data collecting plug-in the browser in advance, and the image data collecting plug-in collects the image data in the browser through the following modules, including:
the behavior monitoring module is used for monitoring the behavior of the user for browsing the webpage in real time to obtain the current operation behavior of the user;
the behavior comparison module is used for comparing the current operation behavior of the user with the preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
and the image storage module is used for acquiring the images placed in the first area to generate image data and storing the image data in the target position if the images are placed in the first area.
The present invention also provides a storage medium having a computer program stored therein, the computer program being executable by a processor to implement the methods provided by the various embodiments described above.
The storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device. The storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and the like.
The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The image data collection method based on the browser plug-in is characterized in that a corresponding image data collection plug-in is configured in the browser in advance, and the image data collection plug-in collects the image data in the browser through the following steps of:
monitoring the behavior of a user browsing a webpage in real time to obtain the current operation behavior of the user;
comparing the current operation behavior of the user with a preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
if the image is placed in the first area, the image placed in the first area is collected to generate image data, and the image data is stored in the target position.
2. The browser-plug-in-based image data collection method according to claim 1,
the method comprises the following steps of monitoring the behavior of a user browsing a webpage in real time to obtain the current operation behavior of the user:
monitoring a cursor of the user, and determining the current operation behavior of the user based on the cursor of the user.
3. The browser-plug-in-based image data collection method according to claim 1,
the step of comparing the current operation behavior of the user with the preset operation behavior, and outputting the first region if the current operation behavior is the same as the preset operation behavior comprises the following steps:
the preset operation behavior is that a user selects and drags a target image through a cursor;
and when the current operation behavior of the user is judged to be the selection and the dragging of the target image, generating a first area with a first area for placing the dragged image.
4. The browser-plug-in-based image data collection method according to claim 1,
if an image is placed in the first area, the step of collecting the image placed in the first area to generate image data and storing the image data at the target position comprises the following steps:
monitoring the first area in real time, and acquiring the image placed in the first area to obtain corresponding image data if the image placed in the first area is judged;
storing the image data at the corresponding target location.
5. The browser plug-in based image data collection method according to claim 1, further comprising:
the target position is a storage server;
setting a first storage space in a storage server based on a registration request of a user;
and associating the webpage with a first storage space according to the association information of the user, and storing the image data into the first storage space after judging that the image data is generated.
6. The browser-plug-in-based image data collection method according to claim 1,
the browser is a Google browser.
7. The method for collecting image data based on browser plug-ins according to claim 1, wherein before the step of monitoring the behavior of the user browsing the web page in real time to obtain the current operation behavior of the user, the method comprises:
receiving configuration information input by a user, wherein the configuration information is at least one preset operation behavior.
8. The method for collecting image data based on browser plug-ins according to claim 1, wherein before the step of monitoring the behavior of the user browsing the web page in real time to obtain the current operation behavior of the user, the method comprises:
receiving an association request of a user, and associating the browser plug-in with the target position based on the association request, wherein the association request at least comprises the association relationship between the browser plug-in and the target position.
9. The image data collection device based on the browser plug-in is characterized in that a corresponding image data collection plug-in is configured in the browser in advance, and the image data collection plug-in collects image data in the browser through the following modules, and comprises the following steps:
the behavior monitoring module is used for monitoring the behavior of the user for browsing the webpage in real time to obtain the current operation behavior of the user;
the behavior comparison module is used for comparing the current operation behavior of the user with the preset operation behavior, and outputting a first area if the current operation behavior is the same as the preset operation behavior;
and the image storage module is used for acquiring the images placed in the first area to generate image data and storing the image data in the target position if the images are placed in the first area.
10. Storage medium, characterized in that a computer program is stored in the storage medium, which computer program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210170627.6A CN114546231A (en) | 2022-02-24 | 2022-02-24 | Image data collection method and device based on browser plug-in and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210170627.6A CN114546231A (en) | 2022-02-24 | 2022-02-24 | Image data collection method and device based on browser plug-in and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114546231A true CN114546231A (en) | 2022-05-27 |
Family
ID=81677364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210170627.6A Pending CN114546231A (en) | 2022-02-24 | 2022-02-24 | Image data collection method and device based on browser plug-in and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114546231A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756214A (en) * | 2022-06-15 | 2022-07-15 | 中国海洋大学 | Image processing method and device based on OpenCV and plug-in |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587489A (en) * | 2009-06-12 | 2009-11-25 | 北京搜狗科技发展有限公司 | Method and system for exhibiting specific page resource for browser |
CN102799372A (en) * | 2012-06-29 | 2012-11-28 | 北京奇虎科技有限公司 | Uploading method and uploading device for pictorial information |
CN104346465A (en) * | 2014-11-07 | 2015-02-11 | 北京奇虎科技有限公司 | Method and device for saving web page elements, and browser client |
US20180032203A1 (en) * | 2016-07-29 | 2018-02-01 | Apple Inc. | Systems, devices, and methods for dynamically providing user interface controls at a touch-sensitive secondary display |
CN110837397A (en) * | 2019-09-27 | 2020-02-25 | 云深互联(北京)科技有限公司 | Method, device and equipment for configuring browser plug-in |
CN113688341A (en) * | 2021-10-25 | 2021-11-23 | 深圳市明源云空间电子商务有限公司 | Dynamic picture decomposition method and device, electronic equipment and readable storage medium |
-
2022
- 2022-02-24 CN CN202210170627.6A patent/CN114546231A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101587489A (en) * | 2009-06-12 | 2009-11-25 | 北京搜狗科技发展有限公司 | Method and system for exhibiting specific page resource for browser |
CN102799372A (en) * | 2012-06-29 | 2012-11-28 | 北京奇虎科技有限公司 | Uploading method and uploading device for pictorial information |
CN104346465A (en) * | 2014-11-07 | 2015-02-11 | 北京奇虎科技有限公司 | Method and device for saving web page elements, and browser client |
US20180032203A1 (en) * | 2016-07-29 | 2018-02-01 | Apple Inc. | Systems, devices, and methods for dynamically providing user interface controls at a touch-sensitive secondary display |
CN110837397A (en) * | 2019-09-27 | 2020-02-25 | 云深互联(北京)科技有限公司 | Method, device and equipment for configuring browser plug-in |
CN113688341A (en) * | 2021-10-25 | 2021-11-23 | 深圳市明源云空间电子商务有限公司 | Dynamic picture decomposition method and device, electronic equipment and readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756214A (en) * | 2022-06-15 | 2022-07-15 | 中国海洋大学 | Image processing method and device based on OpenCV and plug-in |
CN114756214B (en) * | 2022-06-15 | 2022-08-12 | 中国海洋大学 | Image processing method and device based on OpenCV and plug-in |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1538351B (en) | Method and computer for generating visually representative video thumbnails | |
US10455110B2 (en) | Suggesting image files for deletion based on image file parameters | |
CN110012217B (en) | Method and device for determining acquisition resolution and electronic equipment | |
CN110781372B (en) | Method and device for optimizing website, computer equipment and storage medium | |
CN107728892B (en) | Picture display method, device, terminal and storage medium | |
US20220172476A1 (en) | Video similarity detection method, apparatus, and device | |
CN108536467B (en) | Code positioning processing method and device, terminal equipment and storage medium | |
CN109240664B (en) | Method and terminal for collecting user behavior information | |
US9195896B2 (en) | Methods and systems for image recognition | |
CN105809162B (en) | Method and device for acquiring WIFI hotspot and picture associated information | |
CN114546231A (en) | Image data collection method and device based on browser plug-in and storage medium | |
CN110618904A (en) | Stuck detection method and device | |
CN115445212A (en) | Game gift bag pushing method and device, computer equipment and storage medium | |
CN111405237A (en) | Cloud storage system providing preview function and preview method | |
CN110457089B (en) | Data acquisition method, data acquisition device, computer readable storage medium and computer equipment | |
CN117459662A (en) | Video playing method, video identifying method, video playing device, video playing equipment and storage medium | |
CN116168045B (en) | Method and system for dividing sweeping lens, storage medium and electronic equipment | |
CN112561636A (en) | Recommendation method, recommendation device, terminal equipment and medium | |
CN110569097B (en) | Information display method and device | |
CN109213515B (en) | Multi-platform lower buried point normalization method and device and electronic equipment | |
CN109271543B (en) | Thumbnail display method and device, terminal and computer-readable storage medium | |
JP7171275B2 (en) | Image evaluation device, system, control method and program for image evaluation device | |
CN108921802B (en) | Image processing method and device | |
CN109271580B (en) | Search method, device, client and search engine | |
CN110674386B (en) | Resource recommendation method, device 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 |