Adjusting one or more distortions in a panoramic image
The method addresses panoramic image distortions by object detection and customized correction, enhancing image quality and user experience through efficient distortion removal.
Patent Information
- Application Number
- PCT/IB2026/053237
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-21
- Filing Date
- 2026-04-01
- Publication Date
- 2026-11-26
AI Technical Summary
Existing panoramic image stitching methods fail to accurately correct distortions and misalignments, leading to visible seams, mismatched textures, and ghosting effects, particularly in dynamic scenes or handheld camera conditions, degrading image quality and user experience.
A method and system that identifies objects in a panoramic image using YOLO object detection, generates corresponding object images, corrects deformations based on identified distortions, and combines corrected images to produce a high-quality output.
The method simplifies distortion removal by breaking down images into smaller units, customizes corrections for each object's characteristics, and reduces manual editing, resulting in rapid generation of high-fidelity panoramic images.
Smart Images

Figure IB2026053237_26112026_PF_FP_ABST
Abstract
Description
DescriptionTitle of Invention:ADJUSTING ONE OR MORE DISTORTIONS IN A PANORAMIC IMAGETechnical Field
[0001] The present disclosure generally relates to the field of image processing. More specifically, the present invention relates to improved and efficient approaches for accurately and efficiently adjusting one or more distortions in a panoramic image. Background Art
[0002] Panoramic image stitching is a widely used technique in imaging systems to combine multiple overlapping images into a single, wide-angled composite panorama. Such panoramic image stitching methods are widely utilized in areas such as photography, virtual reality, and mapping to provide comprehensive and immersive views of scenes. Distortions, such as alteration or misalignment of images, often arise during the stitching process due to the projection of three-dimensional scenes onto a two- dimensional plane. Misalignments in overlapping regions frequently lead to visible seams or mismatched textures. During stitching the panoramic images dealing with moving images, slight inaccuracies in matching the overlapping portions of sequential images can result in visible seams or mismatched textures. The existing solutions do not solve the problem of mismatched edges and ghosting effects when there are changes in position or orientation between frames.Solution to Problem
[0003] This section is provided to introduce certain aspects of the present disclosure in a simplified form that are further described below in the detailed description. This summary is not intended to identify the key features or the scope of the claimed subject matter.
[0004] An aspect of the present disclosure may relate to a method for adjusting one or more distortions in a panoramic image. The method includes identifying one or more objects in an input panoramic image. Further, the method includes generating a corresponding object image of each of the one or more objects. Furthermore, the method includes identifying one or more deformations in each of the generated object images.Thereafter, the method includes correcting the one or more generated corresponding object image, based on the identified deformations, to generate a corrected object image. Hereinafter, the method includes combining the one or more corrected object images to obtain an output panoramic image.
[0005] In an exemplary aspect of the present disclosure, the one or more objects in the panoramic image are identified based on obtaining the panoramic image from an image capturing device.
[0006] In an exemplary aspect of the present disclosure, the method further includes causing to display the output panoramic image on a display device.
[0007] In an exemplary aspect of the present disclosure, the method further includes identifying the one or more objects in the input panoramic image based on YOLO (You Only Look Once) object detection technique. The YOLO object detection technique includes dividing the input panoramic image into a grid of a pre-defined size. The grid includes a plurality of cells. For each cell of the grid, the method includes detecting one or more objects. Based on the detected one or more objects, the method includes predicting one or more bounding boxes and a class probability.
[0008] In an exemplary aspect of the present disclosure, the identifying of the one or more objects in the input panoramic image further includes extracting one or more features in each of the one or more detected objects. The method further includes identifying one or more edges of the one or more objects. Furthermore, the method includes detecting an intensity of the one or more objects.
[0009] In an exemplary aspect of the present disclosure, the one or more features of each of the one or more detected objects is at least one or more center coordinates of the grid, width of the one or more objects, height of the one or more objects, a confidence score of the one or more objects and a class probability of the one or more objects.
[0010] In an exemplary aspect of the present disclosure, for each of the identified one or more objects, the method further includes generating a corresponding reference image, wherein each of the corresponding reference images are generated based on one or more features of the identified object, using an Artificial Intelligence / Machine Learning (AI / ML) model.
[0011] In an exemplary aspect of the present disclosure, the method further includes analyzing the input panoramic image to identify a capturing mode of the input panoramic image. The input panoramic image is captured using an image capturing device.
[0012] In an exemplary aspect of the present disclosure, the identifying the one or moredeformations in each of the generated object images includes dividing each of the one or more objects images and each of the corresponding reference images into one or more blocks. The method further includes extracting one or more shape features from each of the object images and corresponding reference images. Furthermore, the method includes comparing each of the object image with the corresponding reference image to identify one or more deformations in the object image.
[0013] In an exemplary aspect of the present disclosure, the one or more shape features is at least one of a line, a curve, a length, a height, and a width of the one or more objects and the corresponding image.
[0014] In an exemplary aspect of the present disclosure, the one or more deformations is one of a barrel distortion, a pincushion distortion, a mustache distortion, and a combination thereof.
[0015] In an exemplary aspect of the present disclosure, the correcting of the one or more corresponding object image includes determining a direction and a magnitude of a shift to be performed on the object image, based on the identified deformation in each of the object images. The method further includes shifting the object image based on the determined direction and magnitude to rebuild the object image. Furthermore, the method includes comparing the rebuilt object images with the one or more reference objects. Hereinafter, the method includes iterating the rebuilding of the one or more objects image till the one or more deformations is less than a predefined threshold. Thereafter, based on a capturing mode of the input panoramic image, the method includes determining a distance and position of each of the one or more objects from the image capturing device. Hereinafter, the method includes applying a size shift to each of the blocks of the object image based on the determined distance and position.
[0016] In an exemplary aspect of the present disclosure, the combining of the one or more corrected object images to obtain the output panoramic image includes applying a layering to the corrected object image. Further, the method includes identifying one or more missing textures in the corrected object image. Furthermore, the method includes performing an inpainting on the identified one or more missing textures.
[0017] Another aspect of the present disclosure may relate to a system for adjusting one or more distortions in a panoramic image. The system comprises a processor. The system further comprises an adjustment unit coupled to the processor. The adjustment unit is configured to identify one or more objects in an input panoramic image. The adjustment unit is further configured to generate a corresponding object image of eachof the one or more objects. Furthermore, the adjustment unit is configured to identify one or more deformations in each of the generated object images. Based on the identified deformations, the adjustment unit is configured to correct the one or more generated corresponding object image to generate a corrected object image. Thereafter, the adjustment unit is configured to combine the one or more corrected object images to obtain an output panoramic image.
[0018] Yet another aspect of the present disclosure may relate to a non-transitory computer readable storage medium storing instructions for adjusting one or more distortions in a panoramic image. The instructions include executable code which, when executed by a processing resource of a system, causes the system to identify one or more objects in an input panoramic image. Further, the instructions include executable code which, when executed, causes the system to generate a corresponding object image of each of the one or more objects. Further, the instructions include executable code which, when executed, causes the system to identify one or more deformations in each of the generated object images. Further, the instructions include executable code which, when executed, causes the system to correct the one or more generated corresponding object image to generate a corrected object image, based on the identified deformations. Further, the instructions include executable code which, when executed, causes the system to combine the one or more corrected object images to obtain an output panoramic image.
[0019] This section is provided to introduce certain objects and aspects of the present invention in a simplified form that are further described below in the description. In order to overcome at least a few problems associated with the known solutions as provided in the previous section, an object of the present invention is to substantially reduce the limitations and drawbacks of the prior arts as described hereinabove.
[0020] An object of the present invention is to identify and remove one or more distortions in a panoramic image.
[0021] Another object of the invention is to break down the images into smaller units to simplify the process of identification while maintaining accuracy in removal of distortions.
[0022] Yet another object of the invention is to facilitate rapid generation of corrected panoramic images and streamlining downstream operations like layering and masking.
[0023] Yet another object of the present invention is to customize correction approaches according to each object's characteristics to improve overall accuracy and fidelity ofthe panoramic image.
[0024] Yet another object of the invention is to reduce manual editing workflows in image post processing.Brief Description of Drawings
[0025] The accompanying drawings, which are incorporated herein, constitute a part of this disclosure. Components in the drawings are not necessarily to scale, emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Some drawings may indicate the components using block diagrams and may not represent the internal circuitry of each component. It will be appreciated by those skilled in the art that disclosure of such drawings includes disclosure of electrical components or circuitry commonly used to implement such components. Although exemplary connections between sub-components have been shown in the accompanying drawings, it will be appreciated by those skilled in the art that other connections may also be possible, without departing from the scope of the invention. All sub-components within a component may be connected to each other, unless otherwise indicated.
[0026] FIG. 1 illustrates an exemplary computing environment for adjusting one or more distortions in a panoramic image, in accordance with exemplary embodiments of the present invention;
[0027] FIG. 2 illustrates a block diagram of an exemplary computing device for adjusting one or more distortions in a panoramic image, in accordance with an exemplary implementation of the present disclosure;
[0028] FIG. 3 A illustrates an exemplary illustration for extracting one or more features from a panoramic image, in accordance with exemplary embodiments of the present invention;
[0029] FIG. 3B illustrates an exemplary illustration for correcting one or more distortions in a panoramic image, in accordance with exemplary embodiments of the present invention;
[0030] FIG. 3C illustrates an exemplary illustration for composing the corrected image to obtain an output panoramic image, in accordance with exemplary embodiments of the present invention;
[0031] FIG. 3D illustrates an exemplary illustration for applying an in-painting technique to the output panoramic image, in accordance with exemplary embodiments of the present invention; and
[0032] FIG. 4 illustrates a flowchart depicting an example method for adjusting one or more distortions in a panoramic image, in accordance with an exemplary implementation of the present disclosure.
[0033] The foregoing shall be more apparent from the following more detailed description of the disclosure.Description of Embodiments
[0034] In the following description, for the purposes of explanation, various specific details are set forth in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, that embodiments of the present invention may be practiced without these specific details. Several features described hereafter can each be used independently of one another or with any combination of other features. An individual feature may not address any of the problems discussed above or might address only some of the problems discussed above. Some of the problems discussed above might not be fully addressed by any of the features described herein. Example embodiments of the present invention are described below, as illustrated in various drawings.
[0035] The ensuing description provides exemplary embodiments only, and is not intended to limit the scope, applicability, or configuration of the disclosure. Rather, the ensuing description of the exemplary embodiments will provide those skilled in the art with an enabling description for implementing an exemplary embodiment. It should be understood that various changes may be made in the function and arrangement of elements without departing from the spirit and scope of the disclosure as set forth.
[0036] Specific details are given in the following description to provide a thorough understanding of the embodiments. However, it will be understood by one of ordinary skill in the art that the embodiments may be practiced without these specific details. For example, circuits, systems, processes, and other components may be shown as components in block diagram form in order not to obscure the embodiments in unnecessary detail.
[0037] Also, it is noted that individual embodiments may be described as a process which is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations may be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process is terminated whenits operations are completed but could have additional steps not included in a figure.
[0038] The word “exemplary” as used herein to mean serving as an example, instance, or illustration. For the avoidance of doubt, the subject matter disclosed herein is not limited by such examples. In addition, any aspect or design described herein as “exemplary” and / or “demonstrative” is not necessarily to be construed as preferred or advantageous over other aspects or designs, nor is it meant to preclude equivalent exemplary structures and techniques known to those of ordinary skill in the art. Furthermore, to the extent that the terms “includes,” “has,” “contains,” and other similar words are used in either the detailed description or the claims, such terms are intended to be inclusive — in a manner similar to the term “comprising” as an open transition word — without precluding any additional or other elements.
[0039] As used herein, the expression “and / or” includes any single item from items or a combination of items associated with the items. For example, a group of A, B and / or C includes only A, only B, only C, a combination of A and B, a combination of B and C, a combination of A and C or a combination of A, B and C.
[0040] As used herein, the expression “one or more of’ includes any single item in the list or a combination of items in the list. For example, one or more of A, B and C includes only A, only B, only C, a combination of A and B, a combination of B and C, a combination of A and C, a combination of A, B and C, a combination of multiple A and multiple B, a combination of multiple A, a single B and a single C, a combination of single A, multiple B and multiple C and any other such like combinations.
[0041] As used herein the expression “at least one of’ shall be interpreted as an inclusive term that includes at least one of the succeeding elements, and shall also include multiple of such elements in different combinations. For example, the term “an exemplary parameter comprising at least one of A, B and C” may imply that the exemplary parameter may comprise only {A} or only {B } or only { C } , or {A, B, C} collectively, and may also comprise various combinations of A, B, and C (with or without any other element such as D), such as {A, B}, {B, C}, {C, A}, {C, D}, {D, A} and any other such like combinations. Further, the expression shall also be construed to be include multiple instances of such elements for example {A, A}, {A, A, D}, {A, B, C, A, B, C}, {A, B, C, A, B, C, D}, etc.
[0042] As used herein, a “processing unit” or “processor” or “operating processor” or “processing resource” includes one or more processors, wherein processor refers to any logic circuitry for processing instructions. A processor may be a general-purposeprocessor, a special purpose processor, a conventional processor, a digital signal processor, a plurality of microprocessors, one or more microprocessors in association with a (Digital Signal Processing) DSP core, a controller, a microcontroller, Application Specific Integrated Circuits, Field Programmable Gate Array circuits, any other type of integrated circuits, etc. The processor may perform signal coding data processing, input / output processing, and / or any other functionality that enables the working of the system according to the present disclosure. More specifically, the processor or processing unit is a hardware processor.
[0043] As used herein, “a computing device”, “a user equipment”, “a user device”, “a smartuser-device”, “a smart-device”, “an electronic device”, “a mobile device”, “a handheld device”, “a wireless communication device”, “a mobile communication device”, “a communication device” may be any electrical, electronic and / or computing device or equipment, capable of implementing the features of the present disclosure. The user equipment / device may include, but is not limited to, a mobile phone, smart phone, laptop, a general-purpose computer, desktop, personal digital assistant, tablet computer, wearable device or any other computing device which is capable of implementing the features of the present disclosure. Also, the user device may contain at least one input means configured to receive an input from at least one of a transceiver unit, a processing unit, a storage unit, a detection unit and any other such unit(s) which are required to implement the features of the present disclosure.
[0044] As used herein, a “storage unit” or a “memory unit” refers to a machine or computer- readable medium including any mechanism for storing information in a form readable by a computer or similar machine. For example, a computer-readable medium includes read-only memory (“ROM”), random access memory (“RAM”), magnetic disk storage media, optical storage media, flash memory devices or other types of machine- accessible storage media. The storage unit stores at least the data that may be required by one or more units of the system to perform their respective functions.
[0045] As used herein “interface” or “user interface” refers to a shared boundary across which two or more separate components of a system exchange information or data. The interface may also be referred to a set of rules or protocols that define communication or interaction of one or more modules or one or more units with each other, which also includes the methods, functions, or procedures that may be called.
[0046] All modules, units, components used herein, unless explicitly excluded herein, may be software modules or hardware processors, the processors being a general-purposeprocessor, a special purpose processor, a conventional processor, a digital signal processor (DSP), a plurality of microprocessors, one or more microprocessors in association with a DSP core, a controller, a microcontroller, Application Specific Integrated Circuits (ASIC), Field Programmable Gate Array circuits (FPGA), any other type of integrated circuits, etc.
[0047] When proj ecting a three-dimensional scene onto a two-dimensional plane, obj ects near the edges of the panorama often appear bent, stretched, or unnaturally distorted, resulting in an image that fails to accurately represent the original scene. Additionally, perspective anomalies, such as misaligned vanishing points caused by camera movement, further contribute to the visual inconsistency of the final panorama. Stretching and compression of certain parts of the panorama exacerbate this issue, as the appearance of objects varies depending on their position relative to the camera's field of view. Sections closer to the center appear proportionally normal, whereas those at the periphery are more prone to visual artifacts.
[0048] Further, improper camera movement during image capture significantly impacts the alignment process. Uneven or shaky rotations introduce alignment errors, making it difficult to seamlessly integrate the images into a single panorama. This issue is compounded when capturing handheld panoramic shots, where stabilization mechanisms are often insufficient to maintain uniform motion. The combined effect of these problems reduces the overall image quality, leading to noticeable artifacts in the panorama. Consequently, the user experience is adversely affected, as the final output lacks the clarity and realism expected in high-quality panoramic images.
[0049] In dynamic environments, moving objects exacerbate errors, creating ghosting or other artifacts. Improper camera movement, such as uneven rotation, further complicates image alignment, degrading the quality of the final panorama. Additionally, existing stitching methods may struggle to correct these errors without significant computational costs. While this process has numerous applications, ranging from virtual tours to large-scale mapping, conventional panoramic stitching methods face several challenges that degrade image quality and user experience.
[0050] Existing solutions attempt to address these problems through post-processing algorithms and real-time stitching enhancements. However, they are often computationally intensive and fail to fully eliminate stitching errors, particularly in challenging scenarios involving dynamic scenes or handheld camera movement.
[0051] In view of the aforementioned, embodiments of the present disclosure relate toapproaches for adjusting one or more distortions in a panoramic image. In one example, one or more objects may be identified in an input panoramic image. Thereafter, a corresponding object image may be generated for each of the identified objects. Further, deformations may be identified in each of the generated object images. Based on the identified deformations, the generated corresponding object images may be corrected to generate a corrected object image. Furthermore, the corrected object images are combined to obtain an output panoramic image.
[0052] As would be appreciated, the approaches of the present invention provide a number of technical advancements. For example, the present invention provides a breakdown of the input panoramic image into smaller units to simplify the process of identification while maintaining accuracy in removal of distortions.
[0053] As would be further appreciated, the present invention customizes the panoramic image correction approach according to each object's characteristics to improve overall accuracy and fidelity of the panoramic image.
[0054] The present subject matter is further described with reference to the accompanying figures. Wherever possible, the same reference numerals are used in the figures and the following description to refer to the same or similar parts. It should be noted that the description and figures merely illustrate principles of the present subject matter. It is thus understood that various arrangements may be devised that, although not explicitly described or shown herein, encompass the principles of the present subject matter. Moreover, all statements herein reciting principles, aspects, and examples of the present subject matter, as well as specific examples thereof, are intended to encompass equivalents thereof.
[0055] The manner in which the distortions are identified in example panoramic images are determined, and are explained in detail with respect to FIGS. 1-4. It is to be noted that drawings of the present subject matter shown here are for illustrative purposes and are not to be construed as limiting the scope of the subject matter claimed.
[0056] Referring to FIG. 1, an exemplary computing environment 100 with an exemplary system 102 is shown. In one example, the exemplary computing environment 100 includes a system 102. The system 102 may be used for adjusting one or more distortions in a panoramic image, in accordance with an implementation of the present subject matter. Examples of such distortions may include, but are not limited to, straight lines appearing as curves, darkening at the edges, distant objects appearing smaller, overlapping of images, blurred and deformed object if the object is moving,and a combination thereof.
[0057] Examples of such system 102 may include, but are not limited to, a personal computer, a handheld computer, a mobile device, and a portable computer. In one example, the system 102 may be used by a User. In such cases, the system 102 may also be referred to as the User Equipment (UE). In another example, the system 102 may be a part of a larger system (not depicted in FIG. 1) which may be used in image processing. In such cases, based on the inputs received, the system 102 may receive any input image, and may adjust one or more distortions on such input image. In yet another example, the system 102 may be any system capable of receiving inputs, processing it, and displaying output information.
[0058] Continuing further, as depicted in FIG. 1, the system 102 includes a processor 104. In one example, the processor 104 may be a dedicated special -function processor or a general-purpose processor which may be used by the system 102, in conjunction with other elements of the computing environment 100, to implement the features of the present disclosure.
[0059] The system 102 further includes an image capturing device 106. The image capturing device 106 may be capable of capturing an image, and providing the captured image to the system 102 for further processing. Examples of such image capturing devices 106 may include, but are not limited to, a camera, a digital camera, a smart pen-based camera, a video camera, AR / VR set, and the like. In one example, the image capturing device 106 may be integrated within the system 102 and may be an in-built part of the system 102, such as in exemplary cases of a portable mobile phone or a computing device. In another example, the image capturing device 106 may be coupled to the system 102, such as in exemplary cases of a stand-alone camera, webcam, etc. being coupled to a computing device. However, it may be noted that all such examples are exemplary, and should not be construed to limit the scope of the present subject matter in any manner. Any other form of image capturing device 106 may also be integrated within or coupled to the system 102, and would lie within the scope of the present subject matter.
[0060] The system 102 may further include a panoramic image 116. Further, examples of such display devices 232 may include, but are not limited to, a desktop, a mobile display, a television, and the like. Based on the processing by the system 102 and signals generated by the system 102, the display device 108 may be capable of displaying the output. The display device 108, in one example, as depicted in FIG. 1, may beintegrated within and a part of the system 102. In another example, as would be described in conjunction with FIG. 2, the display device 108 may be coupled to the system 102.
[0061] Continuing further, the system 102 may be connected to a centralized server 110 over a network 112. The centralized server 110 may include an adjustment unit 114.
[0062] As used herein, the centralized server 110 may be a set of one or more systems, which may be responsible, either individually or collectively, to perform a set of functions to enable the processing of one or more sets of data that may be received from the system 102, for adjusting the one or more distortions. Further, the centralized server 110 may be one of a local server, a remote server, or a combination thereof. Alternatively, the central server 110 may also be implemented as a network-based, cloud-based, or a software-based server.
[0063] Further, the adjustment unit 114 may be implemented as a software component that may be configured to analyse one or more sets of data, on the basis of instructions received from the processor 104 of the system 102. Alternatively, the present disclosure also encompasses that the adjustment unit 114 may also be a general or specific function hardware component, such as a processor, or a combination of both software and hardware components.
[0064] It is important to note that, as depicted in FIG. 1, the adjustment unit 114 may be present in the centralized server 110, which in turn may be in communication with the system 102, however, it may be noted that such implementation is not to be construed to limit the scope of the present subject matter in any manner. In another example, the adjustment unit 114 may be a part of the system 102 itself, which would be further explained later in conjunction with FIG. 2.
[0065] Further, as used herein, the network 112 may be one of a local area network (LAN) or a wide area network (WAN), i.e., the internet. The system 102 and the centralized server 110, as embodied herein, may be connected to the network 112 using at least one of a wired connection and a wireless connection, or a combination thereof. A wired connection may comprise an ethemet connection, an optical fibre connection, or any other wired network connection as may be known to a person ordinarily skilled in the art. Further, a wireless connection may comprise a connection based on at least one of the following wireless communication technologies, such as Wi-Fi, Li-Fi, Radio Frequencies, Infrared, Cellular Communication (3G, 4G, 5G), Bluetooth, Near Field Communication (NFC), satellite communication and / or any other wirelesscommunication technology as may be known to a person ordinarily skilled in the art.
[0066] In operation, the image capturing device 106 may capture a panoramic image 116. The panoramic image 116 may be a part of a scene. The panoramic image 116 may encompass various scenarios, including but not limited to, a moving object within a scene, a complete 360-degree view, a virtual reality environment, or a combination thereof.
[0067] As depicted in FIG. 1, in one example, the panoramic image 116 of cars moving on a wide road is being captured by the image capturing device 106 of the system 102. It may be noted that the panoramic image 116, as depicted in FIG. 1, is shown only for the purpose of illustration, and in no manner should be construed to limit the scope of the present subject matter in any manner. The system 102, using the image capturing device 106 or any other means, may capture any panoramic image 116 from any scene. All such variations and examples would be covered within the scope of the present subject matter.
[0068] On capturing the panoramic image 116, the system 102 implements the method of adjusting the one or more distortions in the panoramic image 116, as per an example of the present subject matter. In an example, the panoramic image 116 may have a misalignment, unnatural stretching of objects, loss of clarity in objects, multiple images of moving objects, and the like.
[0069] In the context of the present example, on obtaining the panoramic image 116, the adjustment unit 114 may identify one or more objects in the input panoramic image. Upon identification of the one or more objects, the adjustment unit 114 may generate corresponding object images of each of the objects in the panoramic image 116. Thereafter, the adjustment unit 114 may then identify one or more distortions in each of the generated object images. Based on the identified distortions, the adjustment unit 114 may correct the generated corresponding object images to generate a corrected object image. The one or more corrected object images may then be combined by the adjustment unit 114 to obtain an output panoramic image. In one example, the adjustment unit 114 may then cause the output panoramic image to be displayed on the display device 108.
[0070] The manner in which the system 102 may adjust one or more distortions in the panoramic image, in conjunction with correcting the distortion and other elements of the present disclosure, is illustrated with further details in conjunction with FIGS. 2-4.
[0071] Referring to FIG. 2, a block diagram of an exemplary computing device 200 foradjusting one or more distortions in a panoramic image, in accordance with an implementation of the present subject matter, is shown. Further, FIGS. 3A-3D illustrates block diagrams of exemplary methods for extracting one or more features from the panoramic image 300 A, correcting each of the objects 300B, composing each of the corrected objects in the panoramic image 300C and identifying missing texture in the panoramic image 300D respectively, in accordance with exemplary implementations of the present disclosure. It may be further noted that the manner in which the computing device 200 is operating, in conjunction with other components in the block diagrams 300A-300D, for adjusting the one or more distortions in the panoramic image, is depicted in FIGS. 3 A-3D. Further, FIG. 2 and FIGS. 3 A-3D have been explained in conjunction with each other in the foregoing description, and same reference numerals have been used wherever applicable.
[0072] In one example, the computing device 200 may be implemented as the system 102 as explained in FIG. 1. Further, the computing device 200 may be implemented as or within a plurality of devices, including, but not limited to a smartphone, a smartwatch, a smart pen, a digital camera, an AR / VR headset, a laptop or desktop computer, a computer-based kiosk, and / or any other computing device as may be known to a person ordinarily skilled in the art.
[0073] The computing device 200 may be used for adjusting one or more distortions in a panoramic image. Examples of such distortions may include, but are not limited to, a misalignment, unnatural stretching of objects, loss of clarity in objects, multiple images of moving objects, and a combination thereof.
[0074] Further, it may be noted that the present example and the foregoing description has been explained in context of determination of one or more distortions in a panoramic image and the terms ‘an input panoramic image’, ‘the input panoramic image’, and ‘an output panoramic image’ are used merely for the sake of conciseness and ease of understanding, and in no manner should be construed to limit the scope of the present subject matter. The approaches of the present subject matter may be used for determining any number of distortions in any number of input panoramic images, and all such examples would also lie within the scope of the present subject matter.
[0075] As depicted in FIG. 2, the computing device 200 may include processor(s) 104 and unit(s) 202 which may be connected to the processor 104. The unit 202 may further comprise sub-components for implementing one or more features of the present disclosure, such as, an adjustment unit 114, a storage unit 208, an object detection unit210, an object correction unit 212, an object compositor unit 214 and other unit(s) 216, wherein either, or all the sub-components may also be connected to the processor 104. It may be noted that the other unit(s) 216 may perform any function that may be ancillary to any of the units 114, 208, 210, 212, and 214 for identifying and correcting one or more deformations in the panoramic image.
[0076] The computing device 200 may further include an Artificial Intelligence / Machine Learning (AI / ML) model 204. The AI / ML model 204 may be implemented as any artificial intelligence or machine learning model, known and understood to a person skilled in the art. The explanation for the same has not been provided here for the sake of brevity.
[0077] Further, the computing device 200 may be configured to obtain and store one or more sets of data 206, which may further comprise an input panoramic image 218, one or more objects 220, one or more deformations 222, one or more corrected objects 224, corresponding reference images 226, and other data 228. In one example, the input panoramic image 218 may be implemented and referred to as the input panoramic image 116, as depicted in and explained in conjunction with FIG. 1. It may be noted that the other data 228 may comprise any data that may be ancillary, and / or additional to the other sets of data comprised in the data 206, any or all of which may be stored or obtained by the computing device 200 to adjust one or more distortions in a panoramic image.
[0078] As further depicted in FIG. 2, an image capturing device 230 and a display device 232 may be communicatively coupled to the computing device 200. In one example, the image capturing device 230 may be implemented as the image capturing device 106, and the display device 232 may be implemented as the display device 108 as depicted in and explained in conjunction with FIG. 1.
[0079] Examples of such image capturing devices 230 may include, but are not limited to, a smartphone, a digital camera, a smart pen-based camera, a video camera, AR / VR set, and the like. Further, examples of such display devices 232 may include, but are not limited to, a desktop, a mobile display, a television, and the like.
[0080] In one example, any or all of the image capturing devices 230 and / or the display devices 232 may be implemented in one or more of a wide range of user devices, such as phones, pens, watches, laptop, desktop, glasses, AR / VR headsets, etc. It may be further understood by a person ordinarily skilled in the art that the aforementioned list of devices is merely exemplary and not intended to limit the scope of the presentsubject matter in any manner. It may be further understood that the plurality of units 202 in the present subject matter may be implemented in any other device of the user to intelligently identify and correct one or more distortions in an image. All such examples would lie within the scope of the present subject matter.
[0081] In another example, the image capturing devices 230 and the display devices 232 may be implemented in different devices working in conjunction, or otherwise, e.g., the computing device 200 may be present in a user / viewer device to implement the features of the present invention. The computing device 200 may be a part of the user device / or may be independent of but in communication with the user device. In another implementation, the computing device 200 may reside in a server. In yet another implementation, the computing device 200 may reside partly in the server and partly in the user device.
[0082] In operation, the image capturing device 230 may capture an input panoramic image 218. The input panoramic image 218 may be captured from a scene. In one example, the input panoramic image 218 may be obtained from one of a digital camera, a mobile phone, a scanner, and the like. In an implementation of the present disclosure, the input panoramic image 218 may include one or more deformations 222 and / or distortions. The one or more deformations 222 includes but may not be limited to misalignment, unnatural stretching of objects, loss of clarity in objects, multiple images of moving objects.
[0083] The object detection unit 210 may obtain an input panoramic image 218 from the image capturing device 230. As depicted in FIG. 3 A, the object detection unit 210 may then provide the input panoramic image 218 to an artificial intelligence / machine learning (AI / ML) model 204. In one example, the AI / ML model 204 may be implemented as a You Only Look Once (YOLO) object detection model 302A. As would be understood to a person skilled in the art, utilizing the YOLO object detection model 302 A may facilitate precise identification of objects in real-time. In an embodiment, the artificial intelligence model may identify and classify the input panoramic image 218 in a single pass efficiently.
[0084] Using the YOLO object detection model 302A, the input panoramic image 218 may then be segmented into a plurality of parts to identify one or more objects in the input panoramic image 218. This has been depicted by step 304A in FIG. 3A.
[0085] In one example, to identify the one or more objects in the input panoramic image, the input panoramic image 218 may be segmented into a grid of a pre-defined size. Thegrid may be in the form of a SXS grid. For instance, the input panoramic image 218 is divided into a 10X10 grid implying that the input panoramic image 218 gets divided into 100 grids. The grid may include a plurality of cells. Each of the plurality of cells may be further configured to apply the YOLO object detection model 302A to identify one or more objects.
[0086] In an implementation of the present disclosure, at step 306A, 306B and 306C, the object detection unit 210 may identify an object 1, an object 2, and an object 3 in the input panoramic image 218. The one or more objects may be represented using bounding boxes. As may be understood by a person skilled in the art, the bounding boxes refer to rectangular outlines to define the location and size of the identified one or more objects.
[0087] Further, after identification of the one or more objects in the input panoramic image 218, as depicted in FIG. 3 A, at step 308 A, the object detection unit 210 may then apply a canny edge detection method. As would be understood by a person skilled in the art, the canny edge detection method may extract one or more features of each of the one or more objects. In one example, the one or more features include but may not be limited to, one or more center coordinates of the bounding boxes, a width of the one or more objects, a height of the one or more objects, a confidence score of the one or more objects and a class probability of the one or more objects. The confidence score refers to a value of the confidence of the artificial intelligence model that an object exists in the bounding box. The class probability refers to a likelihood of the one or more objects to be belonging to a specific class.
[0088] For instance, the artificial intelligence model may determine the class probability as 0.8 for the object being a tree, which shows high probability of the object to be a tree. In another example, the artificial intelligence model may determine the class probability for a car as 0.1 which shows less likelihood for the object being a car.
[0089] Thereafter, based on the extracted one or more features, the object detection unit 210 may identify one or more edges of each of the one or more objects. To detect the one or more edges of the one or more objects, noise may be removed from the one or more objects using a 5x5 Gaussian filter. The noise removal is done based on the assumption that the noise exists due to sudden intensity changes, where the sudden intensity change is detected as edges.
[0090] Hereinafter, the object detection unit 210 may detect an intensity of each of the one or more objects. To detect the intensity, the canny edge detection model may be used foridentification of the one or more edges. Furthermore, the object detection unit 210 may convert the identified one or more objects in gray scale.
[0091] In furtherance to converting the identified one or more objects to gray scale, the gray scale objects may be converted to a plurality of colour blocks. The plurality of colour blocks may help to identify the intensity of each of the one or more objects accurately. Further, based on the colour blocks, a value corresponding to each of the colour blocks is stored in a data structure arranged in rows and columns. The value may range from 0-255. For instance, in one implementation, the data structure for the colour blocks may be represented as {236, 189, 189, 0}.
[0092] Thereafter at step 310A, the object detection unit 210 may detect a distortion type of the input panoramic image 218. In one example the distortion type may be one of a barrel distortion, a pincushion distortion, or a mustache distortion. As would be understood by a person skilled in the art, the barrel distortion refers to a distortion in the input panoramic image 218, where the distortion may make a barrel like effect, wherein straight lines appears to be curved outwards. As would be further understood by the person skilled in the art, the pincushion distortion refers to straight lines becoming curved inwards, where the objects near the center of the input panoramic image 218 appear relatively undistorted. As would be further understood by the person skilled in the art, the mustache distortion refers to where there is an alternating inward or outward curvatures and the edges show mix of pincushion and barrel distortion. The mustache distortion may not align the center of the input panoramic image 218 perfectly.
[0093] Based on an analysis of the input panoramic image 218, the object detection unit 210 may identify the distortion type.
[0094] In yet another example, the type of deformation may be determined based on a deviation score. The deviation score refers to a numerical value that measures how much a particular feature or data point differs from a reference value. If the deviation score for curvature and edge properties (AE) will be higher or if the overall deviation score is higher in edge-related properties, the type of distortion may likely be the barrel distortion.
[0095] In another example, if the deviation score is in edge-related properties (AE) but is opposite in sign to barrel distortion, it may likely be the pincushion distortion. It may be noted that a smaller area and perimeter deviation and larger curvature deviation suggests the pincushion distortion.
[0096] In another example, a higher deviation in shape and edge properties due to both inward and outward. A high deviation in both area / perimeter and edge properties may indicate a mustache distortion.
[0097] Furthermore, at step 312A, after identifying the distortion type, the object detection unit 210 may determine a capturing mode of the input panoramic image 218. In one example, the capturing mode may be determined based on the identified distortion type. As would be understood to a person skilled in the art, the capturing mode may be one of central axis capture, linear capture, and an axial linear capture. To determine the capturing mode, the object detection unit 210 may divide the input panoramic image 218 into at least three parts. In one example, the capturing mode may be identified based on the identified type of deformation. The capturing mode may be identified based on if any of the 3 parts has maximum count of a specific distortion.
[0098] In an implementation of the present disclosure, for a barrel distortion, the object detection unit 210 may identify the capturing mode as the central axis capture. For instance, a 360-degree photo taken by rotating the image capturing unit on a tripod around the center where the central portion is clear and edges have an outward curve.
[0099] In another implementation of the present disclosure, for the pincushion distortion, the object detection unit 210 may identify the capturing mode as the linear capturing mode.
[0100] In yet another implementation of the present disclosure, for the mustache distortion, the object detection unit 210 may identify capturing mode to be the axial linear capture.
[0101] Further, at step 314 A, the object detection unit 210 may analyze a depth of each of the one or more objects. In an implementation of the present disclosure, the analysis of depth includes but may not be limited to extracting one or more features of each of the objects, calculating a distance of each of the object from the image capturing device 230, and calculating a z-order value for each of the objects.
[0102] At step 316A, for analysis of depth of each of the objects, the object detection unit 210 may extract one or more shape features from each of the object images and corresponding reference images. In an implementation of the present disclosure, the one or more shape features include but may not be limited to at least one of a line, a curve, a length, a height, and a width of the one or more objects and the corresponding reference image. In one example, the object detection unit 210 may count a number of pixels inside the object, compute the length of the object image's boundary, calculate an aspect ratio (AT?) = Width / Height and Circularity (C) of the object image and the corresponding reference image 226 (C) = 4TIA / P2.
[0103] Furthermore, at step 318A, to analyze the depth, the object detection unit 210 may calculate a distance of each of the one or more objects from the image capturing device 230. In one example, if the input panoramic image 218 is a portrait panoramic image, the distance of the one or more objects from the input panoramic image 218 may be calculated by using a height of at least the image capturing device or the input panoramic image, along with a vertical position of the center of mass. To calculate the distance, the formula may be:wherein, / / real represents real -world height of the object in centimeters; / / device represents height of the device / image in pixels; / / object represents height of the object in the image in pixels;COMy represents vertical center of mass of the object in pixels; / / device / 2 = vertical center of the image; andD represents a distance of the object from the image capturing device.
[0104] In another example, if the input panoramic image 218 is a landscape panoramic image, distance of the one or more objects from the input panoramic image 218 may be calculated by using a width of the image capturing device or the input panoramic image 218. In an implementation of the present disclosure, a formula to calculate the distance in the landscape panoramic image may be:Wreal x WdeviceD = - 7 - r. / (|C0Mx — Wdevice ■ ■ 2| )\\ Wobject i!whereinI / / real represents the real -world width of the object in centimeters;Wdevice may represent the width of the device / image in pixels;Wobject represents the width of the object in the image in pixels;COM* may represent the horizontal center of mass of the object in pixels; and Wdevice / 2 may represent the horizontal center of the image.
[0105] After calculating the distance of each of the one or more objects, at step 320A, the object detection unit 210 may assign a Z-order value to the calculated distance. As may be known to a person skilled in the art, the Z-order value refers to an arrangement ofoverlapping two-dimensional objects. In one example, the Z-order value may range from 0-5, where Z-order value of 1 may represent the one or more objects to be nearer to the computing device and Z-order value of 5 may represent the one or more objects as farthest from the computing device.
[0106] In one example, the distance may be calculated by considering the center of mass of each of the one or more objects, the size of the object image in pixels, the size of the image capturing device in pixels, for any deformation from the object image being off- center.
[0107] A higher value of the z-order value may represent a higher distance from the image capturing device, whereas a lower value of the z-order value may represent a lower distance from the image capturing device.
[0108] In an implementation of the present disclosure, the input panoramic image 218 may be divided into at least three zones to assign the z-order value. The at least three zones may be a zone 1, a zone 2 and a zone 3. It is to be noted that the zone 1 may represent an object image to be located at the left side of input panoramic image. Further, the zone 2 may represent an object image located at the center of the input panoramic image 218 and the zone 3 may represent an object image located at the right of the input panoramic image.
[0109] Thereafter, the object detection unit 210 may generate a corresponding reference image 226 of each of the one or more objects. The corresponding reference image 226 may be generated based on the determined one or more features of the detected object. Additionally, the step of generating the corresponding reference image 226 may be performed by an artificial intelligence unit. In one example, the artificial intelligence unit may be a Stable Diffusion XL image generation model. As may be known to a person skilled in the art, the Stable Diffusion XL image generation model generates the corresponding image using text information. Using the Stable Diffusion XL image generation model to generate the corresponding reference image 226 enables to control the one or more features of the corresponding reference image. To generate the corresponding reference image 226 accurately, the extracted one or more features may be integrated into the object detection model 210. The extracted one or more features may be converted into a structured data using the YOLO image detection 302 A technique and the canny edge detection technique. The structured data may further be stored in a storage unit 208. In one example, the structured data may be stored in a JSON format, a NumPy array, and the like.
[0110] It may be noted by a person skilled in the art, that a neural network model may control the Stable Diffusion XL image generation model to generate the corresponding reference image 226 to relate with the real-world characteristics of the identified one or more objects. In one example, the neural network model may be a ControlNet. The ControlNet may be configured to integrate the one or more extracted features to the Stable Diffusion XL image generation model.[OHl] Thereafter, the object detection unit 210 may identify one or more deformations 222 in each of the generated object images. The one or more deformations 222 include but may not be limited to a shape deviation and an edge deviation. To identify the one or more deformations 222, each of the object image and the corresponding reference image 226 may be divided into grids.
[0112] Based on the extracted one or more shape features, the object detection unit 210 may compare each of the object image with the corresponding reference image 226 to identify one or more deformations 222 in the object image. In one example, the difference in area may be calculated byA (object image) — A (corresponding reference image).
[0113] Similarly, the difference in perimeter may be calculated byP (object image) — P (corresponding reference image).
[0114] In a similar manner, the object detection unit 210 may calculate the aspect ratio deviation and the circularity deviation for the object image based on the one or more shape features of the corresponding reference image. Further, the object detection unit 210 may calculate an overall shape deviation. As would be understood by a person skilled in the art, the overall shape deviation refers to the weighted sum of all the deviations ( wlAA + w2AP + w3A / ? + w4AC).
[0115] To calculate and compute the edge deviation, the object detection unit 210 may utilize a Hough Transform feature extraction technique to detect straight line segments in the one or more objects images and the corresponding reference image. As would be understood by a person skilled in the art, the Hough Transform feature extraction technique may be used to identify geometric shapes, particularly straight lines. Further, the object detection unit 210 may compare the detected edges of the object image with the detected edges of the corresponding reference image.
[0116] In furtherance to calculating the edge deviation, a mean curvature (K) of contour edges may be computed using a formula:K =| x"y' - y"x' | / ((x'2 + y'2)3 / 2).
[0117] Further, the object detection unit 210 may compare the object image with the corresponding reference image 226 to calculate the curvature (AE ) of the ideal shape, which should be close to zero for straight edges to compute deviation using a formula : AE =| Kobject — Kideal I.
[0118] Returning to the present example, once the one or more features of each of the objects have been identified, thereafter, the object correction unit 212 may correct the one or more corresponding object images. This has been depicted in FIG. 3B. FIG. 3B illustrates a flowchart of an exemplary method 300B for correcting each of the object images based on the calculating a shift performed by the object correction unit 212, as per an implementation of the present subject matter. In one example, the method 300B may be implemented / performed by the object correction unit 212.
[0119] The object correction unit 212 may be configured to correct the corresponding object image based on the identified one or more deformations 222. To perform the correction, the object correction unit 212 may determine the shift. The shift may be calculated for each of the identified objects in the input panoramic image.
[0120] As depicted at step 302B, the object correction unit 212 may perform an intensitybased shift. As would be understood by a person skilled in the art, the intensity-based shift refers to adjusting an image based on differences in pixel intensity values. In one example, if an object image appears too bright or dark in a specific area, the intensitybased shift may be calculated by comparing the object image with the corresponding reference image 226 to smoothen the differences for a balanced appearance.
[0121] As further depicted in FIG. 3B, at step 304B, the object correction unit 212 may perform an edge-based shift. As would be further understood by a person skilled in the art, the edge-based shift refers to aligning and fixing discontinuities in edges or boundaries of the object image. In one example, if a table edge appears misaligned in the input panoramic image, the edge-based shift may be calculated to adjust the misalignment and restore to a smooth line.
[0122] Further at step 306B, the object correction unit 212 may perform a shape-based shift.As would be further understood by a person skilled in the art, the shape-based shift refers to correcting distortions in the overall geometry of the object image. In one example, if the boundary of a bag appears incomplete in the input panoramic image, the shape-based shift may be calculated to adjust the geometry to restore the bag’sproper boundary.
[0123] To perform the each of the shifts, the object correction unit 212 may divide the one or more object images into one or more blocks of a pre-defined size. The blocks may be in the form of SXS where S may represent the number of squares. In one example, the S may represent 9X9 blocks. Further, to correct the one or more object images, the object correction unit 212 may compare the object image with the one or more corresponding reference images and based on the comparison, generate a rebuilt object image.
[0124] As further depicted in FIG. 3B, at step 308B, the object correction unit 212 may set a predefined initial value for one or more tuning parameters for performing the comparison of the rebuilt object image with the corresponding reference image. The one or more tuning parameters may be one of an alpha (a), a beta (P) and a gamma (y). The one or more tuning parameters refers to parameters that may help the object correction unit 212 to decide how much focus to give to different image properties. The alpha tuning parameter may control a measuring of the brightness difference. The beta tuning parameter may control the measurement of edge differences. The gamma tuning parameter may control the measurement of shape differences. In one example, the initial value may be set at 0.5 for each of the one or more tuning parameters. Further, the comparison includes analyzing the brightness of each of the blocks to measure the alpha tuning parameter. The adjustment unit 114 may detect the edges and measure shapes in each of the blocks to measure the edge difference and track shape deformations, respectively.
[0125] In furtherance to comparing the object image, the object correction unit 212 may determine a distance and position of each of the one or more objects from the image capturing device 230. The determination of the distance and the position may be based on the determined capturing mode of the input panoramic image.
[0126] Furthermore, at step 310B, based on the determined distance and position, the object correction unit 212 may apply a size shift to each of the blocks of the object image. To correct the one or more objects, based on one or more differences found using the one or more tuning parameters, each of the block’s position may be adjusted. Further, the adjusted blocks may be combined together to rebuild the corrected image.
[0127] In one example, after correcting the one or more deformations 222 in the object image, a size shift may be calculated for each of the blocks of the grid. In an implementation of the present disclosure, a formula to calculate the size shift may be:Area of corrected blockSize Shift =Area of Original block
[0128] In another implementation of the present disclosure, the object correction unit 212 may perform a comparison between the dimensions of an original object image block with the corrected image block. In one example, the formula to compare the dimensions may be:Width of Corrected BlockWidth Scale =Width of Original BlockHeight of Corrected BlockHeight Scale =Height of Original Block
[0129] Based on the comparison of the dimensions and the size shift, a new center of mass may be calculated after obtaining the corrected image. In an example, a formula to calculate the new center of mass may be:, COMy, the center of mass has shifted due to the corrections.
[0130] In an implementation of the present disclosure, if the new COM has shifted from the original COM, the adjustment unit 114 is configured to apply a global translation to shift the entire corrected object back to its original COM using a formula:Ax = COMx — COM'x, Ay = COMy — COM'y
[0131] The object correction unit 212 may further compare the corrected image to the corresponding reference images again. In an implementation of the present disclosure, the comparison may be performed using one of a mean squared error (MSE), a peak signal to noise ratio (PSNR) and a structural similarity index (SSIM). Based on the comparison, the object correction unit 212 may iterate the rebuilding of the one or more object images till the one or more deformations 222 reaches a predefined threshold. The predefined threshold may be set by a system operator. In one example, the predefined threshold may be one of the MSE is 33.33, the PSNR is 33.0 dB and the SSIM is 0.80.
[0132] In an implementation of the present disclosure, if the MSE of the corrected image is less than or equal to the predefined MSE, or the SSIM of the corrected image is greater than or equal to the predefined SSIM, or the corrected PSNR is greater than equal to the predefined PSNR, the adjustment unit 114 may be configured to stop the iteration.
[0133] Returning to the present example, once each of the objects have been corrected, thereafter, the object compositor unit 214 may combine the one or more correctedobject images to obtain a composed image. This has been depicted in FIG. 3C. FIG.3C illustrates a flowchart of an exemplary method 300C for combining the each of the corrected objects based on the depth analysis performed by the object detection unit 210, as per an implementation of the present subject matter. In one example, the method 300C may be implemented / performed by the object compositor unit 214.
[0134] As depicted in FIG. 3C, at step 302C, to compose the one or more corrected object images, the object compositor unit 214 is configured to apply a layering to the corrected object image. As may be known to a person skilled in the art, composing refers to placing each of the corrected objects together in a single frame. The application of layering includes but may not be limited to placing each of the one or more corrected objects in a depth array. In one example, the depth array may refer to arrangement of each of the corrected objects in layers based on the z-order once the distance of each of the objects are calculated.
[0135] It may be noted that a corrected object having the highest z-order value may be composed before a corrected object having a lower z-order value. In one example, a cup on a table might have a higher z-order value, whereas a chair behind the table may belong to a lower z-order value. As depicted in FIG. 3C, the object compositor unit 214 may layer the objects based on the z-order value of each of the objects OBJ 1, OBJ 2 and OBJ 3, during the depth analysis. As per the present example, OBJ 1 has been assigned a high z-order value and is layered at LI, OBJ 2 has been assigned a z-order value lower than that of OBJ 1 and higher than the z-order value of OBJ 3, and is layered at L2. Further, the OBJ 3 has been assigned a low z-order and is layered at L3. In one example, the depth layer.
[0136] Further, at step 304C, based on the z-order value, the object compositor unit 214 may start composing each of the objects from higher z-order value to lower z-order value. Since the OBJ 1 has the highest z-order value, it may be composed first.
[0137] Thereafter, at step 306C, OBJ 2 may be composed based on having the z-order value between the z-order values of OBJ 1 and OBJ 3.
[0138] Hereinafter, at step 308C, OBJ 3 may be composed at last, since the z-order value for OBJ 3 is the lowest among OBJ 1, OBJ 2 and OBJ 3.
[0139] After composing the image, the object compositor unit 214 may be configured to compare and check the geometry of each of the corrected objects with the extracted one or more features.
[0140] Returning to the present example, once composition has been done, thereafter, theobj ect compositor unit 214 may then perform an inpainting technique on the composed image. As would be understood, the inpainting technique refers to the process of filling in missing or damaged areas of an image while preserving its original texture, color, and structure. This has been depicted in FIG. 3D. FIG. 3D illustrates a flowchart of an exemplary method 300D for performing an inpainting technique on the composed image, as per an implementation of the present subject matter. In one example, the method 300D may be implemented / performed by the object compositor unit 214.
[0141] As depicted in FIG. 3D, at step 302D, the object compositor unit 214 may obtain the composed image.
[0142] Further, at step 304D, to apply the inpainting technique, the object compositor unit 214 may identify a missing texture region in the composed image. The missing texture region refers to a target region or a specific part of the input panoramic image 218 that may need to be repaired, reconstructed, or filled in. The missing texture region may be identified based on a presence of missing information, damage, or undesired elements. For instance, the missing texture region may include a distorted or misaligned line of a table, an incomplete boundary of a bag, or similar issues.
[0143] Furthermore, at step 306D, the object compositor unit 214 may be configured to perform the inpainting technique on the identified one or more missing textures. To perform the inpainting technique, the object compositor unit 214 may be configured to divide the composed image into smaller parts for processing. The adjustment unit 114 may extract one or more relevant features of the missing textures from each of the part. In one example, the one or more features such as edges, intensity, and structural features of the missing textures.
[0144] In furtherance to extracting the one or more features, at step 308D, the object compositor unit 214 may identify one or more similar features from the composed image. The one or more similar features may be related to the missing texture regions. Based on the identification of the one or more similar features, the object compositor unit 214 may be configured to either combine each of the missing texture regions to apply in-painting or apply in-painting on each identified missing texture individually. In one example, each of the missing texture regions may be combined using a weighted average to ensure smooth transitions and minimize visible boundaries. The object compositor unit 214 may further process the composed image. In one example, the processing includes but may not be limited to a gradient domain optimization, a poisson blending. As may be known to a person skilled in the art, the gradient domainoptimization and the poisson blending may reduce noise in the composed image and maintain consistency across the entire image.
[0145] Furthermore, the object compositor unit 214 may be configured to replace the target texture region with the new processed texture region to generate a final corrected version of the panoramic image. Additionally, the object compositor unit 214 may be configured to post-process and perform a quality assessment of the final version of the panoramic image. In one example, the post-processing may include enhancing edges of the objects of the panoramic image, and performing any adjustments to improve overall image quality. In another example, the quality assessment includes but may not be limited to checking the processed image for any artifacts or inconsistencies. The quality assessment may further include making necessary corrections on the inconsistencies and artifacts.
[0146] Afterwards, at step 310D, the object compositor unit 214 may be configured to cause to display the final version of the panoramic image on the display device 232.
[0147] FIG. 4 illustrates a flowchart depicting an example method 400 for adjusting one or more distortions in a panoramic image, to be implemented in an exemplary implementation of the present subject matter. The order in which the method 400 is described is not intended to be construed as a limitation, and any number of the described method blocks may be combined in any order to implement the aforementioned method, or an alternative method. Furthermore, method 400 may be implemented by processing resource or computing device(s) through any suitable hardware, non-transitory machine-readable instructions, or combination thereof.
[0148] It may also be understood that method 400 may be performed by programmed system 102 or computing device 200 as depicted in FIGS. 1 or 2, respectively. Furthermore, the method 400 may be executed based on instructions stored in non-transitory computer readable medium, as will be readily understood. The non-transitory computer readable medium may include, for example digital memories, magnetic storage media, such as one or more magnetic disks and magnetic tapes, hard drives, or optically readable digital data storage media. Although, the method 400 is described below with reference to the computing device 200 as described above, other suitable systems for the execution of these methods can also be utilized. Additionally, implementation of this method is not limited to such examples. To implement the method 400, the input panoramic image 218 may be obtained from the image capturing device 230.
[0149] At block 402, one or more objects may be identified in an input panoramic image 218. Thereafter, at block 404, a corresponding object image of each of the one or more objects may be generated. At block 406, one or more deformations 222 may be identified in each of the generated object images. Thereafter, based on the identified deformation, at block 408, the one or more generated corresponding object images may be corrected to generate a corrected object image. At block 410, the one or more corrected images may be combined to obtain an output panoramic image.
[0150] The present disclosure further discloses a non-transitory computer readable storage medium storing instructions for adjusting one or more distortions in a panoramic image. The instructions include executable code which, when executed by a processing resource of a system, causes the system to identify one or more objects in an input panoramic image. Further, the instructions include executable code which, when executed, causes the system to generate a corresponding object image of each of the one or more objects. Further, the instructions include executable code which, when executed, causes the system to identify one or more deformations 222 in each of the generated object images. Further, the instructions include executable code which, when executed, causes the system to correct the one or more generated corresponding object image to generate a corrected object image, based on the identified deformations. Further, the instructions include executable code which, when executed, causes the system to combine the one or more corrected object images to obtain an output panoramic image.
[0151] Although examples for the present disclosure have been described in language specific to structural features and / or methods, it should be understood that the appended claims are not necessarily limited to the specific features or methods described. Rather, the specific features and methods are disclosed and explained as examples of the present disclosure.
Claims
Claims
1. A method (400) for adjusting one or more distortions in a panoramic image, the method (400) comprising:identifying (402) one or more objects in an input panoramic image (218); generating (404) a corresponding object image of each of the one or more objects; identifying (406) one or more deformations (222) in each of the generated object images;based on the identified deformations, correcting (408) the one or more generated corresponding object image to generate a corrected object image; andcombining (410) the one or more corrected object images to obtain an output panoramic image.
2. The method (400) as claimed in claim 1, wherein the one or more objects in the panoramic image are identified based on obtaining the panoramic image from an image capturing device (230).
3. The method (400) as claimed in claim 1, further comprising causing to display the output panoramic image on a display device (232).
4. The method (400) as claimed in claim 1, further comprising identifying the one or more objects in the input panoramic image based on YOLO (You Only Look Once) object detection (302A) technique, wherein the YOLO object detection (302A) technique comprises:dividing the input panoramic image into a grid of a pre-defined size, wherein the grid comprises a plurality of cells;for each cell of the grid,detecting one or more objects; andbased on the detected one or more objects, predicting one or more bounding boxes and a class probability.
5. The method (400) as claimed in claim 4, wherein identifying the one or more objects in the input panoramic image (218) further comprises:extracting one or more features in each of the one or more detected objects; identifying one or more edges of the one or more objects; anddetecting an intensity of the one or more objects.
6. The method (400) as claimed in claim 5, wherein the one or more features of each of the one or more detected objects is at least one or more center coordinates of the grid, width of the one or more objects, height of the one or more objects, a confidence score of the one or more objects and a class probability of the one or more objects.
7. The method (400) as claimed in claim 1, further comprising:for each of the identified one or more objects, generating a corresponding reference image, wherein each of the corresponding reference images are generated based on one or more features of the identified object, using an Artificial Intelligence / Machine Learning (AI / ML) model (204).
8. The method (400) as claimed in claim 7, further comprising:analyzing the input panoramic image to identify a capturing mode of the input panoramic image, wherein the input panoramic image is captured using an image capturing device.
9. The method (400) as claimed in claim 7, wherein identifying the one or more deformations (222) in each of the generated object images comprises:dividing each of the one or more object images and each of the corresponding reference images into one or more blocks;extracting one or more shape features from each of the object images and corresponding reference images;comparing each of the object image with the corresponding reference image (226) to identify one or more deformations (222) in the object image.
10. The method (400) as claimed in claim 9, wherein the one or more shape features is at least one of a line, a curve, a length, a height, and a width of the one or more objects and the corresponding image.
11. The method (400) as claimed in claim 9, wherein the one or more deformations (222) is one of a barrel distortion, a pincushion distortion, a mustache distortion, and a combination thereof.
12. The method (400) as claimed in claim 9, wherein correcting the one or more corresponding object image comprises:based on the identified deformation in each of the object images, determining a direction and a magnitude of a shift to be performed on the object image,shifting the object image based on the determined direction and magnitude to rebuild the object image;comparing the rebuilt object images with the one or more reference objects; iterating the rebuilding of the one or more object image till the one or more deformations (222) is less than a predefined threshold;based on a capturing mode of the input panoramic image, determining a distance and position of each of the one or more objects from the image capturing device; andbased on the determined distance and position, applying a size shift to each of the blocks of the object image.
13. The method (400) as claimed in claim 12, wherein combining the one or more corrected object images to obtain the output panoramic image comprises:applying a layering to the corrected object image;identifying one or more missing textures in the corrected object image; and performing an inpainting on the identified one or more missing textures.
14. A computing device (200) for adjusting one or more distortions in a panoramic image, the computing device (200) comprising:a processor (104); andan adjustment unit (114) coupled to the processor (104), wherein the adjustment unit (114) is to:identify one or more objects in an input panoramic image (218);generate a corresponding object image of each of the one or more objects; identify one or more deformations (222) in each of the generated object images;based on the identified deformations, correct the one or more generated corresponding object image to generate a corrected object image; andcombine the one or more corrected object images to obtain an output panoramic image.
15. The computing device (200) as claimed in claim 14, wherein the one or more objects in the panoramic image are identified based on obtaining the panoramic image from an image capturing device (230).
