KR20170061536A - Camera module and mobile terminal comprising the camera - Google Patents

Camera module and mobile terminal comprising the camera Download PDF

Info

Publication number
KR20170061536A
KR20170061536A KR1020150166718A KR20150166718A KR20170061536A KR 20170061536 A KR20170061536 A KR 20170061536A KR 1020150166718 A KR1020150166718 A KR 1020150166718A KR 20150166718 A KR20150166718 A KR 20150166718A KR 20170061536 A KR20170061536 A KR 20170061536A
Authority
KR
South Korea
Prior art keywords
images
image
mobile terminal
unit
coordinates
Prior art date
Application number
KR1020150166718A
Other languages
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 엘지전자 주식회사
Priority to KR1020150166718A priority Critical patent/KR20170061536A/en
Publication of KR20170061536A publication Critical patent/KR20170061536A/en

Links

Images

Classifications

    • H04N5/2257
    • H04N13/02
    • H04N5/2253
    • H04N5/2256

Landscapes

  • Telephone Function (AREA)

Abstract

A camera module according to the present invention includes: an illumination unit configured to illuminate light on a specific plane; First and second cameras arranged to be spaced apart from each other and configured to photograph first and second images respectively including predetermined patterns corresponding to light illuminated on the specific plane; And correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images, And a controller for generating a three-dimensional image using two images.

Description

[0001] CAMERA MODULE AND MOBILE TERMINAL COMPRISING THE CAMERA [0002]

The present invention relates to a camera module for acquiring a three-dimensional image and a mobile terminal including the camera module.

As the interest in stereoscopic image service has been increasing recently, devices for providing stereoscopic images are continuously being developed. The stereoscopic method, the time-of-flight (TOF) method, and the structure light method are examples of a method of implementing the stereoscopic image.

The basic principle of the stereoscopic method is that a plurality of images orthogonal to each other are input to the left eye and the right eye of a human being, and stereoscopic images are generated by combining images input from the left eye and right eye of the human brain. At this time, images arranged orthogonally to each other are respectively a reft view image and a right view image.

The recent 3D camera module is configured to simultaneously photograph the left eye image and the right eye image in one device. For example, a stereo system using two identical cameras is often used. In the case of the stereo system, the two cameras were arranged at a predetermined interval, and the left and right images were acquired using two separate completely independent cameras (two lenses, two sensors, two ISPs).

However, in the stereoscopic 3D camera module, a quality problem due to an assembly error between two cameras deteriorates the quality of a 3D image, resulting in a problem of a high-precision assembling process and a yield reduction.

Conventionally, stereo correction is performed using an image of a chess board to reduce an assembly error between the two cameras. However, in the case of stereo correction using a chess board, a physical tool called chess board is indispensable, and there is a disadvantage that a plurality of images must be taken.

In addition, although the conventional 3D camera module is initially well aligned between two cameras, there is a problem that an image quality is deteriorated due to a tolerance between two cameras due to an external impact generated during use.

SUMMARY OF THE INVENTION It is an object of the present invention to provide a camera module capable of performing stereo correction without using a physical tool such as a chess board and a mobile terminal having the camera module. will be.

It is another object of the present invention to provide a camera module in which image distortion due to a tolerance between two cameras generated during use of a camera module or a mobile terminal according to the present invention can be easily corrected, .

A camera module according to the present invention includes: an illumination unit configured to illuminate light on a specific plane; First and second cameras arranged to be spaced apart from each other and configured to photograph first and second images respectively including predetermined patterns corresponding to light illuminated on the specific plane; And correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images, And a controller for generating a three-dimensional image using two images.

In one embodiment of the present invention, the control unit recognizes, as the specific plane, a space corresponding to a portion of the first and second images satisfying a predetermined condition from a space corresponding to the first and second images, The illumination unit can be controlled so that light is illuminated on the specific plane.

In one embodiment, the control unit may generate a look up table for performing a correction for a portion of the first and second images, and may include a lookup table for at least one of the first and second images, a look up table can be applied.

In an embodiment, the controller may generate an error difference value by comparing the current difference value and the reference difference value of the first and second coordinates, and may generate the lookup table based on the generated error difference value have.

In one embodiment of the present invention, the control unit stores the generated lookup table in a memory, and when the third and fourth images different from the first and second images are taken through the first and second cameras, 3 and the fourth image by applying the lookup table to at least one of the third and fourth images, and generating a three-dimensional image using the at least one corrected third and fourth images .

In an embodiment, the lookup table stored in the memory may be updated every predetermined period.

In one embodiment, the predetermined pattern is a plurality of patterns, and the control unit may calculate the first and second coordinates of each pattern by matching each pattern in the first and second images.

In an exemplary embodiment, the control unit may sequentially match the patterns from the central area to the outer area of the first or second image.

In one embodiment, the predetermined pattern comprises a set of a plurality of pixels, each pixel having a first or a second pixel value at random, and each pattern having a different code.

A mobile terminal according to the present invention includes: an illumination unit configured to illuminate light on a specific plane; First and second cameras arranged to be spaced apart from each other and configured to photograph first and second images respectively including predetermined patterns corresponding to light illuminated on the specific plane; And correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images, And a controller for generating a three-dimensional image using two images.

A method of controlling a camera module according to the present invention includes the steps of illuminating light on a specific plane through an illumination unit; Receiving first and second images through a first and a second camera, the first and second images including a predetermined pattern corresponding to light illuminated in the specific plane; Correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images; And generating a three-dimensional image using the at least one corrected first and second images.

The camera module and the mobile terminal according to an embodiment of the present invention may use the first and second coordinates of a predetermined pattern included in the first and second images to determine a tolerance generated when assembling the camera module, It is possible to easily correct the image distortion caused by the distortion. Accordingly, a 3D stereoscopic image with improved quality can be generated and provided.

The camera module and the mobile terminal according to an exemplary embodiment of the present invention may be configured such that when a user does not separately perform a command related to light illumination or an instruction related to image correction but a portion recognized as a plane exists in the received image, A lookup table for the part may be generated and the correction may be performed using the generated lookup table.

Thereby, it is possible to easily correct the image distortion that is generated or deepened during the use of the camera module or the mobile terminal according to the present invention by the user.

FIG. 1A is a block diagram for explaining a mobile terminal according to the present invention; FIG.
1B and 1C are conceptual diagrams illustrating an example of a mobile terminal according to the present invention in different directions.
2 is a conceptual diagram of a mobile terminal having a camera module related to the present invention.
3 is a conceptual diagram for explaining a lighting unit related to the present invention;
4 is a flowchart typically showing a control method of the present invention.
5A through 5C are conceptual diagrams for explaining the control method shown in FIG. 4;
6A is a flowchart for explaining a control method in which light is illuminated in a specific plane related to the present invention.
6B to 6D are conceptual diagrams for explaining the control method of FIG. 6A. FIG.
FIG. 7A is a flowchart illustrating a control method for matching patterns in first and second images related to the present invention; FIG.
FIG. 7B is a conceptual diagram for explaining the control method of FIG. 7A. FIG.

Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings, wherein like or similar elements are denoted by the same reference numerals, and redundant description thereof will be omitted. The suffix "module" and " part "for the components used in the following description are given or mixed in consideration of ease of specification, and do not have their own meaning or role. In the following description of the embodiments of the present invention, a detailed description of related arts will be omitted when it is determined that the gist of the embodiments disclosed herein may be blurred. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. , ≪ / RTI > equivalents, and alternatives.

Terms including ordinals, such as first, second, etc., may be used to describe various elements, but the elements are not limited to these terms. The terms are used only for the purpose of distinguishing one component from another.

It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

The singular expressions include plural expressions unless the context clearly dictates otherwise.

In the present application, the terms "comprises", "having", and the like are used to specify that a feature, a number, a step, an operation, an element, a component, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

The mobile terminal described in this specification includes a mobile phone, a smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation device, a slate PC A tablet PC, an ultrabook, a wearable device such as a smartwatch, a smart glass, and a head mounted display (HMD). have.

However, it will be appreciated by those skilled in the art that the configuration according to the embodiments described herein may be applied to fixed terminals such as a digital TV, a desktop computer, a digital signage, and the like, will be.

1A to 1C are block diagrams for explaining a mobile terminal according to the present invention, and FIGS. 1B and 1C are conceptual diagrams showing an example of a mobile terminal according to the present invention in different directions.

The mobile terminal 100 includes a wireless communication unit 110, an input unit 120, a sensing unit 140, an output unit 150, an interface unit 160, a memory 170, a control unit 180, ), And the like. The components shown in FIG. 1A are not essential for implementing a mobile terminal, so that the mobile terminal described herein may have more or fewer components than the components listed above.

The wireless communication unit 110 may be connected between the mobile terminal 100 and the wireless communication system or between the mobile terminal 100 and another mobile terminal 100 or between the mobile terminal 100 and the external server 100. [ Lt; RTI ID = 0.0 > wireless < / RTI > In addition, the wireless communication unit 110 may include one or more modules for connecting the mobile terminal 100 to one or more networks.

The wireless communication unit 110 may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless Internet module 113, a short distance communication module 114, and a location information module 115 .

The input unit 120 includes a camera 121 or an image input unit for inputting a video signal, a microphone 122 for inputting an audio signal, an audio input unit, a user input unit 123 for receiving information from a user A touch key, a mechanical key, and the like). The voice data or image data collected by the input unit 120 may be analyzed and processed by a user's control command.

The sensing unit 140 may include at least one sensor for sensing at least one of information in the mobile terminal, surrounding environment information surrounding the mobile terminal, and user information. For example, the sensing unit 140 may include a proximity sensor 141, an illumination sensor 142, a touch sensor, an acceleration sensor, a magnetic sensor, A G-sensor, a gyroscope sensor, a motion sensor, an RGB sensor, an infrared sensor, a finger scan sensor, an ultrasonic sensor, A microphone 226, a battery gauge, an environmental sensor (for example, a barometer, a hygrometer, a thermometer, a radiation detection sensor, A thermal sensor, a gas sensor, etc.), a chemical sensor (e.g., an electronic nose, a healthcare sensor, a biometric sensor, etc.). Meanwhile, the mobile terminal disclosed in the present specification can combine and utilize information sensed by at least two of the sensors.

The output unit 150 includes at least one of a display unit 151, an acoustic output unit 152, a haptic tip module 153, and a light output unit 154 to generate an output related to visual, auditory, can do. The display unit 151 may have a mutual layer structure with the touch sensor or may be integrally formed to realize a touch screen. The touch screen may function as a user input unit 123 that provides an input interface between the mobile terminal 100 and a user and may provide an output interface between the mobile terminal 100 and a user.

The interface unit 160 serves as a path to various types of external devices connected to the mobile terminal 100. The interface unit 160 is connected to a device having a wired / wireless headset port, an external charger port, a wired / wireless data port, a memory card port, And may include at least one of a port, an audio I / O port, a video I / O port, and an earphone port. In the mobile terminal 100, corresponding to the connection of the external device to the interface unit 160, it is possible to perform appropriate control related to the connected external device.

In addition, the memory 170 stores data supporting various functions of the mobile terminal 100. The memory 170 may store a plurality of application programs or applications running on the mobile terminal 100, data for operation of the mobile terminal 100, and commands. At least some of these applications may be downloaded from an external server via wireless communication. Also, at least a part of these application programs may exist on the mobile terminal 100 from the time of shipment for the basic functions (e.g., telephone call receiving function, message receiving function, and calling function) of the mobile terminal 100. Meanwhile, the application program may be stored in the memory 170, installed on the mobile terminal 100, and operated by the control unit 180 (180) to perform the operation (or function) of the mobile terminal.

In addition to the operations related to the application program, the control unit 180 typically controls the overall operation of the mobile terminal 100. The control unit 180 may process or process signals, data, information, and the like input or output through the above-mentioned components, or may drive an application program stored in the memory 170 to provide or process appropriate information or functions to the user.

In addition, the controller 180 may control at least some of the components illustrated in FIG. 1A in order to drive an application program stored in the memory 170. FIG. In addition, the controller 180 may operate at least two of the components included in the mobile terminal 100 in combination with each other for driving the application program.

The power supply unit 190 receives external power and internal power under the control of the controller 180 and supplies power to the components included in the mobile terminal 100. The power supply unit 190 includes a battery, which may be an internal battery or a replaceable battery.

At least some of the components may operate in cooperation with one another to implement a method of operation, control, or control of a mobile terminal according to various embodiments described below. In addition, the operation, control, or control method of the mobile terminal may be implemented on the mobile terminal by driving at least one application program stored in the memory 170. [

Hereinafter, the various components of the mobile terminal 100 will be described in detail with reference to FIG. 1A.

First, referring to the wireless communication unit 110, the broadcast receiving module 111 of the wireless communication unit 110 receives broadcast signals and / or broadcast-related information from an external broadcast management server through a broadcast channel. The broadcast channel may include a satellite channel and a terrestrial channel. Two or more broadcast receiving modules may be provided to the mobile terminal 100 for simultaneous broadcast reception or broadcast channel switching for at least two broadcast channels.

The mobile communication module 112 may be a mobile communication module or a mobile communication module such as a mobile communication module or a mobile communication module that uses technology standards or a communication method (e.g., Global System for Mobile communication (GSM), Code Division Multi Access (CDMA), Code Division Multi Access 2000 (Enhanced Voice-Data Optimized or Enhanced Voice-Data Only), Wideband CDMA (WCDMA), High Speed Downlink Packet Access (HSDPA), High Speed Uplink Packet Access (HSUPA), Long Term Evolution And an external terminal, or a server on a mobile communication network established according to a long term evolution (AR), a long term evolution (AR), or the like.

The wireless signal may include various types of data depending on a voice call signal, a video call signal or a text / multimedia message transmission / reception.

The wireless Internet module 113 is a module for wireless Internet access, and may be built in or externally attached to the mobile terminal 100. The wireless Internet module 113 is configured to transmit and receive a wireless signal in a communication network according to wireless Internet technologies.

Wireless Internet technologies include, for example, wireless LAN (WLAN), wireless fidelity (Wi-Fi), wireless fidelity (Wi-Fi) Direct, DLNA (Digital Living Network Alliance), WiBro Interoperability for Microwave Access, High Speed Downlink Packet Access (HSDPA), High Speed Uplink Packet Access (HSUPA), Long Term Evolution (LTE) and Long Term Evolution-Advanced (LTE-A) 113 transmit and receive data according to at least one wireless Internet technology, including Internet technologies not listed above.

The wireless Internet module 113 for performing a wireless Internet connection through the mobile communication network can be used for wireless Internet access by WiBro, HSDPA, HSUPA, GSM, CDMA, WCDMA, LTE or LTE- May be understood as a kind of the mobile communication module 112.

The short-range communication module 114 is for short-range communication, and includes Bluetooth ™, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wideband (UWB) (Near Field Communication), Wi-Fi (Wireless-Fidelity), Wi-Fi Direct, and Wireless USB (Wireless Universal Serial Bus) technology. The short-range communication module 114 is connected to the mobile terminal 100 and the wireless communication system through the wireless area networks, between the mobile terminal 100 and another mobile terminal 100, or between the mobile terminal 100 ) And the other mobile terminal 100 (or the external server). The short-range wireless communication network may be a short-range wireless personal area network.

Here, the other mobile terminal 100 may be a wearable device (e.g., a smartwatch, a smart glass, etc.) capable of interchanging data with the mobile terminal 100 according to the present invention (smart glass), HMD (head mounted display)). The short range communication module 114 may detect (or recognize) a wearable device capable of communicating with the mobile terminal 100 around the mobile terminal 100. [ If the detected wearable device is a device authenticated to communicate with the mobile terminal 100 according to the present invention, the control unit 180 may transmit at least a part of the data processed by the mobile terminal 100 to the short- 114 to the wearable device. Therefore, the user of the wearable device can use the data processed by the mobile terminal 100 through the wearable device. For example, according to this, when a telephone is received in the mobile terminal 100, the user performs a telephone conversation via the wearable device, or when a message is received in the mobile terminal 100, It is possible to check the message.

The position information module 115 is a module for obtaining the position (or current position) of the mobile terminal, and a representative example thereof is a Global Positioning System (GPS) module or a Wireless Fidelity (WiFi) module. For example, when the mobile terminal utilizes the GPS module, it can acquire the position of the mobile terminal by using a signal transmitted from the GPS satellite. As another example, when the mobile terminal utilizes the Wi-Fi module, it can acquire the position of the mobile terminal based on information of a wireless access point (AP) that transmits or receives the wireless signal with the Wi-Fi module. Optionally, the location information module 115 may perform any of the other functions of the wireless communication unit 110 to obtain data relating to the location of the mobile terminal, in addition or alternatively. The location information module 115 is a module used to obtain the location (or current location) of the mobile terminal, and is not limited to a module that directly calculates or obtains the location of the mobile terminal.

Next, the input unit 120 is for inputting image information (or signal), audio information (or signal), data, or information input from a user. For inputting image information, Or a plurality of cameras 121 may be provided. The camera 121 processes image frames such as still images or moving images obtained by the image sensor in the video communication mode or the photographing mode. The processed image frame may be displayed on the display unit 151 or stored in the memory 170. [ A plurality of cameras 121 provided in the mobile terminal 100 may be arranged to have a matrix structure and various angles or foci may be provided to the mobile terminal 100 through the camera 121 having the matrix structure A plurality of pieces of image information can be input. In addition, the plurality of cameras 121 may be arranged in a stereo structure to acquire a left image and a right image for realizing a stereoscopic image.

The microphone 122 processes the external acoustic signal into electrical voice data. The processed voice data can be utilized variously according to a function (or a running application program) being executed in the mobile terminal 100. Meanwhile, the microphone 122 may be implemented with various noise reduction algorithms for eliminating noise generated in receiving an external sound signal.

The user input unit 123 is for receiving information from a user and when the information is inputted through the user input unit 123, the control unit 180 can control the operation of the mobile terminal 100 to correspond to the input information . The user input unit 123 may include a mechanical input unit or a mechanical key such as a button located on a front or rear or side of the mobile terminal 100, a dome switch, a jog wheel, Jog switches, etc.) and touch-type input means. For example, the touch-type input means may comprise a virtual key, a soft key or a visual key displayed on the touch screen through software processing, And a touch key disposed on the touch panel. Meanwhile, the virtual key or the visual key can be displayed on a touch screen having various forms, for example, a graphic, a text, an icon, a video, As shown in FIG.

Meanwhile, the sensing unit 140 senses at least one of information in the mobile terminal, surrounding environment information surrounding the mobile terminal, and user information, and generates a corresponding sensing signal. The control unit 180 may control the driving or operation of the mobile terminal 100 or may perform data processing, function or operation related to the application program installed in the mobile terminal 100 based on the sensing signal. Representative sensors among various sensors that may be included in the sensing unit 140 will be described in more detail.

First, the proximity sensor 141 refers to a sensor that detects the presence of an object approaching a predetermined detection surface, or the presence of an object in the vicinity of the detection surface, without mechanical contact by using electromagnetic force or infrared rays. The proximity sensor 141 may be disposed in the inner area of the mobile terminal or in proximity to the touch screen, which is covered by the touch screen.

Examples of the proximity sensor 141 include a transmission type photoelectric sensor, a direct reflection type photoelectric sensor, a mirror reflection type photoelectric sensor, a high frequency oscillation type proximity sensor, a capacitive proximity sensor, a magnetic proximity sensor, and an infrared proximity sensor. In the case where the touch screen is electrostatic, the proximity sensor 141 can be configured to detect the proximity of the object with a change of the electric field along the proximity of the object having conductivity. In this case, the touch screen (or touch sensor) itself may be classified as a proximity sensor.

On the other hand, for convenience of explanation, the act of recognizing that the object is located on the touch screen in proximity with no object touching the touch screen is referred to as "proximity touch & The act of actually touching an object on the screen is called a "contact touch. &Quot; The position at which the object is closely touched on the touch screen means a position where the object corresponds to the touch screen vertically when the object is touched. The proximity sensor 141 can detect a proximity touch and a proximity touch pattern (e.g., a proximity touch distance, a proximity touch direction, a proximity touch speed, a proximity touch time, a proximity touch position, have. Meanwhile, the control unit 180 processes data (or information) corresponding to the proximity touch operation and the proximity touch pattern sensed through the proximity sensor 141 as described above, and further provides visual information corresponding to the processed data It can be output on the touch screen. Furthermore, the control unit 180 can control the mobile terminal 100 such that different operations or data (or information) are processed according to whether the touch to the same point on the touch screen is a proximity touch or a touch touch .

The touch sensor senses a touch (or touch input) applied to the touch screen (or the display unit 151) by using at least one of various touch methods such as a resistance film type, a capacitive type, an infrared type, an ultrasonic type, do.

For example, the touch sensor may be configured to convert a change in a pressure applied to a specific portion of the touch screen or a capacitance generated in a specific portion to an electrical input signal. The touch sensor may be configured to detect a position, an area, a pressure at the time of touch, a capacitance at the time of touch, and the like where a touch object touching the touch screen is touched on the touch sensor. Here, the touch object may be a finger, a touch pen, a stylus pen, a pointer, or the like as an object to which a touch is applied to the touch sensor.

Thus, when there is a touch input to the touch sensor, the corresponding signal (s) is sent to the touch controller. The touch controller processes the signal (s) and transmits the corresponding data to the controller 180. Thus, the control unit 180 can know which area of the display unit 151 is touched or the like. Here, the touch controller may be a separate component from the control unit 180, and may be the control unit 180 itself.

On the other hand, the control unit 180 may perform different controls or perform the same control according to the type of the touch object touching the touch screen (or a touch key provided on the touch screen). Whether to perform different controls or to perform the same control according to the type of the touch object may be determined according to the current state of the mobile terminal 100 or an application program being executed.

On the other hand, the touch sensors and the proximity sensors discussed above can be used independently or in combination to provide a short touch (touch), a long touch, a multi touch, a drag touch ), Flick touch, pinch-in touch, pinch-out touch, swipe touch, hovering touch, and the like. Touch can be sensed.

The ultrasonic sensor can recognize the position information of the object to be sensed by using ultrasonic waves. Meanwhile, the controller 180 can calculate the position of the wave generating source through the information sensed by the optical sensor and the plurality of ultrasonic sensors. The position of the wave source can be calculated using the fact that the light is much faster than the ultrasonic wave, that is, the time when the light reaches the optical sensor is much faster than the time the ultrasonic wave reaches the ultrasonic sensor. More specifically, the position of the wave generating source can be calculated using the time difference with the time when the ultrasonic wave reaches the reference signal.

The camera 121 includes at least one of a camera sensor (for example, a CCD, a CMOS, etc.), a photo sensor (or an image sensor), and a laser sensor.

The camera 121 and the laser sensor may be combined with each other to sense a touch of the sensing object with respect to the three-dimensional stereoscopic image. The photosensor can be laminated to the display element, which is adapted to scan the movement of the object to be detected proximate to the touch screen. More specifically, the photosensor mounts photo diodes and TRs (Transistors) in a row / column and scans the contents loaded on the photosensor using an electrical signal that varies according to the amount of light applied to the photo diode. That is, the photo sensor performs coordinate calculation of the object to be sensed according to the amount of change of light, and position information of the object to be sensed can be obtained through the calculation.

The display unit 151 displays (outputs) information processed by the mobile terminal 100. For example, the display unit 151 may display execution screen information of an application program driven by the mobile terminal 100 or UI (User Interface) and GUI (Graphic User Interface) information according to the execution screen information .

Also, the display unit 151 may be configured as a stereoscopic display unit for displaying a stereoscopic image.

In the stereoscopic display unit, a three-dimensional display system such as a stereoscopic system (glasses system), an autostereoscopic system (no-glasses system), and a projection system (holographic system) can be applied.

The sound output unit 152 may output audio data received from the wireless communication unit 110 or stored in the memory 170 in a call signal reception mode, a call mode or a recording mode, a voice recognition mode, a broadcast reception mode, The sound output unit 152 also outputs sound signals related to functions (e.g., call signal reception sound, message reception sound, etc.) performed in the mobile terminal 100. [ The audio output unit 152 may include a receiver, a speaker, a buzzer, and the like.

The haptic module 153 generates various tactile effects that the user can feel. A typical example of the haptic effect generated by the haptic module 153 may be vibration. The intensity and pattern of the vibration generated in the haptic module 153 can be controlled by the user's selection or the setting of the control unit. For example, the haptic module 153 may synthesize and output different vibrations or sequentially output the vibrations.

In addition to vibration, the haptic module 153 may be configured to perform various functions such as a pin arrangement vertically moving with respect to the contact skin surface, a spraying force or suction force of the air through the injection port or the suction port, a touch on the skin surface, And various tactile effects such as an effect of reproducing a cold sensation using an endothermic or exothermic element can be generated.

The haptic module 153 can transmit the tactile effect through the direct contact, and the tactile effect can be felt by the user through the muscles of the finger or arm. The haptic module 153 may include two or more haptic modules 153 according to the configuration of the mobile terminal 100.

The light output unit 154 outputs a signal for notifying the occurrence of an event using the light of the light source of the mobile terminal 100. Examples of events that occur in the mobile terminal 100 may include message reception, call signal reception, missed call, alarm, schedule notification, email reception, information reception through an application, and the like.

The signal output from the light output unit 154 is implemented as the mobile terminal emits light of a single color or a plurality of colors to the front or rear surface. The signal output may be terminated by the mobile terminal detecting the event confirmation of the user.

The interface unit 160 serves as a path for communication with all external devices connected to the mobile terminal 100. The interface unit 160 receives data from an external device or supplies power to each component in the mobile terminal 100 or transmits data in the mobile terminal 100 to an external device. For example, a port for connecting a device equipped with a wired / wireless headset port, an external charger port, a wired / wireless data port, a memory card port, an audio I / O port, a video I / O port, an earphone port, and the like may be included in the interface unit 160.

The identification module is a chip for storing various information for authenticating the use right of the mobile terminal 100 and includes a user identification module (UIM), a subscriber identity module (SIM) A universal subscriber identity module (USIM), and the like. Devices with identification modules (hereinafter referred to as "identification devices") can be manufactured in a smart card format. Accordingly, the identification device can be connected to the terminal 100 through the interface unit 160. [

The interface unit 160 may be a path through which power from the cradle is supplied to the mobile terminal 100 when the mobile terminal 100 is connected to an external cradle, And various command signals may be transmitted to the mobile terminal 100. The various command signals or the power source input from the cradle may be operated as a signal for recognizing that the mobile terminal 100 is correctly mounted on the cradle.

The memory 170 may store a program for the operation of the controller 180 and temporarily store input / output data (e.g., a phone book, a message, a still image, a moving picture, etc.). The memory 170 may store data on vibration and sound of various patterns outputted when a touch is input on the touch screen.

The memory 170 may be a flash memory type, a hard disk type, a solid state disk type, an SDD type (Silicon Disk Drive type), a multimedia card micro type ), Card type memory (e.g., SD or XD memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read memory, a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, and / or an optical disk. The mobile terminal 100 may operate in association with a web storage that performs the storage function of the memory 170 on the Internet.

Meanwhile, as described above, the control unit 180 controls the operations related to the application program and the general operation of the mobile terminal 100. [ For example, when the state of the mobile terminal meets a set condition, the control unit 180 can execute or release a lock state for restricting input of a user's control command to applications.

In addition, the control unit 180 performs control and processing related to voice communication, data communication, video call, or the like, or performs pattern recognition processing to recognize handwriting input or drawing input performed on the touch screen as characters and images, respectively . Further, the controller 180 may control any one or a plurality of the above-described components in order to implement various embodiments described below on the mobile terminal 100 according to the present invention.

The power supply unit 190 receives external power and internal power under the control of the controller 180 and supplies power necessary for operation of the respective components. The power supply unit 190 includes a battery, the battery may be an internal battery configured to be chargeable, and may be detachably coupled to the terminal body for charging or the like.

In addition, the power supply unit 190 may include a connection port, and the connection port may be configured as an example of an interface 160 through which an external charger for supplying power for charging the battery is electrically connected.

As another example, the power supply unit 190 may be configured to charge the battery in a wireless manner without using the connection port. In this case, the power supply unit 190 may use at least one of an inductive coupling method based on a magnetic induction phenomenon from an external wireless power transmission apparatus and a magnetic resonance coupling method based on an electromagnetic resonance phenomenon Power can be delivered.

In the following, various embodiments may be embodied in a recording medium readable by a computer or similar device using, for example, software, hardware, or a combination thereof.

Referring to FIGS. 1B and 1C, the disclosed mobile terminal 100 includes a bar-shaped terminal body. However, the present invention is not limited thereto and can be applied to various structures such as a folder type, a flip type, a slide type, a swing type, and a swivel type in which a watch type, a clip type, a glass type or two or more bodies are relatively movably coupled . A description of a particular type of mobile terminal, although relevant to a particular type of mobile terminal, is generally applicable to other types of mobile terminals.

Here, the terminal body can be understood as a concept of referring to the mobile terminal 100 as at least one aggregate.

The mobile terminal 100 includes a case (for example, a frame, a housing, a cover, and the like) that forms an appearance. As shown, the mobile terminal 100 may include a front case 101 and a rear case 102. Various electronic components are disposed in the inner space formed by the combination of the front case 101 and the rear case 102. At least one middle case may be additionally disposed between the front case 101 and the rear case 102.

A display unit 151 is disposed on a front surface of the terminal body to output information. The window 151a of the display unit 151 may be mounted on the front case 101 to form a front surface of the terminal body together with the front case 101. [

In some cases, electronic components may also be mounted on the rear case 102. Electronic parts that can be mounted on the rear case 102 include detachable batteries, an identification module, a memory card, and the like. In this case, a rear cover 103 for covering the mounted electronic components can be detachably coupled to the rear case 102. Therefore, when the rear cover 103 is separated from the rear case 102, the electronic parts mounted on the rear case 102 are exposed to the outside.

As shown, when the rear cover 103 is coupled to the rear case 102, a side portion of the rear case 102 can be exposed. In some cases, the rear case 102 may be completely covered by the rear cover 103 during the engagement. Meanwhile, the rear cover 103 may be provided with an opening for exposing the camera 121b and the sound output unit 152b to the outside.

These cases 101, 102, and 103 may be formed by injection molding of synthetic resin or may be formed of metal such as stainless steel (STS), aluminum (Al), titanium (Ti), or the like.

The mobile terminal 100 may be configured such that one case provides the internal space, unlike the above example in which a plurality of cases provide an internal space for accommodating various electronic components. In this case, a universal mobile terminal 100 in which a synthetic resin or metal is connected from the side to the rear side can be realized.

Meanwhile, the mobile terminal 100 may include a waterproof unit (not shown) for preventing water from penetrating into the terminal body. For example, the waterproof portion is provided between the window 151a and the front case 101, between the front case 101 and the rear case 102, or between the rear case 102 and the rear cover 103, And a waterproof member for sealing the inside space of the oven.

The mobile terminal 100 is provided with a display unit 151, first and second sound output units 152a and 152b, a proximity sensor 141, an illuminance sensor 142, a light output unit 154, Cameras 121a and 121b, first and second operation units 123a and 123b, a microphone 122, an interface unit 160, and the like.

1B and 1C, a display unit 151, a first sound output unit 152a, a proximity sensor 141, an illuminance sensor 142, an optical output unit (not shown) A second operation unit 123b, a microphone 122 and an interface unit 160 are disposed on a side surface of the terminal body, And a mobile terminal 100 having a second sound output unit 152b and a second camera 121b disposed on a rear surface thereof.

However, these configurations are not limited to this arrangement. These configurations may be excluded or replaced as needed, or placed on different planes. For example, the first operation unit 123a may not be provided on the front surface of the terminal body, and the second sound output unit 152b may be provided on the side surface of the terminal body rather than the rear surface of the terminal body.

The display unit 151 displays (outputs) information processed by the mobile terminal 100. For example, the display unit 151 may display execution screen information of an application program driven by the mobile terminal 100 or UI (User Interface) and GUI (Graphic User Interface) information according to the execution screen information .

The display unit 151 may be a liquid crystal display (LCD), a thin film transistor-liquid crystal display (TFT LCD), an organic light-emitting diode (OLED), a flexible display display, a 3D display, and an e-ink display.

In addition, the display unit 151 may exist in two or more depending on the embodiment of the mobile terminal 100. In this case, the mobile terminal 100 may be provided with a plurality of display portions spaced apart from each other or disposed integrally with one another, or may be disposed on different surfaces, respectively.

The display unit 151 may include a touch sensor that senses a touch with respect to the display unit 151 so that a control command can be received by a touch method. When a touch is made to the display unit 151, the touch sensor senses the touch, and the control unit 180 generates a control command corresponding to the touch based on the touch. The content input by the touch method may be a letter or a number, an instruction in various modes, a menu item which can be designated, and the like.

The touch sensor may be a film having a touch pattern and disposed between the window 151a and a display (not shown) on the rear surface of the window 151a, or may be a metal wire . Alternatively, the touch sensor may be formed integrally with the display. For example, the touch sensor may be disposed on a substrate of the display or inside the display.

In this way, the display unit 151 can form a touch screen together with the touch sensor. In this case, the touch screen can function as a user input unit 123 (see FIG. 1A). In some cases, the touch screen may replace at least some functions of the first operation unit 123a.

The first sound output unit 152a may be implemented as a receiver for transmitting a call sound to a user's ear and the second sound output unit 152b may be implemented as a loud speaker for outputting various alarm sounds or multimedia playback sounds. ). ≪ / RTI >

The window 151a of the display unit 151 may be provided with an acoustic hole for emitting the sound generated from the first acoustic output unit 152a. However, the present invention is not limited to this, and the sound may be configured to be emitted along an assembly gap (for example, a gap between the window 151a and the front case 101) between the structures. In this case, the appearance of the mobile terminal 100 can be made more simple because the hole formed independently for the apparent acoustic output is hidden or hidden.

The optical output unit 154 is configured to output light for notifying the occurrence of an event. Examples of the event include a message reception, a call signal reception, a missed call, an alarm, a schedule notification, an email reception, and reception of information through an application. The control unit 180 may control the light output unit 154 to terminate the light output when the event confirmation of the user is detected.

The first camera 121a processes an image frame of a still image or a moving image obtained by the image sensor in the photographing mode or the video communication mode. The processed image frame can be displayed on the display unit 151 and can be stored in the memory 170. [

The first and second operation units 123a and 123b may be collectively referred to as a manipulating portion as an example of a user input unit 123 operated to receive a command for controlling the operation of the mobile terminal 100 have. The first and second operation units 123a and 123b can be employed in any manner as long as the user is in a tactile manner such as touch, push, scroll, or the like. In addition, the first and second operation units 123a and 123b may be employed in a manner that the user operates the apparatus without touching the user through a proximity touch, a hovering touch, or the like.

In this figure, the first operation unit 123a is a touch key, but the present invention is not limited thereto. For example, the first operation unit 123a may be a mechanical key, or a combination of a touch key and a touch key.

The contents input by the first and second operation units 123a and 123b can be variously set. For example, the first operation unit 123a receives a command such as a menu, a home key, a cancellation, a search, and the like, and the second operation unit 123b receives a command from the first or second sound output unit 152a or 152b The size of the sound, and the change of the display unit 151 to the touch recognition mode.

On the other hand, a rear input unit (not shown) may be provided on the rear surface of the terminal body as another example of the user input unit 123. The rear input unit is operated to receive a command for controlling the operation of the mobile terminal 100, and input contents may be variously set. For example, commands such as power on / off, start, end, scrolling, and the like, the size adjustment of the sound output from the first and second sound output units 152a and 152b, And the like can be inputted. The rear input unit may be implemented as a touch input, a push input, or a combination thereof.

The rear input unit may be disposed so as to overlap with the front display unit 151 in the thickness direction of the terminal body. For example, the rear input unit may be disposed at the rear upper end of the terminal body such that when the user holds the terminal body with one hand, the rear input unit can be easily operated using the index finger. However, the present invention is not limited thereto, and the position of the rear input unit may be changed.

When a rear input unit is provided on the rear surface of the terminal body, a new type of user interface using the rear input unit can be realized. When the first operation unit 123a is not disposed on the front surface of the terminal body in place of at least a part of the functions of the first operation unit 123a provided on the front surface of the terminal body, The display unit 151 may be configured as a larger screen.

Meanwhile, the mobile terminal 100 may be provided with a fingerprint recognition sensor for recognizing the fingerprint of the user, and the controller 180 may use the fingerprint information sensed through the fingerprint recognition sensor as authentication means. The fingerprint recognition sensor may be embedded in the display unit 151 or the user input unit 123.

The microphone 122 is configured to receive the user's voice, other sounds, and the like. The microphone 122 may be provided at a plurality of locations to receive stereophonic sound.

The interface unit 160 is a path through which the mobile terminal 100 can be connected to an external device. For example, the interface unit 160 may include a connection terminal for connection with another device (for example, an earphone or an external speaker), a port for short-range communication (for example, an infrared port (IrDA Port), a Bluetooth port A wireless LAN port, or the like), or a power supply terminal for supplying power to the mobile terminal 100. The interface unit 160 may be implemented as a socket for receiving an external card such as a SIM (Subscriber Identification Module) or a UIM (User Identity Module) or a memory card for storing information.

And a second camera 121b may be disposed on a rear surface of the terminal body. In this case, the second camera 121b has a photographing direction which is substantially opposite to that of the first camera 121a.

The second camera 121b may include a plurality of lenses arranged along at least one line. The plurality of lenses may be arranged in a matrix form. Such a camera can be named an array camera. When the second camera 121b is configured as an array camera, images can be taken in various ways using a plurality of lenses, and a better quality image can be obtained.

The flash 124 may be disposed adjacent to the second camera 121b. The flash 124 shines light toward the subject when the subject is photographed by the second camera 121b.

And a second sound output unit 152b may be additionally disposed in the terminal body. The second sound output unit 152b may implement a stereo function together with the first sound output unit 152a and may be used for implementing a speakerphone mode in a call.

The terminal body may be provided with at least one antenna for wireless communication. The antenna may be embedded in the terminal body or formed in the case. For example, an antenna constituting a part of the broadcast receiving module 111 (see FIG. 1A) may be configured to be able to be drawn out from the terminal body. Alternatively, the antenna may be formed in a film type and attached to the inner surface of the rear cover 103, or a case including a conductive material may be configured to function as an antenna.

The terminal body is provided with a power supply unit 190 (see FIG. 1A) for supplying power to the mobile terminal 100. The power supply unit 190 may include a battery 191 built in the terminal body or detachable from the outside of the terminal body.

The battery 191 may be configured to receive power through a power cable connected to the interface unit 160. In addition, the battery 191 may be configured to be wirelessly chargeable through a wireless charger. The wireless charging may be implemented by a magnetic induction method or a resonance method (magnetic resonance method).

The rear cover 103 is configured to be coupled to the rear case 102 so as to cover the battery 191 to restrict the release of the battery 191 and to protect the battery 191 from external impact and foreign matter . When the battery 191 is detachably attached to the terminal body, the rear cover 103 may be detachably coupled to the rear case 102.

The mobile terminal 100 may be provided with an accessory that protects the appearance or supports or expands the function of the mobile terminal 100. [ One example of such an accessory is a cover or pouch that covers or accommodates at least one side of the mobile terminal 100. [ The cover or pouch may be configured to interlock with the display unit 151 to expand the function of the mobile terminal 100. Another example of an accessory is a touch pen for supplementing or extending a touch input to the touch screen.

Meanwhile, the mobile terminal 100 related to the present invention may include a camera module capable of realizing a three-dimensional shape of a subject.

In other words, the mobile terminal 100 related to the present invention can extract depth information of an image received through the camera 121 (see FIG. 1A). The depth information of the extracted image is reflected on the 2D image received through the camera, so that a 3D image can be realized.

The image received through the camera may be referred to as a preview image. Specifically, the preview image refers to an image received through a camera in real time. The preview image can be changed based on whether the mobile terminal equipped with the camera 121 moves by an external force or a subject moves.

The depth information may be named as a depth value, a depth information, a depth value, or the like. The depth information may mean a distance (or a distance value) between a subject corresponding to a pixel included in the image and a mobile terminal (more specifically, a camera).

For example, when the distance between the object corresponding to a specific pixel of the image and the mobile terminal is n, the depth information of the specific pixel may be a specific value corresponding to n. The specific value corresponding to n may be n or a value converted by a predetermined algorithm.

In addition, when the coordinates of the image are set as the x-axis and the y-axis perpendicular to the x-axis, the depth information may be a value corresponding to the z-axis perpendicular to the x-axis and the y-axis, respectively. The absolute value of the depth information may increase as the distance between the subject and the mobile terminal increases.

Such depth information can be utilized in various fields. For example, the depth information may be used to photograph / create a stereoscopic image, or used to generate 3D printing data used in a 3D printer, or may be used to generate movement information of an object (a subject) And can be used to detect the presence of a foreign substance.

The mobile terminal according to the present invention can extract depth information of an image received through a camera in various ways. For example, the control unit 180 (see FIG. 1A) may include a stereoscopic method of extracting depth information using at least two cameras, a method of extracting depth information using light emitting elements arranged to form a predetermined pattern And a time-of-flight (ToF) method in which depth information is extracted based on a time when the light emitted from the light emitting device is reflected and returned. Alternatively, depth information may be extracted through a combination of these methods .

Hereinafter, extraction of depth information using a stereoscopic method will be described.

The stereoscopic method is a method of imitating the principle that a human perceives visually and implements the image.

More specifically, in the stereoscopic method, two cameras different from each other are arranged with a baseline so as to input an image through a left eye and a right eye in the case of a person, so that different cameras having disparity of binocular And receives two images. Hereinafter, the two different images are referred to as first and second images.

That is, the same subject image is formed at different positions in the first and second images, respectively, and the disparity on the subject varies depending on the distance between the camera and the subject.

In other words, as the distance of the subject from the camera increases, the disparity on the subject decreases, and as the distance of the subject from the camera decreases, the disparity on the subject increases.

That is, in the stereoscopic method, the depth information on the object can be extracted using the disparity detected on the object.

Although the stereoscopic method has been described in terms of a subject image unit, disparity is detected in pixel units, depth information of pixels is extracted, and a three-dimensional shape on the subject can be realized by using the extracted depth information.

In order to realize a three-dimensional image on a subject of better quality, it is necessary to accurately extract the depth information on the subject. In order to accurately extract the depth information on the subject, it is necessary to accurately detect the disparity on the subject from the first and second images. In order to accurately detect the disparity on the subject, it is necessary to grasp the image distortion due to the hardware tolerance generated when assembling or using the two cameras, and to correct the distorted image.

In the camera module or the mobile terminal according to the present invention, an illumination unit capable of illuminating light corresponding to a preset pattern is used to grasp the image distortion due to the tolerance generated when assembling or using two cameras.

Hereinafter, the overall structure of the camera module will be examined, and the details of the illumination section will be specifically discussed.

2 is a conceptual diagram of a mobile terminal 100 having a camera module 200 related to the present invention.

2, a mobile terminal 100 according to an embodiment of the present invention includes a front case 101, a rear case 102, and a rear case 102 provided in a space formed between the front case 101 and the rear case 102 Camera module 200 as shown in FIG.

The illumination unit 210 may be disposed on one side of the camera module 200.

The illumination unit 210 may be formed to emit light having a wavelength in a specific range to the outside. For example, the illumination unit 210 may be configured to emit light having a wavelength in a visible light region or an infrared region to the outside.

An illumination hole 210a may be formed at a portion of the rear case 102 facing the illumination unit 210 so that the light emitted from the illumination unit 210 can be directed to the outside.

On one side of the camera module 200, incident surfaces of the first and second cameras 221 and 222 spaced apart from each other may be disposed. More specifically, the first and second cameras 221 and 222 may be spaced apart from each other by a predetermined gap b.

A portion of the rear case 102 facing the first and second cameras 221 and 222 is provided with an incident hole (not shown) so that light can be incident on the first and second cameras 221 and 222 from outside. 221a, and 222b may be formed.

Here, the photographing directions of the first and second cameras 221 and 222 may coincide with the illuminating direction of the illuminating unit 210. Therefore, the light emitted from the illumination unit 210 can be photographed as an image through the first and second cameras 221 and 222. This will be discussed in more detail later with reference to FIG.

2, the illumination unit 210 is disposed on one side of the second camera 222, but the present invention is not limited thereto. That is, the illumination unit 210 may be disposed between the first and second cameras 221 and 222.

2, a camera module 200 integrally formed with the camera module 200 is provided inside the mobile terminal 100, but the present invention is not limited thereto.

That is, the illumination unit 210, the first and second cameras 221 and 222 may be separately formed and mounted to the front case 101 or the rear case 102, respectively.

2, the camera module 200 is provided inside the mobile terminal 100, but the present invention is not limited thereto. That is, the camera module 200 may be separately formed and used regardless of the mobile terminal 100.

Although not shown, the camera module 200 may include an optical system, an image sensor, and the like.

The optical system means a system of optical components in which a reflector, a lens, and the like are appropriately arranged in order to realize an image of an object by using reflection or refraction of light.

In addition, the image sensor images the incident light through the incident surfaces of the first and second cameras 221 and 222. More specifically, the image sensor may be implemented as a semiconductor chip mounted on a sensor substrate. The semiconductor chip may be implemented by a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) device that converts light into electric charges to obtain an image.

As described above, the light emitted from the illumination unit 210 can be photographed through the first and second cameras 221 and 222 as an image.

At least one of the first and second cameras (more precisely, the image sensors provided in the camera) 221 and 222 may be a visible light region, To sense the light of the light source.

Alternatively, when the illumination unit 210 emits light in the infrared region, at least one of the first and second cameras 221 and 222 may be configured to detect light in the infrared region.

Meanwhile, the light emitted from the illumination unit 210 related to the present invention may correspond to a predetermined pattern. Hereinafter, the illumination unit 210 will be described in more detail with reference to FIG.

3 is a conceptual diagram for explaining an illumination unit 210 related to the present invention.

Referring to FIG. 3, the light emitted from the illumination unit 210 may be illuminated to the outside in the form of a plurality of spot lights SP.

At this time, the externally illuminated light may be photographed through at least one of the first and second cameras 221 and 222.

The image photographed by the camera may include a pattern corresponding to the plurality of spot lights SP. That is, the image received through the camera may include a predetermined pattern. A detailed description related to this will be described in detail later with reference to FIG. 5B.

The predetermined pattern may be determined (set) by the user, or may be predetermined when producing the product of the mobile terminal. Also, the predetermined pattern may be changed by a user's request or under the control of the controller 180. More specifically, although not shown, the predetermined pattern may be determined in advance by the arrangement of the plurality of light emitting elements included in the illumination unit 210. [

Meanwhile, in the present invention, the illumination unit 210 may be configured to illuminate light on a specific plane 310.

For example, referring to FIG. 3, the specific plane 310 refers to a flat, infinite extension (e.g., horizontal) that is disposed in a space corresponding to an image received through at least one of the first and second cameras 221 and 222 And the like.

More specifically, the plane may be a surface (for example, a wall surface) or the like which is placed substantially perpendicular to the traveling direction of the light on the ground.

As described above, the image of light illuminated on the specific plane through at least one of the first and second cameras 221 and 222 related to the present invention may include a predetermined pattern.

Further, the control unit 180 may determine the distortion of the image through the coordinate information of the predetermined pattern included in the image, and may correct the distortion.

Hereinafter, a method of correcting an image according to an exemplary embodiment of the present invention will be described in detail with reference to the accompanying drawings.

FIG. 4 is a flow chart representing a control method of the present invention, and FIGS. 5A to 5C are conceptual diagrams for explaining the control method shown in FIG.

Referring to FIG. 4, in the present invention, light may be illuminated on a specific plane through the illumination unit 210 (S410).

In addition, the first and second images including a predetermined pattern corresponding to the light illuminated on the specific plane may be received through the first and second cameras 221 and 222 (S420) .

Here, after step S410, step S420 may be performed, or the two steps may be performed simultaneously. Alternatively, after step S420 is performed first, step S410 may be performed.

For example, when the image received through at least one of the first and second cameras 221 and 222 includes a part recognized as a plane, the control unit 180 controls the illumination unit (210).

More specifically, the control unit 180 can recognize, as a specific plane, a space corresponding to a portion of the first and second images satisfying predetermined conditions among spaces corresponding to the first and second images. The predetermined conditions will be described later in more detail with reference to Fig.

Thereafter, at least one of the first and second images may be corrected using the first and second coordinates of the predetermined pattern included in the first and second images (S430).

More specifically, in step S430, the controller 180 may generate a look-up table (LUT) for performing correction on at least a portion of the first and second images.

 That is, the controller 180 may perform correction for at least one of the first and second images using the generated lookup table.

Hereinafter, a detailed procedure for generating the lookup table will be described with reference to FIG. 5A.

Referring to FIG. 5A, the controller 180 calculates the first and second coordinates of a predetermined pattern in the first and second images 510 and 520.

In the first and second images 510 and 520, a plurality of predetermined patterns may be included. However, for convenience of description, the first and second images 510 and 520 may include one pattern As an example.

More specifically, at least a part of the first and second images 510 and 520 may include the same pattern since the same light illuminated on the specific plane is photographed.

At this time, the coordinates of the same pattern may be different in the first and second images 510 and 520.

In other words, if the coordinates of the pattern are referred to as a first coordinate in the first image 510 and the coordinate of the pattern in the second image 520 is referred to as a second coordinate, the first and second coordinates may have different values Lt; / RTI >

Referring to FIGS. 5A and 5B, the first coordinate 511 may be (x1, y1) and the second coordinate 521 may be (x2, y2).

The reason that the first and second coordinates 511 and 521 have different values is that the first and second cameras 221 and 222, which photograph the first and second images 510 and 520, And may be due to the assembly tolerances of the first and second cameras 221 and 222. In addition,

In other words, the current difference values of the first and second coordinates 510, 520 are generated in combination due to the cause associated with the baseline and the cause associated with the assembly tolerance.

Referring to FIGS. 5A and 5B, the current difference value of the first and second coordinates 511 and 521 may be (x1-x2, y1-y2). More specifically, the current difference value may be a value obtained by subtracting the second coordinate (x2, y2) from the first coordinate (x1, y1).

In the present invention, an error difference value is generated from the current difference values of the first and second coordinates based on the reference difference values of the first and second coordinates 511 and 521, and based on the error difference value, You can create a table.

Here, the reference difference value is a difference value between the first and second coordinates necessarily generated by disposing the first and second cameras 221 and 222 apart from each other by a base line.

That is, the reference difference value may be a difference value between the first and second coordinates in an ideal situation in which the assembly tolerances of the first and second cameras 221 and 222 do not occur.

Referring to FIGS. 5A and 5B, the reference difference value of the first and second coordinates 511 and 521 may be (-b, 0). Here, the b value may be a value predetermined by the base line.

More specifically, it may be a value obtained by subtracting the coordinate (x1 + b, y1) of the ideal pattern of the second image at the first coordinate (x1, y1). On the other hand, the coordinate (x1 + b, y1) of the ideal pattern can mean the coordinate value of the pattern in a situation where the assembly tolerance of the first and second cameras 221 and 222 does not occur.

As described above, the control unit 180 may generate an error difference value by comparing the current difference value of the first and second coordinates 511 and 521 with the reference difference value.

For example, the error difference value may be (x1-x2 + b, y1-y2) days obtained by subtracting the reference difference value (-b, 0) from the current difference value (x1-x2, y1- .

The controller 180 may generate a lookup table based on the generated error difference value.

Here, the lookup table may be data having the same size (for example, resolution) as the first and second images.

That is, the lookup table can also be implemented as a two-dimensional image. More specifically, if the first and second images are two-dimensional images of 1024 * 768 size, the look-up table may be a two-dimensional image of 1024 * 768 size.

That is, the lookup table may include a plurality of pixels. Furthermore, the pixel value of the look-up table may be a value of either the x coordinate or the y coordinate of the error difference value.

More specifically, the lookup table may include first and second lookup tables 531 and 532.

Wherein at least some of the pixels of the first lookup table 531 have an x coordinate of the error difference value as a pixel value and at least a portion of the pixels of the second lookup table 532 have a y coordinate of the error difference value As a pixel value.

Referring to FIG. 5 (c), in the first lookup table 531, a position of a position corresponding to a coordinate of a pattern of any one of the first and second images (reference to the second image in the drawing) The pixels may have a pixel value of 'x1-x2 + b' which is the x-coordinate of the error difference value.

Referring to FIG. 5 (d), in the second lookup table 532, pixels at positions corresponding to the coordinates of any one of the patterns of the first and second images are y-coordinates of the error difference value 'y1-y2' can be a pixel value.

In the figure, the pixels having the error difference value as pixel values in the first and second lookup tables 531 and 532 are pixels at positions corresponding to the second coordinates, but the present invention is not limited thereto Do not.

That is, in the first and second lookup tables 531 and 532, the pixels having the error difference value as the pixel value may be pixels corresponding to the first coordinate.

In the first and second lookup tables 531 and 532, pixels at positions other than positions corresponding to the pattern may have a pixel value of 'null' or '0'.

Up to this point, it has been described that the control unit 180 generates the lookup table on the basis of one pattern, but the present invention is not limited to this.

That is, when a plurality of patterns are included in the first and second images 510 and 520, the first and second coordinates are calculated for the plurality of patterns, respectively, and the series of lookup tables described above is generated Step can proceed.

For example, referring to FIG. 5B, when a plurality of patterns are included in the first and second images, the controller 180 may calculate coordinates of the plurality of patterns in one of the first and second images, Up table 533 having different pixel values at the corresponding positions.

That is, the pixels P1 at positions corresponding to the first pattern in the lookup table 533 have the pixel value A, and the pixels P2 at the positions corresponding to the second pattern can have the pixel value B.

On the other hand, the controller 180 may assign appropriate pixel values to pixels not corresponding to any pattern in the lookup table 533 by linear interpolation using pixel values of neighboring pixels.

Accordingly, most of the pixels of the lookup table 533 may have pixel values similar to surrounding pixels.

The control unit 180 may correct at least one of the first and second images using the lookup table when the lookup table is generated by the above-described method.

For example, referring again to FIG. 5A, the control unit 180 may apply the first and second lookup tables 531 and 532 to the second image 520 simultaneously or sequentially.

For example, when the first lookup table 531 is applied to the second image 520, the pattern of the second image 520 is compared with the pixel values of the first lookup table 531 (for example, x1- x2 + b) on the x-axis.

Likewise, when the second lookup table 532 is applied to the second image 520, the pattern of the second image 520 is a pixel value (e.g., y1 + y2) of the second lookup table 532, It is possible to move the position on the y-axis as much as possible.

When the first and second lookup tables 531 and 532 are applied to the second image 520 as described above, the pattern is finally transformed from the second coordinate 521 to the ideal coordinates 521 ' Can be moved (d1).

That is, the lookup table is applied to any one of the first and second images so that the first and second images can be corrected.

Referring again to FIG. 4, after at least one of the first and second images is corrected, a step of generating a three-dimensional image using the at least one corrected first and second images may be performed (S440).

Referring to FIG. 5C, at least one of the first and second images 540 and 550 may be a state in which a lookup table generated by the above-described process is applied.

In this case, the depth information of the subject can be extracted based on the disparity between the two images of the first and second images 540 and 550.

Further, the controller 180 may generate the three-dimensional image 560 using the depth information of the extracted subject. The generated three-dimensional image 560 may be output through the display unit 151.

Up to now, it has been described in detail how a three-dimensional image is generated by using at least one of the first and second images and at least one of the corrected first and second images through the coordinate information of the pattern.

In the present invention, the control unit 180 can recognize, as a specific plane, a space corresponding to a part of the first and second images satisfying predetermined conditions among spaces corresponding to the first and second images.

Further, the control unit 180 may control the illumination unit 210 to illuminate the specific plane. Hereinafter, this will be described in more detail with reference to the drawings.

FIG. 6A is a flowchart for explaining a control method in which a specific plane is recognized and light is illuminated on the specific plane, and FIGS. 6B to 6D are conceptual diagrams for explaining the control method of FIG. 6A.

Referring to FIG. 6A, the first and second images may be received through the first and second cameras 221 and 222 (S610). Here, at least one of the received first and second images may be output through the display unit 151.

In operation S620, a space corresponding to a portion of the first and second images satisfying predetermined conditions may be recognized as a specific plane among the spaces corresponding to the first and second images.

Here, the predetermined condition may be a predetermined condition by a predetermined plane recognition algorithm.

The planar recognition algorithm may be an algorithm for extracting a portion corresponding to a plane in an image using contour information of objects in the image, concavities in the object, characteristics of convex or discontinuous points, and the like.

More specifically, the planar recognition algorithm first extracts information on an outline of objects in an image, and separates the objects based on the outline based on the extracted information.

Then, the concave point, the convexity and the discontinuity point are extracted in the object, and if the number of the concave, convex and discontinuity points extracted is equal to or less than the preset number, the object can be recognized as corresponding to the plane .

Alternatively, the planar recognition algorithm may be an algorithm that uses a frame by frame technique and an edge detection technique.

According to the planar recognition algorithm of this example, a moving image having a frame number per second higher than a predetermined number can be photographed through the first and second cameras 221 and 222. [ Further, when the moving image is photographed, light can be illuminated by the illuminating unit 210 in the photographing space of the moving image.

At this time, the light illuminated by the illumination unit 210 can be controlled to be illuminated with a number of about half of the number of frames per second. That is, as the power of the illumination unit 210 is controlled to be turned on or off, the light illuminated by the illumination unit 210 may be controlled to blink.

For example, when the frame rate of the moving image is 60 frames per second (FPS), an image of about 30 frames photographed in a state where the power of the illumination unit 210 is ON includes a pattern corresponding to the illuminated light can do. In addition, the image of the remaining approximately 30 frames photographed in a state where the power of the illumination unit 210 is off may not include a pattern corresponding to the illuminated light.

The controller 180 controls the operation of the illumination unit 210 so that the image photographed when the power of the illumination unit 210 is ON includes the pattern corresponding to the illuminated light and the image captured when the illumination unit 210 is in the OFF state edge, it is possible to recognize a photographing space corresponding to a part of the image including the pattern as a plane.

Referring to FIG. 6A again, after step S620, a step of illuminating light on the specific plane may be performed through the illumination unit 210 (S630).

At this time, when the specific plane and a space recognized as a non-specific plane coexist in a space corresponding to the first and second images, the controller 180 controls the light to be illuminated only in the specific plane, The illumination unit 210 can be controlled.

Referring to FIGS. 6A and 6B, when at least one of the first and second images 610 is received, the controller 180 sets a predetermined condition in the received image 610 A satisfactory part 611 can be recognized as a specific plane.

In addition, the control unit 180 can recognize that another portion 612 that does not satisfy the predetermined condition is not a specific plane in the received image 610. [

For example, an image object corresponding to a subject such as a person or an object may exist in another portion 612 that does not satisfy the predetermined condition.

Referring to (c) of FIG. 6B, the controller 180 may control the illumination unit 210 so that light is illuminated on the specific plane. At this time, the received image 610 may include a pattern P corresponding to the illuminated light.

Referring back to FIG. 6A, in operation S640, a lookup table for the received image 610 may be generated using a predetermined pattern illuminated on the specific plane after operation S630.

The specific procedure for generating the lookup table has already been described above with reference to FIGS. 4, 5A to 5C.

As described above, the lookup table may be the same as the size of the received image 610. At this time, the pixels of the region corresponding to the portion 611 satisfying the preset condition of the lookup table may have an appropriate pixel value, and the region corresponding to the other portion 612 that does not satisfy the preset condition May have pixel values of zero or null values.

That is, the lookup table thus generated has pixels corresponding to the portion 611 having a pixel value capable of image correction, and pixels corresponding to the other portion 612 have 0 or It has a pixel value of null value. Accordingly, the control unit 180 may not be able to perform correction for the entire received image 610 using the lookup table.

In order to compensate for this, the controller 180 stores in the memory a look-up table having a pixel value that allows pixels corresponding to the portion 611 to perform image correction, as a first look-up table, May store a look-up table having pixel values that enable image correction of pixels corresponding to the first lookup table into a memory as a second lookup table, and then merge the first and second lookup tables to generate a final lookup table .

Hereinafter, a control method of generating the final look-up table will be described in more detail with reference to FIGS. 6C to 6D. FIG.

6C, the controller 180 receives a third image 630 that is different from the first and second images and in which the region 632 corresponding to the different portion 612 is recognized as a specific plane , The illumination unit 210 can be controlled so that light is illuminated on the specific plane.

Here, the third image may be an image received from at least one of the first and second cameras at a time different from the time when the first and second images are received.

Thereafter, as described above, the second lookup table for the received image 630 can be generated using a predetermined pattern illuminated on the specific plane. The generated second lookup table may be stored in a memory.

Then, the control unit 180 may combine the second lookup table with the first lookup table to generate a final lookup table.

6D, a portion 651 of the final lookup table 650 has the same pixel value as the portion 631 of the first lookup table and the other portion 652 has the same pixel value as the other portion 652 of the second lookup table 650 And may have the same pixel values as portion 632.

As such, the final lookup table 650 generated may have pixel values for image correction as a whole. Accordingly, the control unit 180 can perform the correction on the entire received image by applying the final look-up table 650.

According to this method, even if a user does not separately execute a command related to light illumination or an instruction related to image correction, if a portion recognized as a plane exists in the received image, a lookup table for the part is generated . The lookup table may be fragmented, and a final lookup table may be created.

Further, the generated final lookup table is applied to at least one of the received first and second images, so that correction for at least one of the first and second images can be performed without a separate input of the user.

The final look-up table 650 may be stored in memory.

Further, each time the first and second images for three-dimensional image generation are received through the first and second cameras 221 and 222, at least one of the received first and second images is subjected to the final look- By automatically applying the table, correction for at least one of the first and second images can be performed.

Further, the final lookup table 650 may be updated every predetermined period.

In other words, every time the first and second images for three-dimensional image generation are received through the first and second cameras 221 and 222, at least a part of the space corresponding to the first and second images is specified In the case of a plane, light is illuminated on the specific plane, so that a final look-up table can be generated again along the above-described series of processes.

That is, since the final lookup table is regenerated periodically, image distortion due to the assembly tolerance can be effectively corrected even if the assembly tolerance of the camera module occurs after the first and second images are corrected.

Referring back to FIG. 6A, after step S640, at least one of the first and second images is corrected using the generated lookup table, and the first and second images, A three-dimensional image can be generated (S650).

A specific method of generating a three-dimensional image using the first and second images in this step is described above with reference to FIG. 4, but will not be described herein.

On the other hand, in the present invention, as described above, the predetermined pattern may be a plurality of patterns.

The controller 180 related to the present invention can calculate the first and second coordinates of each of the patterns by matching the respective patterns in the first and second images.

Hereinafter, with reference to the drawings, a method of matching each pattern in the first and second images will be described in detail.

FIG. 7A is a flowchart for explaining a control method for matching patterns in first and second images related to the present invention. FIG. FIG. 7B is a conceptual diagram for explaining the control method of FIG. 7A.

Referring to FIG. 7A, the first and second images 710 and 720 including a plurality of patterns P may be received (S710).

Thereafter, a step of sequentially matching the patterns from the central areas 711 and 712 to the outer areas of the first and second images 710 and 720 may be performed (S720).

More specifically, each pattern may be sequentially matched along a predetermined direction from the central areas 711 and 712 of the first and second images 710 and 720 to the outer area.

The predetermined direction may be a radial direction or a swirling direction. For example, referring to FIG. 7B, the predetermined direction may be a swirling direction 712.

Meanwhile, since the central regions 711 and 712 of the first and second images are less distorted due to the lens included in the camera module, pattern matching can be performed more accurately.

Meanwhile, the sizes of the central regions 711 and 712 of the first and second images may be preset to have predetermined ratios of the sizes of the entire regions of the first and second images 710 and 720 .

Therefore, the pattern matching can be performed more accurately and quickly since the pattern matching is performed from the central area to the outer area in the first and second images.

Specifically, the matching of the patterns may be performed by comparing the codes of the patterns.

Here, the code of the pattern may mean a combination of pixels forming the pattern.

More specifically, the respective patterns may have different codes to be distinguished from each other.

For example, referring to FIG. 7B, pattern P1 and pattern P2 may have different codes. That is, different patterns may have different codes through combinations of pixels included in the pattern.

The control unit 180 can match each pattern based on the code of each pattern. In other words, the control unit 180 can match any one pattern of the first image to any pattern of the second image having the same code as the pattern.

Here, the controller 180 compares the pixel values of the pixels included in the respective patterns in order to compare the codes of the patterns of the first image and the second image.

The predetermined pattern P1 may be a set of a plurality of pixels. In the drawing, a pattern P1 consisting of 25 pixels is shown, but the number of pixels is not limited thereto.

Each of the pixels A may have either a first or a second pixel value at random. For example, the first or second pixel value may be a value of 0 or 1. In the drawing, a pixel having a pixel value of 0 is denoted by A, and a pixel having a pixel value of 1 is denoted by B.

More specifically, when comparing the pixel values of the pixels included in each pattern, the controller 180 may compare pixel values of neighboring pixels included in each pattern. For example, if an arbitrary pixel is selected, the pixel values of the eight pixels surrounding the selected pixel are compared with each other, so that it can be determined whether or not the same pattern is present.

7B, in order to match a pattern corresponding to one of the patterns P1 in the central region 711 of the first image 710 in the second image 720, Can be matched with any pattern in the central region 721 of the second image 720 based on the code of the pattern P1.

When one matching operation is completed, matching operations for other patterns may be sequentially performed along a predetermined direction (for example, vortex direction), as described above. Accordingly, the matching operation for all the patterns included in the first and second images can be efficiently performed.

When a matching operation for all the patterns is performed, calculation of the first and second coordinates for each of the patterns can be performed as described above. When the calculation of the first and second coordinates is performed, a lookup table for image correction may be formed based on the calculated first and second coordinates. Through the lookup table thus formed, at least one of the first and second images can be corrected. Dimensional stereoscopic image can be generated based on the first and second images in which at least one is corrected. The generated three-dimensional stereoscopic image may be output through the display unit of the mobile terminal.

The camera module and the mobile terminal according to an embodiment of the present invention may use the first and second coordinates of a predetermined pattern included in the first and second images to determine a tolerance generated when assembling the camera module, It is possible to easily correct the image distortion caused by the distortion. Accordingly, a 3D stereoscopic image with improved quality can be generated and provided.

The camera module and the mobile terminal according to an exemplary embodiment of the present invention may be configured such that when a user does not separately perform a command related to light illumination or an instruction related to image correction but a portion recognized as a plane exists in the received image, A lookup table for the part may be generated and the correction may be performed using the generated lookup table.

Thereby, it is possible to easily correct the image distortion that is generated or deepened during the use of the camera module or the mobile terminal according to the present invention by the user.

The present invention described above can be embodied as computer-readable codes on a medium on which a program is recorded. The computer readable medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of the computer readable medium include a hard disk drive (HDD), a solid state disk (SSD), a silicon disk drive (SDD), a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, , And may also be implemented in the form of a carrier wave (e.g., transmission over the Internet). Also, the computer may include a control unit 180 of the terminal. Accordingly, the above description should not be construed in a limiting sense in all respects and should be considered illustrative. The scope of the present invention should be determined by rational interpretation of the appended claims, and all changes within the scope of equivalents of the present invention are included in the scope of the present invention.

Claims (11)

An illumination unit configured to illuminate light on a specific plane;
First and second cameras arranged to be spaced apart from each other and configured to photograph first and second images respectively including predetermined patterns corresponding to light illuminated on the specific plane; And
Correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images, and correcting at least one of the first and second images using the first and second coordinates, A camera module comprising a controller for generating a three-dimensional image using an image.
The method according to claim 1,
Wherein,
Recognizing a space corresponding to a portion of the first and second images satisfying a predetermined condition among the spaces corresponding to the first and second images as the specific plane,
And controls the illumination unit to illuminate light on the specific plane.
3. The method of claim 2,
Wherein,
Generating a look-up table for performing a correction on a portion of the first and second images,
Wherein the lookup table is applied to at least one of the first and second images.
The method of claim 3,
Wherein,
Comparing the current difference value and the reference difference value of the first and second coordinates to generate an error difference value,
And generates the look-up table based on the generated error difference value.
The method of claim 3,
The control unit stores the generated lookup table in a memory,
When the third and fourth images different from the first and second images are captured through the first and second cameras, the lookup table is applied to at least one of the third and fourth images, 4 images, and generates a three-dimensional image using the at least one corrected third and fourth images.
6. The method of claim 5,
Wherein the lookup table stored in the memory is updated every predetermined period.
The method according to claim 1,
The predetermined pattern is a plurality of patterns,
Wherein,
And the first and second coordinates of the respective patterns are calculated by matching the respective patterns in the first and second images.
8. The method of claim 7,
Wherein,
And sequentially matching the patterns from the central area to the outer area of the first or second image.
8. The method of claim 7,
The predetermined pattern is a set of a plurality of pixels,
Each pixel having a first or second pixel value at random,
Wherein each of the patterns has a different code.
An illumination unit configured to illuminate light on a specific plane;
First and second cameras arranged to be spaced apart from each other and configured to photograph first and second images respectively including predetermined patterns corresponding to light illuminated on the specific plane; And
Correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images, and correcting at least one of the first and second images using the first and second coordinates, And a controller for generating a three-dimensional image using the image.
Illuminating the light onto a specific plane through the illumination unit;
Receiving first and second images through a first and a second camera, the first and second images including a predetermined pattern corresponding to light illuminated in the specific plane;
Correcting at least one of the first and second images using the first and second coordinates of the predetermined pattern included in the first and second images; And
And generating a three-dimensional image using the at least one corrected first and second images.
KR1020150166718A 2015-11-26 2015-11-26 Camera module and mobile terminal comprising the camera KR20170061536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020150166718A KR20170061536A (en) 2015-11-26 2015-11-26 Camera module and mobile terminal comprising the camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020150166718A KR20170061536A (en) 2015-11-26 2015-11-26 Camera module and mobile terminal comprising the camera

Publications (1)

Publication Number Publication Date
KR20170061536A true KR20170061536A (en) 2017-06-05

Family

ID=59223190

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150166718A KR20170061536A (en) 2015-11-26 2015-11-26 Camera module and mobile terminal comprising the camera

Country Status (1)

Country Link
KR (1) KR20170061536A (en)

Similar Documents

Publication Publication Date Title
US9942453B2 (en) Mobile terminal and method for controlling the same
US9667855B2 (en) Mobile terminal for focusing of image capturing and method for controlling the same
KR20160149068A (en) Mobile terminal and method for controlling the same
KR20160031886A (en) Mobile terminal and control method for the mobile terminal
KR20170005649A (en) 3d camera module and mobile terminal comprising the 3d camera module
KR101783773B1 (en) Dual camera module and mobile terminal comprising the camera
EP3439301B1 (en) Image processing apparatus and mobile terminal
KR20150136934A (en) Mobile terminal
KR20170130952A (en) Mobile terminal and method for controlling the same
KR20180048170A (en) Display apparatus
KR20160012009A (en) Mobile terminal and method for controlling the same
KR20170004706A (en) Iris identification apparatus of mobile terminal and controlling mrthod thereof
KR20160148401A (en) Mobile terminal
KR101529933B1 (en) Mobile terminal
KR20180028210A (en) Display device and method for controlling the same
KR20170083907A (en) Mobile terminal
KR20170024276A (en) Mobile terminal and method for controlling the same
KR20160096271A (en) Mobile terminal and method for controlling the same
EP4130649A1 (en) Mobile terminal and control method therefor
KR20170061536A (en) Camera module and mobile terminal comprising the camera
KR20190077738A (en) Mobile Terminal
KR20170087343A (en) Mobile terminal and method for controlling the same
KR20170011613A (en) Mobile terminal and method for controlling the same
KR20170022082A (en) Mobile terminal and method for controlling the same
KR20160077907A (en) Mobile terminal and method for controlling the same