CN113989706A - Image processing method and device, server, electronic device and readable storage medium - Google Patents
Image processing method and device, server, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN113989706A CN113989706A CN202111250774.6A CN202111250774A CN113989706A CN 113989706 A CN113989706 A CN 113989706A CN 202111250774 A CN202111250774 A CN 202111250774A CN 113989706 A CN113989706 A CN 113989706A
- Authority
- CN
- China
- Prior art keywords
- image
- server
- target
- images
- target image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Studio Devices (AREA)
Abstract
The application discloses an image processing method and device, a server, an electronic device and a readable storage medium, wherein the image processing method comprises the following steps: receiving M first images sent by N pieces of electronic equipment, and generating a first image set, wherein the image similarity in the first image set is greater than or equal to a first threshold; determining the first object as a non-interfering object under the condition that the occurrence number of the first object in the first image set is greater than a preset threshold value; and processing the images in the first image set according to the non-interference object to obtain a target image of the target scene.
Description
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a server, an electronic device, and a readable storage medium.
Background
When a user wants to shoot a target scene, the user is usually blocked by an interfering object, and the shooting effect is affected.
In order to capture an image without a disturbing object, a user needs to look for a specific angle or perform capturing at a specific time point.
The above method has strict requirements on the shooting time and the shooting space, and the difficulty of obtaining the image without the interference object is high, thereby bringing great inconvenience to the shooting process of the user.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image processing method, an image processing apparatus, a server, an electronic device, and a readable storage medium, which can improve convenience when a user shoots a target scene.
In a first aspect, an embodiment of the present application provides an image processing method, which is applied to a server, and the method includes:
receiving M first images sent by N pieces of electronic equipment, and generating a first image set, wherein the image similarity in the first image set is greater than or equal to a first threshold;
determining the first object as a non-interfering object under the condition that the occurrence number of the first object in the first image set is greater than a preset threshold value;
and processing the images in the first image set according to the non-interference object to obtain a target image of the target scene.
In a second aspect, an embodiment of the present application provides an image processing method, which is applied to an electronic device, and the method includes:
under the condition that the electronic equipment is in a shooting group, sending a first image to a server;
and receiving a target image sent by the server, wherein the target image is an image obtained by processing the first image according to the non-interference object.
In a third aspect, an embodiment of the present application provides an image processing apparatus, applied to a server, including:
the generating module is used for receiving M first images sent by N pieces of electronic equipment and generating a first image set, wherein the image similarity in the first image set is greater than or equal to a first threshold value;
the determining module is used for determining the first object as a non-interference object under the condition that the occurrence frequency of the first object in the first image set is greater than a preset threshold value;
and the processing module is used for processing the images in the first image set according to the non-interference object so as to obtain a target image of the target scene.
In a fourth aspect, an embodiment of the present application provides an image processing apparatus, which is applied to an electronic device, and includes:
the sending module is used for sending the first image to the server under the condition that the electronic equipment is in the shooting group;
and the receiving module is used for receiving a target image sent by the server, wherein the target image is an image obtained by processing the first image according to the non-interference object.
In a fifth aspect, embodiments of the present application provide a server, including a first processor, a first memory, and a program or instructions stored on the first memory and executable on the first processor, where the program or instructions, when executed by the first processor, implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the second aspect.
In a seventh aspect, the present embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first and second aspects.
In an eighth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect and the second aspect.
In this embodiment, after the first image set is generated, the portions of the images in the first image set that are blocked by the interfering object are different, each image includes at least one first object, and when the number of times that one first object appears in the first image set is greater than a preset threshold, it indicates that the first object appears in multiple images, that is, the sub-image is a non-interfering object. In the process of obtaining the target image, the user does not need to frequently walk to find a specific shooting angle, the shooting images of other users can provide reference for the process of generating the target image, and the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
Drawings
FIG. 1 shows one of the flow diagrams of an image processing method according to an embodiment of the application;
FIG. 2 shows one of the schematic diagrams of a first image according to an embodiment of the application;
FIG. 3 shows a second schematic diagram of a first image according to an embodiment of the present application;
FIG. 4 shows a third schematic diagram of a first image according to an embodiment of the present application;
FIG. 5 shows a fourth schematic of a first image according to an embodiment of the present application;
FIG. 6 is a second flowchart of an image processing method according to an embodiment of the present application;
fig. 7 shows a diagram of a shot group according to an embodiment of the application;
fig. 8 shows one of the configuration block diagrams of an image processing apparatus according to an embodiment of the present application;
fig. 9 shows a second block diagram of the configuration of an image processing apparatus according to an embodiment of the present application;
FIG. 10 shows a block diagram of a server according to an embodiment of the present application;
FIG. 11 shows a block diagram of an electronic device according to an embodiment of the application;
fig. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In some embodiments of the present application, as shown in fig. 1, an image processing method is provided, which is applied to a server, and includes:
104, under the condition that the occurrence frequency of the first object in the first image set is greater than a preset threshold value, determining the first object as a non-interference object;
and 106, processing the images in the first image set according to the non-interference object to obtain a target image of the target scene.
The server may receive M first images sent by the N electronic devices, that is, the server may receive images taken by a plurality of users, after the M first images are obtained, the similarity of the M first images needs to be determined, and if the M first images are all taken for a target scene, the similarity of the M first images is greater. And acquiring images with the similarity greater than or equal to a first threshold value in the M first images, and generating a first image set by using the images with the similarity greater than or equal to the first threshold value. Illustratively, the similarity between any two images in the first image set is greater than 80%, wherein M first images may all be added to the first image set, or only some of the M first images may be added to the first image set, it can be understood that, for the images with greater similarity in the same scene, the shooting angles and times are closer, and the images have reference values with respect to each other.
It can be understood that, since the target image with less interferents is finally obtained, an image with the least number of interferents or the smallest area occupied by the interferents may be selected from the first image set as a base image, and the base image may be processed to obtain the target image. This allows for improved image processing efficiency with minimal processing to obtain the target image.
After the first image set is generated, the blocking parts of the interferent in different images in the first image set are different, each image comprises at least one first object, when the number of times that one first object appears in the first image set is greater than a preset threshold value, the first object appears in multiple images, that is, the sub-image is a non-interfering object, according to this way, one or more non-interfering objects can be determined, so that the images in the image set can be processed according to the non-interfering objects to obtain a target image, and the target image can be an image of a target scene without the interferent blocking. In the process of obtaining the target image, the user does not need to frequently walk to find a specific shooting angle, the shot images of other users can provide reference for the process of determining the target image, and the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
In a possible embodiment, after generating the first image set, the method further includes: determining the first object as an interfering object when the occurrence number of the first object in the first image set is less than a preset threshold; processing the first image according to the non-interfering object to obtain a target image of the target scene, comprising: replacing the interference object with a non-interference object to obtain a target image of a target scene; wherein the interfering object and the non-interfering object are located in the same position in the images of the first image set.
In this embodiment, when the number of times that the first object appears in the first image set is less than the preset threshold, it is indicated that the first object appears in one or a few images, that is, the first object is an interfering object, according to this way, one or more interfering objects can be determined, after the interfering object and the non-interfering object are determined, the interfering object and the non-interfering object located at the same position in the images are determined, and then the interfering object is replaced with the non-interfering object, that is, the interfering object in the images is removed.
For example, a house in one image is not blocked by the interfering object, and a house in the other image is blocked by the interfering object, so that the interfering object can be replaced by the associated non-interfering object, and a part blocked by the interfering object in the image is replaced by an object which is not blocked, so that a target image with a target scene which is not blocked by the interfering object or a part blocked by the interfering object and is smaller can be obtained. The target image is obtained through mutual compensation of a plurality of images in the first image set, so that the workload of moving the user for many times and changing the shooting position is saved, and the convenience of obtaining the target image by the user is improved.
For example, as shown in fig. 2, 3, 4 and 5, different positions in four images are blocked by an interfering object, an interfering object and a non-interfering object can be determined according to the number of occurrences of an object in the same scene in the four images, and an image without the interfering object in the scene is obtained according to the interfering object and the non-interfering object, for example, the image of the gate portion in fig. 2 is blocked, while the image of the gate portion in fig. 3, 4 and 5 is not blocked, the image of the gate portion can be determined as the non-interfering object, and the triangular image blocking the image of the gate portion is the interfering object, so that the image of the gate portion position replaces the image including the triangular blocking object gate portion position in fig. 2 to obtain the gate portion image without the blocking object. It will be appreciated that other obstructions may be removed by similar methods.
In one possible application, when the first object in the first image set is a human image, the human image is removed according to the principle of only subtraction and no increase, namely the human image is identified as an interference object.
In a possible embodiment, after obtaining the target image of the target scene, the method further includes:
and sending the target image to P electronic devices, wherein the P electronic devices shoot images in the first image set, and P is less than or equal to N.
It can be understood that, since the images in the first image set may not be from all of the N electronic devices, the target image may be sent to the N electronic devices, or may be sent to only some of the N electronic devices. Specifically, the images in the first image set are obtained by shooting P electronic devices, the P electronic devices are electronic devices providing effective images for obtaining the target images, and the electronic devices, which do not shoot the first images in the first image set, indicate that the shot images are not shot for the target scene, so that the processed target images do not need to be sent to unrelated electronic devices, the photos shot by the user are prevented from being sent to unrelated people, and the privacy of the user in the shooting group can be effectively ensured.
It can be understood that, since the P electronic devices all have the captured images in the first image set, the image captured by each electronic device can be used as a basis, the image is processed to obtain a target image, and the processed target image is sent back to the corresponding electronic device. That is, the target image received by each of the P electronic devices is processed based on the first image transmitted by the electronic device.
The application of the first image set can effectively prevent a malicious user from stealing the privacy of other users in the team by using the team photographing mode.
In one possible embodiment, the N electronic devices are devices in the same shooting group; after the target image is sent to the P electronic devices, the method further includes: under the condition that a shooting group resolving prompt is received, responding to first input of Q users, updating a target image, and sending the updated image to the Q users, wherein Q is less than or equal to P.
In this embodiment, in the shooting process for the target scene, after the target image is acquired, the target image is sent to the P electronic devices. After the shooting group is established, new users may continuously join the shooting group, and the first images shot by the newly joined users may also be added into the first image set, so that as the new users heat up, the number of images in the first image set is increased, and the number of images in the first image set is increased, so that the probability that the obtained target image is affected by the interferents is reduced. When a user who establishes a shooting group wants to release the shooting group, at the moment when the number of images in the first image set is the largest, the generated target image is the image with the least interference, therefore, when the shooting group is released, the target image is sent to the P electronic devices once again, and it can be understood that the target image is generated based on the images in the current first image set, and the users of the P electronic devices can select whether to receive the target image again according to the requirements of the users, if Q users select to receive the target image again, the server will send the updated target image to the electronic devices of the Q users.
It should be noted that the reason why the updated image is not directly transmitted to the P electronic devices is that some users do not have the requirement of updating the target image, for example, some users are satisfied with the currently acquired target image, and even if some interferents block the target scene, the target image may not need to be updated due to better aesthetic sense. The updated image is sent according to the first input of the user, so that the requirements of different users can be met, and the user experience can be improved.
For example, the first input may be a single-click input or a double-click input, when a user who establishes a shooting group wants to release the shooting group, a prompt indicating whether to update the target image is popped up on the terminals of P users, and the user may perform the single-click input or the double-click input on yes or no, so that whether to receive the updated target image may be determined by the user's selection.
In one possible application, the target image may be sent to P users, and the cloud may send the processed target image to individual users even if individual users of the P users exit the shooting group before receiving the target image.
In some embodiments of the present application, as shown in fig. 6, an image processing method is provided, which is applied to an electronic device, and includes:
step 604, receiving a target image sent by the server, wherein the target image is an image obtained by processing the first image according to the non-interference object.
When the target scene needs to be shot, the user can establish a shooting group, and first images shot by the users in the shooting group can be sent to the server. The server can receive M first images sent by the N electronic devices, namely the server can receive the first images shot by a plurality of users and generate a first image set.
The method comprises the steps that the shielding parts of interference objects in different images in a first image set are different, each image comprises at least one first object, when the number of times that one first object appears in the first image set is larger than a preset threshold value, the first object appears in multiple images, namely, a sub-image is a non-interference object, according to the mode, one or more non-interference objects can be determined, and therefore the images in the image set can be processed according to the non-interference objects to obtain a target image, wherein the target image can be an image of a target scene without interference object shielding. In the process of obtaining the target image, the user does not need to frequently walk to find a specific shooting angle, the shot images of other users can provide reference for the process of determining the target image, and the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
When only one user in the shooting group exists, the number of users around the shooting group is small, and the shooting target scene is not easily interfered by an interfering object, so that the shooting group can be dispersed without processing the shot image.
The image processing method in the embodiment does not need a user to take multiple pictures, does not need the user to search for a photographing angle, and does not need the user to carry additional equipment, thereby greatly improving the effect of reducing image interference and greatly improving the user experience.
The function of sending the first image to the server may be completed by the first electronic device that establishes the shooting group, that is, other electronic devices in the shooting group may send the shot first image to the first electronic device, and the first electronic device sends the multiple first images to the server. Of course, each electronic device added to the shooting group may be completed separately, that is, each electronic device sends the shot first image to the server.
In a possible embodiment, before sending the first image to the server when the electronic device is in the shooting group, the method further includes: determining the duration of the shooting group, and acquiring the signal connection strength of the electronic equipment and the server; and under the condition that the signal connection strength is less than the preset strength, prolonging the duration.
In this embodiment, when the creator creates the shooting group, the creator may select a holding time of the shooting group, or select a dismissal time point of the shooting group, and the duration of the shooting group may be determined by the holding time or the dismissal time point, and when the duration after creating the shooting group reaches the duration, the shooting group is automatically dismissed, thereby avoiding a problem that other users continuously join the shooting group due to the fact that the users forget to dismisse the shooting group, and facilitating improvement of user experience.
Before sending the first image to the server, the signal connection strength between the electronic device and the server needs to be acquired, if the signal connection strength between the electronic device and the server is poor, or when no signal connection exists between the electronic device and the server, the first image cannot be uploaded to the server for processing, in order to ensure that the user can acquire the target image, the duration of the shooting group can be automatically prolonged, when the user moves to a position with better signals, the first image can be uploaded to the server for processing, the user can be ensured to receive the target image before the shooting group is dispersed, and the user experience is favorably improved.
In other embodiments, the duration is extended in response to a third input from any one of the P users in the event that the signal connection strength is less than the preset strength.
The duration of the shooting group can be automatically prolonged by the electronic device, and can be further prolonged by the operation of the user, for example, when the signal connection strength is smaller than the preset strength, a prompt box pops up on the screen of the electronic device, the third input can be click input, and the user can click yes or no, so that whether the duration is prolonged or not is determined according to the input of the user, and the using requirement of the user is favorably met.
Although the embodiment needs to process the image by means of the cloud, the embodiment is also suitable for scenes with no network signals or poor network signals at the shooting place.
In a possible embodiment, before sending the first image to the server, the method further includes: receiving a second input of the user; determining a first adjustment region of the first image in response to the second input; receiving a target image sent by a server, wherein the target image comprises: and receiving a target image sent by the server, wherein the target image is an image after a first adjustment area of the first image.
In this embodiment, before the first image is transmitted to the server, the user may specify an adjustment region for the first image, and only the adjustment region specified by the user is adjusted in the process of generating the target image, and the region other than the adjustment region does not need to be adjusted even if there is an interfering object.
Illustratively, the images in the first image set are captured by five users, wherein one user designates an adjustment area, and the remaining four users do not designate an adjustment area, and then the remaining four users perform overall adjustment along with the captured images, and perform a removal operation as long as the images can remove the interfering objects. And the user who appoints the adjustment area only processes the image in the adjustment area, and when the interference object which can be removed exists in the appointed adjustment area, the removal operation is executed. By adjusting the designated adjustment area in response to the second input of the user, the generated target image is prevented from removing the image which the user wants to keep, and the requirements of different users are favorably met.
If the R users designate the adjustment areas, the target images adjusted according to the designated areas are sent to the R users, and the target images without the designated adjustment areas are sent to the P-R users.
In one possible application, the second input may be a slide input, and the finger of the user may slide on the display screen of the terminal, and the designated adjustment area may be determined according to a slide track of the user.
In a possible embodiment, before sending the first image to the server, the method further includes: determining first electronic equipment for establishing a shooting group, and acquiring position information of the first electronic equipment when the shooting group is established; determining the visible range of the shooting group according to the position information; and determining the joinable range of the shooting group according to the visible range.
In this embodiment, when the first electronic device establishes the shooting group, it needs to determine a visible range and an joinable range of the shooting group, and users in the visible range and the joinable range can join the shooting group. Specifically, since the user who establishes the photographing group wants to acquire an image of a target scene, if the distance between the other users and the photographing group establisher is long, the other users are difficult to photograph the target scene, and the images photographed by the other users are probably irrelevant to the target scene, the users who can join the photographing group are limited in order to reduce the difficulty of generating the target image, and only the users within a certain range from the photographing group establisher can join the photographing group.
When the first electronic device establishes the shooting group, the position information of the first electronic device needs to be acquired, the visible range of the shooting group can be determined according to the position information, a user in the visible range can search the shooting group, the joinable range is determined according to the visible range, the first electronic device can exemplarily use a near field communication technology, for example, the first electronic device starts a bluetooth function, and a user who can search a bluetooth signal of an establisher can join the shooting group.
Other users can also join the shooting group if the other users are in the visible range and can search the Bluetooth signal of any user in the shooting group.
If other users are in the visible range and do not search the Bluetooth signal of any user in the shooting group, the user is far away from other users, the difference between the image shot by the user and the image shot by the user in the shooting group is large, if the user wants to join the shooting group, the user needs to move to the position where the user can be in the visible range and can search the Bluetooth signal of any user in the shooting group, and the joinable range is determined through the mode. The users in the visible range are closer to the target scene, the users in the adding range are closer to the users in the shooting group, and the usability of the images shot in the shooting group can be effectively improved by setting the visible range and the adding range, so that the number of irrelevant images is reduced, and the speed of generating the target images is favorably improved.
The position of the first electronic device when the shooting group is established is determined through the position information, and the position information of the first electronic device is not acquired in real time, namely, the visible range is already determined when the shooting group is established by the first electronic device, and the visible range does not change even if the first electronic device moves after the shooting group is established, so that users in the shooting group are ensured to be added for shooting the target scene. If the user changes the position and the visible range changes, the users shooting other scenes may join the current shooting group, and therefore, the situation that most users in the shooting group shoot irrelevant images is effectively avoided.
In one possible application, a user can select a team shooting mode, then select a shooting group and join the shooting group (or newly build the shooting group and join the shooting group) according to a Bluetooth scanning result, when the shooting group is scanned, the name of the shooting group, the number of people in the shooting group and the resolution time of the shooting group can be seen, and the user can actively join or actively quit the shooting group; after shooting, the photos are automatically uploaded to the group corresponding to the cloud; and performing mutual compensation between the images in the same image set according to a specified rule, and finally achieving the purpose of reducing image interference.
For example, as shown in fig. 7, the user a is a creator of the photographing group, determines the position information of the user a, determines the center of the visible range of the photographing group, and then determines the visible range of the photographing group with a preset radius. The user B can search the Bluetooth signals of the user A in the visible range, the user B can join the shooting group, the user C can search the Bluetooth signals of the user A and the user B in the visible range, the user C can join the shooting group according to the Bluetooth signals of the user A and the user B, and similarly, the user D joins the shooting group according to the Bluetooth signals of the user C. Although the E-user can search the bluetooth signal of the D-user, the D-user is not in the visible range of the photographing group, so the D-user cannot search the photographing group, and thus cannot join the photographing group. Although the G user can search the shooting group, the G user is far away from other users, and cannot search the Bluetooth signals of other users in the shooting group, so that the G user cannot join the shooting group. A. B, C, D even if the four users leave the visible range, they can still receive the target image because they have previously joined the shooting group.
In a possible embodiment, before sending the first image to the server, the method further includes: and saving the first image to the local.
In the process of generating the target image for the target scene, the interferent in the first image is removed, the obtained target image may have a large difference from the initially captured first image, and in order to meet the user's requirement, the unprocessed first image may be stored locally, so even if the first image is processed, the user may obtain the unprocessed image and the processed image, and the user may simultaneously retain the two images or store one of the images according to the user's requirement, for example, although the interferent is removed from the target image, the target image may have a lower aesthetic feeling than the unprocessed first image. Therefore, the first image is stored locally, selectivity can be provided for the user, and the user experience can be improved.
Saving the first image to the local means that the first image taken by each user is saved to the respective electronic device.
As shown in fig. 8, in some embodiments of the present application, an image processing apparatus 800 is provided for a server, the image processing apparatus 800 including:
the generating module 810 is configured to receive M first images sent by N electronic devices, and generate a first image set, where image similarity in the first image set is greater than or equal to a first threshold;
a determining module 820, configured to determine the first object as a non-interfering object if the number of occurrences of the first object in the first image set is greater than a preset threshold;
the processing module 830 is configured to process the images in the first image set according to the non-interfering object to obtain a target image of the target scene.
After the first image set is generated, the portions of the different images in the first image set, which are occluded by the interferent, are different, each image includes at least one first object, and when the number of times that one first object appears in the first image set is greater than a preset threshold, it is indicated that the first object appears in multiple images, that is, the sub-image is a non-interfering object. In the process of determining the target image, the user does not need to frequently walk to find a specific shooting angle, and the shot images of other users can provide reference for the process of determining the target image, so that the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
In one possible embodiment, the determining module 820 is further configured to: determining the first object as an interfering object when the occurrence number of the first object in the first image set is less than a preset threshold;
the processing module 830 is specifically configured to: replacing the interference object with a non-interference object to obtain a target image of a target scene; wherein the interfering object and the non-interfering object are located in the same position in the images of the first image set.
In a possible embodiment, the image processing apparatus 800 further comprises:
the first sending module is used for sending the target image to the P electronic devices, wherein the P electronic devices shoot images in the first image set, and P is less than or equal to N.
In one possible embodiment, the N electronic devices are devices in the same shooting group;
the first sending module is further configured to: under the condition that a shooting group resolving prompt is received, responding to first input of Q users, updating a target image, and sending the updated image to the Q users, wherein Q is less than or equal to P.
As shown in fig. 9, in some embodiments of the present application, an image processing apparatus 900 is proposed for an electronic device, the image processing apparatus 900 including:
a second sending module 910, configured to send the first image to the server when the electronic device is in the shooting group;
the receiving module 920 is configured to receive a target image sent by the server, where the target image is an image obtained by processing a first image according to a non-interfering object.
One or more non-interfering objects are determined, so that a target image with a target scene not shielded by the interfering object or a smaller part shielded by the interfering object can be determined according to the non-interfering objects. In the process of determining the target image, the user does not need to frequently walk to find a specific shooting angle, and the shot images of other users can provide reference for the process of determining the target image, so that the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
In a possible embodiment, the image processing apparatus 900 further includes:
the acquisition module is used for determining the duration of the shooting group and acquiring the signal connection strength of the electronic equipment and the server;
and the extension module is used for prolonging the duration time under the condition that the signal connection strength is less than the preset strength.
In a possible embodiment, the receiving module is further configured to receive a second input from the user, and determine a first adjustment region of the first image in response to the second input;
the receiving module 920 is specifically configured to: and receiving a target image sent by the server, wherein the target image is an image after a first adjustment area of the first image.
In a possible embodiment, the obtaining module is further configured to: determining first electronic equipment for establishing a shooting group, and acquiring position information of the first electronic equipment when the shooting group is established; determining the visible range of the shooting group according to the position information; and determining the joinable range of the shooting group according to the visible range.
In a possible embodiment, the image processing apparatus 900 further includes:
and the storage module is used for storing the first image to the local.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and is not described here again to avoid repetition.
Optionally, an embodiment of the present application further provides a server 1000, and fig. 10 shows a block diagram of a structure of the server according to the embodiment of the present application, as shown in fig. 10, the server includes a first processor 1010, a first memory 1020, and a program or an instruction stored in the first memory 1020 and capable of being executed on the first processor 1010, where the program or the instruction is executed by the first processor 1010 to implement the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
Optionally, an electronic device 1100 is further provided in an embodiment of the present application, fig. 11 shows a block diagram of a structure of the electronic device according to the embodiment of the present application, and as shown in fig. 11, the electronic device includes a second processor 1110, a second memory 1120, and a program or an instruction stored in the second memory 1120 and capable of being executed on the second processor 1110, and when the program or the instruction is executed by the second processor 1110, the program or the instruction implements each process of the foregoing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 12012, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1210 is configured to send a first image to a server when the electronic device is in a shooting group; and receiving a target image sent by the server, wherein the target image is an image obtained by processing the first image according to the non-interference object.
Optionally, the processor 1210 is configured to: determining the duration of the shooting group, and acquiring the signal connection strength of the electronic equipment and the server; and under the condition that the signal connection strength is less than the preset strength, prolonging the duration.
Optionally, the processor 1210 is configured to receive a second input from the user; determining a first adjustment region of the first image in response to the second input; receiving a target image sent by a server, wherein the target image comprises: and receiving a target image sent by the server, wherein the target image is an image after a first adjustment area of the first image.
One or more non-interfering objects are determined, so that a target image with a target scene not shielded by the interfering object or a smaller part shielded by the interfering object can be determined according to the non-interfering objects. In the process of determining the target image, the user does not need to frequently walk to find a specific shooting angle, and the shot images of other users can provide reference for the process of determining the target image, so that the difficulty of the shooting process is reduced. Moreover, through mutual compensation of a plurality of images, a user does not need to shoot at a specific time point, shooting efficiency can be effectively improved, and convenience of the user in shooting a target scene is improved.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode.
The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 12012 may be used to store software programs as well as various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. An image processing method applied to a server, the method comprising:
receiving M first images sent by N pieces of electronic equipment, and generating a first image set, wherein the image similarity in the first image set is greater than or equal to a first threshold;
determining a first object as a non-interfering object if the number of occurrences of the first object in the first image set is greater than a preset threshold;
and processing the images in the first image set according to the non-interference object to obtain a target image of a target scene.
2. The image processing method according to claim 1,
after the generating the first image set, the method further comprises:
determining a first object as an interfering object when the number of occurrences of the first object in the first image set is less than a preset threshold;
the processing the first image according to the non-interfering object to obtain the target image of the target scene includes:
replacing the interference object with the non-interference object to obtain a target image of the target scene;
wherein the interfering object and the non-interfering object are co-located in the images of the first image set.
3. The image processing method according to claim 1, further comprising, after obtaining the target image of the target scene:
and sending the target image to P electronic devices, wherein the P electronic devices shoot images in the first image set, and P is less than or equal to N.
4. The image processing method according to claim 3,
the N electronic devices are devices in the same shooting group;
after the target image is sent to the P electronic devices, the method further includes:
under the condition that a shooting group resolving prompt is received, responding to first input of Q users, updating the target image, and sending the updated image to the Q users, wherein Q is less than or equal to P.
5. An image processing method applied to an electronic device, the method comprising:
sending a first image to a server under the condition that the electronic equipment is in a shooting group;
and receiving a target image sent by the server, wherein the target image is an image obtained by processing the first image according to a non-interference object.
6. The image processing method according to claim 5, wherein before sending the first image to the server in the case where the electronic device is in the shooting group, further comprising:
determining the duration of the shooting group, and acquiring the signal connection strength between the electronic equipment and the server;
and under the condition that the signal connection strength is smaller than the preset strength, prolonging the duration.
7. The image processing method according to claim 5 or 6, wherein before sending the first image to the server, further comprising:
receiving a second input of the user;
determining a first adjustment region of the first image in response to the second input;
the receiving of the target image sent by the server includes:
and receiving a target image sent by the server, wherein the target image is an image after a first adjustment area of the first image.
8. An image processing apparatus applied to a server, comprising:
the generating module is used for receiving M first images sent by N pieces of electronic equipment and generating a first image set, wherein the image similarity in the first image set is greater than or equal to a first threshold value;
the determining module is used for determining a first object as a non-interference object under the condition that the occurrence frequency of the first object in the first image set is greater than a preset threshold value;
and the processing module is used for processing the images in the first image set according to the non-interference object so as to obtain a target image of the target scene.
9. An image processing apparatus applied to an electronic device, comprising:
the sending module is used for sending the first image to a server under the condition that the electronic equipment is in a shooting group;
a receiving module, configured to receive a target image sent by the server, where the target image is an image obtained by processing the first image according to a non-interfering object.
10. A server comprising a first processor, a first memory and a program or instructions stored on the first memory and executable on the first processor, the program or instructions when executed by the first processor implementing the steps of the method of any one of claims 1 to 4.
11. An electronic device comprising a second processor, a second memory, and a program or instructions stored on the second memory and executable on the second processor, the program or instructions when executed by the second processor implementing the steps of the method according to any one of claims 5 to 7.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111250774.6A CN113989706A (en) | 2021-10-26 | 2021-10-26 | Image processing method and device, server, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111250774.6A CN113989706A (en) | 2021-10-26 | 2021-10-26 | Image processing method and device, server, electronic device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113989706A true CN113989706A (en) | 2022-01-28 |
Family
ID=79741930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111250774.6A Pending CN113989706A (en) | 2021-10-26 | 2021-10-26 | Image processing method and device, server, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113989706A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114950970A (en) * | 2022-05-19 | 2022-08-30 | 杭州海康机器人技术有限公司 | Method and device for controlling transmission of target object, transmission system and electronic equipment |
-
2021
- 2021-10-26 CN CN202111250774.6A patent/CN113989706A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114950970A (en) * | 2022-05-19 | 2022-08-30 | 杭州海康机器人技术有限公司 | Method and device for controlling transmission of target object, transmission system and electronic equipment |
CN114950970B (en) * | 2022-05-19 | 2023-06-23 | 杭州海康机器人股份有限公司 | Method and device for controlling target object to transmit, transmission system and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017071085A1 (en) | Alarm method and device | |
CN105631803B (en) | The method and apparatus of filter processing | |
CN112738402B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN111159449B (en) | Image display method and electronic equipment | |
CN112291475B (en) | Photographing method and device and electronic equipment | |
CN112738403A (en) | Photographing method, photographing apparatus, electronic device, and medium | |
CN112954214A (en) | Shooting method and device, electronic equipment and storage medium | |
CN111669495B (en) | Photographing method, photographing device and electronic equipment | |
CN111601012A (en) | Image processing method and device and electronic equipment | |
CN113794829A (en) | Shooting method and device and electronic equipment | |
CN113989706A (en) | Image processing method and device, server, electronic device and readable storage medium | |
CN112511743B (en) | Video shooting method and device | |
CN117244249A (en) | Multimedia data generation method and device, readable medium and electronic equipment | |
CN112235510A (en) | Shooting method, shooting device, electronic equipment and medium | |
CN109040604B (en) | Shot image processing method and device, storage medium and mobile terminal | |
CN113286085B (en) | Display control method and device and electronic equipment | |
CN112738398B (en) | Image anti-shake method and device and electronic equipment | |
CN114745505A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN114339051A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN114245017A (en) | Shooting method and device and electronic equipment | |
CN113794833A (en) | Shooting method and device and electronic equipment | |
CN113473012A (en) | Virtualization processing method and device and electronic equipment | |
CN113761275A (en) | Video preview moving picture generation method, device and equipment and readable storage medium | |
CN112532904A (en) | Video processing method and device and electronic equipment | |
CN112153291A (en) | Photographing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |