WO2021244614A1 - 存储内容搜索方法、系统和电子设备 - Google Patents

存储内容搜索方法、系统和电子设备 Download PDF

Info

Publication number
WO2021244614A1
WO2021244614A1 PCT/CN2021/098167 CN2021098167W WO2021244614A1 WO 2021244614 A1 WO2021244614 A1 WO 2021244614A1 CN 2021098167 W CN2021098167 W CN 2021098167W WO 2021244614 A1 WO2021244614 A1 WO 2021244614A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
content
information
search
target
Prior art date
Application number
PCT/CN2021/098167
Other languages
English (en)
French (fr)
Inventor
李树彬
陈磊
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021244614A1 publication Critical patent/WO2021244614A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Definitions

  • This application relates to the field of communications, and in particular to a method, system and electronic device for searching stored content.
  • the storage content in the first electronic device is often mapped to the second electronic device and displayed on the display screen of the second electronic device.
  • a display interface is formed above to present the storage content in the first electronic device, so that the user can view and manage the storage content in the first electronic device through the second electronic device.
  • the first electronic device may be a mobile phone
  • the second electronic device may be a personal computer (PC).
  • the user can browse the stored content of the mobile phone mapped to the PC through the display interface presented on the display screen of the PC, and find the target stored content (such as photos) that they want to find.
  • the target stored content such as photos
  • one way is that the user browses the folders and files mapped from the mobile phone to the PC one by one according to the search purpose to find the target storage content.
  • the present application provides a storage content search method, system and electronic device, which can quickly search for the target storage content that the user wants to search according to user needs, so as to improve the user's sense of experience.
  • embodiments of the present application provide a stored content search method, which includes: establishing a connection between a first electronic device and a second electronic device; and the second electronic device receives first information input by a user, And transfer the first information to the first electronic device; the first electronic device obtains the first information, determines the search condition according to the first information, and searches for the corresponding target storage content in the first electronic device according to the search condition; the first electronic device The target content information of the target storage content is transferred to the second electronic device; the second electronic device receives the target content information.
  • the user can input the first information on the second electronic device side according to the user’s search purpose, and then the second electronic device transmits the first information to the first electronic device, so that the first electronic device can be based on the first electronic device.
  • the information determines the search condition, and the search engine in the first electronic device is used to complete the search of the corresponding storage content in the first electronic device to obtain the target storage content as the search result, and output the target content information of the target storage content to the second electronic device ,
  • the second electronic device can also display the target storage content according to the target content information, so that the user does not need to browse the storage content in the first electronic device one by one through the second electronic device to search for the target storage content.
  • Quickly search for stored content such as files that you are interested in in the first electronic device, which makes searching for stored content more convenient and faster, and improves user experience.
  • the second electronic device receiving the first information input by the user includes that the second electronic device creates new storage content corresponding to the first information; and the second electronic device stores the first information
  • Transferring to the first electronic device includes: the second electronic device transfers the newly added storage content to the first electronic device; the first electronic device acquiring the first information includes: the first electronic device detects the locally stored content to determine the newly added storage content, And determine the first information according to the newly added storage content.
  • the storage content of the first electronic device is transferred to the second electronic device after the first electronic device and the second electronic device are connected; the second electronic device receives the user's transfer to the first electronic device through the second electronic device.
  • the newly added processing of the storage content of the second electronic device forms the newly added storage content, and the second electronic device maps the newly added storage content to the first electronic device; the first electronic device detects the local storage content and can determine the newly added storage content .
  • the user can create new storage content about the search target storage content in the first electronic device through the second electronic device according to the user’s search conditions.
  • the content search condition enables the first electronic device to use the search engine in the first electronic device to complete the search of the corresponding storage content, and output the target content information of the search target storage content to the second electronic device, so that the user does not need to go through the second electronic device.
  • the device browses the stored content in the first electronic device one by one to search for the target storage content, and can quickly find the stored content of interest on the second electronic device side, which makes the search of the stored content more convenient and faster, and improves the user’s Experience.
  • the newly-added storage content is a newly-added folder
  • the first information is the name of the newly-added folder
  • the method further includes that the first electronic device detects the local folder to determine Add a new folder, and determine the search condition according to the name of the new folder; and the first electronic device stores the target content information in the local new folder, and the first electronic device transfers the target content information to the new folder in the second electronic device. Increase the folder.
  • the new storage content is a new folder, that is, the user can create a new new folder in the first electronic device through the second electronic device.
  • the user can set the search purpose or search keywords according to the content they want to search, etc.
  • the name of the new folder The first electronic device determines the search condition according to the name of the newly added folder, searches for the storage content corresponding to the search condition in the first electronic device, and stores the target content information of the searched target storage content in the newly added folder. Under the folder, the first electronic device searches for stored content, and the first electronic device presents the searched target storage content through the aforementioned new folder presented on the display interface of the second electronic device.
  • the method before the first electronic device stores the target content information of the target storage content in the local newly-added folder, the method further includes: detecting whether the newly-added folder exists, and if it exists, setting the target The target content information of the stored content is stored in the newly added folder; if it does not exist, the search ends. Therefore, on the one hand, it can ensure that the target storage content can be accurately stored in the corresponding new folder. On the other hand, if the new folder does not exist, the storage process of the folder can be omitted, which can effectively reduce the first Power consumption of electronic equipment.
  • the newly-added storage content is a newly-added file;
  • the first information is the name of the newly-added file, and the method further includes that the first electronic device detects the local file to determine the newly-added file , And determine the search condition according to the name of the newly added file, and/or the first information is the file content of the newly added file, the method further includes: the first electronic device detects the local file to determine the newly added file, and according to the The content of the file determines the search criteria.
  • the method further includes: if the target storage content exists, the first electronic device directly transmits the target content information of the target storage content to the second electronic device.
  • the method further includes: if the target storage content exists, the first electronic device generates a new folder according to the newly added file, and the first electronic device stores the target content information of the target storage content To create a new folder locally, the first electronic device transmits the target content information of the newly created folder and the target storage content to the second electronic device.
  • the newly-added storage content is a newly-added file, that is, the user can create a new newly-added file in the first electronic device through the second electronic device, and exemplary, the user can set a new file according to the search purpose or search keywords such as the content to be searched. Add the name of the file or set the content of the new file.
  • the first electronic device determines the search condition according to the name of the newly added file or the content of the newly added file, and searches for the target storage content corresponding to the search condition in the first electronic device, and the first electronic device further creates a new file corresponding to the search condition
  • the newly created folder of the searched target storage content is stored in the newly created folder, so as to realize the file search by the first electronic device, and the first electronic device presents the search result through the second electronic device plan.
  • the first electronic device determines the name of the newly created folder according to the search condition.
  • the newly added file is at least one of a picture file, an audio file, a video file, a Word file, and a text format file.
  • the types of newly added files include, but are not limited to, the aforementioned picture files, audio files, video files, Word files, and text format files. They can be the aforementioned picture files, audio files, video files, Word files, and At least one of the text format files can also be of any other type, which can be specifically selected according to needs.
  • the first electronic device detects the locally stored content to determine the newly added stored content when the preset storage content detection enabling condition is met.
  • satisfying a preset storage content detection enabling condition includes: establishing a media transmission protocol communication connection between the first electronic device and the second electronic device.
  • the detection of the locally stored content by the first electronic device includes: the first electronic device detects all the locally stored content, or detects the stored content in the designated user area of the local part.
  • the detection of the locally stored content by the first electronic device further includes: detecting the locally stored content in real time, or detecting the locally stored content according to a preset detection period.
  • the target content information of the target storage content is the target storage content itself, or the created link information for the target storage content.
  • the target storage content is at least one of a picture file, an audio file, a video file, a Word file, and a text format file.
  • target storage content include, but are not limited to, the aforementioned picture files, audio files, video files, Word files, and text format files. It can be the aforementioned picture files, audio files, video files, Word files, and At least one of the text format files can also be of any other type, which can be specifically selected according to needs.
  • the first information includes a search term input by the user into the search box of the stored content search interface of the second electronic device; or voice information input by the user received by the second electronic device.
  • the method further includes: displaying prompt information for reminding the user of the search result on the display interface of the second electronic device.
  • the method further includes: the second electronic device receives a user's trigger operation on the target content information, and displays the target storage content on the display screen of the second electronic device according to the target content information, and Used for user viewing; or the second electronic device directly displays the target storage content on the display screen of the second electronic device according to the target content information for the user to view.
  • the embodiments of the present application provide a stored content search method, which is applied to a first electronic device, and the method includes: establishing a connection between the first electronic device and the second electronic device; and the first electronic device receives the second electronic device
  • the transferred first information determines the search condition according to the first information, and searches the corresponding target storage content in the first electronic device according to the search condition;
  • the first information is the information that the second electronic device receives the user input;
  • the first electronic device The target content information of the target storage content is transferred to the second electronic device, so that the second electronic device can display the target storage content according to the target content information.
  • the obtaining of the first information by the first electronic device includes detecting the locally stored content by the first electronic device to determine the newly-added storage content, and determining the first information based on the newly-added storage content.
  • the newly-added storage content is transferred from the second electronic device to the first electronic device, and the newly-added storage content is formed by the second electronic device receiving the first information input by the user and creating the newly-added storage content corresponding to the first information.
  • the storage content of the first electronic device is transferred to the second electronic device after the connection between the first electronic device and the second electronic device is established; the second electronic device receives the user's transfer from the first electronic device to the second electronic device through the second electronic device.
  • the newly added storage content is processed to form newly added storage content, and the second electronic device maps the newly added storage content to the first electronic device; the first electronic device detects the local storage content and can determine the newly added storage content.
  • the first electronic device uses the newly-added storage content of the search target file created in the first electronic device by the user through the second electronic device, and uses the search engine in the first electronic device to complete the corresponding storage content in the first electronic device Search, and output the target content information of the searched target storage content to the second electronic device, so that the user does not need to browse the storage content in the first electronic device one by one through the second electronic device to search for the target file.
  • the electronic device side quickly finds the stored content of interest, which makes the search of the stored content more convenient and faster, and improves the user experience.
  • the newly added storage content is a newly-added folder
  • the first information is the name of the newly-added folder
  • the method further includes detecting the local folder to determine the newly-added folder , Determine the search condition according to the name of the newly added folder; and store the target content information of the target storage content in the local newly-added folder, and transfer the target content information of the target storage content to the newly-added folder in the second electronic device.
  • the newly-added storage content is a newly-added folder, that is, the user can create a newly-added folder in the first electronic device through the second electronic device, and, for example, the user can search for the purpose or keywords according to the content that they want to search, etc.
  • the first electronic device determines the search condition according to the name of the newly added folder, searches for the storage content corresponding to the search condition in the first electronic device, and stores the target content information of the searched target storage content in the newly added folder. Under the folder, the first electronic device searches for stored content, and the first electronic device presents the searched target storage content through the aforementioned new folder presented on the display interface of the second electronic device.
  • the target content information of the target storage content in the local newly-added folder before storing the target content information of the target storage content in the local newly-added folder, it further includes: detecting whether the newly-added folder exists, and if it exists, setting the target of the target storage content The content information is stored in the newly added folder; if it does not exist, the search ends. Therefore, on the one hand, it can ensure that the target storage content can be accurately stored in the corresponding new folder. On the other hand, if the new folder does not exist, the storage process of the folder can be omitted, which can effectively reduce the first Power consumption of electronic equipment.
  • the newly-added storage content is a newly-added file
  • the first information is the name of the newly-added file
  • the method further includes detecting the local file to determine the newly-added file, and according to The name of the newly added file determines the search condition, and/or the first information is the file content of the newly added file.
  • the method further includes: the first electronic device detects the local file to determine the newly added file, and the determination is made according to the file content of the newly added file search condition.
  • the method further includes: if the target storage content exists, the first electronic device directly transmits the target content information of the target storage content to the second electronic device.
  • the method further includes: the first electronic device generates a new folder according to the newly added file, stores the target content information of the target storage content in the new folder, and stores the new folder and The target content information of the target storage content is transferred to the second electronic device.
  • the newly-added storage content is a newly-added file, that is, the user can create a new newly-added file in the first electronic device through the second electronic device, and exemplary, the user can set a new file according to the search purpose or search keywords such as the content to be searched. Add the name of the file or set the content of the new file.
  • the first electronic device determines the search condition according to the name of the newly added file or the content of the newly added file, and searches for the target storage content corresponding to the search condition in the first electronic device, and the first electronic device further creates a new file corresponding to the search condition Create a new folder for the searched target storage content and store the target content information of the searched target storage content in the newly created folder, so as to realize the storage content search by the first electronic device, and the first electronic device presents the search results through the second electronic device Plan.
  • the name of the newly created folder is determined according to the search condition.
  • the newly added file is at least one of a picture file, an audio file, a video file, a Word file, and a text format file.
  • the types of newly added files include, but are not limited to, the aforementioned picture files, audio files, video files, Word files, and text format files. They can be the aforementioned picture files, audio files, video files, Word files, and At least one of the text format files can also be of any other type, which can be specifically selected according to needs.
  • the local storage content is detected to determine the newly added storage content.
  • satisfying a preset storage content detection enablement condition includes: establishing a media transmission protocol communication connection between the first electronic device and the second electronic device.
  • detecting locally stored content includes: detecting all locally stored content, or detecting locally stored content in a designated user area.
  • detecting the locally stored content further includes: detecting the locally stored content in real time, or detecting the locally stored content according to a preset detection period.
  • the target content information of the target storage content is the target storage content itself, or the created file link information for the target storage content.
  • the target storage content is at least one of a picture file, an audio file, a video file, a Word file, and a text format file.
  • target storage content include, but are not limited to, the aforementioned picture files, audio files, video files, Word files, and text format files. It can be the aforementioned picture files, audio files, video files, Word files, and At least one of the text format files can also be of any other type, which can be specifically selected according to needs.
  • the stored content search method provided in this application is a stored content search method on the first electronic device side corresponding to the stored content search method provided in the first aspect and/or any one of the possible implementations of the first aspect.
  • the beneficial effects (or advantages) of the stored content search method provided in the first aspect can also be achieved.
  • the embodiments of the present application also provide a stored content search method, which is applied to a second electronic device, and the method includes: establishing a connection between the second electronic device and the first electronic device; and the second electronic device receives user input The first information, and the first information is transferred to the first electronic device, so that the first electronic device determines the search condition according to the first information, and searches the corresponding target storage content in the first electronic device according to the search condition; the second electronic device The device receives target content information of the target storage content delivered by the first electronic device.
  • the method further includes: displaying prompt information for reminding the user of the search result on the display interface of the second electronic device.
  • the method further includes: the second electronic device receives a user's triggering operation on the target content information, and displays the target storage content on the display screen of the second electronic device according to the target content information, and Used for user viewing; or the second electronic device directly displays the target storage content on the display screen of the second electronic device according to the target content information for the user to view.
  • the stored content search method provided in the present application is a stored content search method on the second electronic device side corresponding to the stored content search method provided in the first aspect and/or any one of the possible implementations of the first aspect. Therefore, The beneficial effects (or advantages) of the stored content search method provided in the first aspect can also be achieved.
  • embodiments of the present application provide a stored content search system, including: a first electronic device and a second electronic device connected to each other, wherein the second electronic device is used to receive the first information input by the user, and Transfer the first information to the first electronic device; the first electronic device is used to obtain the first information, determine the search condition according to the first information, and search for the corresponding target storage content in the first electronic device according to the search condition; The device is also used to transmit the target content information of the target storage content to the second electronic device; the second electronic device is also used to receive the target content information.
  • the stored content search system provided in this application includes a first electronic device and a second electronic device for executing the stored content search method provided in the first aspect and/or any one of the possible implementations of the first aspect. Therefore, The beneficial effects (or advantages) of the stored content search method provided in the first aspect can also be achieved.
  • the embodiments of the present application provide an electronic device, including: a memory for storing a computer program, the computer program including program instructions; a processor, for executing the program instructions, so that the electronic device executes the aforementioned storage Content search method.
  • the embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions are executed by the computer to make the computer execute the aforementioned storage content Search method.
  • Fig. 1A is a schematic diagram showing a connection between a mobile phone and a PC according to some embodiments of the present application
  • Fig. 1B is a schematic structural diagram of a mobile phone according to some embodiments of the present application.
  • FIG. 1C is a schematic diagram showing the structure of a PC according to some embodiments of the present application.
  • 1D-1F are schematic diagrams showing some display interfaces of the PC when the mobile phone is connected to the PC according to some embodiments of the present application;
  • Figure 2 is a flowchart of a photo search process according to some embodiments of the present application.
  • 3A-3E are schematic diagrams showing the display interfaces of some PCs according to some embodiments of the present application.
  • FIG. 4 is a flowchart of another photo search process according to some embodiments of the present application.
  • Fig. 5 is a flowchart showing another photo search process according to some embodiments of the present application.
  • 6A-6C are schematic diagrams showing display interfaces of some PCs according to some embodiments of the present application.
  • FIG. 7A and 7B are schematic diagrams showing the display interfaces of some PCs according to some embodiments of the present application.
  • the first electronic device may be an electronic device such as a mobile phone or a smart watch
  • the second electronic device may be an electronic device such as a PC, a TV, or a notebook computer.
  • the storage content can be folders, files, etc.
  • the files can be image files, audio files, video files, Word files, and text format files.
  • the first electronic device may be a mobile phone 10
  • the second electronic device may be a PC 20
  • the mobile phone 10 and the PC 20 are connected through a Universal Serial Bus (USB) connection line 30 Establish a connection with a USB connection.
  • USB Universal Serial Bus
  • connection established between the mobile phone 10 and the PC 20 may also be established through other wireless communication methods such as Bluetooth, WIFI, or other communication methods.
  • FIG. 1B shows a schematic structural diagram of the mobile phone 10.
  • the mobile phone 10 may include a processor 110, an external memory interface 120, an internal memory 121, a USB connector 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, Audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card Interface 195 and so on.
  • the sensor module 180 may include sensors such as pressure sensors and touch sensors.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 10.
  • the mobile phone 10 may include more or fewer components than those shown in the figure, or combine certain components, or disassemble certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the processor can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the USB connector 130 is a connector that complies with the USB standard and can be used to connect the mobile phone 10 and peripheral devices, and specifically can be a standard USB connector (such as a Type C connector), a Mini USB connector, a Micro USB connector, and the like.
  • the USB connector 130 can be used to connect a charger to charge the mobile phone 10, and can also be used to transfer data between the mobile phone 10 and peripheral devices.
  • the connector can also be used to connect other electronic devices, such as PCs.
  • the processor 110 may support USB, and the standard specifications of the USB may be USB1.x, USB2.0, USB3.x, and USB4.
  • the wireless communication function of the mobile phone 10 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied on the mobile phone 10.
  • the wireless communication module 160 can provide applications on the mobile phone 10 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (Global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the mobile phone 10 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the mobile phone 10 may include one or N display screens 194, and N is a positive integer greater than one.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the mobile phone 10 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • FIG. 1C shows a schematic diagram of a structure of the PC 20.
  • the PC 20 may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a communication module 250, an audio module 260, a headset interface 2601, a microphone 2602, a display screen 270, and a keyboard 280 and so on.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the PC 20.
  • the PC 20 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the mobile phone 10 and the PC 20 can communicate through the Media Transfer Protocol (MTP), and the mobile phone 10 can directly map the user partition of the entire mobile phone 10 to one of the PC 20 based on MTP.
  • MTP Media Transfer Protocol
  • Device, and a display interface (operation window) 100 as shown in FIG. 1A is formed on the display screen (desktop) 21 of the PC 20.
  • the display interface 100 may include some operation identifiers for the user to select operations on the mobile phone 10, so that the PC 20 can realize automatic playback of corresponding functions according to the user's operations.
  • the display interface 100 may include the "open device and view file” logo 101. If the user wants to view the stored content in the mobile phone 10, he can click the "open device and view file” logo 101 to open the stored content mapped from the mobile phone 10 to the PC 20 .
  • the display interface 100 can also include, but is not limited to, the brand information of the mobile phone 10 (for example, Huawei), and “Always execute this option for this device”, “Sync digital media to this device”, and “View updates in the “Control Panel”. Multiple “autoplay” options” and other operation logos.
  • the display interface 100 may also include other information or operation identifiers such as the model of the mobile phone 20 (for example, Huawei P40), which can be set as required.
  • the model of the mobile phone 20 for example, Huawei P40
  • the display screen 21 of the PC 20 can display a display interface 200 as shown in FIG. 1D, and the display interface 200 includes the "internal storage" logo of the mobile phone 10. 201.
  • the display interface 200 may also include a search box 202, and the search box 202 is used for the user to input a search term.
  • the display screen 21 of the PC 20 can display a display interface 300 as shown in FIG. Display interface for storing content such as files.
  • the folders may include the "Camera” folder 301 and other folders such as "baidu" and "Music".
  • the user can view and manage the storage content in the mobile phone 10 through the display interface 300. For example, the user can click the "Camera” folder 301 to open the "Camera” folder 301, and multiple photos can be stored in the "Camera” folder 301. Multiple other folders and other content can be stored. After opening the "Camera” folder 301, the user can view the photos and other content stored in the "Camera” folder 301.
  • the display screen 21 of the PC 20 can display a display interface 400 as shown in FIG. 1F, and the display interface 400 includes multiple sheets stored in the "Camera” folder 301
  • the photo information 402 may include information such as the shooting date (such as 20200501), the photo file type (JPG), and the like.
  • the display interface 400 also includes an object number display frame 410, which is used to display the number information of the objects stored in the "Camera" folder 301.
  • the "Camera" folder 301 includes 366 objects, that is, It can include 366 photos.
  • the user can click and view the photos in the "Camera” folder 301.
  • the user can also add, delete, and modify the file name of the photos in the "Camera” folder 301.
  • the PC 20 can also map the process to the mobile phone 10, so as to achieve the purpose of operating the stored content in the mobile phone 10.
  • the user can first find the "Camera” folder 301 by browsing the folders on the display interface 300 shown in FIG. 1E, and then open In the "Camera” folder 301, browse all the photos in the "Camera” folder 301 one by one in the "Camera” folder 301 shown in FIG. 1F to find the target photo that the user wants to find.
  • the storage capacity of photos in the current mobile phone 10 is usually large.
  • the user needs to browse a large amount of photos through the current photo search method, which makes the user search more efficient. Low, and it is very troublesome to browse and search for photos on the PC20 side, which affects the user experience.
  • the PC20 currently supports searching for files and folders based on file name keywords. Therefore, the user can also enter the file name keywords corresponding to the photos they want to find in the search box 202 shown in FIG.
  • the word uses the PC20's own search function to search the stored content of the mobile phone 10 mapped to the PC20 to find the corresponding photos.
  • This search method is limited by the PC20 search engine and the restriction of the search authority.
  • the PC20 can only search based on the file name keywords Searching cannot be performed by recognizing file content such as photo content like a smart phone. There are problems of incomplete search and inaccurate search results. The user experience is not consistent with the user's search experience using the mobile phone 10.
  • the user partitions of the mobile phone 10 are usually mapped one by one, which usually takes a certain amount of time.
  • the user usually needs to wait for a period of time, and then it is convenient to search after the mobile phone 10 completes the storage content mapping. For example, it is usually necessary to map all the photos stored in the "Camera" folder 301 and the "Camera" folder 301 before the user can browse one by one or use the search engine of the PC20 to search for the target photos that they want to search.
  • the search method will affect the user’s search efficiency and the user’s experience.
  • the present application provides a method for searching the stored content in the mobile phone 10 when the user searches for the stored content in the mobile phone 10 on the PC 20 side.
  • the stored content search method provided by this application, the user can input stored content search conditions on the PC 20 side, and the mobile phone 10 obtains the stored content search conditions, and the mobile phone 10 uses the mobile phone 10’s own search engine (functions) according to the stored content search conditions. )
  • the searched target storage content is delivered to the PC 20, and the PC 20 presents it to the user, which can improve the search efficiency of the storage content, improve the user experience, and unify the user experience of the mobile phone 10 and the PC 20 .
  • the user can map the mobile phone 10 on the PC 20 side to the PC 20 according to the user’s search criteria. Create a new folder in the stored content (for example, the “Camera” folder 301), and name the new folder according to the search criteria; then, the PC 20 maps (synchronizes or sends) the new folder to the mobile phone 10.
  • the mobile phone 10 will start a monitoring service for the folders in the mobile phone 10 to monitor whether there are new folders in the mobile phone 10. If the mobile phone 10 detects that there is a new folder in the mobile phone 10, the mobile phone 10 can determine the search condition according to the name of the new folder, and use the search engine of the mobile phone 10 to complete the search of the corresponding storage content according to the search condition, and the search will be The target storage content of is stored in the newly added folder in the mobile phone 10, and the mobile phone 10 also maps the searched target storage content to the newly added folder on the PC 20 side.
  • the user opens the new folder on the PC20 side, and the PC20 can present the target storage content to the user, that is, the user can view the search target storage content on the PC20 side, so that the user can easily realize the mobile phone when searching the stored content in the mobile phone 10 on the PC20 side
  • the search of stored content in 10 improves search efficiency and user experience, and unifies the user experience of mobile phone 10 and PC 20.
  • Figure 2 shows a process of searching for photos in the mobile phone 10 on the PC 20 side based on the stored content search method provided by the present application, including:
  • the mobile phone 10 establishes a USB connection with the PC 20.
  • the user can connect the mobile phone 10 and the PC 20 through the USB connection line 130, so that the mobile phone 10 and the PC 20 establish a USB connection.
  • the mobile phone 10 starts the folder monitoring service of the mobile phone 10 according to the detected USB connection event.
  • the mobile phone 10 detects whether the mobile phone 10 has established a USB connection with the PC 20. If it is detected that the connection has been established, the mobile phone 10 starts the folder monitoring service of the mobile phone 10 and monitors the designated folder in the mobile phone 10 to realize the designated folder Monitoring of changes such as addition and deletion of the next level of folders.
  • the mobile phone 10 detects whether the mobile phone 10 has established a USB connection with the PC 20.
  • the mobile phone 10 can detect the connection status of the USB interface 130 of the mobile phone 10 through the USB interface management module in the mobile phone 10. When it is detected that the USB interface 130 is in a connected state At this time, it is considered that the mobile phone 10 and the PC 20 have established a USB connection.
  • the mobile phone 10 monitors the designated folder in the mobile phone 10.
  • the mobile phone 10 monitors the designated folder in the mobile phone 10 to detect whether a new folder is generated in the designated folder.
  • the designated folder can be all folders in the mobile phone 10, or part of the folders, for example, the aforementioned "Camera" folder 301, which can be selected as required.
  • the mobile phone 10 monitors the local designated folder.
  • the mobile phone 10 monitors the local designated folder in real time after the USB connection is established between the mobile phone 10 and the PC 20, or it can monitor according to a preset monitoring cycle, which can be 1 ⁇ 30s, for example, can be 1s, 3s, 5s, 20s, 30s, etc., which can be specifically set as required.
  • the user can create a new file in the storage content of the PC 20 mapped from the mobile phone 10 to the PC 20 through the display interface 400 presented on the display screen 21 of the PC 20 as shown in FIG. 1F according to the user's search conditions.
  • a folder is added, and the PC 20 maps the created new folder to the mobile phone 10.
  • the user can open the display interface 400 shown in Figure 1F as described above, and then the user can create a new one under the "Camera" folder 301 according to the search criteria, such as
  • the new folder 420 named "Small A" shown in FIG. 3A is synchronized to the mobile phone 10 by the PC 20.
  • the mobile phone 10 enables the monitoring service of the local designated folder, and can monitor the mobile phone 10. Add a new folder 420.
  • S120 and S130 can also be performed as a step, that is, the mobile phone 10 starts the folder monitoring service of the mobile phone 10 to monitor the designated folder in the mobile phone 10 according to the detected USB connection event.
  • step S140 The mobile phone 10 judges whether a new folder appears in the designated folder in the mobile phone 10. If yes, perform step S150; if not, continue to perform step S130.
  • the mobile phone 10 determines whether a new folder appears in the specified folder in the mobile phone 10. It can compare the name of the folder currently obtained with the name of the folder obtained in the previous acquisition stage to determine whether there is a new folder currently folder.
  • the mobile phone 10 determines search conditions according to the name of the newly added folder, and performs a photo search according to the search conditions.
  • the mobile phone 10 detects the newly added folder 420 named "Small A”, it obtains the name “Small A” of the newly added folder 420, and uses "Small A” as the photo search condition.
  • the mobile phone 10 is usually provided with a search engine to support the search function of the mobile phone 10.
  • the search engine may be an ordinary search engine or an intelligent search engine that is currently configured in the mobile phone 10, and the mobile phone 10 searches the corresponding stored content through the search engine.
  • the search engine can also be a new search engine that is different from the current existing search engine to complete the search function, and it can be specifically set as required, which is not specifically limited in this application.
  • the mobile phone 10 uses its own search engine to search for photos containing "small A", which may be: the mobile phone 10 uses the photo analysis function of the mobile phone 10 to analyze the photos in the mobile phone 10 and recognize the faces in the photos to determine whether the photos include Picture of "Little A".
  • the photo analysis function can be the current common photo analysis function or other photo analysis functions, which is not specifically limited in this application.
  • the mobile phone 10 uses its own search engine to search for photos containing "Small A". It can also be: the mobile phone 10 obtains photos containing "Small A” according to the grouping (classification) of the photos already in the mobile phone 10. For example, if the mobile phone 10 itself has been The photos in 10 are grouped according to the types of people, scenery, etc., and the group name (person name) and corresponding photos are displayed in groups in the mobile phone 10. Then the mobile phone 10 can use the existing grouping to obtain the group corresponding to "Small A" Photo.
  • the mobile phone 10 can also use the file name search function of the mobile phone 10 to search for photos that include "Small A" in the photo file name.
  • step S170 If there is a search target photo, that is, there is a photo containing "Small A" corresponding to the search condition, step S170 is executed; if it does not exist, step S130 is executed.
  • step S180 is executed. If the newly added folder 420 does not exist, step S130 is executed.
  • the mobile phone 10 stores the searched target photos in the newly added folder 420.
  • the mobile phone 10 may obtain (copy) the target photos from the original storage location of the target photos, and store the target photos in the new folder. Add folder 420.
  • the mobile phone 10 maps the target photos to the newly added folder 420 in the PC 20.
  • a prompt box 430 may be displayed on the display interface 400, and the prompt box 430 may display information for reminding the user that the search has been completed , Such as "search has been completed", can also display information used to inform the user of the search results, such as "searched for 20 objects". Of course, it can display other prompt information, which can be set as required.
  • the PC 20 can display the display interface 500 as shown in FIG. 3C, that is, display the searched target photos for the user to view, where From the object number display frame 410, it can be known that there are 20 target photos searched. In addition, if the target photo is not found, no photo is displayed on the display interface 500, and the object number display frame 410 displays "0 objects".
  • the mobile phone 10 stores the searched target photos in the newly added folder 420, or the mobile phone 10 creates a symbolic link (such as a shortcut) for the target photo as the target content information, and stores the symbolic link in the newly added folder 420 middle.
  • the symbolic link can be a soft link or a hard link, or other types of symbolic links. Storing the target photos by means of symbolic links such as shortcuts can reduce photo copy operations to increase processing speed, and can avoid occupying more memory resources of the mobile phone 10.
  • the PC 20 If the PC 20 detects that the user clicks on the opening operation of the newly added folder 420 on the display interface 400 of the PC 20, it can display the display interface 500 as shown in FIG. 3D, that is, display the shortcut of the retrieved target photo for use User view.
  • the PC 20 can also directly display the display interface shown in Figure 3C or 3D after the display interface 400 shown in Figure 3A, that is, after the search is over, the mobile phone 10 automatically opens the newly added file
  • the folder 420 directly presents the searched target photos to the user without requiring the user to click the newly added folder 420 to open the newly added folder 420 for viewing.
  • step S160 after the mobile phone 10 completes the search, if there is no search target photo, that is, there is no photo containing "small A" corresponding to the search condition, the PC 20 can also display it on the display interface 400 As shown in the prompt box 440 shown in FIG. 3E, the prompt box 440 can display information used to inform the user of the search result, for example, display "No target photo was searched", of course, it can also display information such as "0 objects searched”. Set as needed.
  • step S170 if the newly added folder 420 does not exist, the mobile phone 10 can transfer the search target photo to the PC 20, and the PC 20 directly displays the target photo on the display interface. In addition, the mobile phone 10 can also directly end the search. After the search is completed, the PC 20 can display a prompt box to display information such as "search end".
  • the mobile phone 10 can directly execute S170 to determine whether the newly added folder exists, and if so, execute S181.
  • the mobile phone 10 stores the searched target photo in the newly added folder 420.
  • the mobile phone 10 can notify the PC 20 that the target photo does not exist, and the PC 20 generates prompt information about the corresponding target photo not being searched, and displays it on the display interface 400 to remind the user that the target photo is not searched.
  • the prompt information can be displayed in a prompt box 440 as shown in FIG. 3E to display "the target photo is not searched", of course, it can also display other prompt content such as "the search target photo that meets the criteria is 0", which can be based on Need to set specific prompt information.
  • the mobile phone 10 stores the searched target photos in the newly added folder 420, so that the user can access the newly added folder 420 multiple times to view the target photos, and the mobile phone 10 does not need to search every time.
  • the system resources of the mobile phone 10 can be effectively saved.
  • the mobile phone 10 can also automatically delete the newly added folder 420 and the target photos stored in the newly added folder 420 within a preset time after the search is completed, so as to avoid occupying the memory of the mobile phone 10.
  • the preset time can be 0.5 hour, 12 hours, 24 hours, one week, one month, etc., which can be set as required.
  • the mobile phone 10 deletes the newly-added folder 420 and the target photos stored in the newly-added folder 420, which can be firstly deleted from the original storage location, and then the deleted newly-added folder 420 and the destination stored in the newly-added folder 420 are deleted.
  • the photos are temporarily stored in the cache area, and after being cached for a period of time (for example, 12 hours, 1 day, etc.), they are then completely deleted from the mobile phone 10.
  • the mobile phone 10 can also restore the deleted newly added folder 420 and the target photos stored in the newly added folder 420 to the original storage location according to user operations.
  • the user when searching for photos, the user can create a new folder about the search target photos in the mobile phone 10 through the PC 20 according to the user's search conditions, that is, the user can be considered to be input on the PC 20 side
  • the photo search condition allows the mobile phone 10 to use the search engine in the mobile phone 10 to complete the search of the corresponding photo file according to the search condition, and output the search target photo to the PC 20 for the user to view on the PC 20 side, so that the user does not need to browse the mobile phone one by one.
  • search for the target photos in the photos in 10 you can quickly find the photos you are interested in on the PC20 side, which makes the search of photos more convenient and faster, and improves the user experience.
  • the aforementioned newly added folder may be based on the original folder and another folder is added, and the mobile phone 10 may consider the newly added folder as a newly added folder. It can also be to modify the name of one of the folders in the original folder, so that the modified folder has a name that is different from other folders. Therefore, the mobile phone 10 considers the modified folder to be a newly-added folder. folder.
  • the user can create a new file in the storage content of the PC 20 mapped from the mobile phone 10 on the PC 20 side, and the user can search according to the search purpose or search key such as the content to be searched.
  • the search purpose or search key such as the content to be searched.
  • the PC 20 maps the new file to the mobile phone 10.
  • the mobile phone 10 determines the search condition according to the name of the new file or the content of the new file, and uses the search function of the mobile phone 10 to search for the file corresponding to the search condition in the mobile phone 10.
  • the mobile phone 10 further creates a new folder corresponding to the search conditions, stores the searched files in the newly created folder, so that the mobile phone 10 can search for files, and the mobile phone 10 maps the search results to the PC 20 so that the user can View the result file on the PC side.
  • Fig. 5 shows another storage search method based on the present application.
  • the process of searching for photos in the mobile phone 10 on the PC 20 side includes:
  • the mobile phone 10 establishes a USB connection with the PC 20.
  • the mobile phone 10 detects a connection event, and the mobile phone 10 starts a file monitoring service of the mobile phone 10 according to the detected USB connection event.
  • S131 The mobile phone 10 monitors the files in the designated folder.
  • the mobile phone 10 After the mobile phone 10 turns on the file monitoring service, it can detect whether the files in the designated folder have changed in real time or regularly to detect whether new files are generated, and of course, it can also detect whether any files have been deleted, etc.
  • the mobile phone 10 can monitor files in a designated user partition of the mobile phone 10.
  • the mobile phone 10 can also monitor a certain type of files in the mobile phone 10, such as monitoring picture files or TXT files. All of them can be specifically set according to needs.
  • step S141 The mobile phone 10 judges whether a newly added file appears. If yes, perform step S151; if not, continue to perform step S131.
  • the mobile phone 10 compares the currently acquired file with the file acquired in the previous acquisition stage to determine whether there is a newly-added file in the currently acquired file. For example, the mobile phone 10 compares the name of the file currently detected with the file name of the file detected in the previous detection period to determine whether there is a file deletion or creation.
  • the mobile phone 10 determines a search condition according to the name of the newly added file, and performs a file search according to the search condition.
  • the mobile phone 10 detects the aforementioned new file 450 named "Small A”
  • the mobile phone 10 obtains the name "Small A” of the new file 450, which will cause the mobile phone 10 to determine the name "Small A” of the new file 450 Is a search condition, and search for a target photo that meets the search condition in the "Camera” folder 301.
  • the mobile phone 10 determines whether there is a target photo, if it does, execute step S171, and if it does not exist, execute step S131.
  • the mobile phone 10 creates a new folder as a target file storage folder.
  • the mobile phone 10 creates a new folder according to the aforementioned search criteria. For example, a new folder named “Small A” can be created under the aforementioned "Camera” folder 301. After the mobile phone 10 creates the new folder, it maps the new folder to The PC 20 displays the newly created folder 460 named "Small A" as shown in FIG. 6B on the display interface 400 of the PC 20.
  • S182 The mobile phone 10 stores the target file in the newly created folder.
  • the mobile phone 10 stores the searched target photos in the newly created folder 460. Specifically, the searched target photos corresponding to the search conditions are stored in the newly created folder 460, or a symbolic link is created for the target photos. The symbolic link is stored in the newly created folder 460.
  • the mobile phone 10 After the mobile phone 10 stores the searched target photos in the newly created folder 460 in the mobile phone 10, when the user clicks the newly created folder 460 on the display interface of the PC 20, the target photos can be seen. It should be noted that the mobile phone 10 maps the newly created folder 460 to the PC 20. After obtaining the target photo, the newly created folder 460 is mapped to the PC 20 together with the target photo, or it can be created in the mobile phone 10. After the folder 460, the newly created folder 460 is directly mapped to the PC 20, and then the target photo is mapped to the newly created folder 460, which can be specifically set as required.
  • step S182 is executed after step S171. If the target file is not obtained, the file search can be ended without creating a new folder after the file search is performed. In addition, the PC 20 is caused to display prompt messages such as "search has ended” and "target photo not found” on the display interface 400.
  • step S161 if there is a target photo, the mobile phone 10 can also directly transfer the target photo to the PC 20, and display the target photo on the desktop of the PC 20 without creating a new folder.
  • the user can create a file about the search purpose in the mobile phone 10 through the PC 20 according to the user's search conditions, so that the mobile phone 10 can use the search engine in the mobile phone 10 to complete the search of the corresponding photo file, and output Search target files to PC 20 for users to view, so that users do not need to browse the photos in mobile phone 10 one by one to search for the target photos, they can quickly find photos of interest on the PC 20 side, which makes the search of photos more convenient and faster.
  • the user's experience of using the PC 20 for photo searching can be consistent with the experience of using the mobile phone 10 for photo searching, which improves the user's experience.
  • the new file created by the user can be a new TXT file named "Small A” created under the "Camera” folder 301 of the mobile phone 10 through the display interface 400 as described above, or it can be as shown in Figure 6C.
  • a TXT file 451 named "New Text Document” is created, and then the user clicks to open the "New Text Document” file 451, and enters the content shown in Figure 6C in the "New Text Document” file 451 "Small A", so that the mobile phone 10 determines the search condition based on the content "Small A" in the "new text document” file 451.
  • the user can also create a new photo file under the "Camera” folder 301. For example, if a single person photo of "Little A" is placed in the "Camera” folder 301, the mobile phone 10 detects the newly added photo. Later, the facial feature information of the person in the photo file can be extracted, and then photos with the same facial feature information can be searched according to the facial feature information to obtain the target photo.
  • the newly added file may also be an audio file.
  • the mobile phone 10 extracts the audio data in the audio file to determine the search conditions. For example, by performing voice recognition on the audio data to confirm that the sound in the audio data comes from the small A, the search includes small A. Or by analyzing the content in the audio data to determine that the audio data contains the content "Find photos that include small A", then search for photos that include small A.
  • the newly added file may also be a video file.
  • the mobile phone 10 extracts video data to determine the search condition. For example, if the video is used to confirm that the shooting scene of the video is a wedding, then the wedding-related photos are searched.
  • the file can be any type of file.
  • the mobile phone 10 can determine the search condition according to the file name, or can determine the search condition according to the substance of the file, which can be specifically set according to needs.
  • the mobile phone 10 can search for the photos taken on May 4, 2020 The photos of the day are stored in the newly added folder.
  • the user can enter a search term in the search box 202 of the PC 20 as shown in FIGS. 1D-1F according to the search condition (purpose), and the PC 20 sends the search term to the mobile phone.
  • the mobile phone 10 determines the search condition according to the search term, and uses the search function of the mobile phone 10 to search for the stored content corresponding to the search condition in the mobile phone 10, and the mobile phone 10 further sends the search result to the PC 20, so that the user can Side view the target storage content.
  • the user can enter the search word "Small A” in the input box 202 shown in FIG. 1F, and the display interface is shown in FIG. 7A after the input.
  • the search term "Small A” is sent to the mobile phone 10, and the mobile phone 10 obtains the search term "Small A", and uses the mobile phone 10's own search engine to search for photos that include "Small A”.
  • the shortcut of the obtained target photo is sent to the PC 20, and the PC 20 forms a display frame 470 as shown in FIG. 7B on the display interface 400 according to the received shortcut of the target photo, and the target photo is directly displayed in the display frame 470.
  • the mobile phone 10 may also send the searched target photo to the PC 20, and the PC 20 directly displays the target photo on the display interface 400 according to the received target photo.
  • the display frame 470 may also be located in another area on the display screen 21 other than the display interface 400, which may be selected as required.
  • the display frame 470 may not be displayed, and the target photo may be directly displayed on the display screen 21 in a tiled or stacked manner.
  • the PC 20 sends the search term to the mobile phone 10, so that the mobile phone 10 uses the mobile phone 10’s own search engine to search according to the search term.
  • the current mobile phone 10 is usually a smart phone, which can realize searching by intelligently identifying stored content such as photo content, which can make the search results more accurate and allow users to use
  • the PC 20 and the mobile phone 10 have a more unified experience of searching for stored content.
  • the PC20 may also have a voice receiving function (for example, the microphone 2602 receives the user's voice input), then the PC20 may receive the user's voice input and send the voice information input by the user to In the mobile phone 10, the mobile phone 10 parses the voice analysis to determine the search conditions for searching.
  • a voice receiving function for example, the microphone 2602 receives the user's voice input
  • the storage content search method provided in this application can be applied to the aforementioned mobile phone 10 and PC 20, and can also be applied to any first electronic device and second electronic device connected in communication, where the second electronic device can obtain the first information input by the user , And transfer the first information to the first electronic device, so that the first electronic device uses its own search engine to complete the search of the storage content in the first electronic device, and displays the target storage content on the display screen of the second electronic device For viewing through the second electronic device, the purpose of searching and viewing the stored content in the first electronic device through the second electronic device can be conveniently realized.
  • Each embodiment of the mechanism disclosed in this application can be implemented in software, hardware, firmware, or a combination of these implementation methods.
  • the embodiments of the present application can be implemented as a computer program or program code executed on a programmable system.
  • the programmable program includes at least one processor, memory (or storage system, including volatile and non-volatile memory and/or Storage unit).
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any other combination.
  • the disclosed embodiments can be implemented as one or more temporary or non-transitory instructions carried or stored on a storage medium readable (for example, computer readable), which can be read by one or more processors And execution.
  • the instructions are distributed via a network or a barometric computer readable medium.
  • a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (for example, a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic Optical disk, read only memory (ROM), random access memory (RAM), erasable programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), magnetic or optical card, flash card, Or a tangible machine-readable memory that uses the Internet to transmit information (for example, carrier waves, infrared signal numbers, etc.) with electric, optical, acoustic, or other forms of propagating signals. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a machine-readable form.

Landscapes

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

Abstract

一种存储内容搜索方法、系统、和电子设备,该方法包括:第一电子设备和第二电子设备建立连接;第二电子设备接收用户输入的第一信息,并将第一信息传递至第一电子设备;第一电子设备获取第一信息,根据第一信息确定搜索条件,并根据搜索条件在第一电子设备中搜索对应的目标存储内容,且第一电子设备将目标存储内容的目标内容信息传递至第二电子设备;第二电子设备接收目标内容信息,以用于第二电子设备可以根据目标内容信息显示目标存储内容。从而可以方便、快捷地实现用户通过第二电子设备对第一电子设备中的存储内容的搜索和查看,提高了用户体验。

Description

存储内容搜索方法、系统和电子设备
本申请要求于2020年06月05日提交中国专利局、申请号为202010504859.1、申请名称为“存储内容搜索方法、系统和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,特别涉及一种存储内容搜索方法、系统和电子设备。
背景技术
在电子设备的使用过程中,对于彼此通信连接的第一电子设备和第二电子设备,经常会将第一电子设备中的存储内容映射至第二电子设备,并在第二电子设备的显示屏幕上形成显示界面呈现该第一电子设备中的存储内容,以便于用户通过第二电子设备查看及管理第一电子设备中的存储内容。
例如第一电子设备可以是手机,第二电子设备可以是个人电脑(Personal Computer,PC)。手机与PC连接后,用户可以通过PC的显示屏幕上呈现的显示界面浏览手机映射至PC的存储内容,以及查找想要查找的目标存储内容(例如照片)。当前用户在PC侧查找手机中的目标存储内容的方式中,一种方式是用户根据查找目的逐一浏览手机映射至PC的文件夹及文件等各存储内容去查找目标存储内容,当文件夹及文件等存储内容数量较大时,用户需要浏览的存储内容的量较大,使得用户的搜索效率较低,并且在PC侧浏览和查找手机映射至PC的存储内容非常麻烦,影响用户的体验。另一种方式是用户利用PC的搜索引擎(功能)查找手机映射至PC的存储内容以查找目标存储内容,这种搜索方式受限于PC的搜索引擎,存在搜索不完整以及搜索结果不准确的问题,亦影响用户的体验。
发明内容
本申请提供了一种存储内容搜索方法、系统和电子设备,可以根据用户需求快捷地搜索到用户想要搜索的目标存储内容,以提高用户的体验感。
为解决上述技术问题,第一方面,本申请的实施方式提供了一种存储内容搜索方法,包括:第一电子设备和第二电子设备建立连接;第二电子设备接收用户输入的第一信息,并将第一信息传递至第一电子设备;第一电子设备获取第一信息,根据第一信息确定搜索条件,并根据搜索条件在第一电子设备中搜索对应的目标存储内容;第一电子设备将目标存储内容的目标内容信息传递至第二电子设备;第二电子设备接收目标内容信息。
本实施方式中,用户可以根据用户的搜索目的在第二电子设备侧输入第一信息,然后由第二电子设备将该第一信息传递给第一电子设备,使得第一电子设备可以根据第一信息确定搜索条件,并利用第一电子设备中的搜索引擎在第一电子设备中完成相应存储内容的搜索得到作为搜索结果的目标存储内容,并输出目标存储内容的目标内容信息至第二电子设备,第二电子设备还可以根据目标内容信息显示目标存储内容,使得用户不需要通过第二电子设备一一浏览第一电子设备中的存储内容以搜索目标存储内容,则可以在第二电子设备侧快速查找第一电子设备中的自己感兴趣的文件等存储内容,即使得存储内容的搜索更加便捷、快速,提高了用户的体验。
在上述第一方面的一种可能的实现中,第二电子设备接收用户输入的第一信息包括,第二电子设备创建与第一信息对应的新增存储内容;第二电子设备将第一信息传递至第一电子设备包括,第二电子设备将新增存储内容传递至第一电子设备;第一电子设备获取第一信息包括,第一电子设备检测本地存储内容,以确定新增存储内容,并根据新增存储内容确定第一信息。
本实现方式中,第一电子设备的存储内容在第一电子设备和第二电子设备建立连接后传递至第二电子设备;第二电子设备接收用户通过第二电子设备对第一电子设备传递至第二电子设备的存储内容的新增处理,形成新增存储内容,且第二电子设备将新增存储内容映射至第一电子设备;第一电子设备检测本地存储内容,可以确定新增存储内容。
即用户可以根据用户的搜索条件通过第二电子设备在第一电子设备中创建关于搜索目标存储内容的新增存储内容,可以认为是用户可以通过该新增存储内容在第二电子设备侧输入存储内容搜索条件,使得第一电子设备可以利用第一电子设备中的搜索引擎完成相应存储内容的搜索,并输出搜索目标存储内容的目标内容信息至第二电子设备,使得用户不需要通过第二电子设备一一浏览第一电子设备中的存储内容以搜索目标存储内容,则可以在第二电子设备侧快速查找自己感兴趣的存储内容,即使得存储内容的搜索更加便捷、快速,提高了用户的体验。
在上述第一方面的一种可能的实现中,新增存储内容为新增文件夹,第一信息为新增文件夹的名称;该方法进一步包括,第一电子设备检测本地文件夹,以确定新增文件夹,根据新增文件夹的名称确定搜索条件;及第一电子设备将目标内容信息存放至本地新增文件夹,第一电子设备将目标内容信息传递至第二电子设备中的新增文件夹。
新增存储内容为新增文件夹,即用户可以通过第二电子设备在第一电子设备中新建新增文件夹,示例性的,用户可以根据想要搜索的内容等搜索目的或搜索关键词设置新增文件夹的名称。第一电子设备根据该新增文件夹的名称确定搜索条件,并且在第一电子设备中搜索与该搜索条件对应的存储内容,并将搜索到的目标存储内容的目标内容信息存储至该新增文件夹下,以实现第一电子设备进行存储内容搜索,并且第一电子设备将搜索到的目标存储内容通过前述的第二电子设备的显示界面呈现的新增文件夹进行呈现的方案。
在上述第一方面的一种可能的实现中,第一电子设备将目标存储内容的目标内容信息存放至本地新增文件夹之前,还包括:检测新增文件夹是否存在,若存在,将目标存储内容的目标内容信息存放至新增文件夹中;若不存在,则结束本次搜索。由此,一方面可以确保目标存储内容可以准确地存放至对应的新增文件夹中,一方面,若新增文件夹不存在,则可以不进行文件夹的存放处理,可以有效地降低第一电子设备的功耗。
在上述第一方面的一种可能的实现中,新增存储内容为新增文件;第一信息为新增文件的名称,该方法进一步包括,第一电子设备检测本地文件,以确定新增文件,并根据新增文件的名称确定搜索条件,和/或第一信息为新增文件的文件内容,方法进一步包括,第一电子设备检测本地文件,以确定新增文件,并根据新增文件的文件内容确定搜索条件。
在上述第一方面的一种可能的实现中,该方法还包括:若存在目标存储内容,第一电子设备直接将目标存储内容的目标内容信息传递至所述第二电子设备。
在上述第一方面的一种可能的实现中,该方法还包括:若存在目标存储内容,第一电子设备根据新增文件生成新建文件夹,第一电子设备将目标存储内容的目标内容信息存放至本地新建文件夹,第一电子设备将新建文件夹和目标存储内容的目标内容信息传递至第二电子设备。
新增存储内容为新增文件,即用户可以通过第二电子设备在第一电子设备中新建新增文件,并且示 例性的,用户可以根据想要搜索的内容等搜索目的或搜索关键词设置新增文件的名称或设置新增文件的内容。第一电子设备根据该新增文件的名称或新增文件的内容确定搜索条件,并且在第一电子设备中搜索与该搜索条件对应的目标存储内容,并且第一电子设备进一步新建与搜索条件对应的新建文件夹,将搜索到的目标存储内容的目标内容信息存储至该新建文件夹下,以实现第一电子设备进行文件搜索,并且第一电子设备将搜索结果通过第二电子设备进行呈现的方案。
在上述第一方面的一种可能的实现中,第一电子设备根据搜索条件确定新建文件夹的名称。
在上述第一方面的一种可能的实现中,新增文件为图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种。
需要说明的是,新增文件的类型包括但不局限于前述图片文件、音频文件、视频文件、Word文件及文本格式文件等类型,其可以是前述图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种,其也可以是其他任意类型,其可以根据需要具体选择。
在上述第一方面的一种可能的实现中,第一电子设备在满足预设的存储内容检测开启条件时,检测本地存储内容,以确定新增存储内容。
在上述第一方面的一种可能的实现中,满足预设的存储内容检测开启条件,包括:第一电子设备与第二电子设备之间建立媒体传输协议通信连接。
在上述第一方面的一种可能的实现中,第一电子设备检测本地存储内容,包括:第一电子设备检测本地所有存储内容,或检测本地部分指定用户区内的存储内容。
在上述第一方面的一种可能的实现中,第一电子设备检测本地存储内容,还包括:实时检测本地存储内容,或根据预设的检测周期检测本地存储内容。
在上述第一方面的一种可能的实现中,目标存储内容的目标内容信息为目标存储内容本身,或为创建的针对目标存储内容的链接信息。
在上述第一方面的一种可能的实现中,目标存储内容为图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种。
需要说明的是,目标存储内容的类型包括但不局限于前述图片文件、音频文件、视频文件、Word文件及文本格式文件等类型,其可以是前述图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种,其也可以是其他任意类型,其可以根据需要具体选择。
在上述第一方面的一种可能的实现中,第一信息包括用户输入至第二电子设备的存储内容搜索界面的搜索框中的搜索词;或第二电子设备接收的用户输入的语音信息。
在上述第一方面的一种可能的实现中,该方法还包括:在第二电子设备的显示界面上显示用于提醒用户搜索结果的提示信息。
在上述第一方面的一种可能的实现中,该方法还包括:第二电子设备接收用户对目标内容信息的触发操作,根据目标内容信息在第二电子设备的显示屏幕显示目标存储内容,以用于用户查看;或第二电子设备根据目标内容信息直接在第二电子设备的显示屏幕上显示目标存储内容,以用于用户查看。
第二方面,本申请的实施方式提供了一种存储内容搜索方法,应用于第一电子设备,该方法包括:第一电子设备和第二电子设备建立连接;第一电子设备接收第二电子设备传递来的第一信息,根据第一信息确定搜索条件,并根据搜索条件在第一电子设备中搜索对应的目标存储内容;第一信息为第二电子设备接收用户输入的信息;第一电子设备将目标存储内容的目标内容信息传递至第二电子设备,以用于第二电子设备可以根据目标内容信息显示目标存储内容。
在上述第二方面的一种可能的实现中,第一电子设备获取第一信息包括,第一电子设备检测本地存 储内容,以确定新增存储内容,并根据新增存储内容确定第一信息。其中新增存储内容由第二电子设备传递至第一电子设备,且新增存储内容为第二电子设备接收用户输入的第一信息并创建与第一信息对应的新增存储内容形成。
第一电子设备的存储内容在第一电子设备和第二电子设备建立连接后传递至第二电子设备;第二电子设备接收用户通过第二电子设备对第一电子设备传递至第二电子设备的存储内容的新增处理,形成新增存储内容,且第二电子设备将新增存储内容映射至第一电子设备;第一电子设备检测本地存储内容,可以确定新增存储内容。即该第一电子设备通过用户通过第二电子设备在第一电子设备中创建的关于搜索目标文件的新增存储内容,利用第一电子设备中的搜索引擎在第一电子设备中完成相应存储内容的搜索,并输出搜索到的目标存储内容的目标内容信息至第二电子设备,使得用户不需要通过第二电子设备一一浏览第一电子设备中的存储内容以搜索目标文件,则可以在第二电子设备侧快速查找自己感兴趣的存储内容,即使得存储内容的搜索更加便捷、快速,提高了用户的体验。
在上述第二方面的一种可能的实现中,新增存储内容为新增文件夹,第一信息为新增文件夹的名称;该方法进一步包括,检测本地文件夹,以确定新增文件夹,根据新增文件夹的名称确定搜索条件;及将目标存储内容的目标内容信息存放至本地新增文件夹,将目标存储内容的目标内容信息传递至第二电子设备中的新增文件夹。
新增存储内容为新增文件夹,即用户可以通过第二电子设备在第一电子设备中新建新增文件夹,并且示例性的,用户可以根据想要搜索的内容等搜索目的或搜索关键词设置新增文件夹的名称。第一电子设备根据该新增文件夹的名称确定搜索条件,并且在第一电子设备中搜索与该搜索条件对应的存储内容,并将搜索到的目标存储内容的目标内容信息存储至该新增文件夹下,以实现第一电子设备进行存储内容搜索,并且第一电子设备将搜索到的目标存储内容通过前述的第二电子设备的显示界面呈现的新增文件夹进行呈现的方案。
在上述第二方面的一种可能的实现中,将目标存储内容的目标内容信息存放至本地新增文件夹之前,还包括:检测新增文件夹是否存在,若存在,将目标存储内容的目标内容信息存放至新增文件夹中;若不存在,则结束本次搜索。由此,一方面可以确保目标存储内容可以准确地存放至对应的新增文件夹中,一方面,若新增文件夹不存在,则可以不进行文件夹的存放处理,可以有效地降低第一电子设备的功耗。
在上述第二方面的一种可能的实现中,新增存储内容为新增文件,第一信息为新增文件的名称,;该方法进一步包括,检测本地文件,以确定新增文件,并根据新增文件的名称确定搜索条件,和/或第一信息为新增文件的文件内容,方法进一步包括,第一电子设备检测本地文件,以确定新增文件,并根据新增文件的文件内容确定搜索条件。
在上述第二方面的一种可能的实现中,该方法还包括:若存在目标存储内容,第一电子设备将目标存储内容的目标内容信息直接传递至所述第二电子设备。
在上述第二方面的一种可能的实现中,该方法还包括:第一电子设备根据新增文件生成新建文件夹,将目标存储内容的目标内容信息存放至新建文件夹,将新建文件夹和目标存储内容的目标内容信息传递至第二电子设备。
新增存储内容为新增文件,即用户可以通过第二电子设备在第一电子设备中新建新增文件,并且示例性的,用户可以根据想要搜索的内容等搜索目的或搜索关键词设置新增文件的名称或设置新增文件的内容。第一电子设备根据该新增文件的名称或新增文件的内容确定搜索条件,并且在第一电子设备中搜索与该搜索条件对应的目标存储内容,并且第一电子设备进一步新建与搜索条件对应的新建文件夹,将搜索到的目标存储内容的目标内容信息存储至该新建文件夹下,以实现第一电子设备进行存储内容搜索, 并且第一电子设备将搜索结果通过第二电子设备进行呈现的方案。
在上述第二方面的一种可能的实现中,根据搜索条件确定新建文件夹的名称。
在上述第二方面的一种可能的实现中,新增文件为图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种。
需要说明的是,新增文件的类型包括但不局限于前述图片文件、音频文件、视频文件、Word文件及文本格式文件等类型,其可以是前述图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种,其也可以是其他任意类型,其可以根据需要具体选择。
在上述第二方面的一种可能的实现中,在满足预设的存储内容检测开启条件时,检测本地存储内容,以确定新增存储内容。
在上述第二方面的一种可能的实现中,满足预设的存储内容检测开启条件,包括:第一电子设备与第二电子设备之间建立媒体传输协议通信连接。
在上述第二方面的一种可能的实现中,检测本地存储内容,包括:检测本地所有存储内容,或检测本地部分指定用户区内的存储内容。
在上述第二方面的一种可能的实现中,检测本地存储内容,还包括:实时检测本地存储内容,或根据预设的检测周期检测本地存储内容。
在上述第二方面的一种可能的实现中,目标存储内容的目标内容信息为目标存储内容本身,或为创建的针对目标存储内容的文件链接信息。
在上述第二方面的一种可能的实现中,目标存储内容为图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种。
需要说明的是,目标存储内容的类型包括但不局限于前述图片文件、音频文件、视频文件、Word文件及文本格式文件等类型,其可以是前述图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种,其也可以是其他任意类型,其可以根据需要具体选择。
本申请提供的存储内容搜索方法,为与上述第一方面和/或第一方面的任意一种可能的实现方式所提供的存储内容搜索方法对应的第一电子设备侧的存储内容搜索方法,因此也能实现第一方面提供的存储内容搜索方法所具备的有益效果(或优点)。
第三方面,本申请的实施方式还提供了一种存储内容搜索方法,应用于第二电子设备,该方法包括:第二电子设备和第一电子设备建立连接;第二电子设备接收用户输入的第一信息,并将第一信息传递至第一电子设备,以使第一电子设备根据第一信息确定搜索条件,并根据搜索条件在第一电子设备中搜索对应的目标存储内容;第二电子设备接收第一电子设备传递来的目标存储内容的目标内容信息。
在上述第三方面的一种可能的实现中,该方法还包括:在第二电子设备的显示界面上显示用于提醒用户搜索结果的提示信息。
在上述第三方面的一种可能的实现中,该方法还包括:第二电子设备接收用户对目标内容信息的触发操作,根据目标内容信息在第二电子设备的显示屏幕显示目标存储内容,以用于用户查看;或第二电子设备根据目标内容信息直接在第二电子设备的显示屏幕上显示目标存储内容,以用于用户查看。
本申请提供的存储内容搜索方法,为与上述第一方面和/或第一方面的任意一种可能的实现方式所提供的存储内容搜索方法对应的第二电子设备侧的存储内容搜索方法,因此也能实现第一方面提供的存储内容搜索方法所具备的有益效果(或优点)。
第四方面,本申请的实施方式提供了一种存储内容搜索系统,包括:彼此连接的第一电子设备和第二电子设备,其中,第二电子设备用于接收用户输入的第一信息,并将第一信息传递至第一电子设备; 第一电子设备用于获取第一信息,根据第一信息确定搜索条件,并根据搜索条件在第一电子设备中搜索对应的目标存储内容;第一电子设备还用于将目标存储内容的目标内容信息传递至第二电子设备;第二电子设备还用于接收目标内容信息。
本申请提供的存储内容搜索系统,包括用于执行上述第一方面和/或第一方面的任意一种可能的实现方式所提供的存储内容搜索方法的第一电子设备和第二电子设备,因此也能实现第一方面提供的存储内容搜索方法所具备的有益效果(或优点)。
第五方面,本申请的实施方式提供了一种电子设备,包括:存储器,用于存储计算机程序,计算机程序包括程序指令;处理器,用于执行程序指令,以使该电子设备执行前述的存储内容搜索方法。
第六方面,本申请的实施方式提供了一种计算机可读取存储介质,计算机可读取存储介质存储有计算机程序,计算机程序包括程序指令,程序指令被计算机运行以使计算机执行前述的存储内容搜索方法。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所使用的附图作简单介绍。
图1A是根据本申请的一些实施例,示出了一种手机与PC连接的示意图;
图1B是根据本申请的一些实施例,示出了一种手机的结构示意图;
图1C是根据本申请的一些实施例,示出了一种PC的结构示意图;
图1D-1F是根据本申请的一些实施例,示出了手机与PC连接时,PC的一些显示界面示意图;
图2是根据本申请的一些实施例,示出了一种照片搜索过程流程图;
图3A-3E是根据本申请的一些实施例,示出了一些PC的显示界面示意图;
图4是根据本申请的一些实施例,示出了另一种照片搜索过程流程图;
图5是根据本申请的一些实施例,示出了又一种照片搜索过程流程图;
图6A-6C是根据本申请的一些实施例,示出一些PC的显示界面示意图;
图7A和7B是根据本申请的一些实施例,示出了一些PC的显示界面示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。
对于互相通信连接的第一电子设备和第二电子设备,经常存在用户通过第二电子设备查看及管理第一电子设备中的存储内容的情况。第一电子设备可以是手机、智能手表等电子设备,第二电子设备可以是PC、电视、笔记本电脑等电子设备。存储内容可以是文件夹、文件等内容,文件可以是图片文件、音频文件、视频文件、Word文件及文本格式文件等文件。
请参见图1A,在本申请的一种实现方式中,第一电子设备可以为手机10,第二电子设备可以为PC20,手机10与PC20通过通用串行总线(Universal Serial Bus,USB)连接线30以USB连接方式建立连接。
另外,手机10和PC20之间建立连接,也可以是通过其他例如蓝牙、WIFI等无线通信方式或其他通信方式建立通信连接。
请参见图1B,图1B示出了手机10的一种结构示意图。
手机10可以包括处理器110,外部存储器接口120,内部存储器121,USB接头130,充电管理模 块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器、触摸传感器等传感器。
可以理解的是,本申请实施例示意的结构并不构成对手机10的具体限定。在本申请另一些实施例中,手机10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
其中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
USB接头130是一种符合USB标准规范的连接器,可以用来连接手机10和外围设备,具体可以是标准USB接头(例如Type C接头),Mini USB接头,Micro USB接头等。USB接头130可以用于连接充电器为手机10充电,也可以用于手机10与外围设备之间传输数据。该接头还可以用于连接其他电子设备,例如PC等。在一些实施方案中,处理器110可以支持USB,USB的标准规范可以为USB1.x,USB2.0,USB3.x,USB4。
手机10的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。移动通信模块150可以提供应用在手机10上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块160可以提供应用在手机10上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。
手机10通过GPU,显示屏194,以及应用处理器等实现显示功能。显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,手机10可以包括1个或N个显示屏194,N为大于1的正整数。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机10的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
请参见图1C,图1C示出了PC20的一种结构示意图。
PC20可以包括处理器210,外部存储器接口220,内部存储器221,USB接口230,充电管理模块240,电源管理模块241,通信模块250,音频模块260,耳机接口2601,麦克风2602,显示屏270,键盘280等。
可以理解的是,本申请实施例示意的结构并不构成对PC20的具体限定。在本申请另一些实施例中,PC20可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
在手机10与PC20建立USB连接后,手机10和PC20之间可以通过媒体传输协议(Media Transfer Protocol,MTP)进行通信,且手机10可以基于MTP直接将整个手机10的用户分区映射为PC20的一个设备,并且在PC20的显示屏幕(桌面)21上形成如图1A所示的显示界面(操作窗口)100。
显示界面100可以包括一些操作标识,用于用户选择对手机10进行的操作,以使PC20可以根据用户的操作实现对应功能的自动播放。例如显示界面100可以包括“打开设备及查看文件”标识101,若用户想查看手机10中的存储内容,则可以点击“打开设备及查看文件”标识101以打开手机10映射至PC20中的存储内容。
另外,显示界面100还可以包括但不仅限于手机10的品牌信息(例如华为),以及“始终对此设备执行此选项”、“将数字媒体同步至此设备”、“在“控制面板”中查看更多“自动播放”选项”等操作标识。
当然,显示界面100也可以包括手机20的型号(例如华为P40)等其他信息或操作标识,其可以根据需要设置。
若PC20检测到用户对“打开设备以查看文件”标识101的点击操作,则PC20的显示屏幕21上可以显示如图1D所示的显示界面200,显示界面200包括手机10的“内部存储”标识201。
另外,显示界面200上还可以包括搜索框202,搜索框202用于用户输入搜索词。
另外,显示界面200上还可以其他如“收藏夹”、“计算机”等其他标识,其可以根据需要设置,本申请对此不再做详细说明。
若PC20检测到用户对“内部存储”标识201的点击操作,则PC20的显示屏幕21上可以显示如图1E所示的显示界面300,显示界面300为呈现手机10映射至PC20的包括文件夹以及文件等存储内容的显示界面。其中文件夹可以包括“Camera”文件夹301以及其他如“baidu”、“Music”等文件夹。
用户可以通过显示界面300查看及管理手机10中的存储内容,例如用户可以点击“Camera”文件夹301以打开“Camera”文件夹301,“Camera”文件夹301下可以存放多张照片,另外还可以存放多个其他文件夹等其他内容,用户在打开“Camera”文件夹301后,可以查看”Camera”文件夹301下存放的照片等内容。
若PC20检测到用户对“Camera”文件夹301的点击操作,则PC20的显示屏幕21上可以显示如图1F所示的显示界面400,显示界面400包括“Camera”文件夹301下存放的多张照片401和对应于各照片的照片信息402,照片信息402可以包括拍摄日期(如20200501)、照片文件类型(JPG)等信息。
另外,显示界面400还包括对象个数显示框410,对象个数显示框410用于显示“Camera”文件夹301下存放的对象的数量信息,如“Camera”文件夹301包括366个对象,即可以是包括366张照片。
用户可以对“Camera”文件夹301中的照片进行点击查看操作,另外,用户还可以对“Camera”文件夹301中的照片进行新增、删除、文件名修改等处理。用户对“Camera”文件夹301中的照片进行处理后,PC20还可以将该处理映射至手机10,从而达到对手机10中的存储内容进行操作的目的。
当前,若用户需要在PC20侧查找手机10中用户想要查找的目标照片,可以是用户先通过浏览图1E所示的显示界面300上的文件夹的方式找到“Camera”文件夹301,然后打开“Camera”文件夹301, 在图1F所示的“Camera”文件夹301中逐一浏览该“Camera”文件夹301下的所有照片以查找用户想要查找的目标照片。
但是随着智能设备的普及,特别是智能手机10中相机的功能增强和手机的便携易用性,以及手机10的存储空间的增大,越来越多的用户通过手机10进行拍照。因此,当前手机10中的照片的存储量通常较大,当手机10中照片存储量大时,用户通过当前的这种照片搜索方式,需要浏览的照片的量较大,使得用户的搜索效率较低,并且在PC20侧浏览和搜索照片非常麻烦,影响用户的体验。
另外,PC20当前支持根据文件名关键词查找文件和文件夹,因此用户也可以在图1F所示的搜索框202中输入与想要查找的照片对应的文件名关键词,使得PC20根据文件名关键词利用PC20自己的搜索功能对手机10映射至PC20中的存储内容进行搜索以查找对应的照片,这种搜索方式受限于PC20的搜索引擎和搜索权限的限制,PC20只能根据文件名关键词进行搜索,而不能像智能手机一样可以通过识别照片内容等文件内容进行搜索,存在搜索不完整以及搜索结果不准确的问题,其使用体验与用户使用手机10进行搜索的体验是不统一的。
进一步地,手机10与PC20连接后,将整个手机10的用户分区映射为PC20的一个设备时,通常是将手机10的各用户分区一一依次进行映射,这通常需要一定的时间。在当前的搜索方式中,用户通常需要等待一段时间,待手机10完成存储内容映射后才方便进行搜索。例如,通常需要在“Camera”文件夹301及该“Camera”文件夹301下存储的所有照片完成映射后,用户才方便一一浏览或利用PC20的搜索引擎搜索想要搜索的目标照片,因此当前的搜索方式会影响用户的搜索效率,影响用户的体验的问题。
由此,本申请提供一种用户在PC20侧搜索手机10中的存储内容时,实现手机10中的存储内容的搜索的方法。本申请提供的存储内容搜索方法,用户可以在PC20侧输入存储内容搜索条件,并由手机10获取该存储内容搜索条件,且由手机10根据该存储内容搜索条件利用手机10自己的搜索引擎(功能)完成搜索后,将搜索到的目标存储内容传递至PC20,由PC20呈现给用户,由此可以提高存储内容的搜索效率,以及提高用户的体验,并且还可以统一手机10和PC20的用户使用体验。
本申请的一种实现方式中,在手机10与PC20建立USB连接后,若用户想在PC20侧搜索手机10中的存储内容,则用户可以根据用户的搜索条件在PC20侧的手机10映射至PC20的存储内容(例如“Camera”文件夹301)中创建新增文件夹,并根据搜索条件命名新增文件夹的名称;然后PC20将新增文件夹映射(同步或发送)至手机10。
另外,在手机10与PC20建立USB连接后,手机10会开启对手机10中的文件夹的监控服务,以监控手机10中是否存在新增文件夹。若手机10监测到手机10中有新增文件夹存在,手机10可以根据新增文件夹的名称确定搜索条件,并利用手机10自己的搜索引擎根据搜索条件完成相应存储内容的搜索,将搜索到的目标存储内容存放至手机10中的新增文件夹中,且手机10将搜索到的目标存储内容亦映射至PC20侧的新增文件夹中。用户在PC20侧打开新增文件夹,PC20则可以向用户呈现目标存储内容,即用户可以在PC20侧查看搜索目标存储内容,如此用户在PC20侧搜索手机10中的存储内容时可以方便地实现手机10中的存储内容的搜索,提高了搜索效率和提高了用户体验,以及统一了手机10和PC20的用户使用体验。
请参见图2,图2示出了一种基于本申请提供的存储内容搜索方法在PC20侧搜索手机10中的照片的过程,包括:
S110,手机10与PC20建立USB连接。
如图1A所示,用户可以通过USB连接线130连接手机10和PC20,使得手机10与PC20建立USB 连接。
S120,手机10根据检测到的USB连接事件,启动手机10的文件夹监控服务。
手机10对手机10是否与PC20建立USB连接进行检测,若检测到已建立连接,则手机10开启手机10的文件夹监控服务,对手机10中的指定文件夹进行监控,以实现对指定文件夹的下一级文件夹的新增、删除等变化的监控。
手机10对手机10是否与PC20建立USB连接进行检测,可以是手机10通过手机10中的USB接口管理模块对手机10的USB接口130的连接状态进行检测,在检测到USB接口130为已连接状态时,认为该手机10与PC20建立USB连接。
S130,手机10对手机10中的指定文件夹进行监控。
手机10对手机10中的指定文件夹进行监控可以检测指定文件夹中是否有新增文件夹产生。指定文件夹可以是手机10中的所有文件夹,也可以是部分文件夹,例如可以是前述的“Camera”文件夹301,其可以根据需要选择。
手机10监控本地指定文件夹,可以是在手机10与PC20建立USB连接后,手机10实时监控本地指定文件夹,也可以是根据预设的监控周期进行监控,该预设的监控周期可以是1~30s,例如可以是1s、3s、5s、20s、30s等,其可以根据需要具体设置。
手机10与PC20建立USB连接后,用户可以通过如图1F所示的呈现在PC20的显示屏幕21上的显示界面400,根据用户的搜索条件在PC20的手机10映射至PC20的存储内容中创建新增文件夹,并且PC20将该创建的新增文件夹映射至手机10。
例如若用户想查找一些包含“小A”的照片,则用户可以如前所述,打开如图1F所示的显示界面400,然后用户可以根据搜索条件在“Camera”文件夹301下新建一个如图3A所示的名称为“小A”的新增文件夹420,新增文件夹420被PC20同步至手机10,手机10开启了对本地指定文件夹的监控服务,可以监控到手机10中的新增文件夹420。
另外,本申请中,对于S120和S130,也可以作为一个步骤执行,即手机10根据检测到的USB连接事件,启动手机10的文件夹监控服务对手机10中的指定文件夹进行监控。
S140,手机10判断手机10中的指定文件夹中是否出现新增文件夹。若是,执行步骤S150;若否,继续执行步骤S130。
手机10确定手机10中的指定文件夹中是否出现新增文件夹,可以将当前获取到的文件夹的名称与前一个获取阶段获取到的文件夹的名称进行比较,以判断当前是否存在新增文件夹。
S150,手机10根据新增文件夹的名称,确定搜索条件,并根据搜索条件进行照片搜索。
若手机10检测到名称为“小A”的新增文件夹420,则获取新增文件夹420的名称“小A”,并将“小A”作为照片搜索条件。
手机10中通常设置有搜索引擎用于支持手机10的搜索功能。搜索引擎可以为当前手机10中惯常配置的普通搜索引擎或智能搜索引擎,手机10通过搜索引擎完成对相应存储内容的搜索。当然,搜索引擎也可以是区别于当前现有的搜索引擎的新搜索引擎以完成搜索功能,其可以根据需要具体设置,本申请对此不做具体限定。
手机10利用自己的搜索引擎搜索包含“小A”的照片可以是:手机10利用手机10的照片分析功能对手机10中的照片进行图片解析及对照片中的人脸进行识别,以确定出包括“小A”的照片。照片分析功能可以是当前常见的照片分析功能,也可以是其他照片分析功能,本申请对此不做具体限定。
手机10利用自己的搜索引擎搜索包含“小A”的照片也可以是:手机10根据手机10中已有的照 片分组(分类)获取包含“小A”的照片,例如若手机10本身已对手机10中的照片根据人物、风景等种类进行了分组,并在手机10中分组显示组名(人物名)和对应照片,则手机10可以利用已有的分组,获取“小A”对应的分组中的照片。
另外,手机10还可以利用手机10的文件名搜索功能,搜索照片文件名中包括“小A”的照片。
S160,手机10完成搜索后,判断是否存在目标照片。
若存在搜索目标照片,即存在与搜索条件对应的包含“小A”的照片,则执行步骤S170;若不存在,则执行步骤S130。
S170,手机10判断新增文件夹是否存在,若存在,则执行步骤S180;若不存在,则执行步骤S130。
若存在搜索目标照片,手机10判断该名称为“小A”的新增文件夹420是否存在,在该新增文件夹420存在时,执行步骤S180。若新增文件夹420不存在,则执行步骤S130。
S180,手机10将搜索到的目标照片存储至新增文件夹中。
若新增文件夹420存在,手机10将搜索到的目标照片存储至新增文件夹420中,可以是由手机10从目标照片的原存储位置获取(复制)目标照片,将目标照片存储至新增文件夹420中。手机10将搜索到的目标照片存放至新增文件夹420后,手机10将目标照片映射至该PC20中的新增文件夹420中。
手机10将目标照片映射至该PC20中的新增文件夹420中后,可以如图3B所示,在显示界面400上显示提示框430,提示框430可以显示用于提醒用户搜索已完成的信息,例如“搜索已完成”,也可以显示用于告知用户搜索结果的信息,例如“搜索到20个对象”。当然其可以显示其他提示信息,其可以根据需要设置。
若PC20检测到用户点对显示界面400上的新增文件夹420的打开操作,则PC20可以显示如图3C所示的显示界面500,即显示搜索到的目标照片,以用于用户查看,其中由对象个数显示框410可以知道搜索到的目标照片为20张。另外,若未搜索到目标照片,则显示界面500上不显示任何照片,对象个数显示框410显示“0个对象”。
另外,手机10将搜索到的目标照片存储至新增文件夹420中,也可以是手机10为目标照片创建符号链接(如快捷方式)作为目标内容信息,将符号链接存储至新增文件夹420中。该符号链接具体可以是软链接或者硬链接,也可以是其他类型的符号链接。通过快捷方式等符号链接的方式存储目标照片,可以减少照片复制操作以提升处理速度,并且可以避免占用手机10更多的内存资源。
若PC20检测到用户点对PC20的显示界面400上的新增文件夹420的打开操作,则可以显示如图3D所示的显示界面500,即显示检索到的目标照片的快捷方式,以用于用户查看。
当然,本实现方式中,在搜索结束后,PC20也可以在图3A所示的显示界面400之后直接显示图3C或3D所示的显示界面,即在搜索结束后,手机10自动打开新增文件夹420,直接向用户呈现搜索到的目标照片,而不需要用户点击新增文件夹420打开新增文件夹420进行查看。
另外,本实现方式中,对于步骤S160,手机10完成搜索后,若不存在搜索目标照片,即不存在与该搜索条件对应的包含“小A”的照片,PC20也可以在显示界面400上显示如图3E所示的提示框440,提示框440可以显示用于告知用户搜索结果的信息,例如显示“未搜索到目标照片”,当然也可以显示“搜索到0个对象”等信息,其可以根据需要设置。
对于步骤S170,若新增文件夹420不存在,手机10可以将搜索目标照片传递至PC20,由PC20直接在显示界面上显示目标照片。另外,手机10也可以直接结束本次搜索,结束搜索后,PC20可以显示提示框显示“搜索结束”等信息。
在本申请的另一实现方式中,请参见图4,在S150之后,手机10可以直接执行S170,判断新增 文件夹是否存在,若存在,则执行S181。
S181,如果存在目标照片,手机10将搜索到的目标照片存储至新增文件夹中。
若新增文件夹420存在,且存在目标照片,则手机10将搜索到的目标照片存储至新增文件夹420中。
另外,若不存在搜索目标照片,手机10可以通知PC20不存在目标照片,PC20生成关于未搜索到对应目标照片的提示信息,显示在显示界面400上,用于提醒用户未搜索到目标照片。该提示信息的显示方式可以是如图3E所示的通过提示框440显示“未搜索到目标照片”,当然也可以是显示“符合条件的搜索目标照片为0”等其他提示内容,其可以根据需要设置具体的提示信息。
进一步地,本实现方式中,手机10将搜索到的目标照片存放在新增文件夹420下,使得用户可以多次访问新增文件夹420查看目标照片,而且手机10不需要在每次需要查找相同的照片时再次进行搜索,可以有效地节省手机10的系统资源。
当然,手机10也可以在搜索完成后的预设时间内,自动删除新增文件夹420以及删除新增文件夹420下存储的目标照片,避免占用手机10的内存。该预设时间可以是0.5小时、12小时、24小时,也可以是一周、一个月等,其可以根据需要设置。
另外,手机10删除新增文件夹420以及新增文件夹420下存储的目标照片,可以是先从原存储位置删除,然后将删除的新增文件夹420以及新增文件夹420下存储的目标照片先暂放至缓存区内,在缓存一段时间后(例如12小时、1天等),再从手机10中彻底删除。在缓存阶段,手机10还可以根据用户操作,将删除的新增文件夹420以及新增文件夹420下存储的目标照片恢复至原存储位置。
基于本申请提供的存储内容搜索方法,在进行照片搜索时,用户可以根据用户的搜索条件通过PC20在手机10中创建关于搜索目标照片的新增文件夹,即可以认为是用户可以在PC20侧输入照片搜索条件,使得手机10可以根据该搜索条件利用手机10中的搜索引擎完成相应照片文件的搜索,并输出搜索目标照片至PC20用于用户在PC20侧进行查看,使得用户不需要一一浏览手机10中的照片以搜索目标照片,就可以在PC20侧快速查找自己感兴趣的照片,即使得照片的搜索更加便捷、快速,提高了用户的体验。
进一步地,基于本申请提供的存储内容搜索方法,用户在PC20侧进行照片查找时,可以利用手机10的搜索功能实现照片的查找,由此可以更好地实现手机10和PC20的用户体验的统一。
需要说明的是,前述新增文件夹可以是在原有文件夹的基础处上,另增一个文件夹,手机10可以认为该另增的文件夹为新增文件夹。其也可以是修改原有文件夹中的其中一个文件夹的名称,使得该被修改的文件夹具有一个区别于其他文件夹的名称,由此,手机10认为该被修改的文件夹为新增文件夹。
本申请提供的存储搜索方法的另一种实现方式中,用户可以在PC20侧的手机10映射至PC20的存储内容中创建新增文件,并且用户可以根据想要搜索的内容等搜索目的或搜索关键词设置新增文件的名称或设置新增文件的内容。PC20将该新增文件映射至手机10,手机10根据该新增文件的名称或新增文件的内容确定搜索条件,并且利用手机10自己的搜索功能在手机10中搜索与该搜索条件对应的文件,并且手机10进一步新建与搜索条件对应的文件夹,将搜索到的文件存储至该新建的文件夹下,以实现手机10进行文件搜索,并且手机10将搜索结果映射至PC20,使得用户可以在PC侧查看结果文件。
请参见图5,图5示出了另一种基于本申请提供的存储搜索方法,在PC20侧搜索手机10中的照片过程,包括:
S110,手机10与PC20建立USB连接。
S121,手机10检测连接事件,手机10根据检测到的USB连接事件,启动手机10的文件监控服务。
S131,手机10对指定文件夹下的文件进行监控。
手机10开启对文件的监控服务后,可以实时或者定时检测指定文件夹中的文件是否发生变化,以检测是否有新增文件产生,当然,也可以检测到是否有文件被删除等。
手机10可以监控手机10中指定用户分区中的文件,另外,手机10也可以监控手机10中的某种类型的文件,例如监控图片文件或者TXT文件等。其皆可以根据需要具体设置。
如图6A所示,若用户想要查找包括“小A”的照片,用户可以在“Camera”文件夹301下新建一个名称为“小A”的TXT格式的新增文件450。
S141,手机10判断是否出现新增文件。若是,执行步骤S151;若否,继续执行步骤S131。
示例性的,手机10将当前获取到的文件与前一个获取阶段获取到的文件进行比较,以判断当前获取到文件中是否存在新增文件。例如,手机10将当前检测到的文件的名称和前一段检测周期内检测到的文件的文件名称进行比对,以确定是否有文件的删除或新建等。
S151,手机10根据新增文件的名称,确定搜索条件,并根据该搜索条件进行文件搜索。
若手机10检测到前述名称为“小A”的新增文件450,则手机10获取该新增文件450的名称“小A”,将使得手机10将新增文件450的名称“小A”确定为搜索条件,并在该“Camera”文件夹301下搜索符合该搜索条件的目标照片。
S161,手机10判断是否存在目标照片,若存在,执行步骤S171,若不存在,执行步骤S131。
S171,手机10创建新建文件夹作为目标文件存储文件夹。
手机10根据前述搜索条件创建新建文件夹,例如,可以在前述的“Camera”文件夹301下新建名称为“小A”的新建文件夹,手机10创建新建文件夹后,将新建文件夹映射至PC20,在PC20的显示界面400上显示如图6B所示的名称为“小A”的新建文件夹460。
S182,手机10将目标文件存储至新建文件夹中。
手机10将搜索后得到的目标照片存储至新建文件夹460中,具体可以是将搜索到的与搜索条件对应的目标照片存储至新建文件夹460中,也可以是为目标照片创建符号链接,将该符号链接存储至新建文件夹460中。
手机10将搜索到的目标照片存放至该手机10中的新建文件夹460后,当用户在PC20的显示界面上点击该新建文件夹460后,即可以看到目标照片。需要说明的是,手机10将该新建文件夹460映射至PC20,可以是在得到目标照片后,将该新建文件夹460与该目标照片一起映射至PC20,其也可以是在手机10创建了新建文件夹460后,即将该新建文件夹460直接映射至PC20,再将目标照片映射至该新建文件夹460,其可以根据需要具体设置。
本实现方式中,如果进行文件搜索后得到目标文件,则在步骤S171后执行步骤S182,若未得到目标文件,则可以在进行文件搜索后,不创建新建文件夹,直接结束本次文件搜索,并且使得PC20在显示界面400上显示“搜索已结束”、“未搜索到目标照片”等提示信息。
在本申请的另一种实现方式中,对于步骤S161,若存在目标照片,手机10也可以直接将目标照片传递至PC20,在PC20的桌面上显示目标照片,而不需要创建新建文件夹。
基于本申请提供的存储内容搜索方法,用户可以根据用户的搜索条件通过PC20在手机10中创建关于搜索目的的文件,使得手机10可以利用手机10中的搜索引擎完成相应照片文件的搜索,并输出搜索目标文件至PC20用于用户查看,使得用户不需要一一浏览手机10中的照片以搜索目标照片,便可以在PC20侧快速查找自己感兴趣的照片,即使得照片的搜索更加便捷、快速,而且可以使得用户使用PC20进行照片查找的体验与使用手机10进行照片查找的体验一致,提高了用户的体验。
另外,本申请中,用户创建新增文件,可以是如前述的通过显示界面400在手机10的“Camera”文件夹301下创建名称为“小A”的新建TXT文件,也可以是如图6C所示,创建名称为“新建文本文档”的TXT文件451,然后进一步地,用户点击打开该“新建文本文档”文件451,在该“新建文本文档”文件451中输入如图6C所示的内容“小A”,从而使得手机10根据该“新建文本文档”文件451中的内容“小A”确定搜索条件。
另外,用户还可以在“Camera”文件夹301下新建照片文件,例如在“Camera”文件夹301中放入一张“小A”的单人人物照片,则手机10在检测到该新增照片后,可以提取照片文件中的人物的面部特征信息,然后根据面部特征信息搜索具有相同面部特征信息的照片,以得到目标照片。
当然,该新增文件还可以是音频文件,手机10提取音频文件中的音频数据以确定搜索条件,例如通过对音频数据进行语音识别确认音频数据中的声音来自于小A,则查找包括小A的照片,或者通过对音频数据中的内容进行解析确定音频数据中包括内容“查找包括小A的照片”,则查找包括小A的照片。
新增文件还可以是视频文件,手机10中提取视频数据以确定搜索条件,例如通过视频确认视频的拍摄场景为婚礼,则查找与婚礼相关的照片。
需要说明的是,该文件可以是任意类型的文件,手机10可以根据文件名称确定搜索条件,或者可以根据文件的实质内容确定搜索条件,其可以根据需要具体设置。
本申请中,也可以创建名称为“新建文件夹”的文件夹,然后在该名称为“新建文件夹”的文件夹中创建前述的名称为“小A”或内容为“小A”的TXT文件或其他文件,用于手机10进行照片查找,或者在该名称为“新建文件夹”的文件夹中放入前述的任意一种文件用于手机10进行照片查找,其可以根据需要选择。
另外,本申请中若用户想查找某一天拍摄的所有照片,也可以将新增文件夹的名称命名为照片拍摄日期,例如可以是“20200504”,则手机10可以搜索拍摄于2020年5月4日的照片存放在新增文件夹下。
本申请提供的存储搜索方法的另一种实现方式中,用户可以在如图1D-1F所示的PC20的搜索框202中根据搜索条件(目的)输入搜索词,PC20将该搜索词发送至手机10,手机10根据该搜索词确定搜索条件,并且利用手机10自己的搜索功能在手机10中搜索与该搜索条件对应的存储内容,并且手机10进一步将搜索结果发送至PC20,使得用户可以在PC侧查看目标存储内容。
示例性的,用户可以在如图1F所示的输入框202中输入搜索词“小A”,输入后显示界面如图7A所示,若PC20检测到用户对搜索控件的触发操作,则PC20将搜索词“小A”发送给手机10,手机10获取搜索词“小A”,利用手机10自己的搜索引擎搜索包括小A的照片,若搜索到包括“小A”的照片,手机10将搜索到的目标照片的快捷方式发送给PC20,PC20根据接收到的目标照片的快捷方式,在显示界面400上形成如图7B所示的显示框470,在显示框470中直接显示目标照片。
当然,手机10也可以将搜索到的目标照片发送给PC20,PC20根据接收到的目标照片在显示界面400上直接显示目标照片。
另外,显示框470也可以是位于显示屏幕21上显示界面400以外的其他区域,其可以根据需要选择。当然也可以不显示显示框470,直接以平铺或者层叠的方式在显示屏幕21上显示目标照片。
本实现方式中,PC20将搜索词发送给手机10,使得手机10根据搜索词利用手机10自己的搜索引擎进行搜索,相比于PC20根据搜索词利用PC20自己的搜索引擎进行搜索的方式,可以不受限于PC20的搜索引擎和搜索权限的限制,当前手机10通常为智能手机,其可以实现通过智能识别照片内容等存 储内容的方式进行搜索,可以使得搜索结果更为准确,以及可以使得用户使用PC20和使用手机10进行存储内容搜索的体验更为统一。
本申请提供的存储搜索方法的另一种实现方式中,PC20还可以具备语音接收功能(例如麦克风2602接收用户的语音输入),则PC20可以接收用户的语音输入,将用户输入的语音信息发送给手机10,由手机10解析语音解析确定搜索条件进行搜索。
本申请提供的存储内容搜索方法,可以应用于前述的手机10和PC20,也可以应用于任意通信连接的第一电子设备和第二电子设备,其中第二电子设备可以获取用户输入的第一信息,并将该第一信息传递给第一电子设备,使得第一电子设备利用自己的搜索引擎完成第一电子设备中的存储内容的搜索,并在第二电子设备的显示屏幕上显示目标存储内容以用于通过第二电子设备进行查看,可以方便地实现通过第二电子设备查找及查看第一电子设备中的存储内容的目的。
本申请公开的机制的各实施例均可以以软件、硬件、固件或这些实现方法的组合等方式实现。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程程序包括至少一个处理器、存储器(或存储系统,包括易失性和非易失性存储器和/或存储单元)。
在一些情况下,所公开的实施例可以以硬件、固件、软件或其他任何组合来实现。所公开的实施例可以被实现为一个或多个暂时或非暂时性及其可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个多个处理器读取和执行。例如,指令通过网络或气压计算机可读取介质分发。因此,机器可读取介质可以包括用于机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(ROM)、随机存取存储器(RAM)、可擦除可编程只读存储器(EPROM)、电可擦除可编程只读存储器(EEPROM)、磁卡或光卡、闪卡、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字等)的有形的机器可读取存储器。因此,机器可读取介质包括适合于以机器可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。
需要说明的是,在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。
虽然通过参照本申请的某些优选实施方式,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,以上内容是结合具体的实施方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。本领域技术人员可以在形式上和细节上对其作各种改变,包括做出若干简单推演或替换,而不偏离本申请的精神和范围。

Claims (17)

  1. 一种存储内容搜索方法,其特征在于,包括:
    第一电子设备和第二电子设备建立连接;
    所述第二电子设备接收用户输入的第一信息,并将所述第一信息传递至所述第一电子设备;
    所述第一电子设备获取所述第一信息,根据所述第一信息确定搜索条件,并根据所述搜索条件在所述第一电子设备中搜索对应的目标存储内容;
    所述第一电子设备将所述目标存储内容的目标内容信息传递至所述第二电子设备;
    所述第二电子设备接收所述目标内容信息。
  2. 根据权利要求1所述的存储内容搜索方法,其特征在于,
    所述第二电子设备接收用户输入的第一信息包括,所述第二电子设备创建与所述第一信息对应的新增存储内容;
    所述第二电子设备将所述第一信息传递至所述第一电子设备包括,所述第二电子设备将所述新增存储内容传递至所述第一电子设备;
    所述第一电子设备获取所述第一信息包括,所述第一电子设备检测本地存储内容,以确定所述新增存储内容,并根据所述新增存储内容确定所述第一信息。
  3. 根据权利要求2所述的存储内容搜索方法,其特征在于,所述新增存储内容为新增文件夹,所述第一信息为所述新增文件夹的名称;
    所述方法进一步包括,所述第一电子设备检测本地文件夹,以确定所述新增文件夹,根据所述新增文件夹的名称确定搜索条件;及所述第一电子设备将所述目标内容信息存放至本地新增文件夹,所述第一电子设备将所述目标内容信息传递至所述第二电子设备中的新增文件夹。
  4. 根据权利要求2所述的存储内容搜索方法,其特征在于,所述新增存储内容为新增文件;
    所述第一信息为所述新增文件的名称,所述方法进一步包括,所述第一电子设备检测本地文件,以确定新增文件,并根据所述新增文件的名称确定搜索条件,和/或
    所述第一信息为所述新增文件的文件内容,所述方法进一步包括,所述第一电子设备检测本地文件,以确定新增文件,并根据所述新增文件的文件内容确定搜索条件。
  5. 根据权利要求4所述的存储内容搜索方法,其特征在于,所述方法还包括:
    所述第一电子设备根据所述新增文件生成新建文件夹,将所述目标内容信息存放至所述新建文件夹,并将所述新建文件夹和所述目标内容信息传递至所述第二电子设备。
  6. 根据权利要求5所述的存储内容搜索方法,其特征在于,所述第一电子设备根据所述搜索条件确定所述新建文件夹的名称。
  7. 根据权利要求2-6任一项所述的存储内容搜索方法,其特征在于,在满足预设的存储内容检测开启条件时,所述第一电子设备检测本地存储内容,以确定所述新增存储内容。
  8. 根据权利要求1所述的存储内容搜索方法,其特征在于,所述第一信息包括用户输入至所述第二电子设备的存储内容搜索界面的搜索框中的搜索词;或所述第二电子设备接收的用户输入的语音信息。
  9. 根据权利要求1-8任一项所述的存储内容搜索方法,其特征在于,所述目标内容信息为创建的针对所述目标存储内容的链接信息。
  10. 根据权利要求1-9任一项所述的存储内容搜索方法,其特征在于,所述目标存储内容为图片文件、音频文件、视频文件、Word文件及文本格式文件中的至少一种。
  11. 根据权利要求1-10任一项所述的存储内容搜索方法,其特征在于,所述方法还包括:在所述第二电子设备的显示界面上显示用于提醒用户搜索结果的提示信息。
  12. 根据权利要求1-11任一项所述的存储内容搜索方法,其特征在于,所述方法还包括:
    所述第二电子设备接收用户对所述目标内容信息的触发操作,根据所述目标内容信息在所述第二电子设备的显示屏幕显示所述目标存储内容;或
    所述第二电子设备根据所述目标内容信息直接在所述第二电子设备的显示屏幕显示所述目标存储内容。
  13. 一种存储内容搜索方法,应用于第一电子设备,其特征在于,所述方法包括:
    所述第一电子设备和第二电子设备建立连接;
    所述第一电子设备接收所述第二电子设备传递来的第一信息,根据所述第一信息确定搜索条件,并根据所述搜索条件在所述第一电子设备中搜索对应的目标存储内容;所述第一信息为所述第二电子设备接收用户输入的信息;
    所述第一电子设备将所述目标存储内容的目标内容信息传递至所述第二电子设备。
  14. 一种存储内容搜索方法,应用于第二电子设备,其特征在于,所述方法包括:
    所述第二电子设备和第一电子设备建立连接;
    所述第二电子设备接收用户输入的第一信息,并将所述第一信息传递至所述第一电子设备,以使所述第一电子设备根据所述第一信息确定搜索条件,并根据所述搜索条件在所述第一电子设备中搜索对应的目标存储内容;
    所述第二电子设备接收所述第一电子设备传递来的所述目标存储内容的目标内容信息。
  15. 一种存储内容搜索系统,包括:彼此连接的第一电子设备和第二电子设备,其中,
    所述第二电子设备用于接收用户输入的第一信息,并将所述第一信息传递至所述第一电子设备;
    所述第一电子设备用于获取所述第一信息,根据所述第一信息确定搜索条件,并根据所述搜索条件在所述第一电子设备中搜索对应的目标存储内容;
    所述第一电子设备还用于将所述目标存储内容的目标内容信息传递至所述第二电子设备;
    所述第二电子设备还用于接收所述目标内容信息。
  16. 一种电子设备,其特征在于,包括:
    存储器,用于存储计算机程序,所述计算机程序包括程序指令;
    处理器,用于执行所述程序指令,以使所述电子设备执行如权利要求1-12任一项所述的存储内容搜索方法,或如权利要求13所述的存储内容搜索方法,或如权利要求14所述的存储内容搜索方法。
  17. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被计算机运行以使计算机执行如权利要求1-12任一项所述的存储内容搜索方法,或如权利要求13所述的存储内容搜索方法,或如权利要求14所述的存储内容搜索方法。
PCT/CN2021/098167 2020-06-05 2021-06-03 存储内容搜索方法、系统和电子设备 WO2021244614A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010504859.1A CN111680212A (zh) 2020-06-05 2020-06-05 存储内容搜索方法、系统和电子设备
CN202010504859.1 2020-06-05

Publications (1)

Publication Number Publication Date
WO2021244614A1 true WO2021244614A1 (zh) 2021-12-09

Family

ID=72454275

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/098167 WO2021244614A1 (zh) 2020-06-05 2021-06-03 存储内容搜索方法、系统和电子设备

Country Status (2)

Country Link
CN (1) CN111680212A (zh)
WO (1) WO2021244614A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680212A (zh) * 2020-06-05 2020-09-18 华为技术有限公司 存储内容搜索方法、系统和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831660B2 (en) * 2006-03-02 2010-11-09 Mtome Co., Ltd. System and method for contents upload using a mobile terminal
CN105306562A (zh) * 2015-10-16 2016-02-03 联想(北京)有限公司 一种信息处理方法及电子设备
CN108563752A (zh) * 2018-04-16 2018-09-21 Oppo广东移动通信有限公司 数据交互方法、装置、终端设备及存储介质
CN109981881A (zh) * 2019-01-21 2019-07-05 华为技术有限公司 一种图像分类的方法和电子设备
CN110263077A (zh) * 2019-06-25 2019-09-20 努比亚技术有限公司 一种获取移动终端中文件的方法、移动终端及存储介质
CN111680212A (zh) * 2020-06-05 2020-09-18 华为技术有限公司 存储内容搜索方法、系统和电子设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310813A (ja) * 2006-05-22 2007-11-29 Nikon Corp 画像検索装置およびカメラ
KR100840844B1 (ko) * 2006-12-04 2008-06-23 임정욱 사용자 단말에 저장되어 있는 개인 정보를 검색하는 시스템및 그 개인 정보 검색 방법
KR20120035292A (ko) * 2010-10-05 2012-04-16 엘지전자 주식회사 전자 기기 및 그 구동 방법
CN103164441B (zh) * 2011-12-14 2017-09-19 富泰华工业(深圳)有限公司 基于脸部特征值对图片分类的电子装置及方法
US11068492B2 (en) * 2013-04-19 2021-07-20 Salesforce.Com, Inc. Systems and methods for combined search and content creation
CN103294789A (zh) * 2013-05-21 2013-09-11 鸿富锦精密工业(深圳)有限公司 信息搜索系统及方法
CN105868260A (zh) * 2015-12-30 2016-08-17 乐视网信息技术(北京)股份有限公司 视频搜索的方法及装置
CN106961506A (zh) * 2016-01-08 2017-07-18 中兴通讯股份有限公司 信息处理方法及移动终端
CN106528839A (zh) * 2016-11-23 2017-03-22 深圳铂睿智恒科技有限公司 智能终端的应用推荐方法及系统
CN108763582B (zh) * 2018-06-11 2023-04-21 腾讯科技(深圳)有限公司 文件搜索方法、装置、终端及存储介质
CN111221845A (zh) * 2019-12-31 2020-06-02 华为技术有限公司 一种跨设备信息搜索方法及终端设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831660B2 (en) * 2006-03-02 2010-11-09 Mtome Co., Ltd. System and method for contents upload using a mobile terminal
CN105306562A (zh) * 2015-10-16 2016-02-03 联想(北京)有限公司 一种信息处理方法及电子设备
CN108563752A (zh) * 2018-04-16 2018-09-21 Oppo广东移动通信有限公司 数据交互方法、装置、终端设备及存储介质
CN109981881A (zh) * 2019-01-21 2019-07-05 华为技术有限公司 一种图像分类的方法和电子设备
CN110263077A (zh) * 2019-06-25 2019-09-20 努比亚技术有限公司 一种获取移动终端中文件的方法、移动终端及存储介质
CN111680212A (zh) * 2020-06-05 2020-09-18 华为技术有限公司 存储内容搜索方法、系统和电子设备

Also Published As

Publication number Publication date
CN111680212A (zh) 2020-09-18

Similar Documents

Publication Publication Date Title
WO2020177622A1 (zh) Ui组件显示的方法及电子设备
WO2021082835A1 (zh) 启动功能的方法及电子设备
CN111164983B (zh) 互联终端出借本地处理能力
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
EP4102379A1 (en) Data sharing method, electronic device and system
KR102503329B1 (ko) 이미지 분류 방법 및 전자 디바이스
WO2020259554A1 (zh) 可进行学习的关键词搜索方法和电子设备
WO2020233556A1 (zh) 一种通话内容处理方法和电子设备
WO2022127661A1 (zh) 应用共享方法、电子设备和存储介质
WO2021238967A1 (zh) 一种内容分享的方法、装置及系统
WO2023207761A1 (zh) 外设控制方法、电子设备及系统
US20160092750A1 (en) Method for recommending one or more images and electronic device thereof
WO2021244614A1 (zh) 存储内容搜索方法、系统和电子设备
WO2022007678A1 (zh) 一种打开文件的方法及设备
WO2021057421A1 (zh) 一种图片搜索方法及设备
WO2019153286A1 (zh) 一种图像分类方法及设备
WO2022068563A1 (zh) 一种历史页面的打开方法、相关设备及计算机存储介质
WO2022206764A1 (zh) 一种显示方法、电子设备和系统
WO2021196980A1 (zh) 多屏交互方法、电子设备及计算机可读存储介质
WO2024083133A1 (zh) 分布式数据管理方法、电子设备及系统
WO2022100588A1 (zh) 一种图片收藏方法及设备
WO2022161058A1 (zh) 一种全景图像的拍摄方法及电子设备
WO2023125832A1 (zh) 图片分享方法和电子设备
CN114374690B (zh) 一种文件共享方法、通信系统和电子设备
WO2022052962A1 (zh) 应用模块启动方法和电子设备

Legal Events

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

Ref document number: 21816931

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21816931

Country of ref document: EP

Kind code of ref document: A1