A page pointing method and application thereof
By acquiring page images and input information from written documents and utilizing image processing and coordinate mapping technologies, the challenge of digital interactive operation of written materials has been solved, achieving simplified operation, flexibility, and efficiency, and improving the efficiency of digital learning and work.
Patent Information
- Application Number
- CN202510698783.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-05-26
- Filing Date
- 2025-05-28
- Publication Date
- 2026-11-27
AI Technical Summary
The lack of effective solutions for digital interactive operation on written materials in existing technologies leads to low learning and work efficiency.
By acquiring page images and input information, image processing and coordinate mapping techniques are used to determine the location or area for interactive processing, and to execute corresponding interactive actions, such as taking screenshots, marking, and saving.
It achieves simplified and flexible mouse-like operation on written documents, improves the efficiency of digital learning and work, supports multiple interactive action mapping rules, reduces computing power requirements, and increases processing speed.
Smart Images

Figure CN123177652A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of digital education and digital office, and more specifically, to a page pointing method, a page pointing system, and electronic devices using it. Background Technology
[0002] Interacting with digital devices using pointing devices like mice and touchscreens is a common practice. If this same interaction could be implemented with written materials, it would greatly benefit those who use written materials for learning and work. Currently, there is no similar solution. Summary of the Invention
[0003] In view of this, the present invention provides a page pointing method and a mouse that can be used on written documents and can be used to complete digital interactions.
[0004] This invention includes the following:
[0005] Implementation Method 1. A page pointing method, characterized in that it includes:
[0006] S1: Obtain a page image, wherein the page image includes at least the interactive processing location or area in the written document page that is ready for interactive processing;
[0007] S2: In response to one or more input information, obtain one or more sets of input information values and / or the coordinate values of at least one specified point in the page image;
[0008] S3: Based on one or more sets of input information values and / or the coordinates of a specified point, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instruction, and / or execute the interactive processing action.
[0009] Implementation Method 2. A method according to Implementation Method 1, characterized in that, in response to one or more sets of input information, acquiring a set or more sets of input information values and / or the coordinate values of at least one specified point in the page image specifically includes one or more of the following steps:
[0010] M1: In response to input information, acquire input information values and / or acquire a positioning image from an imaging device, the positioning image including a fixed pixel as a positioning point, the positioning image and the page image containing at least the same part of a written document page, comparing all or part of the positioning image and the page image, using the same part of the written document page contained in the positioning image and the page image, determining the coordinate mapping relationship between the positioning image and the page image, and determining the coordinates of the positioning point in the page image according to the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, as the coordinate value of at least one specified point in the page image;
[0011] M2: In response to input information, acquire input information values, and / or acquire a positioning image from an imaging device, identify visual identifiers in the positioning image that can be recognized by computer vision, acquire at least one pixel in the image as a positioning point, use the coordinates of the positioning point in the positioning image as the coordinate values of at least one specified point in the page image, or compare the same parts of the written document page contained in the positioning image and the page image to determine the coordinate mapping relationship between the positioning image and the page image, and determine the coordinates of the positioning point in the page image based on the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, and use them as the coordinate values of at least one specified point in the page image;
[0012] M3: In response to input information, obtain the input information value and / or obtain displacement information, obtain the coordinates of the specified point in the page image before displacement, calculate the coordinates after displacement based on the coordinates of the specified point before displacement and the displacement information, and use them as the coordinate values of at least one specified point in the page image;
[0013] M4: In response to input information, acquire input information value, and / or acquire positioning image, acquire displacement information, acquire the coordinates of the specified point in the page image before displacement, calculate the local area of the page image where the specified point might be located after displacement based on the coordinates of the specified point before displacement and the displacement information, select the local area of the page image where the specified point might be located after displacement and compare it with the whole or part of the positioning image, determine the coordinates of the positioning point in the page image, and use it as the coordinate value of at least one specified point in the page image.
[0014] Implementation Method 3. A method according to Implementation Method 1, characterized in that, determining the interactive processing position or region in the page image based on one or more sets of acquired input information values and the coordinate values of a specified point, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes:
[0015] The information processing rules are determined based on the input information values. The information processing rules include at least one of the following: obtaining the coordinates of a specified point as the coordinates of a point used to mark the interactive processing position or region; obtaining the coordinates of a specified point as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a positioning point in a positioning image as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a specified point as the coordinates of an operation start point; obtaining the coordinates of a specified point as the coordinates of an operation end point; determining the interactive processing position or region based on the coordinates of one or more points used to mark the interactive processing position or region; determining the interactive processing region from the candidate interactive processing regions marked with dots; determining the interactive processing position or region based on the obtained rules or instructions; obtaining the interactive processing action instruction corresponding to the input information value; obtaining the rule for generating the interactive processing action instruction; generating the interactive processing action instruction based on the rule for generating the interactive processing action instruction; generating an instruction to execute the obtained interactive processing action instruction; executing the obtained interactive processing action instruction; and restoring the initial state.
[0016] Based on the information processing rules, and the input information values and / or the coordinates of the specified points, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instructions, and / or execute the interactive processing actions.
[0017] Implementation Method 4. A method according to Implementation Method 1, characterized in that the rule for obtaining the interactive processing instructions specifically includes one or more of the following:
[0018] R1: The mapping rules between input information values and interactive processing action instructions;
[0019] R2: The mapping rule between the color features of one or more specified point pixels or the color features of pixels within a predetermined range around them and the interactive processing action instructions;
[0020] R3: Mapping rules between positional features of multiple specified points and interactive processing action instructions;
[0021] R4: Mapping rules between the coordinates of one or more specified points and interactive action commands;
[0022] R5: Mapping rules between the background color or line color of the circled area and the interaction action instructions.
[0023] Implementation Method 5. A method according to Implementation Method 1, characterized in that one or more candidate interactive processing areas are marked on the written document page, and the step of determining the interactive processing position or area in the page image based on one or more sets of input information values and / or the coordinate values of specified points, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes one or more of the following:
[0024] Based on one or more sets of input information values and / or the coordinate values of specified points, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules;
[0025] Based on the acquired input information values, the candidate interactive processing areas in the acquired positioning image are identified. The candidate interactive processing areas in the acquired positioning image are compared with the historical candidate interactive processing areas. The added candidate interactive processing areas are used as interactive processing areas. The historical candidate interactive processing areas refer to the candidate interactive processing areas obtained by recognizing page images or previously acquired positioning images.
[0026] Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
[0027] Implementation Method 6. A method according to Implementation Method 1, characterized in that it can acquire electronic data of document pages containing or capable of generating written document page content and format, the method further comprising:
[0028] Based on the page images and the electronic data of the document pages, obtain the mapping relationship between the page images and the electronic data of the document pages;
[0029] Based on the interactive processing locations or areas determined in the page image, obtain the interactive processing locations or areas in the electronic data of the document page.
[0030] Implementation Method 7. A method according to Implementation Method 1, characterized in that the input information includes gesture information, and one or more alternative interactive processing areas are circled and marked on the written document page.
[0031] The process of responding to one or more input information to obtain a set or more sets of input information values and / or the coordinates of at least one specified point in the page image specifically includes:
[0032] Obtain the correspondence between gesture information and input information values;
[0033] Acquire images from an imaging device;
[0034] The system identifies whether gesture information exists in the image. If gesture information is found, it obtains the input information value corresponding to the gesture information and / or the coordinate value of at least one specified point in the page image indicated by the gesture, based on the correspondence between the gesture information and the input information value.
[0035] The process of determining the interactive processing location or area in the page image based on one or more sets of acquired input information values and / or the coordinate values of specified points, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, includes at least one of the following:
[0036] Based on one or more sets of input information values and the coordinate values of a specified point, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules;
[0037] Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
[0038] Implementation Method 8. A page pointing system, characterized in that it includes:
[0039] A page pointing and information input device, configured to acquire input information and capable of indicating the position of a specified point on a written document using light, projection, shape features, or visual identifiers;
[0040] Imaging device, configured to acquire images;
[0041] An information receiving and processing device is configured to acquire a page image, the page image including at least an interactive processing location or area in a written document page for which interactive processing is to be performed; in response to input information, acquire input information values and coordinate values of at least one specified point in the page image; and, based on one or more sets of acquired input information values and coordinate values of the specified point, determine the interactive processing location or area in the page image, and / or determine an interactive processing action instruction, and / or execute the interactive processing action.
[0042] Implementation Method 9. The system according to Implementation Method 9 is characterized in that the page pointing and information input device and the imaging device are integrated into one unit.
[0043] Implementation Method 10. The system according to Implementation Method 8, characterized in that the system further includes a sensor configured to acquire page pointing and information input device displacement information, orientation information, or spatial attitude information.
[0044] The information receiving and processing device is configured to acquire the coordinates of a specified point before displacement; and determine the coordinates of a specified point in the page image based on the coordinates of the specified point before displacement, the page pointer, and the displacement, direction, or spatial attitude information of the information input device, and / or based on the positioning image and the page image.
[0045] Implementation Method 11. The system according to Implementation Method 9 is characterized in that, in the positioning image captured by the imaging device, the position indicated by the page pointing and information input device on the written document by means of light or projection or shape features or visual identifiers coincides with or intersects with the position of the preset positioning image positioning point or is within a certain distance.
[0046] Implementation Method 12. The system according to Implementation Methods 8 and 10, characterized in that it further includes a display screen:
[0047] The information receiving and processing device is configured to calculate the position of a specified point in the page image in real time based on the real-time acquired positioning image or displacement information and display it on the display screen, or to display information about the interactive processing process or result on the display screen.
[0048] Implementation Method 13. The system according to Implementation Method 8 is characterized in that it further includes a storage module, the storage module being configured to store acquired page images or interaction result data, and the information receiving and processing device being configured to read page images or interaction result data from the storage module.
[0049] Implementation Method 14. The system according to any one of Implementation Methods 8 to 13, characterized in that the page pointing and information input device has a first button and a second button, the input information that needs to obtain the coordinate value of a specified point is received by the first button, and the input information received by the second button does not need to obtain the coordinate value of a specified point.
[0050] Embodiment 15. An electronic device including a processor and a memory, the memory being coupled to the processor and storing computer instructions therein for performing the method according to Embodiments 1 to 7 when executed by the processor.
[0051] Implementation 16. A non-transitory computer-readable storage medium having stored computer instructions thereon, which, when executed by a processor, perform the method according to Implementations 1 to 7.
[0052] Implementation 17. A computer program product having computer instructions that, when executed by a processor, perform the method described according to Implementations 1 to 7.
[0053] Embodiment 18. A page pointing and information input device, also known as a dual-purpose mouse, for implementing the method of any one of Embodiments 1 to 7 in the system of any one of Embodiments 8 to 14, characterized in that it comprises:
[0054] The equipment body and the information input device, communication device, positioning status switching switch, motion sensor, positioning indicator, and controller installed on the equipment body.
[0055] The information input device is used to acquire input information;
[0056] The positioning indicator point is set at the bottom front end of the device body or a feature point on the device body that can be determined by identifying part or all of the device body or its pattern or shape. It is used to indicate a specified point on a written document. The image of the positioning indicator point in the positioning image coincides with or intersects with the coordinates of the positioning point or is within a preset distance. Alternatively, the coordinates of the positioning indicator point in the positioning image can be identified as the coordinates of the positioning point.
[0057] The positioning state switch is used to switch the positioning state, which includes at least a normal mouse positioning state for use as a normal mouse and a document positioning state for use as a page pointing and information input device in this application.
[0058] The motion sensor is used to acquire motion information of the device body;
[0059] The communication module is used to communicate with electronic devices or with information receiving and processing devices;
[0060] When in a normal mouse positioning state, the controller transmits movement information and input information to the electronic device, or controls the movement of the mouse arrow on the screen according to the movement information of the device itself and obtains the coordinates of the mouse arrow on the screen in response to the input information; when in a document positioning state, in response to the input information, it transmits input information to the information receiving and processing device, and / or obtains a positioning image and obtains the coordinates of the positioning point in the positioning image.
[0061] Embodiment 19. A page pointing and information input device for implementing the method of any one of Embodiments 1 to 7 in the system described in Embodiment 8, characterized in that it comprises:
[0062] The device body and two or more buttons, communication devices, positioning indicators, and controllers installed on the device body; or the device body and two or more buttons, positioning indicators, and communication devices installed on the device body.
[0063] The buttons mentioned above are used to obtain input information;
[0064] The positioning indicator point is set at the bottom front end of the device body or a feature point on the device that can be determined by recognizing part or all of the device, or its pattern or shape. It is used to indicate a specified point on a written document and can recognize the coordinates of the positioning indicator point in the positioning image as the coordinates of the positioning point.
[0065] The communication module is used to communicate with information receiving and processing equipment;
[0066] The controller is used to transmit input information to the information receiving and processing device in response to input information.
[0067] The method and system of this application enable mouse-like interactive operations on written materials. Tailored to the characteristics of written operations, it provides diverse area selection and interactive action selection methods, greatly facilitating digital learning and work using written materials. Furthermore, in a further embodiment, the combination of devices and algorithms enables efficient page pointing. The method of this application, through image processing, coordinate mapping, and input information parsing, determines the interactive processing location or area on a written document and executes corresponding interactive actions (such as screenshotting, marking, saving, etc.), improving the efficiency of digitizing paper materials. It achieves the following effects: 1. Simplified operation: Through the combination of physical devices and image processing, users can directly perform mouse-like operations on written documents. 2. Flexibility: Supports multiple interactive action mapping rules (such as input values, color features, and positional relationships) to adapt to different application scenarios. 3. High efficiency: Through local image comparison and displacement information optimization, it reduces computational power requirements and improves processing speed. Attached Figure Description
[0068] The above and other objects, features, and advantages of this application will become more apparent from the detailed description of exemplary embodiments with reference to the accompanying drawings. The drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0069] Figure 1 This is a flowchart of the page pointing method.
[0070] Figure 2 This is a schematic diagram of the positioning method of M1 using preset positioning images to locate point coordinates.
[0071] Figure 3 This is a schematic diagram of the positioning method of M2 using visual identifiers to obtain the coordinates of positioning points in the positioning image.
[0072] Figure 4 This is a schematic diagram of the positioning method using displacement information for M3. Figure 1 .
[0073] Figure 5 This is a schematic diagram of the positioning method using displacement information in M3. Figure 2 .
[0074] Figure 6 This is a schematic diagram of the M4 positioning image plus displacement information positioning method.
[0075] Figure 7 This is a schematic diagram of generating interactive processing action instructions based on the displacement direction.
[0076] Figure 8 This is a schematic diagram of the newly added alternative interactive processing area.
[0077] Figure 9 It is a schematic diagram of interactive processing of electronic data, written documents, and page images.
[0078] Figure 10 This is a diagram of a dual-purpose mouse.
[0079] Figure 11 This is a schematic diagram illustrating interactive processing of a page pointing system, as shown in an exemplary embodiment.
[0080] Figure 12 A schematic diagram of a page pointing system that integrates an imaging device, a page pointing device, and an information input device.
[0081] Figure 13 This is a schematic diagram of a page pointing system where the imaging device, page pointing, and information input device are separated.
[0082] Figure 14 This is a schematic diagram of a page pointing system that integrates an imaging device, a page pointing and information input device, and a motion sensor.
[0083] Figure 15 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0084] Figure 16 This is a block diagram illustrating a computer-readable medium according to an exemplary embodiment.
[0085] The symbols in the attached diagram have the following meanings: 1- Page pointing and information input device; 2- Information input device; 3- Imaging device; 4- Positioning indicator point; 5- Written document page; 6- Displacement sensor. Detailed Implementation
[0086] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.
[0087] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0088] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0089] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0090] It should be understood that although the terms first, second, third, etc., may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Therefore, the first component discussed below may be referred to as the second component without departing from the teachings of this application. As used herein, the term "and / or" includes all combinations of any one and more of the associated listed items.
[0091] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of exemplary embodiments, and the modules or processes in the drawings are not necessarily essential for implementing this application, and therefore cannot be used to limit the scope of protection of this application.
[0092] This invention proposes a page pointing method, such as... Figure 1 As shown, the feature is that it includes:
[0093] S1: Obtain a page image, wherein the page image includes at least the interactive processing location or area in the written document page that is ready for interactive processing;
[0094] S2: In response to one or more input information, obtain one or more sets of input information values and / or the coordinate values of at least one specified point in the page image;
[0095] S3: Based on one or more sets of input information values and / or the coordinates of a specified point, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instruction, and / or execute the interactive processing action.
[0096] In some implementations, information is input via a single click, multiple clicks, pressing a button, or releasing a button on a physical or virtual button.
[0097] In some implementations, step S1 and step S2 can be performed simultaneously or in a different order.
[0098] In some embodiments, input information is provided via gestures.
[0099] In some embodiments of the method, the step of obtaining one or more sets of input information values and / or the coordinates of at least one specified point in the page image in response to one or more input information specifically includes one or more of the following steps:
[0100] M1: In response to input information, acquire input information values and / or acquire a positioning image from an imaging device, the positioning image including a fixed pixel as a positioning point, the positioning image and the page image containing at least the same part of a written document page, comparing all or part of the positioning image and the page image, using the same part of the written document page contained in the positioning image and the page image, determining the coordinate mapping relationship between the positioning image and the page image, and determining the coordinates of the positioning point in the page image according to the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, as the coordinate value of at least one specified point in the page image.
[0101] like Figure 2 As shown, the left image is the page image, the middle image is the positioning image, and the lower right corner of the positioning image is the preset positioning point. After comparing the page image and the positioning image, the area within the red box in the right image is the overlapping region, and the lower right corner of the red box is the corresponding point of the positioning point in the page image, i.e., the specified point on the page image. In one embodiment, only local parts of the page image and the positioning image are compared, thereby improving the comparison speed. In one embodiment, feature detection algorithms such as SIFT or ORB are used to extract key points, and then feature matching is performed to determine the overlapping region. After feature matching, the RANSAC algorithm is used to calculate the homography matrix. This matrix can be used to map the points in the positioning image to the page image, and can also be used to find the boundaries of the overlapping region. In one embodiment, the positioning image and the page image can be the same image.
[0102] M2: In response to input information, acquire input information values, and / or acquire a positioning image from an imaging device, identify visual identifiers in the positioning image that can be recognized by computer vision, acquire at least one pixel in the image as a positioning point, use the coordinates of the positioning point in the positioning image as the coordinate values of at least one specified point in the page image, or compare the same parts of the written document page contained in the positioning image and the page image to determine the coordinate mapping relationship between the positioning image and the page image, and determine the coordinates of the positioning point in the page image according to the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, and use them as the coordinate values of at least one specified point in the page image.
[0103] In one embodiment, the visual identifier carries one or more positioning indicator points. By identifying the visual identifier in the positioning image, the coordinates of the image of the positioning indicator point in the positioning image can be obtained, and these coordinates are used as the coordinates of the positioning point in the positioning image. Using the positioning indicator points on the visual identifier, a designated point on the written document is indicated. A positioning image is obtained, the visual identifier in the positioning image is identified to obtain the coordinates of the image of the positioning indicator point in the positioning image, and these coordinates are used as the coordinates of the positioning point in the positioning image. This establishes the coordinate mapping relationship between the positioning image and the page image, and the coordinates of the positioning point in the positioning image in the page image are calculated. These coordinates can then be used as the coordinates of the designated point on the written document in the page image.
[0104] like Figure 3 As shown, the left image is the page image, and the middle image is the positioning image. The images contain yellow visual markers, which can be identified as positioning indicator points. The coordinates of the positioning indicator point in the positioning image are used as the coordinates of the positioning point. The positioning image is compared with the page image to obtain the right image. The red box in the right image shows the corresponding part of the positioning image. Based on the coordinates of the positioning point in the positioning image, the coordinates of the corresponding specified point in the page image can be found within the red box. In one embodiment, when capturing the positioning image and the page image, the imaging device and the written document page do not move; the coordinates of the positioning point in the positioning image are directly used as the coordinates of the specified point in the page image. In one embodiment, the visual marker can be the shape of a device constituting the system.
[0105] In some implementations, the input information is gesture information. The specific method for obtaining the input information and / or the coordinates of a specified point is as follows: obtain the correspondence between the gesture information and the input information value; acquire an image from the imaging device; identify whether there is gesture information in the image; if gesture information is found, obtain the input information value corresponding to the gesture information and / or the coordinates of at least one specified point in the page image indicated by the gesture, based on the correspondence between the gesture information and the input information value.
[0106] M3: In response to input information, obtain the input information value and / or obtain displacement information, obtain the coordinates of the specified point in the page image before displacement, calculate the coordinates after displacement based on the coordinates of the specified point before displacement and the displacement information, and use them as the coordinate values of at least one specified point in the page image.
[0107] In this application, the coordinates before displacement can be preset coordinates in the page image, such as the upper left corner of the page image, or the coordinates of the previously obtained specified point.
[0108] like Figure 4 As shown, after obtaining the coordinates of the specified point before displacement on the page image using the preset positioning map and positioning coordinates, the page pointer and information input device with displacement sensor is moved along the yellow arrow to point to the coordinates of the specified point after displacement. Click to obtain input information, and obtain the coordinates of the specified point after displacement based on the coordinates of the specified point before displacement and the displacement information.
[0109] The correspondence between each pixel and displacement information in the page image can be determined based on the parameters of the imaging device and the relative position of the imaging device and the written document page.
[0110] like Figure 5 As shown, the top left corner of the page image is set as the initial specified point coordinates. When no specified point coordinates are obtained, the initial specified point coordinates are used as the specified point coordinates before displacement. The page pointer and information input device are moved along the direction of the yellow arrow until they point to the specified point after displacement. Combined with the displacement information, the coordinates of the specified point after displacement are calculated.
[0111] M4: In response to input information, acquire input information value, and / or acquire positioning image, acquire displacement information, acquire the coordinates of the specified point in the page image before displacement, calculate the local area of the page image where the specified point might be located after displacement based on the coordinates of the specified point before displacement and the displacement information, select the local area of the page image where the specified point might be located after displacement and compare it with the whole or part of the positioning image, determine the coordinates of the positioning point in the page image, and use it as the coordinate value of at least one specified point in the page image.
[0112] like Figure 6 As shown, based on the coordinates of the specified point before displacement and the displacement information, the possible range of the specified point after displacement is calculated. Its advantage is that by reducing the range of image comparison, the comparison speed is improved and the computing power requirement is reduced.
[0113] In some embodiments of the method, determining the interactive processing location or area in the page image based on one or more sets of acquired input information values and the coordinate values of a specified point, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes:
[0114] The information processing rules are determined based on the input information values. The information processing rules include at least one of the following: obtaining the coordinates of a specified point as the coordinates of a point used to mark the interactive processing position or region; obtaining the coordinates of a specified point as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a positioning point in a positioning image as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a specified point as the coordinates of an operation start point; obtaining the coordinates of a specified point as the coordinates of an operation end point; determining the interactive processing position or region based on the coordinates of one or more points used to mark the interactive processing position or region; determining the interactive processing region from the candidate interactive processing regions marked with dots; determining the interactive processing position or region based on the obtained rules or instructions; obtaining the interactive processing action instruction corresponding to the input information value; obtaining the rule for generating the interactive processing action instruction; generating the interactive processing action instruction based on the rule for generating the interactive processing action instruction; generating an instruction to execute the obtained interactive processing action instruction; executing the obtained interactive processing action instruction; and restoring the initial state.
[0115] Based on the information processing rules, and the input information values and / or the coordinates of the specified points, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instructions, and / or execute the interactive processing actions.
[0116] In one embodiment, as shown in Table 1, the page pointing and information input device has a left button and a right button. The button operation, the corresponding input information value, and the corresponding information processing rules are shown in Table 1 below.
[0117] Table 1
[0118]
[0119] The specific steps are as shown in Table 2.
[0120] The first step is to move the pointing and information input device on the page, and click the left mouse button on the four vertices of the rectangular area to be interactively processed on the written document to obtain the point coordinates from 1 to 4.
[0121] The second step is to right-click and determine the rectangular interactive processing area on the page image based on the coordinates of the four points obtained, and obtain a rule for generating interactive action instructions based on the displacement direction. In the rule, moving to the right represents taking a screenshot of the interactive processing area.
[0122] Third step, press the left button to move to the right and then release the left button to obtain two coordinates. Based on the coordinate values, determine the movement direction as right, and based on the rules, determine the interaction action as screenshot, and execute the screenshot operation.
[0123] Fourth step, double-click the right mouse button to save the page image and a screenshot of the rectangular interactive area.
[0124] Table 2
[0125]
[0126]
[0127] In some implementations, the rules for obtaining the interactive processing instructions specifically include one or more of the following:
[0128] R1: The mapping rules between input information values and interactive processing action instructions;
[0129] R2: The mapping rule between the color features of one or more specified point pixels or the color features of pixels within a predetermined range around them and the interactive processing action instructions;
[0130] R3: Mapping rules between positional features of multiple specified points and interactive processing action instructions;
[0131] R4: Mapping rules between the coordinates of one or more specified points and interactive action commands;
[0132] R5: Mapping rules between the background color or line color of the circled area and the interaction action instructions.
[0133] In some implementations, different input information values correspond to different interactive processing action instructions.
[0134] In some implementations, the same input information value can correspond to different interactive processing action instructions according to the program settings.
[0135] In some implementations, different colors of a specified pixel correspond to different interactive processing action commands. Furthermore,
[0136] In some implementations, the written document page has several interactive instruction selection areas filled with different colors, and different interactive instruction selection areas correspond to different interactive processing actions. When a specified point is located within an interactive instruction selection area, the color of the specified point pixel is the same as the color within the interactive instruction selection area. Therefore, when a specified point is located within an interactive instruction selection area filled with different colors, the corresponding interactive processing action instruction can be determined based on the color of the specified point.
[0137] In some implementations, the interactive processing action instruction is determined based on the proportion of red pixels in the pixel set within 20 pixels of a specified point.
[0138] In some implementations, such as Figure 7As shown, the interactive action instruction is determined based on the positional relationship between two specified points. The first specified point is used as the starting point, and the second specified point is used as the ending point. The displacement direction is determined based on the coordinates of the starting and ending points, with the displacement directions "up, right, down, and left" corresponding to actions one through four, respectively. During operation, clicking a button obtains input information. Based on the input information value, the mapping rule between the displacement direction and the interactive action is obtained. The first time, the coordinates of the specified point in the page image are obtained as the starting point coordinates. After moving to the right, clicking the button obtains input information. The second time, the coordinates in the page image are obtained as the ending point coordinates. Based on the starting and ending point coordinates, the displacement direction is determined to be to the right. Action two, corresponding to moving to the right, is selected as the interactive action.
[0139] In some implementations, several interactive instruction selection areas are defined on the page image. When a specified point is located within one of these interactive instruction selection areas, the corresponding interactive action instruction is selected. In one embodiment, the page image includes a QR code. The coordinate range covered by the QR code is identified as the coordinate range of the interactive instruction selection area. After decoding the QR code, the interactive action instruction corresponding to the instruction area can be obtained. In another embodiment, interactive action instructions corresponding to the interactive instruction selection areas are first defined by recognizing computer vision features such as color, fill texture, and text. Then, based on which interactive instruction selection area the specified point's coordinates fall within, the interactive action instruction corresponding to that selection area is selected as the interactive action to be executed.
[0140] This allows for easy selection of interactive processing commands through on-screen pointing and information input devices, simplifying operations and providing greater flexibility for program design.
[0141] In some embodiments of the method, one or more candidate interactive processing areas are marked on the written document page. The step of determining the interactive processing location or area in the page image based on one or more sets of input information values and / or the coordinates of a specified point, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes one or more of the following:
[0142] Based on one or more sets of input information values and / or the coordinate values of specified points, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules;
[0143] Based on the acquired input information values, the candidate interactive processing areas in the acquired positioning image are identified. The candidate interactive processing areas in the acquired positioning image are compared with the historical candidate interactive processing areas. The added candidate interactive processing areas are used as interactive processing areas. The historical candidate interactive processing areas refer to the candidate interactive processing areas obtained by recognizing page images or previously acquired positioning images.
[0144] Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
[0145] In some embodiments, the interaction processing area is determined by using input information and marking candidate interaction processing areas. Marking candidate interaction processing areas can be done before acquiring a page image or before acquiring input information. In one embodiment, candidate interaction processing areas are first marked on the written document page, and then the interaction processing area is determined in response to input information. In another embodiment, candidate interaction processing areas are first marked on the written document page, then an image of the written document page is captured, and then the interaction processing area is determined in response to input information.
[0146] In some implementations, one or more lines can be used to circle and mark the candidate interactive processing areas, or one or more background colors can be used to fill the candidate interactive processing areas. In one embodiment, a background color or line is determined based on the input information value as a condition for identifying candidate interactive processing areas. For example, clicking the left mouse button represents identifying areas with a red background as candidate interactive processing areas, and double-clicking the left mouse button represents identifying areas with a blue background as candidate interactive processing areas.
[0147] In some implementations, candidate interactive processing areas are marked with a red highlighter. A preset rule is to select the candidate interactive processing area containing a specified point as the interactive processing area. The system identifies areas with a red background in the page image and obtains the coordinates of feature points in each area. After obtaining the coordinates of the specified point, it compares these coordinates with the coordinates of the feature points in each area. The area within which the specified point's coordinates lie is then designated as the interactive processing area.
[0148] In one embodiment, candidate interactive processing areas are marked with a red highlighter. Preset rules include: if there is only one candidate interactive processing area in the page image, this candidate interactive processing area is selected as the interactive processing area; if there are multiple candidate interactive processing areas in the page image, the candidate interactive processing area closest to the bottom edge of the page image is selected as the interactive processing area. In use, the preset rules are obtained in response to input information, and the page image is acquired using an imaging device. Then, the interactive processing areas on the page image are determined according to the preset rules.
[0149] In some implementations, candidate interactive processing areas can be marked before or after acquiring the page image.
[0150] In some implementations, based on one or more sets of acquired input information values and / or the coordinates of specified points, the interactive processing location or area is determined in the page image, and / or an interactive processing action instruction is determined, and / or the interactive processing action is executed, specifically including one or more of the following:
[0151] Based on one or more sets of input information values and / or the coordinates of a specified point, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instructions, and / or execute the interactive processing action;
[0152] Based on one or more sets of input information values and / or the coordinates of a specified point, and candidate interactive processing areas in the image, one or more candidate interactive processing areas are selected as interactive processing areas according to preset rules.
[0153] Based on the acquired input information values, the candidate interactive processing areas in the acquired positioning image are identified. The candidate interactive processing areas in the acquired positioning image are compared with the historical candidate interactive processing areas. The added candidate interactive processing areas are used as interactive processing areas. The historical candidate interactive processing areas refer to the candidate interactive processing areas obtained by recognizing page images or previously acquired positioning images.
[0154] Based on the background color or line color of the selected candidate interaction area, determine or execute the corresponding interaction action of the selected candidate interaction area.
[0155] This simplifies the process of defining the interactive processing area.
[0156] In some implementations, red is used as the visual recognition feature for interactive processing, corresponding to the reading of text in the interactive processing area, and green is used as the visual recognition feature for interactive processing, corresponding to the explanation of text in the interactive processing area. The selection of the interactive processing area and the generation of the interactive processing action can be completed in one step. In operation, one or more areas on the written document page are highlighted with a green highlighter. The page pointing and input device are pointed to one of the green areas. In response to the input information, a green area on the written document page is confirmed as the interactive processing area based on the coordinates of the specified point. The interactive processing action is determined based on the color feature of the specified point, and the interactive processing action is determined to be the explanation of the text in each interactive processing area.
[0157] In some implementations, such as Figure 8As shown, the written document has a candidate interactive processing area circled in red. After capturing an image of the page, another area on the document is circled using a highlighter, creating a new candidate interactive processing area. After clicking a button to obtain input information, a positioning image is acquired from the imaging device. Based on the input information value, the candidate interactive processing area in the page image and the positioning image is identified. Since there is one candidate interactive processing area in the page image and two candidate interactive processing areas in the positioning image, the newly added candidate interactive processing area is selected as the interactive processing area. In this embodiment, it is not necessary to select a candidate interactive processing area, simplifying the operation.
[0158] In some implementations, previously acquired location images or information on previously identified candidate interaction processing areas may be stored. When it is necessary to compare historical candidate interaction processing areas, the stored previously acquired location images or information on historical candidate interaction processing areas may be retrieved and compared with the candidate interaction processing areas in the currently acquired location images.
[0159] In some embodiments, electronic data of document pages containing or capable of generating written document page content and format can be acquired, and the method may further include:
[0160] Based on the page images and the electronic data of the document pages, obtain the mapping relationship between the page images and the electronic data of the document pages;
[0161] Based on the interactive processing locations or areas determined in the page image, obtain the interactive processing locations or areas in the electronic data of the document page.
[0162] This allows for more accurate document content data to be provided on the electronic pages of the document, or enables direct editing of the electronic data on the document pages.
[0163] In some implementations, such as Figure 9 As shown, the left image represents the electronic data of a written document, the middle image represents the printed written document using the electronic data, and the right image is a page image taken from the printed written document. By specifying a point on the written document as the interactive processing location, and then determining the coordinates of the specified point on the page image in the right image using the method described in the present invention, and finally locating the specified interactive processing location in the electronic data in the left image, the electronic data can be edited.
[0164] In some implementations, the input information includes gesture information, and one or more alternative interactive processing areas are circled and marked on the written document page.
[0165] The process of responding to one or more input information to obtain a set or more sets of input information values and / or the coordinate values of at least one specified point in the page image specifically includes:
[0166] Obtain the correspondence between gesture information and input information values;
[0167] Acquire images from an imaging device;
[0168] The system identifies whether gesture information exists in the image. If gesture information is found, it obtains the input information value corresponding to the gesture information and / or the coordinate value of at least one specified point in the page image indicated by the gesture, based on the correspondence between the gesture information and the input information value.
[0169] The process of determining the interactive processing location or area in the page image based on one or more sets of acquired input information values and / or the coordinate values of specified points, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, includes at least one of the following:
[0170] Based on one or more sets of input information values and the coordinate values of a specified point, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules;
[0171] Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
[0172] In some implementations, acquiring one or more sets of input information values and / or the coordinates of at least one specified point in the page image specifically includes one or more of the following: in response to one or more input information, acquiring one or more sets of input information values and / or the coordinates of at least one specified point in the page image; acquiring an image from an imaging device, identifying whether there is gesture information in the image, and if gesture information is found, acquiring the input information value corresponding to the gesture information and / or the coordinates of at least one specified point in the page image indicated by the gesture, based on the correspondence between the gesture information and the input information values.
[0173] In this way, the selection of interactive processing areas or interactive actions can be easily realized by using gesture information and circled markers to select alternative interactive processing areas.
[0174] In some implementations, the text to be processed is circled with a highlighter to form a candidate interactive processing area, and the candidate interactive processing area is selected as the interactive processing area after the index finger is pointed to.
[0175] In some implementations, different colored highlighters are used to circle and mark the text to be processed to form alternative interactive processing areas. Different colors correspond to different interactive processing actions. After pointing to the alternative interactive processing area with the index finger, the indicated alternative interactive processing area is selected as the interactive processing area, and the interactive processing action is determined according to the background color of the circled mark.
[0176] In some implementations, different gestures and different background colors in the interaction processing area determine the interaction processing action.
[0177] In this way, using gestures and drawing to interact with the color of the area can achieve a simpler operation.
[0178] This application also proposes a page pointing system, characterized in that it includes: a page pointing and information input device, configured to acquire input information, and capable of indicating the position of a specified point on a written document using light, projection, shape features, or visual identifiers;
[0179] Imaging device, configured to acquire images;
[0180] An information receiving and processing device is configured to acquire a page image, the page image including at least an interactive processing location or area in a written document page for which interactive processing is to be performed; in response to input information, acquire input information values and coordinate values of at least one specified point in the page image; and, based on one or more sets of acquired input information values and coordinate values of the specified point, determine the interactive processing location or area in the page image, and / or determine an interactive processing action instruction, and / or execute the interactive processing action.
[0181] In some implementations, hands can replace all or part of the functions of page pointing and information input devices.
[0182] In some embodiments, the page pointing and information input device is integrated with the imaging device. In one embodiment, the page pointing and information input device is physically fixedly connected to the imaging device. In another embodiment, the page pointing and information input device is the imaging device itself, using visual identifiers or gestures for page pointing or input.
[0183] In some embodiments, the system further includes sensors configured to acquire page pointing and information input device displacement information, orientation information, or spatial attitude information.
[0184] The information receiving and processing device is configured to acquire the coordinates of a specified point before displacement; and determine the coordinates of a specified point in the page image based on the coordinates of the specified point before displacement, the page pointer, and the displacement, direction, or spatial attitude information of the information input device, and / or based on the positioning image and the page image.
[0185] In some implementations, the positioning image and the page image are corrected based on orientation information or spatial attitude information to improve the speed and accuracy of comparing the positioning image and the page image.
[0186] In some implementations, the sensor is fixed to the imaging device and can provide the orientation angle, roll angle, or pitch angle at the time of capture. When comparing the page image and the positioning image, the page image and the positioning image are first corrected based on the orientation angle, roll angle, or pitch angle at the time of capture, so that the documents in the page image and the positioning image are at similar angles. The coordinate mapping relationship of the overlapping part of the page image and the positioning image is determined by comparing the corrected page image and the positioning image. Based on the orientation angle, roll angle, or pitch angle information at the time of capture of the page image or positioning image, image misalignment and distortion are reduced, thereby improving the accuracy of image comparison and shortening the comparison time.
[0187] In some implementations, in the positioning image captured by the imaging device, the position indicated by the page pointing and information input device on the written document using light, projection, shape features, or visual identifiers coincides with, intersects with, or is within a certain distance of the position of the preset positioning image positioning point.
[0188] In some implementations, the system also includes a display screen:
[0189] The information receiving and processing device is configured to calculate the position of a specified point in the page image in real time based on the real-time acquired positioning image or displacement information and display it on the display screen, or to display information about the interactive processing process or result on the display screen.
[0190] By combining feedback from the display screen, the positional changes of a specified point in the page image can be monitored in real time, thereby helping users to input information at the most appropriate time to obtain the coordinates of the specified point and ensuring the accuracy of the specified point positioning.
[0191] In some embodiments, the system further includes a storage module configured to store acquired page images or interaction result data, and the information receiving and processing device is configured to read page images or interaction result data from the storage module.
[0192] In some implementations, the page pointing and information input device of the system has a first button and a second button. Input information that requires obtaining the coordinates of a specified point is received by the first button, while input information received by the second button does not require obtaining the coordinates of a specified point.
[0193] This application proposes an electronic device including a processor and a memory, the memory being coupled to the processor and storing computer instructions therein for performing the methods described in this application when executed by the processor.
[0194] This application proposes a non-transitory computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, perform the methods described in this application.
[0195] This application proposes a computer program product having computer instructions that, when executed by a processor, perform the methods described in this application.
[0196] This application proposes a page pointing and information input device, also known as a dual-purpose mouse, for implementing the methods described in embodiments 1 to 7 in the systems described in embodiments 8 to 14, such as... Figure 10 As shown, the feature is that it includes:
[0197] The equipment body and the information input device, communication device, positioning status switching switch, motion sensor, positioning indicator, and controller installed on the equipment body.
[0198] The information input device is used to acquire input information;
[0199] The positioning indicator point is set at the bottom front end of the device body or a feature point on the device body that can be determined by identifying part or all of the device body or its pattern or shape. It is used to indicate a specified point on a written document. The image of the positioning indicator point in the positioning image coincides with or intersects with the coordinates of the positioning point or is within a preset distance. Alternatively, the coordinates of the positioning indicator point in the positioning image can be identified as the coordinates of the positioning point.
[0200] The positioning state switch is used to switch the positioning state, which includes at least a normal mouse positioning state for use as a normal mouse and a document positioning state for use as a page pointing and information input device in this application.
[0201] The motion sensor is used to acquire motion information of the device body;
[0202] The communication module communicates with electronic devices or with information receiving and processing devices;
[0203] When in a normal mouse positioning state, the controller transmits movement information and input information to the electronic device, or controls the movement of the mouse arrow on the screen according to the movement information of the device itself and obtains the coordinates of the mouse arrow on the screen in response to the input information; when in a document positioning state, in response to the input information, it transmits input information to the information receiving and processing device, and / or obtains a positioning image and obtains the coordinates of the positioning point in the positioning image.
[0204] The advantage is that it can be used as a mouse for electronic devices, as well as a page pointing and information input device.
[0205] In some implementations, the positioning indicator is determined by the outline of the mouse, such as a corner of the mouse's shape.
[0206] In some implementations, the positioning indicator is determined by the graphics on the mouse, such as a QR code printed on the mouse, with the top left corner of the QR code serving as the positioning indicator.
[0207] In some implementations, the positioning indicator is determined by a light-emitting device on the mouse, such as a light or a projector.
[0208] In some implementations, the positioning indicator is located on a movable structure connected to the mouse.
[0209] In some implementations, when the dual-purpose mouse is connected to an electronic device such as a computer, it is in the state of a regular mouse; when the dual-purpose mouse is connected to an imaging device or an information receiving and processing device, it is in the state of document positioning.
[0210] This application proposes a page pointing and information input device for implementing the methods of any one of embodiments 1 to 7 in the system described in embodiment 8, characterized in that it includes:
[0211] The device body and two or more buttons, communication devices, positioning indicators, and controllers installed on the device body; or the device body and two or more buttons, positioning indicators, and communication devices installed on the device body.
[0212] The buttons mentioned above are used to obtain input information;
[0213] The positioning indicator point is set at the bottom front end of the device body or a feature point on the device that can be determined by recognizing part or all of the device, or its pattern or shape. It is used to indicate a specified point on a written document and can recognize the coordinates of the positioning indicator point in the positioning image as the coordinates of the positioning point.
[0214] The communication module is used to communicate with information receiving and processing equipment;
[0215] The controller is used to transmit input information to the information receiving and processing device in response to input information.
[0216] In some implementations, the page pointing and information input device is provided with multiple positioning indicators. In one embodiment, two positioning indicators are provided on the left and right front ends of the page pointing and information input device; in another embodiment, two positioning indicators are provided on the left and left rear ends of the page pointing and information input device. Providing multiple positioning indicators facilitates the selection of left and right pages in a book.
[0217] In some implementations, the positioning indicator is located at the corner of the page pointing and information input device, and the included angle between the two sides of the corner is less than 135 degrees.
[0218] Figure 11 This is a schematic diagram illustrating interactive processing of a page pointing system according to an exemplary embodiment. For example... Figure 11 As shown, the system includes: a page pointing and information input device, an imaging device, and an information receiving and processing device.
[0219] A page pointing and information input device, configured to acquire input information and capable of indicating the location of a specified point on a written document using light, projection, shape features, or visual identifiers.
[0220] An imaging device configured to acquire positioning images.
[0221] An imaging device captures an image for positioning. This image contains positioning points, which are points located at specific positions within the positioning image, such as the lower right corner. These positioning points are used to obtain the coordinates of the points they point to within the page image. The order in which the positioning image and the page image data are acquired is not fixed. Acquiring the positioning image first or acquiring the page image data / page image first are both feasible and do not affect the final result.
[0222] An information receiving and processing device is configured to acquire a page image, which includes all or part of the content of a written document page; compare a positioning image and a page image, determine the coordinates of a positioning point in the page image based on the written document page containing the same portion as the positioning image and the page image, and determine interactive processing content based on the coordinates; and perform interactive processing actions on the interactive processing content.
[0223] Obtaining a page image can be done by taking a picture of a written document page, or by obtaining formatted text data or page image data containing the content and format of a written document page and then generating a page image. It can be a complete page, a part of a page, or an image containing all or part of a written document page.
[0224] By comparing the positioning image and the page image, and based on the written document page in which the positioning image and the page image contain the same part, the coordinates of the positioning point in the page image and the interactive processing content determined by the coordinates are determined. Specifically, the overlapping part of the positioning image and the page image is matched to obtain the coordinates of the positioning point in the page image.
[0225] As an optional implementation, the page pointing and information input device includes at least two buttons: a positioning button and an information input button. When the user clicks the positioning button, the page pointing and information input device recognizes the user's click action and knows that the current position needs to be located. The purpose of positioning is to determine the content to be interacted with. When the user clicks the information input button, the page pointing and information input device recognizes the user's click action and knows that an interactive action needs to be performed on the interactive content.
[0226] Figure 12 This is an optional implementation method. For example... Figure 12 As shown, the imaging device 3 (camera) and the positioning point 4 are both connected to the page pointing and information input device 1. The positioning point 4 can be formed by a visual identifier, or it can be one or more pixels in the image captured by the imaging device (i.e., no identification is needed, and the fixed pixel coordinates in the image are directly taken). The visual identifier can be formed by projection, can be an independent identifier, or can be a part of the device. In one embodiment, the connection structure between the imaging device or the positioning point and the page pointing and information input device can be fixed or adjustable. On the written document page 5, the page pointing and information input device moves the positioning point to the point to be indicated on the written document page, and the imaging device captures a positioning image, which includes the positioning point and a part of the written document page. The page pointing and information input device 1 is provided with an information input device 2, which is configured to acquire the user's input information. The image of the positioning point in the positioning image coincides with, intersects with, or is within a preset distance of the positioning point coordinates in the image, or the positioning point coordinates are determined based on the coordinates of the positioning point in the positioning image.
[0227] Figure 13 This is yet another optional implementation method. For example... Figure 13As shown, the imaging device 3 (e.g., a camera) is separate from the page pointing and information input device 1. The positioning indicator 4 is fixed relative to the page pointing and information input device. The positioning point is formed by a visual identifier. The visual identifier can be a projection, a standalone object, or a part of the device. For example, the imaging device is separate from the page pointing and information input device, the positioning indicator is fixed to the page pointing and information input device, and the page pointing and information input device is on the written document page 5. The positioning indicator is moved to the point to be indicated on the written document page, and the imaging device captures a positioning image. The positioning image includes the positioning indicator and all or part of the written document page. The page pointing and information input device 1 is equipped with an information input device 2, which is configured to acquire user input information and determine interactive processing actions based on the input information.
[0228] Those skilled in the art will understand that all or part of the steps of the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, it performs the functions defined by the method provided in this application. The program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
[0229] Furthermore, it should be noted that the above figures are merely illustrative representations of the processes included in the method according to exemplary embodiments of this application, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0230] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0231] Figure 14 This is a schematic diagram illustrating an exemplary embodiment of a page pointing system incorporating a displacement sensor. For example... Figure 14 As shown, the page pointing and information input device 1 is equipped with an imaging device 3, an information input device 2, a positioning indicator point 4, and a displacement sensor 6.
[0232] Figure 14 The device and Figure 12 The difference between the two devices is that: 1. Imaging device 3 is located on input device 1; 2. A displacement sensor 6 is also provided, which can sense displacement. Positioning indicator 4 is fixed relative to the page pointing and information input device. The positioning indicator is formed by visual identifiers. Visual identifiers can be formed by projection, can be independent markers, or can be a part of the device.
[0233] Because of the presence of displacement sensor 6, the function of M3 in this application can be realized: in response to input information, acquiring input information value, and / or acquiring displacement information, acquiring the coordinates of a specified point in the page image before displacement, calculating the coordinates of a specified point after displacement based on the coordinates of the specified point before displacement and the displacement information, and using it as the coordinate value of at least one specified point in the page image; or the function of M4 in this application: in response to input information, acquiring input information value, and / or acquiring a positioning image, acquiring displacement information, acquiring the coordinates of a specified point in the page image before displacement, calculating the possible location of the specified point coordinates in the page image after displacement based on the coordinates of the specified point before displacement and the displacement information, selecting the possible location of the specified point coordinates in the page image after displacement and comparing it with all or part of the positioning image, determining the coordinates of the positioning point in the page image, and using it as the coordinate value of at least one specified point in the page image.
[0234] A displacement sensor is a traditional component of a mouse, typically photoelectric or mechanical. By continuously moving the sensor across a written document, and comparing the photoelectric signal with a stored copy of the document, combined with the distance moved, the mouse can pinpoint the final position of the continuous movement on the document.
[0235] Figure 15 This is a block diagram illustrating an electronic device according to an exemplary embodiment.
[0236] The following reference Figure 15 To describe an electronic device 600 according to this embodiment of the present application. Figure 15 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0237] like Figure 15 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).
[0238] The storage unit stores program code that can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in this specification according to various exemplary embodiments of this application. For example, the processing unit 610 can perform actions such as... Figures 9 to 16 The steps are shown in the figure.
[0239] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache storage unit 6202, and may further include a read-only memory unit (ROM) 6203.
[0240] The storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0241] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0242] Electronic device 600 can also communicate with display device 640 to realize display function.
[0243] Electronic device 600 can also communicate with one or more external devices 600' (e.g., keyboard, pointing device, Bluetooth device, etc.), enabling users to communicate with devices that interact with electronic device 600, and / or any device (e.g., router, modem, etc.) that allows electronic device 600 to communicate with one or more other computing devices. This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0244] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software, or by combining software with necessary hardware. Therefore, as... Figure 16 As shown, the technical solution according to the embodiments of this application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard drive, etc.) or on a network, and includes several instructions to cause a computing device (such as a personal computer, server, intelligent agent, workflow system, or network device, etc.) to execute the above-described method according to the embodiments of this application.
[0245] The software product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0246] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0247] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, conventional procedural programming languages such as C, or similar languages, program code generated or executed based on workflows, agents, or artificial intelligence, and code forms such as instructions or prompts that direct the operation of artificial intelligence. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server, or based on services such as workflows, agents, or artificial intelligence. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0248] The aforementioned computer-readable medium carries one or more programs, which, when executed by a device, cause the computer-readable medium to implement the methods described in this application.
[0249] Those skilled in the art will understand that the above modules can be distributed in the device as described in the embodiments, or they can be modified accordingly and placed in one or more devices that are unique to this embodiment. The modules in the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.
[0250] Through the description of the above embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0251] Exemplary embodiments of this application have been specifically shown and described above. It should be understood that this application is not limited to the detailed structures, arrangements, or implementation methods described herein; rather, this application is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended claims.
Claims
1. A page pointing method, characterized in that, include: S1: Obtain a page image, wherein the page image includes at least the interactive processing location or area in the written document page that is ready for interactive processing; S2: In response to one or more input information, obtain one or more sets of input information values and / or the coordinate values of at least one specified point in the page image; S3: Based on one or more sets of input information values and / or the coordinates of a specified point, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instruction, and / or execute the interactive processing action.
2. The method according to claim 1, characterized in that, The step of responding to one or more input information to obtain a set or more sets of input information values and / or the coordinate values of at least one specified point in the page image specifically includes one or more of the following steps: M1: In response to input information, acquire input information values and / or acquire a positioning image from an imaging device, the positioning image including a fixed pixel as a positioning point, the positioning image and the page image containing at least the same part of a written document page, comparing all or part of the positioning image and the page image, using the same part of the written document page contained in the positioning image and the page image, determining the coordinate mapping relationship between the positioning image and the page image, and determining the coordinates of the positioning point in the page image according to the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, as the coordinate value of at least one specified point in the page image; M2: In response to input information, acquire input information values, and / or acquire a positioning image from an imaging device, identify visual identifiers in the positioning image that can be recognized by computer vision, acquire at least one pixel in the image as a positioning point, use the coordinates of the positioning point in the positioning image as the coordinate values of at least one specified point in the page image, or compare the same parts of the written document page contained in the positioning image and the page image to determine the coordinate mapping relationship between the positioning image and the page image, and determine the coordinates of the positioning point in the page image based on the coordinate mapping relationship and the coordinates of the positioning point in the positioning image, and use them as the coordinate values of at least one specified point in the page image; M3: In response to input information, obtain the input information value and / or obtain displacement information, obtain the coordinates of the specified point in the page image before displacement, calculate the coordinates after displacement based on the coordinates of the specified point before displacement and the displacement information, and use them as the coordinate values of at least one specified point in the page image; M4: In response to input information, acquire input information value, and / or acquire positioning image, acquire displacement information, acquire the coordinates of the specified point in the page image before displacement, calculate the local area of the page image where the specified point might be located after displacement based on the coordinates of the specified point before displacement and the displacement information, select the local area of the page image where the specified point might be located after displacement and compare it with the whole or part of the positioning image, determine the coordinates of the positioning point in the page image, and use it as the coordinate value of at least one specified point in the page image.
3. The method according to claim 1, characterized in that, The step of determining the interactive processing location or area in the page image based on one or more sets of input information values and the coordinate values of a specified point, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes: The information processing rules are determined based on the input information values. The information processing rules include at least one of the following: obtaining the coordinates of a specified point as the coordinates of a point used to mark the interactive processing position or region; obtaining the coordinates of a specified point as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a positioning point in a positioning image as the coordinates of a point used to generate an interactive processing action instruction; obtaining the coordinates of a specified point as the coordinates of an operation start point; obtaining the coordinates of a specified point as the coordinates of an operation end point; determining the interactive processing position or region based on the coordinates of one or more points used to mark the interactive processing position or region; determining the interactive processing region from the candidate interactive processing regions marked with circles and dots; determining the interactive processing position or region based on the obtained rules or instructions; obtaining the interactive processing action instruction corresponding to the input information value; obtaining the rule for generating the interactive processing action instruction; generating the interactive processing action instruction based on the rule for generating the interactive processing action instruction; generating an instruction to execute the obtained interactive processing action instruction; executing the obtained interactive processing action instruction; and restoring the initial state. Based on the information processing rules, and the input information values and / or the coordinates of the specified points, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instructions, and / or execute the interactive processing actions.
4. The method according to claim 3, characterized in that, The rules for obtaining and generating interactive processing instructions specifically include one or more of the following: R1: The mapping rules between input information values and interactive processing action instructions; R2: The mapping rule between the color features of one or more specified point pixels or the color features of pixels within a predetermined range around them and the interactive processing action instructions; R3: Mapping rules between positional features of multiple specified points and interactive processing action instructions; R4: Mapping rules between the coordinates of one or more specified points and interactive action commands; R5: Mapping rules between the background color or line color of the circled area and the interaction action instructions.
5. A method according to claim 1, characterized in that, One or more candidate interactive processing areas are marked on the written document page. The step of determining the interactive processing location or area in the page image based on one or more sets of input information values and / or the coordinates of specified points, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, specifically includes one or more of the following: Based on one or more sets of input information values and / or the coordinate values of specified points, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules; Based on the acquired input information values, the candidate interactive processing areas in the acquired positioning image are identified. The candidate interactive processing areas in the acquired positioning image are compared with the historical candidate interactive processing areas. The added candidate interactive processing areas are used as interactive processing areas. The historical candidate interactive processing areas refer to the candidate interactive processing areas obtained by recognizing page images or previously acquired positioning images. Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
6. The method according to claim 1, characterized in that, The method can acquire electronic data of document pages that contain or can generate written document page content and format, and may further include: Based on the page images and the electronic data of the document pages, obtain the mapping relationship between the page images and the electronic data of the document pages; Based on the interactive processing locations or areas determined in the page image, obtain the interactive processing locations or areas in the electronic data of the document page.
7. The method according to claim 1, characterized in that, The input information includes gesture information, and one or more alternative interactive processing areas are circled and marked on the written document page. The process of responding to one or more input information to obtain a set or more sets of input information values and / or the coordinate values of at least one specified point in the page image specifically includes: Obtain the correspondence between gesture information and input information values; Acquire images from an imaging device; The system identifies whether gesture information exists in the image. If gesture information is found, it obtains the input information value corresponding to the gesture information and / or the coordinate value of at least one specified point in the page image indicated by the gesture, based on the correspondence between the gesture information and the input information value. The process of determining the interactive processing location or area in the page image based on one or more sets of acquired input information values and / or the coordinate values of specified points, and / or determining the interactive processing action instruction, and / or executing the interactive processing action, includes at least one of the following: Based on one or more sets of input information values and the coordinate values of a specified point, identify candidate interactive processing areas in the page image or the location image obtained this time, and select one or more candidate interactive processing areas as interactive processing areas according to preset rules; Based on the input information value, and / or based on the background color or line color of the circled candidate interaction processing area, determine or execute the interaction processing action corresponding to the selected candidate interaction processing area.
8. A page pointing system, characterized in that, include: A page pointing and information input device, configured to acquire input information and capable of indicating the position of a specified point on a written document using light, projection, shape features, or visual identifiers; Imaging device, configured to acquire images; An information receiving and processing device is configured to acquire a page image, wherein the page image includes at least an interactive processing location or area in a written document page that is ready for interactive processing. In response to input information, obtain the input information value and the coordinates of at least one specified point in the page image; Based on one or more sets of input information values and the coordinates of a specified point, determine the interactive processing location or area in the page image, and / or determine the interactive processing action instructions, and / or execute the interactive processing action.
9. The system as described in claim 8, characterized in that, The page pointing and information input device is integrated with the imaging device.
10. The system as described in claim 9, characterized in that, The system also includes sensors configured to acquire displacement, orientation, or spatial attitude information of the page pointing and information input device. The information receiving and processing device is configured to acquire the coordinates of a specified point before displacement; and determine the coordinates of a specified point in the page image based on the coordinates of the specified point before displacement, the page pointer, and the displacement, direction, or spatial attitude information of the information input device, and / or based on the positioning image and the page image.
11. The system according to claim 9, characterized in that, In the positioning image captured by the imaging device, the position indicated by the page pointing and information input device on the written document by light, projection, shape features or visual identifiers coincides with, intersects with or is within a certain distance of the position of the preset positioning image positioning point.
12. The system according to claim 8 or 10, characterized in that, Also includes a display screen: The information receiving and processing device is configured to calculate the position of a specified point in the page image in real time based on the real-time acquired positioning image or displacement information and display it on the display screen, or to display information about the interactive processing process or result on the display screen.
13. The system according to claim 8, characterized in that, It also includes a storage module configured to store acquired page images or interaction result data, and the information receiving and processing device is configured to read page images or interaction result data from the storage module.
14. The system according to any one of claims 8 to 13, characterized in that, The page pointing and information input device has a first button and a second button. Input information that requires obtaining the coordinate value of a specified point is received by the first button, while input information received by the second button does not require obtaining the coordinate value of a specified point.
15. An electronic device comprising a processor and a memory, the memory being coupled to the processor and storing computer instructions therein for performing the method according to claims 1 to 7 when executed by the processor.
16. A non-transitory computer-readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the method according to any one of claims 1 to 7.
17. A computer program product having computer instructions that, when executed by a processor, perform the method according to any one of claims 1 to 7.
18. A page pointing and information input device for implementing the method of any one of claims 1 to 7 in the system of any one of claims 8 to 14, also called a dual-purpose mouse, characterized in that, include: The equipment body and the information input device, communication device, positioning status switching switch, motion sensor, positioning indicator, and controller installed on the equipment body. The information input device is used to acquire input information; The positioning indicator point is set at the bottom front end of the device body or on the mouse. It is a feature point that can be determined by recognizing part or all of the mouse, or its pattern or shape. It is used to indicate a specified point on a written document. The image of the positioning indicator point in the positioning image coincides with or intersects with the coordinates of the positioning point or is within a preset distance. Alternatively, the coordinates of the positioning indicator point in the positioning image can be used as the coordinates of the positioning point. The positioning state switch is used to switch the positioning state, which includes at least a normal mouse positioning state for use as a normal mouse and a document positioning state for use as a page pointing and information input device in this application. The motion sensor is used to acquire motion information of the device body; The communication module is used to communicate with electronic devices or with information receiving and processing devices; When in a normal mouse positioning state, the controller transmits movement information and input information to the electronic device, or controls the movement of the mouse arrow on the screen according to the movement information of the device itself and obtains the coordinates of the mouse arrow on the screen in response to the input information; when in a document positioning state, in response to the input information, it transmits input information to the information receiving and processing device, and / or obtains a positioning image and obtains the coordinates of the positioning point in the positioning image.
19. A page pointing and information input device for implementing the method of any one of claims 1 to 7 in the system of claim 8, characterized in that, include: The device body and two or more buttons, communication devices, positioning indicators, and optional controllers mounted on the device body. The buttons mentioned above are used to obtain input information; The positioning indicator point is set at the bottom front end of the device body or a feature point on the device that can be determined by recognizing part or all of the device, or its pattern or shape. It is used to indicate a specified point on a written document and can recognize the coordinates of the positioning indicator point in the positioning image as the coordinates of the positioning point. The communication module is used to communicate with information receiving and processing devices; The controller is used to transmit input information to the information receiving and processing device in response to input information.
