Patent Description:
With the rapid development of mobile Internet, mobile terminals have become an indispensable part of people's daily life. People use mobile terminals for communication, socialization, sharing, and other activities, and one of the most frequently used functions of mobile terminals is taking photos. When taking photos of distant objects, it is necessary to use a camera optical-zoom function to take clear photos of the distant objects. In existing products and technical schemes, generally, wide-angle and telephoto modules are switched to implement optical zoom, and at least two cameras are required.

<CIT> discloses an image previewing method and device applied to user equipment. The image previewing method comprises the steps of, in response to a preview instruction sent by a user, generating an image preview image in an initial pixel mode, wherein the initial pixel mode is a pixel combination mode; receiving a zooming instruction sent by the user; and outputting a zoomed preview image in a zoomed pixel mode based on the received zooming instruction, wherein the merging rate of the pixel in the zoomed pixel mode is smaller than the merging rate of the pixel in the initial pixel mode.

<CIT> discloses a camera system and a method for zooming the camera system. The method generally includes the steps of (A) generating an electronic image by sensing an optical image received by the camera, the sensing including electronic cropping to a window size to establish an initial resolution for the electronic image, (B) generating a final image by decimating the electronic image by a decimation factor to a final resolution smaller than the initial resolution and (C) changing a zoom factor for the final image by adjusting both of the decimation factor and the window size.

<CIT> discloses an imaging system and method. The system comprises a first image sensor array, a first optical system to project a first image on the first image sensor array, the first optical system having a first zoom level. A second optical system is to project a second image on a second image sensor array, the second optical system having a second zoom level. The second image sensor array and the second optical system are pointed in the same direction as the first image sensor array and the first optical system. The second zoom level is greater than the first zoom level such that the second image projected onto the second image sensor array is a zoomed in on portion of the first image projected on the first image sensor array. The first image sensor array may include at least four megapixels and the second image sensor array may include one-half or less than the number of pixels in the first image sensor array.

<CIT> discloses an apparatus having an electronic zoom function, comprising an image sensing element, a zoom magnification setting unit, a pixel signal readout unit, an image processor, and a controller which, when the zoom magnification is between first and second zoom magnifications, controls to read out pixel signals of a first pixel count, and to generate the image using pixel signals of a second pixel count, and when the zoom magnification is between third and fourth zoom magnifications, controls to read out pixel signals of a third pixel count, and to generate the image usingpixel signals of a fourth pixel count, the second pixel count is not larger than the first pixel count, the fourth pixel count is not larger than the third pixel count.

In view of this, the present disclosure provides an electronic apparatus for camera optical-zoom, a camera optical-zoom method, a camera optical-zoom unit, and a memory.

According to an embodiment of the present disclosure, there is provided an electronic apparatus, including a camera, a sensor, a processor, and a memory. The memory stores a program instruction. The processor is configured to process the program instruction to perform the following steps: receiving image data of a photographed object acquired by the camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on the sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.

According to an embodiment of the present disclosure, there is further provided a camera optical-zoom method for an electronic apparatus. The camera optical-zoom method includes: receiving image data of a photographed object acquired by a camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on a sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.

According to an embodiment of the present disclosure, there is further provided a camera optical-zoom unit for an electronic apparatus. The camera optical-zoom unit for an electronic apparatus includes: a receiving module, configured to receive image data of a photographed object acquired by a camera; and an integration module, configured to integrate image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and output the integrated image data according to a coordinate sequence of pixels on a sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.

According to an embodiment of the present disclosure, there is further provided a memory storing a computer program, where the computer program is configured to be run to perform the foregoing camera optical-zoom method for an electronic apparatus.

The accompanying drawings are used to provide a further understanding of the technical schemes of the present disclosure, and form part of the specification. The accompanying drawings and the embodiments of the present disclosure are used together to illustrate the technical schemes of the present disclosure, and do not constitute a limitation on the technical schemes of the present disclosure.

To make the objectives, technical schemes and advantages of the present disclosure clearer, the present disclosure is further described below in detail with reference to the accompanying drawings and embodiments. It is to be noted that the embodiments in the present disclosure and the features in the embodiments may be arbitrarily combined with each other if not conflicted.

<FIG> is a hardware architecture diagram of an electronic apparatus <NUM> according to an embodiment of the present disclosure. The electronic apparatus <NUM> may be a mobile phone, a tablet, a computer or the like. As shown in <FIG>, the electronic apparatus <NUM> includes a camera <NUM>. There may be one or more cameras <NUM>. In this embodiment, the present disclosure is described only by an example in which the electronic apparatus <NUM> includes one camera <NUM>. The camera <NUM> is configured to acquire image data of a photographed object. The camera <NUM> includes at least one sensor. In this embodiment, the present disclosure is described only by an example in which the camera <NUM> includes one sensor. As shown in <FIG>, the camera <NUM> includes one sensor <NUM>. Light emitted or reflected by the photographed object is converged by a lens of the camera <NUM> to focus on the sensor <NUM>. Pixel areas of the sensor <NUM> include an nx zoom pixel area. In this embodiment, n is a positive number greater than <NUM>. The sensor <NUM> is configured to output corresponding image data of the pixel areas of the sensor <NUM> according to a zoom photographing mode of the camera <NUM>. The electronic apparatus <NUM> further includes a display screen <NUM>. When the electronic apparatus <NUM> enters a photographing preview mode, M zoom photographing mode options are displayed on the display screen <NUM>. In this embodiment, M is an integer greater than or equal to <NUM>. The camera <NUM> enters a corresponding zoom photographing mode according to a zoom photographing mode option selected by a user on the display screen <NUM>. The electronic apparatus <NUM> further includes a processor <NUM> and a memory <NUM>. The memory <NUM> may be configured to store a computer program, for example, a software program or a module of application software. For example, in the embodiments of the present disclosure, the memory <NUM> stores an optical-zoom unit <NUM>. The optical-zoom unit <NUM> is configured to process a computer program corresponding to a camera optical-zoom method of the electronic apparatus <NUM>. The processor <NUM> runs the computer program stored in the memory <NUM> to perform various functional applications and data processing, that is, implement the foregoing method. The memory <NUM> may include a high-speed random access memory, or may include a non-volatile memory, for example, one or more magnetic storage devices, flash memories or other non-volatile solid state memories. In some examples, the memory <NUM> may further include memories disposed remotely with respect to the processor <NUM>. These remote memories may be connected to the electronic apparatus <NUM> by a network. An example of the foregoing network includes, but is not limited to, the internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The optical-zoom unit <NUM> receives the image data of the photographed object acquired by the camera <NUM>, integrates image data of a full pixel area corresponding to a zoom value of the camera <NUM> according to a preset algorithm, and outputs the integrated image data according to a coordinate sequence of pixels on the sensor <NUM>. The full pixel area includes pixel areas of the sensor <NUM> corresponding to the zoom value and pixel areas of the sensor <NUM> corresponding to a value greater than the zoom value. The memory <NUM> further stores an algorithm for mapping M zoom photographing modes of the camera <NUM> to the pixel areas of the sensor <NUM>. The algorithm is used for establishing a correspondence relationship between the M zoom photographing modes of the camera <NUM> and the pixel areas of the sensor <NUM>.

<FIG> is a functional module diagram of the optical-zoom unit <NUM> according to an embodiment of the present disclosure. The optical-zoom unit <NUM> includes a receiving module <NUM>, an obtaining module <NUM>, a determining module <NUM>, an integration module <NUM>, and an output module <NUM>.

The receiving module <NUM> is configured to receive the image data of the photographed object acquired by the camera <NUM>. When the camera <NUM> enters a photographing state, light emitted or reflected by the photographed object is converged by the lens of the camera <NUM> to focus on the sensor <NUM>. The sensor <NUM> receives an optical signal of the light, converts the optical signal into a corresponding electrical signal, and converts the electrical signal into a digital image signal through a digital-to-analog conversion circuit. The receiving module <NUM> receives the digital image signal, processes the digital image signal, converts the digital image signal into image data that can be normally read by the electronic apparatus <NUM>, and sends the image data to the memory <NUM> for storage.

The obtaining module <NUM> is configured to obtain a zoom photographing mode option selected by a user on the display screen <NUM>, and turn on the camera <NUM> to enter a corresponding zoom photographing mode. In this embodiment, the camera <NUM> has M zoom photographing modes. M is an integer greater than or equal to <NUM>. The electronic apparatus <NUM> provides M zoom photographing mode options displayed on the display screen <NUM> for selection by the user. In an embodiment, all the M zoom photographing mode options may be displayed on the display screen <NUM>, or only one of the zoom photographing mode options is displayed on the display screen <NUM>, or no zoom photographing mode option is displayed on the display screen <NUM>.

In an embodiment, as shown in <FIG>, the camera <NUM> has three zoom photographing modes. The display screen <NUM> correspondingly displays three zoom photographing mode options, that is, a 1x zoom photographing mode (1x zoom) option <NUM>, a 3x zoom photographing mode (3x zoom) option <NUM>, and a 9x zoom photographing mode (9x zoom) option <NUM>. The three zoom photographing mode options are all displayed on the display screen <NUM>. When obtaining a 1x zoom photographing mode option selected by the user on the display screen <NUM>, the obtaining module <NUM> turns on the camera <NUM> to enter a corresponding 1x zoom photographing mode.

In another embodiment, the display screen <NUM> displays only one zoom photographing mode option of the M zoom photographing mode options. As shown in <FIG>, in this embodiment, the camera <NUM> has three zoom photographing modes. The electronic apparatus <NUM> provides three zoom photographing mode options, that is, a 1x zoom photographing mode (1x zoom) option, a 3x zoom photographing mode (3x zoom) option, and a 9x zoom photographing mode (9x zoom) option. When the display screen <NUM> enters a photographing preview mode, one zoom photographing mode option in the three zoom photographing mode options is displayed on the display screen <NUM>. As shown in <FIG>, the obtaining module <NUM> is configured to obtain a 1x zoom photographing mode option (1x) <NUM> selected by the user on the display screen <NUM>, and turn on the camera <NUM> to enter a corresponding 1x zoom photographing mode. As shown in <FIG>, when the user uses a finger to zoom in a photographing preview interface on the display screen <NUM>, the photographing preview interface is switched from the 1x zoom photographing mode option (1x) <NUM> to a 3x zoom photographing mode option (3x) <NUM> or a 9x zoom photographing mode option (9x). A switching rule is determined by a ratio by which the photographing preview interface is zoomed in. When the photographing preview interface is switched from the 1x zoom photographing mode option (1x) <NUM> to the 3x zoom photographing mode option (3x) <NUM>, the obtaining module <NUM> is configured to obtain the 3x zoom photographing mode option (3x) <NUM> selected by the user on the display screen <NUM>, and turn on the camera <NUM> to enter a corresponding 3x zoom photographing mode. In comparison, when the user uses a finger to zoom out the photographing preview interface on the display screen <NUM>, the photographing preview interface is switched from the 3x zoom photographing mode option (3x) <NUM> to the 1x zoom photographing mode option (1x) <NUM>.

In another embodiment, no zoom photographing mode option is displayed on the display screen <NUM>. As shown in <FIG>, in this embodiment, the camera <NUM> has three zoom photographing modes. The electronic apparatus <NUM> provides three zoom photographing mode options, that is, a 1x zoom photographing mode (1x zoom) option, a 3x zoom photographing mode (3x zoom) option, and a 9x zoom photographing mode (9x zoom) option. When the display screen <NUM> enters a photographing preview mode, no zoom photographing mode option in the three zoom photographing mode options is displayed on the display screen <NUM>.

The determining module <NUM> is configured to determine whether a zoom value of the camera <NUM> is a maximum zoom value. In this embodiment, the determining module <NUM> is configured to determine whether the zoom value of the camera <NUM> is a maximum zoom value a, where a is a positive number greater than <NUM>. When the camera <NUM> uses the zoom value a, the camera <NUM> uses an ax zoom photographing mode, and the ax zoom photographing mode is the highest-magnification zoom photographing mode in the M zoom photographing modes of the camera <NUM>. That is, the user selects the highest-magnification zoom photographing mode option from the M zoom photographing mode options displayed on the display screen <NUM>. As shown in <FIG>, in this embodiment, the user selects the 9x zoom photographing mode (9x zoom) option <NUM> on the display screen <NUM>.

When the zoom value of the camera <NUM> is the maximum zoom value, the output module <NUM> is configured to output image data of pixel areas of the sensor <NUM> corresponding to the zoom value according to the coordinate sequence of the pixels on the sensor <NUM>. That is, when the camera <NUM> uses the zoom value a, the zoom value a corresponds to the highest-magnification zoom photographing mode in the M zoom photographing modes. The output module <NUM> is configured to output image data of pixel areas of the sensor <NUM> corresponding to the zoom value a according to the coordinate sequence of the pixels on the sensor <NUM>. The pixel areas of the sensor <NUM> include an nx zoom pixel area, where n is a positive number greater than <NUM>. As shown in <FIG>, the sensor <NUM> includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. In the pixel areas of the sensor <NUM>, a pixel area of the sensor <NUM> corresponding to the zoom value a is an ax zoom pixel area. As shown in <FIG>, in this embodiment, a pixel area of the sensor <NUM> corresponding to the 9x zoom value is the 9x zoom pixel area <NUM>. When the camera <NUM> uses the 9x zoom value, the output module <NUM> is configured to output image data of the 9x zoom pixel area <NUM> of the sensor <NUM> according to the coordinate sequence of the pixels on the sensor <NUM>.

When the zoom value of the camera <NUM> is a non-maximum zoom value, the integration module <NUM> is configured to integrate image data of pixel areas of the sensor <NUM> corresponding to the zoom value and image data of pixel areas of the sensor <NUM> corresponding to a value greater than the zoom value according to the preset algorithm. That is, when the camera <NUM> uses a zoom value b, where b is a positive number greater than <NUM>, and b is less than a, the integration module <NUM> is configured to integrate image data of a full pixel area corresponding to the zoom value b of the sensor <NUM> according to the preset algorithm. The full pixel area corresponding to the zoom value b include pixel areas of the sensor <NUM> corresponding to the zoom value b and pixel areas of the sensor <NUM> corresponding to a value greater than the zoom value b. A pixel area of the sensor <NUM> corresponding to the zoom value b is a bx zoom pixel area. The preset algorithm includes, but is not limited to, an interpolation algorithm and a remosaic algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor <NUM> corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor <NUM> corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor <NUM> corresponding to the zoom value b.

The output module <NUM> is further configured to output, according to the coordinate sequence of the pixels on the sensor <NUM>, the image data integrated by the integration module <NUM>.

In this embodiment, when the camera <NUM> uses the zoom value b, that is, when the camera <NUM> uses a bx zoom photographing mode, the quantity of pixels that are outputted by the output module <NUM> and are obtained after integration of the full pixel area corresponding to the zoom value b is x*y, where x and y are respectively the quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the zoom value b. The ax zoom pixel area may be any (bx/a) * (by/a) pixel area in the full pixel area corresponding to the zoom value b. In this embodiment, the present disclosure is described only by an example in which the ax zoom pixel area is a central (bx/a) * (by/a) pixel area in the full pixel area corresponding to the zoom value b. That is, a central coordinate point of the ax zoom pixel area overlaps with a central coordinate point of the full pixel area corresponding to the zoom value b. A size of each pixel in the ax zoom pixel area is b<NUM>/a<NUM> of a size of each pixel in the bx zoom pixel area. That is, the ratio of pixel quantity in the same pixel area size of the ax zoom pixel area to the bx zoom pixel area is a<NUM>: b<NUM>.

As shown in <FIG>, when the camera <NUM> has a 1x zoom photographing mode, a 3x zoom photographing mode, and a 9x zoom photographing mode, the corresponding pixel area of the sensor <NUM> includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. When the camera <NUM> is in the 1x zoom photographing mode, the quantity of pixels that are outputted by the sensor <NUM> and are obtained after integration of the full pixel area corresponding to the 1x zoom value is x*y, where x and y are respectively the quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the 1x zoom value. In this embodiment, the values of x and y are both <NUM>. That is, the quantity of pixels that are outputted by the sensor <NUM> and are obtained after integration of the full pixel area corresponding to the 1x zoom value is <NUM>*<NUM>. The quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the 1x zoom value are both <NUM>. The full pixel area corresponding to the 1x zoom value includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. In this embodiment, the 3x zoom pixel area <NUM> is a central (<NUM>/<NUM>) * (<NUM>/<NUM>) pixel area in the full pixel area corresponding to the 1x zoom value. The 9x zoom pixel area <NUM> is a central (<NUM>/<NUM>) * (<NUM>/<NUM>) pixel area in the full pixel area corresponding to the 1x zoom value. That is, central coordinate points of the 9x zoom pixel area <NUM>, the 3x zoom pixel area <NUM>, and the 1x zoom pixel area <NUM> overlap. A size of each pixel in the 9x zoom pixel area <NUM> is <NUM>/<NUM> of a size of each pixel in the 1x zoom pixel area <NUM>. A size of each pixel in the 3x zoom pixel area <NUM> is <NUM>/<NUM> of a size of each pixel in the 1x zoom pixel area <NUM>. When the camera <NUM> is in the 9x zoom photographing mode, the output module <NUM> is configured to output image data of the 9x zoom pixel area <NUM> according to the coordinate sequence of the pixels on the sensor <NUM>. When the camera <NUM> is in the 3x zoom photographing mode, the integration module <NUM> is configured to integrate image data of the full pixel area corresponding to the 3x zoom value according to the preset algorithm. The full pixel area corresponding to the 3x zoom value include the 3x zoom pixel area <NUM> and the 9x zoom pixel area <NUM>. The integrating includes synthesizing, according to the preset algorithm, pixels in the 9x zoom pixel area <NUM> according to a size of each pixel in the 3x zoom pixel area <NUM>, and integrating a synthesized pixel with image data of pixels in the 3x zoom pixel area <NUM>. That is, every <NUM><NUM>/<NUM><NUM> pixels in the 9x zoom pixel area <NUM> are synthesized into one pixel, and the one pixel synthesized from the 9x zoom pixel area <NUM> is integrated with image data of eight pixels in the 3x zoom pixel area <NUM>. When the camera <NUM> is in the 1x zoom photographing mode, the integration module <NUM> is configured to integrate image data of the full pixel area corresponding to the 1x zoom value according to the preset algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in the 3x zoom pixel area <NUM> according to a size of each pixel in the 1x zoom pixel area <NUM>, and integrating a synthesized pixel with image data of pixels in the 1x zoom pixel area <NUM>. That is, every <NUM><NUM>/<NUM><NUM> pixels in the 3x zoom integrated pixel area are synthesized into one pixel, and the one pixel synthesized from the 3x zoom integrated pixel area is integrated with image data of eight pixels in the 1x zoom pixel area <NUM>.

<FIG> is a method flowchart of a camera optical-zoom method for an electronic apparatus <NUM> according to an embodiment of the present disclosure.

At S70, the receiving module <NUM> receives image data of a photographed object acquired by a camera <NUM>. When the camera <NUM> enters a photographing state, light emitted or reflected by the photographed object is converged by the lens of the camera <NUM> to focus on a sensor <NUM>. The sensor <NUM> receives an optical signal of the light, converts the optical signal into a corresponding electrical signal, and converts the electrical signal into a digital image signal through a digital-to-analog conversion circuit. The receiving module <NUM> receives the digital image signal, processes the digital image signal, converts the digital image signal into image data that can be normally read by the electronic apparatus <NUM>, and sends the image data to the memory <NUM> for storage.

At S71, the obtaining module <NUM> obtains a zoom photographing mode option selected by a user on a display screen <NUM>, and turns on the camera <NUM> to enter a corresponding zoom photographing mode. In this embodiment, the camera <NUM> has M zoom photographing modes. M is an integer greater than or equal to <NUM>. The electronic apparatus <NUM> provides M zoom photographing mode options displayed on the display screen <NUM> for selection by the user. In an embodiment, all the M zoom photographing mode options may be displayed on the display screen <NUM>, or only one of the zoom photographing mode options is displayed on the display screen <NUM>, or no zoom photographing mode option is displayed on the display screen <NUM>.

At S72, the determining module <NUM> determines whether a zoom value of the camera <NUM> is a maximum zoom value. In this embodiment, the determining module <NUM> determines whether the zoom value of the camera <NUM> is a maximum zoom value a, where a is a positive number greater than <NUM>. When the camera <NUM> uses the zoom value a, the camera <NUM> uses an ax zoom photographing mode, and the ax zoom photographing mode is the highest-magnification zoom photographing mode in the M zoom photographing modes of the camera <NUM>. That is, the user selects the highest-magnification zoom photographing mode option from the M zoom photographing mode options displayed on the display screen <NUM>. As shown in <FIG>, in this embodiment, the user selects the 9x zoom photographing mode (9x zoom) option <NUM> on the display screen <NUM>.

At S73, when the zoom value of the camera <NUM> is the maximum zoom value, the output module <NUM> outputs image data of pixel areas of the sensor <NUM> corresponding to the zoom value according to the coordinate sequence of the pixels on the sensor <NUM>. That is, when the camera <NUM> uses the zoom value a, the zoom value a corresponds to the highest-magnification zoom photographing mode in the M zoom photographing modes. The output module <NUM> outputs image data of pixel areas of the sensor <NUM> corresponding to the zoom value a according to the coordinate sequence of the pixels on the sensor <NUM>. The pixel areas of the sensor <NUM> include an nx zoom pixel area, where n is a positive number greater than <NUM>. As shown in <FIG>, the sensor <NUM> includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. In the pixel areas of the sensor <NUM>, a pixel area of the sensor <NUM> corresponding to the zoom value a is an ax zoom pixel area. As shown in <FIG>, in this embodiment, a pixel area of the sensor <NUM> corresponding to the 9x zoom value is the 9x zoom pixel area <NUM>. When the camera <NUM> uses the 9x zoom value, the output module <NUM> outputs image data of the 9x zoom pixel area <NUM> of the sensor <NUM> according to the coordinate sequence of the pixels on the sensor <NUM>.

At S74, when the zoom value of the camera <NUM> is a non-maximum zoom value, the integration module <NUM> integrates image data of pixel areas of the sensor <NUM> corresponding to the zoom value and image data of pixel areas of the sensor <NUM> corresponding to a value greater than the zoom value according to the preset algorithm. That is, when the camera <NUM> uses a zoom value b, where b is a positive number greater than <NUM>, and b is less than a, the integration module <NUM> integrates image data of the full pixel area corresponding to the zoom value b of the sensor <NUM> according to the preset algorithm. The full pixel area corresponding to the zoom value b includes pixel areas of the sensor <NUM> corresponding to the zoom value b and pixel areas of the sensor <NUM> corresponding to a value greater than the zoom value b. A pixel area of the sensor <NUM> corresponding to the zoom value b is a bx zoom pixel area. The preset algorithm includes, but is not limited to, an interpolation algorithm and a remosaic algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor <NUM> corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor <NUM> corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor <NUM> corresponding to the zoom value b.

At S75, the output module <NUM> outputs, according to the coordinate sequence of the pixels on the sensor <NUM>, the image data integrated by the integration module <NUM>.

As shown in <FIG>, when the camera <NUM> has a 1x zoom photographing mode, a 3x zoom photographing mode, and a 9x zoom photographing mode, the corresponding pixel area of the sensor <NUM> includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. When the camera <NUM> is in the 1x zoom photographing mode, the quantity of pixels that are outputted by the sensor <NUM> and are obtained after integration of the full pixel area corresponding to the 1x zoom value is x*y, where x and y are respectively the quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the 1x zoom value. In this embodiment, the values of x and y are both <NUM>. That is, the quantity of pixels that are outputted by the sensor <NUM> and are obtained after integration of the full pixel area corresponding to the 1x zoom value is <NUM>*<NUM>. The quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the 1x zoom value are both <NUM>. The full pixel area corresponding to the 1x zoom value includes a 1x zoom pixel area <NUM>, a 3x zoom pixel area <NUM>, and a 9x zoom pixel area <NUM>. In this embodiment, the 3x zoom pixel area <NUM> is a central (<NUM>/<NUM>) * (<NUM>/<NUM>) pixel area in the full pixel area corresponding to the 1x zoom value. The 9x zoom pixel area <NUM> is a central (<NUM>/<NUM>) * (<NUM>/<NUM>) pixel area in the full pixel area corresponding to the 1x zoom value. That is, central coordinate points of the 9x zoom pixel area <NUM>, the 3x zoom pixel area <NUM>, and the 1x zoom pixel area <NUM> overlap. A size of each pixel in the 9x zoom pixel area <NUM> is <NUM>/<NUM> of a size of each pixel in the 1x zoom pixel area <NUM>. A size of each pixel in the 3x zoom pixel area <NUM> is <NUM>/<NUM> of a size of each pixel in the 1x zoom pixel area <NUM>. When the camera <NUM> is in the 9x zoom photographing mode, the output module <NUM> outputs image data of the 9x zoom pixel area <NUM> according to the coordinate sequence of the pixels on the sensor <NUM>. When the camera <NUM> is in the 3x zoom photographing mode, the integration module <NUM> integrates image data of the full pixel area corresponding to the 3x zoom value according to the preset algorithm. The full pixel area corresponding to the 3x zoom value include the 3x zoom pixel area <NUM> and the 9x zoom pixel area <NUM>. The integrating includes synthesizing, according to the preset algorithm, pixels in the 9x zoom pixel area <NUM> according to a size of each pixel in the 3x zoom pixel area <NUM>, and integrating a synthesized pixel with image data of pixels in the 3x zoom pixel area <NUM>. That is, every <NUM><NUM>/<NUM><NUM> pixels in the 9x zoom pixel area <NUM> are synthesized into one pixel, and the one pixel synthesized from the 9x zoom pixel area <NUM> is integrated with image data of eight pixels in the 3x zoom pixel area <NUM>. When the camera <NUM> is in the 1x zoom photographing mode, the integration module <NUM> is configured to integrate image data of the full pixel area corresponding to the 1x zoom value according to the preset algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in the 3x zoom pixel area <NUM> according to a size of each pixel in the 1x zoom pixel area <NUM>, and integrating a synthesized pixel with image data of pixels in the 1x zoom pixel area <NUM>. That is, every <NUM><NUM>/<NUM><NUM> pixels in the 3x zoom integrated pixel area are synthesized into one pixel, and the one pixel synthesized from the 3x zoom integrated pixel area is integrated with image data of eight pixels in the 1x zoom pixel area <NUM>.

At S80, image data of a photographed object acquired by a camera is received.

At S81, image data of the full pixel area corresponding to a zoom value of the camera according to a preset algorithm is integrated, and the integrated image data is outputted according to a coordinate sequence of pixels on a sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.

In the technical schemes in the embodiments of the present disclosure, image data of a photographed object that is acquired by a camera is received, image data of the full pixel area corresponding to a zoom value of the camera is integrated according to a preset algorithm, and the integrated image data is outputted according to a coordinate sequence of pixels on the sensor, so that when an electronic apparatus is used for taking photos, an optical zoom function can be implemented by using a single camera, thereby greatly reducing the costs of cameras.

Claim 1:
An electronic apparatus for camera optical-zoom, comprising a camera (<NUM>), a sensor (<NUM>), a processor (<NUM>), and a memory (<NUM>), wherein the memory (<NUM>) stores a program instruction which, when executed by the processor (<NUM>), causes the processor (<NUM>) to perform the following steps:
receiving (S80) image data of a photographed object acquired by the camera (<NUM>); and
integrating (S81) image data of a full pixel area corresponding to a zoom value of the camera (<NUM>) according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on the sensor (<NUM>),
characterized in that:
the full pixel area comprises pixel areas of the sensor (<NUM>) corresponding to the zoom value and pixel areas of the sensor (<NUM>) corresponding to a value greater than the zoom value;
wherein in response to the zoom value of the camera (<NUM>) being a maximum zoom value a, image data of pixel areas of the sensor (<NUM>) corresponding to the zoom value a is outputted according to the coordinate sequence of the pixels on the sensor (<NUM>), wherein a is a positive number greater than <NUM>;
wherein in response to the zoom value of the camera (<NUM>) being b and b being less than a, integrated image data of a full pixel area corresponding to the zoom value b is outputted according to the coordinate sequence of the pixels on the sensor (<NUM>);
wherein the integrating comprises synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor (<NUM>) corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor (<NUM>) corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor (<NUM>) corresponding to the zoom value b;
wherein the preset algorithm comprises an interpolation algorithm and a remosaic algorithm.