Image shooting method, device, terminal equipment and storage medium
By arranging a freely rotating camera module in the learning aid device and controlling the camera rotation according to divided sub-areas, the problem of poor imaging effects in the existing technology is solved and clearer and more accurate image shooting is achieved.
Patent Information
- Application Number
- CN202210303394.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-24
AI Technical Summary
The imaging effect of existing learning aids is poor, limited by the field of view, depth of field and distortion of the camera, and cannot be applied to scenes with uneven book thickness, uneven subject matter, or long-angle shots of distant scenes. At a distance, the image is obviously deformed, and the fonts are small and difficult to distinguish.
By arranging a freely rotating camera module in the terminal device, the camera module is controlled to rotate according to pre-divided sub-areas, images of different sub-areas are captured, and target information is obtained from the images to reduce edge distortion and improve imaging effects.
It breaks through the limitations of field of view, depth of field and distortion of single-angle cameras when taking pictures, improves the imaging effect of images, and ensures clarity and accuracy in different areas.
Smart Images

Figure CN114500857B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of images, and in particular to an image capturing method, apparatus, terminal device, and storage medium. Background Art
[0002] At present, in order to assist students in their learning, learning assistance devices have been widely used in teaching. Existing learning assistance devices are generally set on electronic devices such as tablet computers, with a lifting and rotating camera or a reflector and a camera, so that when the tablet computer is used in a vertical position, the camera can take pictures of objects such as exercise books or books. However, in actual use, the photo taking effect of this method is relatively poor. For example, due to the camera's field of view, the area that the camera can shoot is limited. Due to the camera's depth of field, the learning assistance device cannot be used for scenes with uneven book thickness, uneven objects, or large angles to shoot at a farther end; due to the distortion of the camera, the edge distortion of the image captured by the camera is relatively serious. In addition, when the size of the target object is large or the distance from the camera is far, due to the limitation of the optical principle of shooting, in the area close to the tablet computer or camera, the corresponding camera CMOS pixels are more, the captured image is clearer, and the restoration degree is relatively high; while in the area far from the tablet computer or camera, the captured image is obviously deformed, and the font captured is small and not easy to distinguish.
[0003] In summary, how to improve the imaging effect of learning auxiliary equipment has become a technical problem that urgently needs to be solved. Summary of the invention
[0004] The embodiments of the present invention provide an image shooting method, an apparatus, a terminal device and a storage medium, which can improve the imaging effect of an image and solve the technical problem of poor imaging effect of learning auxiliary devices in the prior art.
[0005] In a first aspect, an embodiment of the present invention provides an image capturing method, which is applied to a terminal device, wherein the terminal device includes a camera module, and the camera module can be freely rotated to capture images of different areas. The method includes:
[0006] Determine the shooting mode of the target area;
[0007] According to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area;
[0008] Target information is obtained from the image.
[0009] Preferably, dividing the target area includes:
[0010] Determining the angle range of the camera module when rotating according to the target area;
[0011] Determining the step length of each rotation of the camera module;
[0012] The camera module is controlled to rotate within the angle range according to the step length, and the area photographed by the camera module after each rotation is divided into a sub-area.
[0013] Preferably, dividing the target area includes:
[0014] Acquire a target image, wherein the target image is obtained by photographing the target area;
[0015] The boundary of the target object is determined in the target image, a first image corresponding to the range of the boundary is determined in the target image, and the first image is divided to obtain a plurality of sub-areas.
[0016] Preferably, the first image is divided to obtain a plurality of sub-regions, including:
[0017] The first image is uniformly divided into M columns in the horizontal direction, and each column is non-uniformly divided into N rows in the vertical direction, so as to obtain M×N sub-regions.
[0018] Preferably, the first image is divided to obtain a plurality of sub-regions, including:
[0019] Performing text recognition on the first image to obtain text in the first image;
[0020] The size of the text is determined, and the first image is divided according to the size of the text to obtain a plurality of sub-areas.
[0021] Preferably, the first image is divided according to the text size to obtain a plurality of sub-areas, including:
[0022] The first image is uniformly divided into M columns in the horizontal direction, and each column is non-uniformly divided into N rows in the vertical direction, so as to obtain M×N sub-regions, and the size of each sub-region is positively correlated with the size of the text.
[0023] Preferably, the first image is divided to obtain a plurality of sub-regions, including:
[0024] The template type of the first image is determined, a division rule corresponding to the template type is acquired, and the first image is divided according to the division rule to obtain a plurality of sub-regions.
[0025] Preferably, the shooting mode is any one of a global scanning mode, a local scanning mode and a target tracking mode.
[0026] Preferably, the shooting mode is a global scanning mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation, including:
[0027] According to the pre-divided sub-areas, a path for the camera module to shoot the sub-areas is determined, and the camera module is controlled to rotate according to the path, so that the camera module shoots images of different sub-areas during the rotation process.
[0028] Preferably, the shooting mode is a local scanning mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation, including:
[0029] Acquire a global image of the target area in real time;
[0030] Determining a first area to be photographed in the global image;
[0031] Determine a first sub-area included in the first area, determine a first path for the camera module to photograph the first sub-area, and control the camera module to rotate according to the first path so that the camera module photographs an image of the first sub-area during the rotation.
[0032] Preferably, the shooting mode is a target tracking mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation, including:
[0033] Determine the position of the target object in the target area, and determine a second sub-area corresponding to the position;
[0034] Determining that the camera module is rotated to a target angle corresponding to the second sub-area;
[0035] The camera module is controlled to rotate to the target angle so that the camera module captures an image of the second sub-area.
[0036] Preferably, acquiring target information from the image includes:
[0037] Merging the images to obtain a second image;
[0038] Perform text recognition on the second image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
[0039] Preferably, acquiring target information from the image includes:
[0040] Perform text recognition on the image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
[0041] Preferably, acquiring target information from the image includes:
[0042] Acquire all images captured within a preset time period, and extract handwriting information from each of the images;
[0043] Determining a stroke sequence according to the handwriting information, and acquiring a corresponding standard stroke sequence according to the handwriting information;
[0044] The stroke order is compared with the standard stroke order to obtain a comparison result.
[0045] In a second aspect, an embodiment of the present invention provides an image capturing device, which is applied to a terminal device, wherein the terminal device includes a camera module, and the camera module can rotate freely to capture images of different areas. The image capturing device includes: a mode determination module, a control module, and an information acquisition module;
[0046] The mode determination module is used to determine the shooting mode of the target area;
[0047] The control module is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area;
[0048] The information acquisition module is used to acquire target information from the image.
[0049] In a third aspect, an embodiment of the present invention provides a terminal device, wherein the terminal device includes a processor and a memory;
[0050] The memory is used to store a computer program and transmit the computer program to the processor;
[0051] The processor is used to execute an image capturing method as described in the first aspect according to instructions in the computer program.
[0052] In a fourth aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute an image capturing method as described in the first aspect.
[0053] As mentioned above, the embodiments of the present invention provide an image shooting method, device, terminal device and storage medium, which are applied to the terminal device, wherein the terminal device includes a camera module, and the camera module can rotate freely to shoot images of different areas. The method includes: determining the shooting mode of the target area; controlling the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module shoots images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area; and obtaining target information from the image. The embodiments of the present invention control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module can shoot images of different sub-areas. While ensuring the shooting range of the camera module, it can reduce the edge distortion of the captured image and improve the imaging effect of the image, thereby breaking through the field of view angle limitation, depth of field limitation and distortion limitation of the single-angle camera when taking pictures, and solving the technical problem of poor imaging effect of learning auxiliary equipment in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 The present invention provides a flowchart of an image capturing method according to an embodiment of the present invention.
[0055] Figure 2 A schematic structural diagram of an image capturing device provided by an embodiment of the present invention.
[0056] Figure 3 A schematic structural diagram of another image capturing device provided by an embodiment of the present invention.
[0057] Figure 4 A schematic diagram of dividing a target area provided by an embodiment of the present invention.
[0058] Figure 5 A schematic diagram of a camera module photographing a target area provided by an embodiment of the present invention.
[0059] Figure 6 A flow chart of dividing a target area is provided in an embodiment of the present invention.
[0060] Figure 7 A flow chart of dividing a target area is provided in an embodiment of the present invention.
[0061] Figure 8 A schematic diagram of dividing a target area according to text size provided by an embodiment of the present invention.
[0062] Fig. 9 A schematic diagram of dividing a target area according to text size provided by an embodiment of the present invention.
[0063] Fig.10 A schematic diagram of a path for photographing a sub-area provided in an embodiment of the present invention.
[0064] Fig.11 A schematic diagram of a path for photographing a sub-area provided in an embodiment of the present invention.
[0065] Fig.12 A schematic structural diagram of an image capturing device provided by an embodiment of the present invention.
[0066] Fig.13 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The following description and accompanying drawings fully illustrate the specific embodiments of the present application so that those skilled in the art can practice them. The examples represent possible variations only. Unless explicitly required, separate components and functions are optional, and the order of operations can vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims, and all available equivalents of the claims. In this article, each embodiment may be represented individually or generally by the term "invention", which is only for convenience, and if more than one invention is disclosed in fact, it is not intended to automatically limit the scope of the application to any single invention or inventive concept. In this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, without requiring or implying any actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method or terminal device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed. The various embodiments are described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. As for the structures, products, etc. disclosed in the embodiments, since they correspond to the parts disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
[0068] like Figure 1 As shown, Figure 1The flowchart of an image capturing method provided by an embodiment of the present invention is shown in FIG. The image capturing method provided by an embodiment of the present invention is applied to a terminal device, wherein the terminal device includes a camera module, and the camera module can rotate freely to capture images of different areas. For example, in one embodiment, the camera module is a rotatable camera, such as Figure 2 As shown, the rotatable camera can capture images of different areas by rotating freely, or the camera module is a reflector and a camera, the reflector is used to reflect external light into the camera, and the reflector can rotate freely to adjust the angle of the reflector relative to the camera, such as Figure 3 As shown. By controlling the reflector to rotate, the mirror surface of the reflector can reflect the images of different areas, and the camera obtains images of different areas by shooting the mirror surface of the reflector. It should be further explained that, in this embodiment, an auxiliary camera can also be set in the camera module for auxiliary shooting. Exemplarily, in one embodiment, a camera with a larger field of view is further set in the camera module to capture the global image, or an event camera (dynamic visual sensor) is further set in the camera module, and the event camera is used to track the subject.
[0069] An image capturing method provided by an embodiment of the present invention comprises the following steps:
[0070] Step 101: Determine a shooting mode for a target area.
[0071] First, it is necessary to determine the shooting mode of the target area, which determines the rotation mode of the camera module. For example, in one embodiment, the shooting mode is a scanning mode, and the camera module needs to be controlled to scan each position in the target area by rotating, so as to capture images of each position in the target area until all images of the positions in the target area are captured. In another embodiment, the shooting mode is a target tracking mode, and the position of the pen tip can be tracked in the target area by an event camera, and then the camera module is controlled to rotate according to the position of the pen tip, so that the camera module can capture the position of the pen tip, obtain the user's handwriting image, and track the user's handwriting.
[0072] It is understandable that in this embodiment, the method for determining the shooting mode can be determined according to the mode selection instruction input by the user, or the terminal device determines it according to the object in the target area. Exemplarily, in one embodiment, before shooting, the terminal device will display the executable shooting modes on the display screen, and the user selects the shooting mode by clicking on the display screen, thereby sending the mode selection instruction to the terminal device, and the terminal device executes the corresponding shooting mode according to the mode selection instruction sent by the user. In another embodiment, before determining the shooting mode, the terminal device will pre-capture the global image of the target area through a camera with a larger field of view, identify the target object in the global image, and determine the shooting mode according to the target object. It is understandable that in this embodiment, the method for determining the shooting mode can be set according to actual needs, and the method for determining the shooting mode is not specifically limited in this embodiment.
[0073] Step 102: Control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area.
[0074] After the shooting mode is determined, the camera module is further controlled to rotate according to the shooting mode and the pre-divided sub-areas. It should be further explained that in this embodiment, the target area needs to be divided in advance into a plurality of sub-areas. For example, Figure 4 As shown, Figure 4 The length and width of the target area are Acm and Bcm respectively, and the target area is divided into multiple sub-areas 1-1, 1-2, 1-3, ... By dividing the target area into multiple sub-areas, the rotation angle of the camera module corresponding to each sub-area can be determined. When the camera module rotates the corresponding rotation angle, the corresponding sub-area can be photographed, so that the camera module can quickly locate the specified sub-area. Figure 5 According to the shooting mode, the sub-area that the camera module needs to shoot can be determined, and the camera module can be controlled to rotate at a rotation angle corresponding to the sub-area that needs to be shot, so that the sub-area that needs to be shot can be shot, thereby obtaining images of different sub-areas.
[0075] It should be further explained that, in this embodiment, the camera module is controlled to rotate according to the shooting mode and the pre-divided sub-areas, so that when the camera module captures images of different sub-areas, it can focus on the center of each sub-area, thereby obtaining a clear image of the sub-area, making the imaging effect in the global range of the target area clearer.
[0076] Step 103: Obtain target information from the image.
[0077] Finally, the target information can be obtained from the image. It can be understood that in this embodiment, the target information can be set according to actual needs. For example, in one embodiment, the target information is text information, and the text information in the image is obtained by performing text recognition on the captured image. Alternatively, the target information is handwriting information, and the handwriting information in the image is obtained by performing image recognition on the image.
[0078] As described above, the embodiment of the present invention controls the rotation of the camera module according to the shooting mode and the pre-divided sub-areas, so that the camera module can capture images of different sub-areas. Compared with the prior art that uses a single-angle camera to directly capture the global image of the target area, while ensuring the shooting range of the camera module, the focus of the camera module can be aligned with the center of each sub-area, which can reduce the edge distortion of the captured image and improve the imaging effect of the image, thereby breaking through the field of view angle limitation, depth of field limitation and distortion limitation of the single-angle camera when taking pictures. The technical problem of poor imaging effect of learning auxiliary equipment in the prior art is solved.
[0079] It should be noted that, in this embodiment, there are multiple ways to divide the target area. In one embodiment, the process of dividing the target area is as follows: Figure 6 As shown, the following steps are included:
[0080] Step 201: Determine the angle range of the camera module when rotating according to the target area.
[0081] First, it is necessary to determine the angle range of the camera module when rotating according to the target area. Exemplarily, in one embodiment, the target area is a rectangular area, the camera module is a rotatable camera, the rotatable camera has a transverse rotation axis and a longitudinal rotation axis that are perpendicular to each other, and the rotatable camera can rotate around the transverse rotation axis and the longitudinal rotation axis. According to the length and width of the target area, the angle range of the rotatable camera when rotating around the two rotation axes is determined, so that when the rotation angle of the rotatable camera reaches the boundary value of the angle range, the rotatable camera can just capture the boundary of the target area.
[0082] Step 202: Determine the step length of each rotation of the camera module.
[0083] Afterwards, the step length of each rotation of the camera module is further determined. Exemplarily, in one embodiment, the rotation of the rotatable camera around the horizontal rotation axis by 10° is set as the first step length, and the rotation of the rotatable camera around the longitudinal rotation axis by 5° is set as the second step length, or the angle range of the rotatable camera around the rotation axis is divided into several parts respectively, so as to obtain the step length of the rotatable camera when rotating around the rotation axis. Exemplarily, in one embodiment, the angle range of the rotatable camera around the horizontal rotation axis is ±120°, that is, ±120° is divided into 10 parts, that is, the step length of the rotatable camera around the horizontal rotation axis is 24°.
[0084] Step 203: Control the camera module to rotate within the angle range according to the step length, and divide the area photographed by the camera module after each rotation into a sub-area.
[0085] Afterwards, the camera module is controlled to rotate one step each time, and the area photographed by the camera module after each rotation is divided into a sub-area. It can be understood that the angle of rotation of the camera during the rotation process must not exceed the angle range, and the area photographed by the camera module after each rotation is divided into a sub-area. Exemplarily, in one embodiment, the angular range of the rotatable camera around the transverse rotation axis is ±120°, the first step length of the rotatable camera around the transverse rotation axis is 10°, the angular range of the rotatable camera around the longitudinal rotation axis is ±60°, and the second step length of the rotatable camera around the longitudinal rotation axis is 10°. Then, the rotatable camera is initially controlled to rotate to (120°, 60°), and the area photographed by the rotatable camera at this time is taken as a sub-area. Afterwards, the rotatable camera is controlled to rotate around the transverse rotation axis by the first step length. At this time, the rotatable camera is rotated to (110°, 60°), and the area photographed by the rotatable camera at this time is taken as a sub-area, ..., when the rotatable camera rotates to (-120°, 60°), the rotatable camera is controlled to rotate around the longitudinal rotation axis by the second step length. At this time, after the rotatable camera rotates to (-120°, 50°), the rotatable camera is again controlled to rotate around the transverse rotation axis by the first step length, and so on, until the rotatable camera has photographed every position in the target area, thereby dividing the target area into multiple sub-areas.
[0086] It should be further explained that, in one embodiment, the target area can also be divided into multiple sub-areas according to the rotation time of the camera module, so that the time taken for the camera module to rotate to the angle corresponding to each sub-area is equal.
[0087] In another embodiment, the process of dividing the target area is as follows: Figure 7 As shown, the following steps are included:
[0088] Step 301: Acquire a target image, where the target image is obtained by photographing a target area.
[0089] In this embodiment, a target image of the target area is first acquired. The target image can be obtained by photographing the target area with a camera having a larger viewing field in the camera module.
[0090] Step 302: determine the boundary of the target object in the target image, determine a first image corresponding to the range of the boundary in the target image, and divide the first image into multiple sub-areas.
[0091] After acquiring the target image, the boundary of the target object is further determined in the target image. The target object can be set according to actual needs, for example, it can be a textbook or a test paper. After determining the boundary of the target object, the first image within the boundary range is intercepted from the target image, and the first image is divided to obtain multiple sub-areas. It can be understood that when the target object moves, the boundary of the target object will change. Therefore, in this embodiment, when the boundary of the target object changes, the sub-area needs to be re-adjusted and calibrated according to the degree of boundary change.
[0092] In this embodiment, there are multiple ways to divide the first image. In one embodiment, the first image is divided in step 302 to obtain multiple sub-regions, which is specifically performed in step 3021 and includes:
[0093] Step 3021: Divide the first image uniformly into M columns in the horizontal direction, and non-uniformly divide each column into N rows in the vertical direction to obtain M×N sub-regions.
[0094] In one embodiment, the first image may be directly divided into M columns uniformly in the horizontal direction, and each column may be non-uniformly divided into M rows in the vertical direction, so as to obtain M×N sub-regions. Figure 4 As shown. It should be further explained that the purpose of non-uniformly dividing each column into M rows in the vertical direction is that for the sub-area close to the bottom of the rotatable camera, the range captured by the rotatable camera will be relatively small. After the rotatable camera rotates around the longitudinal rotation axis, the size of the area captured by the rotatable camera will increase. Therefore, it is necessary to divide each column non-uniformly in the vertical direction.
[0095] In another embodiment, the first image is divided in step 302 to obtain a plurality of sub-regions, which is specifically performed by steps 3022 and 3023, including:
[0096] Step 3022: Perform text recognition on the first image to obtain the text in the first image.
[0097] In another embodiment, after obtaining the first image, the first image is further subjected to text recognition, thereby obtaining the text in the first image. It is understood that the text recognition method for the first image can adopt the existing OCR (Optical Character Recognition) algorithm, and the text recognition method is not specifically limited in this embodiment.
[0098] Step 3023: determine the size of the text, and divide the first image according to the size of the text to obtain multiple sub-areas.
[0099] After obtaining the text in the first image, the size of the text in the first image is further determined, and the first image is divided according to the size of the text, thereby obtaining multiple sub-areas. It should be further explained that the purpose of dividing the first image according to the size of the text in this embodiment is that the size of the text reflects the difficulty of content recognition to a certain extent. The larger the text (the larger the font or the thicker the strokes), the easier the content is to recognize, and the smaller the text (the smaller the font or the thinner the strokes), the more difficult the content recognition is. If the text in the first image is larger, the area of each sub-area can be appropriately increased when dividing the first image.
[0100] On the basis of the above embodiment, in step 3023, the first image is divided according to the text size to obtain a plurality of sub-regions, which is specifically performed by step 30231, including:
[0101] Step 30231: Divide the first image uniformly into M columns in the horizontal direction, and non-uniformly divide each column into N rows in the vertical direction to obtain M×N sub-regions, and the size of each sub-region is positively correlated with the size of the text.
[0102] Similarly, in this embodiment, the first image is evenly divided into M columns in the horizontal direction, and each column is unevenly divided into N rows in the vertical direction to obtain M×N sub-regions, and when the first image is divided, the size of each sub-region is positively correlated with the size of the text. For example, Figure 8 As shown in FIG. 1 , if the text in the first image is larger, the area of each divided sub-region is larger, such as Fig. 9 As shown, if the text in the first image is smaller, the area of each divided sub-region is smaller.
[0103] It should be further explained that, in this embodiment, there is another method for dividing the first image to obtain a plurality of sub-regions, which is specifically performed in step 3024 and includes:
[0104] Step 3024: determine the template type of the first image, obtain a division rule corresponding to the template type, and divide the first image according to the division rule to obtain multiple sub-regions.
[0105] In another embodiment, after obtaining the first image, the template type of the first image is determined, and the division rule corresponding to the template type is obtained, and finally the first image is divided according to the division rule, so as to obtain multiple sub-areas. Exemplarily, in one embodiment, the first image is an image of a test paper, then after obtaining the first image, the template type of the test paper is determined, for example, what type of questions the test paper content is composed of (multiple-choice questions, fill-in-the-blank questions, etc.) and the positions of different question types, and then according to the question types in the test paper and the positions of the question types, the corresponding division rules are obtained in the server, and the division rules include the division methods of the positions corresponding to different question types, for example, the positions of the fill-in-the-blank questions in the test paper correspond to a division method, and the positions of the multiple-choice questions in the test paper correspond to a division method, etc., and finally the first image is divided according to the division rules, so as to obtain multiple sub-areas, so that the division method of the first image can be flexibly selected according to actual needs, and the division rules support user customization to meet the needs of various scenarios.
[0106] The above is the specific process of dividing the first image to obtain multiple sub-regions in step 302.
[0107] Based on the above embodiments, the shooting mode of the target area is any one of the global scanning mode, the local scanning mode and the target tracking mode. Under different shooting modes, the camera module has different shooting modes to meet the needs of different shooting situations.
[0108] In one embodiment, the shooting mode is a global scanning mode. Accordingly, in step 102, the camera module is controlled to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, which is specifically performed by step 1021, and specifically includes:
[0109] Step 1021: determine a path for the camera module to shoot the sub-areas according to the pre-divided sub-areas, and control the camera module to rotate according to the path so that the camera module shoots images of different sub-areas during the rotation.
[0110] When the shooting mode is the global scanning mode, it is necessary to capture the entire image of the target area, or the entire image of the target object in the target area, such as capturing the entire text in the target area, or capturing the text on the test paper in the target area. At this time, it is necessary to determine the path of the camera shooting the sub-area in the pre-divided sub-area. In this embodiment, the path can be set in advance, or the terminal device automatically calculates the optimal path according to the target object. Exemplary, in one embodiment, for example, for Figure 4The sub-areas shown in the figure determine the path of the shooting sub-areas of the camera module as follows: 1-1, 1-2...1-7, 2-7, 2-6...2-1...5-7. Fig.10 Alternatively, the path of the camera shooting sub-area is determined to be 1-1, 2-1, ... 5-2, 4-2 ... 1-2 ... 5-7, as shown in FIG. Fig.11 shown.
[0111] After determining the path of the camera module to shoot the sub-area, the terminal device can control the camera module to rotate according to the path, so that the camera module can shoot each sub-area in the order corresponding to the path, thereby obtaining images of different sub-areas.
[0112] In another embodiment, the shooting mode is a local scanning mode. Accordingly, in step 102, the camera module is controlled to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, which is specifically performed by steps 1022 to 1024, and specifically includes:
[0113] Step 1022: Acquire a global image of the target area in real time.
[0114] When the shooting mode is the local scanning mode, the camera module needs to scan the local area in the target area. First, it is necessary to obtain a global image of the target area in real time. The global image can be obtained by shooting with a camera with a larger field of view in the camera module, or by shooting the target area globally in the global scanning mode with a rotatable camera in the camera module.
[0115] Step 1023: determine a first area to be photographed in the global image.
[0116] After obtaining the target area, it is necessary to further determine the first area to be photographed in the global image. In this embodiment, the first area can be set in advance, for example, a certain area in the global image is fixed as the first area, or the target feature of the first area can be set in advance in the terminal device. After acquiring the global image, the terminal device automatically performs image recognition on the global image, obtains the target feature in the global image, and thus determines the first area to be photographed in the global image. Exemplarily, in one embodiment, when the text content filled in the test paper of the target area is photographed by the local scanning mode, the target feature is set to the handwriting filled in by the user. At this time, the global image in the target area is first photographed, and then the test paper area corresponding to the test paper is identified from the global image. Finally, the image processing algorithm can be used to identify the area of the handwriting filled in by the user from the test paper area, and the area is used as the first area.
[0117] Step 1024, determine a first sub-area included in the first area, determine a first path for the camera module to photograph the first sub-area, and control the camera module to rotate according to the first path so that the camera module photographs an image of the first sub-area during the rotation process.
[0118] After the first area is determined in the global image, the first sub-area contained in the first area is further determined, and the first path of the camera module when shooting the first sub-area is determined according to the first sub-area, and then the camera module can be controlled to rotate according to the first path, so that the camera module can capture the image of the first sub-area during the rotation process. Exemplarily, in one embodiment, the first path of the camera module is determined according to the area of the handwriting filled in by the user, and then the camera module is controlled to rotate according to the first path, so that the camera module can capture the image corresponding to the area of the handwriting filled in by the user during the rotation process.
[0119] In one embodiment, the shooting mode is a target tracking mode. Accordingly, in step 102, the camera module is controlled to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, which is specifically performed by steps 1025 to 1028, and specifically includes:
[0120] Step 1025: determine the position of the target object in the target area, and determine a second sub-area corresponding to the position.
[0121] When the shooting mode is the target tracking mode, it is necessary to determine the position of the target object in the target area. Exemplarily, the target object can be tracked by the event camera (dynamic visual sensor) on the camera module to determine the position of the target object in the target area. Afterwards, according to the position of the target object in the target area, a second sub-area corresponding to the position is determined, that is, the second sub-area where the target object is located. Exemplarily, in one embodiment, the target object is a pen or hand being used by the user, and the event camera is used to track the pen or hand being used by the user, identify the position of the pen or hand being used by the user, and determine the second sub-area where the pen or hand being used by the user is located according to the position.
[0122] Step 1026: Determine whether the camera module is rotated to a target angle corresponding to the second sub-area.
[0123] After determining the second sub-area where the target object is located, the camera projection module is controlled to rotate to the target angle corresponding to the second sub-area. In this embodiment, the angles corresponding to the camera module and each sub-area can be predetermined. Figure 4For any sub-region of the i-th row and j-th column in the image, an angle (αi, αj) corresponding to the camera module and the sub-region is determined, wherein αi and αj respectively represent the angle to which the camera module needs to rotate around the horizontal rotation axis and the angle to which the camera module needs to rotate around the longitudinal rotation axis, so that when the camera module is rotated to the angle (αi, αj), the center of the camera module shooting can be aligned with the center point of the sub-region.
[0124] Step 1027: Control the camera module to rotate to a target angle so that the camera module captures an image of the second sub-area.
[0125] Afterwards, the camera module is controlled to rotate to the corresponding target angle so that the camera module can capture the image of the second sub-area. For example, when the second sub-area is the area where the user's pen is being used or the user's hand is located, the handwriting filled in by the user can be obtained by capturing the image of the second sub-area, so that the corresponding auxiliary function can be implemented according to the handwriting filled in by the user.
[0126] The above is the specific process of controlling the camera module to rotate according to the shooting mode and the pre-divided sub-areas in step 102, so that the camera module captures images of different sub-areas during the rotation.
[0127] It should be further explained that, in this embodiment, there are also multiple methods for obtaining target information from the image in step 103, so as to meet different needs of users.
[0128] In one embodiment, obtaining target information from the image in step 103 is specifically performed by steps 1031-1032, including:
[0129] Step 1031: merge the images to obtain a second image.
[0130] In one embodiment, after the images of different sub-areas are captured, the images of the different sub-areas are merged to obtain a second image. For example, in a global scanning mode, the images of each sub-area captured are merged to obtain a second image, that is, a complete image of the target area. The specific merging method can be based on the time of shooting or the path of shooting, and the specific merging method is not limited in this embodiment.
[0131] Step 1032: perform text recognition on the second image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
[0132] In one embodiment, the terminal device is also connected to a database. When an object such as a test paper or a textbook is placed in the target area, the merged second image will contain a picture of the object corresponding to the test paper or the textbook. Therefore, the second image is further subjected to text recognition, and the target text on the test paper or the textbook is obtained from the second image. After that, the database is further searched according to the target text to obtain the standard text corresponding to the target text. In one embodiment, the corresponding standard text can be obtained from the database according to the overlap rate between the target text as a whole and a certain text segment in the database. After that, the target text and the standard text are compared to obtain the comparison result, and the corresponding learning auxiliary function is executed according to the comparison result. For example, if the question type on the test paper is a fill-in-the-blank question, it can be determined whether the content filled in by the user is correct according to the comparison result. If it is correct, a corresponding prompt can be issued. If it is incorrect, the correct standard text can be displayed for the user to refer to, and according to the comparison result, the knowledge point corresponding to the place where the user fills in the wrong place is found, and the corresponding exercise questions are found according to the knowledge point and pushed to the user.
[0133] In another embodiment, obtaining target information from the image in step 103 is specifically performed by step 1033, including:
[0134] Step 1033: perform text recognition on the image to obtain the target text, obtain the corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain the comparison result.
[0135] In another embodiment, the images of each sub-area may not be merged, but the image of each sub-area may be directly processed. Exemplarily, when the shooting mode is the local scanning mode, text recognition is performed on each image captured to obtain the target text, and the corresponding standard text is obtained in the database according to the target text, and the target text is compared with the standard text to obtain the comparison result, and finally the corresponding learning auxiliary function is executed according to the comparison result. The specific process can refer to the specific process in step 1032, which will not be repeated in this embodiment.
[0136] In another embodiment, obtaining target information from the image in step 103 is specifically performed by steps 1034 to 1036, which specifically include:
[0137] Step 1034: Acquire all images captured within a preset time period, and extract handwriting information from each of all images.
[0138] In one embodiment, after obtaining the image, all images captured within a preset time period are obtained, and image processing is performed on each image to extract the handwriting information filled in by the user from the image. Exemplarily, when the shooting mode is the target tracking mode and the target object to be tracked is the pen that the user is using, after capturing the image of the sub-area where the pen that the user is using is located, all images captured over a period of time in history are obtained. It can be understood that the preset time period can be set according to actual needs. For example, the preset time period is within 1 minute before the current time point, and the specific time of the preset time period is not limited in this embodiment. Afterwards, the handwriting information filled in by the user is extracted from each of all the images obtained.
[0139] Step 1035: determine the stroke order according to the handwriting information, and obtain the corresponding standard stroke order according to the handwriting information.
[0140] Afterwards, the handwriting information of the user can be determined based on the handwriting information extracted from all the graphics, and by performing text recognition on the handwriting information, the text corresponding to the handwriting information can be determined, thereby determining the text written by the user, and the standard stroke order of the text can be obtained based on the text. Exemplarily, in one embodiment, the terminal device is connected to an Internet server, and the terminal device can obtain the standard stroke order of the text from the Internet server. It can be understood that in this embodiment, the method of obtaining the standard stroke order based on the text can be set according to actual needs.
[0141] Step 1036: Compare the stroke order with the standard stroke order to obtain a comparison result.
[0142] Finally, the stroke order filled in by the user is compared with the standard stroke order to obtain a comparison result, so as to confirm whether the stroke order is correct when the user is writing the text. If the stroke order is incorrect, a corresponding prompt can be sent to the user, and the wrong strokes in the stroke order can be reminded and the correct annotated stroke order can be provided for the user to refer to and correct, thereby assisting the user in learning.
[0143] like Fig.12 As shown, Fig.12 A schematic diagram of the structure of an image capturing device provided by an embodiment of the present invention, the image capturing device is applied to a terminal device, the terminal device includes a camera module, the camera module can be freely rotated to capture images of different areas, the image capturing device includes: a mode determination module 401, a control module 402 and an information acquisition module 403;
[0144] The mode determination module 401 is used to determine the shooting mode of the target area.
[0145] The control module 402 is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area.
[0146] The information acquisition module 403 is used to acquire target information from the image.
[0147] Based on the above embodiment, the control module 402 is used to divide the target area, including:
[0148] Used to determine the angle range of the camera module when rotating according to the target area; determine the step size of each rotation of the camera module; control the camera module to rotate according to the step size within the angle range, and divide the area photographed by the camera module after each rotation into a sub-area.
[0149] Based on the above embodiment, the control module 402 is used to divide the target area, including:
[0150] The method is used to obtain a target image, which is obtained by photographing a target area; determining a boundary of a target object in the target image, determining a first image corresponding to a range of the boundary in the target image, and dividing the first image to obtain a plurality of sub-areas.
[0151] Based on the above embodiment, the control module 402 is used to divide the first image into multiple sub-regions, including:
[0152] It is used to evenly divide the first image into M columns in the horizontal direction, and non-evenly divide each column into N rows in the vertical direction, so as to obtain M×N sub-regions.
[0153] Based on the above embodiment, the control module 402 is used to divide the first image into multiple sub-regions, including:
[0154] It is used to perform text recognition on the first image to obtain the text in the first image; determine the size of the text, and divide the first image according to the size of the text to obtain multiple sub-areas.
[0155] Based on the above embodiment, the control module 402 is used to divide the first image according to the text size to obtain multiple sub-areas, including:
[0156] It is used to evenly divide the first image into M columns in the horizontal direction, and unevenly divide each column into N rows in the vertical direction, so as to obtain M×N sub-regions, and the size of each sub-region is positively correlated with the size of the text.
[0157] Based on the above embodiment, the control module 402 is used to divide the first image into multiple sub-regions, including:
[0158] It is used to determine the template type of the first image, obtain a division rule corresponding to the template type, and divide the first image according to the division rule to obtain a plurality of sub-areas.
[0159] Based on the above embodiment, the shooting mode is any one of a global scanning mode, a local scanning mode and a target tracking mode.
[0160] Based on the above embodiment, the shooting mode is a global scanning mode. Accordingly, the control module 402 is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, including:
[0161] It is used to determine the path of the camera module to shoot the sub-area according to the pre-divided sub-area, and control the camera module to rotate according to the path, so that the camera module can shoot images of different sub-areas during the rotation process.
[0162] Based on the above embodiment, the shooting mode is a local scanning mode. Accordingly, the control module 402 is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, including:
[0163] Used to obtain a global image of a target area in real time; determine a first area to be photographed in the global image; determine a first sub-area contained in the first area, determine a first path for a camera module to photograph the first sub-area, and control the camera module to rotate according to the first path so that the camera module photographs an image of the first sub-area during the rotation process.
[0164] Based on the above embodiment, the shooting mode is the target tracking mode. Accordingly, the control module 402 is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process, including:
[0165] Used to determine the position of the target object in the target area and determine the second sub-area corresponding to the position; determine that the camera module is rotated to the target angle corresponding to the second sub-area; control the camera module to rotate to the target angle so that the camera module captures an image of the second sub-area.
[0166] Based on the above embodiment, the information acquisition module 403 is used to acquire target information from the image, including:
[0167] It is used to merge images to obtain a second image; perform text recognition on the second image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
[0168] Based on the above embodiment, the information acquisition module 403 is used to acquire target information from the image, including:
[0169] It is used to perform text recognition on images, obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain the comparison result.
[0170] Based on the above embodiment, the information acquisition module 403 is used to acquire target information from the image, including:
[0171] It is used to obtain all images taken within a preset time period, extract handwriting information from each image of all images; determine the stroke order according to the handwriting information, and obtain the corresponding standard stroke order according to the handwriting information; compare the stroke order with the standard stroke order to obtain a comparison result.
[0172] This embodiment also provides a terminal device, such as Fig.13 As shown, a terminal device 50 includes a processor 500 and a memory 501;
[0173] The memory 501 is used to store a computer program 502 and transmit the computer program 502 to the processor;
[0174] The processor 500 is configured to execute the steps in the above-mentioned embodiment of the image capturing method according to the instructions in the computer program 502 .
[0175] Exemplarily, the computer program 502 may be divided into one or more modules / units, which are stored in the memory 501 and executed by the processor 500 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 502 in the terminal device 50.
[0176] The terminal device 50 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 50 may include, but is not limited to, a processor 500 and a memory 501. Those skilled in the art will appreciate that Fig.13It is only an example of the terminal device 50 and does not constitute a limitation of the terminal device 50. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 50 may also include input and output devices, network access devices, buses, etc.
[0177] The processor 500 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0178] The memory 501 may be an internal storage unit of the terminal device 50, such as a hard disk or memory of the terminal device 50. The memory 501 may also be an external storage terminal device of the terminal device 50, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 50. Further, the memory 501 may also include both an internal storage unit of the terminal device 50 and an external storage device. The memory 501 is used to store the computer program and other programs and data required by the terminal device 50. The memory 501 may also be used to temporarily store data that has been output or is to be output.
[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0180] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0183] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store computer programs.
[0184] The embodiment of the present invention further provides a storage medium including computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute an image capturing method, which is applied to a terminal device. The terminal device includes a camera module, and the camera module can be freely rotated to capture images of different areas. The method includes:
[0185] Determine the shooting mode of the target area;
[0186] According to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area;
[0187] Get target information from images.
[0188] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are 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 protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims
1. An image shooting method, applied to a terminal device, characterized in that: The terminal device includes a camera module, and the camera module can rotate freely to capture images of different areas. The method includes: Determine the shooting mode of the target area; According to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area; acquiring target information from the image; Wherein, dividing the target area includes: Acquire a target image, wherein the target image is obtained by photographing the target area; Determine a boundary of a target object in the target image, determine a first image corresponding to a range of the boundary in the target image, divide the first image into a plurality of sub-regions, wherein the sub-regions are obtained by dividing the first image according to the size of text in the first image, and the target object is a textbook or a test paper; The sub-areas are divided in the following way: The first image is uniformly divided into M columns in the horizontal direction, and each column is non-uniformly divided into N rows in the vertical direction, so as to obtain M×N sub-regions, and the size of each sub-region is positively correlated with the size of the text. The larger the text in the first image is, the larger the area of each divided sub-region is, and the smaller the text in the first image is, the smaller the area of each divided sub-region is.
2. The image capturing method according to claim 1, characterized in that: The shooting mode is any one of a global scanning mode, a local scanning mode and a target tracking mode.
3. The image capturing method according to claim 2, characterized in that: The shooting mode is a global scanning mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation process, including: According to the pre-divided sub-areas, a path for the camera module to shoot the sub-areas is determined, and the camera module is controlled to rotate according to the path, so that the camera module shoots images of different sub-areas during the rotation process.
4. The image capturing method according to claim 2, characterized in that: The shooting mode is a local scanning mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation, including: Acquire a global image of the target area in real time; Determining a first area to be photographed in the global image; Determine a first sub-area included in the first area, determine a first path for the camera module to photograph the first sub-area, and control the camera module to rotate according to the first path so that the camera module photographs an image of the first sub-area during the rotation.
5. The image capturing method according to claim 2, characterized in that: The shooting mode is a target tracking mode. Accordingly, according to the shooting mode and the pre-divided sub-areas, the camera module is controlled to rotate so that the camera module captures images of different sub-areas during the rotation process, including: Determine the position of the target object in the target area, and determine a second sub-area corresponding to the position; Determining that the camera module is rotated to a target angle corresponding to the second sub-area; The camera module is controlled to rotate to the target angle so that the camera module captures an image of the second sub-area.
6. The image capturing method according to claim 1, characterized in that: The acquiring target information from the image comprises: Merging the images to obtain a second image; Perform text recognition on the second image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
7. The image capturing method according to claim 1, characterized in that: The acquiring target information from the image comprises: Perform text recognition on the image to obtain target text, obtain corresponding standard text in the database according to the target text, compare the target text with the standard text, and obtain a comparison result.
8. The image capturing method according to claim 1, characterized in that: The acquiring target information from the image comprises: Acquire all images captured within a preset time period, and extract handwriting information from each of the images; Determining a stroke sequence according to the handwriting information, and acquiring a corresponding standard stroke sequence according to the handwriting information; The stroke order is compared with the standard stroke order to obtain a comparison result.
9. An image shooting device, applied to a terminal device, characterized in that: The terminal device includes a camera module, and the camera module can rotate freely to capture images of different areas. The image capture device includes: a mode determination module, a control module and an information acquisition module; The mode determination module is used to determine the shooting mode of the target area; The control module is used to control the camera module to rotate according to the shooting mode and the pre-divided sub-areas, so that the camera module captures images of different sub-areas during the rotation process; wherein the sub-areas are obtained by pre-dividing the target area; The information acquisition module is used to acquire target information from the image; Among them, it also includes: A target image acquisition module, used to acquire a target image, wherein the target image is obtained by photographing the target area; a target image segmentation module, configured to determine a boundary of a target object in the target image, determine a first image corresponding to a range of the boundary in the target image, and segment the first image to obtain a plurality of sub-regions, wherein the sub-regions are obtained by segmenting the first image according to the size of text in the first image, and the target object is a textbook or a test paper; Among them, the target image division module is specifically used to evenly divide the first image into M columns in the horizontal direction, and non-uniformly divide each column into N rows in the vertical direction, so as to obtain M×N sub-regions, and the size of each sub-region is positively correlated with the size of the text. The larger the text in the first image, the larger the area of each divided sub-region, and the smaller the text in the first image, the smaller the area of each divided sub-region.
10. A terminal device, characterized in that: The terminal device includes a processor and a memory; The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute an image capturing method according to any one of claims 1 to 8 according to instructions in the computer program.
11. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to perform an image capturing method according to any one of claims 1 to 8 when executed by a computer processor.
Citation Information
Patent Citations
Photographing method and terminal
CN106506965A
Shooting method and device
CN107749944A
