Processing method and related device for local high-definition screenshots based on digital teaching materials
Through the local high-definition screenshot processing method based on digital textbooks, the user's frame selection area is obtained and corrected, the user's selection area is enlarged and moved, and elements are added, ultimately achieving further processing of the screenshot image and solving the poor user experience in the existing technology. problem.
Patent Information
- Application Number
- CN202210124503.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-02-10
AI Technical Summary
The existing screenshot technology cannot further process the pictures obtained by screenshots, resulting in poor user experience.
Provides a partial high-definition screenshot processing method based on digital textbooks. It obtains the user's frame selection area, performs correction and enlargement operations, moves it to the center of the screen, and adds elements. Finally, when receiving the save instruction, it intercepts and saves the target image and its contents. The relative position of the element.
It realizes the element adding operation to the pictures obtained by screenshots, meets the user's needs for further processing of the screenshots, and improves the user experience.
Smart Images

Figure CN114463350B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and more specifically, to a method and a related device for processing local high-definition screenshots based on digital teaching materials. Background Art
[0002] A screenshot is a visual image captured by a computer that can be displayed on a screen or other display device.
[0003] Currently, screenshots have become a way for more and more users to save and share data. When taking screenshots, the screenshot images are saved as a composite image. This method cannot realize further processing of the screenshot images, and the user experience is poor. Summary of the invention
[0004] In view of this, the present invention provides a method and related device for processing local high-definition screenshots based on digital teaching materials, so as to solve the problem that further processing of the screenshot images cannot be achieved and the user experience is poor.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A method for processing local high-definition screenshots based on digital teaching materials, comprising:
[0007] Acquire a framed area selected by the current user on the digital textbook, and modify the framed area based on a display boundary restriction condition of the digital textbook to obtain a modified framed area;
[0008] According to the display boundary restriction condition, a cyclic zoom operation is performed on the corrected framed selection area until the zoom operation is stopped when a preset zoom stop condition is met, thereby obtaining a target framed selection area;
[0009] Calculating a horizontal offset and a vertical offset from the target frame selection area to the center of the screen of the display interface showing the digital teaching material, and moving the target frame selection area to the center of the screen based on the horizontal offset and the vertical offset;
[0010] Displaying elements added to the target selection area, wherein the elements are generated by the current user by calling a preset tool function item;
[0011] When a save instruction is received, a target image corresponding to the target selection area is captured, a relative position of the element in the target image is determined, and the relative position of the target image and the element is saved.
[0012] Optionally, it also includes:
[0013] Receiving a display instruction for displaying a specified image;
[0014] Get the specified image and the elements added to the specified image;
[0015] Calculating, according to the physical size of the designated picture and the display size of the display interface, an actual display size for maximizing the display of the designated picture;
[0016] The specified image and the elements added in the specified image are displayed according to the actual display size.
[0017] Optionally, displaying the specified image and the elements added to the specified image according to the actual display size includes:
[0018] Based on the relative position of the element added to the specified picture in the specified picture, calculate a new relative position and a new size corresponding to the element;
[0019] The designated picture is displayed according to the actual display size, and the element added in the designated picture is displayed according to the new size at a new relative position corresponding to the element according to the element type.
[0020] Optionally, according to the display boundary restriction condition, a cyclic zoom operation is performed on the corrected frame selection area until the zoom operation is stopped when a preset zoom stop condition is met, to obtain a target frame selection area, including:
[0021] Performing a coordinate transformation operation on the corrected framed area;
[0022] The corrected framed selection area for the coordinate transformation operation is enlarged step by step according to a preset enlargement ratio until the boundary of the corrected framed selection area for the enlargement operation reaches the display boundary restriction condition.
[0023] Optionally, determining the relative position of the element in the target image includes:
[0024] Based on the physical size of the target image, calculate the coordinate ratio and the aspect ratio of the element added to the target image relative to the starting point of the target image;
[0025] The starting point coordinate ratio and the width-to-height ratio are used as the relative position of the element added to the target image in the target image.
[0026] A processing device for local high-definition screenshots based on digital teaching materials, comprising:
[0027] The image correction module is used to obtain the framed area selected by the current user on the digital textbook, and correct the framed area based on the display boundary restriction condition of the digital textbook to obtain a corrected framed area;
[0028] The image magnification module is used to perform a cyclic magnification operation on the corrected framed area according to the display boundary restriction condition, and stop the magnification operation when a preset magnification stop condition is met, thereby obtaining a target framed area;
[0029] A moving module, used to calculate a horizontal offset and a vertical offset from the target frame selection area to the center of the screen of the display interface showing the digital teaching material, and move the target frame selection area to the center of the screen based on the horizontal offset and the vertical offset;
[0030] An element adding module, used for displaying elements added to the target selection area, wherein the elements are generated by the current user by calling a preset tool function item;
[0031] The image processing module is used to intercept the target image corresponding to the target selection area, determine the relative position of the element in the target image, and save the relative position of the target image and the element when receiving a save instruction.
[0032] Optionally, it also includes:
[0033] An instruction receiving module, used for receiving a display instruction for displaying a specified image;
[0034] A data acquisition module, used to acquire the specified image and the elements added to the specified image;
[0035] A size calculation module, used to calculate an actual display size for maximizing the display of the specified picture according to the physical size of the specified picture and the display size of the display interface;
[0036] The picture display module is used to display the specified picture and the elements added in the specified picture according to the actual display size.
[0037] Optionally, the picture display module is specifically used for:
[0038] Based on the relative position of the element added in the specified picture, the new relative position and the new size corresponding to the element are calculated, the specified picture is displayed according to the actual display size, and according to the element type of the element, the element added in the specified picture is displayed at the new relative position corresponding to the element and according to the new size.
[0039] Optionally, the picture enlargement module is specifically used for:
[0040] A coordinate conversion operation is performed on the corrected framed selection area, and the corrected framed selection area that is subjected to the coordinate conversion operation is enlarged step by step according to a preset enlargement ratio until the boundary of the corrected framed selection area that is subjected to the enlargement operation reaches the display boundary restriction condition.
[0041] An electronic device comprising: a memory and a processor;
[0042] Wherein, the memory is used to store programs;
[0043] The processor calls the program and is used to execute the above-mentioned processing method of local high-definition screenshots based on digital teaching materials.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] The present invention provides a processing method and related device for local high-definition screenshots based on digital textbooks, obtaining a framed area of a current user on a digital textbook, and based on the display boundary restriction condition of the digital textbook, correcting the framed area to obtain a corrected framed area, performing a cyclic zoom operation on the corrected framed area according to the display boundary restriction condition, until the zoom operation is stopped when a preset zoom stop condition is met, obtaining a target framed area, calculating the horizontal offset and vertical offset from the target framed area to the center of the screen of the display interface displaying the digital textbook, and based on the horizontal offset and the vertical offset, moving the target framed area to the center of the screen, displaying the element added to the target framed area, the element is generated by the current user by calling a preset tool function item, and when a save instruction is received, capturing the target picture corresponding to the target framed area, determining the relative position of the element in the target picture, and saving the target picture and the relative position of the element. That is, through the present invention, it is possible to perform an element adding operation on the picture obtained by the screenshot, meet the user's further processing requirements for the picture obtained by the screenshot, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0047] Figure 1 A method flow chart of a method for processing a local high-definition screenshot based on a digital teaching material provided by an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a picture with added elements provided by an embodiment of the present invention;
[0049] Figure 3 A method flow chart of another method for processing local high-definition screenshots based on digital teaching materials provided by an embodiment of the present invention;
[0050] Figure 4 A method flow chart of another method for processing local high-definition screenshots based on digital teaching materials provided by an embodiment of the present invention;
[0051] Figure 5 A method flow chart of another method for processing local high-definition screenshots based on digital teaching materials provided by an embodiment of the present invention;
[0052] Figure 6 A schematic diagram of another picture with elements added provided by an embodiment of the present invention;
[0053] Figure 7 A schematic diagram of another picture with added elements provided by an embodiment of the present invention;
[0054] Figure 8 A schematic diagram of another picture with added elements provided by an embodiment of the present invention;
[0055] Fig. 9 A schematic diagram of a fifth picture with added elements provided by an embodiment of the present invention;
[0056] Fig.10 A schematic diagram of the structure of a device for processing local high-definition screenshots based on digital teaching materials provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Currently, screenshots have become a way for more and more users to save and share data. When taking screenshots, the screenshot images are saved as a composite image. This method cannot realize further processing of the screenshot images, and the user experience is poor.
[0059] In order to solve this technical problem, the inventor has found that a screenshot tool can be designed. After taking a screenshot using the tool, elements can be added to the screenshot to meet user needs.
[0060] Specifically, the present invention provides a processing method and related device for local high-definition screenshots based on digital textbooks, obtains the framed area of the current user on the digital textbook, and based on the display boundary restriction condition of the digital textbook, corrects the framed area to obtain the corrected framed area, performs a cyclic zoom operation on the corrected framed area according to the display boundary restriction condition, stops the zoom operation when the preset zoom stop condition is met, obtains the target framed area, calculates the horizontal offset and vertical offset from the target framed area to the center of the screen of the display interface displaying the digital textbook, and based on the horizontal offset and the vertical offset, moves the target framed area to the center of the screen, displays the element added to the target framed area, the element is generated by the current user by calling a preset tool function item, and when a save instruction is received, captures the target picture corresponding to the target framed area, determines the relative position of the element in the target picture, and saves the target picture and the relative position of the element. That is, through the present invention, it is possible to perform element addition operations on the pictures obtained by screenshots, meet the user's further processing requirements for the pictures obtained by screenshots, and improve user experience.
[0061] Based on the above content, another embodiment of the present invention provides a method for processing a local high-definition screenshot based on a digital teaching material, which is applied to an electronic device equipped with the above-mentioned screenshot tool. Figure 1 , the processing method of local high-definition screenshots based on digital teaching materials can include:
[0062] S11. Acquire a framed area selected by the current user on the digital textbook, and modify the framed area based on a display boundary restriction condition of the digital textbook to obtain a modified framed area.
[0063] The application scenario of the present invention can be a teacher teaching scenario. During the lecture, the teacher needs to annotate the PDF courseware used in the lecture, i.e., the digital teaching material, with animation, text, or graphics to assist teaching. Therefore, the digital teaching material in this embodiment can be the current interface of the PDF courseware displayed in full screen by the teacher. In addition, it can also be a PDF picture opened by the user in other scenarios, such as picture editing and beautification.
[0064] After confirming the digital teaching material, the user can use the screenshot tool and the mouse to draw a rectangular area from the upper left to the lower right of the digital teaching material to obtain the framed area.
[0065] The boundary of the rectangular area defined by the user may exceed the boundary of the digital textbook. In this case, the selected area needs to be corrected based on the display boundary restriction of the digital textbook. The specific correction process is to correct the part of the user selected area that exceeds the boundary of the digital textbook to the nearest boundary of the digital textbook to obtain the corrected selected area.
[0066] S12, according to the display boundary restriction condition, cyclically enlarging the corrected framed area until the enlarging operation is stopped when a preset enlarging stop condition is met, thereby obtaining a target framed area.
[0067] Specifically, after taking a screenshot, the user may enlarge the screenshot area to better display the screenshot area.
[0068] When performing a zoom operation, it is necessary to perform a coordinate transformation operation on the corrected framed area. The specific coordinate transformation operation is:
[0069] The coordinates in the corrected selection area are converted from image coordinates to screen coordinates, and then from screen coordinates to page coordinates.
[0070] Specifically, the coordinates of the corrected selection area selected by the user are obtained, which generally refers to the two coordinates of the upper left corner and the lower right corner. At this time, what is obtained is the control coordinates of the corrected selection area in the screenshot tool. The conversion function is called to convert the control coordinates into general screen coordinates, and then another conversion function is called to convert the screen coordinates into PDF page coordinates, so as to map the selected corrected selection area to the PDF page.
[0071] After the coordinate conversion is completed, the corrected framed selection area for the coordinate conversion operation is enlarged step by step according to the preset enlargement ratio until the boundary of the corrected framed selection area for the enlargement operation reaches the display boundary restriction condition.
[0072] Among them, the preset magnification ratio can be 25% or 20%. Specifically, the operation of enlarging the corrected framed selection area step by step (approximately 25% or 20% each time) is performed until the height or width of the corrected framed selection area reaches the maximum height or width boundary of the screen (display interface) and then the enlargement operation is stopped, that is, the maximum area that the screen can accommodate is reached (currently height is prioritized, considering that the screen is wider than high), and the target framed selection area is obtained.
[0073] S13, calculating the horizontal offset and the vertical offset from the target selection area to the center of the screen of the display interface showing the digital teaching material, and moving the target selection area to the center of the screen based on the horizontal offset and the vertical offset.
[0074] Specifically, after obtaining the target frame selection area, the display area of the target frame selection area is adjusted to the center of the screen, that is, centered display.
[0075] In detail, the corrected framed area is enlarged step by step (currently set to 20% or 25% each time), and it is determined in real time whether the enlarged area exceeds the width or height that the current screen can accommodate. The process stops when either condition is met. After the enlargement is completed, the page coordinates of the upper left corner and the lower right corner are converted to screen coordinates. The new coordinates obtained are used to calculate the horizontal and vertical offsets of the target framed area from the center of the screen. The target framed area is moved to the center of the screen using this offset, thereby obtaining the enlarged target framed area.
[0076] In actual scenarios, when teachers are teaching and focusing on a part of the teaching material, they can circle the selected area to maximize the convenience for students in the classroom to watch.
[0077] S14: Display the elements added to the target selected area.
[0078] The element is generated by the current user by calling a preset tool function item.
[0079] Specifically, refer to Figure 2 , Figure 2 A toolbar is displayed in the lower right corner. Users can add elements by clicking on the toolbar function items. The elements that can be added can be strokes, graphics (arrows, rectangles, circles, etc.), text, area mask animation, etc. Among them, the text can choose the font, color, font size, graphic style, etc. Figure 2 In the game, elements such as arrows, circles, and area occlusion animations are added.
[0080] When the user uses the toolbar function to add elements, the screenshot tool adds a new layer and displays the user's operations in real time on the layer, such as adding elements, undoing added elements, etc. In addition, the screenshot tool also records the user's operation history.
[0081] S15. When a save instruction is received, capture a target image corresponding to the target selection area, determine a relative position of the element in the target image, and save the target image and the relative position of the element.
[0082] After the user has finished adding elements, click Save, and the screenshot of the target selected area will be completed, and the screenshot will generate the target image. The physical size of the screenshot, as well as the position ratio and size ratio of the element relative to the physical size of the screenshot are recorded for use next time you load it.
[0083] In practical applications, refer to Figure 3 , step S14 may include:
[0084] S21. Based on the physical size of the target image, calculate the coordinate ratio of the starting point and the aspect ratio of the element added to the target image relative to the target image.
[0085] S22: Using the starting point coordinate ratio and the width-to-height ratio as the relative position of the element added to the target image in the target image.
[0086] Specifically, for all elements in the target image, based on the original physical size of the target image, the coordinate ratio and the width-to-height ratio of the elements relative to the starting point of the target image are calculated, and the coordinate ratio and the width-to-height ratio are used as the relative positions of the elements added to the target image in the target image and saved.
[0087] The starting point may be the point at the upper left corner when the user takes a screenshot, and the ending point may be the point at the lower right corner when the user takes a screenshot. After obtaining the relative position, the element content, element type, and relative position of the added element may be saved to a preset location, such as a database. When saving, the target image may be saved as a file.
[0088] In addition, you can choose not to save it and just use it for temporary explanation in class.
[0089] In actual applications, there may be a scenario where the user may only process on the saved computer, such as a teacher preparing lessons at home and then going to the classroom to teach. The scaling and resolution of the computers at home and in the classroom may be different. If the physical size of the image is not used as the basis, it often causes the normal display during processing, and then the added element display position and size are inaccurate when it is opened for display. Therefore, in this embodiment, the coordinate ratio of the elements added to the target image relative to the starting point coordinates of the target image, as well as the aspect ratio, can be calculated to ensure the normal display of the image when it is displayed.
[0090] On the basis of this embodiment, the present invention also supports displaying the above-mentioned saved target picture on other electronic devices, such as a computer, or displaying pictures saved from other electronic devices on this electronic device.
[0091] Specifically, refer to Figure 4 , the image processing method also includes:
[0092] S31. Receive a display instruction for displaying a designated picture.
[0093] In this embodiment, the display instruction can be an instruction for the user to open the specified picture in the screenshot tool. In actual application, the screenshot tool supports two modes, edit mode and play mode. The user can add elements to the screenshot in the edit mode and display, play and pause the picture in the play mode.
[0094] It should be noted that if the specified image has already been added with elements, at this time, the above-mentioned editing mode can also be used to adjust the position, delete, add, etc. of the elements.
[0095] The designated image may be the target image mentioned above, or may be an image stored in other electronic devices. The resolution and other parameters of the other electronic devices may not be the same as those of the electronic device in this embodiment.
[0096] S32: Obtain the specified image and the elements added to the specified image.
[0097] Specifically, obtaining a specified image may be obtaining the content, image size, etc. of the specified image.
[0098] Get the specific content, element type, and relative position of the element added to the specified image. For details, please refer to the corresponding introduction of the above content.
[0099] S33: Calculate the actual display size of the designated image for maximizing the display of the designated image according to the physical size of the designated image and the display size of the display interface.
[0100] Specifically, when opening such a static screenshot, that is, the above-mentioned specified image, the physical size of the image is read, and whether it is width adaptation or height adaptation is calculated, and the adaptation result can be obtained, and the adaptation result is width adaptation or height adaptation.
[0101] Then, according to the adaptation result, it is determined whether the picture size of the specified picture exceeds the display size of the display interface, that is, whether it exceeds the screen. The display size of the display interface can be derived from the interface size data of the display interface.
[0102] If it is larger, the image size of the specified image needs to be corrected to obtain the actual display size.
[0103] Specifically, if the size of the image exceeds the maximum size of the screen (if it is high adaptation, height is prioritized, if it is wide adaptation, width is prioritized, which is entirely determined by the aspect ratio of the image), the actual display size of the image is recalculated based on the maximum size that the screen can accommodate and displayed in the center.
[0104] S34: Display the designated image and the elements added to the designated image according to the actual display size.
[0105] Specifically, it is necessary to display the specified picture and the elements in the specified picture.
[0106] Reference Figure 5 , step S35 may include:
[0107] S41. Based on the relative position of the element added in the specified picture, calculate a new relative position and a new size corresponding to the element.
[0108] In actual applications, the computer used by the user when saving and the computer used for actual display may be different in scaling, resolution, etc. Therefore, in this embodiment, the physical size of the specified image is used as a unique identifier to calculate all relative data, thereby ensuring that the same effect is displayed on different computers and achieving display compatibility.
[0109] Specifically, the new position and new size of the element are recalculated according to the relative position of the element recorded during saving, that is, the starting point coordinate ratio and the width-to-height ratio.
[0110] S42: Display the designated picture according to the actual display size, and display the element added to the designated picture according to the new size at a new relative position corresponding to the element based on the element type.
[0111] Specifically, the specified image is displayed according to the actual display size. Then, according to the element type (line, text, etc.) of the element, the element added to the specified image is loaded and displayed according to the new size at the new relative position corresponding to the element, completing the loading and display operation. The reloaded image can be Figure 6 shown.
[0112] When loading, the coordinates of the specified image need to be converted into the coordinates of the display image control.
[0113] Specifically, the image display is loaded using the image control of the screenshot tool. The complete loading process is that, based on the physical size of the specified image, if the width and height of the current screen can accommodate the current image, the width is given priority, and the height of the displayed image is calculated proportionally to obtain the actual display size of the image. Similarly, the position and size of each element in the image are restored based on the coordinate ratio and size ratio of the starting point of the element relative to the physical size of the image obtained when saving. If the current screen cannot accommodate the physical size of the image, the height is given priority, the display width is calculated to display the image, and then the element loading is calculated according to the same steps.
[0114] In order for those skilled in the art to understand the present invention more clearly, Figure 7-Figure 9 Take this as an example to explain.
[0115] Figure 7 In the example, the added elements include arrows, circles in the graphics, and area occlusion animations (red rectangles). Users can click the play button in the lower right corner to play the animations in the order of occlusions defined by the user. The applicable scenario is that teachers can slowly unfold the content and guide students' thinking direction during the lecture, rather than revealing everything at once. Figure 8 To show the area occlusion animation above, Fig. 9 Shows the full area occlusion animation.
[0116] In this embodiment, the framed area of the current user on the digital textbook is obtained, and based on the display boundary restriction condition of the digital textbook, the framed area is corrected to obtain the corrected framed area, and according to the display boundary restriction condition, the corrected framed area is cyclically enlarged until the enlargement operation is stopped when the preset enlargement stop condition is met, and the target framed area is obtained, and the horizontal offset and vertical offset from the target framed area to the center of the screen of the display interface showing the digital textbook are calculated, and based on the horizontal offset and the vertical offset, the target framed area is moved to the center of the screen, and the element added to the target framed area is displayed, and the element is generated by the current user by calling the preset tool function item, and when a save instruction is received, the target picture corresponding to the target framed area is intercepted, and the relative position of the element in the target picture is determined, and the target picture and the relative position of the element are saved. That is, through the present invention, it is possible to perform an element adding operation on the picture obtained by screenshot, meet the user's further processing requirements for the picture obtained by screenshot, and improve the user experience.
[0117] In addition, the use scenario of the present invention is mainly set in teaching activities. The screenshot tool overcomes the disadvantage that WeChat, QQ, etc. save as a synthesized picture after editing, which is inconvenient for teachers to perform further operations and play. It allows users to add stroke data, graphics, text, area occlusion animation, etc., so that teachers can give full play to their imagination and enrich teaching. The tool uses the original physical size of the picture as a basis and optimizes the algorithm to achieve that when saving and loading elements, it is independent of screen size, resolution, and DPI (Dots Per Inch), thereby achieving a good display effect.
[0118] In addition, when displaying, the picture is dynamically maximized according to the actual display size of the current screen, and the saved sub-elements are dynamically added according to the relative position obtained when the elements are saved. The screenshot tool in the present invention is a lightweight tool, the data is separated from the picture, and it can be edited repeatedly to realize the function of repeatedly editing and saving the picture, which is user-friendly. The screenshot tool is associated with a specific PDF teaching material, and outputs a high-definition picture according to the PDF vector map, which is convenient for teachers to teach.
[0119] Optionally, based on the above-mentioned embodiment of the method for processing a local high-definition screenshot of a digital teaching material, another embodiment of the present invention provides a processing device for processing a local high-definition screenshot of a digital teaching material, referring to Fig.10 , which may include:
[0120] The picture correction module 11 is used to obtain the framed area selected by the current user on the digital textbook, and correct the framed area based on the display boundary restriction condition of the digital textbook to obtain a corrected framed area;
[0121] The image magnification module 12 is used to perform a cyclic magnification operation on the corrected framed area according to the display boundary restriction condition, and stop the magnification operation when a preset magnification stop condition is met, thereby obtaining a target framed area;
[0122] A moving module 13 is used to calculate a horizontal offset and a vertical offset from the target frame selection area to the center of the screen of the display interface showing the digital teaching material, and move the target frame selection area to the center of the screen based on the horizontal offset and the vertical offset;
[0123] An element adding module 14, used for displaying elements added to the target selection area, wherein the elements are generated by the current user by calling a preset tool function item;
[0124] The image processing module 15 is used to intercept the target image corresponding to the target frame selection area, determine the relative position of the element in the target image, and save the target image and the relative position of the element when receiving the save instruction.
[0125] Furthermore, it also includes:
[0126] An instruction receiving module, used for receiving a display instruction for displaying a specified image;
[0127] A data acquisition module, used to acquire the specified image and the elements added to the specified image;
[0128] A size calculation module, used to calculate an actual display size for maximizing the display of the specified picture according to the physical size of the specified picture and the display size of the display interface;
[0129] The picture display module is used to display the specified picture and the elements added in the specified picture according to the actual display size.
[0130] Furthermore, the picture display module is specifically used for:
[0131] Based on the relative position of the element added in the specified picture, the new relative position and the new size corresponding to the element are calculated, the specified picture is displayed according to the actual display size, and according to the element type of the element, the element added in the specified picture is displayed at the new relative position corresponding to the element and according to the new size.
[0132] Furthermore, the picture enlargement module is specifically used for:
[0133] A coordinate conversion operation is performed on the corrected framed selection area, and the corrected framed selection area that is subjected to the coordinate conversion operation is enlarged step by step according to a preset enlargement ratio until the boundary of the corrected framed selection area that is subjected to the enlargement operation reaches the display boundary restriction condition.
[0134] Further, when the image processing module 15 is used to determine the relative position of the element in the target image, it is specifically used to:
[0135] Based on the physical size of the target image, the starting point coordinate ratio and the aspect ratio of the element added in the target image relative to the target image are calculated, and the starting point coordinate ratio and the aspect ratio are used as the relative position of the element added in the target image.
[0136] In this embodiment, the framed area of the current user on the digital textbook is obtained, and based on the display boundary restriction condition of the digital textbook, the framed area is corrected to obtain the corrected framed area, and according to the display boundary restriction condition, the corrected framed area is cyclically enlarged until the enlargement operation is stopped when the preset enlargement stop condition is met, and the target framed area is obtained, and the horizontal offset and vertical offset from the target framed area to the center of the screen of the display interface showing the digital textbook are calculated, and based on the horizontal offset and the vertical offset, the target framed area is moved to the center of the screen, and the element added to the target framed area is displayed, and the element is generated by the current user by calling the preset tool function item, and when a save instruction is received, the target picture corresponding to the target framed area is intercepted, and the relative position of the element in the target picture is determined, and the target picture and the relative position of the element are saved. That is, through the present invention, it is possible to perform an element adding operation on the picture obtained by screenshot, meet the user's further processing requirements for the picture obtained by screenshot, and improve the user experience.
[0137] It should be noted that for the specific working process of each module in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.
[0138] Optionally, based on the above-mentioned embodiments of the method and device for processing local high-definition screenshots based on digital teaching materials, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
[0139] Wherein, the memory is used to store programs;
[0140] The processor calls the program and is used to execute the above-mentioned processing method of local high-definition screenshots based on digital teaching materials.
[0141] In this embodiment, the framed area of the current user on the digital textbook is obtained, and based on the display boundary restriction condition of the digital textbook, the framed area is corrected to obtain the corrected framed area, and according to the display boundary restriction condition, the corrected framed area is cyclically enlarged until the enlargement operation is stopped when the preset enlargement stop condition is met, and the target framed area is obtained, and the horizontal offset and vertical offset from the target framed area to the center of the screen of the display interface showing the digital textbook are calculated, and based on the horizontal offset and the vertical offset, the target framed area is moved to the center of the screen, and the element added to the target framed area is displayed, and the element is generated by the current user by calling the preset tool function item, and when a save instruction is received, the target picture corresponding to the target framed area is intercepted, and the relative position of the element in the target picture is determined, and the target picture and the relative position of the element are saved. That is, through the present invention, it is possible to perform an element adding operation on the picture obtained by screenshot, meet the user's further processing requirements for the picture obtained by screenshot, and improve the user experience.
[0142] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing local high-definition screenshots based on digital teaching materials, characterized in that: include: Acquire a framed area selected by the current user on the digital textbook, and modify the framed area based on a display boundary restriction condition of the digital textbook to obtain a modified framed area; According to the display boundary restriction condition, a cyclic zoom operation is performed on the corrected framed selection area until the zoom operation is stopped when a preset zoom stop condition is met, thereby obtaining a target framed selection area; Calculating a horizontal offset and a vertical offset from the target frame selection area to the center of the screen of the display interface showing the digital teaching material, and moving the target frame selection area to the center of the screen based on the horizontal offset and the vertical offset; Displaying elements added to the target selection area, wherein the elements are generated by the current user by calling a preset tool function item; When a save instruction is received, a target image corresponding to the target selection area is captured, a relative position of the element in the target image is determined, and the relative position of the target image and the element is saved.
2. The processing method according to claim 1, characterized in that: Also includes: Receiving a display instruction for displaying a specified image; Get the specified image and the elements added to the specified image; Calculating, according to the physical size of the designated picture and the display size of the display interface, an actual display size for maximizing the display of the designated picture; The specified image and the elements added in the specified image are displayed according to the actual display size.
3. The processing method according to claim 2, characterized in that: Displaying the specified image and the elements added to the specified image according to the actual display size includes: Based on the relative position of the element added to the specified picture in the specified picture, calculate a new relative position and a new size corresponding to the element; The designated picture is displayed according to the actual display size, and the element added in the designated picture is displayed according to the new size at a new relative position corresponding to the element according to the element type.
4. The processing method according to claim 1, characterized in that: According to the display boundary restriction condition, the modified frame selection area is cyclically enlarged until the enlargement operation is stopped when a preset enlargement stop condition is met, and a target frame selection area is obtained, including: Performing a coordinate transformation operation on the corrected framed area; The corrected framed selection area for the coordinate transformation operation is enlarged step by step according to a preset enlargement ratio until the boundary of the corrected framed selection area for the enlargement operation reaches the display boundary restriction condition.
5. The processing method according to claim 1, characterized in that: Determining the relative position of the element in the target image includes: Based on the physical size of the target image, calculate the coordinate ratio and the aspect ratio of the element added to the target image relative to the starting point of the target image; The starting point coordinate ratio and the width-to-height ratio are used as the relative position of the element added to the target image in the target image.
6. A processing device for local high-definition screenshots based on digital teaching materials, characterized in that: include: The image correction module is used to obtain the framed area selected by the current user on the digital textbook, and correct the framed area based on the display boundary restriction condition of the digital textbook to obtain a corrected framed area; The image magnification module is used to perform a cyclic magnification operation on the corrected framed area according to the display boundary restriction condition, and stop the magnification operation when a preset magnification stop condition is met, thereby obtaining a target framed area; A moving module, used to calculate a horizontal offset and a vertical offset from the target frame selection area to the center of the screen of the display interface showing the digital teaching material, and move the target frame selection area to the center of the screen based on the horizontal offset and the vertical offset; An element adding module, used for displaying elements added to the target selection area, wherein the elements are generated by the current user by calling a preset tool function item; The image processing module is used to intercept the target image corresponding to the target selection area, determine the relative position of the element in the target image, and save the relative position of the target image and the element when receiving a save instruction.
7. The processing device according to claim 6, characterized in that Also includes: An instruction receiving module, used for receiving a display instruction for displaying a specified image; A data acquisition module, used to acquire the specified image and the elements added to the specified image; A size calculation module, used to calculate an actual display size for maximizing the display of the specified picture according to the physical size of the specified picture and the display size of the display interface; The picture display module is used to display the specified picture and the elements added in the specified picture according to the actual display size.
8. The processing device according to claim 7, characterized in that The picture display module is specifically used for: Based on the relative position of the element added in the specified picture, the new relative position and the new size corresponding to the element are calculated, the specified picture is displayed according to the actual display size, and according to the element type of the element, the element added in the specified picture is displayed at the new relative position corresponding to the element and according to the new size.
9. The processing device according to claim 6, characterized in that The picture enlargement module is specifically used for: A coordinate conversion operation is performed on the corrected framed selection area, and the corrected framed selection area that is subjected to the coordinate conversion operation is enlarged step by step according to a preset enlargement ratio until the boundary of the corrected framed selection area that is subjected to the enlargement operation reaches the display boundary restriction condition.
10. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor calls the program and is used to execute the processing method of local high-definition screenshots based on digital teaching materials as described in any one of claims 1-5.
Citation Information
Patent Citations
Screen display method and terminal device
CN105446673A
Method and device for rapidly browsing web page through television browser
CN106954091A