Writing photography method, device, learning machine and storage medium
Through multiple cameras' regional shooting and target sub-image detection, the problem of insufficient clarity when shooting with wide-angle cameras is solved, and higher shooting clarity and recognition accuracy are achieved.
Patent Information
- Application Number
- CN202210886866.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-07-26
AI Technical Summary
In the existing technology, when using a wide-angle camera to shoot, the clarity of the captured content cannot be guaranteed. Especially when shooting a large homework book or test paper, the edge clarity is low, which affects subsequent recognition processing.
Use multiple cameras to shoot, control all cameras to shoot the desktop, detect the sub-image containing the target object, keep the camera corresponding to the target sub-image for shooting, and turn off other cameras to reduce the shooting range of each camera to improve clarity .
While the pixels remain unchanged, fewer shooting details are described, making the content captured by each camera clearer, ensuring that the field of view captured by the camera module is large enough to meet user needs, and improving edge clarity to facilitate subsequent identification and analysis.
Smart Images

Figure CN115278108B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of learning machines, and in particular to a writing photography method, device, learning machine and storage medium. Background Art
[0002] At present, artificial intelligence technology is widely used in all walks of life. For example, in the education industry, artificial intelligence technology is applied to learning machines as auxiliary learning devices used by users in the learning process. In the application of artificial intelligence technology, the camera, as a key device, can capture the user's learning handwriting, answering handwriting and other contents. After that, the handwriting content can be identified using artificial intelligence technology, and then the functions of automatically counting wrong questions and finding weak knowledge points can be realized, so that users can learn in a targeted manner.
[0003] It is understandable that the clearer the camera captures, the more accurate the subsequent recognition and answering will be. Figure 1 When the learning machine 1 is fixed on the desktop 2 and photographs the workbook or test paper 3 placed on the desktop 2, the camera 4 needs to be tilted to photograph the desktop 2. In this way, the depth of field and field angle of the camera during the shooting process will affect the clarity and shooting range of the shooting. When the workbook or test paper 3 to be photographed is large, a wide-angle camera is required to photograph the entire workbook or test paper 3. However, the edge clarity of the wide-angle camera is low when shooting, which is not conducive to subsequent recognition processing.
[0004] In summary, how to ensure the clarity of the captured content when using the camera of a learning machine has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides a writing shooting method, device, learning machine and storage medium to solve the technical problem in the prior art that the clarity of the shot content cannot be guaranteed when shooting with a wide-angle camera.
[0006] In a first aspect, an embodiment of the present application provides a writing shooting method, which is applied to a learning machine, wherein the learning machine is provided with a camera module, wherein the camera module includes a plurality of cameras, wherein the field of view of the camera is determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range;
[0007] The method comprises:
[0008] Controlling all the cameras to shoot the desktop to obtain a plurality of sub-images, wherein text objects are placed on the desktop, and each camera corresponds to one sub-image;
[0009] Detecting a target sub-image including a target object among the plurality of sub-images, wherein the target object is related to the writing action received by the text object;
[0010] The camera corresponding to the target sub-image is kept shooting, and other cameras are turned off.
[0011] In a second aspect, an embodiment of the present application further provides a writing shooting device, which is applied to a learning machine, wherein the learning machine is provided with a camera module, wherein the camera module includes a plurality of cameras, wherein the field of view of the camera is determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range;
[0012] The device comprises:
[0013] A first shooting unit, used for controlling all the cameras to shoot the desktop to obtain a plurality of sub-images, wherein text objects are placed on the desktop, and each camera corresponds to one sub-image;
[0014] A first detection unit, configured to detect a target sub-image including a target object among the plurality of sub-images, wherein the target object is related to the writing action received by the text object;
[0015] The second shooting unit is used to keep the camera corresponding to the target sub-image shooting and turn off other cameras.
[0016] In a third aspect, an embodiment of the present application further provides a learning machine, the learning machine comprising a camera module, one or more processors and a memory, the camera module comprising a plurality of cameras, the field of view of the camera being determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range;
[0017] The camera module is used to shoot according to the instruction of the processor;
[0018] The memory is used to store one or more programs;
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the writing shooting method as described in the first aspect.
[0020] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the writing photography method as described in the first aspect.
[0021] The above-mentioned writing shooting method, device, learning machine and storage medium, by controlling all cameras to shoot the desktop where the text object is placed, and identifying the target sub-image containing the target object in the multiple sub-images obtained by shooting, then only keeping the camera corresponding to the target sub-image to shoot, and turning off other cameras, to obtain the technical means of the writing picture, solves the technical problem that the clarity of the shooting content cannot be guaranteed when using a wide-angle camera to shoot in the prior art. By shooting in different areas with multiple cameras, the shooting range of each camera can be narrowed to describe fewer shooting details without changing the pixels, thereby making the content shot by each camera clearer, and the union area of the shooting range of each camera as the shooting range of the learning machine camera module can ensure that the field of view (i.e., shooting range) of the camera module is large enough to meet the actual needs of users. Further, the field of view of the camera is determined by the vertical height of the camera and the desktop when the learning machine is fixed on the desktop and the desktop is shot, and the shooting range required by each camera. By setting a reasonable field of view for the camera, the field of view of the camera is smaller, and the edge of the shooting range is closer to the center, which improves the clarity of the edge and facilitates subsequent recognition and analysis. In addition, the distance between cameras is determined based on the number of cameras and the maximum shooting range, ensuring a reasonable arrangement of the cameras in the learning machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the placement of a learning machine in the prior art;
[0023] Figure 2 A schematic diagram of camera distribution provided in one embodiment of the present application;
[0024] Figure 3 A schematic diagram of camera distribution provided in one embodiment of the present application;
[0025] Figure 4 A schematic diagram of camera distribution provided in one embodiment of the present application;
[0026] Figure 5 A schematic diagram of camera distribution provided in one embodiment of the present application;
[0027] Figure 6 A schematic diagram of the positions of a reflector and a camera provided in one embodiment of the present application;
[0028] Figure 7A photographed image provided by an embodiment of the present application;
[0029] Figure 8 A schematic diagram of a shooting range imaging provided by an embodiment of the present application;
[0030] Fig. 9 A flowchart of a writing photography method provided in one embodiment of the present application;
[0031] Fig.10 A flowchart of a writing photography method provided in one embodiment of the present application;
[0032] Fig.11 A schematic diagram of the relative position relationship between a learning machine and a desktop provided in one embodiment of the present application;
[0033] Fig.12 for Fig.11 The plane graph of triangle ABC;
[0034] Fig.13 for Fig.11 Plan view of the middle triangle AED;
[0035] Fig.14 A schematic diagram of the relationship between a field of view angle and a shooting range provided for an embodiment of the present application;
[0036] Fig.15 A schematic diagram of camera spacing provided for one embodiment of the present application;
[0037] Fig.16 Another schematic diagram of camera spacing provided for an embodiment of the present application;
[0038] Fig.17 A schematic diagram of the structure of a writing and photographing device provided in one embodiment of the present application;
[0039] Fig.18 A structural diagram of a learning machine provided for one embodiment of the present application. DETAILED DESCRIPTION
[0040] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0041] An embodiment of the present application provides a writing shooting method, which can be executed by a writing shooting device, which can be implemented by software and / or hardware and integrated in a writing shooting device. Among them, the writing shooting device can be composed of two or more physical entities, or it can be composed of one physical entity, and the embodiment does not limit this. The writing shooting device can be a tablet computer, a laptop computer, a mobile phone, a learning machine, etc. At present, the writing shooting device is taken as an example as a learning machine. Among them, as an auxiliary device for user learning, the learning machine can formulate a learning plan, display teaching courses, recommend exercises, shoot the user's learning process or problem-solving process, and correct the exercises answered by the user, etc. The learning machine can also be recorded as a learning device, a learning terminal, etc. During the use of the learning machine, it can be fixed on the desktop to shoot the user's learning process or writing process on the desktop. Among them, the fixing method of the learning machine and the desktop is not currently limited. For example, a bracket is placed on the desktop, and the learning machine is placed on the bracket to achieve the fixing of the learning machine and the desktop. At present, the structure of the bracket is fixed, that is, the angle between the learning machine and the desktop when the bracket is placed is fixed, and the learning machine is known.
[0042] The learning machine is installed with at least one operating system, and at least one application can be installed under the operating system. The application can be an application that comes with the operating system, or an application that is downloaded from a third-party device or server, which is not currently limited. The learning machine is also installed with a display screen, which can have a touch function. The learning machine is also installed with a communication device, through which online courses, answers to exercises, etc. can be obtained.
[0043] In one embodiment, the learning machine is further provided with a camera module. The camera module includes a plurality of cameras, the field of view of the cameras being determined by the vertical height between the cameras and the desktop when the learning machine is fixed on the desktop and photographing the desktop, and the shooting range required by each camera, and the spacing between the plurality of cameras being determined according to the number of the cameras and the shooting range.
[0044] Exemplarily, there are at least two cameras, and their specific number and relative positions can be determined according to actual shooting requirements, for example, Figure 2-Figure 5A camera distribution diagram is provided for each embodiment of the present application, which respectively shows the arrangement of the cameras when there are two, three, five and seven cameras 51 in the camera module 5, which can also be understood as the relative position between the cameras. It can be understood that the installation position of the camera in the learning machine can be determined according to the actual shooting needs. For example, multiple cameras are installed on a border on the user side of the learning machine, or multiple cameras are installed on multiple borders on the user side of the learning machine. At this time, each camera can be understood as the front camera of the learning machine. In one embodiment, a reflector can also be set for the camera module, wherein each camera can be configured with a reflector or multiple cameras can share a reflector, and the reflector is used to reflect external light to the camera for imaging, for example, Figure 6 A schematic diagram of the positions of a reflector and a camera provided in one embodiment of the present application, with reference to Figure 6 The reflector 52 is located in front of the camera 51 and presents a certain angle to transmit the content 6 to be photographed below to the camera for imaging. Optionally, the size of the reflector is larger than the field of view of the camera that shoots it, so as to ensure that the camera does not shoot the content outside the reflector when shooting with the reflector.
[0045] Exemplarily, each camera is of the same type, for example, each camera is a fixed-focus camera, or each camera is a zoom camera. Furthermore, the parameters set for each camera when shooting (such as focal length, field of view, etc.) are the same and the shooting range is also the same, wherein the shooting range refers to the range of the real world that can be captured by the camera when shooting. Currently, taking the learning machine fixed on the desktop and shooting the desktop as an example, on this basis, the shooting range mentioned in the embodiment refers to the desktop range that can be captured by the camera when shooting the desktop. Furthermore, the actual area corresponding to the shooting range of the camera at a distance when shooting is larger, and the unit photosensitive area corresponding to the camera's photosensitive area is smaller. For example, Figure 7 A photographed image provided by an embodiment of the present application, referring to Figure 7 , the horizontal shooting range of the camera when shooting near ( Figure 7 The lower end of the) is less than one line, and the horizontal shooting range in the distance ( Figure 7 The top of the column is more than one line. Figure 7 In the , some text is mosaiced. However, the number of pixels corresponding to the distant shooting range and the near shooting range in the photos taken by the camera is the same. For example, Figure 8 A schematic diagram of a shooting range imaging provided by an embodiment of the present application, Figure 8In the example, the image captured by the camera is 5×5 pixels (piexs). At this time, when the camera 51 captures the content 6 to be captured, an image of 5×5piexs can be obtained. The distant shooting range (such as Figure 7 The upper end of the image is represented by the 5 horizontal pixels at the upper end of the image, and the near end of the shooting range (such as Figure 7 The lower end of the image is presented by 5 pixels horizontally at the lower end of the image. At this time, for the same size of content in the near end and the far end, the content at the near end is presented using more pixels, so it is clearer. Based on this, in the embodiment, a suitable field of view angle is set for the camera (generally less than the maximum field of view angle when a single camera is used for shooting), so that the shooting range of the camera is appropriately small, and then more pixels are used to present the content within the shooting range, ensuring that the image obtained by shooting is clearer and the distortion is relatively smaller, which is convenient for subsequent image processing. Among them, the field of view angle can also be called the field of view, and the size of the field of view angle determines the field of view range (currently the shooting range) of the optical instrument (currently the camera). In the embodiment, when the learning machine is fixed on the desktop, the angle between the learning machine and the desktop is fixed. At this time, combined with the installation position of the camera on the learning machine, and the shooting range and vertical height of the camera on the desktop required during the application of the learning machine, a suitable field of view angle is set for each camera, wherein the shooting range currently used is the range that the user expects the camera to shoot. In principle, after setting a suitable field of view angle for the camera, the camera can meet the required shooting range. It should be noted that the shooting ranges corresponding to the cameras at adjacent locations intersect or are adjacent to each other. In this case, the union of the shooting ranges can be considered as the total shooting range of the camera module.
[0046] Further, the distance between each camera installed in the learning machine can also be determined in combination with the number of cameras and the shooting range of the camera. For example, when there are two cameras, then the maximum value of the spacing between each camera is the length of the edge line farthest from the camera in the shooting range, so as to ensure that the shooting ranges of the two cameras are close to each other, thereby avoiding the situation of missing the shooting content. In one embodiment, in combination with the application scenario of the learning machine, the total shooting range of the camera module should be greater than or equal to the area of the book or test paper used by the user when studying. For example, the area is the largest when the writing or test paper is A3 size. Therefore, the total shooting range of the camera module should be greater than or equal to the area range corresponding to the A3 size. In one embodiment, the A3 size is 297*420mm, so the total shooting range of the shooting module is 297*420mm. It can be understood that since the total shooting range of the shooting module is known and the number of cameras is also known, it is possible to set a suitable shooting range for the camera in combination with the total shooting range and the number of cameras, and then determine the field of view and spacing of the camera in combination with the shooting range of the camera. Then the installation position of the camera in the learning machine is obtained.
[0047] Fig. 9 A flowchart of a writing photography method provided by an embodiment of the present application, referring to Fig. 9 , the writing shooting method comprises:
[0048] Step 110: Control all the cameras to shoot the desktop to obtain multiple sub-images, where text objects are placed on the desktop, and each camera corresponds to one sub-image.
[0049] Currently, the learning machine is fixed on the desktop and the camera module is in the activated state. At this time, the learning machine can control the cameras of the camera module to shoot. In one embodiment, when the learning machine shoots the desktop, the camera can shoot the desktop directly, or the camera can shoot through a reflector. In either case, it is only necessary to shoot the desktop. In one embodiment, a text object is placed on the desktop. The text object refers to a book or paper containing text content. Currently, the text object is a book or a test paper. Each camera shooting the desktop specifically refers to shooting the text object.
[0050] Optionally, when the camera is shooting, it can be continuous shooting or only one image can be shot, which is not limited in the embodiment. Currently, the image shot by each camera is recorded as a sub-image. It can be understood that the sub-image shows the sub-area of the text object within the shooting range of the corresponding camera. After the sub-images obtained by each camera are spliced, an image containing the complete text object can be obtained. Currently, each sub-image obtained is a sub-image taken by each camera at the same time.
[0051] Step 120: Detect a target sub-image containing a target object among the plurality of sub-images, where the target object is related to the writing action received by the text object.
[0052] Exemplarily, after acquiring each sub-image, each sub-image is identified to determine whether it contains the target object. The target object is an object related to the writing action when the user writes on the text object. In one embodiment, the target object is a pen and / or a human hand. It can be understood that when the user operates on the text object, it is generally implemented through a pen (which can be a writing pen, a reading pen, etc.) or a human hand. When the target object is a pen, it can be specifically a pen head and a pen tip. The pen tip refers to the part of the pen that contacts the text object, and the pen head is the part that connects the pen tip and the pen shaft. Furthermore, the method of identifying whether the sub-image contains the target object is not currently limited. For example, a neural network model is constructed to identify whether the sub-image is the target object through the neural network model (which has been trained), or the target object in the sub-image is identified using image recognition technology or image tracking technology.
[0053] For example, if the target object is recognized in a sub-image, it is determined that the user may have written in the part of the text object captured by the sub-image, that is, a writing action has been made. Generally speaking, only one sub-image contains the target object at the same time, in which case the sub-image containing the target object is recorded as the target sub-image.
[0054] Step 130: Keep the camera corresponding to the target sub-image shooting, and turn off other cameras.
[0055] Exemplarily, after determining the target sub-image, determine the camera that captured the target sub-image (i.e., the camera corresponding to the target sub-image). Then, control the camera corresponding to the target sub-image to continue shooting, i.e., continuously shoot. In addition, turn off other cameras to save hardware resources of the learning machine.
[0056] Optionally, after controlling the camera corresponding to the target sub-image to continue shooting, the continuously acquired sub-images constitute the user's writing picture. Afterwards, the learning machine can identify the trajectory written by the user in the writing picture to determine the user's writing content, and then perform subsequent functions, such as in the question-answering scenario, judging whether the answer is accurate based on the writing content, and in the learning scenario, determining the user's knowledge mastery based on the writing content.
[0057] The above-mentioned writing shooting method controls all cameras to shoot the desktop where the text object is placed, and identifies the target sub-image containing the target object in the multiple sub-images obtained by shooting. After that, only the camera corresponding to the target sub-image is kept to shoot, and the other cameras are turned off to obtain the technical means of the writing picture, which solves the technical problem that the clarity of the shooting content cannot be guaranteed when shooting with a wide-angle camera in the prior art. By shooting in different areas with multiple cameras, the shooting range of each camera can be narrowed to describe fewer shooting details without changing the pixels, thereby making the content shot by each camera clearer. In addition, the union area of the shooting range of each camera is used as the shooting range of the camera module of the learning machine, which can ensure that the field of view (i.e., the shooting range) of the camera module is large enough to meet the actual needs of the user. Further, the field of view of the camera is determined by the vertical height between the camera and the desktop when the learning machine is fixed on the desktop and the desktop is photographed, as well as the shooting range required by each camera. By setting a reasonable field of view angle for the camera, the field of view of the camera is smaller, and the edge of the shooting range is closer to the center, which improves the clarity of the edge and facilitates subsequent recognition and analysis. In addition, the distance between cameras is determined based on the number of cameras and the maximum shooting range, ensuring a reasonable arrangement of the cameras in the learning machine.
[0058] In one embodiment, since the user is mobile when writing, that is, the writing position will change, the camera that captures the target object will also change. At this time, the learning machine needs to immediately determine the camera that captures the target object to achieve writing tracking. Based on this, in this embodiment, while keeping the camera corresponding to the target sub-image to capture, it also includes: continuously detecting the target object in the target sub-image. After keeping the camera corresponding to the target sub-image to capture and turning off other cameras, it also includes: when it is detected that the target sub-image does not contain the target object, returning to execute the operation of controlling all the cameras to capture the desktop.
[0059] Exemplarily, when the camera corresponding to the target sub-image shoots to obtain the writing picture, the learning machine detects the real-time target sub-image continuously shot by the camera to determine whether the target sub-image contains the target object. If the target object is contained, it means that the user is still writing within the shooting range corresponding to the camera. If the target object is not contained, it means that the user has changed the writing position or the user has finished writing. At this time, further judgment is required. When further judging, the learning machine controls all cameras to shoot the desktop again, that is, returns to execute the operation of controlling all cameras to shoot the desktop, and obtains the sub-images shot by each camera. After that, the target sub-image containing the target object is identified in each sub-image, and the camera corresponding to the target sub-image continues to shoot, and other cameras are turned off. It should be noted that there is a situation where each sub-image does not contain the target object, that is, the learning machine cannot recognize the target object. At this time, the learning machine confirms that the user is not writing, and continues to control each camera to shoot to continue to detect the target object.
[0060] Optionally, a time length is preset, and the specific value of the time length can be set according to actual conditions. When it is detected that the target sub-image does not contain the target object, the timing is started, and the target sub-image acquired in real time is continuously identified as to whether it contains the target object. If the target object is detected, the camera corresponding to the target sub-image is continuously kept shooting, and other cameras are turned off. If the timing reaches the preset time length and the target object is still not detected, it is determined that the user is not writing within the current shooting range. At this time, the operation of controlling all cameras to shoot the desktop is returned to avoid the influence of the user's writing pause on the detection result.
[0061] As mentioned above, while the camera corresponding to the target sub-image is kept shooting, the target object is detected in real time, and when the target object is not detected, all cameras are controlled to shoot again to detect the target sub-image containing the target object again, and then the corresponding camera is controlled to shoot. In this way, when the user changes the writing position, the learning machine can instantly grasp the user's latest writing position and track the shooting to ensure the writing tracking effect.
[0062] Fig.10 A flowchart of a writing shooting method provided for one embodiment of the present application. In this embodiment, the camera module includes two cameras, each of which has the same field of view. At this time, the field of view of the camera is fixed on the desktop by the learning machine and the vertical height between the camera and the desktop and the shooting range required by each camera when shooting the desktop are determined. The calculation formula of the field of view is:
[0063] Fov=2arctan(s / h)
[0064] h=AF / sinα
[0065] Among them, Fov represents the field of view angle, s represents half of the length of the farthest side captured by the camera when shooting, and the farthest side captured is determined according to the shooting range, AF represents the vertical height of the learning machine when it is fixed on the desktop, h represents the length of the line connecting the camera and the midpoint of the farthest side captured when the learning machine is fixed on the desktop and the desktop is photographed, and α represents the angle between the line and the desktop.
[0066] Exemplarily, the present description is made by taking the example that the camera module includes two cameras. Fig.11 A schematic diagram of the relative position relationship between a learning machine and a desktop provided in one embodiment of the present application. Fig.11 , when the learning machine 1 is fixed on the desktop, each camera 51 is located above the side of the learning machine 1 facing the user. The angle between the learning machine 1 and the desktop is denoted as θ. The total shooting range of the camera module when shooting needs to cover the area corresponding to the A3 size, that is, when the camera module is shooting, the horizontal shooting range (parallel to the contact line between the learning machine and the desktop) needs to reach 420mm, and the vertical shooting range needs to reach 297mm. In the embodiment, when there are two cameras 51, the shooting range required for each camera 51 on the desktop should be equal to or greater than 297*210mm, that is, the horizontal shooting range of each camera should be equal to or greater than 210mm. At present, taking one camera as an example to describe the shooting range of the camera, refer to Fig.11 , in the camera's shooting range, the edge farthest from the camera and parallel to the edge that contacts the learning machine and the desktop (corresponding to Fig.11 The side BC in the figure should be greater than or equal to 210 mm, and its specific value can be set according to the actual situation. In addition, the side BC is recorded as the farthest side of the shooting, and the midpoint of the farthest side of the shooting is recorded as point D. At this time, BD = DC. For ease of understanding, the camera is recorded as point A, and a vertical line is drawn from the camera to the bottom edge of the learning machine (that is, the edge that touches the desktop), and the intersection is recorded as point E. At this time, triangle ABC and triangle AED can be formed. Fig.12 for Fig.11The plane graph of triangle ABC, Fig.13 for Fig.11 The plane diagram of triangle AED in Fig. 1. Wherein, triangle ABC is an isosceles triangle. For triangle ABC, the angle of angle BAC is the field of view of the camera. Side AD can reflect the length from point A (i.e., camera) to side BC (i.e., the farthest side taken). It can be understood that side AD is perpendicular to side BC. Currently, the length of side AD is recorded as h, that is, h represents the length of the line connecting the camera and the midpoint of the farthest side taken when the learning machine is fixed on the desktop and the desktop is photographed. At this time, according to the trigonometric function, tan(Fov / 2)=s / h can be obtained, where s is half the length of the farthest side taken when the camera is shooting. Since the specific value of s can be determined after the required shooting range of the camera is determined, that is, s has been set, therefore, Fov can be obtained after obtaining h. For triangle AED, draw a perpendicular line from point A to side ED and record the intersection as point F. Refer to Fig.13 , at this time, we can also get the triangle AFD. Among them, the length of side AF can be understood as the vertical distance from the camera to the desktop, that is, the vertical height of the learning machine to the desktop when it is fixed on the desktop. The length of side AD is h, the angle AED is θ, and side AE can be understood as the width of the learning machine (that is, the length of the side that is not parallel to the desktop when it is fixed on the desktop). At present, the length of side AE is recorded as d. Based on Fig.13 It can be seen that the length of side AF can be determined by d and θ, that is, AF = d*sin(1-θ). After that, using trigonometric functions or the Pythagorean theorem, when the lengths of side AF and side AE are known, the length of side FE can be derived. Moreover, since the length of side DE is known (297nm in the maximum shooting range), the length of side FD can be obtained. At this time, according to the lengths of side FD and side AF, the Pythagorean theorem can be used to obtain the length of side AD, that is, the value of h, and then the value of Fov can be obtained. Alternatively, after the camera is fixed on the learning machine, when it shoots the desktop, the angle between the camera and the line connecting the farthest edge of the camera and the desktop is known. This angle is angle ADE. It can be understood that the specific value of this angle has nothing to do with the height of the camera and the desktop. Currently, the angle of angle ADE is recorded as α. At this time, α can also represent the angle between line AD and the desktop, and it can be obtained that sinα = AF / h. Since α and AF have been determined, h can be obtained based on the above formula, and then Fov can be obtained based on h and s. It can be understood that referring to Fig.13 , using the sine theorem, we can also deduce that h / sinθ=d / sinα=AF, so we can get the relationship between h and d as h=sinθ*d / sinα. Fig.14 A schematic diagram of the relationship between the field of view angle and the shooting range provided in an embodiment of the present application, with reference to Fig.14 When the camera's field of view is fixed, the closer the farthest edge is to the camera, the smaller the shooting range is. Fig.14 In the figure, the distance between the edge a1 and the camera is smaller than the distance between the edge a2 and the camera. Therefore, the shooting range when the edge a1 is used as the farthest edge is smaller than the shooting range when the edge a2 is used as the farthest edge.
[0067] In one embodiment, the camera module includes two cameras, and the distance between the two cameras is less than or equal to the length of the farthest edge when the cameras shoot the desktop, and the farthest edge is determined according to the shooting range. Fig.11 For example, the length of the farthest edge (i.e., edge BC) of a camera is 2s, and the value of s is preset. At this time, when the distance between the two cameras is 2s, there is no overlap between the maximum shooting ranges of the two cameras. For example, Fig.15 A schematic diagram of the distance between cameras provided in one embodiment of the present application. Currently, the distance between the cameras is recorded as L. When L=2s, the plane where the farthest edge of the camera and the shooting range are located (i.e., the plane where the triangle ABC is located) is as shown in FIG. Fig.15 As shown, at this time, the farthest edges of the two cameras are adjacent, that is, the two shooting ranges are adjacent. Fig.16 Another camera spacing diagram provided for an embodiment of the present application is shown in FIG. Fig.16 When the distance between the two cameras is 0, the two cameras can be understood as one camera. At this time, the plane diagram of the camera and the farthest edge of the shooting range is as follows: Fig.16 As shown, at this time, the shooting ranges of the two cameras completely overlap. Based on this, it can be seen that the distance between the two cameras should be greater than 0 and less than or equal to the length of the farthest edge of the shooting.
[0068] On this basis, reference Fig.10 , the writing shooting method comprises:
[0069] Step 210: Control all the cameras to shoot the desktop to obtain multiple sub-images. Text objects are placed on the desktop, and each camera corresponds to a sub-image.
[0070] In one embodiment, the text object includes at least one exercise title, wherein the type of the exercise is not currently limited.
[0071] Step 220: splice the plurality of sub-images according to the relative positions between the cameras to obtain a text image containing a complete text object.
[0072] Exemplarily, the learning machine predetermines the relative positions of the cameras, wherein the relative positions are used to reflect the arrangement of the cameras. For example, the camera module adopts Figure 2In the structure shown, the relative positions of the two cameras are horizontally arranged left and right. At this time, the sub-images captured by the two cameras are also horizontally arranged left and right. Based on this relationship, the two sub-images can be spliced to obtain an image, which can be considered as an image captured by the camera module, and the image contains a complete text object. Currently, the spliced image is recorded as a text image.
[0073] In one embodiment, when splicing, the arrangement relationship of each sub-image is first determined based on the relative position between each camera. Afterwards, for two adjacent sub-images, the same parts in the two sub-images are searched. It can be understood that since there are partially overlapping areas in the shooting ranges of adjacent cameras, there are also some identical contents between the sub-images captured by adjacent cameras. Therefore, the same parts in adjacent sub-images can be found when splicing. It can be understood that since the positions of adjacent cameras on the learning machine are different, there will be some differences in the same contents in the two sub-images captured by adjacent cameras. At this time, it is necessary to transform the same contents in at least one sub-image so that the same contents are aligned in the two sub-images. Among them, aligning the same contents in two adjacent images during splicing is an actual means that has been realized, and it is not described separately at present. Afterwards, since the same contents between adjacent sub-images have been aligned, images can be spliced based on the same contents. Among them, when splicing, a weight can be set for the pixels representing the same content in the adjacent sub-images. Afterwards, the pixels representing the same content are fused in combination with the weights, thereby realizing the splicing of adjacent sub-images, and each adjacent sub-image is spliced to obtain a text image.
[0074] Step 230: Perform text recognition on the text image to determine the title content in the text object.
[0075] Exemplarily, text recognition is performed on a text image to obtain the text content in the text object. Currently, the text content of the text object is the title content of the exercise. The technical means used in text recognition are not currently limited. For example, a neural network for text recognition is trained, and then the title content can be obtained after the text image is input into the neural network. For another example, the text image is processed by optical character recognition (OCR) to obtain the title content contained in the text image. Generally speaking, in a text image, only text (which may include Chinese characters, English, numbers, and symbols, etc.) appears in the text object. Therefore, the title content of the text image can also be used as the title content of the text object. Alternatively, the text object in the text image is first identified, and then text recognition is performed on the text object to obtain the title content of the text object.
[0076] Step 240: Search for the answer content corresponding to the question content in the preset question bank.
[0077] The exercise question bank contains a large number of exercise questions (i.e., question contents) and corresponding answer contents. The exercise question bank can be stored in the learning machine or in the background server of the learning machine. Optionally, the exercise question bank can be classified according to subject and grade.
[0078] Exemplarily, after obtaining the question content, access one or more exercise question banks to find the exercise questions in the exercise question bank that are the same as the question content. In one embodiment, by calculating the question similarity, find one or more exercise questions in the exercise question bank that are most similar to the question content. Then, obtain the answer content of the found exercise questions as the answer content corresponding to the question content. At this time, the obtained answer content can be used to judge the accuracy of the user's current answer.
[0079] Optionally, when the target object cannot be detected, it is also necessary to re-control multiple cameras to take pictures to re-detect the target object. During this process, there is no need to identify the question content again.
[0080] Step 250: Detect a target sub-image containing the target object in the multiple sub-images, where the target object is related to the writing action received by the text object.
[0081] Step 260: Keep the camera corresponding to the target sub-image taking pictures, and turn off other cameras. According to the target sub-image obtained in real time, identify the writing trajectory corresponding to the writing action.
[0082] Exemplarily, during the shooting process, after each target sub-image is obtained, compare the current target sub-image with the previous target sub-image to determine the newly written writing trajectory in the current target sub-image. In this way, the writing trajectory written by the user in real time can be obtained. At the same time, the writing order of the writing trajectory can also be obtained.
[0083] Step 270: Determine the writing content according to the writing trajectory.
[0084] Optionally, a text library is pre-constructed, and the trajectories of each text are recorded in the text library. Then, compare the currently recognized writing trajectory with the trajectories of each text in the text library to determine the text represented by the currently recognized writing trajectory, and thus obtain the writing content. It can be understood that when the user continuously inputs multiple texts, whether a new text is written can be determined according to the position interval of the writing trajectory and the pause time of the writing trajectory. For example, when the user writes "we", after the character "我" is written, there is a certain position interval and a pause time between the first stroke of the character "们" and the last stroke of the character "我". Therefore, based on the position interval and the pause time, it can be determined that a new text "们" is written.
[0085] Optionally, a neural network for text recognition is constructed, and after the writing trajectory is input into the neural network, the writing content output by the neural network can be obtained.
[0086] Step 280: Compare the written content with the answer content to determine whether the written content is accurate.
[0087] Exemplarily, the written content is compared with the corresponding answer content. If they are the same, it is determined that the written content is correct, that is, the user answered the question correctly. Otherwise, it is determined that the written content is wrong, that is, the user answered the question incorrectly. This process can be considered as the process of correcting answers. It can be understood that since the written content is determined in real time during the writing process, comparing the real-time determined written content with the answer content can achieve real-time correction during the answering process.
[0088] Currently, since only the camera corresponding to the target sub-image is used for shooting, the camera can only capture the content of one or several exercises. Therefore, it is necessary to first determine the content of the question answered by the current user, and then determine whether the written content is accurate. At this time, the comparison of the written content and the answer content in this step may include: determining the question content contained in the target sub-image according to the relative positions between each of the cameras; comparing the written content with the answer content corresponding to the question content.
[0089] Exemplarily, since the learning machine knows the relative positions between the cameras, based on the relative positions, it can determine which part of the text object the shooting range of the camera corresponding to the target sub-image corresponds to (i.e., which area of the text image corresponds to), and then determine the question content contained in the part, and then only use the answer content corresponding to the contained question content and compare it with the written content. Optionally, after determining the question content corresponding to the current target sub-image, it is also possible to determine which exercise the user is answering based on the writing position of the user when writing. Generally speaking, the relative position of the answer area and the question content is relatively fixed for different types of exercises. For example, the answer areas of multiple-choice questions, fill-in-the-blank questions, and judgment questions are all in the question content or behind the question content, and the answer areas of subjective questions and application questions are all below the question content. Therefore, combined with the relative position relationship between the writing position and the contents of the multiple questions that have been recently connected, the question currently being answered can be determined, and then only the answer content corresponding to the question is obtained, and then the accuracy of the answer can be judged.
[0090] As mentioned above, when the text object contains exercise questions and the user is answering them, the desktop where the text object is placed is photographed by controlling all cameras, and then the multiple sub-images obtained by the photography are spliced to obtain a text image containing the complete text object, and then the text image is recognized to obtain the question content, and the answer content corresponding to the question content is searched in the exercise library, and then the target sub-image containing the target object is identified in the multiple sub-images, and then the camera corresponding to the target sub-image is kept shooting, and other cameras are turned off, and the user's writing trajectory is obtained based on the photographed target sub-image, and then the writing content is recognized based on the writing trajectory, and then the writing content and the answer content are compared to determine whether the user has answered accurately. This technical means can realize real-time correction during the user's answering process, and by shooting in different areas with multiple cameras, the shooting range of each camera can be reduced to describe fewer shooting details without changing the pixels, so that the content shot by each camera is clearer, thereby improving the accuracy of text recognition and ensuring the accuracy of real-time correction. Furthermore, the field of view angle of the camera is determined by the vertical height between the camera and the desktop when the learning machine is fixed on the desktop and the desktop is photographed, as well as the maximum shooting range required by each camera. A reasonable field of view angle can be set for the camera based on actual shooting needs, so that the camera's field of view is smaller and the edge of the shooting range is closer to the center, thereby improving the clarity of the edge and facilitating subsequent identification and analysis. In addition, the spacing between cameras is determined based on the number of cameras and the maximum shooting range, thereby ensuring the reasonable arrangement of the cameras in the learning machine.
[0091] Fig.17 A schematic diagram of a writing camera device provided in one embodiment of the present application. The writing camera device is applied to a learning machine, which is provided with a camera module, wherein the camera module includes a plurality of cameras, wherein the field of view of the camera is determined by the vertical height between the camera and the desktop when the learning machine is fixed on the desktop and the desktop is photographed, and the required shooting range of each camera, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range. Fig.17 The writing and photographing device includes a first photographing unit 301 , a first detection unit 302 and a second photographing unit 303 .
[0092] Among them, the first shooting unit 301 is used to control all the cameras to shoot the desktop to obtain multiple sub-images, where text objects are placed on the desktop, and each camera corresponds to a sub-image; the first detection unit 302 is used to detect a target sub-image containing a target object in the multiple sub-images, where the target object is related to the writing action received by the text object; the second shooting unit 303 is used to keep the camera corresponding to the target sub-image shooting and turn off other cameras.
[0093] In one embodiment of the present application, the second shooting unit 303 includes: a continuous detection subunit, which is used to keep the camera corresponding to the target sub-image shooting, and continuously detect the target object in the target sub-image, and a closing subunit, which is used to close other cameras. The device also includes: a return execution unit, which is used to keep the camera corresponding to the target sub-image shooting, and after closing other cameras, when it is detected that the target sub-image does not contain the target object, return to execute the operation of controlling all the cameras to shoot the desktop.
[0094] In one embodiment of the present application, the second shooting unit 303 includes: a real-time recognition subunit, used to keep the camera corresponding to the target sub-image shooting, and when other cameras are turned off, identify the writing trajectory corresponding to the writing action according to the target sub-image acquired in real time; a writing content determination subunit, used to determine the writing content according to the writing trajectory.
[0095] In one embodiment of the present application, the text object includes at least one question of an exercise, and the device further includes: an image stitching unit, used to control all the cameras to shoot the desktop to obtain multiple sub-images, and then stitch the multiple sub-images according to the relative positions of each of the cameras to obtain a text image containing the complete text object; a question recognition unit, used to perform text recognition on the text image to determine the question content in the text object; an answer search unit, used to search for answer content corresponding to the question content in a preset exercise library; and a content comparison unit, used to compare the written content with the answer content after determining the written content according to the writing trajectory to determine whether the written content is accurate.
[0096] In one embodiment of the present application, the content comparison unit includes: a question determination subunit, used to determine the question content contained in the target sub-image according to the relative positions between each of the cameras; and an answer comparison subunit, used to compare the written content with the answer content corresponding to the question content.
[0097] In one embodiment of the present application, the camera module includes two cameras, each of which has the same field of view, and the calculation formula of the field of view is:
[0098] Fov=2arctan(s / h)
[0099] h=AF / sinα
[0100] Among them, Fov represents the field of view angle, s represents half of the length of the farthest side captured by the camera when shooting, and the farthest side captured is determined according to the shooting range, AF represents the vertical height of the learning machine when it is fixed on the desktop, h represents the length of the line connecting the camera and the midpoint of the farthest side captured when the learning machine is fixed on the desktop and the desktop is photographed, and α represents the angle between the line and the desktop.
[0101] In one embodiment of the present application, the camera module includes two cameras, and the distance between the two cameras is less than or equal to the length of the farthest side when the cameras shoot the desktop, and the farthest side is determined according to the shooting range.
[0102] The writing and photographing device provided in this embodiment is included in a learning machine, and can be used to execute the writing and photographing method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0103] Fig.18 A structural diagram of a learning machine provided by an embodiment of the present application. Specifically, Fig.18 As shown, the learning machine includes a processor 40, a memory 41 and a camera module 42; the number of the processor 40 in the learning machine can be one or more. Fig.18 A processor 40 is taken as an example; the processor 40, the memory 41 and the camera module 42 in the learning machine can be connected by a bus or other means, Fig.18 The example of connecting through bus is taken in the following.
[0104] The camera module 42 includes a plurality of cameras, the field of view of the cameras is determined by the vertical height between the cameras and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range. The camera module 42 is used to shoot according to the instruction of the processor 40.
[0105] The memory 41, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules in the writing shooting method in the embodiment of the present application (for example, the first shooting unit 301, the first detection unit 302 and the second shooting unit 303 in the writing shooting device). The processor 40 executes various functional applications and data processing of the learning machine by running the software programs, instructions and modules stored in the memory 41, that is, implements the writing shooting method provided in any of the above embodiments.
[0106] The memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the learning machine, etc. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 41 may further include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the learning machine via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0107] The learning machine may also include an input device, which may be used to receive input digital or character information and generate key signal input related to user settings and function control of the exercise search device. The learning machine may also include an output device, which may include a display screen, a speaker, etc. The learning machine may also include a communication device, which is used to communicate data with a backend server or other devices.
[0108] The above-mentioned learning machine includes the writing and photographing device provided in the aforementioned embodiment, and can be used to execute the writing and photographing method provided in any embodiment, and has corresponding functions and beneficial effects.
[0109] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the writing and shooting method provided in any embodiment of the present application, and have corresponding functions and beneficial effects.
[0110] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0111] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0112] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0113] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0114] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0115] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A writing photography method, applied to a learning machine, characterized in that: The learning machine is provided with a camera module, which includes a plurality of cameras. The field of view of the camera is determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed. The spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range. The method comprises: Controlling all the cameras to shoot the desktop to obtain a plurality of sub-images, wherein text objects are placed on the desktop, and each camera corresponds to one sub-image; Detecting a target sub-image including a target object among the plurality of sub-images, wherein the target object is related to the writing action received by the text object; The camera corresponding to the target sub-image is kept shooting, and other cameras are turned off.
2. The writing photographing method according to claim 1, characterized in that: When the camera corresponding to the target sub-image is kept shooting, the method further includes: Continuously detecting a target object in the target sub-image; After the camera corresponding to the target sub-image is kept shooting and other cameras are turned off, the method further includes: When it is detected that the target sub-image does not include the target object, the operation of controlling all the cameras to shoot the desktop is returned to be executed.
3. The writing photographing method according to claim 1, characterized in that: When the camera corresponding to the target sub-image is kept shooting and other cameras are turned off, the method further includes: identifying a writing trajectory corresponding to the writing action according to the target sub-image acquired in real time; The writing content is determined according to the writing trajectory.
4. The writing photographing method according to claim 3, characterized in that: The text object includes at least one exercise title, After controlling all the cameras to shoot the desktop to obtain a plurality of sub-images, the method further includes: splicing the plurality of sub-images according to the relative positions between the cameras to obtain a text image containing a complete text object; Performing text recognition on the text image to determine the title content in the text object; Searching for the answer content corresponding to the content of the question in a preset question bank; After determining the writing content according to the writing trajectory, the method further includes: The written content and the answer content are compared to determine whether the written content is accurate.
5. The writing photographing method according to claim 4, characterized in that: The comparing the written content and the answer content comprises: Determining the topic content contained in the target sub-image according to the relative positions between the cameras; Compare the written content with the answer content corresponding to the question content.
6. The writing photographing method according to claim 1, characterized in that: The camera module includes two cameras, each of which has the same field of view angle, and the calculation formula of the field of view angle is: Fov=2arctan(s / h) h=AF / sinα Among them, Fov represents the field of view angle, s represents half the length of the farthest side captured by the camera when shooting, and the farthest side captured is determined according to the shooting range, AF represents the vertical height of the learning machine when it is fixed on the desktop, h represents the length of the line connecting the camera and the midpoint of the farthest side captured when the learning machine is fixed on the desktop and the desktop is photographed, and α represents the angle between the line and the desktop.
7. The writing photographing method according to claim 1, characterized in that: The camera module includes two cameras, and the distance between the two cameras is less than or equal to the length of the farthest edge when the cameras shoot the desktop, and the farthest edge is determined according to the shooting range.
8. A writing camera device, applied to a learning machine, characterized in that: The learning machine is provided with a camera module, which includes a plurality of cameras. The field of view of the camera is determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed. The spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range. The device comprises: A first shooting unit, used for controlling all the cameras to shoot the desktop to obtain a plurality of sub-images, wherein text objects are placed on the desktop, and each camera corresponds to one sub-image; A first detection unit, configured to detect a target sub-image including a target object among the plurality of sub-images, wherein the target object is related to the writing action received by the text object; The second shooting unit is used to keep the camera corresponding to the target sub-image shooting and turn off other cameras.
9. A learning machine, characterized in that: The learning machine includes a camera module, one or more processors and a memory, the camera module includes a plurality of cameras, the field of view of the camera is determined by the vertical height between the camera and the desktop and the shooting range required by each camera when the learning machine is fixed on the desktop and the desktop is photographed, and the spacing between the plurality of cameras is determined according to the number of the cameras and the shooting range; The camera module is used to shoot according to the instruction of the processor; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the writing shooting method as described in any one of claims 1-7.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the writing photographing method as described in any one of claims 1-7 when executed by a computer processor.
