Data interaction method for portable electronic equipment and related product
Through portable electronic devices combined with cameras and microphones, scanned images and voice data are acquired, and large model processing is used to solve the problem of a single input method in the existing technology and achieve a more accurate response and personalized user experience.
Patent Information
- Application Number
- CN202410889979.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-01
AI Technical Summary
Existing portable electronic devices have a single input method, cannot make full use of artificial intelligence technology, and cannot meet users' search demands, resulting in fixed query results that cannot meet users' personalized needs.
By combining cameras and microphones in portable electronic devices, a multi-input mode graphical user interface is provided to acquire scanned images and voice data, and comprehensively process them through pre-built large models to provide more accurate feedback results.
It achieves more accurate response results and improves user experience. The simple graphical user interface is more suitable for portable devices, meets the user's needs for multiple input methods, and provides personalized reply content.
Smart Images

Figure CN118733182A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of terminal technology, and more specifically, embodiments of the present invention relate to a data interaction method for a portable electronic device, and a portable electronic device and a computer-readable storage medium for executing the aforementioned method. Background Art
[0002] This section is intended to provide background or context for the embodiments of the invention set forth in the claims. The descriptions herein may include concepts that may be explored, but not necessarily concepts that have been previously thought of or explored. Therefore, unless otherwise noted herein, the content described in this section is not prior art with respect to the specification and claims of this application, and is not admitted to be prior art by inclusion in this section.
[0003] In education and learning scenarios, using learning tools such as portable electronic devices to assist learning can assist users in learning to a certain extent. With the development of artificial intelligence technology, the current portable electronic devices have been upgraded to a certain extent in terms of application functions through technology empowerment. However, the current limitations of the input mode of application functions do not fully utilize the advantages of artificial intelligence technology and cannot meet the search needs of users. Summary of the invention
[0004] Known data interaction methods are subject to the limitations of application function models, and the response results obtained by using a single input method cannot meet the needs of users.
[0005] To this end, there is a great need for an improved data interaction method for portable electronic devices, so that the input information of the portable electronic devices can be better combined with artificial intelligence technology to meet the user's search demands and improve the user's experience in using the portable electronic devices.
[0006] In this context, embodiments of the present invention are intended to provide a data interaction method for a portable electronic device, a portable electronic device, and a computer-readable storage medium.
[0007] In a first aspect of an embodiment of the present invention, a data interaction method for a portable electronic device is proposed. The portable electronic device includes a first camera and a microphone, and the first camera is used for scanning. The method includes: when it is determined that the portable electronic device is in a first mode, displaying a first graphical user interface; when it is detected that the first camera is started, automatically switching the display from the first graphical user interface to a second graphical user interface, and obtaining at least one scanned image collected by the first camera and first voice data collected by the microphone through the second graphical user interface; detecting a first submission input, and the first submission input is used to simultaneously submit the scanned image and the first voice data displayed in the second graphical user interface; in response to the first submission input, switching the second graphical user interface to the first graphical user interface, and presenting a first feedback result through the first graphical user interface, the first feedback result being obtained by processing an intention judgment result determined based on the scanned image and the first voice data through a pre-built large model.
[0008] In one embodiment of the present invention, the second graphical user interface includes a voice function control for acquiring voice data, and acquiring at least one scanned image collected by the first camera and the first voice data collected by the microphone through the second graphical user interface, including: displaying a scanned image collected by the first camera and a voice function control in the second graphical user interface each time it is detected that the first camera ends scanning; detecting touch input for the voice function control; in response to the touch input, acquiring the first voice data collected by the microphone and displaying text content corresponding to the first voice data in the second graphical user interface; wherein the total number of scanned images added and displayed in the second graphical user interface is less than or equal to a preset threshold.
[0009] In another embodiment of the present invention, after acquiring multiple scanned images, the method further includes: stitching the multiple scanned images to obtain a stitched scanned image; wherein the feedback result is obtained by processing the intention judgment result determined based on the stitched scanned image and the voice data via a pre-constructed large model.
[0010] In another embodiment of the present invention, the portable electronic device also includes a second camera, the second camera is used for taking pictures, the first graphical user interface includes a plurality of input mode controls, the input mode controls correspond one-to-one to the input device of the portable electronic device, the input device includes a first camera, a second camera and a microphone, and the method also includes: when a touch input for the input mode control corresponding to the first camera is detected, in response to the touch input, switching the display from the first graphical user interface to an interface for prompting to obtain a scanned image; when it is detected that the first camera is started, automatically switching the display from the interface for prompting to obtain a scanned image to the second graphical user interface; or, when a touch input for the input mode control corresponding to the microphone is detected, in response to the touch input, obtaining third voice data collected via the microphone and displaying text content corresponding to the third voice data in the first graphical user interface; when it is detected that the microphone collection ends, displaying feedback content corresponding to the third voice data in the first graphical user interface.
[0011] In one embodiment of the present invention, the portable electronic device also includes a second camera, the second camera is used for taking pictures, the first graphical user interface includes a plurality of input mode controls, the input mode controls correspond one-to-one to the input device of the portable electronic device, the input device includes a first camera, a second camera and a microphone, and the method also includes: when a touch input for the input mode control corresponding to the second camera is detected, in response to the touch input, the first graphical user interface is switched to be displayed as an operation interface for acquiring a photographed image; when a confirmation input received in the operation interface is detected, in response to the confirmation input, the operation interface for acquiring a photographed image is switched to be displayed as a third graphical user interface, and at least one photographed image collected via the second camera and second voice data collected via the microphone are acquired through the third graphical user interface; a second submission input is detected, the second submission input is used to simultaneously submit the photographed image and the second voice data displayed in the third graphical user interface; in response to the second submission input, the third graphical user interface is switched to be displayed as the first graphical user interface, and a second feedback result is presented through the first graphical user interface, the second feedback result being obtained by processing the intention judgment result determined based on the photographed image and the second voice data through a pre-built large model.
[0012] In another embodiment of the present invention, the third graphical user interface further includes an add image function control and a voice function control for acquiring voice data, the add image function control is used to trigger the second camera to capture a new photographic image, and at least one photographic image captured by the second camera and the second voice data captured by the microphone are acquired through the third graphical user interface, including: when switching from the operation interface for acquiring photographic images to the third graphical user interface, adding and displaying photographic images and adding image function controls and voice function controls in the third graphical user interface; detecting at least one touch input for adding image function controls; each time in response to the touch input, switching the third graphical user interface to the operation interface for acquiring photographic images in response to the touch input; when detecting a confirmation input received in the operation interface, switching from the operation interface for acquiring photographic images to the third graphical user interface in response to the confirmation input, adding and displaying a new photographic image captured by the second camera in the third graphical user interface; detecting a touch input for the voice function control displayed on the third graphical user interface; in response to the touch input, acquiring the second voice data captured by the microphone and displaying text content corresponding to the second voice data in the third graphical user interface; wherein the total number of photographic images added and displayed in the third graphical user interface is less than or equal to a preset threshold.
[0013] In another embodiment of the present invention, the first mode is an artificial intelligence-driven learning assistance mode, the first graphical user interface is a chat window of an artificial intelligence chat interface, and the second graphical user interface is an input box for users to input data. The method includes: when the portable electronic device is in the artificial intelligence-driven learning assistance mode, one end of the portable electronic device including the first camera is brought into contact with a scanning object, and the activation of the first camera is detected; when the end of the portable electronic device including the first camera is separated from the scanning object, the end of the scan is detected, and the scanned image captured by the first camera is displayed in the second graphical user interface; when the second graphical user interface receives the first submission input, the text content and feedback results corresponding to the scanned image and the first voice data are presented in the first graphical user interface in a contextual dialogue manner, and the feedback results are presented in a combination of voice broadcast and text display or in a multimedia playback manner; after the first graphical user interface presents the feedback results, touch input for multiple input mode controls of the first graphical user interface is received, and the dialogue content continues to be appended in the first graphical user interface.
[0014] In another embodiment of the present invention, the first mode is an artificial intelligence-driven learning assistance mode, the first graphical user interface is a chat window of an artificial intelligence chat interface, the second graphical user interface is an input box for users to input data, and the third graphical user interface is an input box for users to input data. The method includes: receiving touch input for an input mode control in the first graphical user interface, and in response to the touch input, receiving input data through the second graphical user interface or the third graphical user interface or an input mode control corresponding to a microphone; in response to the first submitted input or the second submitted input, displaying the input data and feedback content corresponding to the input data in a contextual dialogue manner in the first graphical user interface; after the first graphical user interface presents the feedback result, receiving touch input for multiple input mode controls of the first graphical user interface, and continuing to append dialogue content in the first graphical user interface.
[0015] In another embodiment of the present invention, the large model is configured locally on the portable electronic device, and before the feedback result is obtained by processing through the pre-built large model, the method includes: in response to the submitted input, performing image information recognition on the image to obtain an image recognition result, performing voice information recognition on the voice data to obtain a voice recognition result; performing intention judgment based on the image recognition result and the voice recognition result to obtain an intention judgment result; wherein the feedback result obtained by processing through the pre-built large model includes: filling the image recognition result and the intention judgment result into a pre-configured prompt word template to obtain an input prompt word; the large model processes the image recognition result according to the input prompt word to obtain a feedback result.
[0016] In a second aspect of an embodiment of the present invention, a portable electronic device is provided, comprising: a processor; and a memory storing computer instructions for a data interaction method for the portable electronic device, wherein when the computer instructions are executed by the processor, the portable scanning device executes the method described in the foregoing and following multiple embodiments.
[0017] In a third aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which contains program instructions for a data interaction method for a portable electronic device. When the program instructions are executed by a processor, the method described in the foregoing and following embodiments is implemented.
[0018] According to the data interaction method for portable electronic devices, portable electronic devices and computer-readable storage media of the embodiment of the present invention, the method includes displaying a first graphical user interface when determining that the portable electronic device is in a first mode; automatically switching from the first graphical user interface to a second graphical user interface when detecting that the first camera is started, obtaining at least one scanned image collected by the first camera and the first voice data collected by the microphone through the second graphical user interface; detecting a first submission input, the first submission input is used to simultaneously submit the scanned image and the first voice data displayed in the second graphical user interface; in response to the first submission input, switching the second graphical user interface to the first graphical user interface, and presenting a first feedback result through the first graphical user interface, the first feedback result is obtained by processing the intention judgment result determined according to the scanned image and the first voice data through a pre-built large model. Thus, by inputting the combination of the graphical user interface image and the voice data in the middle, displaying the corresponding feedback result through the first graphical user interface, and assisting the understanding of the image data through the semantic data, a more accurate response result can be obtained, and the concise graphical user interface is more suitable for the display of the portable electronic device, which effectively improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:
[0020] Figure 1 The flowchart of a data interaction method 100 for a portable electronic device according to an embodiment of the present invention is schematically shown;
[0021] Figure 2 The flowchart of a data interaction method 200 for a portable electronic device according to yet another embodiment of the present invention is schematically shown;
[0022] Figure 3 The flowchart of a data interaction method 300 for a portable electronic device according to another embodiment of the present invention is schematically shown;
[0023] Figure 4 The following is a schematic diagram showing a flow chart of a data interaction method for a portable electronic device according to another embodiment of the present invention;
[0024] Figure 5 A schematic diagram schematically shows a first graphical user interface according to an embodiment of the present invention;
[0025] Figure 6A schematic diagram schematically shows a second graphical user interface according to an embodiment of the present invention;
[0026] Figure 7 A schematic diagram schematically shows a second graphical user interface according to yet another embodiment of the present invention;
[0027] Figure 8 A schematic diagram schematically shows a first graphical user interface according to yet another embodiment of the present invention;
[0028] Fig. 9 A schematic diagram schematically shows the interaction between two graphical user interfaces according to an embodiment of the present invention;
[0029] Fig.10 The structure diagram of a portable electronic device according to an embodiment of the present invention is schematically shown.
[0030] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0031] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art. SUMMARY OF THE INVENTION
[0032] There are some problems with the input method of current portable electronic devices. Portable electronic devices include but are not limited to electronic devices for realizing point reading, scanning devices for realizing intelligent learning, etc., such as point reading pens / machines, scanning pens, dictionary pens, electronic dictionaries with cameras, etc. At present, the input method of most portable electronic devices is a single input method. For example, after the scanned image information is obtained by the first camera of the portable scanning device, the scanned image is recognized by default, and then directly provided to the word search and translation processing module for word search or translation to obtain feedback results. The feedback results are displayed at least through the touch display screen. For another example, in the user-selected word search and translation mode, after the query object is obtained by the first camera, the feedback results are displayed in the graphical user interface corresponding to the word search and translation. The user can touch the voice function control in the graphical user interface corresponding to the word search and translation, obtain voice data, and further query the feedback results. For another example, in the oral practice mode, voice data is obtained as a separate input, and oral practice is performed with the built-in model.
[0033] The inventors found that the single input method in the related art has many limitations in terms of information interactivity, resulting in the query results being fed back only in a fixed mode. If a combination of multiple inputs is adopted, the user's search needs can be better met. When voice questions are added after obtaining the scanned content, or voice questions are added after obtaining the photographed image, the image input and voice input can be combined and provided to the background for processing, so as to obtain a more accurate and personalized answer that is more in line with the user's search intention.
[0034] The inventors also found that the combination of image input and voice input applied to portable electronic devices can quickly obtain the required information in a variety of scenarios, and fully integrate the advantages of various inputs to achieve convenient and fast human-computer interaction. During use, input and output are presented through two different graphical user interfaces, and users can freely choose the input method, which is automatically processed by the background processing device, effectively improving the user experience.
[0035] After introducing the basic principles of the present invention, various non-limiting embodiments of the present invention are described in detail below. Exemplary Methods
[0036] Reference below Figure 1 The interface interaction method according to the exemplary embodiment of the present invention is described below. The method is executed by a portable electronic device.
[0037] Figure 1 The flowchart of a data interaction method 100 for a portable electronic device according to an embodiment of the present invention is schematically shown.
[0038] like Figure 1 As shown, at step S101, when it is determined that the portable electronic device is in the first mode, a first graphical user interface is displayed.
[0039] In the above steps, the portable electronic device may include a first camera and a microphone, wherein the first camera is used for scanning. The portable electronic device may also include a second camera, and the second camera is used for taking pictures.
[0040] In the above steps, the first mode refers to an application function or a working mode of the portable electronic device. For example, an application based on artificial intelligence assisted learning. The application is added to the desktop application of the portable electronic device. The user can enter the mode by selecting.
[0041] In the above steps, the first graphical user interface is the main interface for interaction. Figure 6As shown, the first graphical user interface 60 may include a first area 601 and a second area 602. The first area 601 is used to at least present interactive data. The interactive data may include one or more acquired images, text content corresponding to the input voice data, feedback results, etc. The second area 602 includes a plurality of input mode controls 6021, each of which is associated with an input device of the portable electronic device. The input device includes a first camera, a second camera and a microphone. The interactive data in the first graphical user interface is displayed in a contextual dialogue manner. For example, the voice data and / or graphic data input by the user and the reply content based on the voice data and / or graphic data are displayed in a contextual dialogue manner.
[0042] by Figure 6 For example, after the user clicks the input mode control 6021 for triggering acquisition of scanned images, in response to the user's click operation, the second graphical user interface related to the input mode control 6021 for triggering acquisition of scanned images is entered. After the user clicks the input mode control 6021 for triggering acquisition of photographed images, in response to the user's click operation, the third graphical user interface related to the input mode control 6021 for triggering acquisition of photographed images is entered. After the user clicks the input mode control 6021 for triggering acquisition of pure voice, in response to the user's click operation, the acquired voice data is displayed in the first graphical user interface.
[0043] In step S102, when it is detected that the first camera is started, the first graphical user interface is automatically switched to the second graphical user interface, and at least one scanned image collected by the first camera and the first voice data collected by the microphone are obtained through the second graphical user interface.
[0044] The second graphical user interface is an interface for acquiring image data and voice data. In some embodiments, the second graphical user interface may include a control for triggering image acquisition or information for prompting an image acquisition method, and may also include a return function control for controlling interface interaction, a submit function control for submitting interface content, etc. The second graphical user interface may be displayed via a touch display screen of a portable electronic device.
[0045] like Figure 5As shown, the second graphical user interface 50 includes an image display area 501, a voice function control 502, a submit function control 503, and a return function control 504. The image display area 501 is used to display image data. The voice function control 502 is used to trigger the acquisition of voice data. The image display area 501 may also include an add image function control (not shown in the figure). After clicking the voice function control 502 to acquire voice data, a voice display area 505 may also be displayed in the vicinity of the image display area 501, and the voice function control 502 will follow and be displayed after the voice display area 505. The submit function control 503 is used to submit image data and voice data at the same time. The return function control 504 is used to switch back to the previous level graphical user interface.
[0046] In some embodiments, the second graphical user interface can be a scanned image collected when the pen tip of the portable scanning device is retracted by force, triggering a switch to cause the first camera to start scanning, and ending the scanning when the pen tip is released. The scanned image is added to the second graphical user interface. It should be noted that the method of triggering the first camera of the portable scanning device to start scanning and end scanning is not limited here.
[0047] In some embodiments, the second graphical user interface may be an interface for prompting to obtain a scanned image in response to a user click after the user clicks the input mode control of the first graphical user interface. When the first camera is detected to be started, the interface for prompting to obtain a scanned image is automatically switched to the second graphical user interface, such as Figure 8 shown.
[0048] The image displayed in the second graphical user interface may be an image captured by the first camera (i.e., a scanned image). Compared with a photographed image, a scanned image mainly contains text information, such as text content. According to the text content, the text content may be divided into multiple types, such as words, sentences, ancient poems, and titles.
[0049] The voice data is collected via a microphone. The voice data is presented in the second graphical user interface in the form of text. The voice data may include a clear operation intention or a vague expression of the operation intention. A clear operation intention may be, for example, "translation" or "explain the grammatical structure of this sentence"; a vague operation intention may be, for example, "I can't understand this question" or "what is the central idea of the article". For example, "I can't understand this question" can be understood as not understanding the knowledge points, expecting to obtain the solution ideas, the test points analysis of the questions, and strengthening the learning effect by analogy; "what is the central idea of the article" can be understood as obtaining the answer template, or summarizing the article. Voice data may include one or more operation intentions. Operation intention refers to the operation intention expected by the user. For example, it is expected to query words, or perform grammatical analysis on sentences, or summarize the article.
[0050] The voice data may express at least one operation intention. For example, if the voice data is "translate this text", the operation intention corresponding to the voice data is translation. The voice data may also include multiple operation intentions. For example, if the voice data is "translate this text and summarize the main idea of this text", the operation intentions corresponding to the voice data are "translation" and "summarization".
[0051] The user's voice is collected as voice data through a microphone. Through voice recognition and natural language processing technology, the voice is converted into text and its meaning is understood for corresponding processing and feedback, i.e. voice input. Voice data includes but is not limited to voice commands, question information, etc.
[0052] The method of acquiring at least one image may be referred to as image input. The image input may be an image captured by the second camera of the portable electronic device, and then the text information therein is identified and extracted by image processing technology. This method is suitable for processing complex image content, such as book pages, signs, menus, etc. The image input may also be an image scanned by the first camera of the portable electronic device, and then the text information therein is identified and extracted by image processing technology. This method is suitable for text content, such as text content in a book, text content displayed by a display device, etc.
[0053] In some embodiments, when the image is a scanned image captured by a first camera, acquiring and displaying at least one image includes: acquiring a scanned image each time the first camera is detected to have finished scanning; and adding and displaying the scanned image acquired each time in the first graphical user interface; wherein the total number of scanned images added and displayed in the first graphical user interface is less than or equal to a preset threshold.
[0054] In some embodiments, after acquiring at least one scanned image, the method further includes stitching a plurality of scanned images to obtain a stitched scanned image.
[0055] The feedback result is the intention judgment result determined by splicing the scanned image and voice data through a pre-built large model. The row is processed.
[0056] At step S103, a first submission input is detected, and the first submission input is used to simultaneously submit the scanned image displayed in the second graphical user interface and the first voice data.
[0057] The first submission input is an operation of providing the acquired image and voice data to the processor, and the processor obtains the feedback result according to the combination result of the image and voice data. The processor includes but is not limited to a data recognition module, an intention judgment module, and a data processing module. The data recognition module includes a module for performing image information recognition on image data and a module for performing voice information recognition on voice data. The intention judgment module is used to perform intention judgment on the results of image information recognition and voice information recognition. The data processing module is a pre-built large model. The large model is a complex neural network model based on deep learning, which has powerful data processing and understanding capabilities. The large model can master a wide range of knowledge and language comprehension capabilities through training with a large amount of data, and is used to generate detailed, accurate and personalized replies.
[0058] The first submission input may be, for example, a touch operation on a submission function control set in the first graphical interface.
[0059] At step S104, in response to the first submission input, the second graphical user interface is switched to display as the first graphical user interface, and a first feedback result is presented through the first graphical user interface. The first feedback result is obtained by processing an intention judgment result determined based on the scanned image and the first voice data via a pre-built large model.
[0060] The user receives a first input for a submission function control in the second graphical user interface, and in response to the first input, the first graphical user interface is displayed, and the reply content (ie, feedback result) desired by the user is displayed in the first graphical user interface.
[0061] The first graphical user interface is an interface for displaying interactive information, and the interactive information includes but is not limited to image data and voice data obtained by the user in the second graphical user interface, and feedback results obtained by processing the pre-built large model based on the intention judgment results of the image and voice data.
[0062] like Figure 7As shown, it is assumed that the image content displayed in the first graphical user interface is an English sentence, and the English content is "Today, tea is not only a healthy drink but also part of the Chinese culture. More and more international tourists begin to understand the Chinese culture as they drink tea.", and the voice data is "Translate this text", and the image and voice data are obtained through the second graphical user interface. The feedback result is the corresponding translation content "Today, tea is not only a healthy drink but also a part of Chinese culture. More and more international tourists begin to understand the Chinese culture while tasting tea.".
[0063] like Figure 7 As shown, it is assumed that the voice data may be "What does the word before drink mean, and how to understand the grammatical structure of these two sentences". The feedback results include the word search results for "healthy" and the grammatical structure analysis results for the two sentences. Among them, the grammatical structure analysis results for the two sentences may also include explanation videos (not shown in the figure), etc.
[0064] In the embodiment of the present invention, the combined input of images and voices is firstly realized through the second graphical user interface, and in response to the first input, the first graphical user interface including the feedback results is switched to be displayed, which can quickly process and provide immediate feedback results. This real-time feedback mechanism makes it more efficient and quick to obtain feedback results, and effectively improves the user experience and usage efficiency. Secondly, the input and output functions are separated by two graphical user interfaces, which is more suitable for the combination of multiple inputs and the display of multiple outputs. The flexible graphical user interface is more suitable for the display of portable electronic devices. Thirdly, by searching based on the operation intention determined by the combined image and voice, it is possible to obtain reply content that better meets the user's expectations, making the feedback results more personalized.
[0065] Figure 2 The flowchart of the data interaction method 200 for a portable electronic device according to another embodiment of the present invention is schematically shown. It can be understood that the method 200 is a method for Figure 1 Therefore, the above combined with the method 100 Figure 1 The relevant detailed description also applies to the following.
[0066] Specifically, Figure 2 As shown, at step S201, when it is determined that the portable electronic device is in the first mode, a first graphical user interface is displayed.
[0067] In step S202, when it is detected that the first camera is started, the display is automatically switched from the first graphical user interface to the second graphical user interface.
[0068] The second graphical user interface is associated with the first camera. Figure 8 As shown, the user can switch from the first graphical user interface to the second graphical interface by triggering the first camera. Start scanning to obtain a scanned image. After completing a scan, obtain a scanned image. You can also complete multiple scans continuously to obtain multiple scanned images. When it is detected that the first camera has finished scanning, obtain a scanned image; display one or more scanned images, voice function controls, and submission function controls in the second graphical user interface. That is, in the second graphical user interface, image addition can be completed by triggering the first camera to work.
[0069] The embodiment of the present invention controls the first graphical user interface to switch to the second graphical user interface by detecting the activation of the first camera, thereby reducing user operations and improving the efficiency of interactive operations.
[0070] After acquiring the scanned image, the user can click on the voice function control adjacent to the image display area to acquire voice data, and display text content corresponding to the voice data in the image display area of the second graphical user interface.
[0071] In some embodiments, the total number of images acquired multiple times is less than a preset threshold, assuming that the preset threshold is set to 5. The preset threshold may be determined by the comprehensive processing capabilities of hardware and software.
[0072] Due to the computing power limitations of portable electronic devices, the computing power of portable electronic devices can be maximized while ensuring the user experience by presetting thresholds.
[0073] In some embodiments, after acquiring at least one scanned image, at least one scanned image may be spliced to obtain a spliced scanned image. In response to the first submission input, the feedback result presented in the first graphical user interface is obtained by processing the spliced scanned image and the intention judgment result determined by the voice data through a pre-built large model. By splicing multiple scanned images, the processing efficiency of image information recognition can be improved.
[0074] In step S203, each time it is detected that the first camera has finished scanning, a scanned image and a voice function control acquired by the first camera are displayed in the second graphical user interface.
[0075] At step S204, a touch input to the voice function control is detected.
[0076] In step S205 , in response to the touch input, first voice data collected via a microphone is acquired and text content corresponding to the first voice data is displayed in a second graphical user interface.
[0077] At step S206, a first submission input is detected, and the first submission input is used to simultaneously submit the scanned image and the first voice data displayed in the second graphical user interface.
[0078] At step S207, in response to the first submission input, the second graphical user interface is switched to the first graphical user interface, and a first feedback result is presented through the first graphical user interface. The first feedback result is obtained by processing the intention judgment result determined based on the scanned image and the first voice data via a pre-built large model.
[0079] like Figure 8 As shown, after adding the image in the second graphical user interface, the user can obtain the first voice data for assisting the understanding of the image content through touch input of the voice function control, thereby obtaining a more accurate intention judgment result.
[0080] like Figure 7 As shown, the image data and voice data are used as an input combination of "what does the word before drink mean, and how do we understand the grammatical structure of these two sentences", and recognition is performed according to the image data and voice data respectively to obtain image recognition results and voice recognition results, and then intention judgment is performed on the image recognition results and voice recognition results to obtain the intention judgment result corresponding to the input combination, which includes two operation intentions, namely "look up the word healthy" and "perform grammatical analysis on the two sentences".
[0081] The first area of the first graphical user interface displays the reply content corresponding to "search for the word healthy" and the reply content corresponding to "parse the two sentences grammatically", such as Figure 7 As shown, Figure 7 The interface diagram in the middle and the interface diagram at the bottom.
[0082] In the related art, after selecting an application, the user enters the application and uses a single input, and the result obtained is fixed. For example, in word search and translation, the user obtains words by scanning the camera, and the explanation of the words is provided to the user, with a wide range of content. In other modules of assisted learning, the user obtains pictures by scanning the camera, and the corresponding feedback content is also fixed, such as problem-solving ideas and learning by analogy. This feedback result cannot meet the needs of users well.
[0083] Taking the portable electronic device as a dictionary pen with a large model locally configured to support artificial intelligence robot chat as an example, the first mode is an artificial intelligence-driven learning assistance mode, such as a virtual teacher. The first graphical user interface is a chat window of the artificial intelligence chat interface, and the second graphical user interface is an input box for users to input data, that is, the input box and the chat window are displayed separately.
[0084] When the user selects the portable electronic device to be in the artificial intelligence driven learning assistance mode, the user places the portable electronic device including the first When one end of the camera touches the scanning object, the activation of the first camera is detected. That is, the user touches the scanning head of the dictionary pen with the scanning object, or touches the scanning object by pressing the scanning head. The scanning object is a paper material such as a book, or text content displayed on a display screen.
[0085] When one end of the portable electronic device including the first camera is separated from the scanned object, the end of scanning is detected, and the scanned image collected by the first camera is displayed in the second image user interface. During the scanning process performed by the scanning head, the scanned image is displayed on the interface displayed on the touch display screen of the dictionary pen, and the scanned image is generated in the interface when the scanning is completed.
[0086] The user can receive the question content input by the user by clicking the voice mark displayed in the interface displaying the scanned image.
[0087] When the user chooses to submit on the interface, the text content corresponding to the scanned image and voice question just submitted is displayed in the first graphical user interface, and the user responds immediately in the first graphical user interface to obtain feedback results. The text content and feedback results corresponding to the scanned image and the first voice data are presented in a contextual dialogue manner, and the feedback results are presented in a combination of voice broadcast and text display or multimedia playback; after the feedback results are presented in the first graphical user interface, touch inputs for multiple input mode controls of the first graphical user interface are received, and the dialogue content continues to be added in the first graphical user interface.
[0088] Compared with the method of using a single input to assist learning in the related art, the technical solution provided by the embodiment of the present invention can realize the combination of image input and voice input through a second graphical user interface, and use voice input combined with image input to understand the user's intention. It can provide more personalized feedback results that are more in line with the user's operating intentions. Especially in educational application scenarios, it significantly improves the user experience of using combined input.
[0089] Figure 3The flowchart of a data interaction method 300 for a portable electronic device according to another embodiment of the present invention is schematically shown. It can be understood that the method 300 is Figure 1 Method 100 and Figure 2 A specific technical implementation of the method 200. Figure 1 and Figure 2 The relevant detailed description also applies to the following.
[0090] like Figure 3 As shown, at step S301, when it is determined that the portable electronic device is in the first mode, a first graphical user interface is displayed, and the first graphical user interface includes a plurality of input mode controls.
[0091] The input mode control corresponds to the input device of the portable electronic device one by one, and the input device includes a first camera, a second camera and a microphone. Figure 6 As shown, the input mode control 6021 in the first graphical user interface corresponds to the first camera, the second camera, and the microphone from left to right respectively.
[0092] The first graphical user interface may include two areas, the first area is used to present interactive data, and the second area is used to set the input mode control. The user can enter the graphical user interface corresponding to the input mode control by touching the input mode control, and the operation is simple.
[0093] At step S302, when a touch input to an input mode control corresponding to the second camera is detected, in response to the touch input, the first graphical user interface is switched to be displayed as an operation interface for acquiring a photographed image.
[0094] At step S303, when a confirmation input received in the operation interface is detected, in response to the confirmation input, the display is switched from the operation interface for acquiring the photographic image to a third graphical user interface, and at least one photographic image captured by the second camera and the second voice data captured by the microphone are acquired through the third graphical user interface.
[0095] In the above steps, if Fig. 9 As shown, after the user clicks the input mode control corresponding to the second camera, the photo interface is entered, and the user obtains the photo image captured by the second camera in the photo interface. After the user confirms the photo result, the photo interface switches to the third graphical user interface.
[0096] The third graphical user interface also includes an add image function control and a voice function control for acquiring voice data. The add image function control is used to trigger the second camera to capture a new photographic image.
[0097] Acquiring at least one photographic image collected via the second camera and second voice data collected via the microphone via a third graphical user interface, including: when switching from an operation interface for acquiring photographic images to a third graphical user interface, adding a photographic image and an image function control and a voice function control in the operation interface for acquiring photographic images after image processing in the third graphical user interface; detecting at least one touch input for adding an image function control; switching the third graphical user interface to an operation interface for acquiring photographic images in response to the touch input each time; when detecting a confirmation input received in the operation interface, switching from the operation interface for acquiring photographic images to the third graphical user interface in response to the confirmation input, adding a new photographic image collected via the second camera in the third graphical user interface; detecting a touch input for a voice function control displayed on the third graphical user interface; in response to the touch input, acquiring the second voice data collected via the microphone and displaying text content corresponding to the second voice data in the third graphical user interface; wherein the total number of photographic images added and displayed in the third graphical user interface is less than or equal to a preset threshold.
[0098] For example, Fig. 9 As shown, after the user completes taking a photo and switches to the third graphical user interface, the user can click the add image function control "+" in the third graphical user interface to continue acquiring photographic images.
[0099] After the photo is taken, the photo image is reduced and added to the third graphical user interface. When the user clicks the voice function control to collect the user's voice data, the text content of the voice data is displayed in the third graphical user interface. The user is prompted to enter the voice duration limit.
[0100] At step S304, a second submission input is detected, and the second submission input is used to simultaneously submit the photographed image and the second voice data displayed in the third graphical user interface.
[0101] At step 305, in response to the second submission input, the third graphical user interface is switched to the first graphical user interface, and a second feedback result is presented through the first graphical user interface. The second feedback result is obtained by processing the intention judgment result determined based on the photographed image and the second voice data via a pre-built large model.
[0102] The photographic image captured by the second camera includes a variety of complex character contents such as text and graphics, and the photographic image can obtain a wider range of content than the scanned image.
[0103] In some embodiments, the second camera may be an artificial intelligence (AI) camera. An AI camera is a camera that uses artificial intelligence technologies such as computer vision to analyze and process images captured by the camera. It uses key AI technologies combined with hardware technologies such as high-pixel sensors and high-speed data transmission for visual processing. The AI camera can learn valuable information and knowledge from the captured images and videos, and then smoothly analyze and process various information and knowledge content in the visual images.
[0104] At step 306, when a touch input to the input mode control corresponding to the first camera is detected, in response to the touch input, the second graphical user interface is switched to display an interface for prompting to obtain a scanned image.
[0105] At step 307 , when it is detected that the first camera is started, the interface for prompting to obtain a scanned image is automatically switched to display a second graphical user interface.
[0106] In the above steps, the user can enter the interface for prompting to obtain the scanned image by touching the input mode control corresponding to the first camera, such as Figure 8 shown.
[0107] At step 308, when a touch input to an input mode control corresponding to the microphone is detected, in response to the touch input, third voice data collected via the microphone is acquired and text content corresponding to the third voice data is displayed in the first graphical user interface.
[0108] At step 309, when it is detected that the microphone collection is finished, feedback content corresponding to the third voice data is displayed in the first graphical user interface.
[0109] In some embodiments, when the user clicks the input mode control corresponding to the microphone, a pure voice conversation can be conducted in the first graphical user interface. Compared with the operation interface in the related art, the first graphical user interface proposed in the embodiment of the present invention is more concise and more convenient to operate.
[0110] A click operation on any one of the multiple input mode controls is detected in the first graphical user interface. In response to the click operation, the image acquisition device corresponding to the input mode control is triggered to start working, and the image is acquired via the first camera or the second camera, and the image is provided to the first graphical user interface corresponding to the first camera or the third graphical user interface corresponding to the second camera.
[0111] like Fig. 9As shown, assuming that the user clicks the input mode control corresponding to the second camera in the first graphical user interface, the processor detects the click operation, responds to the click operation, enters the photo interface, and the user clicks to take a photo in the photo interface, triggering the second camera to collect the photo image, and obtains picture 1. After obtaining picture 1, the third graphical user interface is displayed, and picture 1 is displayed in the third graphical user interface. In some embodiments, after the user clicks to add the image function control, the third graphical user interface is switched to the photo interface, and the second camera is operated to take a photo through the photo interface, for example, the display can be focused, the shooting frame can be adjusted, etc. After the photo is taken, the photo interface is switched back to the third graphical user interface. Then, the processor detects the user's click operation on the voice function control in the third user interface, responds to the click operation, obtains the voice data "how to do these questions" collected by the microphone, and displays the text content corresponding to the voice data in the third graphical user interface. The input combination is synchronously submitted to the background processing device, and the background processing device performs data processing on the input combination of image and voice respectively, and then performs intention judgment, obtains the intention judgment result and inputs it into the pre-built large model, and processes the intention judgment result of the input combination through the large model to obtain the feedback result corresponding to the input combination.
[0112] Taking the portable electronic device as a dictionary pen with a large model locally configured to support artificial intelligence robot chat as an example, the first mode is an artificial intelligence-driven learning assistance mode, such as a virtual teacher. The first graphical user interface is a chat window of the artificial intelligence chat interface, the second graphical user interface is an input box for users to input data, and the third graphical user interface is also an input box for users to input data, that is, multiple input boxes and chat windows are displayed separately.
[0113] When the user selects the portable electronic device to be in the AI-driven learning assistance mode, the user can select an input method in the first graphical user interface, such as collecting images through a scanning head, taking photos through a camera, or directly communicating by voice in the first graphical user interface. That is, in response to the touch input of the input mode control, the input data is received through the second graphical user interface or the third graphical user interface or the input mode control corresponding to the microphone.
[0114] When the user chooses the scanning mode, the user touches the scanning head of the dictionary pen with the book, and then slides the scanning head to obtain a scanned image. In the interface displaying the scanned image, the user clicks the voice mark to collect the user's voice question data. Then the user clicks Submit, and the text content corresponding to the scanned image and the voice question data is displayed in the chat window (i.e., the first graphical user interface), and the user can see the instant response reply content in the chat window.
[0115] If the user clicks the camera, the camera enters the photo taking mode. Fig. 9 In the illustrated interactive process, the photographed image is displayed in the third graphical user interface, and the user clicks submit. The subsequent process is the same as that after the scanned image is submitted.
[0116] In response to the first submission input or the second submission input, the input data and feedback content corresponding to the input data are displayed in a contextual dialogue manner in the first graphical user interface; after the feedback result is presented in the first graphical user interface, touch input for multiple input mode controls of the first graphical user interface is received, and the dialogue content continues to be appended in the first graphical user interface.
[0117] The embodiment of the present invention can freely select functions corresponding to input devices through multiple input mode controls set by the first graphical user interface, provide users with a combination of multiple input methods, and accurately determine the user's intentions through analysis of image and voice data, and output feedback results expected by the user. Compared with the fixed structure reply results in the related art, the embodiment of the present invention provides users with personalized feedback results, which greatly improves the user experience.
[0118] Figure 4 A flow chart of a data interaction method 400 for a portable electronic device according to another embodiment of the present invention is schematically shown. The data interaction method is performed by the interaction between the processor of the portable scanning device and multiple input devices. For example, the processor can be divided into a data interaction module, a data processing module, etc. according to functions. Taking the user using the first camera to scan as an example, the data interaction process of the portable electronic device is described.
[0119] like Figure 4 As shown, at step S401, when the processor determines that the portable electronic device is in the first mode, the processor displays a first graphical user interface through the touch display screen.
[0120] In the above steps, the first graphical user interface includes a first area for presenting interactive data and a second area provided with a plurality of input mode controls.
[0121] At step S402, the processor controls the display of the touch display screen, and automatically switches the display from the first graphical user interface to the second graphical user interface when it is detected that the first camera is started.
[0122] In step S403, the processor obtains at least one scanned image collected by the first camera and first voice data collected by the microphone through the second graphical user interface.
[0123] When the user interacts through the second graphical user interface to obtain input data, the user controls the first camera of the portable electronic device to perform a scanning task, and the image captured by the first camera is associated and added to the second graphical user interface. The user triggers the microphone of the portable electronic device to collect voice data by touching the voice function control.
[0124] At step S404, a first submission input is detected, and the first submission input is used to simultaneously submit the scanned image and the first voice data displayed in the second graphical user interface.
[0125] After the user clicks submit by touching the display screen, the interaction data is transmitted to the processor for data processing.
[0126] In the above steps, in response to the first submission input, at least one scanned image and the first voice data are provided to the data processing module.
[0127] At step S405, in response to the first submission input, at least one scanned image and first voice data are acquired, and image information recognition and voice information recognition processing are performed respectively to obtain image recognition results and voice recognition results.
[0128] In the above steps, image information recognition is performed on the image to obtain an image recognition result. Voice information recognition is performed on the voice data to obtain a voice recognition result. For different input methods, the present invention adopts corresponding processing technologies to parse and understand the user's input content. For example, for pictures collected by the first camera or the second camera, optical character recognition (full name Optical Character Recognition, abbreviated as OCR in English) technology can be used to extract text information in the picture. OCR technology can convert the text in the picture into editable text information, which is convenient for subsequent processing and analysis. For the user's voice input, automatic speech recognition (full name Automatic Speech Recognition in English, abbreviated as ASR in English) technology can be used to convert the voice into text information. ASR technology can accurately recognize the user's voice content and convert it into text for further processing by the large model.
[0129] In some embodiments, after receiving a plurality of scanned images, the plurality of scanned images may be spliced to obtain a spliced scanned image, and then image recognition may be performed on the spliced scanned image.
[0130] In step S406, intention determination is performed based on the image recognition result and the speech recognition result to obtain an intention determination result.
[0131] After obtaining the push recognition results and speech recognition results, the intent recognition model can be used to understand the deep semantics and contextual information of the learning language, thereby providing efficient and accurate intent recognition services. For example, after the user scans a piece of text content, the user assists in inputting voice data "tell me what this text means." After processing according to the intent recognition model, the intent judgment result is a summary of the text content recognized by the image. "This text content" and "summary processing" are input into the pre-built large model. After the large model summarizes the text content, the feedback result is "This paragraph describes the author's life experience." Alternatively, emotional understanding of the text content can be added. Each intent judgment result can include one or more operation intentions.
[0132] In some embodiments, the intention judgment result may also be an intention result determined based on voice data. The feedback result obtained by processing through a pre-built large model may be to fill the image recognition result and the intention judgment result into a pre-configured prompt word template to obtain an input prompt word; the large model processes the image recognition result according to the input prompt word to obtain a feedback result. For example, the intention judgment result is the user's operational intention for the image recognition result. The pre-configured prompt word template is a pre-configured combination relationship structure. For example, fill the image recognition result into the processing object, and fill the intention judgment result into the processing requirement to obtain a prompt word.
[0133] In step S407, the intention judgment result is input into the pre-built large model to obtain a feedback result.
[0134] In step S408, a first graphical user interface is displayed, where the first graphical user interface is used to at least present the feedback result.
[0135] In the above steps, a first graphical user interface including the feedback result is displayed through a touch display screen, wherein the first graphical user interface and the second graphical user interface are different interfaces.
[0136] In the first graphical user interface, you can also touch other input mode controls to obtain input data, and display the input data and feedback results for the input data in the first graphical user interface in the form of updating the conversation content. The user can view the historical query content by sliding the screen up and down. In the same conversation interface, the user can continue to add voice data to the previous conversation content to achieve interaction.
[0137] Based on this, the embodiment of the present invention simplifies the actual operation of the user through a clear and concise graphical user interface, improves the operation efficiency, and efficiency and user experience; and by integrating image data and voice data, the data interaction process can obtain responses that are more in line with user expectations, further improving the user experience.
[0138] After introducing the method of the exemplary embodiment of the present invention, next, refer to Fig.10 The related products of the data interaction method for portable electronic devices according to the exemplary embodiment of the present invention are described.
[0139] Fig.10 Schematically shows a schematic block diagram of a portable electronic device 1000 according to an embodiment of the present invention. Fig.10 As shown, the portable electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 stores computer instructions for data interaction. When the computer instructions are executed by the processor 1001, the portable electronic device 1000 executes the above-mentioned Figure 1 to Figure 4 The method described. For example, in some embodiments, when the portable electronic device 1000 is in the first mode, the first graphical user interface is displayed, and when the first camera is detected to be started, the first graphical user interface is switched to the second graphical user interface, and in response to the submission input of submitting image and voice data simultaneously detected in the second graphical user interface, the second graphical user interface is switched to display the first graphical user interface presenting the feedback result, etc. Based on this, the portable electronic device 1000 can realize a combination of multiple inputs through the second graphical user interface or the third graphical user interface, so that the data interaction process obtains a reply content that is more in line with the user's operation intention, and the feedback result is displayed in a contextual dialogue manner through the first graphical user interface, which greatly improves the user experience.
[0140] The portable electronic device 1000 may further include a touch display, a first camera, a microphone, etc. In some embodiments, the portable electronic device 1000 may further include a second camera, which may be an artificial intelligence camera. The artificial intelligence camera may be built into the portable electronic device, or may be connected to the portable electronic device 1000 via an interface for external connection.
[0141] It is known to those skilled in the art that the embodiments of the present invention may be implemented as a system, method or computer program product. Therefore, the present invention may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit", "module", "unit" or "system". In addition, in some embodiments, the present invention may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.
[0142] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.
[0143] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0144] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0145] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0146] The following will describe the implementation of the present invention with reference to the flowchart of the method of the embodiment of the present invention and the block diagram of the device (or system). It should be understood that each square frame of the flowchart and / or block diagram and the combination of square frames in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the function / operation specified in the square frame in the flowchart and / or block diagram.
[0147] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0148] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0149] According to an embodiment of the present invention, a data interaction method, a portable electronic device and a computer-readable storage medium are proposed. In addition, any number of elements in the drawings is for illustration and not for limitation, and any naming is only for distinction and does not have any limiting meaning.
[0150] It should be noted that although several devices or sub-devices of the device are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more devices described above can be embodied in one device. Conversely, the features and functions of one device described above can be further divided into multiple devices to be embodied.
[0151] The use of the verbs "comprise", "include" and their conjugations mentioned in the application documents does not exclude the presence of elements or steps other than those recorded in the application documents. The article "a" or "an" before an element does not exclude the presence of a plurality of such elements.
[0152] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and this division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.
Claims
1. A data interaction method for a portable electronic device, the portable electronic device comprising a first camera and a microphone, the first camera being used for scanning, characterized in that: The method includes: When determining that the portable electronic device is in a first mode, displaying a first graphical user interface; When detecting that the first camera is started, automatically switching the display from the first graphical user interface to a second graphical user interface, acquiring at least one scanned image acquired by the first camera and first voice data acquired by the microphone through the second graphical user interface; detecting a first submission input for simultaneously submitting the scanned image displayed in the second graphical user interface and the first voice data; In response to the first submission input, the second graphical user interface is switched to be displayed as the first graphical user interface, and a first feedback result is presented through the first graphical user interface. The first feedback result is obtained by processing the intention judgment result determined based on the scanned image and the first voice data through a pre-built large model.
2. The method according to claim 1, characterized in that The second graphical user interface includes a voice function control for acquiring voice data, and acquiring at least one scanned image acquired by the first camera and first voice data acquired by the microphone through the second graphical user interface includes: Each time it is detected that the first camera finishes scanning, displaying a scanned image acquired by the first camera and the voice function control in the second graphical user interface; detecting a touch input to the voice function control; In response to the touch input, acquiring first voice data collected via the microphone and displaying text content corresponding to the first voice data in the second graphical user interface; Wherein, the total number of the scanned images added and displayed in the second graphical user interface is less than or equal to a preset threshold.
3. The method according to claim 2, characterized in that After acquiring the plurality of scanned images, the method further comprises: In response to the first submission input, stitching the plurality of scanned images to obtain a stitched scanned image; The feedback result is obtained by processing the spliced scanned image and the voice data via a pre-built large model.
4. The method according to claim 1, characterized in that: The portable electronic device further includes a second camera, the second camera is used for taking pictures, the first graphical user interface includes a plurality of input mode controls, the input mode controls correspond one to one with input devices of the portable electronic device, the input devices include the first camera, the second camera and the microphone, the method further includes: 1P240482DN YD20240090 Youdao Confidential When a touch input to an input mode control corresponding to the first camera is detected, in response to the touch input, the first graphical user interface is switched to display an interface for prompting to obtain a scanned image; When it is detected that the first camera is started, the interface for prompting to obtain the scanned image is automatically switched to the second graphical user interface; or, When a touch input to the input mode control corresponding to the microphone is detected, in response to the touch input, third voice data collected via the microphone is acquired and text content corresponding to the third voice data is displayed in the first graphical user interface; When it is detected that the microphone collection is finished, feedback content corresponding to the third voice data is displayed in the first graphical user interface.
5. The method according to claim 1, characterized in that The portable electronic device further includes a second camera, the second camera is used for taking pictures, the first graphical user interface includes a plurality of input mode controls, the input mode controls correspond one to one with input devices of the portable electronic device, the input devices include the first camera, the second camera and the microphone, the method further includes: When a touch input to an input mode control corresponding to the second camera is detected, in response to the touch input, the first graphical user interface is switched to be displayed as an operation interface for acquiring a photographed image; When a confirmation input received in the operation interface is detected, in response to the confirmation input, the operation interface for acquiring a photographic image is switched to display a third graphical user interface, and at least one photographic image acquired via the second camera and the second voice data acquired via the microphone are acquired via the third graphical user interface; detecting a second submission input, the second submission input being used to simultaneously submit the photographed image and the second voice data displayed in the third graphical user interface; In response to the second submission input, the third graphical user interface is switched to be displayed as the first graphical user interface, and a second feedback result is presented through the first graphical user interface, wherein the second feedback result is obtained by processing the intention judgment result determined based on the photographed image and the second voice data via a pre-built large model.
6. The method according to claim 5, characterized in that The third graphical user interface further includes an add image function control and a voice function control for acquiring voice data, wherein the add image function control is used to trigger the second camera to capture a new photographic image, and acquiring at least one photographic image captured by the second camera and second voice data captured by the microphone through the third graphical user interface, including: 2P240482DN YD20240090 Youdao Confidential When the operation interface for acquiring the photographed image is switched to display the third graphical user interface, the photographed image and the adding image function control and the voice function control are added to the third graphical user interface; Detecting at least one touch input for the add image function control; In response to the touch input each time, the third graphical user interface is switched to be displayed as an operation interface for acquiring a photographed image; When a confirmation input received in the operation interface is detected, in response to the confirmation input, the operation interface for acquiring the photographed image is switched to the third graphical user interface, and a new photographed image acquired by the second camera is added and displayed in the third graphical user interface; detecting a touch input to a voice function control displayed on the third graphical user interface; In response to the touch input, acquiring the second voice data collected via the microphone and displaying text content corresponding to the second voice data in the third graphical user interface; The total number of photographed images added and displayed in the third graphical user interface is less than or equal to a preset threshold.
7. The method according to any one of claims 1 to 5, characterized in that: The first mode is an artificial intelligence-driven learning assistance mode, the first graphical user interface is a chat window of an artificial intelligence chat interface, and the second graphical user interface is an input box for a user to input data. The method includes: When the portable electronic device is in an artificial intelligence-driven learning assistance mode, one end of the portable electronic device including the first camera is brought into contact with a scanning object, and activation of the first camera is detected; When one end of the portable electronic device including the first camera is separated from the scanned object, it is detected that the scan is ended, and a scanned image acquired by the first camera is displayed in the second image user interface; When the second graphical user interface receives the first submission input, the text content corresponding to the scanned image and the first voice data and the feedback result are presented in the first graphical user interface in a contextual dialogue manner, and the feedback result is presented in a combination of voice broadcast and text display or in a multimedia playback manner; After the first graphical user interface presents the feedback result, touch inputs for a plurality of input mode controls of the first graphical user interface are received, and the conversation content continues to be appended in the first graphical user interface.
8. The method according to claim 5, characterized in that The first mode is an artificial intelligence-driven learning assistance mode, the first graphical user interface is a chat window of an artificial intelligence chat interface, the second graphical user interface is an input box for a user to input data, and the third graphical user interface is an input box for a user to input data, and the method includes: receiving a touch input for an input mode control in the first graphical user interface, and receiving input data through the second graphical user interface or the third graphical user interface or an input mode control corresponding to a microphone in response to the touch input; In response to the first submission input or the second submission input, displaying the input data and feedback content corresponding to the input data in a contextual dialogue manner in the first graphical user interface; After the first graphical user interface presents the feedback result, touch inputs for a plurality of input mode controls of the first graphical user interface are received, and the conversation content continues to be appended in the first graphical user interface.
9. The method according to claim 1, characterized in that: The large model is configured locally on the portable electronic device. Before the feedback result is obtained by processing the pre-built large model, the method includes: In response to the submitted input, performing image information recognition on the image to obtain an image recognition result, and performing voice information recognition on the voice data to obtain a voice recognition result; Performing intention judgment based on the image recognition result and the speech recognition result to obtain an intention judgment result; The feedback result obtained by processing the pre-built large model includes: Filling the image recognition result and the intention judgment result into a preconfigured prompt word template to obtain an input prompt word; The large model processes the image recognition result according to the input prompt word to obtain the feedback result.
10. A portable electronic device, characterized in that: include: processor; as well as A memory storing computer instructions for a data interaction method for a portable electronic device, wherein when the computer instructions are executed by the processor, the portable electronic device executes the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Data search method, terminal, user image display interface, and storage medium
CN109407916A
Interaction method and device and electronic equipment
CN109960537A
Optical character recognition method and device, electronic equipment and storage medium
CN113343997A
Voice interaction method, device and system
CN113948076A
Question and answer method and device, equipment and storage medium
CN116540972A
