A screenshot method, device and electronic equipment

By receiving screenshot commands and generating screenshots within the set-top box, the lack of screenshot functionality in set-top boxes is resolved, enabling convenient screenshot and translation functions and improving the user experience.

CN116363142BActive Publication Date: 2026-03-27ZHUHAI MAIYUE INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

The set-top box lacks a screenshot function, requiring the installation of third-party software to take screenshots, resulting in poor usability.

Method used

The set-top box receives screenshot commands, locates initial and calibration coordinates, generates and saves the target screenshot, supports full-screen screenshots and character translation, and avoids the need to install third-party software.

Benefits of technology

It improves the ease of use of the set-top box, allowing users to directly take screenshots and translate, simplifying the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116363142B_ABST
    Figure CN116363142B_ABST
Patent Text Reader

Abstract

The application discloses a screenshot method and device and an electronic device. The method is applied to a set top box. After the set top box receives a screenshot instruction for a current display picture, an initial coordinate point is located according to the screenshot instruction, and at least one calibration coordinate point in the current display picture is acquired in real time. After the screenshot instruction is executed, a target screenshot picture is generated according to the initial coordinate point and the at least one calibration coordinate point. Through the method, the set top box can directly perform the screenshot, thereby avoiding installation of third-party software to complete the screenshot, and thereby improving the use convenience of the set top box.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the electronic technical field, in particular to a screenshot method, device and electronic equipment. BACKGROUND

[0002] With the development of digital television, set-top boxes have also been rapidly developed, and more and more new technologies, new services and new functions are developed and utilized on the set-top boxes, bringing new ways of watching TV programs to the audience. The PVR (Personal video recorder) recording function emerges as the times require, which facilitates users to record or pre-record various TV programs of their own interest. For example, when a user watches a TV program and finds that the TV program is worth saving for later viewing, the user can record the TV program while watching the TV program; or the user can look up the EPG (Electronic Program Guide) to find a TV program that the user wants to record, and when the TV program reaches the playing time, the TV automatically starts the PVR recording unit in the TV to record the TV program. In addition to the PVR recording and saving function, when a user wants to record a wonderful picture, the user can also apply the derivative technology of PVR to record and save the picture.

[0003] At present, set-top boxes do not have a screenshot function, and if the function is to be realized, third-party software needs to be installed to complete the function, which causes poor convenience of the set-top box. SUMMARY

[0004] The present application provides a screenshot method, device and electronic equipment to avoid the problem that the set-top box performs screenshot by installing third-party software.

[0005] In a first aspect, the present application provides a screenshot method, which comprises:

[0006] receiving a screenshot instruction for a current display picture;

[0007] locating an initial coordinate point according to the screenshot instruction, and acquiring at least one calibration coordinate point in the current display picture in real time;

[0008] detecting whether an execution screenshot instruction is received;

[0009] if yes, generating a target screenshot picture according to the initial coordinate point and the at least one calibration coordinate point, and saving the target screenshot picture to a specified location;

[0010] if no, continuing to monitor the calibration coordinate point in the current display picture.

[0011] Through the method, the set-top box can directly take screenshots, thereby avoiding installing third-party software to complete the screenshots, and improving the use convenience of the set-top box.

[0012] In an optional embodiment, before receiving the screenshot instruction for the current display screen, the method further comprises:

[0013] receiving a coordinate display instruction;

[0014] According to the coordinate display instruction, monitoring a positioning point in the current display interface, and displaying the coordinates of the positioning point.

[0015] In an optional embodiment, locating the initial coordinate point according to the screenshot instruction comprises:

[0016] determining whether the screenshot instruction is a full-screen screenshot instruction;

[0017] If yes, performing full-screen screenshot on the current display screen according to the full-screen screenshot instruction to obtain a full-screen screenshot picture;

[0018] If no, locating the initial coordinate point according to the screenshot instruction.

[0019] In an optional embodiment, after generating the target screenshot picture and saving the target screenshot picture to the specified location, the method further comprises:

[0020] monitoring whether a screenshot translation instruction is received;

[0021] If yes, identifying the to-be-translated character in the target screenshot picture, and translating the to-be-translated character into a target character;

[0022] If no, maintaining the target screenshot picture.

[0023] In an optional embodiment, identifying the to-be-translated character in the target screenshot picture, and translating the to-be-translated character into a target character comprises:

[0024] determining a language identifier in the screenshot translation instruction;

[0025] identifying the to-be-translated character in the target screenshot picture through an OCR algorithm;

[0026] translating the to-be-translated character into a target character corresponding to the language identifier according to the language identifier.

[0027] In a second aspect, the application provides a screenshot device, which comprises:

[0028] receive a screenshot instruction for a current display screen;

[0029] determine an initial coordinate point according to the screenshot instruction, and acquire at least one calibration coordinate point in the current display screen in real time;

[0030] detect whether the screenshot instruction is received;

[0031] if yes, generate a target screenshot according to the initial coordinate point and the at least one calibration coordinate point, and save the target screenshot to a specified location;

[0032] if no, continue to monitor the calibration coordinate point in the current display screen.

[0033] In an optional embodiment, the processing module is further configured to receive a coordinate display instruction;

[0034] monitor a positioning point in the current display interface according to the coordinate display instruction, and display a coordinate of the positioning point.

[0035] In an optional embodiment, the processing module is specifically configured to determine whether the screenshot instruction is a full-screen screenshot instruction;

[0036] if yes, perform full-screen screenshot on the current display screen according to the full-screen screenshot instruction to obtain a full-screen screenshot;

[0037] if no, determine an initial coordinate point according to the screenshot instruction.

[0038] In a third aspect, the present application provides an electronic device, comprising:

[0039] a memory configured to store a computer program;

[0040] a processor configured to execute the computer program stored in the memory, so as to realize the method steps of the screenshot method.

[0041] In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the method steps of the screenshot method.

[0042] The technical effects of each aspect and each possible solution of the second aspect to the fourth aspect can be referred to the technical effect description of the first aspect or the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0043] Figure 1 a flowchart of a screenshot method provided by the present application;

[0044] Figure 2 A structural schematic diagram of a screenshot device provided in the present application is shown in the figure;

[0045] Figure 3 A structural schematic diagram of an electronic device provided in the present application is shown in the figure. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below with reference to the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". The association relationship of the associated objects is described, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. A and B are connected, which means that A and B are directly connected and A and B are connected through C. In addition, in the description of the present application, "first", "second", etc. are used only for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can it be understood as indicating or implying order.

[0047] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0048] The embodiments of the present application provide a screenshot method, which is applied to a set top box. After the set top box receives a screenshot instruction for a current display picture, an initial coordinate point is located according to the screenshot instruction, and at least one calibration coordinate point in the current display picture is acquired in real time. After the screenshot instruction is executed, a target screenshot picture is generated according to the initial coordinate point and the at least one calibration coordinate point. Through the method, the set top box can directly perform screenshot, thereby avoiding the installation of third-party software to complete the screenshot, and thereby improving the use convenience of the set top box.

[0049] Referring to Figure 1 A screenshot method provided in the embodiments of the present application is shown in the figure, and the method comprises:

[0050] S1, receiving a screenshot instruction for a current display picture;

[0051] Firstly, in the embodiments of the present application, before the screenshot function is implemented, the points in the display picture also need to be positioned in coordinates, that is, the set top box will detect in real time whether a coordinate display instruction is received. If the coordinate display instruction is received, the positioning point in the current display picture is monitored according to the coordinate display instruction, and the coordinates of the positioning point are displayed.

[0052] For example, when the set-top box is normally powered, connected to the network and playing a program, the user enters "pause mode" by pressing the Pause_Key button on the remote control. In "pause mode", there is a visual operation guide menu "Pause_Guide_Menu" to guide the user's selection of functions.

[0053] For example, pressing the number key "KEY_1" performs the function of marking the current still frame picture with coordinate display. There is an "mouse arrow" icon to facilitate the user's observation of the positioning point, and the initial coordinates of the arrow are (width=50, height=50). The user moves the arrow by pressing the "up", "down", "left" and "right" direction keys on the remote control, and presses the "KEY_OK" key to confirm the coordinate position of the Flag. A maximum of 4 Flags can be defined by the user, and the record is in the form of a queue. If the number of Flags exceeds 4, the original 1 Flag will be overwritten.

[0054] Further, the initial coordinates of the arrow are (width=50, height=50), and the up, down, left and right direction keys on the remote control correspond to the pixel movement operations of height-1; height+1, width-1, width+1, respectively. The red key on the remote control fills the color of all height values in the current Flag1(50, 50) coordinates with width=50, thereby drawing a "highlight vertical line" from top to bottom with a width of 50. Similarly, the green key on the remote control fills the color of all width values in the current coordinates with height=50, thereby drawing a "highlight horizontal line" from left to right with a height of 50. In this way, the visual effect of a ruler is achieved, and the user can more intuitively feel the cross point of the current coordinates. Through this way, the set-top box can position and mark the coordinate point in the current display picture according to the user's instruction.

[0055] After implementing the above-mentioned coordinate point marking, the set-top box will monitor in real time whether there is a screenshot instruction for the current display picture. If the screenshot instruction exists, step S2 is executed.

[0056] S2, according to the screenshot instruction, positioning the initial coordinate point, and real-time acquisition of at least one calibration coordinate point in the current display picture;

[0057] After receiving the screenshot instruction, the set-top box will first determine the position of the initial coordinate point, and then position the coordinate point selected by the user in the current display picture.

[0058] For example, the user selects the calibration coordinate point by using the up, down, left and right direction keys and the confirmation key on the remote control of the set-top box. The user can select one or more calibration coordinate points in the current display picture.

[0059] S3, detecting whether a screenshot instruction is received;

[0060] After the user selects the calibration coordinate point through the remote controller, the set-top box will detect in real time whether a screenshot instruction is received. If the screenshot instruction is detected, step S4 is executed. If the screenshot instruction is not detected, step S5 is executed.

[0061] S4, generating a target screenshot picture according to the initial coordinate point and the at least one calibration coordinate point, and saving the target screenshot picture to a specified position;

[0062] S5, continuing to monitor the calibration coordinate point in the current display picture.

[0063] Specifically, in the embodiment of the present application, the number of calibration coordinate points determined by the user through the set-top box remote controller is different, and the screenshot manner is different. The specific implementation is as follows:

[0064] If the user determines one calibration coordinate point through the set-top box remote controller, two-point screenshot is executed. For example, the initial coordinate point Flag1 (50, 50) and the calibration coordinate point Flag2 (100, 100) are determined. The program will automatically call the diagonal screenshot function Diagonal_Shot_Callback (Flag1, Flag2), and pass the two coordinate parameters Flag1 and Flag2 into the function. The absolute value of the screenshot width shot.width is calculated by skin. Flag2. width-skin. Flag1. width; the absolute value of the screenshot height shot.height is calculated by skin. Flag2. height-skin. Flag1. height; thereby a rectangular area with the absolute value of the width shot.width as the width and the absolute value of the height shot.height as the height is generated; and the data is saved to the TempBuff temporary buffer.

[0065] If the user determines two calibration coordinate points through the set-top box remote controller, then a 3-point screenshot is performed, for example, initial coordinate point Flag 1 (50, 50), calibration coordinate point Flag 2 (100, 100), and calibration coordinate point Flag 3 (80, 30), and the program automatically calls Triangle_Shot_Callback (Flag 1, Flag 2, Flag 3), and passes the three coordinate parameters Flag 1, Flag 2, and Flag 3 into the program. The program compares Flag 1, 2, and 3 to obtain the MAX width and MIN width and the MAX height and MIN height, thereby cutting a rectangular region, and filling the remaining regions other than the selected region with 0x00 as transparent through an algorithm program, superimposing, thereby obtaining the selected screenshot data, and saving the data to the TempBuff temporary buffer.

[0066] If the user determines three calibration coordinate points through the set-top box remote controller, then a rectangular screenshot is performed, for example, initial coordinate point Flag 1 (50, 50), calibration coordinate point Flag 2 (100, 100), calibration coordinate point Flag 3 (80, 30), and calibration coordinate point Flag 4 (60, 120), and the program automatically calls Rectangular_Shot_Callback (Flag 1, Flag 2, Flag 3, Flag 4), and passes the four coordinate parameters Flag 1, Flag 2, Flag 3, and Flag 4 into the program. The principle is the same as the "3-point screenshot method", and will not be described again here.

[0067] Further, in the embodiment of the present application, after the set-top box receives the screenshot instruction, the set-top box will determine whether the screenshot instruction is a full-screen screenshot instruction, if the screenshot instruction is not a full-screen screenshot instruction, then the method in the above embodiment is performed for the screenshot; if the screenshot instruction is a full-screen screenshot instruction, then a full-screen screenshot is performed on the current display screen to obtain a full-screen screenshot.

[0068] For example, "All full-screen screenshot", which directly converts the key frame extracted after PVR recording and pausing into a key frame picture. The data is saved to the TempBuff temporary buffer.

[0069] It should be noted that the screenshot data in the TempBuff temporary buffer can be parsed from the key frame data to obtain the key frame picture corresponding to the key frame data in the ffmpeg by calling a related function, for example, calling ffmpeg-i "xxx.mp4" -r 1 -q:v 2 -f image2 image-3%d.jpeg, wherein the -i option is used to obtain an input video file, the -r option is used to set the number of pictures extracted per second, and the value 1 indicates that one frame is extracted per second, and the -q:v option is used to set the quality of the extracted picture, and the value 2 indicates that a high-quality picture is obtained from the video. It should be noted that when the key frame picture is obtained, the key frame data obtained each time can be parsed separately, or the key frame data obtained during the entire recording process can be saved and then the pictures of the key frame data are obtained.

[0070] At this point, the step of framing the screenshot content and generating a screenshot picture is completed. The picture can be saved to a U disk or other external storage device for direct use. Thus, the purpose of customizing the screenshot and saving the wonderful moment of the viewing image is achieved.

[0071] In an optional embodiment, in addition to the screenshot function, the set-top box in the embodiment of the present application can also realize a translation function. Therefore, the set-top box can monitor whether a screenshot translation instruction is received in real time. If the screenshot translation instruction is received, the set-top box can identify the to-be-translated character in the target screenshot picture and translate the to-be-translated character into a target character. If the screenshot translation instruction is not received, the set-top box can maintain the target screenshot picture.

[0072] It should be noted that after the screenshot translation instruction is received, the language identifier in the screenshot translation instruction is determined, the to-be-translated character in the target screenshot picture is identified by using an OCR algorithm, and the to-be-translated character is translated into a target character corresponding to the language identifier according to the language identifier.

[0073] For example, when the user takes a screenshot of a foreign language picture that is difficult to understand and needs to be recognized or translated and saved, the above steps are performed, the screenshot data is directly extracted, the post method of the HTTP protocol is used, an online OCR translation server is accessed, the server can be but is not limited to a third-party online OCR server such as "brushs8.com", or an internal private cloud OCR server. In this case, we refer to the internal private cloud OCR server and the database.

[0074] The user performs the online foreign language translation function by pressing "KEY_3" under the guide menu "Pause_Guide_Menu" after taking a screenshot;

[0075] Specifically: direct extraction of screenshot data, encryption and packaging of data, and addition of a language flag during packaging, for example: language = 1 for translation into English; language = 2 for translation into French; language = 3 for translation into Arabic, etc. The post method of the HTTP protocol is used to access and send to the "online recognition translation server". When the server receives the data packet, it performs integrity judgment, for example, using the CRC check method to check the data integrity, and then decryption, obtaining the plaintext data, performing OCR image recognition, extracting the text information, and accessing the language database, and translating into the language content required by the user according to the language mark value. The information is returned to the set-top box through the Json format. The set-top box software parses the data and switches the corresponding language coding format, such as ASCII code, ISO-8859-1, GB2312, UTF-16, UTF-8, etc. The translated content is displayed to the user in the form of Dialog through the Draw_Txt function, so that the user can clearly read the translated content.

[0076] At the same time, the user can also translate the screenshot data, for example, the screenshot content is URL, select language = 1 English, and the server returns the data to the U disk as a text file, which is convenient for import and use, and can also be stored in the TempBuff and the clipboard to directly input the URL text. Thus, the tedious text input is avoided, and convenience is provided for the user.

[0077] Based on the same inventive concept, the embodiment of the present application also provides a screenshot device, as shown in the Figure 2 The screenshot device comprises:

[0078] The receiving module 201 is configured to receive a screenshot instruction for a current display picture;

[0079] The processing module 202 is configured to locate an initial coordinate point according to the screenshot instruction, and acquire at least one calibration coordinate point in the current display picture in real time;

[0080] It is detected whether the screenshot instruction is received;

[0081] If yes, a target screenshot picture is generated according to the initial coordinate point and the at least one calibration coordinate point, and the target screenshot picture is saved to a specified position;

[0082] If no, the calibration coordinate point in the current display picture is continuously monitored.

[0083] In an optional embodiment, the processing module 202 is further configured to receive a coordinate display instruction;

[0084] According to the coordinate display instruction, a positioning point in the current display interface is monitored, and a coordinate of the positioning point is displayed.

[0085] In an optional embodiment, the processing module 202 is specifically configured to determine whether the screenshot instruction is a full-screen screenshot instruction.

[0086] If yes, a full-screen screenshot is performed on the current display picture according to the full-screen screenshot instruction, and a full-screen screenshot picture is obtained.

[0087] If no, an initial coordinate point is located according to the screenshot instruction.

[0088] Based on the same inventive concept, the embodiments of the present application further provide an electronic device, which can realize the functions of the foregoing screenshot device, and refer to Figure 3 The electronic device comprises:

[0089] at least one processor 301 and a memory 302 connected with the at least one processor 301, and the specific connection medium between the processor 301 and the memory 302 is not limited in the embodiments of the present application, Figure 3 In the embodiments of the present application, the connection between the processor 301 and the memory 302 is taken as an example of connection through a bus 300. The bus 300 is represented by a thick line in Figure 3 the embodiments of the present application, and the connection modes between other components are only schematically illustrated and are not limited. The bus 300 can be divided into an address bus, a data bus, a control bus, etc., and for the convenience of representation, Figure 3 in the embodiments of the present application, only one thick line is used, but it does not mean that there is only one bus or only one type of bus. Alternatively, the processor 301 can also be called a controller, and the name is not limited.

[0090] In the embodiments of the present application, the memory 302 stores instructions executable by the at least one processor 301, and the at least one processor 301 can execute the foregoing screenshot method by executing the instructions stored in the memory 302. The processor 301 can realize the functions of various modules in the device shown in Figure 3

[0091] The processor 301 is the control center of the device, can utilize various interfaces and lines to connect various parts of the whole control device, and through running or executing the instructions stored in the memory 302 and calling the data stored in the memory 302, the device can realize various functions and process data, thereby overall monitoring the device.

[0092] ​In a possible design, the processor 301 can include one or more processing units, and the processor 301 can integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the modem processor can also not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 can be implemented on the same chip, and in some embodiments, they can also be respectively implemented on independent chips.

[0093] The processor 301 can be a general-purpose processor, for example, a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the screenshot method disclosed in the embodiments of the present application can be directly embodied as execution completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0094] The memory 302 is a non-volatile computer readable storage medium, and can be used to store non-volatile software programs, non-volatile computer executable programs, and modules. The memory 302 can include at least one type of storage medium, for example, can include a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (RAM), a static random access memory (SRAM), a programmable read-only memory (PROM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic storage, a magnetic disk, an optical disk, and the like. The memory 302 is any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and capable of being accessed by a computer, but is not limited thereto. The memory 302 in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, used for storing program instructions and / or data.

[0095] By designing and programming the processor 301, the code corresponding to the screenshot method introduced in the foregoing embodiments can be fixed into the chip, so that the chip can execute the code when running Figure 1A step of a screenshot method of the embodiment shown. How to program the processor 301 is known to those skilled in the art, and will not be described here.

[0096] Based on the same inventive concept, the embodiment of the present application further provides a storage medium, which stores computer instructions, and when the computer instructions run on a computer, the computer instructions make the computer execute the screenshot method discussed above.

[0097] In some possible implementation manners, various aspects of the screenshot method provided by the present application can also be implemented in the form of a program product, which includes program codes for making the control device execute the steps of the screenshot method according to various exemplary embodiments of the present application described above in the specification when the program product runs on the device.

[0098] Those skilled in the art should understand that the embodiments of the present application can be provided in the form of a method, a system, or a computer program product. Therefore, the present application can be in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0099] The present application is described with reference to the flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce the functions described in the flowcharts and / or block diagrams for implementing the flowcharts and / or block diagrams. Figure 1 The functions specified in a flow or multiple flows and / or blocks Figure 1 The apparatus that performs the functions specified in a flow or multiple flows and / or blocks.

[0100] These computer program instructions can also be stored in a computer-readable memory capable of guiding the computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including instruction apparatus, which implements the flowcharts and / or block diagrams. Figure 1 The functions specified in a flow or multiple flows and / or blocks Figure 1 The apparatus that performs the functions specified in a flow or multiple flows and / or blocks.

[0101] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable data processing devices to generate computer-implemented processes, thus the instructions executed on the computer or other programmable data processing devices provide processes for implementing the functions specified in the flowchart Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or steps of the functions specified in the flowchart

[0102] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A method for taking a screenshot, characterized in that, The method is applied to a set-top box, and the method comprises: receiving a screenshot instruction for a current display picture; locating an initial coordinate point according to the screenshot instruction, and acquiring at least one calibration coordinate point in the current display picture in real time; detecting whether an execution screenshot instruction is received; if yes, generating a target screenshot picture according to the initial coordinate point and the at least one calibration coordinate point, and saving the target screenshot picture to a specified location; if no, continuously monitoring the calibration coordinate point in the current display picture; wherein, before receiving the screenshot instruction for the current display picture, the method further comprises: receiving a coordinate display instruction; monitoring a locating point in the current display picture according to the coordinate display instruction, and displaying the coordinate of the locating point; wherein, the coordinate display instruction is triggered by pressing a preset button on a remote controller, and the step of monitoring the locating point in the current display picture according to the coordinate display instruction and displaying the coordinate of the locating point comprises: when a red button on the remote controller is pressed, all height values of the locating point horizontal coordinate are color-filled to draw a "highlight vertical line" from top to bottom with a width of 50; when a green button on the remote controller is pressed, all width values of the locating point vertical coordinate are color-filled to draw a "highlight horizontal line" from left to right with a height of 50; after generating the target screenshot picture and saving the target screenshot picture to the specified location, the method further comprises: monitoring whether a screenshot translation instruction is received; if yes, identifying a character to be translated in the target screenshot picture, and translating the character to be translated into a target character; if no, maintaining the target screenshot picture; identifying the character to be translated in the target screenshot picture, and translating the character to be translated into the target character, comprises: determining a language identifier in the screenshot translation instruction; identifying the character to be translated in the target screenshot picture through an image-text recognition algorithm; translating the character to be translated into a target character corresponding to the language identifier according to the language identifier; returning information to the set-top box in a Json format; the set-top box parses the Json data and switches to a corresponding language coding format; the set-top box saves the data switched to the language coding format to a U disk as a text file or to a TempBuff.

2. The method of claim 1, wherein, locating the initial coordinate point according to the screenshot instruction comprises: judging whether the screenshot instruction is a full-screen screenshot instruction; if yes, performing full-screen screenshot on the current display picture according to the full-screen screenshot instruction to obtain a full-screen screenshot picture; if no, locating the initial coordinate point according to the screenshot instruction.

3. A screen capturing apparatus, characterized by comprising: The device comprises: a receiving module configured to receive a screenshot instruction for a current display picture; a processing module configured to locate an initial coordinate point according to the screenshot instruction, and acquire at least one calibration coordinate point in the current display picture in real time; detecting whether an execution screenshot instruction is received; If yes, a target screenshot picture is generated according to the initial coordinate point and the at least one calibration coordinate point, and the target screenshot picture is saved to a specified location; If no, the calibration coordinate point in the current display picture is continuously monitored; The processing module is further configured to receive a coordinate display instruction; According to the coordinate display instruction, the positioning point in the current display picture is monitored, and the coordinate of the positioning point is displayed; The coordinate display instruction is triggered by pressing a preset key on a remote controller. According to the coordinate display instruction, the positioning point in the current display picture is monitored, and the coordinate of the positioning point is displayed, which includes: when a red key on the remote controller is pressed, all height values of the positioning point horizontal coordinate are color-filled to draw a "highlight vertical line" from top to bottom with a width of 50; when a green key on the remote controller is pressed, all width values of the positioning point vertical coordinate are color-filled to draw a "highlight horizontal line" from left to right with a height of 50. The processing module is further configured to monitor whether a screenshot translation instruction is received. If yes, the to-be-translated character in the target screenshot picture is identified, and the to-be-translated character is translated into a target character. If no, the target screenshot picture is maintained. Identifying the to-be-translated character in the target screenshot picture and translating the to-be-translated character into a target character includes: determining a language identifier in the screenshot translation instruction; identifying the to-be-translated character in the target screenshot picture through an OCR algorithm; According to the language identifier, the to-be-translated character is translated into a target character corresponding to the language identifier; Information is returned to the set-top box in a Json format. The set-top box parses the Json data and switches to a corresponding language encoding format. The set-top box saves the data switched to the language encoding format to a U disk as a text file or to a TempBuff.

4. The apparatus of claim 3, wherein, The processing module is specifically configured to determine whether the screenshot instruction is a full-screen screenshot instruction. If yes, a full-screen screenshot is taken of the current display picture according to the full-screen screenshot instruction to obtain a full-screen screenshot picture. If no, an initial coordinate point is located according to the screenshot instruction.

5. An electronic device, comprising: The method comprises the following steps: a memory for storing a computer program; a processor for executing the computer program stored in the memory to implement the method steps of any one of claims 1-2.

6. A computer readable storage medium characterized by, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the method steps of any one of claims 1-2.

Citation Information

Patent Citations

  • Screenshot method and device

    CN106648281A