Screen copying method and device of electronic device, electronic device, and storage medium
By acquiring, processing, and controlling screen scrolling, the problem of black areas outside the screen affecting visual appeal and wasting consumables has been solved, achieving a clear and economical presentation of screen images.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHUHAI PANTUM ELECTRONICS CO LTD
- Filing Date
- 2024-11-27
- Publication Date
- 2026-07-03
Smart Images

Figure CN119766936B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and more specifically to a screen copying method, apparatus, electronic device, and storage medium for an electronic device. Background Technology
[0002] An image forming apparatus is a device that forms an image on an image forming medium by means of imaging principles, such as a printer, copier, fax machine, multifunction image making and copying apparatus, electrostatic printing apparatus, and any other similar apparatus.
[0003] In related technologies, when an image forming apparatus scans an object, it emits light through a scanning lamp. The light is reflected on the object to be copied. The image forming apparatus collects the reflected light and generates an image based on the reflected light, and then presents the image on an image forming medium.
[0004] However, when the object to be copied is a thick electronic device with a screen (e.g., a mobile phone screen), it can only be scanned with the cover open. As a result, there will be a large area of black outside the screen of the electronic device in the scanned image, which will affect the user's viewing experience. In addition, copying a large area of black will waste more consumables and increase costs.
[0005] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0006] In view of this, this application provides a screen copying method, apparatus, electronic device, and storage medium for electronic devices, in order to solve the problem that in the prior art, there are large areas of black outside the screen of the electronic device in the scanned image, which affects the user's viewing experience, and copying large areas of black wastes a lot of consumables and increases costs.
[0007] In a first aspect, embodiments of this application provide a screen copying method for an electronic device, applied to an image forming apparatus, wherein the electronic device includes a screen, and the method includes:
[0008] Acquire the scanned image corresponding to the screen side of the electronic device;
[0009] The scanned image is processed to obtain a target scanned image, which is the processed image corresponding to the screen portion of the electronic device;
[0010] An image forming operation is performed on the target scan image, so that the target scan image is presented on the image forming medium.
[0011] In this embodiment, a scanned image corresponding to the screen of the electronic device is first acquired. Then, image processing is performed on the scanned image to obtain a target scanned image. Finally, by performing an image forming operation on the target scanned image, an image of the electronic device's screen on an image forming medium can be obtained. It is understood that because the target scanned image in this application is a processed image corresponding to the screen portion of the electronic device, only the image area corresponding to the screen has color when the target scanned image is presented on the image forming medium; other parts are colorless, saving consumables and thus reducing costs.
[0012] In one possible implementation, acquiring the scanned image corresponding to the screen side of the electronic device includes:
[0013] Acquire a scanned image of the area between the top and bottom edges of the page in the screen scrolling direction of the electronic device.
[0014] In this embodiment, a scanned image of the complete page displayed on the electronic device screen is acquired in one go. It is understood that even when the page length is greater than the screen length, a scanned image of the complete page can still be acquired in one go, thereby saving consumables and paper, and improving the user experience.
[0015] In one possible implementation, acquiring a scanned image between the top and bottom edges of the page in the screen scrolling direction of the electronic device includes:
[0016] The scanning device is controlled to scan from the top of the screen in the scrolling direction of the electronic device to the bottom of the screen in the scrolling direction.
[0017] Control the scanning device to stop moving;
[0018] Send a screen scrolling command to the electronic device, the screen scrolling command being used to control the electronic device to scroll the screen according to a preset screen scrolling setting;
[0019] Receive the scroll end command sent by the electronic device, end the scan, and obtain the scanned image;
[0020] The image forming apparatus is communicatively connected to an electronic device.
[0021] In this embodiment, through information interaction between the image forming apparatus and the electronic device, the image forming apparatus can control the electronic device to scroll the screen, thereby stitching the complete page into a complete scanned image, and then presenting the complete scanned image on an image forming medium. This saves consumables and paper, and improves the user experience.
[0022] In one possible implementation, the image processing of the scanned image to obtain the target scanned image includes:
[0023] Cropping the image corresponding to the screen portion of the electronic device from the scanned image yields the image corresponding to the screen portion of the electronic device.
[0024] Adjust the angle and size of the image corresponding to the screen portion of the electronic device to obtain the target scan image.
[0025] In this embodiment, because the scanning device cannot scan only the screen portion of the electronic device, and scanning portions outside the screen can easily affect the presentation of the scanned image on the image forming medium, the image forming apparatus crops the obtained image after scanning to obtain the image corresponding to the screen portion, and adjusts the angle and size of the image corresponding to the screen portion. It is understood that cropping avoids obtaining invalid information, and adjusting the angle and size of the image ensures that the image corresponding to the screen portion is presented correctly and clearly on the image forming medium.
[0026] In one possible implementation, acquiring the scanned image corresponding to the screen side of the electronic device includes:
[0027] Based on the image forming mode selected by the user, a prompt message is output. The prompt message is used to prompt the user to adjust the configuration of the electronic device so that the screen-on duration of the electronic device in the scanning area of the image forming device is greater than or equal to a preset time threshold.
[0028] In response to the image forming instruction input by the user, a scanned image corresponding to the screen side of the electronic device is acquired.
[0029] In this embodiment, the user is prompted to adjust the configuration of the electronic device so that the screen-on time of the electronic device in the scanning area of the image forming apparatus is greater than or equal to a preset time threshold. Scanning only begins after receiving the image forming command input by the user. It is understood that prompting the user to adjust the configuration of the electronic device can prevent the screen from turning off prematurely, resulting in a black screen during scanning. In other words, the method provided in this application enables the image forming apparatus to obtain an image corresponding to the entire page.
[0030] In one possible implementation, acquiring the scanned image corresponding to the screen side of the electronic device includes:
[0031] The light-emitting device in the scanning device is turned off, and the screen side of the electronic device is scanned to obtain the scanned image corresponding to the screen side of the electronic device.
[0032] In this embodiment, because the screen of the electronic device itself has light-emitting characteristics, the light-emitting device in the scanning device can be turned off when acquiring the scanned image corresponding to the screen side of the electronic device. It is understood that after turning off the light-emitting device, the frame, casing, and surrounding non-light-emitting objects of the electronic device will not be scanned by the scanning device, thus making it easier to scan and obtain the screen display content and providing convenience for subsequent image processing, thereby improving work efficiency.
[0033] Secondly, embodiments of this application provide a screen copying method for an electronic device, applied to an electronic device communicatively connected to an image forming apparatus, the electronic device including a screen, and the method comprising:
[0034] Receive a screen scrolling command sent by the image forming apparatus, the screen scrolling command including preset screen scrolling settings;
[0035] Scroll the screen according to the preset screen scrolling settings;
[0036] When the screen scrolling ends, a scrolling end command is sent to the image forming apparatus, which is used to control the image forming apparatus to end the scanning.
[0037] In this embodiment, after receiving a screen scrolling command from the image forming apparatus, the electronic device begins to scroll the screen according to a preset screen scrolling setting. When the screen scrolling ends, it sends a scrolling end command to the image forming apparatus so as to control the image forming apparatus to end the scanning.
[0038] Thirdly, embodiments of this application provide an image forming apparatus, including:
[0039] processor;
[0040] Memory;
[0041] And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the control device to perform the method described in any one of the first aspects.
[0042] Fourthly, embodiments of this application provide an electronic device, including:
[0043] processor;
[0044] Memory;
[0045] And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the control device to perform the method described in the second aspect.
[0046] Fifthly, embodiments of this application provide a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the method described in either the first or second aspect.
[0047] It is understood that the image forming apparatus provided in the third aspect, the electronic device provided in the fourth aspect, and the computer-readable storage medium provided in the fifth aspect are all used to perform the method provided in this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description
[0048] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0050] Figure 2 A schematic flowchart illustrating a screen copying method for an electronic device provided in this application embodiment;
[0051] Figure 3 A schematic diagram of an image forming medium comprising multiple screen images provided in an embodiment of this application;
[0052] Figure 4 A schematic diagram illustrating a screen scrolling direction provided in an embodiment of this application;
[0053] Figure 5 A schematic diagram illustrating another screen scrolling direction provided in an embodiment of this application;
[0054] Figure 6 A schematic diagram illustrating a process for acquiring a scanned image, provided as an embodiment of this application;
[0055] Figure 7 This is a schematic diagram of the structure of an image forming apparatus provided in an embodiment of this application;
[0056] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0057] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0058] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0059] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0060] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0061] In real life, when users conduct business at banks and other institutions, they may need to present certain documents (such as proof of the duration of their mobile phone SIM card's use), and these institutions need to keep copies of these documents. All of the documents mentioned above can be presented by the user via mobile phone, but paper copies are required for the relevant institutions to keep on file.
[0062] Because these institutions handle a large number of in-person transactions, it's crucial to minimize the processing time for each customer, which necessitates improving efficiency. However, requiring each customer or patient to add staff contact information and send screenshots on-site, or download an application, connect to the local network, and print screenshots, would be overly cumbersome, inefficient, and negatively impact user experience, potentially leading to dissatisfaction.
[0063] A better solution to this problem is to have the user present the materials while simultaneously photocopying them on the image forming device to obtain a paper copy for the institution to keep on file.
[0064] To facilitate understanding, specific application scenarios will be illustrated below.
[0065] See Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 1As shown, an image forming apparatus 101 and an electronic device 102 are illustrated in this application scenario. The image forming apparatus 101 includes a scanning area 1011, a display area 1012, and a control panel 1013. The electronic device 102 includes a screen. When a user needs to copy the content displayed on the screen of the electronic device 102, they simply need to position the screen of the electronic device 102 towards the scanning area 1011 of the image forming apparatus 101 and control the image forming apparatus 101 to perform the copying operation via the control panel 1013. This will transfer the content from the scanning area 1011 onto the image forming medium.
[0066] It should be pointed out that, Figure 1 The image forming apparatus 101 and electronic device 102 shown are merely exemplary descriptions and should not be construed as limiting the scope of protection of this application. The image forming apparatus 101 includes, but is not limited to, printers, copiers, fax machines, multi-function image production and copying apparatuses, electrostatic printing apparatuses, and any other similar apparatuses, and the layout of each area of the image forming apparatus 101 (i.e., Figure 1 The scanning area 1011, display area 1012, and control panel 1013 shown are merely illustrative examples. Furthermore, the electronic device 102 can be, in addition to a mobile phone, a tablet, smartwatch, smart reader, or other electronic device with a screen.
[0067] In related technologies, when an image forming apparatus scans an object, it emits light through a scanning lamp. The light is reflected on the object to be copied. The image forming apparatus collects the reflected light and generates an image based on the reflected light, and then presents the image on an image forming medium.
[0068] However, when the object to be copied is a thick electronic device with a screen (e.g., a mobile phone screen), scanning can only be performed with the cover open. Therefore, the scanned image will contain large areas of black outside the screen, which negatively impacts the user's viewing experience. Furthermore, copying large areas of black wastes consumables, increasing costs. Additionally, the image forming apparatus cannot scan or copy long images from electronic devices that require scrolling and stitching to form a single image.
[0069] To address the aforementioned problems, this application provides a method for screen copying of an electronic device. First, a scanned image corresponding to the screen of the electronic device is acquired. Then, image processing is performed on the scanned image to obtain a target scanned image. Finally, by performing an image forming operation on the target scanned image, an image of the electronic device's screen can be obtained on an image forming medium. It is understood that because the target scanned image in this application is an image corresponding to a portion of the electronic device's screen, only the image area corresponding to the screen has color when the target scanned image is presented on the image forming medium; other parts are colorless, saving consumables and thus reducing costs. A detailed description is provided below with reference to the accompanying drawings and specific embodiments.
[0070] See Figure 2 This is a schematic flowchart illustrating a screen copying method for an electronic device provided in an embodiment of this application. This method can be applied to... Figure 1 The application scenarios shown are as follows: Figure 2 As shown, it mainly includes the following steps.
[0071] Step S201: Obtain the scanned image corresponding to the screen side of the electronic device.
[0072] Specifically, the screen side of the electronic device, i.e., the side with the screen, needs to be scanned because valid information is displayed through the screen. This results in a scanned image of the screen side. Of course, this scanned image includes not only the screen but also the area surrounding the electronic device within the entire scanned area.
[0073] Moreover, in practical applications, the length of the page displayed on the screen of an electronic device is greater than the screen length. In this case, scanning only one side of the screen of the electronic device may not be enough to obtain complete page information.
[0074] In one possible implementation, when the page length is greater than the screen length, the screen of the electronic device needs to be scanned first. Then, after the user manually scrolls the page, the screen of the electronic device is scanned a second time, and so on, until the entire page is scanned and multiple mobile phone screen images containing different content are presented on a single sheet of paper.
[0075] Specifically, see Figure 3 This is a schematic diagram of an image forming medium comprising multiple screen images provided in an embodiment of this application. Figure 3 As shown, the image forming medium 301 includes four screen images: screen image 1, screen image 2, screen image 3, and screen image 4. It can be understood that the user adjusts the phone screen to the first interface and faces the phone screen towards the scanning area of the image forming apparatus. The image forming apparatus scans and obtains screen image 1. After scanning, the image forming apparatus outputs a screen scrolling prompt to encourage the user to scroll the screen. The user scrolls the screen, causing the screen to display a second interface, which contains page information from a different area than the first interface. When the user places the phone screen towards the scanning area of the image forming apparatus and inputs a scan command, a second scan is performed, thus obtaining screen image 2. This process is repeated to obtain screen images 3 and 4. Although the image forming apparatus scans four times, it only prints once, presenting the four screen images on a single sheet of paper.
[0076] However, this method may consume a lot of electricity and also affect the user experience.
[0077] Therefore, in this embodiment, a scanned image is directly acquired between the top and bottom edges of the page in the screen scrolling direction of the electronic device. The screen scrolling direction refers to the direction in which information moves on the screen.
[0078] It should be noted that "top of page" refers to the top of the long image the user expects to copy, and "bottom of page" refers to the bottom of the long image the user expects to copy. The length from top to bottom of the page may vary depending on the specific long image; this length represents the length of the stitched long image the user expects to copy.
[0079] To make it easier to understand, the screen scrolling direction will be explained in detail below.
[0080] See Figure 4 This is a schematic diagram illustrating a screen scrolling direction provided in an embodiment of this application. Figure 4 As shown in 'a', the complete page information that the user expects to copy includes three patterns: Pattern 1, Pattern 2, and Pattern 3. In one possible implementation, the top of the page is displayed on the phone screen; in this case, the screen needs to be scrolled up to display the bottom of the page. For example... Figure 4 As shown in b, in one possible implementation, the screen scrolling method is upward scrolling, as in ①, where the image moves from the bottom of the phone to the top. In the initial state (i.e., Figure 4 (to the left of 'b' in the text), the top of the page in the scrolling direction can be displayed on the phone screen. After the screen scrolls up, in the final state (i.e., Figure 4 (to the right of b in the image), the bottom of the page in the scrolling direction can be displayed on the phone screen. In one possible implementation, the screen scrolls downwards, as in ②, where the image moves from the top to the bottom of the phone (e.g., image 2, after scrolling in ②, changes from being at the top to the bottom of the phone). In the initial state (i.e. Figure 4 (to the right of 'b' in the text), the bottom of the page in the scrolling direction can be displayed on the phone screen. After the screen scrolls down, in the final state (i.e., Figure 4 (to the left of b in the image), the top of the page in the scrolling direction can be displayed on the mobile screen.
[0081] It should be noted that, in this embodiment, the top of the phone is the top edge in the screen scrolling direction, and the bottom edge is the bottom edge in the screen scrolling direction; similarly, the top of the page is the top edge in the screen scrolling direction, and the bottom edge is the bottom edge in the screen scrolling direction. Of course, this is merely an exemplary description and should not be construed as limiting the scope of protection of this application.
[0082] In the above embodiments, the screen scrolling direction is vertical. In practical applications, screen scrolling may also be horizontal. For ease of understanding, another screen scrolling direction will be described in detail below.
[0083] See Figure 5 This is a schematic diagram illustrating another screen scrolling direction provided in an embodiment of this application. Figure 5 As shown in Figure 'a', the complete page information that the user expects to copy includes three patterns: pattern 4, pattern 5, and pattern 6. In one possible implementation, the top of the page is displayed on the phone screen. In this case, the screen needs to be scrolled to the left to display the bottom of the page on the phone screen. In this embodiment, the left side of the phone is the top of the screen in the scrolling direction, and the right side of the phone is the bottom of the screen in the scrolling direction. Figure 5 As shown in b, in one possible implementation, the screen scrolls to the left, as in ③, where the image moves from the right side of the phone to the left side (e.g., image 5, after scrolling in ③, changes from a central position to a left-side position). In the initial state (i.e.) Figure 5 (to the left of 'b' in the text), the top of the page in the scrolling direction is displayed on the phone screen. After the screen scrolls to the left, in the final state (i.e., Figure 5 (to the right of b in the image), the bottom of the page in the scrolling direction can be displayed on the phone screen. In one possible implementation, the screen scrolls to the right, as in ④, where the image moves from the left to the right of the phone. In the initial state (i.e., Figure 5 (to the right of 'b' in the text), the bottom of the page in the scrolling direction can be displayed on the phone screen. After the screen scrolls to the right, in the final state (i.e., Figure 5 (to the left of b in the image), the top of the page in the scrolling direction can be displayed on the mobile screen.
[0084] It should be noted that, in this embodiment, the left end of the phone is the top edge in the screen scrolling direction, and the right end of the phone is the bottom edge in the screen scrolling direction; similarly, the left end of the page is the top edge in the screen scrolling direction, and the right end of the page is the bottom edge in the screen scrolling direction. Of course, this is merely an exemplary description and should not be construed as limiting the scope of protection of this application.
[0085] In one possible implementation, the screen of the electronic device also includes a scroll bar, in which the screen scrolling direction is opposite to the scroll bar movement direction.
[0086] In addition, some image forming apparatuses and electronic devices are equipped with specific operating systems that enable communication between them, such as via Wi-Fi hotspot networks, Wi-Fi P2P networks, Bluetooth networks, Zigbee networks, or near-field communication (NFC) networks. In this case, when the page length exceeds the screen length, the entire page-length image can be displayed on the image forming medium through information exchange between the image forming apparatus and the electronic device.
[0087] Specifically, see Figure 6 This is a schematic diagram illustrating a process for acquiring a scanned image, provided in an embodiment of this application. Figure 6 As shown, it mainly includes the following steps.
[0088] Step S601: The image forming apparatus controls the scanning device to scan from the top of the screen in the scrolling direction of the electronic device to the bottom of the screen in the scrolling direction.
[0089] It is understandable that in the same electronic device, the distance from the top to the bottom of the screen is fixed, and this distance is the length of the illuminated image.
[0090] Specifically, after receiving a scanning command, the image forming apparatus controls the scanning device to scan from the top of the screen in the screen scrolling direction to the bottom of the screen in the same direction. The screen scrolling direction is detailed in [link to relevant documentation]. Figure 4-5 The description in the illustrated embodiment.
[0091] It should be noted that in step S601, the scanning device scans from the top of the screen in the scrolling direction to the bottom of the screen in the scrolling direction. When the scanning device reaches the bottom of the screen, the page of the electronic device has not yet started to scroll. It can be understood that when scanning a long image, the scanning device needs to scan the image before scrolling first. At this time, the screen of the electronic device is still. Only when the scanning device has scanned the still image of the current screen can the screen of the electronic device start to scroll, so as to obtain the complete long image.
[0092] Step S602: The image forming apparatus controls the scanning apparatus to stop moving.
[0093] Specifically, when the scanning device reaches the bottom of the screen, the image forming apparatus controls the scanning device to stop moving. It should be noted that although the scanning device stops moving, it does not stop scanning. It can be understood that the scanning direction and speed in step S602 are similar to those of a conventional scanning operation; the difference lies only in stopping the movement when reaching the bottom of the screen, rather than scanning the entire area.
[0094] Step S603: The image forming apparatus sends a screen scrolling command to the electronic device.
[0095] Specifically, after the scanning device stops moving, the image forming device sends a screen scrolling command to the electronic device. The screen scrolling command controls the electronic device to scroll the screen according to a preset screen scrolling setting. The preset screen scrolling setting is a user-defined screen scrolling method.
[0096] In one possible implementation, the preset screen scrolling settings only include a preset screen scrolling speed, which is a speed set according to the scanning speed of the scanning device. Preferably, in order to obtain a continuous and complete page scan image, the preset screen scrolling speed is set to be the same as the scanning speed. Of course, this application embodiment does not impose specific limitations on this. In this case, the electronic device can directly obtain the screen scrolling direction from within the device. It can be understood that when the user selects the top of the long image as the initial interface, the screen scrolling direction can only be downward; when the user selects the bottom of the long image as the initial interface, the screen scrolling direction can only be upward.
[0097] In one possible implementation, the page on the mobile phone screen is very long, and the scroll bar can scroll indefinitely downwards, but the user only needs a portion of the information on the page. In this case, the preset screen scrolling settings can include the screen scrolling direction, screen scrolling speed, and screen scrolling time. The screen scrolling speed, as mentioned above, can be set to be the same as the scanning speed. The screen scrolling direction and screen scrolling time can be set according to the length of the area containing the relevant information. For example, the user can set the screen scrolling direction to scroll from top to bottom and the screen scrolling time to 2 seconds.
[0098] Understandably, setting a preset scrolling direction and preset scrolling time in advance can further ensure that the copied content is what the user expects, without including extra content, thus better meeting the user's imaging needs.
[0099] Step S604: The electronic device scrolls the screen according to the preset screen scrolling settings.
[0100] Specifically, the electronic device receives a screen scrolling command sent by the image forming apparatus, obtains a preset screen scrolling setting, and scrolls the screen according to the preset screen scrolling setting.
[0101] Step S605: When the screen scrolling ends, the electronic device sends a scrolling end command to the image forming apparatus.
[0102] Specifically, once the bottom of the page has appeared on the screen, the screen scrolling is considered complete, and the electronic device sends a scrolling end command to the image forming apparatus. This scrolling end command controls the image forming apparatus to stop scanning.
[0103] Understandably, when the bottom of the page is displayed on the screen, the image forming device has already completed scanning the entire page, thus obtaining the complete content of the page.
[0104] Alternatively, the screen scrolling can be stopped when the user-set time has elapsed, at which point the electronic device sends a scrolling-end command to the image forming apparatus. This scrolling-end command controls the image forming apparatus to stop scanning. Step S606: The image forming apparatus stops scanning.
[0105] In this embodiment, through information interaction between the image forming apparatus and the electronic device, the image forming apparatus can control the electronic device to scroll the screen, thereby stitching the complete page into a complete scanned image, and then presenting the complete scanned image on an image forming medium. This eliminates the need for users to manually scroll the page multiple times and make multiple copies, saving consumables and paper, and improving the user experience.
[0106] Furthermore, in practical applications, most mobile phones have a pocket-protection mode to prevent accidental touches. This mode is triggered when the proximity sensor on one side of the screen is blocked. Some phones will display a message on the entire screen to remind the user not to cover the screen, while others will directly disable the screen display and touch functionality. When such a phone is placed with its screen side facing the scanning area, the proximity sensor on one side of the screen is blocked, triggering the pocket-protection mode. Scanning the screen under these conditions may result in a prompt interface or a black screen, failing to obtain any useful information. Moreover, the image forming device may require a certain amount of time to scan the phone screen, but some phones have short screen-on times, which can cause the screen to turn off during scanning. After the screen turns off, the image scanned by the scanning device will be a black image, containing no useful information.
[0107] Therefore, in this embodiment of the application, a prompt message is output according to the image forming mode selected by the user. The prompt message is used to prompt the user to adjust the configuration of the electronic device so that the screen-on time of the electronic device in the scanning area of the image forming device is greater than or equal to a preset time threshold; in response to the image forming command input by the user, the scanned image corresponding to the screen side of the electronic device is acquired.
[0108] Because the prompt message is only needed when the user needs to scan the screen of an electronic device, and not in other modes, a screen scanning mode is pre-set for the user. This prompt message could specifically be: "Please turn off the phone's pocket mode to prevent accidental touches, and adjust the phone's screen-off timer to at least 5 minutes. Place the phone on the scanning glass and click 'Confirm' to start scanning." The preset time threshold is determined based on the scanning time of the image forming apparatus. The "5 minutes" in this embodiment is merely an example; the screen-off time only needs to be greater than or equal to the preset time threshold. For example, if the image forming apparatus scans for 2 minutes, the prompt message could be "Please adjust the phone's screen-off timer to at least 2 minutes" or "Please adjust the phone's screen-off timer to at least 3 minutes." This embodiment does not impose specific limitations on this.
[0109] After the user has adjusted the configuration of the electronic device, they can input an image forming command into the image forming apparatus. Upon receiving the command, the image forming apparatus begins acquiring the scanned image corresponding to the screen of the electronic device, i.e., scanning begins. Specifically, the user can click... Figure 1 The "Confirm" button on the control panel 1013 shown sends an image forming instruction to the image forming apparatus.
[0110] Understandably, prompting the user to adjust the electronic device's configuration can prevent the screen from turning off prematurely, which would cause the scanning to go black. In other words, the method provided in this application enables the image forming apparatus to obtain an image corresponding to the entire page.
[0111] In practical applications, since the screen of an electronic device is a self-emissive object, when the image forming apparatus acquires a scanned image corresponding to the screen side of the electronic device, it can turn off the light-emitting device in the scanning device and then scan the screen side of the electronic device to obtain a scanned image corresponding to the screen side of the electronic device.
[0112] It is understandable that after the light-emitting device is turned off, the frame, casing and surrounding non-light-emitting objects of the electronic device will not be scanned by the scanning device, which is more conducive to scanning and obtaining the screen display content, and provides convenience for subsequent image processing, which can improve work efficiency. Moreover, turning off the light-emitting device can achieve a certain power saving effect.
[0113] Step S202: Perform image processing on the scanned image to obtain the target scanned image.
[0114] Specifically, the image forming apparatus performs image processing on the scanned image to obtain a target scanned image. This image processing includes cropping the scanned image and adjusting its size and angle.
[0115] More specifically, because the scanned image includes images of other parts besides the screen portion of the electronic device, it is necessary to crop the complete scanned image to obtain the image corresponding to the screen portion of the electronic device.
[0116] like Figure 1 As shown, the area of the scanned image obtained by the scanning area 1011 is the same as the area of the scanning area 1011. After the image forming apparatus crops the scanned image, it can obtain the image corresponding to the electronic device 102 and delete other parts in the scanned image.
[0117] In practical applications, when a user places an electronic device, the device may not be oriented correctly. Directly displaying the scanned image on the image forming medium in this way can result in a skewed final image. Therefore, in this embodiment, it is also necessary to adjust the angle of the image corresponding to the screen portion of the electronic device. However, the image angle can also be adjusted before cropping the image, and this embodiment does not impose specific limitations on this.
[0118] In addition, since the image size corresponding to the screen portion of the electronic device is relatively small, after obtaining the image corresponding to the screen portion of the electronic device, the image size can be adaptively adjusted. While ensuring that the image content is not distorted, the image size can be enlarged as much as possible to improve the image clarity and ensure that the image is located in the middle part of the image forming medium.
[0119] In practical applications, users may have desired image sizes. Therefore, in this embodiment, users can... Figure 1 The desired size is selected at the control panel 1013 of the image forming apparatus shown, for example, by magnifying the image corresponding to the screen portion to twice its original size, or by reducing the image corresponding to the screen portion to half its original size. After the user selects the magnification / reduction ratio, it can be accessed through... Figure 1 The display area 1012 of the image forming apparatus shown previews the adjusted effect so that the user can determine the size.
[0120] Step S203: Perform an image forming operation on the target scan image so that the target scan image is presented on the image forming medium.
[0121] Specifically, after obtaining a target scanned image, the image forming apparatus performs an image forming operation on the target scanned image, so that the target scanned image is presented on an image forming medium. It can be understood that after obtaining a clear, appropriately sized target scanned image, the image forming apparatus can print the image, so that the image is presented on the image forming medium.
[0122] Corresponding to the above embodiments, this application also provides an image forming apparatus.
[0123] See Figure 7 This is a schematic diagram of the structure of an image forming apparatus provided in an embodiment of this application. Figure 7 As shown, the image forming apparatus 700 may include a processor 701, a memory 702, and a communication unit 703. These components communicate via one or more buses. Those skilled in the art will understand that the structure of the image forming apparatus shown in the figures does not constitute a limitation on the embodiments of this application. It may be a bus-shaped structure or a star-shaped structure, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0124] The communication unit 703 is used to establish a communication channel, enabling the image forming apparatus to communicate with other devices. It can receive user data sent by other devices or send user data to other devices.
[0125] The processor 701 serves as the control center of the image forming apparatus. It connects to various parts of the apparatus via various interfaces and lines. By running or executing software programs, instructions, and / or modules stored in the memory 702, and by calling data stored in the memory, it performs various functions of the image forming apparatus and / or processes data. The processor may be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 701 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0126] The memory 702 is used to store the execution instructions of the processor 701. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0127] When the execution instructions in memory 702 are executed by processor 701, the image forming apparatus 700 is able to perform its functions. Figure 2 and Figure 6 Some or all of the steps in the illustrated embodiments.
[0128] Corresponding to the above embodiments, this application also provides an electronic device.
[0129] See Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 800 may include a processor 801, a memory 802, and a communication unit 803. These components communicate via one or more buses. Those skilled in the art will understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of this application. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0130] The communication unit 803 is used to establish a communication channel, enabling the electronic device to communicate with other devices. It can receive user data sent by other devices or send user data to other devices.
[0131] The processor 801 serves as the control center of the electronic device, connecting various parts of the device via interfaces and lines. It executes software programs, instructions, and / or modules stored in the memory 802, and calls data stored in the memory to perform various functions and / or process data. The processor may be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 801 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0132] The memory 802 is used to store the execution instructions of the processor 801. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0133] When the execution instructions in memory 802 are executed by processor 801, the electronic device 800 is able to perform operations. Figure 6 Some or all of the steps in the illustrated embodiments.
[0134] In a specific implementation, this application embodiment also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, it may include some or all of the steps of the simulation scene generation method provided in various embodiments of this application. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0135] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0136] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0137] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0138] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0139] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the device embodiments and terminal embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.
Claims
1. A method for screen copying of an electronic device, characterized in that, Applied to an image forming apparatus, the electronic device including a screen, the method includes: Acquire the scanned image corresponding to the screen side of the electronic device; The scanned image is processed to obtain a target scanned image, which is the processed image corresponding to the screen portion of the electronic device; An image forming operation is performed on the target scan image, so that the target scan image is presented on the image forming medium; The step of acquiring the scanned image corresponding to the screen side of the electronic device includes: Acquire a scanned image of the electronic device between the top of the page and the bottom of the page in the screen scrolling direction; The step of performing image processing on the scanned image to obtain the target scanned image includes: Cropping the image corresponding to the screen portion of the electronic device from the scanned image yields the image corresponding to the screen portion of the electronic device. Adjust the angle and size of the image corresponding to the screen portion of the electronic device to obtain the target scan image.
2. The method according to claim 1, characterized in that, The step of acquiring a scanned image of the area between the top and bottom edges of the page in the screen scrolling direction of the electronic device includes: The scanning device is controlled to scan from the top of the screen in the scrolling direction of the electronic device to the bottom of the screen in the scrolling direction. Control the scanning device to stop moving; Send a screen scrolling command to the electronic device, the screen scrolling command being used to control the electronic device to scroll the screen according to a preset screen scrolling setting; Receive the scroll end command sent by the electronic device, end the scan, and obtain the scanned image; The image forming apparatus is communicatively connected to an electronic device.
3. The method according to claim 1, characterized in that, The step of acquiring the scanned image corresponding to the screen side of the electronic device includes: Based on the image forming mode selected by the user, a prompt message is output. The prompt message is used to prompt the user to adjust the configuration of the electronic device so that the screen-on duration of the electronic device in the scanning area of the image forming device is greater than or equal to a preset time threshold. In response to the image forming instruction input by the user, a scanned image corresponding to the screen side of the electronic device is acquired.
4. The method according to claim 1, characterized in that, The step of acquiring the scanned image corresponding to the screen side of the electronic device includes: The light-emitting device in the scanning device is turned off, and the screen side of the electronic device is scanned to obtain the scanned image corresponding to the screen side of the electronic device.
5. An image forming apparatus, characterized in that, include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, the computer program including instructions that, when executed by the processor, cause the image forming apparatus to perform the method of any one of claims 1-4.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 4.