Method and device for collecting questions, electronic equipment and storage medium

文档序号:1253278 发布日期:2020-08-21 浏览:10次 中文

阅读说明:本技术 一种题目收集的方法、装置、电子设备及存储介质 (Method and device for collecting questions, electronic equipment and storage medium ) 是由 曾菲 于 2020-04-30 设计创作,主要内容包括:本发明实施例涉及智能终端技术领域,公开了一种题目收集的方法、装置、电子设备及存储介质。该方法包括:当接收到第一语音指令时,开启摄像头获取目标图像,并对所述目标图像中的字符进行识别;根据识别后的字符以及预设题号命名规则获取目标图像中每个题号;提取第一语音指令或接收到的第二语音指令中的目标题号;存储所述目标题号对应的识别后的字符图片。实施本发明实施例,可以通过语音指令收集一道或多道题目,不需要用户手动参与裁剪待收集内容的图片,操作简单方便,同时,提高题目收集效率,改善用户体验。(The embodiment of the invention relates to the technical field of intelligent terminals, and discloses a question collecting method and device, electronic equipment and a storage medium. The method comprises the following steps: when a first voice instruction is received, starting a camera to acquire a target image, and identifying characters in the target image; acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule; extracting a target question number in the first voice instruction or the received second voice instruction; and storing the identified character picture corresponding to the target question mark. By implementing the embodiment of the invention, one or more questions can be collected through the voice command, the user does not need to manually cut the pictures of the content to be collected, the operation is simple and convenient, meanwhile, the question collection efficiency is improved, and the user experience is improved.)

1. A method for collecting questions is applied to an intelligent terminal and is characterized by comprising the following steps:

when a first voice instruction is received, starting a camera to acquire a target image, and identifying characters in the target image;

acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule;

extracting a target question number in the first voice instruction or the received second voice instruction;

and storing the identified character picture corresponding to the target question mark.

2. The method of claim 1, wherein extracting the target topic number in the first voice command or the received second voice command comprises:

extracting one or more digital keywords in the first voice instruction or the second voice instruction, or one or more digital keywords and associated words of the digital keywords;

and taking the information corresponding to the digital key words or the relevant words of the digital key words and the digital key words as target question numbers.

3. The method according to claim 1 or 2, wherein the storing the recognized character picture corresponding to the target question mark comprises:

traversing each question mark in the target image based on the target question mark, and detecting the corresponding relation between the target question mark and the question mark in the target image;

if the target question number corresponds to only one question number in the target image, storing the identified character picture corresponding to the target question number;

and if the target question number corresponds to a plurality of question numbers in the target image or does not correspond to the question number in the target image, receiving a third voice instruction, and determining a new target question number according to the third voice instruction.

4. The method of claim 3, wherein receiving a third voice command if the target topic number corresponds to multiple topic numbers in the target image or does not correspond to a topic number in the target image comprises:

when the target question number corresponds to a plurality of question numbers in the target image, sending selection information to a user;

when the target question number does not correspond to any question number in the target image, sending prompt information to a user;

and receiving a third voice instruction, wherein the third voice instruction is generated for the user based on the selection information or the prompt information.

5. The method according to claim 1 or 2, wherein the storing the recognized character picture corresponding to the target question mark comprises:

traversing each question mark in the target image based on the target question mark, and detecting the corresponding relation between the target question mark and the question mark in the target image;

and if the partial target question numbers correspond to a plurality of question numbers in the target image or do not correspond to the question numbers in the target image, storing the identified character pictures corresponding to the residual partial target question numbers.

6. The utility model provides a device that topic was collected, is applied to intelligent terminal, its characterized in that, intelligent terminal includes:

the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for starting a camera to acquire a target image and identifying characters in the target image when a first voice instruction is received;

the recognition unit is used for acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule;

the extracting unit is used for extracting a target question number in the first voice instruction or the received second voice instruction;

and the storage unit is used for storing the identified character picture corresponding to the target question mark.

7. A method for collecting questions is applied to an intelligent terminal and a server, and is characterized by comprising the following steps:

when the intelligent terminal receives a first voice instruction, starting a camera to acquire a target image, and sending the target image to a server;

the server identifies the characters in the target image and acquires each question mark in the target image according to the identified characters and a preset question mark naming rule;

the intelligent terminal extracts a target question number in the first voice instruction or the received second voice instruction and sends the target question number to the server;

and the server stores the identified character picture corresponding to the target question number according to the target question number and sends feedback information to the intelligent terminal.

8. The utility model provides a system for topic is collected, is applied to in intelligent terminal and the server, its characterized in that:

the intelligent terminal comprises an acquisition unit and an extraction unit, wherein the acquisition unit is used for starting a camera to acquire a target image and sending the target image to a server when receiving a first voice instruction; the extraction unit is used for extracting a target question number in the first voice instruction or the received second voice instruction and sending the target question number to the server;

the server comprises an identification unit and a storage unit, wherein the identification unit is used for identifying characters in the target image and acquiring each question mark in the target image according to the identified characters and a preset question mark naming rule; and the storage unit is used for storing the identified character picture corresponding to the target question number according to the target question number and sending feedback information to the intelligent terminal.

9. The system according to claim 8, wherein the storage unit comprises a first sub-unit, a second sub-unit and a third sub-unit, and the intelligent terminal further comprises a receiving unit; wherein:

the first subunit is configured to traverse each question mark in the target image based on the target question mark, and detect a correspondence between the target question mark and the question mark in the target image;

the second subunit is configured to, if the target question mark corresponds to only one question mark in the target image, store the identified character picture corresponding to the target question mark;

the third subunit is configured to send feedback information to the intelligent terminal if the target question number corresponds to multiple question numbers in the target image or does not correspond to a question number in the target image;

the receiving unit is used for receiving the feedback information and sending selection information or prompt information to a user based on the feedback information so as to receive a third voice instruction generated by the user based on the selection information or the prompt information.

10. An electronic device, comprising: a memory storing executable program code; a processor coupled with the memory; the processor calls the executable program code stored in the memory to perform a method of topic collection as claimed in any one of claims 1 to 5.

11. A computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute a method of topic collection according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of intelligent terminals, in particular to a question collecting method and device, electronic equipment and a storage medium.

Background

In order to solve the difficult problems of the homework of primary and secondary schools, a plurality of application programs for searching questions or gathering wrong questions for solving the difficult problems of the homework of students appear on the market at present, and all the application programs shoot the question pictures through a camera to be stored as wrong questions or used for searching corresponding answers. The implementation methods thereof are roughly divided into three types:

the first method is to select the question desired by the user in a mode of manually dragging the user to a cutting frame, and the cutting frame is required to be operated for multiple times in the mode so that the cutting frame is enlarged or reduced, and the question picture can be accurately acquired.

The second method is that a point is selected by using an operation body on a bearing body, then a picture is taken according to the point and a question picture is obtained by a certain training model based on a preset rule, which is more intelligent than the first method, but because the recognition phenomenon is usually concentrated in the range of one point, the obtained content picture is possibly incomplete or invalid information exists, and the result of searching the question is easy to make mistakes.

The third method is a track-based method, for example, an operation body is moved on a carrier to enable a moving track to form a closed curve frame, a camera identifies the moving track, and an intelligent terminal selects a content frame in the closed curve frame based on the moving track, or enables a starting point coordinate and an end point coordinate of content to be framed on the carrier to serve as two ends of the moving track, and then a rectangular frame is constructed based on the starting point coordinate and the end point coordinate as diagonals to obtain the content in the rectangular frame.

No matter which mode, all need shoot, tailor, paint operation such as to a topic at every turn, tailor the in-process moreover, need the manual participation of user to obtain the choice box, the loaded down with trivial details efficiency of process is very low.

Disclosure of Invention

Aiming at the defects, the embodiment of the invention discloses a method and a device for collecting questions, electronic equipment and a storage medium, wherein pictures of the questions to be collected are obtained through voice, and the method is simple to operate and high in efficiency.

The first aspect of the embodiment of the invention discloses a topic collection method, which is applied to an intelligent terminal and comprises the following steps:

when a first voice instruction is received, starting a camera to acquire a target image, and identifying characters in the target image;

acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule;

extracting a target question number in the first voice instruction or the received second voice instruction;

and storing the identified character picture corresponding to the target question mark.

As an optional implementation manner, in the first aspect of the embodiment of the present invention, the extracting a target question mark in the first voice instruction or the received second voice instruction includes:

extracting one or more digital keywords in the first voice instruction or the second voice instruction, or one or more digital keywords and associated words of the digital keywords;

and taking the information corresponding to the digital key words or the relevant words of the digital key words and the digital key words as target question numbers.

As an optional implementation manner, in the first aspect of the embodiment of the present invention, the storing the recognized character picture corresponding to the target question mark includes:

traversing each question mark in the target image based on the target question mark, and detecting the corresponding relation between the target question mark and the question mark in the target image;

if the target question number corresponds to only one question number in the target image, storing the identified character picture corresponding to the target question number;

and if the target question number corresponds to a plurality of question numbers in the target image or does not correspond to the question number in the target image, receiving a third voice instruction, and determining a new target question number according to the third voice instruction.

As an optional implementation manner, in the first aspect of the embodiment of the present invention, if the target topic number corresponds to multiple topic numbers in the target image or does not correspond to a topic number in the target image, the receiving a third voice instruction includes:

when the target question number corresponds to a plurality of question numbers in the target image, sending selection information to a user;

when the target question number does not correspond to any question number in the target image, sending prompt information to a user;

and receiving a third voice instruction, wherein the third voice instruction is generated for the user based on the selection information or the prompt information.

As an optional implementation manner, in the first aspect of the embodiment of the present invention, the storing the recognized character picture corresponding to the target question mark includes:

traversing each question mark in the target image based on the target question mark, and detecting the corresponding relation between the target question mark and the question mark in the target image;

and if the partial target question numbers correspond to a plurality of question numbers in the target image or do not correspond to the question numbers in the target image, storing the identified character pictures corresponding to the residual partial target question numbers.

The second aspect of the embodiments of the present invention discloses a topic collection device, which is applied to an intelligent terminal, where the intelligent terminal includes:

the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for starting a camera to acquire a target image and identifying characters in the target image when a first voice instruction is received;

the recognition unit is used for acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule;

the extracting unit is used for extracting a target question number in the first voice instruction or the received second voice instruction;

and the storage unit is used for storing the identified character picture corresponding to the target question mark.

The third aspect of the embodiments of the present invention discloses a method for collecting topics, which is applied to an intelligent terminal and a server, and the method includes:

when the intelligent terminal receives a first voice instruction, starting a camera to acquire a target image, and sending the target image to a server;

the server identifies the characters in the target image and acquires each question mark in the target image according to the identified characters and a preset question mark naming rule;

the intelligent terminal extracts a target question number in the first voice instruction or the received second voice instruction and sends the target question number to the server;

and the server stores the identified character picture corresponding to the target question number according to the target question number and sends feedback information to the intelligent terminal.

The fourth aspect of the embodiment of the invention discloses a question collecting system, which is applied to an intelligent terminal and a server, wherein the intelligent terminal comprises an acquisition unit and an extraction unit, and the acquisition unit is used for starting a camera to acquire a target image and sending the target image to the server when receiving a first voice instruction; the extraction unit is used for extracting a target question number in the first voice instruction or the received second voice instruction and sending the target question number to the server;

the server comprises an identification unit and a storage unit, wherein the identification unit is used for identifying characters in the target image and acquiring each question mark in the target image according to the identified characters and a preset question mark naming rule; and the storage unit is used for storing the identified character picture corresponding to the target question number according to the target question number and sending feedback information to the intelligent terminal.

As an optional implementation manner, in a fourth aspect of the embodiment of the present invention, the storage unit includes a first subunit, a second subunit, and a third subunit, and the intelligent terminal further includes a receiving unit; wherein:

the first subunit is configured to traverse each question mark in the target image based on the target question mark, and detect a correspondence between the target question mark and the question mark in the target image;

the second subunit is configured to, if the target question mark corresponds to only one question mark in the target image, store the identified character picture corresponding to the target question mark;

the third subunit is configured to send feedback information to the intelligent terminal if the target question number corresponds to multiple question numbers in the target image or does not correspond to a question number in the target image;

the receiving unit is used for receiving the feedback information and sending selection information or prompt information to a user based on the feedback information so as to receive a third voice instruction generated by the user based on the selection information or the prompt information.

A fifth aspect of an embodiment of the present invention discloses an electronic device, including: a memory storing executable program code; a processor coupled with the memory; the processor calls the executable program code stored in the memory to execute the method for collecting topics disclosed by the first aspect of the embodiment of the present invention.

A sixth aspect of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute a method for topic collection disclosed in the first aspect of the present invention.

A seventh aspect of the embodiments of the present invention discloses a computer program product, which, when running on a computer, causes the computer to execute the method for collecting topics disclosed in the first aspect of the embodiments of the present invention.

An eighth aspect of the present invention discloses an application publishing platform, where the application publishing platform is configured to publish a computer program product, and when the computer program product runs on a computer, the computer is enabled to execute a method for topic collection disclosed in the first aspect of the present invention.

Compared with the prior art, the embodiment of the invention has the following beneficial effects:

in the embodiment of the invention, when a first voice instruction is received, a camera is started to obtain a target image, and characters in the target image are identified; acquiring each question mark in the target image according to the recognized characters and a preset question mark naming rule; extracting a target question number in the first voice instruction or the received second voice instruction; and storing the identified character picture corresponding to the target question mark. Therefore, by implementing the embodiment of the invention, a plurality of test questions can be collected at one time, manual participation of a user is not needed, the operation is simple and convenient, and the question collection efficiency is improved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a schematic flow chart of a topic collection method disclosed in an embodiment of the present invention;

FIG. 2 is a schematic flow chart of another topic collection method disclosed in the embodiment of the present invention;

FIG. 3 is a schematic flow chart of another topic collection method disclosed in the embodiment of the present invention;

FIG. 4 is a schematic flow chart of another topic collection method disclosed in the embodiment of the present invention;

FIG. 5 is a schematic structural diagram of a topic collection apparatus disclosed in the embodiment of the present invention;

FIG. 6 is a schematic structural diagram of another topic collection device disclosed in the embodiment of the present invention;

FIG. 7 is a schematic structural diagram of another topic collection device disclosed in the embodiment of the present invention;

fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that the terms "first", "second", "third", "fourth", and the like in the description and the claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

The embodiment of the invention discloses a method and a device for collecting questions, electronic equipment and a storage medium, wherein a selection frame can be obtained only by constructing a first straight line and a second straight line according to a start point coordinate and an end point coordinate of a moving track, the operation is very simple and convenient, the completeness of the questions can be ensured, the user experience is improved, and the detailed description is carried out in combination with the attached drawings.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:神经网络中的盲点实施

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!