Photographing query method and related device

By setting the photo word picking button on the electronic device, the user can turn on the camera, take and display pictures by operating the button, solving the problem of cumbersome operation of the existing photo query method and improving the convenience and user experience of information query.

CN120372034APending Publication Date: 2025-07-25HEFEI IFLYTEK TOYCLOUD TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510538703.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The existing photo query methods are cumbersome and have poor user experience. Users need to operate the query application icon and the photo word icon to turn on the camera to shoot. After shooting, you need to enter the album to select pictures for query.

Method used

By setting a photo-taking word key on the electronic device, the user operates the key to trigger the first key event to turn on the camera and display the preview screen, the second key event controls the camera shooting, and directly displays the picture on the display screen. The user can select information in the picture for query.

Benefits of technology

It simplifies information query operations and improves user operation convenience. Users only need to simply operate the photo and word button to enable the camera to be turned on, photographed and displayed, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372034A_ABST
    Figure CN120372034A_ABST
Patent Text Reader

Abstract

The invention discloses a photographing query method and a related device, and relates to the technical field of information query, the photographing query method is applied to an electronic device, the electronic device is provided with a camera, a display screen and a photographing word selection key, and the photographing query key is a physical key used for triggering photographing word selection. The photographing query method comprises the following steps: when a first key event triggered by a user operating a photographing word-taking key is detected, starting a camera, and displaying a preview picture of the camera on a display screen; when a second key event triggered when the user operates the photographing and word taking key is detected, controlling the camera to shoot, and directly displaying a picture shot by the camera on the display screen; and when a selection operation of a user on information in the picture shot by the camera is detected, querying the selected information to obtain related information of the selected information, and outputting the related information. According to the photographing query method disclosed by the invention, the information query operation is simplified, the user operation convenience of information query is improved, and the user experience is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of information query, and in particular, to a photo query method and related devices. Background Art

[0002] In some scenarios, it is necessary to query specified information to obtain relevant information of the specified information. For example, query a strange word to obtain its pronunciation and meaning, query an English sentence to obtain its Chinese meaning, query an ancient poem to obtain its translation, and so on.

[0003] To meet the information query requirements of certain scenarios, a photo query method has emerged currently. The current photo query method is as follows: when detecting a query application start instruction triggered by a user operating a query application icon, start the query application; when detecting a photo word-taking function start instruction triggered by a user operating a photo word-taking icon in the query application, start the photo word-taking function in the query application; when the photo word-taking function is started, turn on the camera, and the user can aim the camera at the information to be queried for shooting operations; when detecting a shooting instruction, control the camera to shoot, and the captured picture enters the album. Furthermore, the user can enter the album to select the just-captured picture, and then the user can click on the information in the picture. When detecting the user's click operation on the information in the picture, query the information clicked by the user.

[0004] The current shooting query method requires the user to operate the icon of the query application and the photo word-taking icon in the query application to turn on the camera for shooting. After the shooting is completed, the user also needs to enter the album to select the captured picture, and then can select the information to be queried for query. It can be seen that the query operation of the current photo query method is very cumbersome and the user experience is not good. Summary of the Invention

[0005] In view of this, this application provides a photo query method and related devices to solve the problem that the query operation of the current photo query method is cumbersome and the user experience is not good. The technical solutions are as follows:

[0006] The first aspect of this application provides a photo query method, which is applied to an electronic device. The electronic device is provided with a camera, a display screen, and a photo word-taking button, and the photo word-taking button is a physical button for triggering photo word-taking;

[0007] The photo query method includes:

[0008] When detecting a first button event triggered by a user operating the photo word-taking button, turn on the camera and display a preview screen of the camera on the display screen;

[0009] When detecting a second key event triggered by the user operating the photo-taking and word-recognition button, control the camera to perform a shooting operation, and directly display the picture taken by the camera on the display screen;

[0010] When detecting a selection operation by the user on the information in the picture taken by the camera, query the information selected by the selection operation to obtain relevant information about the information selected by the selection operation;

[0011] Output relevant information about the information selected by the selection operation.

[0012] In a possible implementation manner, when detecting a first key event triggered by the user operating the photo-taking and word-recognition button, turning on the camera includes:

[0013] When detecting a first key press and release event triggered by the user pressing and then releasing the photo-taking and word-recognition button, turn on the camera;

[0014] When detecting a second key event triggered by the user operating the photo-taking and word-recognition button, controlling the camera to perform a shooting operation includes:

[0015] When detecting a second key press and release event triggered by the user pressing and then releasing the photo-taking and word-recognition button, control the camera to perform a shooting operation.

[0016] In a possible implementation manner, when detecting a first key event triggered by the user operating the photo-taking and word-recognition button, turning on the camera includes:

[0017] When detecting a first key event triggered by the user operating the photo-taking and word-recognition button, if the information query application is not turned on in the electronic device, then turn on the information query application, turn on the photo-taking and word-recognition function in the information query application, and turn on the camera.

[0018] In a possible implementation manner, the photo-taking and querying method further includes:

[0019] When detecting a photo-taking and word-recognition cancellation operation by the user, delete the picture taken by the camera and exit the photo-taking and word-recognition function.

[0020] In a possible implementation manner, outputting relevant information about the information selected by the selection operation includes:

[0021] Display relevant information about the information selected by the selection operation on the picture taken by the camera;

[0022] Or, display relevant information about the information selected by the selection operation separately;

[0023] Alternatively, two windows are presented in split screen mode. A picture captured by the camera is shown in one window, and relevant information selected by the selection operation is shown in the other window.

[0024] In a possible implementation, the camera is disposed on the back of the electronic device;

[0025] The photo-taking and word-recognition button is disposed on the back, front or side of the electronic device.

[0026] A second aspect of the present application provides a photo-taking and querying device, which is applied to an electronic device. The electronic device is provided with a camera, a display screen and a photo-taking and word-recognition button, and the photo-taking and word-recognition button is a physical button for triggering photo-taking and word-recognition;

[0027] The photo-taking and querying device includes: an enabling module, a first display module, a shooting control module, a second display module, an information query module and a query result output module;

[0028] The enabling module is configured to turn on the camera when detecting a first button event triggered by a user operating the photo-taking and word-recognition button;

[0029] The first display module is configured to display a preview screen of the camera on the display screen;

[0030] The shooting control module is configured to control the camera to perform a shooting operation when detecting a second button event triggered by a user operating the photo-taking and word-recognition button;

[0031] The second display module is configured to directly display a picture captured by the camera on the display screen after the camera performs the shooting operation;

[0032] The information query module is configured to query the information selected by the selection operation to obtain relevant information of the information selected by the selection operation when detecting a selection operation by the user on the information in the picture captured by the camera;

[0033] The query result output module is configured to output the relevant information of the information selected by the selection operation.

[0034] A third aspect of the present application provides an electronic device, including at least one processor and a memory connected to the processor, wherein:

[0035] The memory is used for storing a computer program;

[0036] The processor is configured to execute the computer program so that the electronic device can implement the steps of any of the above photo-taking and querying methods.

[0037] In a fourth aspect of the present application, a computer storage medium is provided. The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of any of the above-mentioned photographing and querying methods.

[0038] In a fifth aspect of the present application, a computer program product is provided, including computer-readable instructions. When the computer-readable instructions run on an electronic device, the electronic device can implement the steps of any of the above-mentioned photographing and querying methods.

[0039] By means of the above technical solution, in the photographing and querying method provided by the present application, when a first key event triggered by a user operating a photographing and word-taking key is detected, the camera is turned on, and a preview screen of the camera is displayed on the display screen. After the camera is turned on, the user can aim the camera at the information to be queried and view the preview screen of the camera through the display screen. When it is confirmed that the information to be queried is located in the preview screen of the camera, the user can operate the photographing and word-taking key to trigger a second key event. When the second key event is detected, the camera is controlled to perform a shooting operation, and the picture taken by the camera is directly displayed on the display screen. Furthermore, the user can select information from the picture taken by the camera. When a selection operation of the information in the picture taken by the camera by the user is detected, the information selected by the selection operation is queried to obtain relevant information of the information selected by the selection operation, and finally the relevant information of the information selected by the selection operation is output. In the photographing and querying method provided by the present application, when a user operates a photographing and word-taking key to trigger a first key event, the camera is turned on, and when the user operates a photographing and word-taking key to trigger a second key event, the camera is controlled to perform a shooting operation, and the picture taken by the camera is directly displayed on the display screen. Furthermore, the user can select information in the displayed picture for query. It can be seen that in the photographing and querying method provided by the present application, only a simple operation of the photographing and word-taking key by the user is required to turn on the camera, shoot the information to be queried, and directly display the taken picture. Compared with the existing photographing and querying methods, the photographing and querying method provided by the present application simplifies the information query operation, improves the user operation convenience of information query, and further improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0041] Figure 1 It is a schematic hardware structure diagram of the electronic device provided by the present application;

[0042] Figure 2 It is a schematic flowchart of the photo query method provided by the embodiment of the present application;

[0043] Figure 3 It is a schematic diagram of setting the photo word-taking button on the side of the electronic device provided by the embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of setting the photo word-taking button on the back of the electronic device provided by the embodiment of the present application

[0045] Figure 5 It is a schematic flowchart of a specific example of the photo query method provided by the embodiment of the present application;

[0046] Figure 6 It is a schematic diagram of displaying relevant information of the selected information of the selection operation on the captured picture provided by the embodiment of the present application;

[0047] Figure 7 It is a schematic structural diagram of the photo query device provided by the embodiment of the present application. Detailed implementation manners

[0048] The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, rather than intended to limit the present application.

[0049] The embodiments of the present application will be described below with reference to the accompanying drawings. Those of ordinary skill in the art will know that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0050] The terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing when describing objects with the same attributes in the embodiments of the present application. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device including a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these process, method, product or device.

[0051] The photo query method provided by this application is applied to an electronic device, which can be, but is not limited to, a learning device (such as a learning machine, a dictionary pen, etc.), a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a robot, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), etc. The embodiments of this application do not make any restrictions on this.

[0052] Figure 1 Fig. shows an optional hardware structure diagram of the electronic device 100.

[0053] Refer to Figure 1 As shown, the electronic device may include a radio frequency unit 110 (optional), a memory 120, an input unit 130, a display screen 140, a camera 150, an audio circuit 160 (optional), a speaker 161 (optional), a microphone 161 (optional), a headphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190, and other components. Those skilled in the art can understand that Figure 1 This is only an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown in the figure, or combine certain components, or different components.

[0054] The input unit 130 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the electronic device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 131. The touch screen 131 can collect touch operations of the user on or near it (such as operations of the user using a finger, a joint, a stylus, or any suitable object on or near the touch screen), and drive corresponding connection devices according to a pre-set program. The touch screen can detect the touch action of the user on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive commands sent by the processor 170 and execute them; the touch signal at least includes contact coordinate information. The touch screen 131 can provide an input interface and an output interface between the electronic device and the user. In addition, multiple types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch screen. In addition to the touch screen 131, the input unit 130 may further include other input devices. Specifically, the other input devices 131 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, and the like.

[0055] The display screen 140 can be used to display information input by the user or information provided to the user, various menus of the electronic device, interactive interfaces, file displays, and / or the playback of any kind of multimedia file.

[0056] The memory 120 can be used to store instructions and data. The memory 120 mainly includes a storage instruction area and a storage data area. The storage data area can store various data, such as multimedia files, texts, etc.; the storage instruction area can store software units such as the operating system, applications, instructions required for at least one function, or their subsets and extended sets. It can also include non-volatile random access memory; it provides for the processor 170 to manage the hardware, software, and data resources in the computing processing device, support control software and applications. It is also used for the storage of multimedia files and the storage of running programs and applications.

[0057] The processor 170 is the control center of the electronic device. It connects all parts of the entire electronic device using various interfaces and lines. By running or executing the instructions stored in the memory 120 and calling the data stored in the memory 120, it executes various functions of the electronic device and processes data, thereby exercising overall control over the electronic device. Optionally, the processor 170 can include one or more processing units; preferably, the processor 170 can integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 170 either. In some embodiments, the processor and the memory can be implemented on a single chip. In some embodiments, they can also be separately implemented on independent chips. The processor 170 can also be used to generate corresponding operation control signals, send them to the corresponding components of the computing processing device, read and process the data in the software, especially read and process the data and programs in the memory 120, so that each functional module therein executes the corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.

[0058] Among them, the memory 120 can be used to store software codes related to the photo query method. The processor 170 can execute the software codes in the memory 120 or can also schedule other units (such as the above input unit 130 and the display screen 140) to achieve the corresponding functions.

[0059] The radio frequency unit 110 (optional) can be used for receiving and transmitting information or signals during a call. For example, after receiving the downlink information from the base station, it is sent to the processor 170 for processing; in addition, the uplink data designed is sent to the base station. Generally, the radio frequency unit 110 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. This wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0060] Among them, in the embodiment of this application, the radio frequency unit 110 can send data to other devices and can also receive data sent by other devices. It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.

[0061] The electronic device also includes a power supply 190 (such as a battery) for powering each component. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.

[0062] The electronic device also includes an external interface 180. This external interface can be a standard Micro USB interface or a multi-pin connector, and can be used to connect the electronic device to other devices for communication, and can also be used to connect a charger to charge the electronic device.

[0063] Although not shown, the electronic device may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which will not be elaborated here.

[0064] The processor 170 in the above-mentioned electronic device may be a hardware circuit (such as an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a general-purpose processor, a digital signal processor (DSP), a microprocessor, or a microcontroller, etc.), or a combination of these hardware circuits. For example, the processor may be a hardware system with the function of executing instructions, such as a CPU, a DSP, etc., or a hardware system without the function of executing instructions, such as an ASIC, an FPGA, etc., or a combination of the above-mentioned hardware system without the function of executing instructions and the hardware system with the function of executing instructions.

[0065] Next, the photo-taking query method provided by this application will be introduced through the following embodiments.

[0066] Please refer to Figure 2 , which shows a schematic flowchart of the photo-taking query method provided by an embodiment of this application. This photo-taking query method is applied to an electronic device. The electronic device is provided with a camera, a display screen, and a photo-taking and word-extracting button. This photo-taking query method may include:

[0067] Step S201: When detecting a first button event triggered by a user operating the photo-taking and word-extracting button, turn on the camera and display a preview screen of the camera on the display screen.

[0068] Among them, the camera may be set on the back of the electronic device, the display screen may be set on the front of the electronic device, and the photo-taking and word-extracting button is a physical button for triggering photo-taking and word-extracting. The photo-taking and word-extracting button may be set on the side of the electronic device. As Figure 3 shown, the photo-taking and word-extracting button may also be set on the back of the electronic device. As Figure 4 shown, the photo-taking and word-extracting button may also be set on the front of the electronic device. In this embodiment, the specific setting position of the photo-taking and word-extracting button is not limited. As long as a physical button for triggering photo-taking and word-extracting is set on the electronic device, it falls within the protection scope of this application.

[0069] When the user wants to query information, hold the electronic device and operate the photo-taking and word-extracting button set on the electronic device with a finger. When detecting a first button event triggered by the user operating the photo-taking and word-extracting button, turn on the camera (such as the rear camera in Figure 3 or Figure 4 ), make the camera in a preview state, and display a preview screen of the camera on the display screen of the electronic device. It should be noted that after the camera of the electronic device is turned on, the user can aim the camera of the electronic device at the information to be queried so that the information to be queried is located in the preview screen of the camera.

[0070] In this embodiment, when a first key event triggered by the user operating the photo-taking word query button is detected, if the information query application is not enabled on the electronic device, the information query application is enabled, and the photo-taking word query function in the information query application is enabled. When the photo-taking word query function in the information query application is enabled, the camera is enabled (such as Figure 3 or Figure 4 the rear camera in

[0071] ), and the preview screen of the camera is displayed on the display screen. It can be seen that when the user wants to query information, only by operating the photo-taking word query button can the information query application and the photo-taking word query function in the information query application be enabled, thus simplifying the user operation and improving the operation convenience.

[0072] Step S202: When a second key event triggered by the user operating the photo-taking word query button is detected, control the camera to perform a shooting operation, and directly display the picture taken by the camera on the display screen.

[0073] When the user sees the information to be queried in the preview screen of the camera through the display screen, the photo-taking word query button can be operated to trigger the second key event. When the second key event of the photo-taking word query button is detected, control the camera to take a picture, and directly display the picture taken by the camera on the display screen. The picture taken by the camera contains the information to be queried.

[0074] It should be noted that, in order to improve the operation convenience of the user, in this embodiment, after the camera performs the shooting operation, the picture taken by the camera is directly displayed through the display screen, without storing the picture taken by the camera in the album, local or cloud disk. In this way, after the shooting is completed, the user can directly select information in the picture, without entering the album, local or cloud disk to select the taken picture.

[0075] In a possible implementation, the first key event triggered by the user operating the photo-taking and word-recognition button can be the first key press and release event triggered by the user pressing and then releasing the photo-taking and word-recognition button. The second key event triggered by the user operating the photo-taking and word-recognition button can be the second key press and release event triggered by the user pressing and then releasing the photo-taking and word-recognition button again. That is, when the user presses and releases the photo-taking and word-recognition button, the camera is turned on. When the user presses and releases the photo-taking and word-recognition button again, the camera is controlled to take a picture, and the picture taken by the camera is directly displayed on the display screen. Of course, this embodiment is not limited thereto. For example, the first key event can also be two consecutive key press and release events, and the second key event can be one key press and release event. That is, when the user presses and releases the photo-taking and word-recognition button twice in a row, the camera is turned on. When the user presses and releases the photo-taking and word-recognition button again, the camera is controlled to take a picture, and the picture taken by the camera is directly displayed on the display screen.

[0076] Step S203: When it is detected that the user selects information in the picture taken by the camera, query the information selected by the selection operation to obtain information related to the information selected by the selection operation.

[0077] After the picture taken by the camera is displayed on the display screen, the user can select information from the picture displayed on the display screen. When it is detected that the user selects information in the picture displayed on the display screen, query the information selected by the selection operation to obtain information related to the information selected by the selection operation. In addition, when it is detected that the user selects information in the picture displayed on the display screen, the information selected by the selection operation can be highlighted (such as highlighted).

[0078] Among them, the information selected by the selection operation can be a character, a word, a phrase, a sentence, a paragraph, an article, etc. The information related to the information selected by the selection operation is information related to the information selected by the selection operation, such as the pronunciation, part of speech, meaning, antonym, synonym, source, translation, etc. of the information selected by the selection operation.

[0079] Step S204: Output the information related to the information selected by the selection operation.

[0080] In a possible implementation, the information related to the information selected by the selection operation can be displayed on the display screen, that is, the information related to the information selected by the selection operation can be output by means of display on the display screen.

[0081] It should be noted that this embodiment is not limited to outputting the information related to the information selected by the selection operation by means of display on the display screen. For example, the information related to the information selected by the selection operation can also be output by means of voice broadcast, or the information related to the information selected by the selection operation can be output simultaneously by means of display on the display screen and voice broadcast.

[0082] In actual application, after querying the information in the picture taken by the camera, the user may hope to take a new picture for query. In view of this, the photographing and querying method provided in this embodiment may further include: when detecting a user's operation of deleting the taken picture (such as a gesture operation, a screen sliding operation, an operation based on a virtual keyboard, etc.), deleting the picture taken by the camera and displaying the preview screen of the camera on the display screen.

[0083] When detecting the user's operation of deleting the taken picture, delete the picture taken by the camera (i.e., the picture currently displayed on the display screen), put the camera into the preview state, and display the preview screen of the camera on the display screen. The user can aim the camera at the new information to be queried, control the camera to take another picture by operating the photographing and word-taking button, and directly display the picture taken by the camera again on the display screen. Furthermore, the user can select information from the pictures displayed on the display screen for query.

[0084] After completing the photographing and querying, it is necessary to exit the photographing and word-taking function. In view of this, the photographing and querying method provided in this embodiment may further include: when detecting a user's operation of canceling the photographing and word-taking (such as a gesture operation, a screen sliding operation, an operation based on a virtual keyboard, etc.), deleting the picture taken by the camera and exiting the photographing and word-taking function.

[0085] The photo-taking query method provided by the embodiment of the present application, when detecting a first key event triggered by the user operating the photo-taking word extraction key, turns on the camera and displays the preview screen of the camera on the display screen. After turning on the camera, the user can aim the camera at the information to be queried and view the preview screen of the camera through the display screen. When confirming that the information to be queried is located in the preview screen of the camera, the user can operate the photo-taking word extraction key to trigger a second key event. When detecting the second key event of the photo-taking word extraction key, control the camera to perform a shooting operation and directly display the picture taken by the camera on the display screen. Furthermore, the user can select information in the picture taken by the camera. When detecting the user's selection operation on the information in the picture taken by the camera, query the selected information to obtain relevant information of the selected information, and finally output the relevant information of the selected information. The photo-taking query method provided by the embodiment of the present application turns on the camera when the user operates the photo-taking word extraction key to trigger a first key event, and controls the camera to perform a shooting operation when the user operates the photo-taking word extraction key to trigger a second key event, and directly displays the picture taken by the camera on the display screen. Furthermore, the user can select information in the displayed picture for query. It can be seen that the photo-taking query method provided by the embodiment of the present application only requires the user to simply operate the photo-taking word extraction key to realize the opening of the camera, the shooting of the information to be queried, and the direct display of the taken picture. Compared with the existing photo-taking query method, the photo-taking query method provided by the embodiment of the present application simplifies the information query operation, improves the user operation convenience of information query, and further improves the user experience.

[0086] Based on the photo-taking query method provided in the above embodiment, a specific example is further introduced to the photo-taking query method next.

[0087] Please refer to Figure 5 , which shows a specific example of the photo-taking query method applied to an electronic device (the electronic device is provided with a photo-taking word extraction key, a rear camera, and a display screen), and may include:

[0088] Step S501: When detecting a first key press and release event triggered by the user pressing and releasing the photo-taking word extraction key, turn on the rear camera and display the preview screen of the rear camera on the display screen.

[0089] When the user wants to query information, hold the electronic device, face the display screen, press and release the photo-taking word extraction key with a finger. When the photo-taking word extraction key is pressed and released, a first key press and release event will be triggered. When detecting the first key press and release event of the photo-taking word extraction key, turn on the rear camera to make the rear camera in a preview state, and display the preview screen of the rear camera on the display screen of the electronic device.

[0090] After the rear camera of the electronic device is turned on, the user can aim the rear camera of the electronic device at the information to be queried, so that the information to be queried is located in the preview screen of the rear camera.

[0091] In this embodiment, when detecting a first key press and release event triggered by the user pressing and releasing the photo-taking word query button, if the information query application is not turned on in the electronic device, the information query application is turned on, and the photo-taking word query function in the information query application is turned on. When the photo-taking word query function in the information query application is turned on, the rear camera is turned on, and the preview screen of the rear camera is displayed on the display screen. It can be seen that when the user wants to query information, the user only needs to press and release the photo-taking word query button to turn on the information query application and the photo-taking word query function in the information query application, thus simplifying the user operation.

[0092] In addition, when detecting a first key press event triggered by the user pressing and releasing the photo-taking word query button, if the information query application is turned on in the electronic device but the photo-taking word query function is not turned on, the photo-taking word query function is turned on, and the rear camera is turned on.

[0093] Step S502: When detecting a second key press and release event triggered by the user pressing and releasing the photo-taking word query button, control the rear camera to perform a shooting operation, and directly display the picture taken by the camera on the display screen.

[0094] Among them, the picture taken by the rear camera contains the information to be queried.

[0095] When the user confirms that the information to be queried is located in the preview screen of the rear camera, the user can press and release the photo-taking word query button again. At this time, the second key press and release event is triggered. When detecting the second key press and release event of the photo-taking word query button, control the rear camera to perform a shooting operation, and directly display the picture taken by the camera on the display screen.

[0096] In this embodiment, the user presses and releases the photo-taking word query button to turn on the camera. When the information to be queried is located in the preview screen of the rear camera, the user presses and releases the photo-taking word query button again. At this time, control the camera to perform a shooting operation, and directly display the taken picture on the display screen.

[0097] Step S503: When detecting the user's selection operation on the information in the picture taken by the camera, query the information selected by the selection operation to obtain the relevant information of the information selected by the selection operation.

[0098] After displaying the picture taken by the camera on the display screen, the user can select information from the picture displayed on the display screen. When detecting the user's selection operation on the information in the picture displayed on the display screen, query the information selected by the selection operation to obtain the relevant information of the information selected by the selection operation.

[0099] Step S504: Display relevant information of the information selected by the selection operation on the display screen.

[0100] There are various implementation manners for displaying relevant information of the information selected by the selection operation. In one possible implementation manner, relevant information of the information selected by the selection operation can be displayed on the picture captured by the camera. For example, Figure 6 as shown, if the user selects "creativity" on the picture captured by the camera, relevant information of "creativity" can be displayed on the picture captured by the camera. In another possible implementation manner, relevant information of the information selected by the selection operation can be displayed separately. In still another possible implementation manner, two windows can be displayed in a split screen. The picture captured by the camera is displayed in one window, and relevant information of the information selected by the selection operation is displayed in the other window.

[0101] In addition, when displaying relevant information of the information selected by the selection operation, all relevant information of the information selected by the selection operation can be displayed, or partial relevant information can be displayed. When displaying partial relevant information, an operation item for triggering the display of more information can be set on the display interface, such as Figure 6 "View More" in Figure 6 . When the user operates this operation item (such as clicking Figure 6 "View More"), other information can be displayed.

[0102] It should be noted that the above manners for displaying relevant information of the information selected by the selection operation are only examples. The present embodiment does not limit the specific display manner of relevant information of the information selected by the selection operation, and other manners for displaying relevant information of the information selected by the selection operation on the display screen are also applicable to the present application.

[0103] When it is detected that the user performs an operation to delete the captured picture, delete the picture captured by the rear camera (i.e., the picture currently displayed on the display screen), make the rear camera enter the preview state, and display the preview picture of the rear camera on the display screen. The user can aim the rear camera at new information to be queried, control the camera to capture again by operating the photo-taking and word-taking button, and directly display the picture captured again by the camera on the display screen. Furthermore, the user can select information in the picture displayed on the display screen for query.

[0104] After completing the photo-taking query, the user can perform an operation to exit the photo-taking and word-taking function. When it is detected that the user performs an operation to cancel the photo-taking and word-taking, delete the picture captured by the camera and exit the photo-taking and word-taking function.

[0105] The photographing and querying method provided by the embodiment of the present application, when the user presses and releases the photographing and word-taking button to trigger the first button press and release event, turns on the rear camera and displays the preview screen of the rear camera on the display screen. After the rear camera is turned on, the user can aim the rear camera at the information to be queried and view the preview screen of the rear camera through the display screen. When it is confirmed that the information to be queried is located in the preview screen, the user can press and release the photographing and word-taking button again to trigger the second button press and release event. When the button press and release event of the photographing and word-taking button is detected, control the rear camera to perform a photographing operation and directly display the picture taken by the rear camera on the display screen. Furthermore, the user can select information from the picture taken by the rear camera. When the selection operation of the information in the picture taken by the rear camera is detected by the user, query the information selected by the selection operation to obtain the relevant information of the information selected by the selection operation, and finally output the relevant information of the information selected by the selection operation. The photographing and querying method provided by the embodiment of the present application turns on the camera when the user presses and releases the photographing and word-taking button, controls the camera to perform a photographing operation when the user presses and releases the photographing and word-taking button again, and directly displays the picture taken by the camera on the display screen. Furthermore, the user can select information from the displayed picture for query. It can be seen that the photographing and querying method provided by the embodiment of the present application only requires the user to simply operate the photographing and word-taking button to realize the turning on of the camera, the photographing of the information to be queried, and the direct display of the taken picture. Compared with the existing photographing and querying methods, the photographing and querying method provided by the embodiment of the present application simplifies the information query operation, improves the user operation convenience of information query, and further improves the user experience.

[0106] The embodiment of the present application also provides a device for executing the photographing and querying method provided by the above embodiment.

[0107] Please refer to Figure 7 , Figure 7 which is a schematic structural diagram of a photographing and querying device provided by the embodiment of the present application. The photographing and querying device is applied to an electronic device. The electronic device is provided with a camera, a display screen, and a photographing and word-taking button. The photographing and word-taking button is a physical button for triggering photographing and word-taking. The photographing and querying device may include: an enabling module 701, a first display module 702, a photographing control module 703, a second display module 704, an information query module 705, and a query result output module 706.

[0108] The enabling module 701 is configured to turn on the camera when detecting a first button event triggered by a user operating the photographing and word-taking button.

[0109] The first display module 702 is configured to display the preview screen of the camera on the display screen.

[0110] The shooting control module 703 is used to control the camera to perform a shooting operation when a second button event triggered by the user's operation of the photographing and word-taking button is detected.

[0111] The second display module 704 is used to directly display the picture taken by the camera on the display screen after the camera performs a shooting operation.

[0112] The information query module 705 is used to query the information selected by the selection operation when a selection operation of the information in the picture taken by the camera is detected by the user, so as to obtain the relevant information of the information selected by the selection operation.

[0113] The query result output module 706 is used to output the relevant information of the information selected by the selection operation.

[0114] In a possible implementation manner, the first button event triggered by the user's operation of the photographing and word-taking button may be a first button press and release event triggered by the user pressing and releasing the photographing and word-taking button, and the second button event triggered by the user's operation of the photographing and word-taking button may be a second button press and release event triggered by the user pressing and releasing the photographing and word-taking button.

[0115] When the activation module 701 detects a first button press and release event triggered by the user pressing and releasing the photographing and word-taking button, it activates the camera.

[0116] When the shooting control module 703 detects a second button press and release event triggered by the user pressing and releasing the photographing and word-taking button, it controls the camera to perform a shooting operation.

[0117] In a possible implementation manner, when a first button event triggered by the user's operation of the photographing and word-taking button is detected, if the information query application is not activated on the electronic device, the activation module 701 activates the information query application, activates the photographing and word-taking function in the information query application, and activates the camera.

[0118] In a possible implementation manner, the photographing query device may further include: a photographed picture deletion module and a photographing and word-taking function exit module.

[0119] When a photographing and word-taking cancellation operation by the user is detected, the photographed picture deletion module deletes the picture taken by the camera, and the photographing and word-taking function exit module exits the photographing and word-taking function.

[0120] In a possible implementation manner, when the query result output module 706 outputs the relevant information of the information selected by the selection operation, it is specifically used for:

[0121] Display the relevant information of the information selected by the selection operation on the picture taken by the camera;

[0122] Or, display the relevant information of the information selected by the selection operation separately;

[0123] Alternatively, two windows are displayed in a split-screen manner. A picture captured by the camera is displayed in one window, and relevant information selected by the selection operation is displayed in the other window.

[0124] In a possible implementation, the camera is disposed on the back of the electronic device; the photographing and word-taking button is disposed on the back, front, or side of the electronic device.

[0125] When the photographing and querying device provided by the embodiment of the present application triggers a first key event by the user operating the photographing and word-taking button, the camera is turned on. When the user operates the photographing and word-taking button to trigger a second key event, the camera is controlled to perform a photographing operation, and the picture captured by the camera is directly displayed on the display screen. Furthermore, the user can select information in the displayed picture for querying. It can be seen that the photographing and querying device provided by the embodiment of the present application only requires the user to simply operate the photographing and word-taking button to achieve the turning on of the camera, the photographing of the information to be queried, and the direct display of the captured picture. Compared with the existing photographing and querying solutions, the photographing and querying device provided by the embodiment of the present application simplifies the information query operation, improves the convenience of user operation for information query, and further improves the user experience.

[0126] The embodiment of the present application further provides an electronic device, which may include: at least one processor and a memory connected to the processor.

[0127] The processor may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiment of the present application, etc.; the memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0128] Among them, the memory is used to store a computer program, and the processor is used to execute the computer program so that the electronic device can implement the steps of the photographing and querying method provided by the above embodiment.

[0129] The embodiment of the present application further provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device can implement the steps of the photographing and querying method provided by the above embodiment.

[0130] The embodiment of the present application further provides a computer program product, which includes computer-readable instructions. When the computer-readable instructions run on the electronic device, the electronic device can implement the steps of the photographing and querying method provided by the above embodiment.

[0131] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided in this application, the connection relationships between the modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.

[0132] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be various, such as analog circuits, digital circuits or dedicated circuits. However, for this application, in more cases, software program implementation is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disc of a computer, and includes several instructions for causing a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of this application.

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0134] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Claims

1. A photo query method, characterized in that, Applied to an electronic device, the electronic device is provided with a camera, a display screen, and a photo-taking and word-recognition button, and the photo-taking and word-recognition button is a physical button for triggering photo-taking and word-recognition; The photo-taking and querying method includes: When detecting a first button event triggered by a user operating the photo-taking and word-recognition button, turn on the camera and display a preview screen of the camera on the display screen; When detecting a second button event triggered by a user operating the photo-taking and word-recognition button, control the camera to perform a shooting operation and directly display the picture taken by the camera on the display screen; When detecting a selection operation by the user on the information in the picture taken by the camera, query the information selected by the selection operation to obtain relevant information of the information selected by the selection operation; Output the relevant information of the information selected by the selection operation.

2. The photographing and querying method according to claim 1, wherein The step of "when detecting a first button event triggered by a user operating the photo-taking and word-recognition button, turn on the camera" includes: When detecting a first button press-and-release event triggered by a user pressing and releasing the photo-taking and word-recognition button, turn on the camera; The step of "when detecting a second button event triggered by a user operating the photo-taking and word-recognition button, control the camera to perform a shooting operation" includes: When detecting a second button press-and-release event triggered by a user pressing and releasing the photo-taking and word-recognition button, control the camera to perform a shooting operation.

3. The photographing and querying method according to claim 1, wherein The step of "when detecting a first button event triggered by a user operating the photo-taking and word-recognition button, turn on the camera" includes: When detecting a first button event triggered by a user operating the photo-taking and word-recognition button, if the information query application is not turned on in the electronic device, turn on the information query application, turn on the photo-taking and word-recognition function in the information query application, and turn on the camera.

4. The photographing and querying method according to claim 3, wherein It further includes: When detecting a photo-taking and word-recognition cancellation operation by the user, delete the picture taken by the camera and exit the photo-taking and word-recognition function.

5. The photographing query method according to claim 1, wherein The step of "output the relevant information of the information selected by the selection operation" includes: Display the relevant information of the information selected by the selection operation on the picture taken by the camera; Or, display the relevant information of the information selected by the selection operation separately; Or, display two windows in a split screen, display the picture taken by the camera in one window, and display the relevant information of the information selected by the selection operation in the other window.

6. The photographing and querying method according to claim 1, wherein The camera is disposed on the back of the electronic device; The photo-taking and word-recognition button is disposed on the back, front, or side of the electronic device.

7. A photographing and querying device, characterized in that, Applied to an electronic device, the electronic device is provided with a camera, a display screen, and a photo-taking and word-recognition button, and the photo-taking and word-recognition button is a physical button for triggering photo-taking and word-recognition; The photo-taking and querying device includes: an opening module, a first display module, a shooting control module, a second display module, an information query module, and a query result output module; The opening module is configured to turn on the camera when detecting a first button event triggered by a user operating the photo-taking and word-recognition button; The first display module is configured to display a preview screen of the camera on the display screen; The shooting control module is configured to control the camera to perform a shooting operation when detecting a second key event triggered by a user operating the photographing and word-taking key; The second display module is configured to directly display the picture captured by the camera on the display screen after the camera performs the shooting operation; The information query module is configured to query the information selected by the selection operation when detecting a user's selection operation on the information in the picture captured by the camera, so as to obtain relevant information of the information selected by the selection operation; The query result output module is configured to output the relevant information of the information selected by the selection operation.

8. An electronic device, characterized in that, Comprising at least one processor and a memory connected to the processor, wherein: The memory is used for storing computer programs; The processor is configured to execute the computer programs so that the electronic device can implement the steps of the photographing and querying method as described in any one of claims 1 to 6.

9. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the steps of the photographing and querying method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Comprising computer-readable instructions, when the computer-readable instructions run on an electronic device, the electronic device can implement the steps of the photographing and querying method as described in any one of claims 1 to 6.