CN111813741A - File sharing method and electronic equipment - Google Patents

File sharing method and electronic equipment Download PDF

Info

Publication number
CN111813741A
CN111813741A CN202010544462.5A CN202010544462A CN111813741A CN 111813741 A CN111813741 A CN 111813741A CN 202010544462 A CN202010544462 A CN 202010544462A CN 111813741 A CN111813741 A CN 111813741A
Authority
CN
China
Prior art keywords
target
display interface
file
electronic device
electronic equipment
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.)
Granted
Application number
CN202010544462.5A
Other languages
Chinese (zh)
Other versions
CN111813741B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010544462.5A priority Critical patent/CN111813741B/en
Priority claimed from CN202010544462.5A external-priority patent/CN111813741B/en
Publication of CN111813741A publication Critical patent/CN111813741A/en
Application granted granted Critical
Publication of CN111813741B publication Critical patent/CN111813741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • 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/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application discloses a file sharing method and electronic equipment, and belongs to the technical field of terminals. The method comprises the following steps: receiving a target picture sent by second electronic equipment; in the application, a user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, so that the process of sending the target file from the first electronic device to the second electronic device can be completed, and the storage position of the file is found from a multi-level storage path without complex manual operation, so that the process of sharing and transmitting the file between the electronic devices is simple in operation and short in time consumption, and the use experience of the user is improved.

Description

File sharing method and electronic equipment
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a file sharing method and electronic equipment.
Background
With the rapid development of mobile electronic device technology, mobile electronic devices such as mobile phones and tablet computers are widely used in daily life of people, and file transmission between different mobile electronic devices or between a mobile electronic device and a fixed electronic device has gradually become an operation that people often need to perform in the office and entertainment processes.
At present, there are two general methods for sharing and transmitting files between electronic devices, the first method is: firstly, establishing communication connection between electronic equipment, after determining a file needing to be shared and transmitted, a user corresponding to the electronic equipment at a sending end needs to find a storage position of the file in the electronic equipment at the sending end through a multi-level storage path, and select and transmit the file to the electronic equipment at a receiving end through operations such as manual dragging, clicking and the like; the second method comprises the following steps: after the storage position of the file is found by the user corresponding to the electronic equipment at the sending end through the multi-level storage path in the electronic equipment at the sending end, the file needing to be shared and transmitted is manually uploaded to the cloud server through operations such as manual dragging and clicking, so that the file is found and downloaded by the user corresponding to the electronic equipment at the receiving end from the cloud server, and sharing and transmission of the file among different electronic equipment are completed.
However, in the current scheme, both methods for sharing and transmitting files between electronic devices require a user to manually find a storage location of the file in a storage space of the electronic device through multiple hierarchical storage paths, and select and transmit the file through operations such as manual dragging and clicking, which is complex in operation, long in time consumption, and poor in user experience.
Disclosure of Invention
The embodiment of the application provides a file sharing method and electronic equipment, and can solve the problems that in the prior art, when a user shares and transmits files, the operation is complex, the time consumption is long, and the user experience is not good.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a file sharing method, which is applied to a first electronic device, and the method includes:
receiving a target picture sent by second electronic equipment;
and if the target file matched with the target picture exists in the first electronic equipment, sending the target file or a subfile to the second electronic equipment, wherein the subfile comprises partial content in the target file.
In a second aspect, an embodiment of the present application provides a file sharing method, which is applied to a second electronic device, and the method includes:
acquiring a target picture;
sending the target picture to first electronic equipment, so that the first electronic equipment sends a target file or a subfile to second electronic equipment according to the target picture under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises partial content in the target file;
and receiving the target file or the subfile sent by the first electronic equipment.
In a third aspect, an embodiment of the present application provides a file sharing apparatus, which is applied to a first electronic device, and includes:
the first receiving module is used for receiving a target picture sent by second electronic equipment;
and the determining module is used for sending the target file or a subfile to the second electronic equipment under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises part of content in the target file.
In a fourth aspect, an embodiment of the present application provides an apparatus for sharing a file, which is applied to a second electronic device, and the apparatus includes:
the acquisition module is used for acquiring a target picture;
the sending module is used for sending the target picture to first electronic equipment so that the first electronic equipment sends a target file or a subfile to the second electronic equipment according to the target picture under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises partial content in the target file;
and the second receiving module is used for receiving the target file or the subfile sent by the first electronic equipment.
In a fifth aspect, embodiments of the present application further provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first and second aspects.
In a sixth aspect, the present embodiments also provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first and second aspects.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect and the second aspect.
In the embodiment of the application, a target picture sent by second electronic equipment is received; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
Drawings
FIG. 1 is a flowchart illustrating interaction steps of a file sharing method according to an embodiment of the present application;
fig. 2 is a display schematic diagram of a first electronic device according to an embodiment of the present application;
fig. 3 is a display schematic diagram of a second electronic device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a target picture provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a screenshot of a first electronic device provided by an embodiment of the present application;
FIG. 6 is a flowchart illustrating interaction steps of another file sharing method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a feature point detection result of a screenshot provided in an embodiment of the present application;
fig. 8 is a schematic diagram illustrating a feature point detection result of a target picture according to an embodiment of the present disclosure;
FIG. 9 is a flowchart illustrating steps of a method for sharing a file according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating steps of another method for sharing files according to an embodiment of the present application;
FIG. 11 is a block diagram of a device for sharing a file according to an embodiment of the present disclosure;
FIG. 12 is a block diagram of another apparatus for sharing files according to an embodiment of the present application;
fig. 13 is an electronic device provided in an embodiment of the present application;
fig. 14 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes, in detail, sharing of files provided by the embodiments of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of interaction steps of a file sharing method provided in an embodiment of the present application, and is applied to a file sharing system including a first electronic device and a second electronic device, where the first electronic device and the second electronic device are communicatively connected, as shown in fig. 1, the method may include:
step 101, the second electronic device obtains a target picture.
In this step, the second electronic device may acquire the target picture through an image pickup device installed in the second electronic device or through an external image pickup device.
Specifically, the target picture includes a partial area or a whole area of a first display interface, where the first display interface is a display interface of a target file in a screen of the first electronic device.
In this embodiment of the application, the second electronic device may be a fixed electronic device or a mobile electronic device, the second electronic device may provide a function of obtaining a target picture for a user, when the user opens a target file in the first electronic device, file content of the target file may be displayed in a screen of the first electronic device in the form of an independent file display window, so as to form a display interface corresponding to the target file, that is, a first display interface, and when the user needs to share the target file between the first electronic device and the second electronic device, the user may obtain the target picture including a partial area or a full area of the first display interface corresponding to the target file by using the second electronic device.
And 102, the second electronic equipment sends the target picture to the first electronic equipment.
In this step, after the second electronic device obtains the target picture, the second electronic device may send the target picture to the first electronic device through a communication connection between the first electronic device and the second electronic device, so that the first electronic device may determine, according to the target picture, a target file in the first electronic device, where the target file is matched with the target picture, and send the target file to the second electronic device.
The communication connection may be a wired connection, such as a Universal Serial Bus (USB), or a wireless connection, such as a wireless internet access (Wi-Fi), bluetooth, or the like.
Step 103, the first electronic device receives the target picture sent by the second electronic device.
In this step, the first electronic device may receive the target picture sent by the second electronic device through a communication connection between the first electronic device and the second electronic device.
In this embodiment of the application, the first electronic device may be a fixed electronic device or a mobile electronic device, the first electronic device may provide a function of displaying a plurality of file contents for a user, when the user opens a target file in the first electronic device, the file contents of the target file may be displayed in a screen of the first electronic device in the form of an independent file display window, a display interface corresponding to the target file, that is, a first display interface, is formed, and a partial area or a whole area of the first display interface is included in a target picture received from the second electronic device, that is, a partial area or a whole area of the display interface corresponding to the target file is included in the target picture.
Fig. 2 is a display schematic diagram of a first electronic device according to an embodiment of the present application, and as shown in fig. 2, when a user uses the first electronic device 10, a plurality of files may be opened in a current display interface 40 of a screen of the first electronic device 10, so that file contents of the plurality of files are displayed in the current display interface 40 of the first electronic device 10 in the form of a separate file display interface, for example, the user may open a PPT file, so that file contents of the PPT file are displayed in the current display interface 40 of the first electronic device 10 in the form of a display interface 60, and the user may simultaneously open a picture file, so that file contents of the picture file are displayed in the current display interface 40 of the first electronic device in the form of a display interface 70.
Further, when a user needs to acquire a target file which is stored in the first electronic device and is displayed in the screen of the first electronic device in the form of a file display window, a display interface corresponding to the target file in the current display interface of the screen of the first electronic device may be acquired through the camera device installed in the second electronic device, that is, a partial area or a whole area of the first display interface is acquired, so as to generate a target picture.
Fig. 3 is a display schematic diagram of a second electronic device according to an embodiment of the present application, and as shown in fig. 2 and fig. 3, when a user needs to send a picture file stored in a first electronic device 10 to a second electronic device 20, the user may capture a target file in a current display interface 40 of a screen of the first electronic device 10, that is, a partial area 50 of a display interface 70 corresponding to the picture file, by using a camera device of the second electronic device 20, and generate a target picture 30.
It should be noted that the target picture may include all regions of the first display interface corresponding to the target file, or may include partial regions of the first display interface corresponding to the target file, where the size of the partial regions must ensure that the number of feature points that can be detected in the partial regions is greater than or equal to a preset number, or the area of the partial regions is greater than or equal to a preset area size, so as to avoid that the area of the partial regions is too small to represent the feature information of the first display interface corresponding to the target file.
And 104, the first electronic device sends a target file or a subfile to the second electronic device under the condition that the target file matched with the target picture exists in the first electronic device, wherein the subfile comprises partial content in the target file.
In this step, after receiving the target picture, the first electronic device may determine, according to the received target picture, a target file that matches the target picture in the first electronic device.
Fig. 4 is a schematic diagram of a target picture provided in an embodiment of the present application, and fig. 5 is a schematic diagram of a screenshot of a first electronic device provided in an embodiment of the present application, and as shown in fig. 4 and fig. 5, content included in a target picture 30 may specifically be determined to be a partial area of a display interface 70 of a picture file in a current display interface of the first electronic device through a picture feature algorithm, that is, a target file that a user wants to share between the first electronic device and a second electronic device may be determined to be a picture file stored in the first electronic device, and a display interface related to the picture file included in the target picture in the current display interface of the first electronic device is determined to be the first display interface.
Further, after the target file is determined, the first electronic device may find the target file from a multi-level storage space of the first electronic device, and then may send the target file to the second electronic device through a communication connection between the first electronic device and the second electronic device, thereby completing sharing of the target file.
In addition, since the target file can display part of the content in the current display interface of the screen of the first electronic device, an independent sub-file can be generated by extracting the target file according to the part of the content to be displayed in the current display interface of the screen of the first electronic device.
Further, a subfile containing only a portion of the information corresponding to the first display interface may be transmitted to the second electronic device.
And 105, the second electronic device receives the target file or the subfile sent by the first electronic device.
In this step, the second electronic device may receive the target file or the subfile sent by the first electronic device, thereby completing the sharing of the target file.
To sum up, a file sharing method provided in an embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
Fig. 6 is a flowchart of interaction steps of another file sharing method provided in an embodiment of the present application, and is applied to a file sharing system including a first electronic device and a second electronic device, where the first electronic device and the second electronic device are communicatively connected, and as shown in fig. 6, the method may include:
step 201, the second electronic device obtains a target picture.
In this step, the second electronic device may acquire a target picture.
Optionally, when the second electronic device acquires the target picture by using the image capturing apparatus in the second electronic device, step 201 may specifically include:
in sub-step 2011, the second electronic device obtains the target picture when receiving an image capturing operation of an image capturing device in the second electronic device.
In this step, the second electronic apparatus may acquire the target picture upon receiving an image capturing operation of an image capturing device in the second electronic apparatus.
The image capturing operation may be a related operation of a user capturing an image of a current display interface in a screen of the first electronic device by using an image capturing apparatus in the second electronic device, and specifically, the related operation of the user capturing an image of a first display interface corresponding to a target file displayed in the screen of the first electronic device is performed, so as to obtain a target picture including all or part of a region of the first display interface.
Step 202, the second electronic device sends the target picture to the first electronic device.
The implementation of this step is similar to the implementation of step 102, and is not described here again.
Step 203, the first electronic device receives the target picture sent by the second electronic device.
The implementation of this step is similar to the implementation process of step 103, and is not described here again.
Step 204, according to the target picture and a current display interface in a screen of the first electronic device, determining a target file matched with a first display interface in the target picture in the first electronic device, and determining a storage path of the target file in the first electronic device.
Optionally, the target picture includes a partial area or a whole area of a first display interface, and the first display interface is a display interface of the target file in a screen of the first electronic device.
Optionally, step 204 may specifically include:
substep 2041, the first electronic device obtains a screenshot of the first electronic device.
In this step, in order to obtain a current display interface in the screen of the first electronic device, the first electronic device may perform a screenshot operation after receiving the target picture, so that the obtained screenshot of the first electronic device includes the current display interface in the screen of the first electronic device, and a second display interface of at least one file is displayed in the current display interface.
Specifically, when a user opens at least one file in the first electronic device, the file content of the at least one file is displayed in the screen of the first electronic device in the form of at least one independent file display window, and after the screen capture operation is performed on the first electronic device, the acquired screen capture of the first electronic device includes a current display interface in the screen of the first electronic device, and a second display interface of the at least one file is displayed in the current display interface.
Referring to fig. 5, after the screenshot operation is performed on the first electronic device, the display interfaces included in the obtained screenshot of the first electronic device, that is, the screenshot of the first electronic device, may include display interfaces corresponding to a plurality of files opened by the user, for example, when the user opens a PPT file in the first electronic device, the screenshot of the first electronic device may include a display interface 60 of the PPT file in a current display interface 40 of the first electronic device, that is, the display interface 60 is a second display interface, and the user may also open the picture file at the same time, so that the screenshot of the first electronic device may include a display interface 70 of the picture file in the current display interface 40 of the first electronic device, and the display interface 70 is another second display interface.
Substep 2042, determining, by the first electronic device, a target second display interface matched with the first display interface and a target display interface identifier corresponding to the target second display interface in at least one second display interface included in the screenshot according to the target picture and the screenshot.
In this step, the first electronic device may determine, according to a target picture received from the second electronic device and a screenshot of a current display interface of the first electronic device obtained through a screenshot operation, a target second display interface matched with the first display interface included in the target picture from at least one second display interface included in the screenshot.
Specifically, referring to fig. 4 and 5, the target picture 30 is a partial area 50 of a display interface corresponding to a picture file in a current display interface of the first electronic device, that is, the first display interface corresponding to the target picture is the display interface corresponding to the picture file, and in the screenshot of the first electronic device, at least one second display interface included in the screenshot of the first electronic device includes: a display interface 60 of the PPT file in the current display interface 40 of the first electronic device, and a display interface 70 of the picture file in the current display interface 40 of the first electronic device, and further, a target second display interface matched with the first display interface corresponding to the target picture can be determined from the two second display interfaces as follows: the display interface 70 of the picture file in the current display interface 40 of the first electronic device, i.e. the user wants to share the picture file between the first electronic device and the second electronic device.
Further, after the target second display interface is determined, the target display interface identifier corresponding to the target second display interface may be further determined according to the display position of the target second display interface in the current display interface of the first electronic device.
Optionally, the sub-step 2042 may specifically include:
(1) and the first electronic equipment respectively detects the characteristic points contained in the screenshot and the target picture according to an image characteristic detection algorithm.
In this step, the first electronic device may detect feature points included in the acquired screenshot and the target picture respectively according to an image feature detection algorithm.
Specifically, the image feature detection algorithm is a precondition for image analysis and image recognition, and is the most effective way to simplify and express high-dimensional image data, in the image feature detection algorithm, the image local feature point detection algorithm detects image data by detecting local feature points in an image, because the local feature points are local expressions of image features and can only reflect local particularity on the image, the image feature detection algorithm is suitable for matching, searching and other applications of the image, and is not suitable for image understanding, because the local feature points do not care about some global features in the image features, such as color distribution, texture features, shapes of main objects and the like, because the global features are easily interfered by environment, illumination, rotation, noise and other adverse factors can affect the global features, therefore, the image local feature point detection algorithm is adopted, when a structure with crossed lines and changed brightness in an image is detected, the method has an excellent detection effect and is less interfered.
Fig. 7 is a schematic diagram of a feature point detection result of a screenshot provided in an embodiment of the present application, and as shown in fig. 7, in the screenshot of a current display interface of a first electronic device, a plurality of feature points 11 are detected by using an image feature detection algorithm.
Fig. 8 is a schematic diagram of a feature point detection result of a target picture according to an embodiment of the present application, and as shown in fig. 8, in the target picture received by the first electronic device, a plurality of feature points 12 are detected by using an image feature detection algorithm.
(2) And the first electronic equipment determines target feature points matched with the feature points contained in the target picture in the feature points contained in the screenshot.
In this step, the target feature points matching the feature points included in the target picture may be determined from the feature points included in the screenshot by comparing the feature points included in the screenshot with the feature points included in the target picture.
Referring to fig. 7, in the feature points 11 included in the screenshot, by comparing the feature parameters with the feature points included in the target picture, it is possible to determine the target feature points 14 having the same feature parameters as the feature points included in the target picture, that is, matching the feature points included in the target picture, and the feature points 13 having different feature parameters from the feature points included in the target picture, that is, not matching the feature points included in the target picture.
(3) And the first electronic equipment determines an area contained by the circumscribed rectangle containing the target feature point as the target second display interface in the screenshot, and determines coordinate information of pixel points contained in the target second display interface.
In this step, after determining a target feature point that matches the feature point included in the target picture among the feature points included in the screenshot, a target second display interface may be determined from at least one second display interface of the screenshot according to the target feature point.
Specifically, when the target second display interface is determined from at least one second display interface of the screenshot according to the target feature point, since the target feature point is a feature point included in the screenshot and has the same feature parameter as the feature point included in the target picture, that is, a feature point matched with the feature point included in the target picture, the second display interface including the target and the feature point in the screenshot can be considered as the target second display interface matched with the first display interface corresponding to the target picture.
Therefore, an area included in the circumscribed rectangle including the target feature point may be determined as the target second display interface, referring to fig. 7, the circumscribed rectangle of the target feature point 14 is an outer frame of the display interface of the picture file in the first electronic device screen, an area included in the outer rectangle is a display interface 70 of the picture file in the first electronic device screen, and thus, the target second display interface is the display interface 70 of the picture file in the first electronic device screen.
Further, after the target second display interface is determined, the coordinate information of the pixel points included in the target second display interface can be determined according to the display position of the target second display interface in the screen of the first electronic device.
(4) And determining a target display interface identifier corresponding to the target second display interface according to the corresponding relation between the coordinate information of the pixel points stored in advance and the display interface identifier and the coordinate information of the pixel points contained in the target second display interface.
In this step, when the first electronic device displays the display interface in the form of the display interface on the screen, the first electronic device may determine the coordinate information of the pixel point included in the display interface corresponding to each display interface, so as to determine the correspondence between the coordinate information of the pixel point and the display interface identifier.
Therefore, after the coordinate information of the pixel points included in the target second display interface is determined, the target display interface identifier corresponding to the target second display interface can be determined according to the corresponding relationship between the coordinate information of the pixel points and the display interface identifier which are stored in advance.
Referring to fig. 7, if it is determined that the target second display interface is the display interface 70 of the picture file in the first electronic device screen, the coordinate information of each pixel point included in the display interface 70 may be determined, and according to the correspondence between the coordinate information of the pixel point and the display interface identifier stored in advance, the target display interface identifier "picture" corresponding to the display interface 70 of the picture file in the first electronic device screen is determined, so that the first electronic device may further determine the storage path of the target file in the first electronic device according to the target display interface identifier.
Substep 2043, determining a storage path of the target file in the first electronic device according to the target display interface identifier.
Optionally, the substep 2043 may specifically include:
(1) and the first electronic equipment determines target progress information corresponding to the target display interface identifier according to a corresponding relation between the pre-stored display interface identifier and the progress information.
In this step, after the target display interface identifier corresponding to the target second display interface is determined, the target progress information corresponding to the target display interface identifier may be further determined according to a correspondence relationship between the display interface identifier and the progress information, which is pre-stored in the first electronic device.
In this embodiment of the present application, when the first electronic device displays each file in the form of a display interface on the screen, a corresponding relationship may be established between a display interface identifier corresponding to the display interface and process information of the file running in the first electronic device, and table 1 is a corresponding relationship between the display interface identifier and the process information provided in this embodiment of the present application.
Display interface identification Process information
Picture frame Process U
PPT Process W
Display interface A Process X
Display interface B Process Y
Display interface C Process Z
TABLE 1
Referring to fig. 7, after it is determined that the target second display interface is the display interface 70 of the picture file in the screen of the first electronic device, and it is determined that the target display interface identifier corresponding to the target second display interface is "picture", it may be determined that the identification information of the process corresponding to the target display interface identifier "picture" is the process U according to the correspondence between the display interface identifier and the process information recorded in table 1.
(2) The first electronic device determines a storage path of a target file corresponding to the target process information in the first electronic device according to a corresponding relation between the pre-stored process information and the storage path of the file in the first electronic device.
In this step, after the target process information corresponding to the target display interface identifier is determined, a storage path of a target file corresponding to the target process information in the first electronic device may be further determined according to a correspondence between process information pre-stored in the first electronic device and a storage path of the file in the first electronic device.
In this embodiment of the present application, when the first electronic device displays each file in the form of a display interface in the screen, a corresponding relationship may be established between process information of the file running in the first electronic device and a storage path of the file in the first electronic device, and table 2 is a corresponding relationship between one of the process information provided in this embodiment of the present application and the storage path of the file in the first electronic device.
Process information Storage path
Process U Route D
Process W Path E
Process X Path F
Process Y Route G
Process Z Route H
TABLE 2
Referring to fig. 7, after it is determined that the target second display interface is the display interface 70 of the picture file in the screen of the first electronic device, and it is determined that the target display interface identifier corresponding to the target second display interface is "picture", it may be determined that the identification information of the process corresponding to the target display interface identifier "picture" is process U according to the corresponding relationship between the display interface identifier and the process information recorded in table 1, that is, the target process information is process U, and further, it may be determined that the identification information of the process corresponding to the target display interface identifier "picture" is process U according to the corresponding relationship between the process information recorded in table 2 and the storage path of the file in the first electronic device: and a process U, wherein the storage path of the corresponding picture file in the first electronic device is a path D.
And step 205, the first electronic device sends the target file or the subfile to the second electronic device according to the storage path.
In this step, after determining the storage path of the target file in the first electronic device, the target file may be automatically located in the multi-layer storage space of the first electronic device according to the storage path of the target file. And then the target file can be sent to the second electronic equipment through the communication connection between the first electronic equipment and the second electronic equipment, so that the sharing of the target file is completed.
Optionally, step 205 includes:
sub-step 2051, the first electronic device extracts, from the object file, a subfile containing the first display interface according to the first display interface and the object file.
In this step, the first electronic device may further extract, from the target file, a subfile including the first display interface only according to the first display interface and the determined target file.
Specifically, the first display interface is a display interface of the target file in a current display interface of the screen of the first electronic device, so that partial information corresponding to the first display interface can be extracted from the target file according to the first display interface, and an independent subfile can be generated.
Further, a subfile containing only a portion of the information corresponding to the first display interface may be transmitted to the second electronic device.
For example, if a page of content in a document file is displayed in the first electronic device, the page of content displayed in the document file can be transmitted to the second electronic device without transmitting the entire document file to the second electronic device.
Sub-step 2052, the first electronic device sends the subfile to the second electronic device.
In this step, after the first electronic device generates the subfile, the subfile may be sent to the second electronic device through a communication connection between the first electronic device and the second electronic device.
And step 206, the second electronic device receives the target file or the subfile sent by the first electronic device.
In this step, the second electronic device may accept the target file or subfile sent by the first electronic device, thereby completing the sharing of the target file or subfile.
To sum up, a file sharing method provided in an embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
In addition, according to the target file, the target second display interface is determined from a plurality of second display interfaces displayed on the current display interface in the screen of the first electronic device by using an image feature detection algorithm, and the target file corresponding to the target second display interface and the storage path of the target file are finally determined, so that the accuracy of the process of automatically determining the target file which needs to be shared and transmitted by a user can be ensured.
Fig. 9 is a flowchart of steps of a file sharing method provided in an embodiment of the present application, and is applied to a first electronic device, and as shown in fig. 9, the method may include:
step 301, receiving a target picture sent by a second electronic device.
The implementation of this step is similar to the implementation process of step 103, and is not described here again.
Step 302, according to the target picture, when a target file matched with the target picture exists in the first electronic device, sending the target file or a subfile to the second electronic device, where the subfile includes a part of content in the target file.
The implementation of this step is similar to the implementation of step 104, and is not described here again.
To sum up, a file sharing method provided in an embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
Fig. 10 is a flowchart of steps of another file sharing method provided in an embodiment of the present application, and is applied to a second electronic device, where as shown in fig. 10, the method may include:
step 401, obtaining a target picture.
The implementation of this step is similar to the implementation of step 101 described above, and is not described here again.
Step 402, sending the target picture to a first electronic device, so that the first electronic device sends a target file or a subfile to a second electronic device according to the target picture under the condition that the target file matched with the target picture exists in the first electronic device, wherein the subfile comprises partial content in the target file.
The implementation of this step is similar to the implementation of step 102, and is not described here again.
And step 403, receiving the target file or the subfile sent by the first electronic device.
The implementation of this step is similar to the implementation of step 105, and is not described here again.
To sum up, a file sharing method provided in an embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
It should be noted that, in the file sharing method provided in the embodiment of the present application, the execution subject may be a file sharing device, or a control module in the file sharing device for executing the file sharing method. In the embodiment of the present application, a method for executing file sharing by a file sharing device is taken as an example, and the file sharing device provided in the embodiment of the present application is described.
Fig. 11 is a block diagram of a file sharing apparatus according to an embodiment of the present application, and as shown in fig. 11, the apparatus 500 includes:
a first receiving module 501, configured to receive a target picture sent by a second electronic device;
a determining module 502, configured to, if a target file matching the target picture exists in the first electronic device, send the target file or a subfile to the second electronic device, where the subfile includes a part of content in the target file.
Optionally, the target picture includes a partial area or a whole area of a first display interface, where the first display interface is a display interface of the target file in a screen of the first electronic device;
the determining module 502 includes:
the determining submodule is used for determining a target file matched with a first display interface in the target picture in the first electronic equipment according to the target picture and a current display interface in a screen of the first electronic equipment, and determining a storage path of the target file in the first electronic equipment;
and the first sending sub-module is used for sending the target file or the subfile to the second electronic equipment according to the storage path.
Optionally, the determining sub-module includes:
the acquisition unit is used for acquiring a screenshot of the first electronic equipment, wherein the screenshot comprises a current display interface in a screen of the first electronic equipment, and a second display interface of at least one file is displayed in the current display interface;
the first determining unit is used for determining a target second display interface matched with the first display interface and a target display interface identifier corresponding to the target second display interface in at least one second display interface included in the screenshot according to the target picture and the screenshot;
and the second determining unit is used for determining a storage path of the target file in the first electronic equipment according to the target display interface identifier.
Optionally, the first determining unit specifically includes:
the detection subunit is used for respectively detecting the feature points contained in the screenshot and the target picture according to an image feature detection algorithm;
the first determining subunit is used for determining a target feature point matched with the feature point contained in the target picture from the feature points contained in the screenshot;
the second determining subunit is configured to determine, in the screenshot, an area included in the circumscribed rectangle including the target feature point as the target second display interface, and determine coordinate information of a pixel point included in the target second display interface;
and the third determining subunit is configured to determine, according to a correspondence between pre-stored coordinate information of a pixel and a display interface identifier, and coordinate information of a pixel included in the target second display interface, a target display interface identifier corresponding to the target second display interface.
Optionally, the second determining unit specifically includes:
the fourth determining subunit is configured to determine, according to a correspondence between a pre-stored display interface identifier and process information, target process information corresponding to the target display interface identifier;
and the fifth determining subunit is configured to determine, according to a correspondence between pre-stored process information and a storage path of a file in the first electronic device, a storage path of a target file in the first electronic device, where the target file corresponds to the target process information.
Optionally, the determining module 502 includes:
the extraction submodule is used for extracting a subfile containing the first display interface from the target file according to the first display interface and the target file;
and the second sending submodule is used for sending the subfile to the second electronic equipment.
To sum up, the file sharing apparatus provided in the embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
Fig. 12 is a block diagram of a file sharing apparatus according to an embodiment of the present application, and as shown in fig. 12, the apparatus 600 includes:
an obtaining module 601, configured to obtain a target picture;
a sending module 602, configured to send the target picture to a first electronic device, so that the first electronic device sends, according to the target picture, a target file matched with the target picture in the first electronic device, to the second electronic device, where the target file or a subfile includes a part of content in the target file;
a second receiving module 603, configured to receive the target file or the subfile sent by the first electronic device.
Optionally, the obtaining module 601 includes:
and the acquisition submodule is used for acquiring the target picture under the condition that the shooting operation of the shooting device in the second electronic equipment is received.
To sum up, the file sharing apparatus provided in the embodiment of the present application includes: receiving a target picture sent by second electronic equipment; in the application, after receiving a target picture sent by the second electronic device, the first electronic device can automatically determine the target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic device, namely, the user only needs to acquire the target picture by using the second electronic device and sends the target picture to the first electronic device, and can finish the process of sending the target file from the first electronic device to the second electronic device without complex manual operation, and a storage position of the file is found from a multi-level storage path, so that the process of sharing and transmitting the file between the electronic devices is simple, the time consumption is short, and therefore the use experience of the user is improved.
The shared device of the document in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The file sharing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The file sharing device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1, fig. 6, fig. 9, and fig. 10, and is not described here again to avoid repetition.
Optionally, as shown in fig. 13, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the file sharing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
For the first electronic device, the interface unit 808 is configured to receive a target picture sent by the second electronic device;
a processor 810, configured to, if a target file matching the target picture exists in the first electronic device, send the target file or a subfile to the second electronic device, where the subfile includes a part of content in the target file.
In the application, after receiving a target picture sent by second electronic equipment, first electronic equipment can automatically determine a target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic equipment, namely, the user only needs to acquire the target picture by using the second electronic equipment, and sends the target picture to the first electronic equipment, so that the process of sending the target file to the second electronic equipment from the first electronic equipment can be completed, complicated manual operation is not needed, the storage position of the file is found from a multi-level storage path, the process of sharing and transmitting the file between the electronic equipment is simple in operation and short in time consumption, and the use experience of the user is improved.
Optionally, the processor 810 is further configured to determine, in the first electronic device, a target file matched with the first display interface in the target picture according to the target picture and a current display interface in the screen of the first electronic device, and determine a storage path of the target file in the first electronic device;
and sending the target file or the subfile to the second electronic equipment according to the storage path.
Optionally, the processor 810 is further configured to obtain a screenshot of the first electronic device, where the screenshot includes a current display interface in a screen of the first electronic device, and a second display interface of at least one file is displayed in the current display interface;
according to the target picture and the screenshot, determining a target second display interface matched with the first display interface and a target display interface identifier corresponding to the target second display interface in at least one second display interface included in the screenshot;
and determining a storage path of the target file in the first electronic equipment according to the target display interface identifier.
Optionally, the processor 810 is further configured to detect feature points included in the screenshot and the target picture respectively according to an image feature detection algorithm;
determining target feature points matched with the feature points contained in the target picture from the feature points contained in the screenshot;
in the screenshot, determining an area contained in a circumscribed rectangle containing the target feature point as a second target display interface, and determining coordinate information of pixel points contained in the second target display interface;
and determining a target display interface identifier corresponding to the target second display interface according to the corresponding relation between the coordinate information of the pixel points and the display interface identifier which are stored in advance and the coordinate information of the pixel points contained in the target second display interface.
Optionally, the processor 810 is further configured to determine, according to a correspondence between a pre-stored display interface identifier and process information, target process information corresponding to the target display interface identifier;
and determining a storage path of a target file corresponding to the target process information in the first electronic equipment according to a corresponding relation between pre-stored process information and the storage path of the file in the first electronic equipment.
Optionally, the processor 810 is further configured to extract, according to the first display interface and the target file, a subfile including the first display interface from the target file;
and sending the subfile to the second electronic equipment.
In the application, after receiving a target picture sent by second electronic equipment, first electronic equipment can automatically determine a target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic equipment, namely, the user only needs to acquire the target picture by using the second electronic equipment, and sends the target picture to the first electronic equipment, so that the process of sending the target file to the second electronic equipment from the first electronic equipment can be completed, complicated manual operation is not needed, the storage position of the file is found from a multi-level storage path, the process of sharing and transmitting the file between the electronic equipment is simple in operation and short in time consumption, and the use experience of the user is improved.
For the second electronic device, the input unit 804 is configured to obtain a target picture;
an interface unit 808, configured to send the target picture to a first electronic device, so that the first electronic device sends, according to the target picture, a target file matched with the target picture in the first electronic device, to the second electronic device, where the target file or a subfile includes a part of content in the target file;
and receiving the target file or the subfile sent by the first electronic equipment.
In the application, after receiving a target picture sent by second electronic equipment, first electronic equipment can automatically determine a target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic equipment, namely, the user only needs to acquire the target picture by using the second electronic equipment, and sends the target picture to the first electronic equipment, so that the process of sending the target file to the second electronic equipment from the first electronic equipment can be completed, complicated manual operation is not needed, the storage position of the file is found from a multi-level storage path, the process of sharing and transmitting the file between the electronic equipment is simple in operation and short in time consumption, and the use experience of the user is improved.
Optionally, the input unit 804 is further configured to acquire the target picture when an image capturing operation of an image capturing device in the second electronic device is received.
In the application, after receiving a target picture sent by second electronic equipment, first electronic equipment can automatically determine a target file which needs to be shared and transmitted by a user according to the target picture, so that the target file can be directly sent to the second electronic equipment, namely, the user only needs to acquire the target picture by using the second electronic equipment, and sends the target picture to the first electronic equipment, so that the process of sending the target file to the second electronic equipment from the first electronic equipment can be completed, complicated manual operation is not needed, the storage position of the file is found from a multi-level storage path, the process of sharing and transmitting the file between the electronic equipment is simple in operation and short in time consumption, and the use experience of the user is improved.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the file sharing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the file sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (17)

1. A file sharing method is applied to a first electronic device, and comprises the following steps:
receiving a target picture sent by second electronic equipment;
and if the target file matched with the target picture exists in the first electronic equipment, sending the target file or a subfile to the second electronic equipment, wherein the subfile comprises partial content in the target file.
2. The method according to claim 1, wherein the target picture includes a partial area or a whole area of a first display interface, and the first display interface is a display interface of the target file in a screen of the first electronic device;
determining a target file matched with the target picture according to the target picture, wherein the step of determining the target file comprises the following steps:
determining a target file matched with a first display interface in the target picture in the first electronic equipment according to the target picture and a current display interface in a screen of the first electronic equipment, and determining a storage path of the target file in the first electronic equipment;
the step of sending the target file or subfile to the second electronic device includes:
and sending the target file or the subfile to the second electronic equipment according to the storage path.
3. The method according to claim 2, wherein the step of determining, in the first electronic device, the target file matching the first display interface in the target picture and determining the storage path of the target file in the first electronic device according to the target picture and the current display interface in the screen of the first electronic device comprises:
acquiring a screenshot of the first electronic device, wherein the screenshot comprises a current display interface in a screen of the first electronic device, and a second display interface of at least one file is displayed in the current display interface;
according to the target picture and the screenshot, determining a target second display interface matched with the first display interface and a target display interface identifier corresponding to the target second display interface in at least one second display interface included in the screenshot;
and determining a storage path of the target file in the first electronic equipment according to the target display interface identifier.
4. The method according to claim 3, wherein the step of determining, according to the target picture and the screenshot, a target second display interface that matches the first display interface and a target display interface identifier that corresponds to the target second display interface in at least one second display interface included in the screenshot specifically includes:
respectively detecting feature points contained in the screenshot and the target picture according to an image feature detection algorithm;
determining target feature points matched with the feature points contained in the target picture from the feature points contained in the screenshot;
in the screenshot, determining an area contained in a circumscribed rectangle containing the target feature point as a second target display interface, and determining coordinate information of pixel points contained in the second target display interface;
and determining a target display interface identifier corresponding to the target second display interface according to the corresponding relation between the coordinate information of the pixel points and the display interface identifier which are stored in advance and the coordinate information of the pixel points contained in the target second display interface.
5. The method according to claim 3, wherein the step of determining a storage path of the target file in the first electronic device according to the target display interface identifier specifically includes:
determining target process information corresponding to the target display interface identifier according to a corresponding relation between a pre-stored display interface identifier and the process information;
and determining a storage path of a target file corresponding to the target process information in the first electronic equipment according to a corresponding relation between pre-stored process information and the storage path of the file in the first electronic equipment.
6. The method of claim 2, wherein the step of sending the subfile to the second electronic device comprises:
extracting a subfile containing the first display interface from the target file according to the first display interface and the target file;
and sending the subfile to the second electronic equipment.
7. A file sharing method is applied to a second electronic device, and comprises the following steps:
acquiring a target picture;
sending the target picture to first electronic equipment, so that the first electronic equipment sends a target file or a subfile to second electronic equipment according to the target picture under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises partial content in the target file;
and receiving the target file or the subfile sent by the first electronic equipment.
8. The method of claim 7, wherein the step of obtaining the target picture comprises:
and acquiring the target picture under the condition that the image pickup operation of the image pickup device in the second electronic equipment is received.
9. An apparatus for sharing a file, applied to a first electronic device, the apparatus comprising:
the first receiving module is used for receiving a target picture sent by second electronic equipment;
and the determining module is used for sending the target file or a subfile to the second electronic equipment under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises part of content in the target file.
10. The apparatus according to claim 9, wherein the target picture includes a partial area or a whole area of a first display interface, and the first display interface is a display interface of the target file in a screen of the first electronic device;
the determining module includes:
the determining submodule is used for determining a target file matched with a first display interface in the target picture in the first electronic equipment according to the target picture and a current display interface in a screen of the first electronic equipment, and determining a storage path of the target file in the first electronic equipment;
and the first sending sub-module is used for sending the target file or the subfile to the second electronic equipment according to the storage path.
11. The apparatus of claim 10, wherein the determining sub-module comprises:
the acquisition unit is used for acquiring a screenshot of the first electronic equipment, wherein the screenshot comprises a current display interface in a screen of the first electronic equipment, and a second display interface of at least one file is displayed in the current display interface;
the first determining unit is used for determining a target second display interface matched with the first display interface and a target display interface identifier corresponding to the target second display interface in at least one second display interface included in the screenshot according to the target picture and the screenshot;
and the second determining unit is used for determining a storage path of the target file in the first electronic equipment according to the target display interface identifier.
12. The apparatus according to claim 11, wherein the first determining unit specifically includes:
the detection subunit is used for respectively detecting the feature points contained in the screenshot and the target picture according to an image feature detection algorithm;
the first determining subunit is used for determining a target feature point matched with the feature point contained in the target picture from the feature points contained in the screenshot;
the second determining subunit is configured to determine, in the screenshot, an area included in the circumscribed rectangle including the target feature point as the target second display interface, and determine coordinate information of a pixel point included in the target second display interface;
and the third determining subunit is configured to determine, according to a correspondence between pre-stored coordinate information of a pixel and a display interface identifier, and coordinate information of a pixel included in the target second display interface, a target display interface identifier corresponding to the target second display interface.
13. The apparatus according to claim 11, wherein the second determining unit specifically includes:
the fourth determining subunit is configured to determine, according to a correspondence between a pre-stored display interface identifier and process information, target process information corresponding to the target display interface identifier;
and the fifth determining subunit is configured to determine, according to a correspondence between pre-stored process information and a storage path of a file in the first electronic device, a storage path of a target file in the first electronic device, where the target file corresponds to the target process information.
14. The apparatus of claim 9, wherein the determining module comprises:
the extraction submodule is used for extracting a subfile containing the first display interface from the target file according to the first display interface and the target file;
and the second sending submodule is used for sending the subfile to the second electronic equipment.
15. An apparatus for sharing a file, applied to a second electronic device, the apparatus comprising:
the acquisition module is used for acquiring a target picture;
the sending module is used for sending the target picture to first electronic equipment so that the first electronic equipment sends a target file or a subfile to the second electronic equipment according to the target picture under the condition that the target file matched with the target picture exists in the first electronic equipment, wherein the subfile comprises partial content in the target file;
and the second receiving module is used for receiving the target file or the subfile sent by the first electronic equipment.
16. The apparatus of claim 15, wherein the obtaining module comprises:
and the acquisition submodule is used for acquiring the target picture under the condition that the shooting operation of the shooting device in the second electronic equipment is received.
17. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of sharing a file according to any one of claims 1 to 8.
CN202010544462.5A 2020-06-15 File sharing method and electronic equipment Active CN111813741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010544462.5A CN111813741B (en) 2020-06-15 File sharing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010544462.5A CN111813741B (en) 2020-06-15 File sharing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111813741A true CN111813741A (en) 2020-10-23
CN111813741B CN111813741B (en) 2024-07-05

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282546A (en) * 2021-04-12 2021-08-20 维沃移动通信有限公司 File processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475670A (en) * 2013-09-26 2013-12-25 深圳市金立通信设备有限公司 Data transmission method, device and system
CN103685707A (en) * 2012-09-21 2014-03-26 中国移动通信集团公司 File transmission method, system and device
CN108985212A (en) * 2018-07-06 2018-12-11 深圳市科脉技术股份有限公司 Face identification method and device
CN110536479A (en) * 2019-08-28 2019-12-03 维沃移动通信有限公司 Object transmission method and electronic equipment
CN110717879A (en) * 2019-10-16 2020-01-21 北京京东尚科信息技术有限公司 Multi-focus image processing method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685707A (en) * 2012-09-21 2014-03-26 中国移动通信集团公司 File transmission method, system and device
CN103475670A (en) * 2013-09-26 2013-12-25 深圳市金立通信设备有限公司 Data transmission method, device and system
CN108985212A (en) * 2018-07-06 2018-12-11 深圳市科脉技术股份有限公司 Face identification method and device
CN110536479A (en) * 2019-08-28 2019-12-03 维沃移动通信有限公司 Object transmission method and electronic equipment
CN110717879A (en) * 2019-10-16 2020-01-21 北京京东尚科信息技术有限公司 Multi-focus image processing method and device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282546A (en) * 2021-04-12 2021-08-20 维沃移动通信有限公司 File processing method and device

Similar Documents

Publication Publication Date Title
CN111476780B (en) Image detection method and device, electronic equipment and storage medium
CN105867751B (en) Operation information processing method and device
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112422817B (en) Image processing method and device
CN109495638B (en) Information display method and terminal
CN108391253B (en) application program recommendation method and mobile terminal
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN109669710B (en) Note processing method and terminal
CN109166164B (en) Expression picture generation method and terminal
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN112929494B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN112399010B (en) Page display method and device and electronic equipment
CN113721876A (en) Screen projection processing method and related equipment
CN112486387A (en) Application program control method and device
CN107734049B (en) Network resource downloading method and device and mobile terminal
CN115718581A (en) Information display method and device, electronic equipment and storage medium
CN111813741B (en) File sharing method and electronic equipment
CN113364915B (en) Information display method and device and electronic equipment
CN111813741A (en) File sharing method and electronic equipment
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN109492451B (en) Coded image identification method and mobile terminal
CN112084151A (en) File processing method and device and electronic equipment
CN111796736A (en) Application sharing method and device and electronic equipment

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