Quick screenshot method and system

CN122547259APending Publication Date: 2026-08-11NO 24 RES INST OF CETC
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-01
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

这种截图方式不够便捷,严重影响了用户的交互效率

Benefits of technology

[0016]本发明的快捷截图方法及系统,至少具有如下有益效果:通过键盘触发和轨迹触发两种方式实现快捷截图,无需启动截图工具,操作方便快捷;轨迹触发方式仅比对轨迹形状,用户无需精准绘制固定大小、固定位置的轨迹,随意绘制相似形状即可触发截图,极大降低了操作难度;通过归一化处理彻底消除绘制速度、点位疏密、坐标位置、轨迹尺寸的干扰,匹配结果不受用户绘制习惯影响,结合轨迹比对时形状相似度的计算,具有极高的抗干扰能力和匹配稳定性;支持自定义用户自定义轨迹模板和相似度阈值,可适配不同用户的不同需求或操作习惯,实现高度个性化。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122547259A_ABST
    Figure CN122547259A_ABST
Patent Text Reader

Abstract

This invention discloses a quick screenshot method, comprising: obtaining a screenshot command, and taking a screenshot based on the screenshot command; wherein the screenshot command includes a keyboard screenshot command triggered by operating a preset trigger key on the keyboard and / or a trajectory screenshot command triggered by drawing a preset trajectory template with a mouse. This invention effectively solves the technical problems of inconvenient and inefficient screenshot operations in the prior art, and significantly improves the efficiency of human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a quick screenshot method and system. Background Technology

[0002] In existing computer operation workflows, taking screenshots is a frequently used interactive requirement. However, current mainstream methods for taking screenshots on computers generally suffer from inconvenience. Users typically need to launch a screenshot tool first, wait for it to load, and then take the screenshot. This method is not convenient and severely impacts user interaction efficiency. Therefore, there is an urgent need to provide a more convenient screenshot method. Summary of the Invention

[0003] In view of the shortcomings of the prior art, the technical problem to be solved by the present invention is to provide a method for taking screenshots conveniently.

[0004] To solve the above-mentioned technical problems, one technical solution adopted by the present invention is to provide a quick screenshot method, comprising: obtaining a screenshot command, and taking a screenshot based on the screenshot command; wherein, the screenshot command includes a keyboard screenshot command triggered by operating a preset trigger key on the keyboard and / or a trajectory screenshot command triggered by drawing a preset trajectory template with a mouse.

[0005] Furthermore, the step of triggering the trajectory screenshot command by drawing a preset trajectory template with the mouse includes the following sub-steps: Capture the original cursor trajectory during mouse drawing; The original trajectory is normalized to obtain a normalized trajectory, which retains pure geometric shape features; Calculate the shape similarity between the normalized trajectory and the preset trajectory template; When the shape similarity is greater than or equal to a preset similarity threshold, a trajectory screenshot command is triggered.

[0006] Furthermore, the step of normalizing the original trajectory includes the following sub-steps: Calculate the total length of the original trajectory, and divide it evenly based on the total length to extract several coordinate points; Based on the extracted coordinate points, calculate the coordinates of the geometric centroid of the trajectory, and then translate all the coordinate points of the trajectory as a whole, so that the geometric centroid of the trajectory is translated to the origin of the coordinate system. The extreme value operation is performed on the translated trajectory coordinate point set to obtain the extreme value interval. Based on the extreme value interval, all trajectory coordinates are uniformly scaled to the standard coordinate interval to complete the normalization of trajectory size.

[0007] Furthermore, the step of calculating the shape similarity between the normalized trajectory and the preset trajectory template includes the following sub-steps: Calculate the sum of the Euclidean distances between corresponding points in the normalized trajectory and the trajectory template; Determine the maximum limit distance, and calculate the shape similarity between the normalized trajectory and the preset trajectory template based on the sum of the maximum limit distance and the Euclidean distance.

[0008] Furthermore, the set of coordinate points of the normalized trajectory is The coordinate point set of the trajectory template is The formula for calculating the sum of the Euclidean distances between corresponding points in the normalized trajectory and the trajectory template is as follows:

[0009] in, This represents the sum of Euclidean distances between corresponding points in the normalized trajectory and the trajectory template. Indicates the number of resampling points; The formula for calculating the shape similarity between the normalized trajectory and the preset trajectory template is as follows:

[0010] in, Indicates shape similarity. Indicates the maximum limit distance.

[0011] Furthermore, the step of setting the preset trajectory template includes the following sub-steps: Obtain the recording standard trajectory instruction, and based on the recording standard trajectory instruction, normalize the coordinates corresponding to the movement trajectory of the mouse cursor and save them as a trajectory template. Obtain the similarity threshold setting instruction, and complete the setting of the similarity threshold based on the similarity threshold setting instruction; Obtain the save parameter instruction, and save the set similarity threshold based on the save parameter instruction.

[0012] Furthermore, the step of setting the preset trajectory template also includes the following sub-steps: Obtain the instruction to draw the test trajectory, and display the movement trajectory of the mouse cursor in real time based on the instruction to draw the test trajectory, as the test trajectory; Obtain trajectory comparison instructions, and compare the test trajectory with the trajectory template based on the trajectory comparison instructions to obtain the similarity; The similarity threshold is reset based on the similarity obtained from the comparison and the actual needs.

[0013] Furthermore, the method for presetting the trigger button is as follows: obtaining a keyboard trigger configuration instruction and generating a keyboard trigger configuration interface based on the keyboard trigger configuration instruction; obtaining the currently pressed key on the keyboard and displaying it on the keyboard trigger configuration interface; obtaining a save instruction, and saving the key displayed on the interface based on the save instruction to complete the preset of the trigger button.

[0014] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is: to provide a quick screenshot system for implementing the aforementioned quick screenshot method, comprising: The key triggering module is used to obtain the key that has been pressed on the keyboard and compare it with the preset trigger key. If it is the same as the trigger key, the key screenshot command is triggered. The trajectory triggering module is used to obtain the trajectory drawn by the mouse and compare it with the preset trajectory template. If the shape similarity between the two is greater than or equal to the preset similarity threshold, the trajectory screenshot command is triggered. The screenshot module is used to obtain key screenshot instructions and / or trajectory screenshot instructions, and to take screenshots based on the key screenshot instructions and / or trajectory screenshot instructions.

[0015] Furthermore, it also includes: The keyboard trigger configuration module is used to acquire keyboard trigger configuration instructions and generate a keyboard trigger configuration interface based on the keyboard trigger configuration instructions to configure trigger keys; The trajectory template configuration module is used to obtain trajectory template configuration instructions and generate a trajectory template configuration interface based on the trajectory template configuration instructions to configure the trajectory template. The save module is used to synchronously save the images captured by the screenshot module.

[0016] The quick screenshot method and system of the present invention have at least the following beneficial effects: quick screenshots are achieved through both keyboard triggering and trajectory triggering, eliminating the need to launch a screenshot tool, making operation convenient and fast; the trajectory triggering method only compares the trajectory shape, so users do not need to accurately draw trajectories of fixed size and position, but can trigger screenshots by drawing similar shapes at will, greatly reducing the difficulty of operation; through normalization processing, interference from drawing speed, point density, coordinate position, and trajectory size is completely eliminated, and the matching result is not affected by the user's drawing habits. Combined with the calculation of shape similarity during trajectory comparison, it has extremely high anti-interference ability and matching stability; it supports user-defined trajectory templates and similarity thresholds, which can adapt to different needs or operating habits of different users, achieving a high degree of personalization. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a flowchart for a preset trajectory template.

[0018] Figure 2 This is a screenshot of the configuration interface for the trajectory template.

[0019] Figure 3 This is a flowchart illustrating how to trigger a trajectory screenshot command by drawing a preset trajectory template using the mouse.

[0020] Figure 4 for Figure 3 Flowchart of step S220.

[0021] Figure 5 for Figure 3 Flowchart of step S230.

[0022] Figure 6 This is a schematic diagram of the trajectory shape similarity comparison results.

[0023] Figure 7 This is a schematic diagram of another trajectory shape similarity comparison result.

[0024] Figure 8 This is a schematic diagram of another trajectory shape similarity comparison result.

[0025] Figure 9 This is a system block diagram of one embodiment of the quick screenshot system of the present invention.

[0026] Figure 10 Screenshot of the configuration interface for keyboard triggering. Detailed Implementation

[0027] The following disclosure provides various different embodiments or examples for implementing different features of the invention. Specific examples will be described below to simplify the invention. Of course, these are merely examples and are not intended to limit the invention. Although the numerical ranges and parameter settings that present a broad scope of the invention are approximate, the numerical settings in specific examples are reported as precisely as possible. Any numerical value, however, inherently contains certain inevitable errors arising from the standard deviation found in the respective test measurements. Similarly, as used herein, the term "about" generally refers to within 10%, 5%, 1%, or 0.5% of a given value or range. Alternatively, the term "about" means within an acceptable average standard error that can be conceived by one of ordinary skill in the art. Except in operational / working examples, or unless expressly stated otherwise, all numerical ranges, totals, values, and percentages, such as those for material quantities, durations, temperatures, operating conditions, amounts, and other similarities disclosed herein, should be understood to be modified by the term "about" in all cases. Therefore, unless otherwise stated, the numerical parameter settings recited in the invention and the appended claims are approximate values ​​that can be changed as required. At a minimum, each numerical parameter should be interpreted based on the number of significant digits reported, and common rounding techniques should be applied. Ranges here may be expressed from one endpoint to another or between two endpoints. All ranges disclosed herein include endpoints unless otherwise stated.

[0028] Furthermore, the technical parts described in this invention and the appended claims are primarily the improved technical parts of this invention, and do not limit the object protected by this invention to only having these technical parts. Other known essential components (structures and / or methods) and / or non-essential components of the object protected, besides the technical parts described in this invention and the appended claims, are not included in this invention and the appended claims because they do not fall within the scope of improvements of this invention; however, this does not mean that the object protected by this invention does not possess these known components.

[0029] The quick screenshot method of the present invention is as follows: obtaining a screenshot command, and taking a screenshot based on the screenshot command; wherein, the screenshot command includes a keyboard screenshot command triggered by operating a preset trigger key on the keyboard and / or a trajectory screenshot command triggered by drawing a preset trajectory template with the mouse. In practical applications, users can choose to take a screenshot quickly by keyboard triggering, trajectory triggering, or a combination of both, according to their own usage habits. For example, users can directly press a preset trigger key (such as the "Ctrl+O" key combination) to complete the screenshot; or they can trigger the screenshot by drawing a preset shape (such as an "L" shape) with the mouse.

[0030] To cater to different user habits, the screenshot commands of this invention include two types: keyboard screenshot commands and trajectory screenshot commands. Keyboard screenshot commands are triggered by pressing preset keyboard keys, while trajectory screenshot commands are triggered by drawing a preset trajectory template with the mouse. The two triggering methods can be used independently or in combination, allowing users to choose flexibly according to their actual needs.

[0031] The method for presetting the trigger key is as follows: Obtain a keyboard trigger configuration command and generate a keyboard trigger configuration interface based on the command; obtain the currently pressed key and display it on the keyboard trigger configuration interface; obtain a save command and save the key displayed on the interface based on the save command, thus completing the preset of the trigger key. Through this configuration method, users can set any single key or key combination on the keyboard as a trigger key. For example, a user can set "Ctrl+O" as the screenshot trigger key through the keyboard trigger configuration interface; after saving, pressing this key combination will trigger a screenshot operation each time.

[0032] Please see Figure 1 The steps for setting the trajectory template include the following sub-steps: S110. Obtain the recording standard trajectory instruction. Based on the recording standard trajectory instruction, normalize the coordinates corresponding to the movement trajectory of the mouse cursor and save them as a trajectory template.

[0033] In practice, to obtain the trajectory template configuration instructions and generate the trajectory template configuration interface based on those instructions, please refer to [link to relevant documentation]. Figure 2 After the user clicks the "Record Standard Track" control in the track template configuration interface, the software enters track recording mode. The user then draws a shape (such as an "L") on the screen with the mouse. The software collects the cursor coordinates in real time during mouse movement, forming a track coordinate point set. After the user completes the drawing, the software automatically normalizes the coordinates corresponding to the collected original track and saves the processed standardized track data as a track template file, such as "StandardTrack.xml," for subsequent track comparison. After the track template recording is complete, the normalized track template shape will be displayed in the track template display area of ​​the track template configuration interface, allowing the user to confirm whether the recorded track meets expectations. If not, step S110 can be repeated to re-record the track template.

[0034] S120. Obtain the similarity threshold setting instruction, and complete the setting of the similarity threshold based on the similarity threshold setting instruction.

[0035] The similarity threshold determines the strictness of trajectory matching. A higher threshold requires stricter precision in the shape of the user-drawn trajectory, resulting in a lower false trigger rate. Conversely, a lower threshold is more tolerant of minor shape deviations in the user's drawing, leading to a higher tolerance for shape matching errors. In this implementation, the system presets a default similarity threshold of 0.7. Users can adjust this threshold flexibly according to their own operational precision habits, with an adjustment range between 0 and 1. The method for adjusting the similarity threshold is as follows: Obtain a command to draw a test trajectory; display the mouse cursor's movement trajectory in real-time based on the command as the test trajectory; obtain a trajectory comparison command; compare the test trajectory with the trajectory template based on the command to obtain a similarity score; and reset the similarity threshold based on the obtained similarity score and the user's actual needs.

[0036] In practice, first click the "Draw Test Trajectory" control in the trajectory template configuration interface to draw any trajectory on the screen. The path of the trajectory is captured and displayed in real time, allowing the user to preview the shape. Next, click the "Enable Trajectory Comparison" control in the trajectory template configuration interface. The software automatically calculates the shape similarity between the real-time drawn test trajectory and the preset trajectory template, displaying the final comparison result on the interface for the user to intuitively understand the degree of matching between the current trajectory and the template. After viewing the comparison results, if the user feels that the current similarity threshold is too low or too high, they can directly adjust the similarity threshold and perform the comparison test again until a satisfactory trigger sensitivity is achieved, precisely adapting to the user's individual operating habits.

[0037] S130. Obtain the save parameter instruction, and save the set similarity threshold based on the save parameter instruction.

[0038] Specifically, after completing the threshold setting, clicking the save parameter control in the trajectory template configuration interface will write the currently set similarity threshold into the configuration file, such as "parameter configuration.xml". The system will automatically read the configuration the next time it starts, without needing to set it again.

[0039] Please see Figure 3 The step of triggering the trajectory screenshot command by drawing a preset trajectory template with the mouse includes the following sub-steps: S210. Collect the original trajectory of the cursor during mouse drawing.

[0040] Specifically, when the left mouse button is detected as being pressed, the trajectory acquisition process begins. While the left mouse button is held down, the real-time coordinates of the cursor on the screen are acquired. When the left mouse button is released, the acquisition ends, resulting in a complete set of raw trajectory coordinates. To ensure the validity of the acquired data, preliminary noise reduction processing is performed on the raw trajectory, removing duplicate coordinates caused by mouse pauses and invalid points caused by minor jitter, retaining complete, continuous, and valid trajectory path data to provide an accurate raw data source for subsequent normalization processing.

[0041] S220. Normalize the original trajectory to obtain a normalized trajectory that retains pure geometric features.

[0042] It should be understood that the original trajectories exhibit significant data differences: different users draw the same shape trajectory at varying mouse movement speeds, resulting in inconsistencies in the number of collected trajectory coordinate points, point density, and total path length; different drawing positions cause offsets in the overall coordinate position of the trajectory; and different drawing habits lead to differences in the absolute dimensions of the trajectory. These differences are all non-shape-related interference factors, and if not eliminated, they will directly affect the accuracy of trajectory matching. Therefore, this invention completely eliminates these interferences through normalization processing, retaining only the shape features of the trajectory.

[0043] Please see Figure 4 This step S220 includes the following sub-steps: S221. Re-extract coordinate points. Calculate the total length of the original trajectory, and divide it evenly based on the total length to extract several coordinate points.

[0044] Specifically, the total path length of the original valid trajectory is first calculated. Then, based on the total length, it is uniformly divided, and N feature coordinate points are adaptively and uniformly extracted. N is the system's preset fixed number of sampling points, which can be customized according to the recognition accuracy requirements, preferably 64 to 128 points. Through this step S221, the data dimension of the trajectory can be unified, converting all trajectories of different lengths and different numbers of points of the same shape into a set of trajectory points with a fixed number of points and uniform distribution. This completely solves the data differences caused by drawing speed and trajectory length, while preserving the complete trajectory outline shape features.

[0045] S222. Translation Process. Based on the extracted coordinate points, calculate the geometric centroid coordinates of the trajectory, and then translate all coordinate points of the trajectory as a whole, so that the geometric centroid of the trajectory is translated to the origin.

[0046] Specifically, firstly, based on the trajectory point set obtained in step S221, the geometric centroid coordinates of the trajectory are calculated, where the geometric centroid coordinates are the average of all coordinate points in the trajectory. Then, a global translation operation is performed on all coordinate points of the trajectory, precisely translating the geometric centroid of the trajectory to the origin of the plane coordinate system (0,0). After the translation process, all trajectories of the same shape, regardless of where they are drawn on the screen, are unified to the same coordinate reference center, completely eliminating the influence of the trajectory drawing position on the matching result, and only retaining the relative contour features of the trajectory itself.

[0047] S223. Scaling Process. Perform extreme value calculations on the translated trajectory coordinate point set to obtain the extreme value interval. Based on the extreme value interval, scale all trajectory coordinates to the standard coordinate interval to complete the normalization of trajectory size.

[0048] Specifically, extreme value calculations are performed on the translated trajectory coordinate point set to obtain the maximum and minimum coordinate values ​​in the horizontal and vertical directions of the trajectory. Based on the extreme value interval, all trajectory coordinates are uniformly scaled to the 0-1 standard coordinate range. After scaling, trajectories of the same shape, both large and small, will form a completely consistent standardized outline, completely eliminating the interference of absolute size parameters. The final output normalized trajectory data retains only the pure geometric shape relationships, without any interference from position, size, length, or number of points.

[0049] S230. Calculate the shape similarity between the normalized trajectory and the preset trajectory template.

[0050] In this embodiment, after normalization, the normalized trajectory and the preset trajectory template are both standardized trajectory data with the same number of points, the same coordinate reference, and the same size range. Based on this, accurate shape similarity calculation can be performed.

[0051] Please see Figure 5 This step S230 includes the following sub-steps: S231. Calculate the sum of the Euclidean distances between the corresponding points of the normalized trajectory and the trajectory template.

[0052] Specifically, the set of coordinate points of the normalized trajectory is The coordinate point set of the trajectory template is The formula for calculating the sum of the Euclidean distances between corresponding points in the normalized trajectory and the trajectory template is as follows:

[0053] in, This represents the sum of Euclidean distances between corresponding points in the normalized trajectory and the trajectory template. This indicates the number of resampling points.

[0054] S232. Determine the maximum limit distance, and calculate the shape similarity between the normalized trajectory and the preset trajectory template based on the sum of the maximum limit distance and the Euclidean distance.

[0055] Since the normalized trajectory coordinates are compressed to the 0-1 standard coordinate range, the maximum Euclidean distance between any two points does not exceed [the specified value]. Therefore, the maximum limit distance of N corresponding points Based on this maximum limit distance, the sum of Euclidean distances can be linearly mapped to a similarity score in the 0-1 interval. The formula for calculating the shape similarity between the normalized trajectory and the preset trajectory template is as follows:

[0056] in, Indicates shape similarity. This represents the maximum limit distance. Using this formula, when two trajectories completely overlap, The similarity is 1; when the difference between the two trajectories reaches the limit, The similarity is 0. This algorithm is computationally efficient, lightweight, and suitable for the real-time operation requirements of terminal devices.

[0057] The algorithm described above only compares shape features such as relative contour, inflection points, curvature, and direction of the trajectory, without comparing parameters such as the absolute size, coordinate position, path length, and number of points. After normalization preprocessing, all non-shape interference variables have been completely eliminated. The algorithm only calculates the pure shape difference of the trajectory. As long as the overall contour shape trend is consistent, even if there are significant differences in the size, position, and length of the trajectory drawn by the user, a high similarity score can still be obtained. This algorithm completely avoids the strict constraints of traditional exact matching, balancing recognition accuracy and user operation tolerance.

[0058] S240. When the shape similarity is greater than or equal to the preset similarity threshold, a trajectory screenshot command is triggered.

[0059] Specifically, the system compares the calculated trajectory shape similarity with the user-preset similarity threshold in real time. When the shape similarity calculated in step S230 is greater than or equal to the preset similarity threshold, the trajectory is determined to be matched successfully, and the system immediately triggers a screenshot operation; when the similarity value is less than the preset similarity threshold, the match is determined to be unsuccessful, and the screenshot operation is not performed.

[0060] For example, if the trajectory template is set to an "L" shape, then as long as the real-time trajectory resembles an "L" shape and the shape similarity between the two is greater than or equal to the set similarity threshold, the requirement is met. Please refer to [link / reference]. Figures 6 to 8 This represents the shape similarity comparison results for different trajectories.

[0061] Please see Figure 9 This invention also discloses a quick screenshot system for implementing the quick screenshot method described in the above embodiments. Specifically, the quick screenshot system of this embodiment includes a keyboard trigger configuration module 100, a trajectory template configuration module 200, a key trigger module 300, a trajectory trigger module 400, a screenshot module 500, and a saving module 600, wherein: The keyboard trigger configuration module 100 is used to acquire keyboard trigger configuration instructions and generate a keyboard trigger configuration interface based on the instructions to configure trigger keys. Specifically, the keyboard trigger configuration module 100 is configured as a keyboard trigger configuration interface; please refer to [link to relevant documentation]. Figure 10 The keyboard trigger configuration interface includes a key display area and a save control. The key display area is used to acquire and display the currently pressed key, allowing the user to check in real-time whether the pressed key is correct. The save control is used to acquire a save command and save the key displayed in the key display area based on the save command, thus completing the preset of the trigger key.

[0062] The trajectory template configuration module 200 is used to obtain trajectory template configuration instructions and generate a trajectory template configuration interface based on the instructions to configure the trajectory template. For details, please refer to [link to relevant documentation]. Figure 2 The trajectory template configuration interface includes a standard trajectory recording control, a similarity threshold setting control, and a parameter saving control. Specifically: the standard trajectory recording control retrieves a standard trajectory recording instruction, and based on this instruction, normalizes the coordinates corresponding to the mouse cursor's movement trajectory and saves them as a trajectory template. The similarity threshold setting control retrieves a similarity threshold setting instruction, and based on this instruction, sets the similarity threshold. The parameter saving control retrieves a parameter saving instruction, and based on this instruction, saves the set similarity threshold.

[0063] As a preferred implementation, the trajectory template configuration interface further includes a trajectory template display area, a test trajectory drawing control, and a trajectory comparison enable control. The trajectory template display area displays the configured trajectory template. The test trajectory drawing control receives instructions to draw a test trajectory and displays the mouse cursor's movement trajectory in real time as the test trajectory based on these instructions. The trajectory comparison enable control receives comparison instructions and compares the test trajectory with the trajectory template to obtain a similarity score.

[0064] The key triggering module 300 is used to acquire the key that has been pressed on the keyboard and compare it with a preset trigger key. If the two keys match, a key screenshot command is triggered. The key triggering module 300 is configured to acquire the currently pressed key in real time by calling the relevant API (Application Programming Interface) of the global keyboard Hook (a kind of event interception mechanism provided by the Windows operating system), compare it with the preset trigger key, and if the two match, immediately send a key screenshot command to the screenshot module 500.

[0065] The trajectory triggering module 400 is used to acquire the trajectory drawn by the mouse and compare it with a preset trajectory template. If the shape similarity between the two is greater than or equal to a preset similarity threshold, a trajectory screenshot command is triggered. The trajectory triggering module 400 can complete trajectory acquisition, normalization processing, shape similarity calculation and judgment according to the above steps S210 to S240. When it is determined that the trajectory drawn by the current mouse successfully matches the preset trajectory template, a trajectory screenshot command is sent to the screenshot module 500.

[0066] The screenshot module 500 is used to acquire key screenshot commands and / or trajectory screenshot commands, and to take screenshots based on the key screenshot commands and / or trajectory screenshot commands. After the screenshot is completed, the screenshot module 500 transmits the captured image data to the storage module 600.

[0067] The saving module 600 is used to synchronously save the images captured by the screenshot module 500. Specifically, the saving module 600 saves the captured images according to preset naming rules and storage paths. As a preferred embodiment, the saving module generates two-level folders based on year and month and the current date (e.g., "2026 / 2026-06"), and the captured images are named with timestamps (e.g., "20260629143025.png") and saved to the corresponding date folder, facilitating quick retrieval and management by the user later.

[0068] This invention enables quick screenshots through both keyboard-triggered and trajectory-triggered methods, eliminating the need to launch a screenshot tool and offering convenient and fast operation. The trajectory-triggered method only compares the shape of the trajectory; users do not need to precisely draw trajectories of fixed size and position, but can trigger screenshots by drawing any similar shape, greatly reducing the operational difficulty. Normalization processing completely eliminates interference from drawing speed, point density, coordinate position, and trajectory size, ensuring the matching results are unaffected by user drawing habits. Combined with shape similarity calculations during trajectory comparison, it possesses extremely high anti-interference capabilities and matching stability. It supports user-defined trajectory templates and similarity thresholds, adapting to different user needs or operating habits, achieving a high degree of personalization.

Claims

1. A method for fast screenshot, characterized in that, include: Obtain screenshot instructions and take screenshots based on the screenshot instructions; wherein, the screenshot instructions include keyboard screenshot instructions triggered by operating preset trigger keys on the keyboard and / or trajectory screenshot instructions triggered by drawing preset trajectory templates with the mouse.

2. The shortcut screenshot method of claim 1, wherein, The step of triggering a trajectory screenshot command by drawing a preset trajectory template with the mouse includes the following sub-steps: Capture the original cursor trajectory during mouse drawing; The original trajectory is normalized to obtain a normalized trajectory, which retains pure geometric shape features; Calculate the shape similarity between the normalized trajectory and the preset trajectory template; When the shape similarity is greater than or equal to a preset similarity threshold, a trajectory screenshot command is triggered.

3. The shortcut screenshot method of claim 2, wherein, The step of normalizing the original trajectory includes the following sub-steps: Calculate the total length of the original trajectory, and divide it evenly based on the total length to extract several coordinate points; Based on the extracted coordinate points, calculate the coordinates of the geometric centroid of the trajectory, and then translate all the coordinate points of the trajectory as a whole, so that the geometric centroid of the trajectory is translated to the origin of the coordinate system. The extreme value operation is performed on the translated trajectory coordinate point set to obtain the extreme value interval. Based on the extreme value interval, all trajectory coordinates are uniformly scaled to the standard coordinate interval to complete the normalization of trajectory size.

4. The shortcut screenshot method of claim 3, wherein, The step of calculating the shape similarity between the normalized trajectory and the preset trajectory template includes the following sub-steps: Calculate the sum of the Euclidean distances between corresponding points in the normalized trajectory and the trajectory template; Determine the maximum limit distance, and calculate the shape similarity between the normalized trajectory and the preset trajectory template based on the sum of the maximum limit distance and the Euclidean distance.

5. The shortcut screenshot method of claim 4, wherein, The coordinate point set of the normalized trajectory is The coordinate point set of the trajectory template is The calculation formula of the sum of the Euclidean distances between the corresponding points of the normalized trajectory and the trajectory template is as follows: wherein, represents the sum of the Euclidean distances between the normalized trajectory and the corresponding point positions of the trajectory template, represents the number of resampling points; The formula for calculating the shape similarity between the normalized trajectory and the preset trajectory template is as follows: wherein, represents a shape similarity, represents a maximum limit distance.

6. The shortcut screenshot method of claim 1, wherein, The steps for setting the trajectory template include the following sub-steps: Obtain the recording standard trajectory instruction, and based on the recording standard trajectory instruction, normalize the coordinates corresponding to the movement trajectory of the mouse cursor and save them as a trajectory template. Obtain the similarity threshold setting instruction, and complete the setting of the similarity threshold based on the similarity threshold setting instruction; Obtain the save parameter instruction, and save the set similarity threshold based on the save parameter instruction.

7. The shortcut screenshot method of claim 6, wherein, The step of setting the preset trajectory template also includes the following sub-steps: Obtain the instruction to draw the test trajectory, and display the movement trajectory of the mouse cursor in real time based on the instruction to draw the test trajectory, as the test trajectory; Obtain trajectory comparison instructions, and compare the test trajectory with the trajectory template based on the trajectory comparison instructions to obtain the similarity; The similarity threshold is reset based on the similarity obtained from the comparison and the actual needs.

8. The shortcut screenshot method of claim 1, wherein, The preset method for the trigger button is as follows: obtain a keyboard trigger configuration instruction and generate a keyboard trigger configuration interface based on the keyboard trigger configuration instruction; obtain the currently pressed key on the keyboard and display it on the keyboard trigger configuration interface; obtain a save instruction, save the key displayed on the interface based on the save instruction, and complete the preset of the trigger button.

9. A system for quick screenshot, characterized by, To implement the quick screenshot method as described in any one of claims 1 to 8, comprising: The key triggering module is used to obtain the key that has been pressed on the keyboard and compare it with the preset trigger key. If it is the same as the trigger key, the key screenshot command is triggered. The trajectory triggering module is used to obtain the trajectory drawn by the mouse and compare it with the preset trajectory template. If the shape similarity between the two is greater than or equal to the preset similarity threshold, the trajectory screenshot command is triggered. The screenshot module is used to obtain key screenshot instructions and / or trajectory screenshot instructions, and to take screenshots based on the key screenshot instructions and / or trajectory screenshot instructions.

10. The quick screenshot system of claim 9, wherein, Also includes: The keyboard trigger configuration module is used to acquire keyboard trigger configuration instructions and generate a keyboard trigger configuration interface based on the keyboard trigger configuration instructions to configure trigger keys; The trajectory template configuration module is used to obtain trajectory template configuration instructions and generate a trajectory template configuration interface based on the trajectory template configuration instructions to configure the trajectory template. The save module is used to synchronously save the images captured by the screenshot module.