Information query method and related device

Through the combination of camera and information selection keys, information query without keyboard input is realized, the problems of low entry efficiency and inconvenient operation in the prior art are solved, and the efficiency and convenience of information query are improved.

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

Patent Information

Application Number
CN202510538704.2
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 information query method requires users to enter the information to be queried through the keyboard, resulting in low efficiency and inconvenient operation.

Method used

The camera and information selection key combination is used to control the camera to enable preview, lock target information and query, and output relevant information by detecting key events.

Benefits of technology

It improves the efficiency of entering information to be queried, improves the user operation convenience of information query, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372041A_ABST
    Figure CN120372041A_ABST
Patent Text Reader

Abstract

The invention discloses an information query method and a related device, and relates to the technical field of information query, the information query method is applied to electronic equipment, the electronic equipment is provided with a camera, a display screen and an information selection key, and the information selection key is a physical key for triggering information selection and query. The information query method comprises the steps that when a first key event triggered by a user operation information selection key is detected, a camera is started, a preview picture of the camera is displayed on a display screen, and when a second key event triggered by the user operation information selection key is detected, target information is locked by controlling the camera to execute shooting operation. And querying the target information to obtain related information of the target information, and outputting the related information of the target information. According to the information query method disclosed by the invention, the input efficiency of the to-be-queried information is improved, the convenience of information query is improved, and the user experience is greatly 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 an information query method and related device. 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 meaning, query an English sentence to obtain its Chinese meaning, query an ancient poem to obtain its translation, and so on.

[0003] The current information query method is to obtain the information to be queried input by the user through a keyboard (physical keyboard or virtual keyboard), and then query the information input by the user to obtain the query result of the user input information, that is, the relevant information of the user input information.

[0004] The current information query method requires the user to enter the information to be queried through the keyboard, and the efficiency of entering the information to be queried through the keyboard is low, and it is inconvenient for the user to operate. Summary of the Invention

[0005] In view of this, this application provides an information query method and related device to solve the problems of low information input efficiency and inconvenient user operation caused by the current information query method that requires the user to enter the information to be queried through the keyboard. The technical solution is as follows:

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

[0007] The information query method includes:

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

[0009] When detecting a second button event triggered by the user operating the information selection button, lock the target information by controlling the camera to perform a shooting operation, and query the target information to obtain relevant information of the target information;

[0010] Output the relevant information of the target information.

[0011] In a possible implementation manner, the preview screen includes an information selection box;

[0012] The target information is the information selected by the information selection box in the picture captured by the camera.

[0013] In a possible implementation, when detecting a first key event triggered by a user operating the information selection key, turning on the camera includes:

[0014] When detecting a key press event triggered by a user pressing the information selection key, turning on the camera;

[0015] When detecting a second key event triggered by a user operating the information selection key, locking the target information by controlling the camera to perform a shooting operation, and querying the target information includes:

[0016] When detecting a key release event triggered by a user releasing the information selection key, locking the target information by controlling the camera to perform a shooting operation, and querying the target information.

[0017] In a possible implementation, when detecting a first key event triggered by a user operating the information selection key, turning on the camera includes:

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

[0019] In a possible implementation, after detecting a first key event triggered by a user operating the information selection key and before detecting a second key event triggered by a user operating the information selection key, it further includes:

[0020] Obtaining relevant information of the information selected by the information selection frame in the preview screen, and displaying the relevant information of the information selected by the information selection frame in the preview screen;

[0021] Wherein, the information selected by the information selection frame in the preview screen and the relevant information of the information selected by the information selection frame in the preview screen change with the change of the position of the information selection frame.

[0022] In a possible implementation, outputting the relevant information of the target information includes:

[0023] Displaying the relevant information of the target information on the display screen.

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

[0025] The information selection key is disposed on the back, front or side of the electronic device.

[0026] The second aspect of the present application provides an information query device, which is applied to an electronic device. The electronic device is provided with a camera, a display screen, and an information selection button, and the information selection button is a physical button for triggering information selection and query.

[0027] The information query device includes: an activation module, a preview screen display module, a query information locking module, an information query module, and a query result output module.

[0028] The activation module is used to activate the camera when detecting a first button event triggered by a user operating the information selection button.

[0029] The preview screen display module is used to display the preview screen of the camera on the display screen.

[0030] The query information locking module is used to lock the target information by controlling the camera to perform a shooting operation when detecting a second button event triggered by a user operating the information selection button.

[0031] The information query module is used to query the target information to obtain relevant information of the target information.

[0032] The query result output module is used to output the relevant information of the target information.

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

[0034] The memory is used to store a computer program.

[0035] The processor is used to execute the computer program so that the electronic device can implement the steps of any of the above information query methods.

[0036] The fourth aspect of the present application provides a computer storage medium, and the storage medium carries one or more computer programs. 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 information query methods.

[0037] The fifth aspect of the present application provides a computer program product, 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 information query methods.

[0038] With the above technical solution, when the user operates the information selection button to trigger the first button event, the camera is turned on, and the 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 information selection button to trigger the second button event. When the second button event is detected, the camera is controlled to perform a shooting operation to lock the information to be queried, that is, the target information, and the target information is queried to obtain relevant information about the target information, and then the relevant information of the target information is output. The information query method provided by this application turns on the camera to select the information to be queried when the user operates the information selection button to trigger the first button event, and locks the information to be queried when the user operates the information selection button to trigger the second button event, completes the selection of the information to be queried, and queries the information to be queried. The information query method provided by this application only requires the user to simply operate the information selection button to realize the input and query of the information to be queried. Compared with the existing information query methods, the information query method provided by this application improves the input efficiency of the information to be queried, enhances the user operation convenience of information query, and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] 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 use in 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.

[0040] Figure 1 It is a schematic diagram of a hardware structure of an electronic device provided by this application;

[0041] Figure 2 It is a schematic flowchart of the information query method provided by an embodiment of this application;

[0042] Figure 3 It is a schematic diagram of the setting positions of the camera, the information selection button and the display screen of the electronic device provided by an embodiment of this application;

[0043] Figure 4 It is a schematic diagram of the information selection box in the preview screen provided by an embodiment of this application;

[0044] Figure 5 It is a schematic flowchart of a specific example of the information query method provided by an embodiment of this application;

[0045] Figure 6Schematic diagram of relevant information for presenting target information provided by an embodiment of the present application;

[0046] Figure 7 For clicking Figure 6 Schematic diagram for presenting more dictionary content when "View More Dictionary Content" in

[0047] Figure 8 Schematic structural diagram of an information query device provided by an 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 embodiment part of the present application are only for explaining the specific embodiments of the present application, rather than aiming 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 "comprising" and "having" 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 processes, methods, products or devices.

[0051] The information query method provided by the present application is applied to an electronic device, which may 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 the present application do not make any restrictions on this.

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

[0053] Refer to Figure 1As 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 have 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 actions of the user on the touch screen, convert the touch actions into touch signals and send them to the processor 170, and can receive and execute the commands sent by the processor 170; the touch signals at least include 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, various 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 also include other input devices. Specifically, the other input devices 131 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.

[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, an interactive interface, file display, and / or the playback of any 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 an operating system, applications, instructions required for at least one function, or their subsets or extended sets. It may also include a non-volatile random access memory; it provides the processor 170 with management of the hardware, software, and data resources in the computing processing device, supports 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, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing instructions stored in the memory 120 and invoking data stored in the memory 120, it performs various functions of the electronic device and processes data, thereby exercising overall control over the electronic device. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be separately implemented on independent chips. The processor 170 can also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein executes 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 information query method. The processor 170 can execute the software codes in the memory 120 or can also schedule other units (such as the above-mentioned input unit 130 and the display screen 140) to implement 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 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 via 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 supplying power to 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, or can be used to connect a charger to charge the electronic device.

[0063] Although not shown, the electronic device may also include a flash, 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 information 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 information query method provided by the embodiment of this application. This information query method is applied to an electronic device. The electronic device is provided with a camera, a display screen, and an information selection button. The information query method includes:

[0067] Step S201: When detecting a first button event triggered by a user operating the information selection button, turn on the camera and display a preview screen of the camera on the display screen.

[0068] Among them, the camera can be set on the back of the electronic device, the display screen can be set on the front of the electronic device, and the information selection button is a physical button for triggering information selection and query. The information selection button can be set on the back of the electronic device.

[0069] It should be noted that this embodiment does not limit the information selection button to be set on the back of the electronic device. For example, the information selection button can also be set on the front of the electronic device or on the side of the electronic device.

[0070] In order to enable the user to conveniently operate the information selection button when holding the electronic device, the information selection button is preferably set on the back of the electronic device. Please refer to Figure 3 , Figure 3 , which shows a schematic diagram of the setting positions of the camera, the information selection button, and the display screen of the electronic device. Figure 3 In, the camera and the information selection button are set on the back of the electronic device. The camera and the information selection button are respectively connected to the main board installed in the inner cavity of the electronic device housing, and the display screen is set on the front of the electronic device.

[0071] In this embodiment, when a first key event triggered by a user operation information selection key is detected, if the information query application is not enabled on the electronic device, the information query application is enabled, and the photographing information acquisition function in the information query application is enabled. When the photographing information acquisition function in the information query application is enabled, the camera is enabled (for example, Figure 3 the rear camera in

[0072] ), and a preview screen of the camera is displayed on the display screen. It can be seen that when the user wants to query information, the user only needs to operate the information selection key to enable the information query application and the photographing information acquisition function in the information query application, thus simplifying the user operation. Figure 3 ), and the camera is enabled (for example,

[0073] the rear camera in

[0074] ), so that the camera is in a preview state, and a preview screen of the camera is displayed on the display screen of the electronic device. Figure 4 It should be noted that after the camera of the electronic device is enabled, the user can align the camera of the electronic device with the information to be queried, so that the information to be queried is located in the preview screen of the camera.

[0075] Step S202: When a second key event triggered by a user operation information selection key is detected, the target information is locked by controlling the camera to perform a shooting operation, and the target information is queried to obtain relevant information about the target information.

[0076] Among them, the target information is the information to be queried. The target information in this embodiment can be words, phrases, sentences, paragraphs, articles, etc. in any language. The relevant information of the target information is the information related to the target information, such as pronunciation, part of speech, meaning, synonyms, antonyms, translations, etc.

[0077] As mentioned above, the preview screen of the camera may include an information selection box. When the user confirms that the information to be queried is within the information selection box in the preview screen of the camera, the user can operate the information selection button to trigger a second button event. When the second button event of the information selection button is detected, the camera is controlled to perform a shooting operation to lock the information to be queried (the information within the information selection box in the picture taken by the camera), so as to complete the selection of the information to be queried and query the information to be queried. It should be noted that in this embodiment, when the second button event of the information selection button is detected, the selection of the information to be queried and the query of the information to be queried are completed.

[0078] As mentioned above, the preview screen of the camera may not include an information selection box. In this case, when the user confirms that the information to be queried is within the preview screen of the camera, the user can operate the information selection button to trigger a second button event. When the second button event of the information selection button is detected, the camera is controlled to perform a shooting operation to lock the information to be queried, so as to complete the selection of the information to be queried (the information in the picture taken by the camera) and query the information to be queried.

[0079] In a possible implementation, the first button event triggered by the user operating the information selection button may be a button press event triggered by the user pressing the information selection button, and the second button event triggered by the user operating the information selection button may be a button release event triggered by the user releasing the information selection button. That is, when the user presses the information selection button, the camera is turned on to select the information to be queried, and when the user releases the information selection button, the information to be queried is locked, the selection of the information to be queried is completed, and the information to be queried is queried. Of course, this embodiment is not limited thereto. For example, the first button event triggered by the user operating the information selection button may be a first button press and release event triggered by the user pressing and releasing the information selection button, and the second button event triggered by the user operating the information selection button may be a second button press and release event triggered by the user pressing and releasing the information selection button. That is, when the user presses and releases the information selection button, the camera is turned on to select the information to be queried, and when the user presses and releases the information selection button again, the information to be queried is locked, the selection of the information to be queried is completed, and the information to be queried is queried.

[0080] Step S203: Output relevant information of the target information.

[0081] In a possible implementation, the relevant information of the target information can be displayed on the display screen, that is, the relevant information of the target information can be output by means of display on the display screen.

[0082] It should be noted that this embodiment does not limit the output method of the relevant information of the target information to be displayed on the display screen. For example, the relevant information of the target information can also be output by voice broadcast, or the relevant information of the target information can be output by both the display screen display method and the voice playback method at the same time.

[0083] In the information query method provided by the embodiment of the present application, when the user operates the information selection button to trigger the first button event, the camera is turned on, and the 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 information selection button to trigger the second button event. When the second button event is detected, the camera is controlled to perform a shooting operation to lock the information to be queried, that is, the target information, and the target information is queried to obtain the relevant information of the target information, and then the relevant information of the target information is output. In the information query method provided by the embodiment of the present application, when the user operates the information selection button to trigger the first button event, the camera is turned on to select the information to be queried. When the user operates the information selection button to trigger the second button event, the information to be queried is locked, the selection of the information to be queried is completed, and the information to be queried is queried. The information query method provided by the embodiment of the present application only requires the user to simply operate the information selection button to realize the input and query of the information to be queried. Compared with the existing information query methods, the information query method provided by the embodiment of the present application improves the input efficiency of the information to be queried, enhances the user operation convenience of information query, and greatly improves the user experience.

[0084] Based on the information query method provided in the above embodiment, a specific example is used to further introduce the information query method.

[0085] Please refer to Figure 5 , which shows a specific example of the information query method applied to an electronic device (the electronic device is provided with an information selection button, a rear camera and a display screen), and may include:

[0086] Step S501: When a button press event triggered by the user pressing the information selection button is detected, turn on the rear camera and display the preview screen of the rear camera on the display screen.

[0087] Among them, the preview screen of the rear camera contains an information selection frame.

[0088] When the user wants to query information, hold the handheld electronic device, face the display screen, and press the information selection button with a finger. When the information selection button is pressed, a button press event will be triggered. When the button press event of the information selection button is detected, turn on the rear camera so that the rear camera is in the preview state, and display the preview image of the rear camera on the display screen of the electronic device.

[0089] 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 within the information selection frame in the preview image of the rear camera.

[0090] In this embodiment, when the button press event triggered by the user pressing the information selection button is detected, if the information query application is not turned on in the electronic device, then turn on the information query application and turn on the photo-taking information function in the information query application. When the photo-taking information function in the information query application is turned on, turn on the rear camera and display the preview image of the rear camera on the display screen. It can be seen that when the user wants to query information, only need to press the information selection button to turn on the information query application and the photo-taking information function in the information query application, thus simplifying the user operation.

[0091] In addition, when the button press event triggered by the user pressing the information selection button is detected, if the information query application is turned on in the electronic device but the photo-taking information function is not turned on, then turn on the photo-taking information function and turn on the rear camera.

[0092] Optionally, the information query method provided in this embodiment may further include: obtaining the relevant information of the information selected by the information selection frame in the preview image of the rear camera, and displaying the relevant information of the information selected by the information selection frame in the preview image of the rear camera.

[0093] It should be noted that when the user operates the electronic device to select the information to be queried, the user usually moves the electronic device so that the information to be queried is within the information selection frame in the preview image of the rear camera. It can be understood that when the user moves the electronic device, the information selection frame will move with the movement of the electronic device. Furthermore, the information selection frame will select different information. Correspondingly, the relevant information of different information will be displayed in the preview image of the rear camera. That is, the information selected by the information selection frame in the preview image of the rear camera (i.e., the information within the information selection frame) and the relevant information of the information selected by the information selection frame in the preview image will change with the change of the position of the information selection frame. For example, the information selected by the information selection frame in the preview image of the rear camera is word A, and the relevant information of word A is displayed in the preview image. When the information selection frame moves so that the selected information becomes word B, the relevant information of word B is displayed in the preview image.

[0094] Step S502: When a key release event triggered by the user releasing the information selection key is detected, control the rear camera to perform a shooting operation to lock the target information, and query the target information to obtain relevant information about the target information.

[0095] When the user confirms that the information to be queried is within the information selection box in the preview screen of the rear camera, the user can release the information selection key. At this time, the key returns, triggering a key release event. When the key release event of the information selection key is detected, control the rear camera to perform a shooting operation to lock the target information (i.e., the information selected by the information selection box), and query the target information to obtain relevant information about the target information.

[0096] In this embodiment, the user presses the information selection key to turn on the camera to select the information to be queried, and the user releases the information selection key to lock the information to be queried, completing the selection of the information to be queried and querying the information to be queried.

[0097] Step S503: Display the relevant information of the target information on the display screen.

[0098] Please refer to Figure 6 , which shows a schematic diagram of displaying the relevant information of the target information on the display screen. It should be noted that when displaying the relevant information of the target information, all the relevant information of the target information can be displayed on the query result display interface. Considering that in some cases, all the relevant information of the target information is relatively large, some information can be displayed on the query result display interface, and an operation item for triggering the display of more information can be set on the query result display interface. When the user operates this operation item (such as clicking on this operation item), other information is displayed. As Figure 6 shown, when the user clicks "View More Dictionary Content", other dictionary content can be displayed, as Figure 7 shown.

[0099] In the information query method provided by the embodiment of the present application, when the user presses the information selection button to trigger a button press event, the rear camera is turned on, and the preview screen of the rear camera is displayed 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 within the information selection box in the preview screen, the user can release the information selection button to trigger a button release event. When the button release event is detected, the camera is controlled to perform a shooting operation to lock the information to be queried, that is, the target information, and the target information is queried to obtain relevant information about the target information, and then the relevant information of the target information is displayed on the display screen. In the information query method provided by the embodiment of the present application, when the user presses the information selection button, the rear camera is turned on to select the information to be queried. When the user releases the information selection button, the information to be queried is locked, the selection of the information to be queried is completed, and the information to be queried is queried. The information query method provided by the embodiment of the present application only requires the user to press and release the information selection button to realize the input and query of the information to be queried. Compared with the existing information query methods, the information query method provided by the embodiment of the present application improves the input efficiency of the information to be queried, enhances the user operation convenience of information query, and greatly improves the user experience.

[0100] The embodiment of the present application also provides a device for executing the information query method provided by the above embodiment.

[0101] Please refer to Figure 8 , Figure 8 FIG. 10 is a schematic structural diagram of an information query device provided by an embodiment of the present application. The information query device is applied to an electronic device. The electronic device is provided with a camera, a display screen, and an information selection button. The information selection button is a physical button for triggering information selection and query. The information query device may include: an activation module 801, a preview screen display module 802, a query information locking module 803, an information query module 804, and a query result output module 805.

[0102] The activation module 801 is configured to turn on the camera when a first button event triggered by the user operating the information selection button is detected.

[0103] The preview screen display module 802 is configured to display the preview screen of the camera on the display screen.

[0104] The query information locking module 803 is configured to lock the target information by controlling the camera to perform a shooting operation when a second button event triggered by the user operating the information selection button is detected.

[0105] The information query module 804 is configured to query the target information to obtain relevant information about the target information.

[0106] A query result output module 805 for outputting relevant information of the target information.

[0107] In a possible implementation, the preview screen includes an information selection box, and the target information is the information selected by the information selection box in the image captured by the camera.

[0108] In a possible implementation, the first key event triggered by the user operating the information selection key is the key press event triggered by the user pressing the information selection key, and the second key event triggered by the user operating the information selection key is the key release event triggered by the user releasing the information selection key.

[0109] When the activation module 801 detects the key press event triggered by the user pressing the information selection key, it activates the camera; when the query information locking module 803 detects the key release event triggered by the user releasing the information selection key, it locks the target information by controlling the camera to perform a shooting operation.

[0110] In a possible implementation, when detecting the first key event triggered by the user operating the information selection key, if the electronic device has not activated the information query application, the activation module 801 activates the information query application, activates the photo-taking and information function in the information query application, and activates the camera.

[0111] In a possible implementation, the information query device may further include: an information acquisition and display module.

[0112] The information acquisition and display module is used to acquire relevant information of the information selected by the information selection box in the preview screen and display the relevant information of the information selected by the information selection box in the preview screen.

[0113] Among them, the information selected by the information selection box in the preview screen and the relevant information of the information selected by the information selection box in the preview screen change with the change of the position of the information selection box.

[0114] In a possible implementation, when the query result output module 805 outputs the relevant information of the target information, it is specifically used for:

[0115] Displaying the relevant information of the target information on the display screen.

[0116] In a possible implementation, the camera is disposed on the back of the electronic device, and the information selection key is disposed on the back, front or side of the electronic device.

[0117] The information query device provided by the embodiment of the present application, when the user operates the information selection button to trigger the first button event, turns on the camera to select the information to be queried. When the user operates the information selection button to trigger the second button event, locks the information to be queried, completes the selection of the information to be queried, and queries the information to be queried. The information query device provided by the embodiment of the present application only requires the user to simply operate the information selection button to realize the input and query of the information to be queried. Compared with the existing information query solutions, the information query device provided by the embodiment of the present application improves the input efficiency of the information to be queried, enhances the user operation convenience of information query, and greatly improves the user experience.

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

[0119] 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 embodiments of the present application, etc.; the memory may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.

[0120] Wherein, 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 information query method provided by the above embodiment.

[0121] The embodiment of the present application also provides a computer storage medium, and the storage medium carries one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device can be enabled to implement the steps of the information query method provided by the above embodiment.

[0122] The embodiment of the present application also provides a computer program product, including computer-readable instructions. When the computer-readable instructions run on the electronic device, the electronic device can be enabled to implement the steps of the information query method provided by the above embodiment.

[0123] In addition, 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 relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.

[0124] 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-purpose hardware. 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 diverse, 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 makes a contribution 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 to enable 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.

[0125] 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.

[0126] 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 by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or 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)), etc.

Claims

1. An information query method, characterized in that, Applied to an electronic device, the electronic device is provided with a camera, a display screen and an information selection button, and the information selection button is a physical button for triggering information selection and query; The information query method includes: When detecting a first button event triggered by a user operating the information selection 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 information selection button, lock the target information by controlling the camera to perform a shooting operation, and query the target information to obtain relevant information of the target information; Output the relevant information of the target information.

2. The information query method according to claim 1, wherein An information selection box is included in the preview screen; The target information is the information selected by the information selection box in the picture captured by the camera.

3. The information query method according to claim 1, wherein The step of "when detecting a first button event triggered by a user operating the information selection button, turn on the camera" includes: When detecting a button pressing event triggered by a user pressing the information selection button, turn on the camera; The step of "when detecting a second button event triggered by a user operating the information selection button, lock the target information by controlling the camera to perform a shooting operation, and query the target information" includes: When detecting a button release event triggered by a user releasing the information selection button, lock the target information by controlling the camera to perform a shooting operation, and query the target information.

4. The information query method according to claim 1, wherein The step of "when detecting a first button event triggered by a user operating the information selection button, turn on the camera" includes: When detecting a first button event triggered by a user operating the information selection 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 information function in the information query application, and turn on the camera.

5. The information query method according to claim 2, wherein After detecting a first button event triggered by a user operating the information selection button and before detecting a second button event triggered by a user operating the information selection button, it further includes: Obtain the relevant information of the information selected by the information selection box in the preview screen, and display the relevant information of the information selected by the information selection box in the preview screen; Among them, the information selected by the information selection box in the preview screen and the relevant information of the information selected by the information selection box in the preview screen change with the change of the position of the information selection box.

6. The information query method according to claim 1, wherein The step of "output the relevant information of the target information" includes: Display the relevant information of the target information on the display screen.

7. The information query method according to claim 1, wherein The camera is arranged on the back of the electronic device; The information selection button is arranged on the back, front or side of the electronic device.

8. An information query device, characterized in that, Applied to an electronic device, the electronic device is provided with a camera, a display screen and an information selection button, and the information selection button is a physical button for triggering information selection and query; The information query device includes: an opening module, a preview screen display module, a query information locking module, an information query module and a query result output module; The activation module is configured to activate the camera when a first key event triggered by a user operating the information selection key is detected; The preview screen display module is configured to display a preview screen of the camera on the display screen; The query information locking module is configured to lock target information by controlling the camera to perform a shooting operation when a second key event triggered by a user operating the information selection key is detected; The information query module is configured to query the target information to obtain relevant information of the target information; The query result output module is configured to output the relevant information of the target information.

9. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is configured to execute the computer programs so that the electronic device can implement the steps of the information query method described in any one of claims 1 to 7.

10. 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 information query method described in any one of claims 1 to 7.

11. A computer program product, characterized in that, It includes computer-readable instructions, and when the computer-readable instructions run on an electronic device, the electronic device can implement the steps of the information query method described in any one of claims 1 to 7.