Image processing method, device and equipment

By receiving and replacing screenshots from electronic devices, the problem of content corruption when image processing software removes screen stripes has been solved, enabling the acquisition of stripe-free images and improving the user experience.

CN112561809BActive Publication Date: 2024-11-19VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011390210.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-02
Publication Date
2024-11-19
Estimated Expiration
2040-12-02

AI Technical Summary

Technical Problem

In existing technologies, when using image processing software to remove stripes from photos, the content of the photo is easily damaged.

Method used

By receiving a screenshot of the target electronic device and replacing the screen imaging area of ​​the target electronic device in the photo with a matching area image from the screenshot, stripes in the screen imaging are eliminated without destroying the original content.

Benefits of technology

It effectively removes stripes from screen images without interfering with the user's photography experience, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112561809B_ABST
    Figure CN112561809B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method, device and equipment, belonging to the technical field of electronic equipment. The image processing method includes: after receiving a first input, capturing a first image; receiving a screenshot image sent by a target second electronic device; when the first image includes a first sub-image, replacing the first sub-image with a second sub-image to obtain a second image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is an image of a region in the screenshot image that matches the region where the first sub-image is located. The image processing method, device and equipment of the present application can eliminate the stripes formed by the screen of the target second electronic device in the first image without destroying the original content of the first image captured by the first electronic device, and can improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to an image processing method, apparatus and device. Background Art

[0002] With the development of electronic devices, taking photos using electronic devices has become a very important part of people's daily life.

[0003] When taking a photo with an electronic device, if there is content on the screen of another electronic device within the shooting range of the electronic device, stripes will appear in the area containing the above content in the photo taken with the electronic device.

[0004] Typically, users use image processing software to remove streaks from photos.

[0005] However, in the process of implementing this application, the inventor discovered that there are at least the following problems in the related art: when using image processing software to remove stripes in a photo, the content of the photo will be destroyed. Summary of the Invention

[0006] The purpose of the embodiments of the present application is to provide an image processing method, apparatus, and device that can solve the problem of damaging the content of a photo when removing stripes in the photo.

[0007] In order to solve the above technical problems, this application is implemented as follows:

[0008] In a first aspect, an embodiment of the present application provides an image processing method, applied to a first electronic device, the image processing method comprising:

[0009] After receiving the first input, capturing a first image;

[0010] Receiving a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device;

[0011] When the first image includes a first sub-image, the first sub-image is replaced with a second sub-image to obtain a second image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is an area image in the screenshot image that matches the area where the first sub-image is located.

[0012] In a second aspect, an embodiment of the present application provides an image processing device, applied to a first electronic device, the image processing device including:

[0013] A shooting module, configured to shoot and obtain a first image after receiving a first input;

[0014] A first receiving module is configured to receive a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device;

[0015] A replacement module is used to replace the first sub-image with the second sub-image when the first image includes a first sub-image, so as to obtain a second image, wherein the first sub-image is the image of the screen of the target second electronic device in the first image, and the second sub-image is the area image in the screenshot image that matches the area where the first sub-image is located.

[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect.

[0019] In the embodiment of the present application, since the screenshot image does not contain stripes caused by shooting, the image of the target second electronic device's screen in the first image is replaced with an image of a region in the screenshot image that matches the region where the target second electronic device's screen is imaged in the first image. In the resulting second image, the region where the target second electronic device's screen is imaged in the first image does not contain stripes. This eliminates the stripes in the first image where the target second electronic device's screen is imaged, and does not destroy the original content of the first image. This eliminates the stripes in the first image where the target second electronic device's screen is imaged without destroying the original content of the first image captured by the first electronic device. Furthermore, the user can obtain a stripe-free image by simply executing an input, which neither interferes with the user's original photography experience nor prevents the user from obtaining a stripe-free image, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flowchart of an image processing method applied to a first electronic device provided in an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of a photographing scene provided in an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a first image provided in an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of a screenshot image provided in an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of an imaging image provided in an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of a regional image matching the imaging area provided in an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of a second image provided in an embodiment of the present application;

[0027] Figure 8 is a structural diagram of an image processing device applied to a first electronic device provided in an embodiment of the present application;

[0028] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0029] Figure 10 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0031] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0032] The image processing method, apparatus, and device provided in the embodiments of the present application are described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] Figure 1 1 is a flow chart of an image processing method applied to a first electronic device provided in an embodiment of the present application. The image processing method applied to the first electronic device may include:

[0034] S101: Receive a first input;

[0035] S102: In response to a first input, capture a first image;

[0036] S103: receiving a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device;

[0037] S104: When the first image includes a first sub-image, the first sub-image is replaced with a second sub-image to obtain a second image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is an area image in the screenshot image that matches the area where the first sub-image is located.

[0038] The specific implementation of each of the above steps will be described in detail below.

[0039] In the embodiment of the present application, since the screenshot image does not contain stripes caused by shooting, the image of the target second electronic device's screen in the first image is replaced with an image of a region in the screenshot image that matches the region where the target second electronic device's screen is imaged in the first image. In the resulting second image, the region where the target second electronic device's screen is imaged in the first image does not contain stripes. This eliminates the stripes in the first image where the target second electronic device's screen is imaged, and does not destroy the original content of the first image. This eliminates the stripes in the first image where the target second electronic device's screen is imaged without destroying the original content of the first image captured by the first electronic device. Furthermore, the user can obtain a stripe-free image by simply executing an input, which neither interferes with the user's original photography experience nor prevents the user from obtaining a stripe-free image, thereby improving the user experience.

[0040] In some possible implementations of the embodiments of the present application, in S101, the first input is an input for photographing a scene within the photographing range of the first electronic device. In some possible implementations of the embodiments of the present application, the first input can be, for example, an input of the user clicking a "photo button" on the screen of the first electronic device, or an input of the user inputting a voice message "photograph".

[0041] In some possible implementations of the embodiments of the present application, after receiving the first input, the first electronic device may send a request message to the target second electronic device to request the target second electronic device to send its screenshot image. After receiving the request message, the target second electronic device responds to the request message, takes a screenshot of its screen display content, obtains a screenshot image, and sends the screenshot image to the first electronic device.

[0042] In some possible implementations of the embodiments of the present application, the first electronic device may send a request message to the target second electronic device based on a short-range communication method or a long-range network communication method, requesting the target second electronic device to send its screenshot image.

[0043] The embodiments of the present application do not limit the short-range communication method. Any available short-range communication method can be applied to the embodiments of the present application, such as wireless WI-FI communication and Bluetooth communication.

[0044] The remote network communication method in the embodiment of the present application refers to a communication method based on a server-client (Client-Serve, CS) structure of the same server. Under this communication method, the first electronic device and the target second electronic device are both connected to the same server for communication, and the first electronic device and the target second electronic device communicate remotely through the server.

[0045] It is understandable that when the first electronic device sends a request message for requesting the target second electronic device to send its screenshot image or receives a screenshot image sent by the target second electronic device based on a short-range communication method or a long-range network communication method, it is necessary to establish a communication connection with the target second electronic device in advance based on the short-range communication method or the long-range network communication method. Based on this, in some possible implementations of the embodiments of the present application, a communication connection with the target second electronic device can be established before the first electronic device takes a photo, that is, before S101, the image processing method applied to the first electronic device provided in the embodiments of the present application may also include: establishing a communication connection with the target second electronic device based on a short-range communication method or a long-range network communication method.

[0046] In some possible implementations of the embodiments of the present application, establishing a communication connection with a target second electronic device may include: sending a first request message to the target second electronic device, wherein the first request message is used to request to establish a communication connection with the target second electronic device; upon receiving a first message sent by the target second electronic device, establishing a communication connection with the target second electronic device, wherein the first message is used to indicate that the first electronic device is allowed to establish a communication connection with the target second electronic device.

[0047] For example, taking the example of a first electronic device establishing a Bluetooth communication connection with a target second electronic device, the first electronic device sends a Bluetooth pairing request to the target second electronic device. Upon receiving the Bluetooth pairing request sent by the first electronic device, the target second electronic device sends a pairing permission message to the first electronic device if Bluetooth pairing with the first electronic device is permitted. After receiving the pairing permission message, the first electronic device establishes a Bluetooth communication connection with the target second electronic device.

[0048] In some possible implementations of the embodiments of the present application, before the first electronic device sends the first request information to the target second electronic device, the image processing method provided by the embodiments of the present application applied to the first electronic device may also include: scanning the target graphic code, wherein the target graphic code is used to trigger the first electronic device to send the first request information to the target second electronic device.

[0049] Exemplarily, the target second electronic device can generate a target graphic code for requesting a communication connection with it based on its identification information, or the target second electronic device can send its identification information to the server, and the server can generate a target graphic code for requesting to establish a communication connection with the target second electronic device based on the identification information. The target graphic code can be displayed on the screen of the target second electronic device or posted on the surface of the target second electronic device. When the first electronic device scans the target graphic code, it sends a first request information to the target second electronic device for requesting to establish a communication connection with the target second electronic device.

[0050] The embodiment of the present application does not limit the representation form of the graphic code, and any available graphic representation form can be applied to the embodiment of the present application. In some possible implementations of the embodiment of the present application, the target graphic code can be a two-dimensional code.

[0051] In some possible implementations of the embodiments of the present application, before the first electronic device sends the first request information to the target second electronic device, the image processing method applied to the first electronic device provided by the embodiments of the present application may also include: receiving a second input, wherein the second input is used to trigger the first electronic device to send the first request information to the target second electronic device.

[0052] For example, the second electronic device may display an identification code, such as a string, on its screen for requesting to establish a communication connection with the first electronic device. When the user enters the string on the screen of the first electronic device, the second request information is sent to the target second electronic device for requesting to establish a communication connection with the target second electronic device.

[0053] In some possible implementations of the embodiments of the present application, the target second electronic device may also send a screenshot image to the first electronic device when detecting that a flash of the first electronic device is flashing.

[0054] In some possible implementations of the embodiments of the present application, the target second electronic device may also send a screenshot image to the first electronic device when a shutter sound of the first electronic device is detected.

[0055] The embodiments of the present application do not limit the method of triggering the target second electronic device to send the screenshot image to the first electronic device. Any available method of triggering the target second electronic device to send the screenshot image to the first electronic device can be applied to the embodiments of the present application.

[0056] In some possible implementations of the embodiments of the present application, in S104, if at least part of the screen of the target second electronic device is within the shooting range of the first electronic device, then at least part of the display content of the screen of the target second electronic device will exist in the first image captured, and this part of the content will have stripes in the first image. Therefore, in order to eliminate the stripes and improve the image quality, in S104, the image of the screen of the target second electronic device in the first image is replaced with an image of the area in the screenshot image that matches the area where the image of the screen of the target second electronic device in the first image is located.

[0057] In some possible implementations of the embodiments of the present application, before S104, the image processing method provided by the embodiments of the present application for the first electronic device may further include: determining the imaging of the screen of the target second electronic device in the first image. In some possible implementations of the embodiments of the present application, an image recognition model may be pre-trained, and the image recognition model is used to determine the area where the screen of the electronic device is imaged in the image. The embodiments of the present application do not limit the training of the image recognition model for determining the area where the screen of the electronic device is imaged in the image, and any available training method may be applied to the embodiments of the present application. When the training of the image recognition model is completed, the first image captured by the first electronic device is input into the image recognition model, and the imaging area of ​​the screen of the target second electronic device in the first image can be determined, and then the imaging of the screen of the target second electronic device in the first image can be obtained.

[0058] In some possible implementations of the embodiments of the present application, before S104, the image processing method applied to the first electronic device provided by the embodiments of the present application may further include: determining an area in the screenshot image of the target second electronic device that matches the imaging area.

[0059] In some possible implementations of the embodiments of the present application, the area where the shooting range of the first electronic device intersects with the screen of the target second electronic device can be used as the area in the screenshot image of the target second electronic device that matches the imaging area of ​​the screen of the target second electronic device in the first image.

[0060] The image processing method provided in the embodiment of the present application is described below in conjunction with a specific photo-taking scenario.

[0061] Figure 2 Schematic diagram of a photo shooting scene provided by an embodiment of the present application. Figure 2 In the example, a user uses the first electronic device 100 to take a photo, and display information of the screen of the target second electronic device 200 exists within the shooting range of the first electronic device 100.

[0062] When the user clicks the "photo button" 300 on the screen of the first electronic device, it indicates that the user performs the first input. At this time, the first electronic device 100 captures the scene within its shooting range to obtain a first image, and sends a request message to the target second electronic device 200 for requesting a screenshot image of the target second electronic device 200. After receiving the request message, the target second electronic device 200 sends its screenshot image to the first electronic device 100. After receiving the screenshot image, the first electronic device 100 replaces the imaging of the screen of the target second electronic device 200 in the first image with an image of the area in the screenshot image of the target second electronic device that matches the imaging area to obtain a second image. In this embodiment, the first image is shown in 3, and the screenshot image is shown in Figure 4 As shown, the screen of the target second electronic device 200 is imaged in the first image as shown in FIG. Figure 5 As shown, the area image matching the imaging area in the screenshot image of the target second electronic device is as follows: Figure 6 As shown, the second image is Figure 7 shown.

[0063] In some possible implementations of the embodiments of the present application, there may be multiple electronic devices that have established a communication connection with the first electronic device. The target second electronic device may be an electronic device among the multiple electronic devices that meets a second condition, where the second condition includes: at least part of the information displayed on the screen of the electronic device is within the capture range of the first electronic device.

[0064] For example, assume that there are three electronic devices that have established a communication connection with the first electronic device, and the three electronic devices are electronic device A, electronic device B, and electronic device C. Among them, part of the information displayed on the screen of electronic device A is within the shooting range of the first electronic device, and the screen of electronic device B is facing the same direction as the shooting direction of the first electronic device. Then, the information displayed on the screen of electronic device B is not within the shooting range of the first electronic device, and the information displayed on the screen of electronic device C is all within the shooting range of the first electronic device. Then the target second electronic device includes electronic device A and electronic device C.

[0065] In some possible implementations of the embodiments of the present application, there may be multiple second electronic devices within the shooting range of the first electronic device, and the first electronic device can choose which second electronic device's screen in the first image to replace the image in the first image with an area image in the screenshot image of the second electronic device that matches the area where the image is located.

[0066] In some possible implementations of the embodiments of the present application, the multiple second electronic devices may be electronic devices equipped with gyroscopes, through which the orientation of their screens can be detected. Before sending the first request information to the target second electronic device, the image processing method applied to the first electronic device provided in the embodiments of the present application may also include: receiving screen orientation information sent by at least two second electronic devices; and determining, from the at least two second electronic devices, a target second electronic device that meets a first condition based on the screen orientation information and the shooting direction of the first electronic device, wherein the first condition at least includes: the angle between the screen orientation of the electronic device and the shooting direction of the first electronic device is within a preset angle range.

[0067] Specifically, the first electronic device can broadcast a broadcast message for other second electronic devices to send information about their screen orientation. The second electronic device that receives the broadcast message uses the orientation of the screen of the gyroscope detector to send its screen orientation information to the first electronic device. After receiving at least two screen orientation information, the first electronic device determines the target second electronic device from the at least two second electronic devices that sent the screen orientation information based on the at least two screen orientation information and the shooting direction of the first electronic device.

[0068] For example, assume that there are three second electronic devices sending screen orientation information, namely electronic device A, electronic device B, and electronic device C, where the screen orientation of electronic device A is due east, the screen orientation of electronic device B is 30° north-east, and the screen orientation of electronic device C is due south. The shooting direction of the first electronic device is 70° south-west. Then the angle between the shooting direction of the first electronic device and the screen orientation of electronic device A is 160°, the angle between the shooting direction of the first electronic device and the screen orientation of electronic device B is 140°, and the angle between the shooting direction of the first electronic device and the screen orientation of electronic device C is 70°. Assuming that the preset angle range is 150° to 180°, electronic device A is determined as the target second electronic device.

[0069] In some possible implementations of the embodiments of the present application, the first condition may further include: the distance between the electronic device and the first electronic device is less than a preset distance.

[0070] Typically, when a user uses one electronic device (such as electronic device A) to capture the screen of another electronic device (such as electronic device B), the distance between the two electronic devices is not very far. When information displayed on the screen of an electronic device (such as electronic device C) that is farther away from electronic device A exists within the capturing range of electronic device A, since the user's focus is only on the information on the screen of electronic device B and not on the information on the screen of electronic device C, only the image of the screen of electronic device B in the first image captured by the electronic device can be replaced with an image of the area in the screenshot of electronic device B that matches the imaged area. The image of the screen of electronic device C in the first image does not need to be replaced.

[0071] It should be noted that the image processing method provided in the embodiments of the present application can be executed by an image processing device or a control module in the image processing device for executing the image processing method. In the embodiments of the present application, the image processing device provided in the embodiments of the present application is described by taking the image processing device executing the image processing method as an example.

[0072] Figure 8 : is a schematic diagram of the structure of an image processing device applied to a first electronic device provided in an embodiment of the present application. The image processing device applied to the first electronic device may include:

[0073] The shooting module 801 is configured to shoot and obtain a first image after receiving a first input;

[0074] A first receiving module 802 is configured to receive a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device;

[0075] The replacement module 803 is used to replace the first sub-image with the second sub-image when the first image includes the first sub-image, so as to obtain the second image, wherein the first sub-image is the image of the screen of the target second electronic device in the first image, and the second sub-image is the area image in the screenshot image that matches the area where the first sub-image is located.

[0076] In the embodiment of the present application, since the screenshot image does not contain stripes caused by shooting, the image of the target second electronic device's screen in the first image is replaced with an image of a region in the screenshot image that matches the region where the target second electronic device's screen is imaged in the first image. In the resulting second image, the region where the target second electronic device's screen is imaged in the first image does not contain stripes. This eliminates the stripes in the first image where the target second electronic device's screen is imaged, and does not destroy the original content of the first image. This eliminates the stripes in the first image where the target second electronic device's screen is imaged without destroying the original content of the first image captured by the first electronic device. Furthermore, the user can obtain a stripe-free image by simply executing an input, which neither interferes with the user's original photography experience nor prevents the user from obtaining a stripe-free image, thereby improving the user experience.

[0077] In some possible implementations of the embodiments of the present application, the image processing apparatus applied to the first electronic device may further include:

[0078] A second receiving module, configured to receive screen orientation information sent by at least two second electronic devices;

[0079] A determination module is used to determine a target second electronic device that meets a first condition from at least two second electronic devices based on screen orientation information and the shooting direction of the first electronic device, wherein the first condition at least includes: the angle between the screen orientation of the electronic device and the shooting direction of the first electronic device is within a preset angle range.

[0080] In some possible implementations of the embodiments of the present application, the target second electronic device is an electronic device that meets a second condition, wherein the second condition includes: at least part of the information displayed on the screen of the electronic device is within the shooting range of the first electronic device.

[0081] In some possible implementations of the embodiments of the present application, the image processing apparatus applied to the first electronic device may further include:

[0082] A communication connection establishing module is used to send a first request information to the target second electronic device, and establish a communication connection with the target second electronic device upon receiving a first message sent by the target second electronic device, wherein the first request information is used to request to establish a communication connection with the target second electronic device, and the first message is used to indicate that the first electronic device is allowed to establish a communication connection with the target second electronic device.

[0083] In some possible implementations of the embodiments of the present application, the image processing device applied to the first electronic device may further include any one of the following items:

[0084] A scanning module, used to scan a target graphic code, wherein the target graphic code is used to trigger the communication connection establishment module;

[0085] The third receiving module is configured to receive a second input, wherein the second input is used to trigger the communication connection establishing module.

[0086] The image processing device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.

[0087] The image processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0088] The image processing device provided in the embodiment of the present application and applied to the first electronic device can achieve Figures 1 to 7 To avoid repetition, the various processes in the embodiment of the image processing method applied to the first electronic device are not described here.

[0089] Optional, such as Figure 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, the various processes of the above-mentioned image processing method embodiment applied to the first electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0090] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0091] Figure 10 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0092] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .

[0093] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0094] The user input unit 1007 is configured to receive a first input;

[0095] An input unit 1004 is configured to capture a first image in response to a first input;

[0096] The radio frequency unit 1001 is configured to receive a screenshot image sent by a target second electronic device, where the target second electronic device is an electronic device that has established a communication connection with the first electronic device;

[0097] Processor 1010 is used to replace the first sub-image with the second sub-image when the first image includes a first sub-image, so as to obtain a second image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is an area image in the screenshot image that matches the area where the first sub-image is located.

[0098] In the embodiment of the present application, since the screenshot image does not contain stripes caused by shooting, the image of the target second electronic device's screen in the first image is replaced with an image of a region in the screenshot image that matches the region where the target second electronic device's screen is imaged in the first image. In the resulting second image, the region where the target second electronic device's screen is imaged in the first image does not contain stripes. This eliminates the stripes in the first image where the target second electronic device's screen is imaged, and does not destroy the original content of the first image. This eliminates the stripes in the first image where the target second electronic device's screen is imaged without destroying the original content of the first image captured by the first electronic device. Furthermore, the user can obtain a stripe-free image by simply executing an input, which neither interferes with the user's original photography experience nor prevents the user from obtaining a stripe-free image, thereby improving the user experience.

[0099] In some possible implementations of the embodiments of the present application, the radio frequency unit 1001 may also be used for:

[0100] receiving screen orientation information sent by at least two second electronic devices;

[0101] Correspondingly, the processor 1010 can also be used to determine a target second electronic device that meets the first condition from at least two second electronic devices based on the screen orientation information and the shooting direction of the first electronic device, wherein the first condition at least includes: the angle between the screen orientation of the electronic device and the shooting direction of the first electronic device is within a preset angle range.

[0102] In some possible implementations of the embodiments of the present application, the radio frequency unit 1001 may also be used for:

[0103] A communication connection with a target second electronic device is established based on a short-range communication method or a long-range network communication method.

[0104] In some possible implementations of the embodiments of the present application, the radio frequency unit 1001 may specifically:

[0105] Sending first request information to the target second electronic device, wherein the first request information is used to request to establish a communication connection with the target second electronic device;

[0106] When a first message sent by the target second electronic device is received, a communication connection is established with the target second electronic device, wherein the first message is used to indicate that the first electronic device is allowed to establish a communication connection with the target second electronic device.

[0107] In some possible implementations of the embodiments of the present application, the input unit 1004 may also be used to:

[0108] Scan the target graphic code, wherein the target graphic code is used to trigger the radio frequency unit 1001 to send the first request information to the target second electronic device.

[0109] In some possible implementations of the embodiments of the present application, the user input unit 1007 may also be used to:

[0110] A second input is received, where the second input is used to trigger the radio frequency unit 1001 to send first request information to the target second electronic device.

[0111] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the modem processor may not be integrated into the processor 1010.

[0112] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image processing method embodiment applied to the first electronic device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0113] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.

[0114] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image processing method embodiment applied to the first electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0115] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0116] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0118] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An image processing method, applied to a first electronic device, characterized in that: The image processing method comprises: After receiving the first input, capturing a first image; Receiving a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device, and the screenshot image is sent by the target second electronic device when a flash flash or shutter sound of the first electronic device is detected; In the case where the first image includes a first sub-image, the first sub-image is replaced with a second sub-image to obtain a second image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is a regional image in the screenshot image that matches the region where the first sub-image is located; Before receiving the screenshot image sent by the target second electronic device, the method further includes: Receiving screen orientation information sent by at least two second electronic devices; Based on the screen orientation information and the shooting direction of the first electronic device, the target second electronic device that meets the first condition is determined from the at least two second electronic devices, wherein the first condition at least includes: an angle between the screen orientation of the electronic device and the shooting direction of the first electronic device is within a preset angle range.

2. The method according to claim 1, characterized in that The target second electronic device is an electronic device that meets a second condition, wherein the second condition includes: at least part of the information displayed on the screen of the electronic device is within the shooting range of the first electronic device.

3. The method according to claim 1, characterized in that Before receiving the first input, the method further includes: Sending first request information to the target second electronic device, wherein the first request information is used to request to establish a communication connection with the target second electronic device; In case of receiving a first message sent by the target second electronic device, a communication connection with the target second electronic device is established, wherein the first message is used to indicate that the first electronic device is allowed to establish a communication connection with the target second electronic device.

4. The method according to claim 3, characterized in that: Before sending the first request information to the target second electronic device, the method further includes any one of the following items: Scanning a target graphic code, wherein the target graphic code is used to trigger the first electronic device to send the first request information to the target second electronic device; A second input is received, wherein the second input is used to trigger the first electronic device to send the first request information to the target second electronic device.

5. An image processing device, applied to a first electronic device, characterized in that: The image processing device comprises: A shooting module, configured to shoot and obtain a first image after receiving a first input; A first receiving module is used to receive a screenshot image sent by a target second electronic device, wherein the target second electronic device is an electronic device that has established a communication connection with the first electronic device, and the screenshot image is sent by the target second electronic device when a flash flash or shutter sound of the first electronic device is detected; a replacement module, configured to replace the first sub-image with a second sub-image to obtain a second image when the first image includes a first sub-image, wherein the first sub-image is an image of the screen of the target second electronic device in the first image, and the second sub-image is a region image in the screenshot image that matches the region where the first sub-image is located; A second receiving module, configured to receive screen orientation information sent by at least two second electronic devices before receiving the screenshot image sent by the target second electronic device; A determination module is used to determine the target second electronic device that meets the first condition from the at least two second electronic devices based on the screen orientation information and the shooting direction of the first electronic device, wherein the first condition at least includes: the angle between the screen orientation of the electronic device and the shooting direction of the first electronic device is within a preset angle range.

6. The device according to claim 5, characterized in that The target second electronic device is an electronic device that meets a second condition, wherein the second condition includes: at least part of the information displayed on the screen of the electronic device is within the shooting range of the first electronic device.

7. The device according to claim 5, characterized in that The device also includes: a communication connection establishing module, configured to send a first request message to the target second electronic device, Upon receiving a first message sent by the target second electronic device, a communication connection is established with the target second electronic device, wherein the first request information is used to request to establish a communication connection with the target second electronic device, and the first message is used to indicate that the first electronic device is allowed to establish a communication connection with the target second electronic device.

8. The device according to claim 7, characterized in that The device also includes any one of the following items: A scanning module, used for scanning a target graphic code, wherein the target graphic code is used to trigger the communication connection establishing module; The third receiving module is used to receive a second input, wherein the second input is used to trigger the communication connection establishing module.

9. An electronic device, characterized in that: The electronic device comprises: a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the image processing method according to any one of claims 1 to 4.