WO2021251631A1 - Electronic device including focus adjustment function and method thereof - Google Patents

Electronic device including focus adjustment function and method thereof Download PDF

Info

Publication number
WO2021251631A1
WO2021251631A1 PCT/KR2021/005965 KR2021005965W WO2021251631A1 WO 2021251631 A1 WO2021251631 A1 WO 2021251631A1 KR 2021005965 W KR2021005965 W KR 2021005965W WO 2021251631 A1 WO2021251631 A1 WO 2021251631A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
electronic device
image
processor
camera
Prior art date
Application number
PCT/KR2021/005965
Other languages
French (fr)
Korean (ko)
Inventor
송인선
이승한
김표재
최지환
Original Assignee
삼성전자 주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2021251631A1 publication Critical patent/WO2021251631A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/958Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
    • H04N23/959Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules

Definitions

  • Embodiments disclosed in this document relate to an electronic device including a focus control function of a camera.
  • Depth of field refers to the range between the closest and farthest positions where a target object can be clearly seen in an image captured by a camera lens. In the case of a shallow depth of field, a clear image cannot be obtained because the focus is limited to a part at a close distance.
  • an image for a focus stack is acquired through a plurality of lens modules, or the image is acquired by simply dividing the image into a plurality of regions and focusing on the center of the regions.
  • the size of the lens assembly increases, which may limit the size of the camera module to be placed in a fixed space.
  • Various embodiments of the present disclosure may provide an electronic device capable of finely focusing on a desired area by determining a near-planar object and acquiring text information.
  • An electronic device may include an image sensor, a depth sensor, and at least one processor. At least one processor determines whether a target object corresponds to a flat object using the depth sensor, activates a text recognition function, and responds to activation of the text recognition function when the target object corresponds to the flat object , to obtain a plurality of images by determining a plurality of focal points for different regions of the target object, and driving the image sensor based on the determined plurality of focal points, and to at least some of the obtained plurality of images. Based on this, a final image of the target object may be obtained.
  • the method of operating an electronic device includes an operation of determining whether a target object corresponds to a flat object using the depth sensor, an operation of activating a text recognition function, and an operation of the target object Determining a plurality of focal points for different regions of the target object in response to a planar object and activating the text recognition function, a plurality of focal points by driving the image sensor based on the determined plurality of focal points
  • the method may include acquiring an image and acquiring a final image of the target object based on at least a part of the plurality of acquired images.
  • the time required for the focus stack may be reduced by determining the lens movement and the number of shots optimized for the current shooting environment.
  • FIG. 1 is a diagram illustrating a structure of an electronic device and a camera module according to an embodiment.
  • FIG. 2 illustrates a hardware configuration of an electronic device according to an embodiment.
  • FIG. 3 illustrates a process for performing a focus stack in an electronic device according to an exemplary embodiment.
  • FIG. 4 illustrates a state in which an electronic device captures a planar object according to an exemplary embodiment.
  • FIG. 5 is a diagram illustrating a state in which a camera of an electronic device captures a flat object while forming a predetermined angle with the flat object, according to an exemplary embodiment.
  • FIG. 6 is a diagram illustrating an electronic device photographing a non-planar object according to an exemplary embodiment.
  • FIG. 7 is a flowchart illustrating a process in which an electronic device acquires a plurality of images based on a plurality of focal points, according to an exemplary embodiment.
  • FIG. 8 is a flowchart illustrating a process of dividing a region of a target object according to an angle formed by a camera of an electronic device with the target object according to an exemplary embodiment.
  • FIG. 9 is a flowchart illustrating a process of acquiring an image based on movement of a lens according to an exemplary embodiment.
  • FIG. 10 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure.
  • FIG. 11 is a block diagram illustrating a camera module according to various embodiments of the present disclosure.
  • FIG. 1 is a diagram illustrating a structure of an electronic device and a camera module according to an embodiment.
  • FIG. 1 is a diagram schematically illustrating an exterior and a camera module 180 of an electronic device 100 on which a camera module 180 is mounted, according to an embodiment.
  • FIG. 1 has been illustrated and described on the premise of a mobile device, in particular, a smart phone, it is to those skilled in the art that it can be applied to various electronic devices or electronic devices equipped with a camera among mobile devices. will be clearly understood.
  • the display 110 may be disposed on the front surface of the electronic device 100 according to an embodiment.
  • the display 110 may occupy most of the front surface of the electronic device 100 .
  • a display 110 and a bezel 190 region surrounding at least some edges of the display 110 may be disposed on the front surface of the electronic device 100 .
  • the display 110 may include a flat area and a curved area extending from the flat area toward the side of the electronic device 100 .
  • the electronic device 100 illustrated in FIG. 1 is an example, and various embodiments are possible.
  • the display 110 of the electronic device 100 may include only a flat area without a curved area, or may include a curved area only at one edge instead of both sides.
  • the curved area may extend toward the rear surface of the electronic device, so that the electronic device 100 may include an additional planar area.
  • the electronic device 100 may additionally include a speaker, a receiver, a front camera, a proximity sensor, a home key, and the like.
  • the electronic device 100 may be provided in which the rear cover 150 is integrated with the main body of the electronic device.
  • the rear cover 150 may be separated from the main body of the electronic device 100 to have a form in which the battery can be replaced.
  • the back cover 150 may be referred to as a battery cover or a back cover.
  • a fingerprint sensor 171 for recognizing a user's fingerprint may be included in the first area 170 of the display 110 . Since the fingerprint sensor 171 is disposed on a lower layer of the display 110 , the fingerprint sensor 171 may not be recognized by the user or may be difficult to recognize. Also, in addition to the fingerprint sensor 171 , a sensor for additional user/biometric authentication may be disposed in a portion of the display 110 . In another embodiment, a sensor for user/biometric authentication may be disposed on one area of the bezel 190 . For example, the IR sensor for iris authentication may be exposed through one area of the display 110 or may be exposed through one area of the bezel 190 .
  • the front camera 161 may be disposed in the second area 160 on the front side of the electronic device 100 .
  • the front camera 161 is shown to be exposed through one area of the display 110 , but in another embodiment, the front camera 161 may be exposed through the bezel 190 .
  • the electronic device 100 may include one or more front cameras 161 .
  • the electronic device 100 may include two front cameras, such as a first front camera and a second front camera.
  • the first front camera and the second front camera may be cameras of the same type having the same specifications (eg, pixels), but the first front camera and the second front camera may be implemented as cameras of different specifications.
  • the electronic device 100 may support a function (eg, 3D imaging, auto focus, etc.) related to a dual camera through two front cameras. The above-mentioned description of the front camera may be equally or similarly applied to the rear camera of the electronic device 100 .
  • various hardware or sensors 163 to assist photographing such as a flash, may be additionally disposed.
  • a distance sensor eg, TOF sensor
  • the distance sensor may be applied to both a front camera and/or a rear camera.
  • the distance sensor may be separately disposed or included and disposed on the front camera and/or the rear camera.
  • At least one physical key may be disposed on a side portion of the electronic device 100 .
  • the first function key 151 for turning on/off the display 110 or turning on/off the power of the electronic device 100 may be disposed on the right edge with respect to the front surface of the electronic device 100 .
  • the second function key 152 for controlling the volume or screen brightness of the electronic device 100 may be disposed on the left edge with respect to the front surface of the electronic device 100 .
  • additional buttons or keys may be disposed on the front or rear of the electronic device 100 .
  • a physical button or a touch button mapped to a specific function may be disposed in a lower region of the front bezel 190 .
  • the electronic device 100 illustrated in FIG. 1 corresponds to one example, and the shape of the device to which the technical idea disclosed in the present disclosure is applied is not limited.
  • a foldable electronic device that can be folded horizontally or vertically, a rollable electronic device that can be rolled, a tablet or a notebook computer
  • the technical idea of the present disclosure This can be applied.
  • the present technical idea can be applied even when it is possible to arrange the first camera and the second camera facing in the same direction to face different directions through rotation, folding, deformation, etc. of the device.
  • an electronic device 100 may include a camera module 180 .
  • the camera module 180 may include a lens assembly 111 , a housing 113 , an infrared cut filter 115 , an image sensor 120 , and an image signal processor 130 . have.
  • the lens assembly 111 may have a different number, arrangement, type, etc. of lenses depending on the front camera and the rear camera.
  • the front camera and the rear camera may have different characteristics (eg, focal length, maximum magnification, etc.).
  • the lens may be moved forward and backward along the optical axis, and may operate so that a target object, which is a subject, can be clearly captured by changing a focal length.
  • the camera module 180 includes a housing 113 for mounting at least one coil surrounding the periphery of the barrel around the optical axis and a barrel for mounting at least one or more lenses aligned on the optical axis.
  • the infrared cut filter 115 may be disposed on the upper surface of the image sensor 120 .
  • the image of the subject passing through the lens may be partially filtered by the infrared cut filter 115 and then detected by the image sensor 120 .
  • the image sensor 120 may be disposed on the upper surface of the printed circuit board.
  • the image sensor 120 may be electrically connected to the image signal processor 130 connected to the printed circuit board 140 by a connector.
  • a flexible printed circuit board (FPCB) or a cable may be used as the connector.
  • the image sensor 120 may be a complementary metal oxide semiconductor (CMOS) sensor or a charged coupled device (CCD) sensor.
  • CMOS complementary metal oxide semiconductor
  • CCD charged coupled device
  • a plurality of individual pixels are integrated in the image sensor 120 , and each individual pixel may include a micro lens, a color filter, and a photodiode.
  • Each individual pixel is a kind of photodetector that can convert incoming light into an electrical signal. Photodetectors generally cannot detect the wavelength of the captured light by themselves and cannot determine color information.
  • the photodetector may include a photodiode.
  • light information of a subject incident through the lens assembly 111 may be converted into an electrical signal by the image sensor 120 and input to the image signal processor 130 .
  • the camera module 180 may be disposed on the front side as well as the rear side of the electronic device 100 .
  • the electronic device 100 may include a plurality of camera modules 180 as well as one camera module 180 to improve camera performance.
  • the electronic device 100 may further include a front camera 161 for video call or self-camera photography.
  • the front camera 161 may support a relatively low number of pixels compared to the rear camera module.
  • the front camera may be relatively smaller than the rear camera module.
  • FIG. 2 illustrates a hardware configuration of an electronic device according to an embodiment.
  • the configuration illustrated in FIG. 1 may be briefly described or a description thereof may be omitted.
  • the electronic device 100 may include a camera module 180 , a processor 220 , a display 110 , and a memory 230 .
  • a camera module 180 may include a camera module 180 , a processor 220 , a display 110 , and a memory 230 .
  • descriptions of the same reference numerals as those of FIG. 1 may be omitted.
  • the camera module 180 may include a lens assembly 111 , an image sensor 120 , a depth detection sensor 210 , and an image signal processor 130 .
  • the electronic device 100 may further include additional components.
  • the electronic device 100 may further include at least one microphone for recording audio data.
  • the electronic device 100 may include at least one sensor for determining a direction in which the front or rear of the electronic device 100 faces and/or posture information of the electronic device 100 .
  • the at least one sensor may include an acceleration sensor, a gyro sensor, and the like. A detailed description of hardware included or may be included in the electronic device 100 of FIG. 2 is provided with reference to FIG. 10 .
  • the image sensor 120 may include a complementary metal oxide semiconductor (CMOS) sensor or a charged coupled device (CCD) sensor.
  • CMOS complementary metal oxide semiconductor
  • CCD charged coupled device
  • the light information of the subject incident through the lens assembly 111 may be converted into an electrical signal by the image sensor 120 and input to the image signal processor 130 .
  • An infrared cut filter (hereinafter, IR cut filter) may be disposed on the upper surface of the image sensor 120 , and the image of the subject passing through the lens is partially filtered by the IR cut filter and then applied to the image sensor 120 . can be detected by IR cut filter.
  • a light emitter may generate output light and emit it to the outside.
  • the light emitter may be configured and operated separately from the depth detection sensor 210 , or may be included in the depth detection sensor 210 to operate.
  • the depth sensor 210 may be a sensor capable of calculating a depth value of each pixel of an image.
  • the depth sensor 210 may be implemented, for example, in at least a stereo method, a time of flight (TOF) method, or a structured pattern method.
  • the depth sensor 210 (eg, a TOF sensor) may receive an input light corresponding to the output light emitted from the light emitter.
  • the output light and the input light may be infrared or near infrared.
  • the depth sensor 210 may obtain input light to irradiate the subject.
  • the depth sensor 210 may obtain distance information by analyzing the input light.
  • output light means light output from a light emitter and incident on an object
  • input light is light input to the depth sensor 210 after the output light reaches the object and is reflected from the object.
  • output light may be referred to as an output signal
  • input light may be referred to as an input signal.
  • the depth sensor 210 may irradiate the object with the obtained input light during a predetermined exposure period.
  • the exposure period may mean one frame period.
  • the exposure cycle may be repeated. For example, when the camera module 180 captures an object at 20 FPS, the exposure period may be 1/20 [sec]. And when 100 frames are generated, the exposure cycle may be repeated 100 times.
  • the image signal processor 130 and the image sensor 120 when the image signal processor 130 and the image sensor 120 are physically separated, there may be a sensor interface conforming to a standard.
  • the image signal processor 130 may perform image processing on the electrically converted image data.
  • a process in the image signal processor 130 may be divided into a pre-ISP (hereinafter, pre-processing) and an ISP chain (hereinafter, post-processing).
  • Image processing before the demosaicing process may mean pre-processing, and image processing after the demosaicing process may mean post-processing.
  • the preprocessing process may include 3A processing, lens shading correction, edge enhancement, dead pixel correction, knee correction, and the like.
  • 3A may include at least one of auto white balance (AWB), auto exposure (AE), and auto focusing (AF).
  • the post-processing process may include at least one of changing a sensor index value, changing a tuning parameter, and adjusting an aspect ratio.
  • the post-processing process may include processing the image data output from the image sensor 120 or image data output from the scaler.
  • the image signal processor 130 may adjust contrast, sharpness, saturation, dithering, etc. of the image through a post-processing process.
  • the contrast, sharpness, and saturation adjustment procedures are performed in the YUV color space, and the dithering procedure may be performed in the RGB (Red Green Blue) color space.
  • a part of the pre-processing process may be performed in the post-processing process, or a part of the post-processing process may be performed in the pre-processing process.
  • a part of the pre-processing process may be overlapped with a part of the post-processing process.
  • the display 110 may display contents such as an execution screen of an application executed by the processor 220 or images and/or videos stored in the memory 230 on the display 110 .
  • the processor 220 may display the image data acquired through the camera module 180 on the display 110 in real time.
  • the display 110 may be implemented integrally with the touch panel.
  • the display 110 may support a touch function, detect a user input such as a touch using a finger, and transmit it to the processor 220 .
  • the display 110 may be connected to a display driver integrated circuit (DDIC) for driving the display 110 , and the touch panel may be connected to a touch IC that detects touch coordinates and processes a touch-related algorithm.
  • DDIC display driver integrated circuit
  • the display driving circuit and the touch IC may be integrally formed, and in another embodiment, the display driving circuit and the touch IC may be formed separately.
  • the display driving circuit and/or the touch IC may be electrically connected to the processor 220 .
  • the processor 220 may execute/control various functions supported by the electronic device 100 .
  • the processor 220 may execute an application by executing a code written in a programming language stored in the memory 230 , and may control various hardware.
  • the processor 220 may execute an application supporting a photographing function stored in the memory 230 .
  • the processor 220 may execute the camera module 180 and set and support an appropriate shooting mode so that the camera module 180 may perform an operation intended by the user.
  • the memory 230 may store instructions executable by the processor 220 .
  • the memory 230 may be understood as a concept including a component in which data is temporarily stored, such as a random access memory (RAM), and/or a component in which data is permanently stored, such as a solid state drive (SSD).
  • the processor 220 may implement a software module in the RAM space by calling instructions stored in the SSD.
  • the memory 230 may include various types, and an appropriate type may be adopted according to the purpose of the device.
  • an application related to the camera module 180 may be stored in the memory 230 .
  • a camera application may be stored in the memory 230 .
  • the camera application may support various shooting functions, such as photo shooting, video shooting, panoramic shooting, and slow motion shooting.
  • an application associated with the camera module 180 may correspond to various types of applications.
  • a chatting application may also use the camera module 180 to support a video call, photo/video attachment, streaming service, product image, or product-related virtual reality (VR) shooting function.
  • VR virtual reality
  • FIG. 3 illustrates a process for performing a focus stack in an electronic device according to an exemplary embodiment.
  • An operating entity of the block diagram illustrated in FIG. 3 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
  • the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is a short distance using the depth information 301 and the image information 302 .
  • the depth information 301 may be obtained through the depth sensor 210
  • the image information 302 may be obtained through the image sensor 120 .
  • the image information 302 may be referred to as image data acquired through the image sensor 120 .
  • the standard of the short distance can be confirmed through ⁇ Table 1> below.
  • the horizontal axis represents a kind of distance from the center of the lens to the edge of the lens as a field
  • the vertical axis represents the distance between the camera of the electronic device 100 and the target object.
  • ⁇ Table 1> is a table showing how much the lens needs to be moved to have the maximum resolution in each field, assuming that the lens center is 0 field and the lens edge is 1 field, and the lens center is in focus. This value can be expressed as a movement amount (mm) or a step amount (step) of the lens. Information on the lens movement amount as shown in ⁇ Table 1> may be obtained based on design data, and may be obtained based on calibration data for correcting deviation for each module.
  • the processor 220 may determine the circle and the short distance based on about 30 cm.
  • the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is less than or equal to about 30 cm using depth information obtained through the depth sensor 210 . .
  • the processor 220 may determine whether the target object is a flat object.
  • the processor 220 may calculate plane information to determine whether the target object is a plane object.
  • the processor 220 may change depth information into a point cloud format on the camera coordinate system for plane determination and calculation of plane information.
  • the processor 220 calculates a plane equation having the shortest distance between point clouds and a three-dimensional plane, obtains reliability for the plane using the square or absolute value of the distance, and determines whether it is a plane as a result. can
  • the processor 220 may determine a plane having a predetermined range of curvature as a plane object by using the depth sensor 210 .
  • the processor 220 may determine that the object is a flat object if the error value when the target object is matched to time-of-flight (ToF) depth information is within 1 cm.
  • ToF time-of-flight
  • the processor 220 may analyze the type of the target object.
  • the processor 220 may analyze the type of the target object in order to compensate for the fact that it may be difficult to determine that the paper or book is bent at a short distance.
  • the processor 220 may classify the target object through a function (eg, a scene optimizer) of the electronic device 100 .
  • the one function eg, a scene optimizer
  • the one function may be a function capable of discriminating an object or the like based on data. For example, when photographing a natural landscape, the processor 220 may determine the target object in consideration of an average shape, average color (eg, green and brown) of the target object (eg, a tree). The processor 220 may determine whether the target object is a paper or a book through a function (eg, a scene optimizer) of the electronic device 100 .
  • the processor 220 may use the lens information 303 to calculate a lens movement amount and the required number of shots for the focus stack.
  • the lens information 303 can be confirmed through ⁇ Table 1>.
  • the processor 220 may determine whether a focus stack operation is necessary by combining conditions such as the lens information 303, the near-plane object, and/or text information. When it is determined that the focus stack operation is necessary, the processor 220 may determine the number of shots in consideration of a degree of blur for each field, whether text is included, a distance from a target object, and the like.
  • images having the maximum resolution for each field may be obtained by photographing using a lens movement amount between 0.1 and 0.5 fields.
  • the processor 220 may determine six images corresponding to the 0 field and the 0.1 field to the 0.5 field as images required for the focus stack.
  • the lens shift amount between 0.7 field and 0.9 field may be used.
  • the processor 220 may determine the four images corresponding to the 0 field and the 0.7 field to the 0.9 field as images necessary for the focus stack. Referring to ⁇ Table 1>, since the fields of the 0.1 & 0.9 field, 0.2 & 0.8 field, 0.3 & 0.7 field, and 0.4 & 0.6 field pair have similar lens shift amounts for maximum resolution, the processor 220 generates an average lens Using the shift amount, two fields can be covered with one lens shift amount. When two fields are covered with one lens movement amount, the electronic device 100 may reduce the number of shots and thus reduce a focus stack processing time of a high-resolution image.
  • the distance to the camera becomes closer than the image center, and the other opposite The orientation may be such that the distance from the camera is greater than the center. In this case, since there is no field pair having the maximum resolution due to similar lens movement, the number of photographing sheets may increase.
  • FIG. 4 illustrates a state in which an electronic device captures a planar object according to an exemplary embodiment.
  • the target object 405 may be an object having a generally planar shape.
  • the target object 405 may be a plane having a certain range of curvature.
  • the predetermined range may mean a case in which an error value when a target object is matched to time-of-flight (ToF) depth information is within 1 cm.
  • ToF time-of-flight
  • the processor 220 may determine a plurality of regions with respect to the target object 405 based on a point 410 to which the center of the lens is directed.
  • the processor 220 may divide the target object 405 into an A region 430 , a B region 440 , or a C region 450 .
  • Area B 440 may be an area that is farther away from the camera of the electronic device 100 than area A 430 .
  • Region C 450 may be a region further away from the camera of the electronic device 100 than region B 440 .
  • the plurality of regions are not limited to region A 430 , region B 440 , and region C 450 , but the area of the target object or the distance between the camera of the electronic device 100 and the target object. Depending on the distance, it may be less or more. This can be equally applied to the description below.
  • the processor 220 may obtain a first image by setting a first focal length to focus on the area A 430 .
  • the processor 220 may obtain a second image by setting a second focal length to focus on the region B 440 .
  • the processor 220 may obtain a third image by setting a third focal length to focus on the C region 450 .
  • the first focal length may be a focal length set based on an auto focus function.
  • the second focal length may be a longer focal length than the first focal length.
  • the third focal length may be a longer focal length than the second focal length.
  • FIG. 5 is a diagram illustrating a state in which a camera of an electronic device captures a flat object while forming a predetermined angle with the flat object, according to an exemplary embodiment.
  • FIG. 5 is a diagram illustrating a state in which the electronic device 100 captures a target object 505 . It shows a state in which the electronic device 100 captures a target object while forming a predetermined angle 530 instead of being parallel to the target object.
  • the predetermined angle may be an angle between the electronic device 100 and the target object.
  • the processor 220 may calculate an angle 530 between the direction of the optical axis 520 of the camera of the electronic device 100 and the normal of the target object. The calculated angle may be referred to as angle information between the lens and the plane.
  • the processor 220 may determine a plurality of regions with respect to the target object 505 based on a point 510 to which the center of the lens is directed.
  • the processor 220 may divide the target object 505 into at least an A region 540 , a B region 550 , a C region 560 , a D region 570 , and an E region 580 .
  • the plurality of regions are not limited to region A 540 , region B 550 , region C 560 , region D 570 , and region E 580 , but the area of the target object;
  • the number may be less or more depending on the distance between the camera of the electronic device 100 and the target object or the angle between the electronic device and the target object. This can be equally applied to the description below.
  • the processor 220 may obtain a first image by setting a first focal length in order to focus on the area A 540 .
  • the processor 220 may obtain a second image by setting a second focal length to focus on the region B 550 .
  • the processor 220 may obtain a third image by setting a third focal length to focus on the C region 560 .
  • the processor 220 may obtain a fourth image by setting a fourth focal length to focus on the D region 570 .
  • the processor 220 may obtain a fifth image by setting a fifth focal length to focus on the E region 580 .
  • the first focal length may be a focal length set based on an auto focus function.
  • the second focal length may be a longer focal length than the first focal length.
  • the third focal length may be a longer focal length than the second focal length.
  • the fourth focal length may be a shorter focal length than the first focal length.
  • the fifth focal length may be a shorter focal length than the fourth focal length.
  • FIG. 6 is a diagram illustrating an electronic device photographing a non-planar object according to an exemplary embodiment.
  • the processor 220 may determine that the target object located in the short distance is a curved surface rather than a flat surface.
  • the processor 220 may determine the target object determined to be a curved surface as a plurality of flat areas.
  • the plurality of planar areas may be planar areas having curvatures within a range that may be determined to be planar.
  • the processor 220 converts the curved target object into a planar area A 630 , a flat area B 640 , a flat area C 650 , a flat area D 660 , and a planar area E 670 . can be shared
  • the plurality of planar regions are not limited to region A 630 , region B 640 , region C 650 , region D 660 , and region E 670 , but the area of the target object and the electronic device 100 are not limited thereto. ) may be less or more depending on the distance between the camera and the target object and the degree of curvature of the target object.
  • the description of the target object mentioned in FIG. 5 may be equally applied to the individual planar regions (eg, 630 , 640 , 650 , 660 and 670 ) in FIG. 6 .
  • FIG. 7 is a flowchart illustrating a process in which an electronic device acquires a plurality of images based on a plurality of focal points, according to an exemplary embodiment.
  • the operating subject of the flowchart illustrated in FIG. 7 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
  • the processor 220 may acquire image data through the image sensor 120 .
  • the image data is image data before image processing is performed in the image signal processor 130, and each pixel may have a color value of R (red), G (green), or B (blue) corresponding to the color filter array. have.
  • the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is less than or equal to a predetermined distance using the depth sensor 210 .
  • the camera of the electronic device 100 may be a depth camera or a camera including a depth detection sensor 210 .
  • the processor 220 may determine whether the target object corresponds to a planar object using the depth sensor.
  • the processor 220 may activate a text recognition function.
  • the text recognition function may be the same as or a lower function of one function (eg, scene optimizer) of the electronic device 100 described with reference to FIG. 3 .
  • the text recognition function may be activated in response to a user input regardless of whether the target object is near or far. Alternatively, the text recognition function may be automatically activated in response to the execution of the camera application.
  • the processor 220 may activate a text recognition function to determine whether a target object (eg, paper or a wall) includes text.
  • the processor 220 may determine the type of the target object or whether text is included in order to compensate for the fact that it may be difficult to determine that the paper or book is bent at a short distance. For example, the processor 220 determines a curved target object at a short distance, and when it is determined that the target object is a paper or a book that is a flat object including text, the target object is converted into a flat object based on the determination. can judge
  • the processor 220 may determine the weight of the text in the target object using a text recognition function.
  • the processor 220 may prioritize a plurality of regions of the target object to be described below in consideration of the weight of the text of the target object. For example, the processor 220 may not give priority to a target object (eg, paper) because it is not necessary to focus on an area where text does not exist.
  • the processor 220 may adjust the focal length so that the text is present by giving priority to the region.
  • the processor 220 may determine a plurality of focal points on different regions of the target object.
  • the processor 220 may set a different focus for each frame of the image data obtained from the image sensor 120 .
  • a first focus may be set in an nth frame
  • a second focus may be set in an n+1th frame
  • a third focus may be set in an n+2th frame.
  • the processor 220 may set the first focal length so that the first area of the target object is in focus.
  • the processor 220 may set the second focal length so that the second area of the target object is in focus.
  • the processor 220 may set the third focal length so that the third area of the target object is in focus. What has been described above is only an example, and a larger focal length may be set by dividing the area into more areas.
  • the processor 220 may acquire a plurality of images based on the determined plurality of focal points.
  • the processor 220 may adjust the focal length of the lens to control movement of the lens to achieve focus on a predetermined area.
  • the processor 220 may acquire a first image based on the first focal length, and acquire a second image based on a second focal length that is longer than the first focal length.
  • the processor 220 obtains a first image based on a first focal length, obtains a second image based on a second focal length longer than the first focal length, and obtains a third focal length shorter than the first focal length
  • a third image may be acquired based on .
  • the first image is an image focused on a first area of the target object
  • the second image is an image focused on a second area of the target object
  • the third image is focused on a third area of the target object It may be the correct image.
  • the processor 220 may acquire a final image of the target object based on at least a part of the plurality of acquired images.
  • the processor 220 determines a first image acquired based on a first focal length among the plurality of acquired images as a main image, and a second image acquired based on a second focal length and A third image acquired based on the third focal length may be determined as a sub-image.
  • the processor 220 may synthesize the acquired images.
  • the processor 220 is configured to select a first area of a focused target object in the obtained first image (or main image), and a second area of a focused target object in the obtained second image (or first sub-image).
  • the second region and the third region of the target object in focus from the obtained third image (or second sub-image) may be synthesized.
  • the processor 220 may generate a final image by synthesizing the images.
  • the processor 220 may output the generated final image as a preview on the display 110 .
  • FIG. 8 is a flowchart illustrating a process of dividing a region of a target object according to an angle formed by a camera of an electronic device with the target object according to an exemplary embodiment.
  • the operating subject of the flowchart illustrated in FIG. 8 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
  • the processor 220 may determine an angle between the camera of the electronic device and the target object.
  • the processor 220 may calculate a normal vector in a direction perpendicular to the plane and may calculate an angle between the normal vector and the Z-axis of the camera coordinate system.
  • the angle between the normal and the Z-axis of the camera coordinate system may be referred to as an angle between a lens and a plane or an angle between the electronic device and the target object.
  • the processor 220 may determine whether an angle between the depth camera of the electronic device and the target object is within the first range.
  • the processor 220 may determine whether the angle is an angle within the second range.
  • the first range may be about 0 degrees to about 20 degrees
  • the second range may be about 20 degrees to about 40 degrees greater than the first range.
  • the distance to the camera becomes closer than the single center in a specific direction based on one center of the target object to which the center of the lens is directed, In the other opposite direction, the distance from the camera may be greater than the one center. Since the processor 220 needs to adjust the focal length by moving the lens forward and backward at the position where the reference focus is met, the number of shots may be increased.
  • the distance from the camera may be greater than the single center. Since the processor 220 has to adjust the focal length by moving the lens in one direction at the position where the reference focus is met, the number of shots compared to the case where the angle is large can be reduced.
  • operation 820 may be performed, and if the angle between the electronic device and the target object falls within the second range instead of the first range, operation 830 may be performed. have.
  • the processor 220 may divide the target object into a first number of regions.
  • the processor 220 may divide the target object (eg, paper) into a first number of regions.
  • the processor 220 may divide the target object into a second number of regions.
  • the processor 220 may divide the target object (eg, paper) into a second number of regions. The second number may be greater than the first number.
  • the processor 220 may determine a plurality of focal points for a plurality of regions of the target object.
  • the processor 220 may determine a plurality of focal points such that each of the plurality of regions is in focus. For example, the processor 220 may determine the first focal length so that the first area of the target object is in focus.
  • the processor 220 may determine the second focal length so that the second area of the target object is in focus.
  • the processor 220 may determine the third focal length so that the third area of the target object is in focus.
  • the processor 220 may acquire a plurality of images based on the plurality of determined focal points, and may acquire a final image of the target object based on at least some of the plurality of acquired images. For example, when the angle corresponds to the first range, the processor 220 may acquire six images and synthesize three of them to obtain a final image. As another example, when the angle corresponds to the second range, the processor 220 may acquire 9 images and synthesize 4 of them to obtain a final image.
  • FIG. 9 is a flowchart illustrating a process of acquiring an image based on movement of a lens according to an exemplary embodiment.
  • the operating subject of the flowchart illustrated in FIG. 9 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
  • the processor 220 may determine whether an angle between the camera of the electronic device 100 and the target object is a first range. Operation 905 may correspond to operation 810 .
  • the processor 220 may acquire an image based on the auto focus function.
  • the processor 220 may acquire a reference image or a reference image focused on the first area by the automatic initial activation function.
  • the processor 220 may acquire an image while increasing the focal length to the reference focal point.
  • the processor 220 may acquire an image focused on the second area by increasing the focal length more than the focal length in operation 910 .
  • the processor 220 may determine whether the acquired images are necessary for the focus stack.
  • the processor 220 may determine whether regions requiring sharpness in the target object are in focus, and determine whether sufficient images are obtained in the focus stack in the direction of increasing the focal length. If sufficient images are obtained in the focus stack, operation 760 is performed. Otherwise, an additional image may be obtained by further increasing the focal length.
  • the processor 220 may acquire an image based on the auto focus function.
  • the processor 220 may acquire a reference image focused on the first area by the automatic initial activation function.
  • the processor 220 may acquire an image while increasing the focal length to the reference focal point.
  • the processor 220 may acquire an image focused on the second area by increasing the focal length more than the focal length in operation 930 .
  • the processor 220 may determine whether the acquired images are sufficient for the focus stack.
  • the processor 220 may determine whether regions requiring sharpness in the target object are in focus, and determine whether sufficient images are obtained in the focus stack in the direction of increasing the focal length. If sufficient images are obtained in the focus stack, operation 945 is performed. Otherwise, an additional image may be obtained by further increasing the focal length.
  • the processor 220 may acquire an image while reducing the focal length to the reference focal point.
  • the processor 220 may reduce the focal length more than the focal length in operation 930 to obtain an image focused on the third area.
  • the processor 220 may determine whether the acquired images are sufficient for the focus stack.
  • the processor 220 may determine whether a sufficient image is obtained in a focus stack in a direction of reducing a focal length by determining whether areas requiring sharpness in the target object are in focus. If sufficient images are obtained in the focus stack, operation 760 of FIG. 7 is performed. Otherwise, an additional image may be obtained by further reducing the focal length.
  • operations 945 and 950 may precede operations 935 and 940 .
  • the processor 220 may acquire the image while increasing the focal length to the reference focal point after completing acquiring the image while decreasing the focal length to the reference focal point.
  • FIG. 10 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure.
  • the electronic device 1001 (eg, the electronic device 100 of FIG. 1 ) 1001 communicates with the electronic device 1002 through a first network 1098 (eg, a short-range wireless communication network). ), or may communicate with the electronic device 1004 or the server 1008 through the second network 1099 (eg, a remote wireless communication network). According to an embodiment, the electronic device 1001 may communicate with the electronic device 1004 through the server 1008 .
  • a first network 1098 eg, a short-range wireless communication network
  • the server 1008 eg, a remote wireless communication network
  • the electronic device 1001 includes a processor 1020 , a memory 1030 , an input module 1050 , a sound output module 1055 , a display module 1060 , an audio module 1070 , and a sensor module ( 1076), interface 1077, connection terminal 1078, haptic module 1079, camera module 1080, power management module 1088, battery 1089, communication module 1090, subscriber identification module 1096 , or an antenna module 1097 .
  • at least one of these components eg, the connection terminal 1078
  • some of these components are integrated into one component (eg, display module 1060 ). can be
  • the processor (eg, the processor 220 of FIG. 2 ) 1020 is, for example, at least one other component of the electronic device 1001 connected to the processor 1020 by executing software (eg, the program 1040 ). It can control elements (eg, hardware or software components) and can perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 1020 stores a command or data received from another component (eg, the sensor module 1076 or the communication module 1090 ) into the volatile memory 1032 . may be stored in , process commands or data stored in the volatile memory 1032 , and store the result data in the non-volatile memory 1034 .
  • another component eg, the sensor module 1076 or the communication module 1090
  • the processor 1020 is the main processor 1021 (eg, a central processing unit or an application processor) or a secondary processor 1023 (eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) It may include a neural processing unit (NPU), an image signal processor (eg, the image signal processor 130 of FIG. 1 ), a sensor hub processor, or a communication processor.
  • the main processor 1021 and the auxiliary processor 1023 uses less power than the main processor 1021 or is set to be specialized for a specified function.
  • the auxiliary processor 1023 may be implemented separately from or as a part of the main processor 1021 .
  • the coprocessor 1023 may, for example, act on behalf of the main processor 1021 while the main processor 1021 is in an inactive (eg, sleep) state, or when the main processor 1021 is active (eg, executing an application). ), together with the main processor 1021, at least one of the components of the electronic device 1001 (eg, the display module 1060, the sensor module 1076, or the communication module 1090) It is possible to control at least some of the related functions or states.
  • the coprocessor 1023 eg, an image signal processor or a communication processor
  • may be implemented as part of another functionally related component eg, the camera module 1080 or the communication module 1090). have.
  • the auxiliary processor 1023 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 1001 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, server 1008).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 1030 may store various data used by at least one component of the electronic device 1001 (eg, the processor 1020 or the sensor module 1076 ).
  • the data may include, for example, input data or output data for software (eg, the program 1040 ) and instructions related thereto.
  • the memory 1030 may include a volatile memory 1032 or a non-volatile memory 1034 .
  • the program 1040 may be stored as software in the memory 1030 , and may include, for example, an operating system 1042 , middleware 1044 , or an application 1046 .
  • the input module 1050 may receive a command or data to be used in a component (eg, the processor 1020 ) of the electronic device 1001 from the outside (eg, a user) of the electronic device 1001 .
  • the input module 1050 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 1055 may output a sound signal to the outside of the electronic device 1001 .
  • the sound output module 1055 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • the receiver may be used to receive an incoming call. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.
  • the display module 1060 may visually provide information to the outside (eg, a user) of the electronic device 1001 .
  • the display module 1060 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 1060 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 1070 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 1070 acquires a sound through the input module 1050 or an external electronic device (eg, a sound output module 1055 ) directly or wirelessly connected to the electronic device 1001 .
  • the electronic device 1002) eg, a speaker or headphones
  • the sensor module 1076 detects an operating state (eg, power or temperature) of the electronic device 1001 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 1076 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 1077 may support one or more specified protocols that may be used for the electronic device 1001 to directly or wirelessly connect with an external electronic device (eg, the electronic device 1002 ).
  • the interface 1077 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • connection terminal 1078 may include a connector through which the electronic device 1001 can be physically connected to an external electronic device (eg, the electronic device 1002 ).
  • the connection terminal 1078 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 1079 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 1079 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 1080 may capture still images and moving images. According to an embodiment, the camera module 1080 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 1088 may manage power supplied to the electronic device 1001 .
  • the power management module 1088 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 1089 may supply power to at least one component of the electronic device 1001 .
  • the battery 1089 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 1090 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 1001 and an external electronic device (eg, the electronic device 1002, the electronic device 1004, or the server 1008). It can support establishment and communication performance through the established communication channel.
  • the communication module 1090 may include one or more communication processors that operate independently of the processor 1020 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 1090 is a wireless communication module 1092 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 1094 (eg, : It may include a LAN (local area network) communication module, or a power line communication module).
  • GNSS global navigation satellite system
  • a corresponding communication module among these communication modules is a first network 1098 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 1099 (eg, legacy It may communicate with the external electronic device 1004 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a first network 1098 eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • a second network 1099 eg, legacy It may communicate with the external electronic device 1004 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • These various types of communication modules
  • the wireless communication module 1092 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 1096 within a communication network, such as the first network 1098 or the second network 1099 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 1001 may be identified or authenticated.
  • the wireless communication module 1092 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR).
  • NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 1092 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 1092 uses various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
  • the wireless communication module 1092 may support various requirements defined in the electronic device 1001 , an external electronic device (eg, the electronic device 1004 ), or a network system (eg, the second network 1099 ).
  • the wireless communication module 1092 includes a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 1097 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 1097 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 1097 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 1098 or the second network 1099 is connected from the plurality of antennas by, for example, the communication module 1090 . can be selected. A signal or power may be transmitted or received between the communication module 1090 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 1097 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a specified high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • a command or data may be transmitted or received between the electronic device 1001 and the external electronic device 1004 through the server 1008 connected to the second network 1099 .
  • Each of the external electronic devices 1002 and 1004 may be the same as or different from the electronic device 1001 .
  • all or a part of operations executed by the electronic device 1001 may be executed by one or more external electronic devices 1002 , 1004 , or 1008 .
  • the electronic device 1001 when the electronic device 1001 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 1001 performs the function or service by itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 1001 .
  • the electronic device 1001 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 1001 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 1004 may include an Internet of things (IoT) device.
  • IoT Internet of things
  • Server 1008 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 1004 or the server 1008 may be included in the second network 1099 .
  • the electronic device 1001 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • the electronic device may be a device of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a laptop, a desktop, a tablet, or a portable multimedia device
  • portable medical device e.g., a portable medical device
  • camera e.g., a camera
  • a wearable device e.g., a smart watch
  • a home appliance device e.g., a smart bracelet
  • first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, for example, and interchangeably with terms such as logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • one or more instructions stored in a storage medium may be implemented as software (eg, the program 1040) including
  • a processor eg, processor 1020
  • a device eg, electronic device 1001
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the methods according to various embodiments disclosed in this document may be provided by being included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed online (eg download or upload), directly between smartphones (eg smartphones).
  • a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
  • each component eg, a module or a program of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. .
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repetitively, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.
  • FIG. 11 is a block diagram illustrating a camera module (eg, the camera module 180 of FIG. 1 ) according to various embodiments of the present disclosure.
  • the camera module 1080 includes a lens assembly 1110 , a flash 1120 , an image sensor 1130 , an image stabilizer 1140 , a memory 1150 (eg, a buffer memory), or an image signal processor. (1160) may be included.
  • the lens assembly 1110 may collect light emitted from a subject, which is an image capturing object.
  • the lens assembly 1110 may include one or more lenses.
  • the camera module 1080 may include a plurality of lens assemblies 1110 . In this case, the camera module 1080 may form, for example, a dual camera, a 360 degree camera, or a spherical camera.
  • Some of the plurality of lens assemblies 1110 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties different from the lens properties of .
  • the lens assembly 1110 may include, for example, a wide-angle lens or a telephoto lens.
  • the flash 1120 may emit light used to enhance light emitted or reflected from the subject.
  • the flash 1120 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp.
  • the image sensor 1130 may acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly 1110 into an electrical signal.
  • the image sensor 1130 may include, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having properties, or a plurality of image sensors having different properties.
  • Each image sensor included in the image sensor 1130 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
  • CCD charged coupled device
  • CMOS complementary metal oxide semiconductor
  • the image stabilizer 1140 moves at least one lens or the image sensor 1130 included in the lens assembly 1110 in a specific direction or Operation characteristics of the image sensor 1130 may be controlled (eg, read-out timing may be adjusted, etc.). This makes it possible to compensate for at least some of the negative effects of the movement on the image being taken.
  • the image stabilizer 1140 according to an embodiment, the image stabilizer 1140 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 1080 Such a movement of the camera module 1080 or the electronic device 1001 may be detected using .
  • the image stabilizer 1140 may be implemented as, for example, an optical image stabilizer.
  • the memory 1150 may temporarily store at least a portion of the image acquired through the image sensor 1130 for the next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, Bayer-patterned image or high-resolution image) is stored in the memory 1150 and , a copy image corresponding thereto (eg, a low-resolution image) may be previewed through the display device 1060 .
  • the acquired original image eg, Bayer-patterned image or high-resolution image
  • a copy image corresponding thereto eg, a low-resolution image
  • the memory 1150 may be configured as at least a part of the memory 1030 or as a separate memory operated independently of the memory 1030 .
  • the image signal processor 1160 may perform one or more image processing on an image acquired through the image sensor 1130 or an image stored in the memory 1150 .
  • the one or more image processes may include, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring), sharpening (sharpening), or softening (softening)
  • the image signal processor 1160 may include at least one of the components included in the camera module 1080 (eg, an image sensor). 1130), for example, exposure time control, readout timing control, etc.
  • the image processed by the image signal processor 1160 is stored back in the memory 1150 for further processing.
  • the image signal processor 1160 may be configured as at least a part of the processor 1020 or as a separate processor operated independently of the processor 1020.
  • the image signal processor 1160 may include the processor 1020 and a separate processor, the at least one image processed by the image signal processor 1160 may be displayed through the display device 1060 as it is or after additional image processing is performed by the processor 1020 .
  • the electronic device 1001 may include a plurality of camera modules 1080 each having different properties or functions.
  • at least one of the plurality of camera modules 1080 may be a wide-angle camera, and at least the other may be a telephoto camera.
  • at least one of the plurality of camera modules 1080 may be a front camera, and at least the other may be a rear camera.
  • the electronic device 100 includes at least one processor (eg, FIG. 2 ) electrically connected to the image sensor 120 , the depth sensor 210 , the image sensor 120 , and the depth sensor 210 . of the processor 220).
  • the at least one processor 220 may determine whether the target object corresponds to a flat object using the depth sensor 210 and activate a text recognition function.
  • the processor 220 determines a plurality of focal points for different regions of the target object in response to the target object corresponding to the planar object and activation of the text recognition function, and based on the determined plurality of focal points
  • a plurality of images may be acquired by driving the image sensor 120 .
  • the processor 220 may acquire a final image of the target object based on at least a part of the plurality of acquired images.
  • the processor 220 when the angle between the camera of the electronic device 100 and the target object is within a first range, the processor 220 divides the area for the target object by the first number to determine a plurality of focal points, , when the angle between the camera of the electronic device 100 and the target object is a second range greater than the first range, the processor 220 may determine a plurality of focal points by dividing the area for the target object by the second number. have.
  • the processor 220 may acquire the image while increasing the focal length from the reference focal length.
  • the processor 220 acquires an image while increasing the focal length than the reference focal length, and decreases the focal length than the reference focal length to obtain the image. can be obtained.
  • an angle between the electronic device 100 and the target object may be an angle between a normal that is perpendicular to the target object and a z-axis of the camera coordinate system.
  • the processor 220 may determine whether the target object includes a text area greater than or equal to a certain ratio using the image sensor 120 or the depth sensor 210 .
  • the text recognition function may be activated by a user input or may be activated automatically in response to execution of a camera application.
  • the processor 220 acquires a first image based on a first focal length to focus on a first area of the target object, and obtains a second image to focus on a second area of the target object A second image may be acquired based on the 2 focal lengths.
  • the processor 220 may determine at least one image among the plurality of acquired images as a main image and determine the remaining images as sub images.
  • the processor 220 may obtain a final image of the target object by synthesizing a portion of the sub images with the main image.
  • the different areas may be prioritized for the focus stack based on the size of the different areas, the degree of blur, and the distance from the camera of the electronic device.
  • the processor 220 may determine a focus for the high-priority regions, and acquire a plurality of images based on the determined focus.
  • the operating method of the electronic device 100 may include an operating method of determining whether the target object corresponds to a planar object using the depth sensor 210 .
  • An operating method of the electronic device 100 may include an operating method of activating a text recognition function.
  • the operating method of the electronic device 100 includes an operating method of determining a plurality of focal points for different regions of the target object in response to the target object corresponding to the planar object and the activation of the text recognition function can do.
  • the operating method of the electronic device 100 may include an operating method of acquiring a plurality of images by driving the image sensor 120 based on the determined plurality of focal points.
  • the operating method of the electronic device 100 may include an operating method of acquiring a final image of the target object based on at least a part of the plurality of acquired images.
  • dividing the area for the target object by the first number It may include an operation of determining the focus of
  • dividing the area for the target object by the second number to determine a plurality of focal points may include a method of operation.
  • the acquiring of the plurality of images includes acquiring images while increasing a focal length rather than a reference focal length when an angle between the camera of the electronic device 100 and the target object is within a first range.
  • the method may include an operation method including an operation of acquiring an image while reducing a focal length from a reference focal length.
  • the operating method of the electronic device 100 may include an operating method of determining whether the target object includes a text area of a certain ratio or more using the image sensor 120 or the depth sensor 210 . .
  • the acquiring of the plurality of images includes acquiring a first image based on a first focal length so that a first region of the target object is in focus, and applying a first image to a second region of the target object.
  • the method may include an operating method of acquiring a second image based on a second focal length so as to be in focus.
  • the obtaining of the final image includes determining at least one image from among the plurality of obtained images as a main image, determining the remaining images as sub images, and adding the main image to the main image. and obtaining a final image of the target object by synthesizing a portion of the sub-images.
  • the method of operating the electronic device 100 provides priority for focusing stacks on the different regions based on the size of the different regions, the degree of blur, and the distance from the camera of the electronic device. It may include an operation method for determining the ranking.
  • the operating method of the electronic device 100 may include an operating method of determining a focus for the high-priority regions and an operating method of acquiring a plurality of images based on the determined focus. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

At least one processor included in an electronic device may: determine whether a target object corresponds to a planar object, using a depth sensing sensor; activate a text recognition function; determine a plurality of focus with respect to different areas of the target object in response that the target object corresponds to the planar object and the text recognition function is activated; acquire a plurality of images by driving an image sensor on the basis of the determined plurality of focus; and acquire a final image of the target object on the basis of at least some of the acquired plurality of images. Various other embodiments identified through the specification are possible.

Description

초점 조절 기능을 포함하는 전자 장치 및 방법Electronic device and method including focusing function
본 문서에서 개시되는 실시 예들은, 카메라의 초점 조절 기능을 포함하는 전자 장치에 관한 것이다.Embodiments disclosed in this document relate to an electronic device including a focus control function of a camera.
이동식 단말기에 대한 성능 요구가 증가함에 따라 이동식 단말기의 카메라도 디지털 카메라 급의 고성능, 고배율이 요구되고 있다. 성능 향상을 위해 카메라의 센서가 커지고 화소 수가 증가하는 것은 피사계 심도에 영향을 미친다. 피사계 심도는 카메라 렌즈에 의해 촬영되는 이미지 내에서 대상 객체가 선명하게 보일 수 있는 가장 가까운 위치와 가장 먼 위치 사이의 범위를 지칭한다. 피사계 심도가 얕은 경우 근거리에서 초점이 맞는 부분이 일부에 국한되어 선명한 이미지를 획득할 수 없다.As performance requirements for mobile terminals increase, cameras of mobile terminals are also required to have high performance and high magnification comparable to digital cameras. For better performance, a camera's larger sensor and increasing number of pixels affect the depth of field. Depth of field refers to the range between the closest and farthest positions where a target object can be clearly seen in an image captured by a camera lens. In the case of a shallow depth of field, a clear image cannot be obtained because the focus is limited to a part at a close distance.
피사계 심도에 의한 이미지 주변부 블러 현상을 방지하기 위하여 복수의 렌즈 모듈을 통해 초점 스택을 위한 이미지를 획득하거나, 단순히 이미지를 복수의 영역으로 나누어 영역들 중심에 초점을 두고 이미지들을 획득하고 있다.In order to prevent blurring of the image periphery due to the depth of field, an image for a focus stack is acquired through a plurality of lens modules, or the image is acquired by simply dividing the image into a plurality of regions and focusing on the center of the regions.
근거리 촬영을 하는 경우 의도하지 않게 초점이 맞는 부분 외에 주변부가 흐리게 촬영되는 경우를 해결하기 위하여 복수의 렌즈를 사용하게 되면 렌즈 어셈블리의 크기가 커져서 정해진 공간에 배치되어야 하는 카메라 모듈의 크기에 제약이 걸릴 수 있다.In the case of short-distance shooting, if a plurality of lenses are used to solve the case where the peripheral part is unintentionally blurred other than the focused part, the size of the lens assembly increases, which may limit the size of the camera module to be placed in a fixed space. can
또한, 단순히 이미지를 복수의 영역으로 나누어 영역들 중심에 초점을 두고 이미지를 획득하는 경우, 원하는 영역에 대해 세밀한 초점 조정이 되지 않을 수 있다.In addition, when an image is acquired by simply dividing the image into a plurality of regions and focusing on the center of the regions, fine focus adjustment may not be possible for a desired region.
본 개시의 다양한 실시 예는, 근거리의 평면 객체를 판단하고 텍스트 정보를 획득하여 원하는 영역에 대하여 세밀한 초점 조정을 할 수 있는 전자 장치를 제공할 수 있다.Various embodiments of the present disclosure may provide an electronic device capable of finely focusing on a desired area by determining a near-planar object and acquiring text information.
본 문서에 개시되는 일 실시 예에 따른 전자 장치는 이미지 센서, 깊이 감지 센서, 적어도 하나의 프로세서를 포함할 수 있다. 적어도 하나의 프로세서는 상기 깊이 감지 센서를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하고, 텍스트 인식 기능을 활성화하고, 상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하고, 상기 결정된 복수의 초점에 기반하여 상기 이미지 센서를 구동함으로써 복수의 이미지를 획득하고, 상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득할 수 있다.An electronic device according to an embodiment disclosed in this document may include an image sensor, a depth sensor, and at least one processor. At least one processor determines whether a target object corresponds to a flat object using the depth sensor, activates a text recognition function, and responds to activation of the text recognition function when the target object corresponds to the flat object , to obtain a plurality of images by determining a plurality of focal points for different regions of the target object, and driving the image sensor based on the determined plurality of focal points, and to at least some of the obtained plurality of images. Based on this, a final image of the target object may be obtained.
또한, 본 문서에 개시되는 일 실시 예에 따른 전자 장치의 동작 방법은 상기 깊이 감지 센서를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하는 동작, 텍스트 인식 기능을 활성화하는 동작, 상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하는 동작, 상기 결정된 복수의 초점에 기반하여 상기 이미지 센서를 구동함으로써 복수의 이미지를 획득하는 동작, 상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득하는 동작을 포함할 수 있다.In addition, the method of operating an electronic device according to an embodiment disclosed in this document includes an operation of determining whether a target object corresponds to a flat object using the depth sensor, an operation of activating a text recognition function, and an operation of the target object Determining a plurality of focal points for different regions of the target object in response to a planar object and activating the text recognition function, a plurality of focal points by driving the image sensor based on the determined plurality of focal points The method may include acquiring an image and acquiring a final image of the target object based on at least a part of the plurality of acquired images.
본 문서에 개시되는 다양한 실시 예들에 따르면, 현재 촬영 환경에 최적화된 렌즈 움직임 및 촬영 수를 결정하여 초점 스택에 필요한 시간을 줄일 수 있다.According to various embodiments disclosed in this document, the time required for the focus stack may be reduced by determining the lens movement and the number of shots optimized for the current shooting environment.
또한 다양한 실시 예들에 따르면, 최적화된 초점 스택을 통한 근거리에 위치한 대상 객체의 선명한 이미지를 획득하여 사용자에게 제공할 수 있다.Also, according to various embodiments, it is possible to obtain a clear image of a target object located in a short distance through the optimized focus stack and provide it to the user.
이 외에, 본 문서를 통해 직접적 또는 간접적으로 파악되는 다양한 효과들이 제공될 수 있다.In addition, various effects directly or indirectly identified through this document may be provided.
도 1은 일 실시 예에 따른 전자 장치 및 카메라 모듈에 대한 구조를 도시한 도면이다.1 is a diagram illustrating a structure of an electronic device and a camera module according to an embodiment.
도 2는 일 실시 예에 따른 전자 장치의 하드웨어 구성을 나타낸다.2 illustrates a hardware configuration of an electronic device according to an embodiment.
도 3은 일 실시 예에 따른 전자 장치에서 초점 스택을 하기 위한 과정을 나타낸다.3 illustrates a process for performing a focus stack in an electronic device according to an exemplary embodiment.
도 4는 일 실시 예에 따른 전자 장치가 평면 객체를 촬영하는 모습을 나타낸다.4 illustrates a state in which an electronic device captures a planar object according to an exemplary embodiment.
도 5는 일 실시 예에 따른 전자 장치의 카메라가 평면 객체와 일정 각도를 이루며 평면 객체를 촬영하는 모습을 나타낸다.5 is a diagram illustrating a state in which a camera of an electronic device captures a flat object while forming a predetermined angle with the flat object, according to an exemplary embodiment.
도 6은 일 실시 예에 따른 전자 장치가 평면이 아닌 객체를 촬영하는 모습을 나타낸다.6 is a diagram illustrating an electronic device photographing a non-planar object according to an exemplary embodiment.
도 7은 일 실시 예에 따른 전자 장치가 복수의 초점에 기반하여 복수의 이미지를 획득하는 과정을 나타낸 순서도이다.7 is a flowchart illustrating a process in which an electronic device acquires a plurality of images based on a plurality of focal points, according to an exemplary embodiment.
도 8은 일 실시 예에 따른 전자 장치의 카메라가 대상 객체와 이루는 각도에 따라 대상 객체의 영역을 나누는 과정을 나타낸 순서도이다.8 is a flowchart illustrating a process of dividing a region of a target object according to an angle formed by a camera of an electronic device with the target object according to an exemplary embodiment.
도 9는 일 실시 예에 따른 렌즈의 이동에 기반하여 이미지를 획득하는 과정을 나타낸 순서도이다.9 is a flowchart illustrating a process of acquiring an image based on movement of a lens according to an exemplary embodiment.
도 10은 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.10 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
도 11은 다양한 실시 예들에 따른, 카메라 모듈을 예시하는 블록도이다.11 is a block diagram illustrating a camera module according to various embodiments of the present disclosure;
이하, 본 문서의 다양한 실시 예가 첨부된 도면을 참조하여 기재된다. 그러나, 이는 본 문서를 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 실시 예의 다양한 변경(modification), 균등물(equivalent), 및/또는 대체물(alternative)을 포함하는 것으로 이해되어야 한다. Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings. However, this document is not intended to limit the present disclosure to specific embodiments, and should be understood to include various modifications, equivalents, and/or alternatives of the embodiments of the present invention.
도 1은 일 실시 예에 따른 전자 장치 및 카메라 모듈에 대한 구조를 도시한 도면이다.1 is a diagram illustrating a structure of an electronic device and a camera module according to an embodiment.
도 1은 일 실시 예에 따른 카메라 모듈(180)을 장착한 전자 장치(100)의 외관 및 카메라 모듈(180)을 개략적으로 나타낸 도면이다. 도 1의 실시 예는 모바일 기기, 특히, 스마트 폰을 전제로 도시 및 설명되었으나, 다양한 전자 기기 또는 모바일 기기들 중 카메라를 탑재한 전자 기기에 적용될 수 있음은 기술분야에서 통상의 지식을 가진 자에게 명확히 이해될 것이다.1 is a diagram schematically illustrating an exterior and a camera module 180 of an electronic device 100 on which a camera module 180 is mounted, according to an embodiment. Although the embodiment of FIG. 1 has been illustrated and described on the premise of a mobile device, in particular, a smart phone, it is to those skilled in the art that it can be applied to various electronic devices or electronic devices equipped with a camera among mobile devices. will be clearly understood.
도 1을 참고하면, 일 실시 예에 따른 전자 장치(100)의 전면에는 디스플레이(110)가 배치될 수 있다. 일 실시 예에서, 디스플레이(110)는 전자 장치(100)의 전면의 대부분을 차지할 수 있다. 전자 장치(100)의 전면에는 디스플레이(110), 및 디스플레이(110)의 적어도 일부 가장자리를 둘러싸는 베젤(bezel)(190) 영역이 배치될 수 있다. 디스플레이(110)는 평면 영역(flat area)과 평면 영역에서 전자 장치(100)의 측면을 향해 연장되는 곡면 영역(curved area)을 포함할 수 있다. 도 1에 도시된 전자 장치(100)는 하나의 예시이며, 다양한 실시 예가 가능하다. 예를 들어, 전자 장치(100)의 디스플레이(110)는 곡면 영역 없이 평면 영역만 포함하거나 양측이 아닌 한 쪽 가장자리에만 곡면 영역을 구비할 수 있다. 또한 일 실시 예에서, 곡면 영역은 전자 장치의 후면으로 연장되어 전자 장치(100)는 추가적인 평면 영역을 구비할 수도 있다.Referring to FIG. 1 , the display 110 may be disposed on the front surface of the electronic device 100 according to an embodiment. In an embodiment, the display 110 may occupy most of the front surface of the electronic device 100 . A display 110 and a bezel 190 region surrounding at least some edges of the display 110 may be disposed on the front surface of the electronic device 100 . The display 110 may include a flat area and a curved area extending from the flat area toward the side of the electronic device 100 . The electronic device 100 illustrated in FIG. 1 is an example, and various embodiments are possible. For example, the display 110 of the electronic device 100 may include only a flat area without a curved area, or may include a curved area only at one edge instead of both sides. Also, in an embodiment, the curved area may extend toward the rear surface of the electronic device, so that the electronic device 100 may include an additional planar area.
일 실시 예에서 전자 장치(100)는 추가적으로 스피커(speaker), 리시버, 전면 카메라, 근접 센서, 홈 키 등을 포함할 수 있다. 일 실시 예에 따른 전자 장치(100)는 후면 커버(150)가 전자 장치의 본체와 일체화되어 제공될 수도 있다. 또 다른 실시 예에서, 후면 커버(150)가 전자 장치(100)의 본체로부터 분리되어, 배터리를 교체할 수 있는 형태를 가질 수 있다. 후면 커버(150)는 배터리 커버 또는 배면 커버로 참조될 수도 있다.According to an embodiment, the electronic device 100 may additionally include a speaker, a receiver, a front camera, a proximity sensor, a home key, and the like. The electronic device 100 according to an embodiment may be provided in which the rear cover 150 is integrated with the main body of the electronic device. In another embodiment, the rear cover 150 may be separated from the main body of the electronic device 100 to have a form in which the battery can be replaced. The back cover 150 may be referred to as a battery cover or a back cover.
일 실시 예에서, 디스플레이(110)의 제1 영역(170)에 사용자의 지문 인식을 위한 지문 센서(171)가 포함될 수 있다. 지문 센서(171)는 디스플레이(110)의 아래 층에 배치됨으로써, 사용자에 의해 시인되지 않거나, 시인이 어렵게 배치될 수 있다. 또한, 지문 센서(171) 외에 추가적인 사용자/생체 인증을 위한 센서가 디스플레이(110)의 일부 영역에 배치될 수 있다. 다른 실시 예에서, 사용자/생체 인증을 위한 센서는 베젤(190)의 일 영역에 배치될 수 있다. 예를 들어, 홍채 인증을 위한 IR 센서가 디스플레이(110)의 일 영역을 통해 노출되거나, 베젤(190)의 일 영역을 통해 노출될 수 있다.In an embodiment, a fingerprint sensor 171 for recognizing a user's fingerprint may be included in the first area 170 of the display 110 . Since the fingerprint sensor 171 is disposed on a lower layer of the display 110 , the fingerprint sensor 171 may not be recognized by the user or may be difficult to recognize. Also, in addition to the fingerprint sensor 171 , a sensor for additional user/biometric authentication may be disposed in a portion of the display 110 . In another embodiment, a sensor for user/biometric authentication may be disposed on one area of the bezel 190 . For example, the IR sensor for iris authentication may be exposed through one area of the display 110 or may be exposed through one area of the bezel 190 .
일 실시 예에서, 전자 장치(100)의 전면의 제2 영역(160)에는 전면 카메라(161)가 배치될 수 있다. 도 1의 실시 예에서는 전면 카메라(161)가 디스플레이(110)의 일 영역을 통해 노출되는 것으로 도시되었으나, 다른 실시 예에서 전면 카메라(161)가 베젤(190)을 통해 노출될 수 있다. 전자 장치(100)는 하나 이상의 전면 카메라(161)를 포함할 수 있다. 예를 들어, 전자 장치(100)는 제1 전면 카메라 및 제2 전면 카메라와 같이 2개의 전면 카메라를 포함할 수 있다. 일 실시 예에서, 제1 전면 카메라와 제2 전면 카메라는 동등한 사양(예: 화소)을 가지는 동종의 카메라일 수 있으나, 제1 전면 카메라와 제2 전면 카메라는 다른 사양의 카메라로 구현될 수 있다. 전자 장치(100)는 2개의 전면 카메라를 통해 듀얼 카메라와 관련된 기능(예: 3D 촬영, 자동 초점(auto focus) 등)을 지원할 수 있다. 상기 언급된 전면 카메라에 대한 설명은 전자 장치(100)의 후면 카메라에 동일 또는 유사하게 적용될 수 있다.In an embodiment, the front camera 161 may be disposed in the second area 160 on the front side of the electronic device 100 . In the embodiment of FIG. 1 , the front camera 161 is shown to be exposed through one area of the display 110 , but in another embodiment, the front camera 161 may be exposed through the bezel 190 . The electronic device 100 may include one or more front cameras 161 . For example, the electronic device 100 may include two front cameras, such as a first front camera and a second front camera. In an embodiment, the first front camera and the second front camera may be cameras of the same type having the same specifications (eg, pixels), but the first front camera and the second front camera may be implemented as cameras of different specifications. . The electronic device 100 may support a function (eg, 3D imaging, auto focus, etc.) related to a dual camera through two front cameras. The above-mentioned description of the front camera may be equally or similarly applied to the rear camera of the electronic device 100 .
일 실시 예에서, 전자 장치(100)는 플래시와 같이 촬영을 보조하는 각종 하드웨어나 센서(163)가 추가적으로 배치될 수 있다. 예를 들어, 피사체와 전자 장치(100) 사이의 거리를 감지하기 위한 거리 센서(예: TOF 센서) 등이 더 포함될 수 있다. 상기 거리 센서는 전면 카메라 및/또는 후면 카메라에 모두 적용될 수 있다. 상기 거리 센서는 별도로 배치되거나 포함되어 전면 카메라 및/또는 후면 카메라에 배치될 수 있다.In an embodiment, in the electronic device 100 , various hardware or sensors 163 to assist photographing, such as a flash, may be additionally disposed. For example, a distance sensor (eg, TOF sensor) for detecting the distance between the subject and the electronic device 100 may be further included. The distance sensor may be applied to both a front camera and/or a rear camera. The distance sensor may be separately disposed or included and disposed on the front camera and/or the rear camera.
일 실시 예에서, 전자 장치(100)의 측면부에는 적어도 하나의 물리 키가 배치될 수 있다. 예를 들어, 디스플레이(110)를 ON/OFF하거나 전자 장치(100)의 전원을 ON/OFF하기 위한 제1 기능 키(151)가 전자 장치(100)의 전면을 기준으로 우측 가장자리에 배치될 수 있다. 일 실시 예에서, 전자 장치(100)의 볼륨을 제어하거나 화면 밝기 등을 제어하기 위한 제2 기능 키(152)가 전자 장치(100)의 전면을 기준으로 좌측 가장자리에 배치될 수 있다. 이 외에도 추가적은 버튼이나 키가 전자 장치(100)의 전면이나 후면에도 배치될 수 있다. 예를 들어, 전면의 베젤(190) 중 하단 영역에 특정 기능에 맵핑된 물리 버튼이나 터치 버튼이 배치될 수 있다.In an embodiment, at least one physical key may be disposed on a side portion of the electronic device 100 . For example, the first function key 151 for turning on/off the display 110 or turning on/off the power of the electronic device 100 may be disposed on the right edge with respect to the front surface of the electronic device 100 . have. In an embodiment, the second function key 152 for controlling the volume or screen brightness of the electronic device 100 may be disposed on the left edge with respect to the front surface of the electronic device 100 . In addition to this, additional buttons or keys may be disposed on the front or rear of the electronic device 100 . For example, a physical button or a touch button mapped to a specific function may be disposed in a lower region of the front bezel 190 .
도 1에 도시된 전자 장치(100)는 하나의 예시에 해당하며, 본 개시에 개시된 기술적 사상이 적용되는 장치의 형태를 제한하는 것은 아니다. 예를 들어, 플렉서블 디스플레이 및 힌지 구조를 채용하여, 가로 방향으로 폴딩이 가능하거나 세로 방향으로 폴딩이 가능한 폴더블 전자 장치나, 롤링이 가능한 롤러블 전자 장치나, 태블릿 또는 노트북에도 본 개시의 기술적 사상이 적용될 수 있다. 또한, 같은 방향 향하는 제1 카메라와 제2 카메라가, 장치의 회전, 접힘, 변형 등을 통해 다른 방향을 향하도록 배치되는 것이 가능한 경우에도 본 기술적 사상은 적용될 수 있다.The electronic device 100 illustrated in FIG. 1 corresponds to one example, and the shape of the device to which the technical idea disclosed in the present disclosure is applied is not limited. For example, by adopting a flexible display and a hinge structure, a foldable electronic device that can be folded horizontally or vertically, a rollable electronic device that can be rolled, a tablet or a notebook computer, the technical idea of the present disclosure This can be applied. In addition, the present technical idea can be applied even when it is possible to arrange the first camera and the second camera facing in the same direction to face different directions through rotation, folding, deformation, etc. of the device.
도 1을 참조하면, 일 실시 예에 따른 전자 장치(100)는 카메라 모듈(180)을 포함할 수 있다. 카메라 모듈(180)은 렌즈 어셈블리(111), 하우징(113), 적외선 차단 필터(infrared cut filter)(115), 이미지 센서(120) 및 이미지 시그널 프로세서(image signal processor)(130)를 포함할 수 있다. Referring to FIG. 1 , an electronic device 100 according to an embodiment may include a camera module 180 . The camera module 180 may include a lens assembly 111 , a housing 113 , an infrared cut filter 115 , an image sensor 120 , and an image signal processor 130 . have.
일 실시 예에서, 렌즈 어셈블리(111)는 전면 카메라와 후면 카메라에 따라 렌즈의 개수, 배치, 종류 등이 서로 다를 수 있다. 렌즈 어셈블리의 타입에 따라 전면 카메라와 후면 카메라는 서로 다른 특성(예: 초점 거리, 최대 배율 등)을 가질 수 있다. 상기 렌즈는 광축을 따라 전, 후로 움직일 수 있으며, 초점 거리를 변화시켜 피사체가 되는 대상 객체가 선명하게 찍힐 수 있도록 동작할 수 있다.In an embodiment, the lens assembly 111 may have a different number, arrangement, type, etc. of lenses depending on the front camera and the rear camera. Depending on the type of lens assembly, the front camera and the rear camera may have different characteristics (eg, focal length, maximum magnification, etc.). The lens may be moved forward and backward along the optical axis, and may operate so that a target object, which is a subject, can be clearly captured by changing a focal length.
일 실시 예에서, 카메라 모듈(180)은 광축 상에 정렬된 적어도 하나 이상의 렌즈를 실장하는 경통과 광축을 중심으로 상기 경통의 둘레를 둘러싸는 적어도 하나의 코일을 실장하는 하우징(113)을 포함할 수 있다. In one embodiment, the camera module 180 includes a housing 113 for mounting at least one coil surrounding the periphery of the barrel around the optical axis and a barrel for mounting at least one or more lenses aligned on the optical axis. can
일 실시 예에서, 적외선 차단 필터(115)는 이미지 센서(120)의 상면에 배치될 수 있다. 렌즈를 통과한 피사체의 상은 적외선 차단 필터(115)에 의해 일부 필터링된 후 이미지 센서(120)에 의해 감지될 수 있다.In an embodiment, the infrared cut filter 115 may be disposed on the upper surface of the image sensor 120 . The image of the subject passing through the lens may be partially filtered by the infrared cut filter 115 and then detected by the image sensor 120 .
일 실시 예에서, 이미지 센서(120)는 인쇄회로기판의 상면에 배치될 수 있다. 이미지 센서(120)는 커넥터(connector)에 의해 인쇄회로기판(140)과 연결된 이미지 시그널 프로세서(130)와 전기적으로 연결될 수 있다. 상기 커넥터로는 연성 인쇄회로 기판(FPCB) 또는 케이블(cable) 등이 사용될 수 있다.In an embodiment, the image sensor 120 may be disposed on the upper surface of the printed circuit board. The image sensor 120 may be electrically connected to the image signal processor 130 connected to the printed circuit board 140 by a connector. A flexible printed circuit board (FPCB) or a cable may be used as the connector.
일 실시 예에서, 이미지 센서(120)는 CMOS(complementary metal oxide semiconductor) 센서 또는 CCD(charged coupled device) 센서일 수 있다. 이미지 센서(120)에는 복수의 개별 픽셀들(pixels)이 집적되며, 각 개별 픽셀은 마이크로 렌즈(micro lens), 컬러 필터 및 포토다이오드(photodiode)를 포함할 수 있다. 각 개별 픽셀은 일종의 광검출기로서 입력되는 광을 전기적 신호로 변환시킬 수 있다. 광검출기는 일반적으로 캡쳐된 광의 파장을 스스로 검출할 수 없고 컬러 정보를 결정할 수 없다. 상기 광검출기는 포토다이오드를 포함할 수 있다. In an embodiment, the image sensor 120 may be a complementary metal oxide semiconductor (CMOS) sensor or a charged coupled device (CCD) sensor. A plurality of individual pixels are integrated in the image sensor 120 , and each individual pixel may include a micro lens, a color filter, and a photodiode. Each individual pixel is a kind of photodetector that can convert incoming light into an electrical signal. Photodetectors generally cannot detect the wavelength of the captured light by themselves and cannot determine color information. The photodetector may include a photodiode.
일 실시 예에서, 렌즈 어셈블리(111)를 통해 입사된 피사체의 광 정보는 이미지 센서(120)에 의해 전기적 신호로 변환되어 이미지 시그널 프로세서(130)로 입력될 수 있다.In an embodiment, light information of a subject incident through the lens assembly 111 may be converted into an electrical signal by the image sensor 120 and input to the image signal processor 130 .
일 실시 예에서, 카메라 모듈(180)은 전자 장치(100)의 후면뿐만 아니라, 전면에 배치될 수 있다. 또한 전자 장치(100)는 카메라의 성능 향상을 위해 한 개의 카메라 모듈(180) 뿐만 아니라, 여러 개의 카메라 모듈(180)을 포함할 수 있다. 예를 들어, 전자 장치(100)는 영상 통화 또는 셀프 카메라 촬영을 위한 전면 카메라(161)를 더 포함할 수 있다. 전면 카메라(161)는 후면 카메라 모듈에 비하여 상대적으로 낮은 화소 수를 지원할 수 있다. 전면 카메라는 후면 카메라 모듈에 비하여 상대적으로 보다 소형일 수 있다. In an embodiment, the camera module 180 may be disposed on the front side as well as the rear side of the electronic device 100 . Also, the electronic device 100 may include a plurality of camera modules 180 as well as one camera module 180 to improve camera performance. For example, the electronic device 100 may further include a front camera 161 for video call or self-camera photography. The front camera 161 may support a relatively low number of pixels compared to the rear camera module. The front camera may be relatively smaller than the rear camera module.
도 2는 일 실시 예에 따른 전자 장치의 하드웨어 구성을 나타낸다. 도 2의 설명에 있어서, 도 1에서 설명된 구성은 간략하게 설명되거나 설명이 생략될 수 있다.2 illustrates a hardware configuration of an electronic device according to an embodiment. In the description of FIG. 2 , the configuration illustrated in FIG. 1 may be briefly described or a description thereof may be omitted.
도 2를 참고하면, 일 실시 예에서 전자 장치(100)는 카메라 모듈(180), 프로세서(220), 디스플레이(110) 및 메모리(230)를 포함할 수 있다. 도 2의 설명에 있어서, 도 1과 동일한 참조번호에 대한 설명은 생략될 수 있다.Referring to FIG. 2 , in an embodiment, the electronic device 100 may include a camera module 180 , a processor 220 , a display 110 , and a memory 230 . In the description of FIG. 2 , descriptions of the same reference numerals as those of FIG. 1 may be omitted.
일 실시 예에서, 카메라 모듈(180)은 렌즈 어셈블리(111), 이미지 센서(120), 깊이 감지 센서(210) 및 이미지 시그널 프로세서(image signal processor)(130)를 포함할 수 있다. In an embodiment, the camera module 180 may include a lens assembly 111 , an image sensor 120 , a depth detection sensor 210 , and an image signal processor 130 .
도 2에 도시된 구성요소들은 예시적인 것이며, 전자 장치(100)는 추가적인 구성요소들을 더 포함할 수 있다. 예를 들어, 전자 장치(100)는 오디오 데이터를 녹음하기 위한 적어도 하나의 마이크를 더 포함할 수 있다. 또한 예를 들어 전자 장치(100)는 전자 장치(100)의 전면 또는 후면이 향하는 방향 및/또는 전자 장치(100)의 자세 정보를 판단하기 위한 적어도 하나의 센서를 포함할 수 있다. 일 실시 예에서, 상기 적어도 하나의 센서는 가속도 센서, 자이로 센서 등을 포함할 수 있다. 도 2의 전자 장치(100)에 포함된 또는 포함될 수 있는 하드웨어에 대한 구체적인 설명이 도 10을 참고하여 제공된다.The components illustrated in FIG. 2 are exemplary, and the electronic device 100 may further include additional components. For example, the electronic device 100 may further include at least one microphone for recording audio data. Also, for example, the electronic device 100 may include at least one sensor for determining a direction in which the front or rear of the electronic device 100 faces and/or posture information of the electronic device 100 . In an embodiment, the at least one sensor may include an acceleration sensor, a gyro sensor, and the like. A detailed description of hardware included or may be included in the electronic device 100 of FIG. 2 is provided with reference to FIG. 10 .
일 실시 예에서, 이미지 센서(120)는 CMOS(complementary metal oxide semiconductor) 센서 또는 CCD(charged coupled device) 센서 등을 포함할 수 있다. 렌즈 어셈블리(111)를 통해 입사된 피사체의 광 정보는 이미지 센서(120)에 의해 전기적 신호로 변환되어 이미지 시그널 프로세서(130)로 입력될 수 있다. 이미지 센서(120)의 상면에 적외선 차단 필터(infrared cut filter, 이하 IR cut 필터)가 배치될 수 있으며, 렌즈를 통과한 피사체의 상은 상기 IR cut 필터에 의해 일부 필터링된 후 이미지 센서(120)에 의해 감지될 수 있다.In an embodiment, the image sensor 120 may include a complementary metal oxide semiconductor (CMOS) sensor or a charged coupled device (CCD) sensor. The light information of the subject incident through the lens assembly 111 may be converted into an electrical signal by the image sensor 120 and input to the image signal processor 130 . An infrared cut filter (hereinafter, IR cut filter) may be disposed on the upper surface of the image sensor 120 , and the image of the subject passing through the lens is partially filtered by the IR cut filter and then applied to the image sensor 120 . can be detected by
일 실시 예에서, 광 방출기(light emitter)는 출력광을 생성하고 이를 외부로 방출할 수 있다. 광 방출기는 깊이 감지 센서(210)와 별도로 구성되어 작동할 수도 있고, 깊이 감지 센서(210)에 포함되어 작동할 수도 있다.In an embodiment, a light emitter may generate output light and emit it to the outside. The light emitter may be configured and operated separately from the depth detection sensor 210 , or may be included in the depth detection sensor 210 to operate.
일 실시 예에서, 깊이 감지 센서(210)는 이미지의 각 픽셀의 깊이 값을 계산할 수 있는 센서일 수 있다. 상기 깊이 감지 센서(210)는 예를 들어, 적어도 스테레오(stereo) 방식, TOF(time of flight) 방식 또는 스트럭쳐 패턴(structured pattern) 방식으로 수행될 수 있다. 깊이 감지 센서(210)(예: TOF 센서)는 광 방출기로부터 방출된 출력광에 대응되는 입력광을 수신할 수 있다. 상기 출력광 및 입력광은 적외선 또는 근적외선일 수 있다. 깊이 감지 센서(210)는 입력광을 획득하여 피사체를 조사할 수 있다. 깊이 감지 센서(210)는 입력광을 분석하여 거리 정보를 획득할 수 있다. 본 명세서에서, 출력광은 광 방출기(light emitter)로부터 출력되어 객체에 입사되는 광을 의미하고, 입력광은 출력광이 객체에 도달하여 객체로부터 반사된 후 깊이 감지 센서(210)로 입력되는 광을 의미할 수 있다. 상기 출력광은 출력 신호로 참조될 수 있고, 상기 입력광은 입력 신호로 참조될 수 있다.In an embodiment, the depth sensor 210 may be a sensor capable of calculating a depth value of each pixel of an image. The depth sensor 210 may be implemented, for example, in at least a stereo method, a time of flight (TOF) method, or a structured pattern method. The depth sensor 210 (eg, a TOF sensor) may receive an input light corresponding to the output light emitted from the light emitter. The output light and the input light may be infrared or near infrared. The depth sensor 210 may obtain input light to irradiate the subject. The depth sensor 210 may obtain distance information by analyzing the input light. In this specification, output light means light output from a light emitter and incident on an object, and input light is light input to the depth sensor 210 after the output light reaches the object and is reflected from the object. can mean The output light may be referred to as an output signal, and the input light may be referred to as an input signal.
일 실시 예에서, 깊이 감지 센서(210)는 획득한 입력광으로 소정의 노출주기 동안 객체를 조사할 수 있다. 상기 노출주기는 1개의 프레임 주기를 의미할 수 있다. 복수의 프레임을 생성하는 경우, 상기 노출주기는 반복될 수 있다. 예를 들어, 카메라 모듈(180)이 20 FPS로 객체를 촬영하는 경우, 노출주기는 1/20[sec]가 될 수 있다. 그리고 100개의 프레임을 생성하는 경우, 노출주기는 100번 반복될 수 있다.In an embodiment, the depth sensor 210 may irradiate the object with the obtained input light during a predetermined exposure period. The exposure period may mean one frame period. When generating a plurality of frames, the exposure cycle may be repeated. For example, when the camera module 180 captures an object at 20 FPS, the exposure period may be 1/20 [sec]. And when 100 frames are generated, the exposure cycle may be repeated 100 times.
일 실시 예에서, 이미지 시그널 프로세서(130)와 이미지 센서(120)가 물리적으로 구분된 경우, 규격에 맞는 센서 인터페이스가 있을 수 있다. In an embodiment, when the image signal processor 130 and the image sensor 120 are physically separated, there may be a sensor interface conforming to a standard.
일 실시 예에서, 이미지 시그널 프로세서(130)는 전기적으로 변환된 이미지 데이터에 대하여 이미지 처리를 할 수 있다. 이미지 시그널 프로세서(130)에서의 과정은 pre-ISP(이하, 전처리(pre-processing)) 및 ISP chain(이하, 후처리(post-processing))로 구분될 수 있다. 디모자이크 과정 이전의 이미지 처리는 전처리를 의미할 수 있고, 디모자이크 과정 이후의 이미지 처리는 후처리를 의미할 수 있다. 상기 전처리 과정은 3A 처리, 렌즈 셰이딩 보상(lens shading correction), 엣지 개선(edge enhancement), 데드 픽셀 보정(dead pixel correction) 및 knee 보정 등을 포함할 수 있다. 상기 3A는 AWB(auto white balance), AE(auto exposure), AF(Auto focusing) 중 적어도 하나를 포함할 수 있다. 상기 후처리 과정은 적어도 센서 색인 값(index) 변경, 튜닝 파라미터 변경, 화면 비율 조절 중 하나를 포함할 수 있다. 후처리 과정은 상기 이미지 센서(120)로부터 출력되는 이미지 데이터 또는 스케일러로부터 출력되는 이미지 데이터를 처리하는 과정을 포함할 수 있다. 이미지 시그널 프로세서(130)는 후처리 과정을 통해 이미지의 명암대비(contrast), 선명도(sharpness), 채도(saturation), 디더링(dithering) 등을 조정할 수 있다. 여기서, 명암대비(contrast), 선명도(sharpness), 채도(saturation) 조정 절차는 YUV 색 공간에서 실행되고, 디더링 절차(dithering procedure)는 RGB(Red Green Blue) 색 공간(color space)에서 실행될 수 있다. 상기 전처리 과정 중 일부는 상기 후처리 과정에서 수행되거나, 상기 후처리 과정 중 일부는 상기 전처리 과정에서 수행될 수 있다. 또한, 상기 전처리 과정 중 일부는 후처리에서의 과정 중 일부와 중복될 수 있다. In an embodiment, the image signal processor 130 may perform image processing on the electrically converted image data. A process in the image signal processor 130 may be divided into a pre-ISP (hereinafter, pre-processing) and an ISP chain (hereinafter, post-processing). Image processing before the demosaicing process may mean pre-processing, and image processing after the demosaicing process may mean post-processing. The preprocessing process may include 3A processing, lens shading correction, edge enhancement, dead pixel correction, knee correction, and the like. 3A may include at least one of auto white balance (AWB), auto exposure (AE), and auto focusing (AF). The post-processing process may include at least one of changing a sensor index value, changing a tuning parameter, and adjusting an aspect ratio. The post-processing process may include processing the image data output from the image sensor 120 or image data output from the scaler. The image signal processor 130 may adjust contrast, sharpness, saturation, dithering, etc. of the image through a post-processing process. Here, the contrast, sharpness, and saturation adjustment procedures are performed in the YUV color space, and the dithering procedure may be performed in the RGB (Red Green Blue) color space. . A part of the pre-processing process may be performed in the post-processing process, or a part of the post-processing process may be performed in the pre-processing process. In addition, a part of the pre-processing process may be overlapped with a part of the post-processing process.
일 실시 예에서, 디스플레이(110)는 프로세서(220)에 의해 실행되는 어플리케이션의 실행 화면이나, 메모리(230)에 저장된 이미지 및/또는 동영상과 같은 컨텐츠들을 디스플레이(110)에 표시할 수 있다. 또한 프로세서(220)는 카메라 모듈(180)을 통해 획득된 이미지 데이터를 디스플레이(110)에 실시간으로 표시할 수 있다.In an embodiment, the display 110 may display contents such as an execution screen of an application executed by the processor 220 or images and/or videos stored in the memory 230 on the display 110 . In addition, the processor 220 may display the image data acquired through the camera module 180 on the display 110 in real time.
일 실시 예에서, 디스플레이(110)는 터치 패널과 일체형으로 구현될 수 있다. 디스플레이(110)는 터치 기능을 지원할 수 있으며, 손가락을 이용한 터치와 같은 사용자 입력을 감지하고 프로세서(220)로 전달할 수 있다. 디스플레이(110)는 디스플레이(110)를 구동하기 위한 디스플레이 구동 회로(display driver integrated circuit, DDIC)와 연결될 수 있고, 터치 패널은 터치 좌표를 감지하고 터치 관련 알고리즘을 처리하는 터치 IC와 연결될 수 있다. 일 실시 예에서, 디스플레이 구동 회로와 터치 IC는 일체로 형성될 수 있고, 다른 실시 예에서 디스플레이 구동 회로와 터치 IC는 별개로 형성될 수 있다. 디스플레이 구동 회로 및/또는 터치 IC는 프로세서(220)와 전기적으로 연결될 수 있다.In an embodiment, the display 110 may be implemented integrally with the touch panel. The display 110 may support a touch function, detect a user input such as a touch using a finger, and transmit it to the processor 220 . The display 110 may be connected to a display driver integrated circuit (DDIC) for driving the display 110 , and the touch panel may be connected to a touch IC that detects touch coordinates and processes a touch-related algorithm. In one embodiment, the display driving circuit and the touch IC may be integrally formed, and in another embodiment, the display driving circuit and the touch IC may be formed separately. The display driving circuit and/or the touch IC may be electrically connected to the processor 220 .
일 실시 예에서, 프로세서(220)는 전자 장치(100)에서 지원하는 다양한 기능을 실행/제어할 수 있다. 예를 들어, 프로세서(220)는 메모리(230)에 저장된 프로그래밍 언어로 작성된 코드를 실행함으로써 어플리케이션을 실행하고, 각종 하드웨어를 제어할 수 있다. 예를 들어, 프로세서(220)는 메모리(230)에 저장된 촬영 기능을 지원하는 어플리케이션을 실행할 수 있다. 또한 프로세서(220)는 카메라 모듈(180)을 실행하고 카메라 모듈(180)이 사용자가 의도하는 동작을 수행할 수 있도록 적절한 촬영 모드를 설정하고 지원할 수 있다.In an embodiment, the processor 220 may execute/control various functions supported by the electronic device 100 . For example, the processor 220 may execute an application by executing a code written in a programming language stored in the memory 230 , and may control various hardware. For example, the processor 220 may execute an application supporting a photographing function stored in the memory 230 . In addition, the processor 220 may execute the camera module 180 and set and support an appropriate shooting mode so that the camera module 180 may perform an operation intended by the user.
일 실시 예에서, 메모리(230)는 프로세서(220)에 의해 실행 가능한 명령어들이 저장될 수 있다. 메모리(230)는 RAM(random access memory)과 같이 일시적으로 데이터들이 저장되는 구성요소 및/또는, SSD(solid state drive)와 같이 데이터들이 영구적으로 저장되는 구성요소를 포함하는 개념으로 이해될 수 있다. 예를 들어, 프로세서(220)는 SSD에 저장된 명령어들을 호출하여 RAM 공간에 소프트웨어 모듈을 구현할 수 있다. 다양한 실시 예에서 메모리(230)는 다양한 종류를 포함할 수 있고, 장치의 용도에 맞게 적절한 종류가 채택될 수 있다.In an embodiment, the memory 230 may store instructions executable by the processor 220 . The memory 230 may be understood as a concept including a component in which data is temporarily stored, such as a random access memory (RAM), and/or a component in which data is permanently stored, such as a solid state drive (SSD). . For example, the processor 220 may implement a software module in the RAM space by calling instructions stored in the SSD. In various embodiments, the memory 230 may include various types, and an appropriate type may be adopted according to the purpose of the device.
일 실시 예에서, 메모리(230)에는 카메라 모듈(180)과 연관된 어플리케이션이 저장될 수 있다. 예를 들어, 메모리(230)에는 카메라 어플리케이션이 저장될 수 있다. 카메라 어플리케이션은 사진 촬영, 동영상 촬영, 파노라마 촬영, 슬로우 모션 촬영 등 다양한 촬영 기능을 지원할 수 있다.In an embodiment, an application related to the camera module 180 may be stored in the memory 230 . For example, a camera application may be stored in the memory 230 . The camera application may support various shooting functions, such as photo shooting, video shooting, panoramic shooting, and slow motion shooting.
일 실시 예에서, 카메라 모듈(180)과 연관된 어플리케이션은 다양한 종류의 어플리케이션에 해당할 수 있다. 예를 들어 채팅 어플리케이션이나 웹브라우저 어플리케이션, 이메일 어플리케이션, 쇼핑 어플리케이션 등도 영상 통화, 사진/비디오 첨부, 스트리밍 서비스, 제품 이미지 또는 제품 관련 VR(virtual reality) 촬영 기능을 지원하기 위해 카메라 모듈(180)을 이용할 수 있다.In an embodiment, an application associated with the camera module 180 may correspond to various types of applications. For example, a chatting application, a web browser application, an email application, a shopping application, etc. may also use the camera module 180 to support a video call, photo/video attachment, streaming service, product image, or product-related virtual reality (VR) shooting function. can
도 3은 일 실시 예에 따른 전자 장치에서 초점 스택을 하기 위한 과정을 나타낸다. 도 3에 예시된 블록도의 동작 주체는 프로세서(예: 도 2의 프로세서(220)) 또는 이미지 시그널 프로세서(예: 도 1의 이미지 시그널 프로세서(130))로 이해될 수 있다.3 illustrates a process for performing a focus stack in an electronic device according to an exemplary embodiment. An operating entity of the block diagram illustrated in FIG. 3 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
일 실시 예에 따른 동작 310에 있어서, 프로세서(220)는 깊이 정보(301) 및 영상 정보(302)를 이용하여, 전자 장치(100)의 카메라와 대상 객체의 거리가 근거리인지 판단할 수 있다. 상기 깊이 정보(301)(depth information)는 깊이 감지 센서(210)를 통해서 획득될 수 있으며, 상기 영상 정보(302)는 이미지 센서(120)를 통해서 획득될 수 있다. 상기 영상 정보(302)는 이미지 센서(120)를 통해서 획득된 이미지 데이터로 참조될 수 있다. 상기 근거리의 기준은 이하 <표 1>을 통해서 확인할 수 있다.In operation 310 according to an embodiment, the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is a short distance using the depth information 301 and the image information 302 . The depth information 301 may be obtained through the depth sensor 210 , and the image information 302 may be obtained through the image sensor 120 . The image information 302 may be referred to as image data acquired through the image sensor 120 . The standard of the short distance can be confirmed through <Table 1> below.
  0.1F0.1F 0.2F0.2F 0.3F0.3F 0.4F0.4F 0.5F0.5F 0.6F0.6F 0.7F0.7F 0.8F0.8F 0.9F0.9F 1.0F1.0F
50cm50cm 00 -2-2 -4-4 -6-6 -6-6 -3-3 -3-3 -1-One 22 1212
40cm40cm -1-One -4-4 -6-6 -8-8 -8-8 -6-6 -4-4 -1-One 33 1717
30cm30cm -1-One -6-6 -9-9 -11-11 -12-12 -9-9 -8-8 -3-3 44 2323
20cm20cm -2-2 -9-9 -16-16 -20-20 -22-22 -18-18 -15-15 -9-9 22 2929
15cm15cm -3-3 -14-14 -23-23 -26-26 -31-31 -27-27 -22-22 -17-17 -3-3 2929
14cm14cm -4-4 -15-15 -25-25 -26-26 -34-34 -28-28 -25-25 -20-20 -5-5 2828
13cm13cm -4-4 -16-16 -26-26 -29-29 -37-37 -31-31 -27-27 -24-24 -7-7 2727
12cm12cm -4-4 -17-17 -26-26 -32-32 -40-40 -33-33 -29-29 -27-27 -11-11 2424
11cm11cm -5-5 -17-17 -27-27 -35-35 -44-44 -36-36 -30-30 -27-27 -5-5 2121
10cm10cm -6-6 -18-18 -30-30 -39-39 -48-48 -38-38 -30-30 -30-30 -11-11 1616
<표 1>을 참조하면, 가로 축은 렌즈 중심으로부터 렌즈의 가장 자리까지의 일종의 거리를 필드(field)로 표현한 것이며, 세로 축은 전자 장치(100)의 카메라와 대상 객체와의 거리를 나타낼 수 있다.Referring to <Table 1>, the horizontal axis represents a kind of distance from the center of the lens to the edge of the lens as a field, and the vertical axis represents the distance between the camera of the electronic device 100 and the target object.
<표 1>은 렌즈 중심을 0 필드, 렌즈 가장자리를 1 필드라고 했을 때, 렌즈 중심에 초점이 맞다고 가정했을 때 거리 별로 렌즈를 얼마나 움직여야 각 필드에서 최대 해상력을 가지는지를 나타내는 표이다. 이 값은 렌즈의 이동량(mm) 또는 스텝량(step) 등으로 나타낼 수 있다. 상기 <표 1>과 같은 렌즈 이동량의 정보는 설계 데이터를 기준으로 얻어질 수 있고, 모듈별 편차 보정을 위해 보정(calibration) 데이터를 기준으로 얻어질 수 있다.<Table 1> is a table showing how much the lens needs to be moved to have the maximum resolution in each field, assuming that the lens center is 0 field and the lens edge is 1 field, and the lens center is in focus. This value can be expressed as a movement amount (mm) or a step amount (step) of the lens. Information on the lens movement amount as shown in <Table 1> may be obtained based on design data, and may be obtained based on calibration data for correcting deviation for each module.
상기 <표 1>을 보면, 30cm 이상의 거리에서는 필드 별 최대 해상력을 위한 렌즈 이동량이 크지 않으므로 프로세서(220)는 약 30cm 기준으로 원, 근거리를 판단할 수 있다.Referring to <Table 1>, at a distance of 30 cm or more, since the amount of lens movement for the maximum resolution for each field is not large, the processor 220 may determine the circle and the short distance based on about 30 cm.
일 실시 예에서, 프로세서(220)는 깊이 감지 센서(210)를 통해 획득한 깊이 정보(depth information)를 이용하여 전자 장치(100)의 카메라와 대상 객체의 거리가 약 30cm 이하인지 판단할 수 있다.In an embodiment, the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is less than or equal to about 30 cm using depth information obtained through the depth sensor 210 . .
일 실시 예에 따른 동작 320에 있어서, 프로세서(220)는 대상 객체가 평면 객체인지 판단할 수 있다. 프로세서(220)는 대상 객체가 평면 객체인지 판단하기 위해 평면 정보를 계산할 수 있다. 프로세서(220)는 평면 판단 및 평면 정보의 계산을 위하여 깊이 정보(depth information)를 카메라 좌표계 상의 점 구름 형식(point cloud format)으로 변경할 수 있다. 프로세서(220)는 점 구름(point cloud)들과 3차원 평면과의 거리가 가장 짧은 평면 방정식을 계산하고 거리의 제곱 또는 절대값을 이용하여 평면에 대한 신뢰도를 획득하여 결과적으로 평면인지를 판단할 수 있다.In operation 320 according to an embodiment, the processor 220 may determine whether the target object is a flat object. The processor 220 may calculate plane information to determine whether the target object is a plane object. The processor 220 may change depth information into a point cloud format on the camera coordinate system for plane determination and calculation of plane information. The processor 220 calculates a plane equation having the shortest distance between point clouds and a three-dimensional plane, obtains reliability for the plane using the square or absolute value of the distance, and determines whether it is a plane as a result. can
일 실시 예에서, 프로세서(220)는 깊이 감지 센서(210)를 이용하여 일정 범위의 곡률을 가진 평면을 평면 객체로 판단할 수 있다. 프로세서(220)는 ToF(time-of-flight) 깊이 정보에 대상 객체를 매칭시켰을 때의 에러 값이 1cm 이내인 경우 평면 객체로 판단할 수 있다.In an embodiment, the processor 220 may determine a plane having a predetermined range of curvature as a plane object by using the depth sensor 210 . The processor 220 may determine that the object is a flat object if the error value when the target object is matched to time-of-flight (ToF) depth information is within 1 cm.
일 실시 예에 따른 동작 330에 있어서, 프로세서(220)는 대상 객체의 종류를 분석할 수 있다. 프로세서(220)는, 근거리에서 휘어져 있는 종이나 책의 경우, 평면이라고 판단되기 어려울 수 있으므로 이를 보완하기 위하여 대상 객체의 종류를 분석할 수 있다.In operation 330 according to an embodiment, the processor 220 may analyze the type of the target object. The processor 220 may analyze the type of the target object in order to compensate for the fact that it may be difficult to determine that the paper or book is bent at a short distance.
일 실시 예에서, 프로세서(220)는 전자 장치(100)의 일 기능(예: scene optimizer)을 통해 대상 객체를 분류할 수 있다. 상기 일 기능(예: scene optimizer)은 데이터를 바탕으로 객체 등을 판별할 수 있는 기능일 수 있다. 예를 들어, 자연 풍경을 촬영하는 경우 프로세서(220)는 대상 객체(예: 나무)의 평균적인 형태, 평균적인 색상(예: 녹색과 갈색) 등을 고려하여 상기 대상 객체를 판별할 수 있다. 프로세서(220)는 전자 장치(100)의 일 기능(예: scene optimizer)을 통해 대상 객체가 종이 또는 책인지 판단할 수 있다.In an embodiment, the processor 220 may classify the target object through a function (eg, a scene optimizer) of the electronic device 100 . The one function (eg, a scene optimizer) may be a function capable of discriminating an object or the like based on data. For example, when photographing a natural landscape, the processor 220 may determine the target object in consideration of an average shape, average color (eg, green and brown) of the target object (eg, a tree). The processor 220 may determine whether the target object is a paper or a book through a function (eg, a scene optimizer) of the electronic device 100 .
일 실시 예에 따른 동작 340에 있어서, 프로세서(220)는 렌즈 정보(303)를 이용하여 초점 스택을 위한 렌즈 이동량 및 필요 촬영 수를 계산할 수 있다. 렌즈 정보(303)는 상기 <표 1>을 통해서 확인할 수 있다. In operation 340 according to an embodiment, the processor 220 may use the lens information 303 to calculate a lens movement amount and the required number of shots for the focus stack. The lens information 303 can be confirmed through <Table 1>.
일 실시 예에서, 프로세서(220)는 렌즈 정보(303), 근거리 평면 객체 및/또는 텍스트 정보 등의 조건을 조합하여 초점 스택 동작이 필요한지 판단할 수 있다. 프로세서(220)는 초점 스택 동작이 필요하다고 판단한 경우, 각 필드(field) 별 블러(blur) 정도, 텍스트 포함 여부, 대상 객체와의 거리 등을 고려하여 촬영 장 수를 결정할 수 있다. In an embodiment, the processor 220 may determine whether a focus stack operation is necessary by combining conditions such as the lens information 303, the near-plane object, and/or text information. When it is determined that the focus stack operation is necessary, the processor 220 may determine the number of shots in consideration of a degree of blur for each field, whether text is included, a distance from a target object, and the like.
일 실시 예에서, 0.5 필드 내에서만 근거리 평면 또는 텍스트가 존재한다면 0.1 필드 내지 0.5 필드 사이의 렌즈 이동량을 이용해서 촬영하여 각 필드 별 최대 해상력을 갖는 이미지들을 획득할 수 있다. 이 경우, 프로세서(220)는 0 필드, 0.1 필드 내지 0.5 필드에 대응되는 6장의 이미지를 초점 스택에 필요한 이미지로 판단할 수 있다. In an embodiment, if a near plane or text exists only within a 0.5 field, images having the maximum resolution for each field may be obtained by photographing using a lens movement amount between 0.1 and 0.5 fields. In this case, the processor 220 may determine six images corresponding to the 0 field and the 0.1 field to the 0.5 field as images required for the focus stack.
일 실시 예에서, 텍스트가 0.8 필드 부근에만 존재한다면 0.7 필드 내지 0.9 필드 사이의 렌즈 이동량을 이용할 수 있다. 이 경우, 프로세서(220)는 0 필드, 0.7 필드 내지 0.9 필드에 대응되는 4장의 이미지를 초점 스택에 필요한 이미지로 판단할 수 있다. 상기 <표 1>을 참조하면, 0.1 & 0.9 필드, 0.2 & 0.8 필드, 0.3 & 0.7 필드, 0.4 & 0.6 필드 쌍의 필드들은 최대 해상력을 위한 렌즈 이동량이 유사하기 때문에, 프로세서(220)는 평균 렌즈 이동량을 이용하여 한 번의 렌즈 이동량으로 두 필드를 커버할 수 있다. 전자 장치(100)는 한 번의 렌즈 이동량으로 두 필드를 커버하는 경우, 촬영 장 수를 줄일 수 있어 고해상도 이미지의 초점 스택 처리 시간을 줄일 수 있다. In an embodiment, if the text exists only in the vicinity of 0.8 field, the lens shift amount between 0.7 field and 0.9 field may be used. In this case, the processor 220 may determine the four images corresponding to the 0 field and the 0.7 field to the 0.9 field as images necessary for the focus stack. Referring to <Table 1>, since the fields of the 0.1 & 0.9 field, 0.2 & 0.8 field, 0.3 & 0.7 field, and 0.4 & 0.6 field pair have similar lens shift amounts for maximum resolution, the processor 220 generates an average lens Using the shift amount, two fields can be covered with one lens shift amount. When two fields are covered with one lens movement amount, the electronic device 100 may reduce the number of shots and thus reduce a focus stack processing time of a high-resolution image.
일 실시 예에서, 아래 도 5 및 도 5에 대한 설명처럼, 전자 장치(100)와 대상 객체의 각도가 클 경우, 이미지 센터를 기준으로 특정 방향은 카메라와의 거리가 이미지 센터보다 가깝게 되고 다른 반대 방향은 카메라와의 거리가 센터보다 멀어지게 될 수 있다. 이 경우, 유사한 렌즈 움직임으로 최대 해상력을 가지는 필드 쌍이 존재하지 않으므로 촬영 장 수가 늘어날 수 있다.In an embodiment, as described with reference to FIGS. 5 and 5 below, when the angle between the electronic device 100 and the target object is large, in a specific direction with respect to the image center, the distance to the camera becomes closer than the image center, and the other opposite The orientation may be such that the distance from the camera is greater than the center. In this case, since there is no field pair having the maximum resolution due to similar lens movement, the number of photographing sheets may increase.
도 4는 일 실시 예에 따른 전자 장치가 평면 객체를 촬영하는 모습을 나타낸다.4 illustrates a state in which an electronic device captures a planar object according to an exemplary embodiment.
도 4는 전자 장치(100)가 대상 객체(405)를 촬영하는 모습을 나타낸 도면이다. 도 4에서 대상 객체(405)는 일반적으로 평면 형상을 가진 객체일 수 있다. 대상 객체(405)는 일정 범위의 곡률을 가진 평면일 수 있다. 상기 일정 범위는 ToF(time-of-flight) 깊이 정보에 대상 객체를 매칭시켰을 때의 에러 값이 1cm 이내인 경우를 의미할 수 있다.4 is a diagram illustrating a state in which the electronic device 100 captures a target object 405 . In FIG. 4 , the target object 405 may be an object having a generally planar shape. The target object 405 may be a plane having a certain range of curvature. The predetermined range may mean a case in which an error value when a target object is matched to time-of-flight (ToF) depth information is within 1 cm.
일 실시 예에서, 프로세서(220)는 대상 객체(405)에 대하여 렌즈의 중심이 향하는 지점(410)을 기준으로 복수의 영역을 결정할 수 있다. 프로세서(220)는 대상 객체(405)를 A 영역(430), B 영역(440) 또는 C 영역(450)으로 나눌 수 있다. B 영역(440)은 A 영역(430)보다 전자 장치(100)의 카메라로부터 거리가 더 먼 영역일 수 있다. C 영역(450)은 B 영역(440)보다 전자 장치(100)의 카메라로부터 거리가 더 먼 영역일 수 있다. In an embodiment, the processor 220 may determine a plurality of regions with respect to the target object 405 based on a point 410 to which the center of the lens is directed. The processor 220 may divide the target object 405 into an A region 430 , a B region 440 , or a C region 450 . Area B 440 may be an area that is farther away from the camera of the electronic device 100 than area A 430 . Region C 450 may be a region further away from the camera of the electronic device 100 than region B 440 .
일 실시 예에서, 상기 복수의 영역은 A 영역(430), B 영역(440), C 영역(450)에 한정되는 것은 아니고, 대상 객체의 면적 또는 전자 장치(100)의 카메라와 대상 객체와의 거리에 따라 더 적거나 더 많을 수 있다. 이는 이하 설명에서도 동일하게 적용될 수 있다.In an embodiment, the plurality of regions are not limited to region A 430 , region B 440 , and region C 450 , but the area of the target object or the distance between the camera of the electronic device 100 and the target object. Depending on the distance, it may be less or more. This can be equally applied to the description below.
일 실시 예에서, 프로세서(220)는 A 영역(430)에 초점을 맞추기 위하여 제1 초점 거리를 설정하여 제1 이미지를 획득할 수 있다. 프로세서(220)는 B 영역(440)에 초점을 맞추기 위하여 제2 초점 거리를 설정하여 제2 이미지를 획득할 수 있다. 프로세서(220)는 C 영역(450)에 초점을 맞추기 위하여 제3 초점 거리를 설정하여 제3 이미지를 획득할 수 있다. 상기 제1 초점 거리는 자동 초점(auto focus) 기능에 기반하여 설정된 초점 거리일 수 있다. 상기 제2 초점 거리는 상기 제1 초점 거리보다 더 긴 초점 거리일 수 있다. 상기 제3 초점 거리는 상기 제2 초점 거리보다 더 긴 초점 거리일 수 있다.In an embodiment, the processor 220 may obtain a first image by setting a first focal length to focus on the area A 430 . The processor 220 may obtain a second image by setting a second focal length to focus on the region B 440 . The processor 220 may obtain a third image by setting a third focal length to focus on the C region 450 . The first focal length may be a focal length set based on an auto focus function. The second focal length may be a longer focal length than the first focal length. The third focal length may be a longer focal length than the second focal length.
도 5는 일 실시 예에 따른 전자 장치의 카메라가 평면 객체와 일정 각도를 이루며 평면 객체를 촬영하는 모습을 나타낸다.5 is a diagram illustrating a state in which a camera of an electronic device captures a flat object while forming a predetermined angle with the flat object, according to an exemplary embodiment.
도 5는 전자 장치(100)가 대상 객체(505)를 촬영하는 모습을 나타낸 도면이다. 전자 장치(100)가 대상 객체와 평행한 상태가 아닌, 일정 각도(530)를 이루며 대상 객체를 촬영하는 모습을 나타낸다. 상기 일정 각도는 전자 장치(100)와 대상 객체가 이루는 각도일 수 있다. 프로세서(220)는 전자 장치(100)의 카메라의 광축(520) 방향과 대상 객체의 법선(normal) 사이의 각도(530)를 계산할 수 있다. 상기 계산된 각도가 렌즈와 평면 간의 각도 정보로 참조될 수 있다.5 is a diagram illustrating a state in which the electronic device 100 captures a target object 505 . It shows a state in which the electronic device 100 captures a target object while forming a predetermined angle 530 instead of being parallel to the target object. The predetermined angle may be an angle between the electronic device 100 and the target object. The processor 220 may calculate an angle 530 between the direction of the optical axis 520 of the camera of the electronic device 100 and the normal of the target object. The calculated angle may be referred to as angle information between the lens and the plane.
일 실시 예에서, 프로세서(220)는 대상 객체(505)에 대하여 렌즈의 중심이 향하는 지점(510)을 기준으로 복수의 영역을 결정할 수 있다. 프로세서(220)는 대상 객체(505)를 적어도 A 영역(540), B 영역(550), C 영역(560), D 영역(570), E 영역(580)으로 나눌 수 있다. In an embodiment, the processor 220 may determine a plurality of regions with respect to the target object 505 based on a point 510 to which the center of the lens is directed. The processor 220 may divide the target object 505 into at least an A region 540 , a B region 550 , a C region 560 , a D region 570 , and an E region 580 .
일 실시 예에서, 상기 복수의 영역은 A 영역(540), B 영역(550), C 영역(560), D 영역(570), E 영역(580)에 한정되는 것은 아니고, 대상 객체의 면적, 전자 장치(100)의 카메라와 대상 객체와의 거리 또는 전자 장치와 대상 객체가 이루는 각도에 따라 더 적거나 더 많을 수 있다. 이는 이하 설명에서도 동일하게 적용될 수 있다.In an embodiment, the plurality of regions are not limited to region A 540 , region B 550 , region C 560 , region D 570 , and region E 580 , but the area of the target object; The number may be less or more depending on the distance between the camera of the electronic device 100 and the target object or the angle between the electronic device and the target object. This can be equally applied to the description below.
일 실시 예에서, 프로세서(220)는 A 영역(540)에 초점을 맞추기 위하여 제1 초점 거리를 설정하여 제1 이미지를 획득할 수 있다. 프로세서(220)는 B 영역(550)에 초점을 맞추기 위하여 제2 초점 거리를 설정하여 제2 이미지를 획득할 수 있다. 프로세서(220)는 C 영역(560)에 초점을 맞추기 위하여 제3 초점 거리를 설정하여 제3 이미지를 획득할 수 있다. 프로세서(220)는 D 영역(570)에 초점을 맞추기 위하여 제4 초점 거리를 설정하여 제4 이미지를 획득할 수 있다. 프로세서(220)는 E 영역(580)에 초점을 맞추기 위하여 제5 초점 거리를 설정하여 제5 이미지를 획득할 수 있다. 상기 제1 초점 거리는 자동 초점(auto focus) 기능에 기반하여 설정된 초점 거리일 수 있다. 상기 제2 초점 거리는 상기 제1 초점 거리보다 더 긴 초점 거리일 수 있다. 상기 제3 초점 거리는 상기 제2 초점 거리보다 더 긴 초점 거리일 수 있다. 상기 제4 초점 거리는 상기 제1 초점 거리보다 더 짧은 초점 거리일 수 있다. 상기 제5 초점 거리는 상기 제4 초점 거리보다 더 짧은 초점 거리일 수 있다.In an embodiment, the processor 220 may obtain a first image by setting a first focal length in order to focus on the area A 540 . The processor 220 may obtain a second image by setting a second focal length to focus on the region B 550 . The processor 220 may obtain a third image by setting a third focal length to focus on the C region 560 . The processor 220 may obtain a fourth image by setting a fourth focal length to focus on the D region 570 . The processor 220 may obtain a fifth image by setting a fifth focal length to focus on the E region 580 . The first focal length may be a focal length set based on an auto focus function. The second focal length may be a longer focal length than the first focal length. The third focal length may be a longer focal length than the second focal length. The fourth focal length may be a shorter focal length than the first focal length. The fifth focal length may be a shorter focal length than the fourth focal length.
도 6은 일 실시 예에 따른 전자 장치가 평면이 아닌 객체를 촬영하는 모습을 나타낸다.6 is a diagram illustrating an electronic device photographing a non-planar object according to an exemplary embodiment.
일 실시 예에서, 프로세서(220)는 근거리에 위치한 대상 객체가 평면이 아닌 곡면이라고 판단할 수 있다. 프로세서(220)는 곡면이라고 판단한 대상 객체를 복수의 평면 영역으로 판단할 수 있다. 상기 복수의 평면 영역은 평면이라고 판단될 수 있는 범위 내의 곡률을 가진 평면 영역일 수 있다. 프로세서(220)는 곡면의 대상 객체를 평면의 A 영역(630), 평면의 B 영역(640), 평면의 C 영역(650), 평면의 D 영역(660), 평면의 E 영역(670)으로 나눌 수 있다.In an embodiment, the processor 220 may determine that the target object located in the short distance is a curved surface rather than a flat surface. The processor 220 may determine the target object determined to be a curved surface as a plurality of flat areas. The plurality of planar areas may be planar areas having curvatures within a range that may be determined to be planar. The processor 220 converts the curved target object into a planar area A 630 , a flat area B 640 , a flat area C 650 , a flat area D 660 , and a planar area E 670 . can be shared
상기 복수의 평면 영역은 A 영역(630), B 영역(640), C 영역(650), D 영역(660), E 영역(670)에 한정되는 것은 아니고, 대상 객체의 면적, 전자 장치(100)의 카메라와 대상 객체와의 거리, 대상 객체의 휘어짐 정도에 따라 더 적거나 더 많을 수 있다.The plurality of planar regions are not limited to region A 630 , region B 640 , region C 650 , region D 660 , and region E 670 , but the area of the target object and the electronic device 100 are not limited thereto. ) may be less or more depending on the distance between the camera and the target object and the degree of curvature of the target object.
도 5에서 언급된 대상 객체에 대한 설명은 도 6에서의 개별 평면 영역들(예: 630, 640, 650, 660, 670)에도 동일하게 적용될 수 있다.The description of the target object mentioned in FIG. 5 may be equally applied to the individual planar regions (eg, 630 , 640 , 650 , 660 and 670 ) in FIG. 6 .
도 7은 일 실시 예에 따른 전자 장치가 복수의 초점에 기반하여 복수의 이미지를 획득하는 과정을 나타낸 순서도이다. 도 7에 예시된 순서도의 동작 주체는 프로세서(예: 도 2의 프로세서(220)) 또는 이미지 시그널 프로세서(예: 도 1의 이미지 시그널 프로세서(130))로 이해될 수 있다.7 is a flowchart illustrating a process in which an electronic device acquires a plurality of images based on a plurality of focal points, according to an exemplary embodiment. The operating subject of the flowchart illustrated in FIG. 7 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
일 실시 예에 따른 동작 710에 있어서, 프로세서(220)는 이미지 센서(120)를 통해 이미지 데이터를 획득할 수 있다. 상기 이미지 데이터는 이미지 시그널 프로세서(130)에서 이미지 처리가 수행되기 전인 이미지 데이터로, 각 픽셀은 컬러 필터 어레이에 대응하여 R(red), G(green) 또는 B(blue)의 컬러 값을 가질 수 있다.In operation 710 according to an embodiment, the processor 220 may acquire image data through the image sensor 120 . The image data is image data before image processing is performed in the image signal processor 130, and each pixel may have a color value of R (red), G (green), or B (blue) corresponding to the color filter array. have.
일 실시 예에 따른 동작 720에 있어서, 프로세서(220)는 깊이 감지 센서(210)를 이용하여 전자 장치(100)의 카메라와 대상 객체의 거리가 일정 거리 이하인지 판단할 수 있다. 상기 전자 장치(100)의 카메라는 깊이 카메라(depth camera) 또는 깊이 감지 센서(210)를 포함한 카메라 일 수 있다. 프로세서(220)는 깊이 감지 센서를 이용하여 대상 객체가 평면 객체에 해당하는지 판단할 수 있다. In operation 720 according to an embodiment, the processor 220 may determine whether the distance between the camera of the electronic device 100 and the target object is less than or equal to a predetermined distance using the depth sensor 210 . The camera of the electronic device 100 may be a depth camera or a camera including a depth detection sensor 210 . The processor 220 may determine whether the target object corresponds to a planar object using the depth sensor.
일 실시 예에 따른 동작 730에 있어서, 프로세서(220)는 텍스트 인식 기능을 활성화할 수 있다. 상기 텍스트 인식 기능은 도 3에서 설명한 전자 장치(100)의 일 기능(예: scene optimizer)과 동일하거나 하위 기능일 수 있다. 텍스트 인식 기능은 대상 객체가 근거리인지 원거리인지 무관하게 사용자의 입력에 응답하여 활성화될 수 있다. 또는 텍스트 인식 기능은 카메라 어플리케이션 실행에 응답하여 자동적으로 활성화될 수 있다.In operation 730 according to an embodiment, the processor 220 may activate a text recognition function. The text recognition function may be the same as or a lower function of one function (eg, scene optimizer) of the electronic device 100 described with reference to FIG. 3 . The text recognition function may be activated in response to a user input regardless of whether the target object is near or far. Alternatively, the text recognition function may be automatically activated in response to the execution of the camera application.
일 실시 예에서, 프로세서(220)는 텍스트 인식 기능을 활성화하여 대상 객체(예: 종이, 벽)가 텍스트를 포함하고 있는지 판별할 수 있다. 프로세서(220)는, 근거리에서 휘어져 있는 종이나 책의 경우, 평면이라고 판단되기 어려울 수 있으므로 이를 보완하기 위하여 대상 객체의 종류 또는 텍스트 포함 여부를 판단할 수 있다. 예를 들어, 프로세서(220)는 근거리에서 휘어져 있는 대상 객체를 결정하고, 상기 대상 객체가 일반적으로 텍스트를 포함하는 평면 객체인 종이나 책이라고 판단한 경우, 상기 판단에 기반하여 대상 객체를 평면 객체로 판단할 수 있다.In an embodiment, the processor 220 may activate a text recognition function to determine whether a target object (eg, paper or a wall) includes text. The processor 220 may determine the type of the target object or whether text is included in order to compensate for the fact that it may be difficult to determine that the paper or book is bent at a short distance. For example, the processor 220 determines a curved target object at a short distance, and when it is determined that the target object is a paper or a book that is a flat object including text, the target object is converted into a flat object based on the determination. can judge
일 실시 예에서, 프로세서(220)는 텍스트 인식 기능을 이용하여 대상 객체에 텍스트의 비중을 판별할 수 있다. 프로세서(220)가 대상 객체의 텍스트의 비중을 고려하여 이하 설명될 대상 객체의 복수의 영역에 우선 순위를 매길 수 있다. 예를 들어, 프로세서(220)는 대상 객체(예: 종이)에 텍스트가 존재하지 않는 영역에 초점이 맞을 필요가 없으므로 우선 순위를 두지 않을 수 있다. 프로세서(220)는 텍스트가 존재하는 영역에는 우선 순위를 두어 초점이 맞도록 초점 거리를 조절할 수 있다.In an embodiment, the processor 220 may determine the weight of the text in the target object using a text recognition function. The processor 220 may prioritize a plurality of regions of the target object to be described below in consideration of the weight of the text of the target object. For example, the processor 220 may not give priority to a target object (eg, paper) because it is not necessary to focus on an area where text does not exist. The processor 220 may adjust the focal length so that the text is present by giving priority to the region.
일 실시 예에 따른 동작 740에 있어서, 프로세서(220)는 대상 객체의 서로 다른 영역에 대한 복수의 초점을 결정할 수 있다. In operation 740 according to an embodiment, the processor 220 may determine a plurality of focal points on different regions of the target object.
일 실시 예에서, 프로세서(220)는 이미지 센서(120)로부터 획득한 이미지 데이터의 매 프레임 마다 초점을 다르게 설정할 수 있다. 예를 들어, n 번째 프레임에는 제1 초점을 설정하고, n+1 번째 프레임에는 제2 초점을 설정하고, n+2 번째 프레임에는 제3 초점을 설정할 수 있다.In an embodiment, the processor 220 may set a different focus for each frame of the image data obtained from the image sensor 120 . For example, a first focus may be set in an nth frame, a second focus may be set in an n+1th frame, and a third focus may be set in an n+2th frame.
일 실시 예에서, 프로세서(220)는 대상 객체의 제1 영역에 초점이 맞도록 제1 초점 거리를 설정할 수 있다. 프로세서(220)는 대상 객체의 제2 영역에 초점이 맞도록 제2 초점 거리를 설정할 수 있다. 프로세서(220)는 대상 객체의 제3 영역에 초점이 맞도록 제3 초점 거리를 설정할 수 있다. 상기 설명된 것은 하나의 예시에 불과하며 더 많은 영역으로 나누어 더 많은 초점 거리를 설정할 수 있다. In an embodiment, the processor 220 may set the first focal length so that the first area of the target object is in focus. The processor 220 may set the second focal length so that the second area of the target object is in focus. The processor 220 may set the third focal length so that the third area of the target object is in focus. What has been described above is only an example, and a larger focal length may be set by dividing the area into more areas.
일 실시 예에 따른 동작 750에 있어서, 프로세서(220)는 상기 결정된 복수의 초점에 기반하여 복수의 이미지들을 획득할 수 있다. 프로세서(220)는 렌즈의 초점 거리를 조절하여 일정 영역에 대하여 초점이 맞도록 렌즈의 이동을 제어할 수 있다. 프로세서(220)는 제1 초점 거리에 기반하여 제1 이미지를 획득하고, 제1 초점 거리보다 긴 제2 초점 거리에 기반하여 제2 이미지를 획득할 수 있다. 또는 프로세서(220)는 제1 초점 거리에 기반하여 제1 이미지를 획득하고, 제1 초점 거리보다 긴 제2 초점 거리에 기반하여 제2 이미지를 획득하고, 제1 초점 거리보다 짧은 제3 초점 거리에 기반하여 제3 이미지를 획득할 수 있다. 상기 제1 이미지는 대상 객체의 제1 영역에 초점이 맞는 이미지이고, 상기 제2 이미지는 대상 객체의 제2 영역에 초점이 맞는 이미지이고, 상기 제3 이미지는 대상 객체의 제3 영역에 초점이 맞는 이미지일 수 있다.In operation 750 according to an embodiment, the processor 220 may acquire a plurality of images based on the determined plurality of focal points. The processor 220 may adjust the focal length of the lens to control movement of the lens to achieve focus on a predetermined area. The processor 220 may acquire a first image based on the first focal length, and acquire a second image based on a second focal length that is longer than the first focal length. Alternatively, the processor 220 obtains a first image based on a first focal length, obtains a second image based on a second focal length longer than the first focal length, and obtains a third focal length shorter than the first focal length A third image may be acquired based on . The first image is an image focused on a first area of the target object, the second image is an image focused on a second area of the target object, and the third image is focused on a third area of the target object It may be the correct image.
일 실시 예에 따른 동작 760에 있어서, 프로세서(220)는 상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 대상 객체에 대한 최종 이미지를 획득할 수 있다. In operation 760 according to an embodiment, the processor 220 may acquire a final image of the target object based on at least a part of the plurality of acquired images.
일 실시 예에서, 프로세서(220)는 상기 획득된 복수의 이미지들 중 제1 초점 거리에 기반하여 획득한 제1 이미지를 메인 이미지로 결정하고, 제2 초점 거리에 기반하여 획득한 제2 이미지 및 제3 초점 거리에 기반하여 획득한 제3 이미지를 서브 이미지로 결정할 수 있다.In an embodiment, the processor 220 determines a first image acquired based on a first focal length among the plurality of acquired images as a main image, and a second image acquired based on a second focal length and A third image acquired based on the third focal length may be determined as a sub-image.
일 실시 예에서, 프로세서(220)는 상기 획득한 이미지들을 합성할 수 있다. 프로세서(220)는 상기 획득한 제1 이미지(또는, 메인 이미지)에서 초점이 맞는 대상 객체의 제1 영역, 상기 획득한 제2 이미지(또는, 제1 서브 이미지)에서 초점이 맞는 대상 객체의 제2 영역 및 상기 획득한 제3 이미지(또는 제2 서브 이미지)에서 초점이 맞는 대상 객체의 제3 영역을 합성할 수 있다. In an embodiment, the processor 220 may synthesize the acquired images. The processor 220 is configured to select a first area of a focused target object in the obtained first image (or main image), and a second area of a focused target object in the obtained second image (or first sub-image). The second region and the third region of the target object in focus from the obtained third image (or second sub-image) may be synthesized.
일 실시 예에서, 프로세서(220)는 상기 이미지들을 합성하여 최종 이미지를 생성할 수 있다. 프로세서(220)는 상기 생성한 최종 이미지를 디스플레이(110)에 프리뷰로써 출력할 수 있다.In an embodiment, the processor 220 may generate a final image by synthesizing the images. The processor 220 may output the generated final image as a preview on the display 110 .
도 8은 일 실시 예에 따른 전자 장치의 카메라가 대상 객체와 이루는 각도에 따라 대상 객체의 영역을 나누는 과정을 나타낸 순서도이다. 도 8에 예시된 순서도의 동작 주체는 프로세서(예: 도 2의 프로세서(220)) 또는 이미지 시그널 프로세서(예: 도 1의 이미지 시그널 프로세서(130))로 이해될 수 있다.8 is a flowchart illustrating a process of dividing a region of a target object according to an angle formed by a camera of an electronic device with the target object according to an exemplary embodiment. The operating subject of the flowchart illustrated in FIG. 8 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
일 실시 예에 따른 동작 810에 따르면, 프로세서(220)는 전자 장치의 카메라와 대상 객체가 이루는 각도를 판단할 수 있다. 프로세서(220)는 평면에 수직 방향인 법선(normal vector)을 계산할 수 있고 상기 법선(normal vector)과 카메라 좌표계의 Z축과의 각도를 계산할 수 있다. 상기 법선과 카메라 좌표계의 Z축과의 각도는 렌즈와 평면 간의 각도로 참조되거나 전자 장치와 대상 객체가 이루는 각도로 참조될 수 있다. 프로세서(220)는 전자 장치의 깊이 카메라와 대상 객체가 이루는 각도가 제1 범위의 각도인지 판단할 수 있다. 또는 프로세서(220)는 상기 각도가 제2 범위의 각도인지 판단할 수 있다. 예를 들어, 상기 제1 범위는 약 0도 내지 약 20도이고, 상기 제2 범위는 상기 제1 범위보다 큰 약 20도 내지 약 40도 일 수 있다.According to operation 810 according to an embodiment, the processor 220 may determine an angle between the camera of the electronic device and the target object. The processor 220 may calculate a normal vector in a direction perpendicular to the plane and may calculate an angle between the normal vector and the Z-axis of the camera coordinate system. The angle between the normal and the Z-axis of the camera coordinate system may be referred to as an angle between a lens and a plane or an angle between the electronic device and the target object. The processor 220 may determine whether an angle between the depth camera of the electronic device and the target object is within the first range. Alternatively, the processor 220 may determine whether the angle is an angle within the second range. For example, the first range may be about 0 degrees to about 20 degrees, and the second range may be about 20 degrees to about 40 degrees greater than the first range.
일 실시 예에서, 전자 장치(100)와 대상 객체가 이루는 각도가 클 경우, 렌즈의 중심이 향하는 대상 객체의 하나의 중심을 기준으로 특정 방향은 카메라와의 거리가 상기 하나의 중심보다 가깝게 되고, 다른 반대 방향은 카메라와의 거리가 상기 하나의 중심보다 멀어질 수 있다. 프로세서(220)는 기준 초점이 맞는 위치에서 렌즈 이동을 앞, 뒤로 모두 움직여서 초점 거리를 조절해야 하므로 촬영 장 수가 많아질 수 있다.In an embodiment, when the angle between the electronic device 100 and the target object is large, the distance to the camera becomes closer than the single center in a specific direction based on one center of the target object to which the center of the lens is directed, In the other opposite direction, the distance from the camera may be greater than the one center. Since the processor 220 needs to adjust the focal length by moving the lens forward and backward at the position where the reference focus is met, the number of shots may be increased.
일 실시 예에서, 전자 장치(100)와 대상 객체가 이루는 각도가 작을 경우, 대상 객체의 대부분 영역은 카메라와의 거리가 상기 하나의 중심보다 멀어져 있을 수 있다. 프로세서(220)는 기준 초점이 맞는 위치에서 렌즈를 한 쪽 방향으로 움직여서 초점 거리를 조절해야 하므로 상기 각도가 큰 경우 대비 촬영 장 수를 줄일 수 있다.In an embodiment, when the angle between the electronic device 100 and the target object is small, in most areas of the target object, the distance from the camera may be greater than the single center. Since the processor 220 has to adjust the focal length by moving the lens in one direction at the position where the reference focus is met, the number of shots compared to the case where the angle is large can be reduced.
전자 장치와 대상 객체가 이루는 각도가 제1 범위에 해당되는 경우에는 동작 820이 수행되고, 전자 장치와 대상 객체가 이루는 각도가 제1 범위가 아닌 제2 범위에 해당되는 경우 동작 830이 수행될 수 있다.If the angle between the electronic device and the target object falls within the first range, operation 820 may be performed, and if the angle between the electronic device and the target object falls within the second range instead of the first range, operation 830 may be performed. have.
일 실시 예에 따른 동작 820에 따르면, 프로세서(220)는 대상 객체에 대해 제1 개수의 영역으로 구분할 수 있다. 프로세서(220)는 전자 장치(100)와 대상 객체가 이루는 각도가 제1 범위에 해당되는 경우 대상 객체(예: 종이)에 대해 제1 개수의 영역으로 분할할 수 있다.According to operation 820 according to an embodiment, the processor 220 may divide the target object into a first number of regions. When the angle between the electronic device 100 and the target object falls within the first range, the processor 220 may divide the target object (eg, paper) into a first number of regions.
일 실시 예에 따른 동작 830에 따르면, 프로세서(220)는 대상 객체에 대해 제2 개수의 영역으로 구분할 수 있다. 프로세서(220)는 전자 장치(100)와 대상 객체가 이루는 각도가 제2 범위에 해당되는 경우 대상 객체(예: 종이)에 대해 제2 개수의 영역으로 분할할 수 있다. 상기 제2 개수는 상기 제1 개수보다 많을 수 있다.According to operation 830 according to an embodiment, the processor 220 may divide the target object into a second number of regions. When the angle between the electronic device 100 and the target object falls within the second range, the processor 220 may divide the target object (eg, paper) into a second number of regions. The second number may be greater than the first number.
일 실시 예에 따른 동작 840에 따르면, 프로세서(220)는 대상 객체의 복수의 영역에 대한 복수의 초점을 결정할 수 있다. 프로세서(220)는 상기 복수의 영역 각각에 초점이 맞도록 복수의 초점을 결정할 수 있다. 예를 들어 프로세서(220)는 대상 객체의 제1 영역에 초점이 맞도록 제1 초점 거리를 결정할 수 있다. 프로세서(220)는 대상 객체의 제2 영역에 초점이 맞도록 제2 초점 거리를 결정할 수 있다. 프로세서(220)는 대상 객체의 제3 영역에 초점이 맞도록 제3 초점 거리를 결정할 수 있다.According to operation 840 according to an embodiment, the processor 220 may determine a plurality of focal points for a plurality of regions of the target object. The processor 220 may determine a plurality of focal points such that each of the plurality of regions is in focus. For example, the processor 220 may determine the first focal length so that the first area of the target object is in focus. The processor 220 may determine the second focal length so that the second area of the target object is in focus. The processor 220 may determine the third focal length so that the third area of the target object is in focus.
일 실시 예에 있어서, 동작 840 이후에 도 7의 동작 750 및 760이 후행할 수 있다. 다시 말하면, 프로세서(220)는 상기 결정된 복수의 초점에 기반하여 복수의 이미지들을 획득하고, 상기 획득한 복수의 이미지들 중 적어도 일부에 기반하여 대상 객체에 대한 최종 이미지를 획득할 수 있다. 예를 들어, 프로세서(220)는 상기 각도가 제1 범위에 해당하는 경우, 6장의 이미지를 획득하여 이 중 3장을 합성하여 최종 이미지를 획득할 수 있다. 다른 예를 들어, 프로세서(220)는 상기 각도가 제2 범위에 해당하는 경우, 9장의 이미지를 획득하여 이 중 4장을 합성하여 최종 이미지를 획득할 수 있다.According to an embodiment, after operation 840, operations 750 and 760 of FIG. 7 may follow. In other words, the processor 220 may acquire a plurality of images based on the plurality of determined focal points, and may acquire a final image of the target object based on at least some of the plurality of acquired images. For example, when the angle corresponds to the first range, the processor 220 may acquire six images and synthesize three of them to obtain a final image. As another example, when the angle corresponds to the second range, the processor 220 may acquire 9 images and synthesize 4 of them to obtain a final image.
도 9는 일 실시 예에 따른 렌즈의 이동에 기반하여 이미지를 획득하는 과정을 나타낸 순서도이다. 도 9에 예시된 순서도의 동작 주체는 프로세서(예: 도 2의 프로세서(220)) 또는 이미지 시그널 프로세서(예: 도 1의 이미지 시그널 프로세서(130))로 이해될 수 있다.9 is a flowchart illustrating a process of acquiring an image based on movement of a lens according to an exemplary embodiment. The operating subject of the flowchart illustrated in FIG. 9 may be understood as a processor (eg, the processor 220 of FIG. 2 ) or an image signal processor (eg, the image signal processor 130 of FIG. 1 ).
일 실시 예에 따른 동작 905에 따르면, 프로세서(220)는 전자 장치(100)의 카메라와 대상 객체가 이루는 각도가 제1 범위인지 판단할 수 있다. 동작 905는 동작 810과 대응될 수 있다.According to operation 905 according to an embodiment, the processor 220 may determine whether an angle between the camera of the electronic device 100 and the target object is a first range. Operation 905 may correspond to operation 810 .
일 실시 예에 따른 동작 910에 따르면, 프로세서(220)는 자동 초점 기능에 기반하여 이미지를 획득할 수 있다. 프로세서(220)는 자동 초동 기능에 의하여 제1 영역에 초점이 맞는 참조 이미지 또는 기준 이미지를 획득할 수 있다.According to operation 910 according to an embodiment, the processor 220 may acquire an image based on the auto focus function. The processor 220 may acquire a reference image or a reference image focused on the first area by the automatic initial activation function.
일 실시 예에 따른 동작 915에 따르면, 프로세서(220)는 기준 초점에 초점 거리를 늘려가며 이미지를 획득할 수 있다. 프로세서(220)는 동작 910에서의 초점 거리보다 초점 거리를 더 늘려 제2 영역에 초점이 맞는 이미지를 획득할 수 있다.According to operation 915 according to an embodiment, the processor 220 may acquire an image while increasing the focal length to the reference focal point. The processor 220 may acquire an image focused on the second area by increasing the focal length more than the focal length in operation 910 .
일 실시 예에 따른 동작 920에 따르면, 프로세서(220)는 획득된 이미지들이 초점 스택에 필요한지 판단할 수 있다. 프로세서(220)는 대상 객체에서 선명함이 필요한 영역들이 초점이 맞는지 판단하여 초점 거리를 늘리는 방향의 초점 스택에 있어서 충분한 이미지를 획득했는지 판단할 수 있다. 초점 스택에 있어 충분한 이미지를 획득한 경우 동작 760을 수행하고, 그렇지 않은 경우 초점 거리를 더 늘려 추가적인 이미지를 획득할 수 있다.According to operation 920 according to an embodiment, the processor 220 may determine whether the acquired images are necessary for the focus stack. The processor 220 may determine whether regions requiring sharpness in the target object are in focus, and determine whether sufficient images are obtained in the focus stack in the direction of increasing the focal length. If sufficient images are obtained in the focus stack, operation 760 is performed. Otherwise, an additional image may be obtained by further increasing the focal length.
일 실시 예에 따른 동작 930에 따르면, 프로세서(220)는 자동 초점 기능에 기반하여 이미지를 획득할 수 있다. 프로세서(220)는 자동 초동 기능에 의하여 제1 영역에 초점이 맞는 참조 이미지를 획득할 수 있다.According to operation 930 according to an embodiment, the processor 220 may acquire an image based on the auto focus function. The processor 220 may acquire a reference image focused on the first area by the automatic initial activation function.
일 실시 예에 따른 동작 935에 따르면, 프로세서(220)는 기준 초점에 초점 거리를 늘려가며 이미지를 획득할 수 있다. 프로세서(220)는 동작 930에서의 초점 거리보다 초점 거리를 더 늘려 제2 영역에 초점이 맞는 이미지를 획득할 수 있다.According to operation 935 according to an embodiment, the processor 220 may acquire an image while increasing the focal length to the reference focal point. The processor 220 may acquire an image focused on the second area by increasing the focal length more than the focal length in operation 930 .
일 실시 예에 따른 동작 940에 따르면, 프로세서(220)는 획득된 이미지들이 초점 스택에 충분한지 판단할 수 있다. 프로세서(220)는 대상 객체에서 선명함이 필요한 영역들이 초점이 맞는지 판단하여 초점 거리를 늘리는 방향의 초점 스택에 있어서 충분한 이미지를 획득했는지 판단할 수 있다. 초점 스택에 있어 충분한 이미지를 획득한 경우 동작 945를 수행하고, 그렇지 않은 경우 초점 거리를 더 늘려 추가적인 이미지를 획득할 수 있다.According to operation 940 according to an embodiment, the processor 220 may determine whether the acquired images are sufficient for the focus stack. The processor 220 may determine whether regions requiring sharpness in the target object are in focus, and determine whether sufficient images are obtained in the focus stack in the direction of increasing the focal length. If sufficient images are obtained in the focus stack, operation 945 is performed. Otherwise, an additional image may be obtained by further increasing the focal length.
일 실시 예에 따른 동작 945에 따르면, 프로세서(220)는 기준 초점에 초점 거리를 줄여가며 이미지를 획득할 수 있다. 프로세서(220)는 동작 930에서의 초점 거리보다 초점 거리를 더 줄여 제3 영역에 초점이 맞는 이미지를 획득할 수 있다.According to operation 945 according to an embodiment, the processor 220 may acquire an image while reducing the focal length to the reference focal point. The processor 220 may reduce the focal length more than the focal length in operation 930 to obtain an image focused on the third area.
일 실시 예에 따른 동작 950에 따르면, 프로세서(220)는 획득된 이미지들이 초점 스택에 충분한지 판단할 수 있다. 프로세서(220)는 대상 객체에서 선명함이 필요한 영역들이 초점이 맞는지 판단하여 초점 거리를 줄이는 방향의 초점 스택에 있어서 충분한 이미지를 획득했는지 판단할 수 있다. 초점 스택에 있어 충분한 이미지를 획득한 경우 도 7의 동작 760을 수행하고, 그렇지 않은 경우 초점 거리를 더 줄여 추가적인 이미지를 획득할 수 있다.According to operation 950 according to an embodiment, the processor 220 may determine whether the acquired images are sufficient for the focus stack. The processor 220 may determine whether a sufficient image is obtained in a focus stack in a direction of reducing a focal length by determining whether areas requiring sharpness in the target object are in focus. If sufficient images are obtained in the focus stack, operation 760 of FIG. 7 is performed. Otherwise, an additional image may be obtained by further reducing the focal length.
일 실시 예에서, 도면에 도시된 것과 달리, 동작 945 및 동작 950은 동작 935 및 동작 940에 선행할 수 있다. 예를 들어, 프로세서(220)는 기준 초점에 초점 거리를 줄여가며 이미지를 획득하는 것을 완료한 후에, 기준 초점에 초점 거리를 늘려가며 이미지를 획득할 수 있다.In an embodiment, unlike illustrated in the drawings, operations 945 and 950 may precede operations 935 and 940 . For example, the processor 220 may acquire the image while increasing the focal length to the reference focal point after completing acquiring the image while decreasing the focal length to the reference focal point.
도 10은 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도다.10 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
도 10을 참조하면, 네트워크 환경(1000)에서 전자 장치(예: 도 1의 전자 장치(100))(1001)는 제1 네트워크(1098)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(1002)와 통신하거나, 또는 제2 네트워크(1099)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(1004) 또는 서버(1008)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(1001)는 서버(1008)를 통하여 전자 장치(1004)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(1001)는 프로세서(1020), 메모리(1030), 입력 모듈(1050), 음향 출력 모듈(1055), 디스플레이 모듈(1060), 오디오 모듈(1070), 센서 모듈(1076), 인터페이스(1077), 연결 단자(1078), 햅틱 모듈(1079), 카메라 모듈(1080), 전력 관리 모듈(1088), 배터리(1089), 통신 모듈(1090), 가입자 식별 모듈(1096), 또는 안테나 모듈(1097)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(1001)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(1078))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시 예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(1076), 카메라 모듈(1080), 또는 안테나 모듈(1097))은 하나의 구성요소(예: 디스플레이 모듈(1060))로 통합될 수 있다.Referring to FIG. 10 , in the network environment 1000 , the electronic device 1001 (eg, the electronic device 100 of FIG. 1 ) 1001 communicates with the electronic device 1002 through a first network 1098 (eg, a short-range wireless communication network). ), or may communicate with the electronic device 1004 or the server 1008 through the second network 1099 (eg, a remote wireless communication network). According to an embodiment, the electronic device 1001 may communicate with the electronic device 1004 through the server 1008 . According to an embodiment, the electronic device 1001 includes a processor 1020 , a memory 1030 , an input module 1050 , a sound output module 1055 , a display module 1060 , an audio module 1070 , and a sensor module ( 1076), interface 1077, connection terminal 1078, haptic module 1079, camera module 1080, power management module 1088, battery 1089, communication module 1090, subscriber identification module 1096 , or an antenna module 1097 . In some embodiments, at least one of these components (eg, the connection terminal 1078 ) may be omitted or one or more other components may be added to the electronic device 1001 . In some embodiments, some of these components (eg, sensor module 1076 , camera module 1080 , or antenna module 1097 ) are integrated into one component (eg, display module 1060 ). can be
프로세서(예: 도 2의 프로세서(220))(1020)는, 예를 들면, 소프트웨어(예: 프로그램(1040))를 실행하여 프로세서(1020)에 연결된 전자 장치(1001)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(1020)는 다른 구성요소(예: 센서 모듈(1076) 또는 통신 모듈(1090))로부터 수신된 명령 또는 데이터를 휘발성 메모리(1032)에 저장하고, 휘발성 메모리(1032)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(1034)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(1020)는 메인 프로세서(1021)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(1023)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서(예: 도 1의 이미지 시그널 프로세서(130)), 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(1001)가 메인 프로세서(1021) 및 보조 프로세서(1023)를 포함하는 경우, 보조 프로세서(1023)는 메인 프로세서(1021)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(1023)는 메인 프로세서(1021)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor (eg, the processor 220 of FIG. 2 ) 1020 is, for example, at least one other component of the electronic device 1001 connected to the processor 1020 by executing software (eg, the program 1040 ). It can control elements (eg, hardware or software components) and can perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 1020 stores a command or data received from another component (eg, the sensor module 1076 or the communication module 1090 ) into the volatile memory 1032 . may be stored in , process commands or data stored in the volatile memory 1032 , and store the result data in the non-volatile memory 1034 . According to an embodiment, the processor 1020 is the main processor 1021 (eg, a central processing unit or an application processor) or a secondary processor 1023 (eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) It may include a neural processing unit (NPU), an image signal processor (eg, the image signal processor 130 of FIG. 1 ), a sensor hub processor, or a communication processor. For example, when the electronic device 1001 includes the main processor 1021 and the auxiliary processor 1023 , the auxiliary processor 1023 uses less power than the main processor 1021 or is set to be specialized for a specified function. can The auxiliary processor 1023 may be implemented separately from or as a part of the main processor 1021 .
보조 프로세서(1023)는, 예를 들면, 메인 프로세서(1021)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(1021)를 대신하여, 또는 메인 프로세서(1021)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(1021)와 함께, 전자 장치(1001)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(1060), 센서 모듈(1076), 또는 통신 모듈(1090))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(1023)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(1080) 또는 통신 모듈(1090))의 일부로서 구현될 수 있다. 일 실시 예에 따르면, 보조 프로세서(1023)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(1001) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(1008))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The coprocessor 1023 may, for example, act on behalf of the main processor 1021 while the main processor 1021 is in an inactive (eg, sleep) state, or when the main processor 1021 is active (eg, executing an application). ), together with the main processor 1021, at least one of the components of the electronic device 1001 (eg, the display module 1060, the sensor module 1076, or the communication module 1090) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 1023 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 1080 or the communication module 1090). have. According to an embodiment, the auxiliary processor 1023 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 1001 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, server 1008). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
메모리(1030)는, 전자 장치(1001)의 적어도 하나의 구성요소(예: 프로세서(1020) 또는 센서 모듈(1076))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(1040)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(1030)는, 휘발성 메모리(1032) 또는 비휘발성 메모리(1034)를 포함할 수 있다. The memory 1030 may store various data used by at least one component of the electronic device 1001 (eg, the processor 1020 or the sensor module 1076 ). The data may include, for example, input data or output data for software (eg, the program 1040 ) and instructions related thereto. The memory 1030 may include a volatile memory 1032 or a non-volatile memory 1034 .
프로그램(1040)은 메모리(1030)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(1042), 미들 웨어(1044) 또는 어플리케이션(1046)을 포함할 수 있다. The program 1040 may be stored as software in the memory 1030 , and may include, for example, an operating system 1042 , middleware 1044 , or an application 1046 .
입력 모듈(1050)은, 전자 장치(1001)의 구성요소(예: 프로세서(1020))에 사용될 명령 또는 데이터를 전자 장치(1001)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(1050)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 1050 may receive a command or data to be used in a component (eg, the processor 1020 ) of the electronic device 1001 from the outside (eg, a user) of the electronic device 1001 . The input module 1050 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
음향 출력 모듈(1055)은 음향 신호를 전자 장치(1001)의 외부로 출력할 수 있다. 음향 출력 모듈(1055)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 1055 may output a sound signal to the outside of the electronic device 1001 . The sound output module 1055 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver may be used to receive an incoming call. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.
디스플레이 모듈(1060)은 전자 장치(1001)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(1060)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 디스플레이 모듈(1060)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 1060 may visually provide information to the outside (eg, a user) of the electronic device 1001 . The display module 1060 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 1060 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
오디오 모듈(1070)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(1070)은, 입력 모듈(1050)을 통해 소리를 획득하거나, 음향 출력 모듈(1055), 또는 전자 장치(1001)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(1002))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 1070 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 1070 acquires a sound through the input module 1050 or an external electronic device (eg, a sound output module 1055 ) directly or wirelessly connected to the electronic device 1001 . The electronic device 1002) (eg, a speaker or headphones) may output a sound.
센서 모듈(1076)은 전자 장치(1001)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(1076)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 1076 detects an operating state (eg, power or temperature) of the electronic device 1001 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 1076 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
인터페이스(1077)는 전자 장치(1001)가 외부 전자 장치(예: 전자 장치(1002))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(1077)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 1077 may support one or more specified protocols that may be used for the electronic device 1001 to directly or wirelessly connect with an external electronic device (eg, the electronic device 1002 ). According to an embodiment, the interface 1077 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
연결 단자(1078)는, 그를 통해서 전자 장치(1001)가 외부 전자 장치(예: 전자 장치(1002))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(1078)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 1078 may include a connector through which the electronic device 1001 can be physically connected to an external electronic device (eg, the electronic device 1002 ). According to an embodiment, the connection terminal 1078 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(1079)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(1079)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 1079 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 1079 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(1080)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(1080)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 1080 may capture still images and moving images. According to an embodiment, the camera module 1080 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(1088)은 전자 장치(1001)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(1088)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 1088 may manage power supplied to the electronic device 1001 . According to an embodiment, the power management module 1088 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
배터리(1089)는 전자 장치(1001)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(1089)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 1089 may supply power to at least one component of the electronic device 1001 . According to an embodiment, the battery 1089 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(1090)은 전자 장치(1001)와 외부 전자 장치(예: 전자 장치(1002), 전자 장치(1004), 또는 서버(1008)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(1090)은 프로세서(1020)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(1090)은 무선 통신 모듈(1092)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(1094)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(1098)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(1099)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(1004)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(1092)은 가입자 식별 모듈(1096)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(1098) 또는 제2 네트워크(1099)와 같은 통신 네트워크 내에서 전자 장치(1001)를 확인 또는 인증할 수 있다. The communication module 1090 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 1001 and an external electronic device (eg, the electronic device 1002, the electronic device 1004, or the server 1008). It can support establishment and communication performance through the established communication channel. The communication module 1090 may include one or more communication processors that operate independently of the processor 1020 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 1090 is a wireless communication module 1092 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 1094 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 1098 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 1099 (eg, legacy It may communicate with the external electronic device 1004 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 1092 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 1096 within a communication network, such as the first network 1098 or the second network 1099 . The electronic device 1001 may be identified or authenticated.
무선 통신 모듈(1092)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(1092)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(1092)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(1092)은 전자 장치(1001), 외부 전자 장치(예: 전자 장치(1004)) 또는 네트워크 시스템(예: 제2 네트워크(1099))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시 예에 따르면, 무선 통신 모듈(1092)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 1092 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 1092 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 1092 uses various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 1092 may support various requirements defined in the electronic device 1001 , an external electronic device (eg, the electronic device 1004 ), or a network system (eg, the second network 1099 ). According to an embodiment, the wireless communication module 1092 includes a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).
안테나 모듈(1097)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(1097)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(1097)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제1 네트워크(1098) 또는 제2 네트워크(1099)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(1090)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(1090)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(1097)의 일부로 형성될 수 있다. The antenna module 1097 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 1097 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 1097 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 1098 or the second network 1099 is connected from the plurality of antennas by, for example, the communication module 1090 . can be selected. A signal or power may be transmitted or received between the communication module 1090 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 1097 .
다양한 실시 예에 따르면, 안테나 모듈(1097)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시 예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 1097 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a specified high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.
일 실시 예에 따르면, 명령 또는 데이터는 제2 네트워크(1099)에 연결된 서버(1008)를 통해서 전자 장치(1001)와 외부의 전자 장치(1004)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(1002, 또는 1004) 각각은 전자 장치(1001)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(1001)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(1002, 1004, 또는 1008) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(1001)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(1001)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(1001)로 전달할 수 있다. 전자 장치(1001)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(1001)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시 예에 있어서, 외부의 전자 장치(1004)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(1008)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시 예에 따르면, 외부의 전자 장치(1004) 또는 서버(1008)는 제2 네트워크(1099) 내에 포함될 수 있다. 전자 장치(1001)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, a command or data may be transmitted or received between the electronic device 1001 and the external electronic device 1004 through the server 1008 connected to the second network 1099 . Each of the external electronic devices 1002 and 1004 may be the same as or different from the electronic device 1001 . According to an embodiment, all or a part of operations executed by the electronic device 1001 may be executed by one or more external electronic devices 1002 , 1004 , or 1008 . For example, when the electronic device 1001 needs to perform a function or service automatically or in response to a request from a user or other device, the electronic device 1001 performs the function or service by itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 1001 . The electronic device 1001 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 1001 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 1004 may include an Internet of things (IoT) device. Server 1008 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 1004 or the server 1008 may be included in the second network 1099 . The electronic device 1001 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
본 문서에 개시된 다양한 실시 예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시 예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may be a device of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시 예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시 예들로 한정하려는 것이 아니며, 해당 실시 예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제1", "제2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제1) 구성요소가 다른(예: 제2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as “first”, “second”, or “first” or “second” may simply be used to distinguish the component from other components in question, and may refer to components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
본 문서의 다양한 실시 예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시 예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, for example, and interchangeably with terms such as logic, logic block, component, or circuit. can be used A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시 예들은 기기(machine)(예: 전자 장치(1001)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(1036) 또는 외장 메모리(1038))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(1040))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(1001))의 프로세서(예: 프로세서(1020))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 1036 or external memory 1038) readable by a machine (eg, electronic device 1001) may be implemented as software (eg, the program 1040) including For example, a processor (eg, processor 1020 ) of a device (eg, electronic device 1001 ) may call at least one of one or more instructions stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
일 실시 예에 따르면, 본 문서에 개시된 다양한 실시 예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, the methods according to various embodiments disclosed in this document may be provided by being included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed online (eg download or upload), directly between smartphones (eg smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
다양한 실시 예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시 예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시 예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, a module or a program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. . According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repetitively, or heuristically, or one or more of the operations are executed in a different order, omitted, or , or one or more other operations may be added.
도 11은 다양한 실시 예들에 따른, 카메라 모듈(예: 도 1의 카메라 모듈(180))을 예시하는 블록도이다.11 is a block diagram illustrating a camera module (eg, the camera module 180 of FIG. 1 ) according to various embodiments of the present disclosure.
도 11를 참조하면, 카메라 모듈(1080)은 렌즈 어셈블리(1110), 플래쉬(1120), 이미지 센서(1130), 이미지 스태빌라이저(1140), 메모리(1150)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(1160)를 포함할 수 있다. 렌즈 어셈블리(1110)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(1110)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일 실시 예에 따르면, 카메라 모듈(1080)은 복수의 렌즈 어셈블리(1110)들을 포함할 수 있다. 이런 경우, 카메라 모듈(1080)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)를 형성할 수 있다. 복수의 렌즈 어셈블리(1110)들 중 일부는 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리의 렌즈 속성들과 다른 하나 이상의 렌즈 속성들을 가질 수 있다. 렌즈 어셈블리(1110)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. Referring to FIG. 11 , the camera module 1080 includes a lens assembly 1110 , a flash 1120 , an image sensor 1130 , an image stabilizer 1140 , a memory 1150 (eg, a buffer memory), or an image signal processor. (1160) may be included. The lens assembly 1110 may collect light emitted from a subject, which is an image capturing object. The lens assembly 1110 may include one or more lenses. According to an embodiment, the camera module 1080 may include a plurality of lens assemblies 1110 . In this case, the camera module 1080 may form, for example, a dual camera, a 360 degree camera, or a spherical camera. Some of the plurality of lens assemblies 1110 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may be a different lens assembly. It may have one or more lens properties different from the lens properties of . The lens assembly 1110 may include, for example, a wide-angle lens or a telephoto lens.
플래쉬(1120)는 피사체로부터 방출 또는 반사되는 빛을 강화하기 위하여 사용되는 빛을 방출할 수 있다. 일 실시 예에 따르면, 플래쉬(1120)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다. 이미지 센서(1130)는 피사체로부터 방출 또는 반사되어 렌즈 어셈블리(1110)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일 실시 예에 따르면, 이미지 센서(1130)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(1130)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서를 이용하여 구현될 수 있다.The flash 1120 may emit light used to enhance light emitted or reflected from the subject. According to an embodiment, the flash 1120 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp. The image sensor 1130 may acquire an image corresponding to the subject by converting light emitted or reflected from the subject and transmitted through the lens assembly 1110 into an electrical signal. According to an embodiment, the image sensor 1130 may include, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having properties, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 1130 may be implemented using, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.
이미지 스태빌라이저(1140)는 카메라 모듈(1080) 또는 이를 포함하는 전자 장치(1001)의 움직임에 반응하여, 렌즈 어셈블리(1110)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(1130)를 특정한 방향으로 움직이거나 이미지 센서(1130)의 동작 특성을 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 이는 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향의 적어도 일부를 보상하게 해 준다. 일 실시 예에 따르면, 이미지 스태빌라이저(1140)는, 일 실시 예에 따르면, 이미지 스태빌라이저(1140)는 카메라 모듈(1080)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 카메라 모듈(1080) 또는 전자 장치(1001)의 그런 움직임을 감지할 수 있다. 일 실시 예에 따르면, 이미지 스태빌라이저(1140)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있다. 메모리(1150)는 이미지 센서(1130)를 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: Bayer-patterned 이미지 또는 높은 해상도의 이미지)는 메모리(1150)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(1060)를 통하여 프리뷰 될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(1150)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(1160)에 의해 획득되어 처리될 수 있다. 일 실시 예에 따르면, 메모리(1150)는 메모리(1030)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.In response to the movement of the camera module 1080 or the electronic device 1001 including the same, the image stabilizer 1140 moves at least one lens or the image sensor 1130 included in the lens assembly 1110 in a specific direction or Operation characteristics of the image sensor 1130 may be controlled (eg, read-out timing may be adjusted, etc.). This makes it possible to compensate for at least some of the negative effects of the movement on the image being taken. According to an embodiment, the image stabilizer 1140, according to an embodiment, the image stabilizer 1140 is a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 1080 Such a movement of the camera module 1080 or the electronic device 1001 may be detected using . According to an embodiment, the image stabilizer 1140 may be implemented as, for example, an optical image stabilizer. The memory 1150 may temporarily store at least a portion of the image acquired through the image sensor 1130 for the next image processing operation. For example, when image acquisition is delayed according to the shutter or a plurality of images are acquired at high speed, the acquired original image (eg, Bayer-patterned image or high-resolution image) is stored in the memory 1150 and , a copy image corresponding thereto (eg, a low-resolution image) may be previewed through the display device 1060 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a portion of the original image stored in the memory 1150 may be obtained and processed by, for example, the image signal processor 1160 . According to an embodiment, the memory 1150 may be configured as at least a part of the memory 1030 or as a separate memory operated independently of the memory 1030 .
이미지 시그널 프로세서(1160)는 이미지 센서(1130)를 통하여 획득된 이미지 또는 메모리(1150)에 저장된 이미지에 대하여 하나 이상의 이미지 처리들을 수행할 수 있다. 상기 하나 이상의 이미지 처리들은, 예를 들면, 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening)을 포함할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(1160)는 카메라 모듈(1080)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(1130))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(1160)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(1150)에 다시 저장되거나 카메라 모듈(1080)의 외부 구성 요소(예: 메모리(1030), 표시 장치(1060), 전자 장치(1002), 전자 장치(1004), 또는 서버(1008))로 제공될 수 있다. 일 실시 예에 따르면, 이미지 시그널 프로세서(1160)는 프로세서(1020)의 적어도 일부로 구성되거나, 프로세서(1020)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 이미지 시그널 프로세서(1160)가 프로세서(1020)와 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(1160)에 의해 처리된 적어도 하나의 이미지는 프로세서(1020)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(1060)를 통해 표시될 수 있다.The image signal processor 1160 may perform one or more image processing on an image acquired through the image sensor 1130 or an image stored in the memory 1150 . The one or more image processes may include, for example, depth map generation, 3D modeling, panorama generation, feature point extraction, image synthesis, or image compensation (eg, noise reduction, resolution adjustment, brightness adjustment, blurring ( blurring), sharpening (sharpening), or softening (softening) Additionally or alternatively, the image signal processor 1160 may include at least one of the components included in the camera module 1080 (eg, an image sensor). 1130), for example, exposure time control, readout timing control, etc. The image processed by the image signal processor 1160 is stored back in the memory 1150 for further processing. or may be provided as an external component of the camera module 1080 (eg, the memory 1030 , the display device 1060 , the electronic device 1002 , the electronic device 1004 , or the server 1008 ). According to an example, the image signal processor 1160 may be configured as at least a part of the processor 1020 or as a separate processor operated independently of the processor 1020. The image signal processor 1160 may include the processor 1020 and a separate processor, the at least one image processed by the image signal processor 1160 may be displayed through the display device 1060 as it is or after additional image processing is performed by the processor 1020 .
일 실시 예에 따르면, 전자 장치(1001)는 각각 다른 속성 또는 기능을 가진 복수의 카메라 모듈(1080)들을 포함할 수 있다. 이런 경우, 예를 들면, 상기 복수의 카메라 모듈(1080)들 중 적어도 하나는 광각 카메라이고, 적어도 다른 하나는 망원 카메라일 수 있다. 유사하게, 상기 복수의 카메라 모듈(1080)들 중 적어도 하나는 전면 카메라이고, 적어도 다른 하나는 후면 카메라일 수 있다.According to an embodiment, the electronic device 1001 may include a plurality of camera modules 1080 each having different properties or functions. In this case, for example, at least one of the plurality of camera modules 1080 may be a wide-angle camera, and at least the other may be a telephoto camera. Similarly, at least one of the plurality of camera modules 1080 may be a front camera, and at least the other may be a rear camera.
다양한 실시 예에 있어서, 전자 장치(100)는 이미지 센서(120), 깊이 감지 센서(210), 이미지 센서(120) 및 깊이 감지 센서(210)와 전기적으로 연결된 적어도 하나의 프로세서(예: 도 2의 프로세서(220))를 포함할 수 있다. 적어도 하나의 프로세서(220)는 깊이 감지 센서(210)를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하고, 텍스트 인식 기능을 활성화할 수 있다. 프로세서(220)는 상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하고, 상기 결정된 복수의 초점에 기반하여 이미지 센서(120)를 구동함으로써 복수의 이미지를 획득할 수 있다. 프로세서(220)는 상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득할 수 있다.According to various embodiments of the present disclosure, the electronic device 100 includes at least one processor (eg, FIG. 2 ) electrically connected to the image sensor 120 , the depth sensor 210 , the image sensor 120 , and the depth sensor 210 . of the processor 220). The at least one processor 220 may determine whether the target object corresponds to a flat object using the depth sensor 210 and activate a text recognition function. The processor 220 determines a plurality of focal points for different regions of the target object in response to the target object corresponding to the planar object and activation of the text recognition function, and based on the determined plurality of focal points Thus, a plurality of images may be acquired by driving the image sensor 120 . The processor 220 may acquire a final image of the target object based on at least a part of the plurality of acquired images.
일 실시 예에 있어서, 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우, 프로세서(220)는 상기 대상 객체에 대한 영역을 제1 개수로 나누어 복수의 초점을 결정하고, 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위보다 큰 제2 범위인 경우, 프로세서(220)는 상기 대상 객체에 대한 영역을 제2 개수로 나누어 복수의 초점을 결정할 수 있다.In an embodiment, when the angle between the camera of the electronic device 100 and the target object is within a first range, the processor 220 divides the area for the target object by the first number to determine a plurality of focal points, , when the angle between the camera of the electronic device 100 and the target object is a second range greater than the first range, the processor 220 may determine a plurality of focal points by dividing the area for the target object by the second number. have.
일 실시 예에 있어서, 프로세서(220)는 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득할 수 있다. 프로세서(220)는 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제2 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하고, 기준 초점 거리보다 초점 거리를 줄여가며 이미지를 획득할 수 있다.In an embodiment, when the angle between the camera of the electronic device 100 and the target object is within the first range, the processor 220 may acquire the image while increasing the focal length from the reference focal length. When the angle between the camera of the electronic device 100 and the target object is within the second range, the processor 220 acquires an image while increasing the focal length than the reference focal length, and decreases the focal length than the reference focal length to obtain the image. can be obtained.
일 실시 예에 있어서, 전자 장치(100)와 상기 대상 객체가 이루는 각도는, 상기 대상 객체에 수직 방향인 법선(normal)과 카메라 좌표계의 z축이 이루는 각도일 수 있다.In an embodiment, an angle between the electronic device 100 and the target object may be an angle between a normal that is perpendicular to the target object and a z-axis of the camera coordinate system.
일 실시 예에 있어서, 프로세서(220)는 이미지 센서(120) 또는 깊이 감지 센서(210)를 이용하여 대상 객체가 일정 비율 이상의 텍스트 영역을 포함하는지 판단할 수 있다.In an embodiment, the processor 220 may determine whether the target object includes a text area greater than or equal to a certain ratio using the image sensor 120 or the depth sensor 210 .
일 실시 예에 있어서, 텍스트 인식 기능은 사용자의 입력에 의해 활성화되거나, 카메라 어플리케이션 실행에 응답하여 자동적으로 활성화될 수 있다.In an embodiment, the text recognition function may be activated by a user input or may be activated automatically in response to execution of a camera application.
일 실시 예에 있어서, 프로세서(220)는 상기 대상 객체의 제1 영역에 초점이 맞도록 제1 초점 거리에 기반하여 제1 이미지를 획득하고, 상기 대상 객체의 제2 영역에 초점이 맞도록 제2 초점 거리에 기반하여 제2 이미지를 획득할 수 있다.In an embodiment, the processor 220 acquires a first image based on a first focal length to focus on a first area of the target object, and obtains a second image to focus on a second area of the target object A second image may be acquired based on the 2 focal lengths.
일 실시 예에 있어서, 프로세서(220)는 상기 획득된 복수의 이미지들 중 적어도 하나의 이미지를 메인 이미지로 결정하고, 나머지 이미지들을 서브 이미지들로 결정할 수 있다. 프로세서(220)는 상기 메인 이미지에 서브 이미지들의 일부를 합성하여 대상 객체에 대한 최종 이미지를 획득할 수 있다.In an embodiment, the processor 220 may determine at least one image among the plurality of acquired images as a main image and determine the remaining images as sub images. The processor 220 may obtain a final image of the target object by synthesizing a portion of the sub images with the main image.
일 실시 예에 있어서, 상기 서로 다른 영역들의 크기, 흐림(blur)정도, 전자 장치의 카메라와의 거리에 기반하여, 상기 서로 다른 영역들에 초점 스택을 위한 우선 순위를 정할 수 있다.In an embodiment, the different areas may be prioritized for the focus stack based on the size of the different areas, the degree of blur, and the distance from the camera of the electronic device.
일 실시 예에 있어서, 프로세서(220)는 상기 우선 순위가 높은 영역들에 대해서 초점을 결정하고, 상기 결정된 초점에 기반하여 복수의 이미지들을 획득할 수 있다.In an embodiment, the processor 220 may determine a focus for the high-priority regions, and acquire a plurality of images based on the determined focus.
다양한 실시 예에 있어서, 전자 장치(100)의 동작 방법은 깊이 감지 센서(210)를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하는 동작 방법을 포함할 수 있다. 전자 장치(100)의 동작 방법은 텍스트 인식 기능을 활성화하는 동작 방법을 포함할 수 있다. 전자 장치(100)의 동작 방법은 상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하는 동작 방법을 포함할 수 있다. 전자 장치(100)의 동작 방법은 상기 결정된 복수의 초점에 기반하여 이미지 센서(120)를 구동함으로써 복수의 이미지를 획득하는 동작 방법을 포함할 수 있다. 전자 장치(100)의 동작 방법은 상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득하는 동작 방법을 포함할 수 있다.In various embodiments, the operating method of the electronic device 100 may include an operating method of determining whether the target object corresponds to a planar object using the depth sensor 210 . An operating method of the electronic device 100 may include an operating method of activating a text recognition function. The operating method of the electronic device 100 includes an operating method of determining a plurality of focal points for different regions of the target object in response to the target object corresponding to the planar object and the activation of the text recognition function can do. The operating method of the electronic device 100 may include an operating method of acquiring a plurality of images by driving the image sensor 120 based on the determined plurality of focal points. The operating method of the electronic device 100 may include an operating method of acquiring a final image of the target object based on at least a part of the plurality of acquired images.
일 실시 예에 있어서, 상기 복수의 초점을 결정하는 동작은 상기 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우, 상기 대상 객체에 대한 영역을 제1 개수로 나누어 복수의 초점을 결정하는 동작을 포함할 수 있다.In an embodiment, in the determining of the plurality of focal points, when an angle between the camera of the electronic device 100 and the target object is within a first range, dividing the area for the target object by the first number It may include an operation of determining the focus of
일 실시 예에 있어서, 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위보다 큰 제2 범위인 경우, 상기 대상 객체에 대한 영역을 제2 개수로 나누어 복수의 초점을 결정하는 동작 방법을 포함할 수 있다.In an embodiment, when an angle between the camera of the electronic device 100 and the target object is a second range greater than the first range, dividing the area for the target object by the second number to determine a plurality of focal points It may include a method of operation.
일 실시 예에 있어서, 상기 복수의 이미지를 획득하는 동작은 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하는 동작을 포함할 수 있다.In an embodiment, the acquiring of the plurality of images includes acquiring images while increasing a focal length rather than a reference focal length when an angle between the camera of the electronic device 100 and the target object is within a first range. may include
일 실시 예에 있어서, 전자 장치(100)의 동작 방법은 전자 장치(100)의 카메라와 상기 대상 객체가 이루는 각도가 제2 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하고, 기준 초점 거리보다 초점 거리를 줄여가며 이미지를 획득하는 동작을 포함하는 동작 방법을 포함할 수 있다.In an embodiment, in the method of operating the electronic device 100, when the angle between the camera of the electronic device 100 and the target object is in the second range, the image is acquired while increasing the focal length than the reference focal length, The method may include an operation method including an operation of acquiring an image while reducing a focal length from a reference focal length.
일 실시 예에 있어서, 전자 장치(100)의 동작 방법은 이미지 센서(120) 또는 깊이 감지 센서(210)를 이용하여 대상 객체가 일정 비율 이상의 텍스트 영역을 포함하는지 판단하는 동작 방법을 포함할 수 있다.In an embodiment, the operating method of the electronic device 100 may include an operating method of determining whether the target object includes a text area of a certain ratio or more using the image sensor 120 or the depth sensor 210 . .
일 실시 예에 있어서, 상기 복수의 이미지를 획득하는 동작은, 상기 대상 객체의 제1 영역에 초점이 맞도록 제1 초점 거리에 기반하여 제1 이미지를 획득하고, 상기 대상 객체의 제2 영역에 초점이 맞도록 제2 초점 거리에 기반하여 제2 이미지를 획득하는 동작 방법을 포함할 수 있다.In an embodiment, the acquiring of the plurality of images includes acquiring a first image based on a first focal length so that a first region of the target object is in focus, and applying a first image to a second region of the target object. The method may include an operating method of acquiring a second image based on a second focal length so as to be in focus.
일 실시 예에 있어서, 상기 최종 이미지를 획득하는 동작은, 상기 획득된 복수의 이미지들 중 적어도 하나의 이미지를 메인 이미지로 결정하는 동작, 나머지 이미지들을 서브 이미지들로 결정하는 동작, 상기 메인 이미지에 상기 서브 이미지들의 일부를 합성하여 대상 객체에 대한 최종 이미지를 획득하는 동작을 포함할 수 있다.In an embodiment, the obtaining of the final image includes determining at least one image from among the plurality of obtained images as a main image, determining the remaining images as sub images, and adding the main image to the main image. and obtaining a final image of the target object by synthesizing a portion of the sub-images.
일 실시 예에 있어서, 전자 장치(100)의 동작 방법은 상기 서로 다른 영역들의 크기, 흐림(blur)정도, 전자 장치의 카메라와의 거리에 기반하여, 상기 서로 다른 영역들에 초점 스택을 위한 우선 순위를 정하는 동작 방법을 포함할 수 있다. According to an embodiment, the method of operating the electronic device 100 provides priority for focusing stacks on the different regions based on the size of the different regions, the degree of blur, and the distance from the camera of the electronic device. It may include an operation method for determining the ranking.
일 실시 예에 있어서, 전자 장치(100)의 동작 방법은 상기 우선 순위가 높은 영역들에 대해서 초점을 결정하는 동작 방법, 상기 결정된 초점에 기반하여 복수의 이미지들을 획득하는 동작 방법을 포함할 수 있다.In an embodiment, the operating method of the electronic device 100 may include an operating method of determining a focus for the high-priority regions and an operating method of acquiring a plurality of images based on the determined focus. .

Claims (15)

  1. 전자 장치에 있어서,In an electronic device,
    이미지 센서;image sensor;
    깊이 감지 센서;depth sensor;
    상기 이미지 센서 및 상기 깊이 감지 센서와 전기적으로 연결된 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서는:at least one processor electrically connected to the image sensor and the depth sensor, wherein the at least one processor comprises:
    상기 깊이 감지 센서를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하고,Determining whether the target object corresponds to a flat object using the depth sensor,
    텍스트 인식 기능을 활성화하고,enable text recognition,
    상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하고, 상기 결정된 복수의 초점에 기반하여 상기 이미지 센서를 구동함으로써 복수의 이미지를 획득하고,In response to the target object corresponding to the planar object and the text recognition function being activated, a plurality of focal points for different regions of the target object are determined, and the image sensor is configured based on the determined plurality of focal points. Acquire a plurality of images by driving,
    상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득하는, 전자 장치.An electronic device to acquire a final image of the target object based on at least a part of the plurality of acquired images.
  2. 청구항 1에 있어서,The method according to claim 1,
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우, 상기 대상 객체에 대한 영역을 제1 개수로 나누어 복수의 초점을 결정하고,When an angle between the camera of the electronic device and the target object is within a first range, dividing an area for the target object by a first number to determine a plurality of focal points;
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위보다 큰 제2 범위인 경우, 상기 대상 객체에 대한 영역을 제2 개수로 나누어 복수의 초점을 결정하는, 전자 장치.When an angle between the camera of the electronic device and the target object is a second range that is greater than a first range, the electronic device determines a plurality of focal points by dividing an area for the target object by a second number.
  3. 청구항 1에 있어서, The method according to claim 1,
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하고,When the angle between the camera of the electronic device and the target object is within the first range, acquiring an image while increasing the focal length than the reference focal length,
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제2 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하고, 기준 초점 거리보다 초점 거리를 줄여가며 이미지를 획득하는, 전자 장치.When the angle between the camera of the electronic device and the target object is within a second range, acquiring an image while increasing a focal length than a reference focal length, and acquiring an image while decreasing a focal length than the reference focal length.
  4. 청구항 3에 있어서,4. The method according to claim 3,
    상기 전자 장치와 상기 대상 객체가 이루는 각도는, 상기 대상 객체에 수직 방향인 법선(normal)과 카메라 좌표계의 z축이 이루는 각도인, 전자 장치.The angle formed between the electronic device and the target object is an angle formed between a normal that is perpendicular to the target object and a z-axis of a camera coordinate system.
  5. 청구항 1에 있어서,The method according to claim 1,
    상기 이미지 센서 또는 상기 깊이 감지 센서를 이용하여 대상 객체가 일정 비율 이상의 텍스트 영역을 포함하는지 판단하는, 전자 장치.An electronic device for determining whether a target object includes a text area greater than or equal to a predetermined ratio using the image sensor or the depth sensor.
  6. 청구항 1에 있어서,The method according to claim 1,
    상기 텍스트 인식 기능은 사용자의 입력에 의해 활성화되거나, 카메라 어플리케이션 실행에 응답하여 자동적으로 활성화되는, 전자 장치.The text recognition function is activated by a user input or is automatically activated in response to execution of a camera application.
  7. 청구항 1에 있어서,The method according to claim 1,
    상기 대상 객체의 제1 영역에 초점이 맞도록 제1 초점 거리에 기반하여 제1 이미지를 획득하고, 상기 대상 객체의 제2 영역에 초점이 맞도록 제2 초점 거리에 기반하여 제2 이미지를 획득하는, 전자 장치.A first image is obtained based on a first focal length so that a first area of the target object is in focus, and a second image is obtained based on a second focal length so that a second area of the target object is in focus. which is an electronic device.
  8. 청구항 1에 있어서,The method according to claim 1,
    상기 획득된 복수의 이미지들 중 적어도 하나의 이미지를 메인 이미지로 결정하고, 나머지 이미지들을 서브 이미지들로 결정하고, 상기 메인 이미지에 서브 이미지들의 일부를 합성하여 대상 객체에 대한 최종 이미지를 획득하는, 전자 장치.Determining at least one image among the obtained plurality of images as a main image, determining the remaining images as sub images, and synthesizing some of the sub images with the main image to obtain a final image of the target object, electronic device.
  9. 청구항 1에 있어서,The method according to claim 1,
    상기 서로 다른 영역들의 크기, 흐림(blur)정도, 전자 장치의 카메라와의 거리에 기반하여, 상기 서로 다른 영역들에 초점 스택을 위한 우선 순위를 정하는, 전자 장치.and prioritizing the different regions for a focus stack based on a size of the different regions, a degree of blur, and a distance from a camera of the electronic device.
  10. 청구항 9에 있어서,10. The method of claim 9,
    상기 우선 순위가 높은 영역들에 대해서 초점을 결정하고, 상기 결정된 초점에 기반하여 복수의 이미지들을 획득하는, 전자 장치.The electronic device of claim 1, wherein a focus is determined for the high-priority areas, and a plurality of images are acquired based on the determined focus.
  11. 전자 장치의 동작 방법에 있어서,A method of operating an electronic device, comprising:
    깊이 감지 센서를 이용하여 대상 객체가 평면 객체에 해당하는지 판단하는 동작;determining whether the target object corresponds to a flat object using a depth sensor;
    텍스트 인식 기능을 활성화하는 동작;activating the text recognition function;
    상기 대상 객체가 상기 평면 객체에 해당하고 상기 텍스트 인식 기능이 활성화되는 것에 응답하여, 상기 대상 객체의 서로 다른 영역들에 대한 복수의 초점을 결정하는 동작;determining a plurality of focal points for different regions of the target object in response to the target object being the planar object and activating the text recognition function;
    상기 결정된 복수의 초점에 기반하여 이미지 센서를 구동함으로써 복수의 이미지를 획득하는 동작;acquiring a plurality of images by driving an image sensor based on the determined plurality of focal points;
    상기 획득된 복수의 이미지들 중 적어도 일부에 기반하여 상기 대상 객체에 대한 최종 이미지를 획득하는 동작을 포함하는 동작 방법.and acquiring a final image of the target object based on at least a part of the plurality of acquired images.
  12. 청구항 11에 있어서,12. The method of claim 11,
    상기 복수의 초점을 결정하는 동작은,The operation of determining the plurality of focal points is
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우, 상기 대상 객체에 대한 영역을 제1 개수로 나누어 복수의 초점을 결정하는 동작;determining a plurality of focal points by dividing an area for the target object by a first number when an angle between the camera of the electronic device and the target object is within a first range;
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위보다 큰 제2 범위인 경우, 상기 대상 객체에 대한 영역을 제2 개수로 나누어 복수의 초점을 결정하는 동작을 포함하는 동작 방법.and determining a plurality of focal points by dividing an area for the target object by a second number when an angle between the camera of the electronic device and the target object is a second range greater than a first range.
  13. 청구항 11에 있어서,12. The method of claim 11,
    상기 복수의 이미지를 획득하는 동작은,The operation of acquiring the plurality of images includes:
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제1 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하는 동작;acquiring an image while increasing a focal length from a reference focal length when an angle between the camera of the electronic device and the target object is within a first range;
    상기 전자 장치의 카메라와 상기 대상 객체가 이루는 각도가 제2 범위인 경우에는 기준 초점 거리보다 초점 거리를 늘려가며 이미지를 획득하고, 기준 초점 거리보다 초점 거리를 줄여가며 이미지를 획득하는 동작을 포함하는 동작 방법.When the angle between the camera of the electronic device and the target object is in the second range, acquiring an image while increasing a focal length than a reference focal length, and acquiring an image while decreasing a focal length than the reference focal length how it works.
  14. 청구항 13에 있어서,14. The method of claim 13,
    상기 전자 장치와 상기 대상 객체가 이루는 각도는, 상기 대상 객체에 수직 방향인 법선(normal)과 카메라 좌표계의 z축이 이루는 각도인, 동작 방법.The angle between the electronic device and the target object is an angle between a normal that is perpendicular to the target object and a z-axis of a camera coordinate system.
  15. 청구항 11에 있어서,12. The method of claim 11,
    상기 이미지 센서 또는 상기 깊이 감지 센서를 이용하여 대상 객체가 일정 비율 이상의 텍스트 영역을 포함하는지 판단하는 동작을 포함하는 동작 방법.and determining whether a target object includes a text area greater than or equal to a certain ratio by using the image sensor or the depth sensor.
PCT/KR2021/005965 2020-06-12 2021-05-12 Electronic device including focus adjustment function and method thereof WO2021251631A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020200071755A KR20210154594A (en) 2020-06-12 2020-06-12 Electronic device and method including Focus adjustment function
KR10-2020-0071755 2020-06-12

Publications (1)

Publication Number Publication Date
WO2021251631A1 true WO2021251631A1 (en) 2021-12-16

Family

ID=78846236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/005965 WO2021251631A1 (en) 2020-06-12 2021-05-12 Electronic device including focus adjustment function and method thereof

Country Status (2)

Country Link
KR (1) KR20210154594A (en)
WO (1) WO2021251631A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004347858A (en) * 2003-05-22 2004-12-09 Nec Corp Imaging apparatus with cover
KR20060105930A (en) * 2005-04-01 2006-10-12 엘지전자 주식회사 Character recognition apparatus and method of camera phone
JP2018107593A (en) * 2016-12-26 2018-07-05 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP2019032443A (en) * 2017-08-08 2019-02-28 キヤノン株式会社 Focus adjustment device, imaging device, focus adjustment method, and program
JP2019032370A (en) * 2017-08-04 2019-02-28 キヤノン株式会社 Imaging device and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004347858A (en) * 2003-05-22 2004-12-09 Nec Corp Imaging apparatus with cover
KR20060105930A (en) * 2005-04-01 2006-10-12 엘지전자 주식회사 Character recognition apparatus and method of camera phone
JP2018107593A (en) * 2016-12-26 2018-07-05 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP2019032370A (en) * 2017-08-04 2019-02-28 キヤノン株式会社 Imaging device and control method thereof
JP2019032443A (en) * 2017-08-08 2019-02-28 キヤノン株式会社 Focus adjustment device, imaging device, focus adjustment method, and program

Also Published As

Publication number Publication date
KR20210154594A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
WO2022039424A1 (en) Image stabilization method and electronic device therefor
WO2022030838A1 (en) Electronic device and method for controlling preview image
WO2022108235A1 (en) Method, apparatus, and storage medium for providing slow shutter
WO2022149654A1 (en) Electronic device for performing image stabilization, and operating method therefor
WO2022092706A1 (en) Method for taking photograph by using plurality of cameras, and device therefor
WO2022196993A1 (en) Electronic device and method for capturing image by using angle of view of camera module
WO2022149812A1 (en) Electronic device including camera module and operating method of electronic device
WO2021251631A1 (en) Electronic device including focus adjustment function and method thereof
WO2022080737A1 (en) Method for correcting image distortion, and electronic device therefor
WO2021230567A1 (en) Image capturing method using plurality of cameras, and electronic device therefor
WO2022240186A1 (en) Image distortion correction method and electronic device therefor
WO2022154164A1 (en) Electronic device capable of adjusting angle of view and operating method therefor
WO2022092607A1 (en) Electronic device comprising image sensor and operation method of same
WO2022235043A1 (en) Electronic device comprising plurality of cameras and operating method therefor
WO2022220621A1 (en) Electronic device comprising reflector and lens assembly
WO2021230507A1 (en) Method and device for providing imaging guidance
WO2022025574A1 (en) Electronic device comprising image sensor and image signal processor, and method therefor
WO2022220444A1 (en) Scanning method during photographing with camera and electronic apparatus therefor
WO2022231270A1 (en) Electronic device and image processing method therefor
WO2023033396A1 (en) Electronic device for processing continuous shooting input, and operating method therefor
WO2022186495A1 (en) Electronic device comprising plurality of lenses, and method for controlling same
WO2022173236A1 (en) Electronic device comprising image sensor and method of operating same
WO2022231251A1 (en) Image processing method and electronic device for supporting same
WO2023146236A1 (en) Electronic device comprising camera module
WO2023043132A1 (en) Electronic device for applying bokeh effect to image and operation method of same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21822079

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21822079

Country of ref document: EP

Kind code of ref document: A1