CN110896443B - Area value presetting method for double-camera switching and double-camera switching equipment - Google Patents

Area value presetting method for double-camera switching and double-camera switching equipment Download PDF

Info

Publication number
CN110896443B
CN110896443B CN201811068055.0A CN201811068055A CN110896443B CN 110896443 B CN110896443 B CN 110896443B CN 201811068055 A CN201811068055 A CN 201811068055A CN 110896443 B CN110896443 B CN 110896443B
Authority
CN
China
Prior art keywords
resolution
area
input image
preset value
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811068055.0A
Other languages
Chinese (zh)
Other versions
CN110896443A (en
Inventor
汪帅
刘纪贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Honghe Innovation Information Technology Co Ltd
Original Assignee
Shenzhen Honghe Innovation Information Technology Co Ltd
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 Shenzhen Honghe Innovation Information Technology Co Ltd filed Critical Shenzhen Honghe Innovation Information Technology Co Ltd
Priority to CN201811068055.0A priority Critical patent/CN110896443B/en
Publication of CN110896443A publication Critical patent/CN110896443A/en
Application granted granted Critical
Publication of CN110896443B publication Critical patent/CN110896443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The invention relates to a method for presetting and switching region values of double cameras, wherein a short-focus camera acquires a first resolution input image of a scene, a long-focus camera acquires a second resolution input image of the scene, and the first resolution and the second resolution are greater than the resolution of a display picture; calculating the area of the second resolution input image in the first resolution input image as a threshold area, determining and storing a first preset value according to the threshold area, calculating the original display picture area of the first resolution input image, wherein the original display picture area is the maximized area which is the same as the center point of the threshold area in the first resolution input image and has the same aspect ratio, and determining and storing a second preset value according to the original display picture area. Two cameras with different focal lengths are adopted, sampling is carried out on the two cameras by the original resolution ratio which is higher than the output resolution ratio, the zoom multiple of the cameras is prolonged in a relay mode, and the same or even better lossless zoom effect as optical zoom is achieved.

Description

Area value presetting method for double-camera switching and double-camera switching equipment
Technical Field
The invention relates to the field of double-camera equipment, in particular to a region value presetting method for double-camera switching.
Background
A camera equipped with an optical zoom lens has more excellent imaging quality than a fixed focus lens camera. Because it uses the optical characteristics of the lens set to "zoom in" directly to the distant scene during zooming, thereby achieving magnification that achieves very desirable imaging quality without signal loss.
Unlike optical zooming, digital zooming is achieved by enlarging the area of each pixel in a picture through a processor in a digital camera, and actually, the digital zooming does not change the focal length of a lens, but judges the color around the existing pixel through software, and inserts the pixel added through a special algorithm according to the color situation around the existing pixel. Since the focal length does not change, the image quality is poor relative to normal. By digital zooming, the shot is magnified but its sharpness is somewhat degraded. The camera of the fixed-focus lens can only amplify the image by a method of stretching the image, and the larger the amplification variable is, the worse the imaging quality is.
Compared with the common digital zoom, the optical zoom lens has better zoom effect, but has slight image quality loss under the influence of stray light at the far focus end, and has large volume and high price.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a device for switching between two cameras, which overcome the defects of poor quality of digital zoom images, large size of optical zoom and high price in the prior art.
The technical scheme adopted by the invention for solving the technical problem is to provide a region value presetting method for switching of double cameras, which comprises the following steps: s1, acquiring an input image of a first resolution of a scene by a short-focus camera, and acquiring an input image of a second resolution of the scene by a long-focus camera, wherein the first resolution and the second resolution are greater than the resolution of a display picture; s2: calculating a region of the input image of the second resolution in the input image of the first resolution, wherein the region is a threshold region; s3: determining a first preset value according to the threshold area, and storing the first preset value; s4: calculating an original display picture area of the input image with the first resolution, wherein the original display picture area is a maximized area which is the same as the center point of the threshold area in the input image with the first resolution and has the same aspect ratio; s5: and determining a second preset value according to the original display picture area, and storing the second preset value.
When the double-camera equipment is used, displaying an original display picture according to the second preset value, adjusting a display picture area, and outputting a picture of the telephoto camera when the display picture area is overlapped with or within a threshold area determined by the first preset value; and when the display picture area is out of the threshold area determined by the first preset value, outputting the picture of the short-focus camera.
And outputting a short-focus camera display picture when the display picture area is superposed with the threshold area determined by the first preset value.
The short-focus camera and the long-focus camera respectively collect input images of a first resolution and an input image of a second resolution in a super-sampling mode.
The first resolution is equal to the second resolution.
The first preset value includes the start point coordinates, width, and height of the threshold region.
The second preset value includes the coordinates of the starting point of the original display picture area, the width and the height.
The invention also provides double-camera switching equipment, which comprises a short-focus camera module, a long-focus camera module, a storage module and a picture output module, wherein the short-focus camera module is used for collecting an input image of a first resolution ratio of a scene, and the first resolution ratio is greater than the resolution ratio of a display picture of the double-camera switching equipment; a long-focus camera module acquires an input image of a second resolution of the scene, wherein the second resolution is greater than the resolution of a display picture of the double-camera switching equipment; the storage module stores a first preset value and a second preset value; the picture output module determines a threshold region according to the first preset value, displays an original display picture of an input image with a first resolution according to the second preset value, and outputs a picture of the telephoto camera module when the region of the display picture is scaled according to the original display picture region and the region of the display picture is overlapped with or in the threshold region; when the area of the display picture is out of the threshold area, outputting the picture of the short-focus camera module; the threshold region is a region of the input image of the second resolution in the input image of the first resolution, and the original display screen region is a maximized region having the same width-height ratio and the same center point as the region determined by the first preset value in the input image of the first resolution.
And when the display picture area is superposed with the threshold area determined by the first preset value, the picture output module outputs the picture of the short-focus camera module.
The short-focus camera module and the long-focus camera module are both super-sampling modules.
The first resolution is equal to the second resolution.
The first preset value includes the start point coordinates, width, and height of the threshold region.
The second preset value includes the coordinates of the start point, width and height of the original display screen area.
The method has the advantages that two cameras with different focal lengths, namely a short focus and a long focus are adopted, the two cameras sample at an original resolution higher than an output resolution, the short focus camera is used for imaging at a low multiple by setting a first preset value and a second preset value, after the two cameras are amplified to a certain size, when a display picture area is overlapped with or within a threshold area determined by the first preset value, a picture of the long focus camera is output, when the display picture area is out of the threshold area determined by the first preset value, the picture of the short focus camera is output, the zoom multiple of the cameras is prolonged in such a relay mode, and the same or even better lossless zoom effect as optical zoom is achieved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of a region value presetting method for dual-camera switching according to an embodiment of the present invention;
FIG. 2 is a flowchart of a region value presetting method for dual-camera switching according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a relationship between an input image collected by a long focus camera and an input image collected by a short focus camera according to an embodiment of the present invention;
FIG. 4 is a flowchart of a first default value calculation method according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a second preset value calculating method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a second preset value calculating method according to another embodiment of the present invention;
fig. 7 is a block diagram of a dual-camera switching device 700 in accordance with an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The following exemplary embodiments are described in order to explain the present invention by referring to the figures.
The present invention is described below with reference to a flowchart of a method according to an exemplary embodiment of the present invention. It will be understood that each block of the flowchart illustrations, and combinations of blocks in the flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a suitable computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions specified in the flowchart block or blocks. These computer program instructions may also be stored in a computer usable or computer-readable memory that may direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer usable or computer-readable memory produce an article of manufacture including instruction means that implement the function specified in the flowchart block or blocks. The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.
In addition, each block of the flowchart illustrations may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of order. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
As shown in fig. 1, which is a flowchart of a region value presetting method for dual-camera switching according to an embodiment of the present invention, S100: the method comprises the steps that a short-focus camera acquires an input image of a first resolution of a scene, a long-focus camera acquires an input image of a second resolution of the scene, and the first resolution and the second resolution are larger than the resolution of a display picture; s300, calculating a region of the input image with the second resolution in the input image with the first resolution, wherein the region is a threshold region; s500, determining a first preset value according to the threshold area, and storing the first preset value; s700, calculating an original display picture area of the input image with the first resolution, wherein the original display picture area is a maximized area which is the same as the center point of the threshold area in the input image with the first resolution and has the same width-height ratio, so that all pictures of the input image with the first resolution are displayed as far as possible; and S900, determining a second preset value according to the original display picture area, and storing the second preset value.
According to the invention, the first preset value and the second preset value are calculated and stored in the double-camera equipment, the original display picture is displayed according to the second preset value when the equipment is started, when the display picture is subjected to amplification change, the display picture area continuously progresses towards the threshold area until the display picture is overlapped with the threshold area, the picture of the telephoto camera is output, and the reduction is a reverse flow.
The display picture refers to a picture displayed on a display interface after an input image is acquired by a short-focus camera or a long-focus camera and is subjected to image processing, and the display picture area refers to a picture area of the picture displayed on the display interface in the input image acquired by the short-focus camera or the long-focus camera.
Another embodiment of the present invention is shown in fig. 2, which is a flowchart of a region value presetting method for dual-camera switching according to another embodiment of the present invention. When the dual-camera device is used, S200 firstly displays an original display picture according to a second preset value; adjusting the display picture area in the using state, and when the display picture area is superposed with or within the threshold area determined by the first preset value in S400, executing S600, namely outputting the picture of the tele-camera; otherwise, S800 is executed, that is, the picture of the short focus camera is output.
In other embodiments, the short-focus camera may also be output when the display screen area coincides with the threshold area determined by the first preset value. For example, the dual-camera device displays a picture output by the short-focus camera before the display picture area coincides with the threshold area determined by the first preset value, and then still outputs the picture output by the short-focus camera when the display picture area coincides with the threshold area determined by the first preset value.
The method includes the steps that two cameras with different focal lengths, namely a short focus and a long focus are adopted, the two cameras sample the same scene with an original resolution higher than an output resolution, imaging is carried out by the short focus cameras at a low multiple by setting a first preset value and a second preset value, the short focus cameras are switched to the long focus cameras after the short focus cameras are amplified to a certain size, namely when an area of a displayed picture is overlapped with or within a threshold area determined by the first preset value, and when the area of the displayed picture is out of the threshold area determined by the first preset value, the picture of the short focus cameras is output, the zoom multiple of the cameras is prolonged in such a relay mode, and the same as or even better lossless zoom effect of optical zooming is achieved.
In an embodiment, both the short-focus camera and the long-focus camera in S100 may acquire the input image in an oversampling manner, that is, both the short-focus camera and the long-focus camera may acquire the input image by using a sensor having a resolution far exceeding a final output resolution, and during final output, downsampling is performed to convert the input image into an image signal with an output resolution for output, so that while the image definition is ensured, it is ensured that no image jump occurs when the short-focus camera and the long-focus camera are switched.
The method of the invention also avoids the problem that the optical zoom lens has slight image quality loss when the far-focus end is affected by stray light because the long-focus camera applies the technology of lossless zooming after oversampling, and can obtain better imaging quality than the optical zoom camera.
The down-sampling is to find the data of the pixels in the final displayed picture from the memory. Knowing that the source address of the original picture data in the memory is p, the resolution is w1x h1, and the line width of the image is s; the resolution of the pixels in the finally displayed picture is w2x h2, the origin of the finally displayed picture is (x, y) relative to the pixel coordinates of the original image, the address of the nth row of pixels in the finally displayed picture is Pn ═ p + (y + n) × s + x, the data length is w2, and the h2 lines of data form the finally displayed picture. And when the finally displayed picture is reduced, the front-end sampling area of the camera is expanded. As long as the front-end sampling resolution remains higher than the resolution of the final output, there is little loss of picture quality.
In a specific embodiment, the first resolution for short-focus camera sampling and the second resolution for long-focus camera sampling may be the same or different, but both need to be greater than the final display image resolution.
The point of the dual-camera switching is to determine a point of time of the switching, that is, to what position the display image is enlarged or reduced to perform the switching of the dual cameras. According to the invention, a first preset value and a second preset value are preset firstly, and the double-camera switching is completed by comparing the area of the display picture image with the image area determined by the first preset value.
As shown in fig. 3, the left diagram is an input image acquired by a short-focus camera, the right diagram is an input image acquired by a long-focus camera, a 201 region in the diagram is an original input image acquired by the short-focus camera, a 204 region is an original input image acquired by the long-focus camera, and a 203 region is a corresponding region position of the input image acquired by the long-focus camera in the input image acquired by the short-focus camera, and the region position can be recorded as a threshold region; in the figure, a region 202 is an original display picture region of a first resolution input image acquired by a short-focus camera, which is determined according to the starting point coordinate of the threshold region and the image size, and the second preset value in the invention comprises the starting point coordinate of the original display picture region, and the width and height of the image.
When the double-camera switching equipment is used, the double-camera switching equipment firstly determines an initial display picture according to an original display picture region value, namely, a 202 region displayed by the double-camera switching equipment; when the display screen area is scaled in accordance with the 202 area, the dual-camera switching apparatus outputs a screen of the telephoto camera when the display screen area coincides with the threshold area 203 or is within the threshold area 203, and outputs a screen of the telephoto camera when the display screen area is outside the threshold area 203.
The double-camera switching method adopts the following mode: and after the first preset value and the second preset value are calculated, the first preset value and the second preset value are stored, when the double-camera equipment is used, the double-camera equipment displays an initial display picture according to the second preset value, and when the display picture changes, a picture of the short-focus camera or the long-focus camera is output according to a comparison result of the size of a display picture area and a threshold area determined by the first preset value. Next, a method of calculating the first preset value and the second preset value will be described.
In an embodiment, a pixel region of the second resolution input image acquired by the long-focus camera in the first resolution input image acquired by the short-focus camera, which is the threshold region 203, may be determined by using an image matching method. For example, the image matching calculation may be completed by using software such as PS, or may be performed by using an OpenCV library, which is not limited in the present invention.
Fig. 4 is a flowchart of a first preset value calculation method according to an embodiment of the present invention, where after a short-focus camera acquires an input image of a first resolution of a scene, and a long-focus camera acquires an input image of a second resolution of the scene, step S301 extracts feature points of the input image acquired by the short-focus camera and the input image acquired by the long-focus camera, where the feature points include information such as coordinates, size, and intensity of pixel points; step S303, carrying out matching calculation on the characteristic points of the input image acquired by the short-focus camera and the characteristic points of the input image acquired by the long-focus camera; step S305, screening matching points according to the matching strength; step S307, calculating a homography matrix according to the screened matching points; step S309 obtains coordinates of the input image acquired by the telephoto camera in the input image acquired by the short focus camera according to the homography matrix, that is, coordinates of four corner coordinates of the input image acquired by the telephoto camera at the second resolution in the input image acquired by the short focus camera at the first resolution.
In a specific embodiment, an OpenCV library may be used for image matching calculation, for example, step S301 extracts feature points of an input image acquired by a short-focus camera and an input image acquired by a long-focus camera according to SURF and other algorithms in the OpenCV library; step S303, performing matching calculation on the characteristic points of the input image acquired by the short-focus camera and the characteristic points of the input image acquired by the long-focus camera according to a Brute-force algorithm in the OpenCV library; step S305 may use a DMatch class in the OpenCV library, where the DMatch class describes matching point information, and a distance field in the matching point information describes a matching degree, where the closer this value is to 0, the higher the matching degree is, and a threshold may be set, for example, a matching point with distance <0.1, that is, a feature point pair is retained; step S307 may calculate a homography matrix using a findhomograph () function in the OpenCV library; in step S309, the coordinates of the four corner coordinates of the input image with the second resolution acquired by the long-focus camera in the input image with the first resolution acquired by the short-focus camera can be calculated by using a perspectiveTransform () function in the OpenCV library.
Through the calculation, the coordinates of the four corner coordinates of the input image with the second resolution acquired by the long-focus camera in the input image with the first resolution acquired by the short-focus camera are obtained, that is, the start point coordinate of the threshold region 203 and the width and height of the image region in fig. 3 can be calculated, and the calculated start point coordinate of the threshold region 203 and the calculated width and height of the image region are stored as the first preset value.
Fig. 5 is a flowchart of a second preset value calculating method according to an embodiment of the present invention, and S7011: calculating the image size of an original display picture area 202 according to the size and the center point coordinate of an input image 201 with a first resolution acquired by a short-focus camera and the starting point coordinate and the image size of a threshold area 203; s7031: calculating an image aspect ratio of the threshold region 203 from the image size of the threshold region 203 (r 1); s7051, calculating the image aspect ratio of the original display screen area 202 according to the image size of the original display screen area 202 (r 2); s7071: correcting the image size of the original display screen area 202 in accordance with the image aspect ratio (r1) of the threshold area 203 and the image aspect ratio (r2) of the original display screen area 202; s7091, the coordinates of the start point of the original display screen region 202, the width and the height of the image region are calculated from the corrected image size of the original display screen region 202 and the coordinates of the center point of the threshold region 203. The calculated coordinates of the start point of the original display screen area 202, and the width and height of the image area are saved as second preset values. After the calculation is completed according to this method, the threshold region 203 is the same as the center point of the original display screen region 202, and the aspect ratio is the same.
In an embodiment, the method of calculating the second preset value shown in fig. 6 may be adopted, wherein S7012 to S7032 are respectively the same as S7011 to S7051, and S7041 determines whether the image aspect ratio (r2) of the original display screen region 202 is greater than the image aspect ratio (r1) of the threshold region 203, and when r2 is greater than or equal to r1, that is, the original display screen region 202 is longer than the threshold region 203 in shape, the width of the original display screen region 202 is newly calculated according to the aspect ratio of the threshold region 203, so step S7052 is executed, and the width of the image of the original display screen region 202 is the product of the image height of the original display screen region 202 and the image aspect ratio (r1) of the threshold region 203; when r2 is smaller than r1, that is, the original display screen region 202 is higher in shape than the threshold region 203, then the height of the original display screen region 202 is recalculated in accordance with the aspect ratio of the threshold region 203, so step S7062 is performed, the height of the image of the original display screen region 202 being the image aspect ratio of the original display screen region 202 divided by the image aspect ratio of the threshold region 203 (r 1); if the image aspect ratio (r2) of the display screen area 202 is equal to the image aspect ratio (r1) of the threshold area 203, the image width and height of the display screen area need not be recalculated. S7072 is the same as S7091.
The aspect ratio of the original display picture area is the same as that of the first area, and the two areas are at the same midpoint, so that picture jumping cannot occur when the two cameras are switched. In particular embodiments, the following algorithm may be employed: the method comprises the steps that the width and height w x h of a pixel of an original image 201 of a known short-focus camera is known; the coordinates (x1, y1) of the upper left point (start point) of the threshold region 203, width and height w1x h1, then, the coordinates of the points in the original image:
mx=w/2
my=h/2
point coordinates in threshold region 203:
mx1=(x1+w1)/2
my1=(y1+h1)/2
threshold region 203 aspect ratio:
r1=w1/h1
the original display area 202 width and height can be calculated as follows:
w2=(w/2-|mx-mx1|)*2
h2=(h/2-|my-my1|)*2
the aspect ratio of the original display screen area 202 is:
r2=w2/h2
the width and height of the original display screen area 202 are modified as follows:
if(r2>=r1)
w2=h2*r2;
else
h2=w2/r2。
then, the coordinates of the upper left point (start point) of the original display screen area 202 are:
x2=mx1-w2/2,
y2=my1-h2/2。
and when the display picture area is overlapped with or within the threshold area, outputting the picture to the long-focus camera, and when the display picture area is out of the threshold area, outputting the picture to the short-focus camera.
The present invention also provides a dual-camera switching device, as shown in fig. 7, including a short-focus camera module 101, a long-focus camera module 103, a storage module 105, and a camera switching module 107. The short-focus camera module 101 acquires an input image of a first resolution of a scene, wherein the first resolution is greater than the resolution of a display picture of the double-camera switching device; the tele camera module 103 acquires an input image of a second resolution of the scene, the second resolution being greater than the resolution of the display image of the dual-camera switching device; the storage module 105 stores a first preset value and a second preset value; the image output module 107 determines a threshold region according to a first preset value, displays an initial display image according to a second preset value, and outputs an image of the telephoto camera module when the region of the display image is scaled according to the region of the initial display image and the region of the display image coincides with or is within the threshold region determined by the first preset value; and when the area of the displayed picture is out of the threshold area determined by the first preset value, outputting the picture of the short-focus camera module, wherein the threshold area is the area of the input image with the second resolution in the input image with the first resolution, and the original displayed picture area is the maximized area which is the same as the central point of the area determined by the first preset value in the input image with the first resolution and has the same aspect ratio, so that the picture of the input image with the first resolution is displayed as completely as possible.
In another embodiment, the screen of the short focus imaging module may be output when the display screen region coincides with the threshold region. For example, the dual-camera switching device displays a picture output by the short-focus camera module before the display picture area coincides with the threshold area, and then still outputs the picture output by the short-focus camera module when the display picture area coincides with the threshold area determined by the first preset value.
The double-camera switching equipment adopts two fixed-focus cameras with different focal lengths, namely a short-focus camera and a long-focus camera, the two cameras sample at an original resolution higher than an output resolution, the short-focus camera is used for imaging at a low multiple, the two cameras are switched to the long-focus camera after being amplified to a certain size, and the zoom multiple of the cameras is prolonged in such a relay mode, so that the same or even better lossless zoom effect as optical zoom is achieved.
The dual-camera switching device of the present invention may include any dual-camera electronic device, for example, a dual-camera switching video stand, a dual-camera high-speed camera, a dual-camera large screen, a dual-camera white board, a dual-camera notebook, a dual-camera mobile phone, and the like.
In an embodiment, both the short-focus camera module 101 and the long-focus camera module 103 can acquire an input image in a super-sampling manner, so that image sharpness is ensured, and at the same time, no image jump occurs when the short-focus camera and the long-focus camera are switched.
In a specific embodiment, the first resolution for short-focus camera sampling and the second resolution for long-focus camera sampling may be the same or different, but both need to be greater than the final display image resolution.
As used herein, the terms "unit," "module," and various devices may refer to, be part of, or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a combinational logic circuit, and/or other suitable components that provide the described functionality.
The invention does not limit the execution sequence of the functions completed between the modules and/or inside the modules in the dual-camera switching equipment, can adjust the execution sequence between the modules and/or inside the modules according to the actual requirements, and can realize the technical scheme of the invention.
It should be understood that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same, and those skilled in the art can modify the technical solutions described in the above embodiments, or make equivalent substitutions for some technical features; and all such modifications and alterations are intended to fall within the scope of the appended claims.

Claims (8)

1. A region value presetting method for dual-camera switching is characterized by comprising the following steps:
s1, acquiring an input image of a first resolution of a scene by a short-focus camera, and acquiring an input image of a second resolution of the scene by a long-focus camera, wherein the first resolution and the second resolution are greater than the resolution of a display picture;
s2: calculating a region of the input image of the second resolution in the input image of the first resolution, wherein the region is a threshold region;
s3: determining a first preset value according to the threshold area, and storing the first preset value, wherein the first preset value comprises the coordinates of the starting point, the width and the height of the threshold area;
s4: calculating an original display picture area of the input image with the first resolution, wherein the original display picture area is a maximized area which is the same as the center point of the threshold area in the input image with the first resolution and has the same aspect ratio;
s5: determining a second preset value according to the original display picture area, and storing the second preset value, wherein the second preset value comprises the coordinates, the width and the height of the initial point of the original display picture area;
displaying the original display picture according to the second preset value, adjusting the display picture area,
when the display picture area is overlapped with the threshold area determined by the first preset value, outputting the picture of the long-focus camera or the picture of the short-focus camera;
when the display picture area is within the threshold area determined by the first preset value, outputting the picture of the telephoto camera;
and when the display picture area is out of the threshold area determined by the first preset value, outputting the picture of the short-focus camera.
2. The region value presetting method for dual-camera switching as claimed in claim 1, wherein the short focus camera and the long focus camera respectively acquire the input images of the first resolution and the second resolution in a super sampling manner.
3. The region value presetting method for dual-camera switching according to any one of claims 1 to 2, characterized in that the first resolution is equal to the second resolution.
4. A dual-camera switching device, comprising:
the short-focus camera module is used for acquiring an input image of a first resolution of a scene, wherein the first resolution is greater than the resolution of a display picture of the double-camera switching equipment;
the long-focus camera module is used for acquiring an input image of a second resolution of the scene, wherein the second resolution is greater than the resolution of a display picture of the double-camera switching equipment;
the storage module is used for storing a first preset value and a second preset value;
the picture output module is used for determining a threshold area according to the first preset value, displaying an original display picture of an input image with a first resolution according to the second preset value, outputting a picture of the long-focus camera module or a picture of the short-focus camera module when the area of the display picture is scaled according to the original display picture area and the area of the display picture is overlapped with the threshold area, and outputting the picture of the long-focus camera module when the area of the display picture is within the threshold area; when the area of the display picture is out of the threshold area, outputting the picture of the short-focus camera module;
the threshold region is a region of the input image of the second resolution in the input image of the first resolution, and the original display screen region is a maximized region having the same width-height ratio and the same center point as the region determined by the first preset value in the input image of the first resolution.
5. The dual-camera switching device of claim 4, wherein the short focus camera module and the long focus camera module are both super-sampling modules.
6. The dual-camera switching device of any one of claims 4-5, wherein the first resolution is equal to the second resolution.
7. The dual-camera switching device of claim 4, wherein the first preset values include a start point coordinate, a width, and a height of the threshold region.
8. The dual-camera switching device of claim 4, wherein the second preset values include a start point coordinate, a width, and a height of the original display screen area.
CN201811068055.0A 2018-09-13 2018-09-13 Area value presetting method for double-camera switching and double-camera switching equipment Active CN110896443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811068055.0A CN110896443B (en) 2018-09-13 2018-09-13 Area value presetting method for double-camera switching and double-camera switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811068055.0A CN110896443B (en) 2018-09-13 2018-09-13 Area value presetting method for double-camera switching and double-camera switching equipment

Publications (2)

Publication Number Publication Date
CN110896443A CN110896443A (en) 2020-03-20
CN110896443B true CN110896443B (en) 2021-11-09

Family

ID=69785228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811068055.0A Active CN110896443B (en) 2018-09-13 2018-09-13 Area value presetting method for double-camera switching and double-camera switching equipment

Country Status (1)

Country Link
CN (1) CN110896443B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938417B (en) * 2022-05-12 2023-10-17 安徽声讯信息技术有限公司 Webpage-oriented high-speed image acquisition system and image acquisition method for high-speed image acquisition instrument
CN114915728A (en) * 2022-05-23 2022-08-16 普联技术有限公司 Method for zooming multi-view camera and multi-view camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008236799A (en) * 2008-06-17 2008-10-02 Canon Inc Imaging apparatus and its control method
CN101902572A (en) * 2009-05-04 2010-12-01 弗莱克斯电子有限责任公司 Dual lens digital zoom
CN105578015A (en) * 2014-10-09 2016-05-11 聚晶半导体股份有限公司 Object tracking image processing method and object tracking image processing system
CN105959553A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Camera switching method and terminal
CN106791377A (en) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 Control method, control device and electronic installation
CN107770433A (en) * 2016-08-15 2018-03-06 光宝电子(广州)有限公司 Video capturing device and its image smooth-going Zoom method
CN108243299A (en) * 2016-12-23 2018-07-03 联发科技股份有限公司 A kind of dual camera equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016096481A (en) * 2014-11-14 2016-05-26 キヤノン株式会社 Control apparatus, photographing system, control method, and program
KR20170035237A (en) * 2015-09-22 2017-03-30 엘지전자 주식회사 Mobile terminal and method for controlling the same

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008236799A (en) * 2008-06-17 2008-10-02 Canon Inc Imaging apparatus and its control method
CN101902572A (en) * 2009-05-04 2010-12-01 弗莱克斯电子有限责任公司 Dual lens digital zoom
CN105578015A (en) * 2014-10-09 2016-05-11 聚晶半导体股份有限公司 Object tracking image processing method and object tracking image processing system
CN105959553A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Camera switching method and terminal
CN107770433A (en) * 2016-08-15 2018-03-06 光宝电子(广州)有限公司 Video capturing device and its image smooth-going Zoom method
CN106791377A (en) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 Control method, control device and electronic installation
CN108243299A (en) * 2016-12-23 2018-07-03 联发科技股份有限公司 A kind of dual camera equipment

Also Published As

Publication number Publication date
CN110896443A (en) 2020-03-20

Similar Documents

Publication Publication Date Title
US9591237B2 (en) Automated generation of panning shots
TWI531852B (en) Device of capturing images and method of digital focusing
US9646404B2 (en) Information processing method, information processing device, and program that facilitates image processing operations on a mobile device
WO2018076460A1 (en) Photographing method for terminal, and terminal
CN109040596B (en) Method for adjusting camera, mobile terminal and storage medium
CN109923850B (en) Image capturing device and method
JP2012186593A (en) Image processing system, image processing method, and program
JP2018037859A (en) Image processing system and control method
JP2014096749A (en) Imaging apparatus and image processing method
JPWO2015015935A1 (en) Imaging apparatus and image processing method
CN110896443B (en) Area value presetting method for double-camera switching and double-camera switching equipment
CN117336602A (en) Method for switching between first lens and second lens and electronic device
CN110691192A (en) Image processing method, image processing device, storage medium and electronic equipment
CN110896444B (en) Double-camera switching method and equipment
US20120057747A1 (en) Image processing system and image processing method
US20140240346A1 (en) Image displaying device
CN108810326B (en) Photographing method and device and mobile terminal
JP6748847B2 (en) Imaging device
US20120057065A1 (en) Focusing image display device and method for displaying same
JP2009065519A (en) Image processing apparatus
JP2012235198A (en) Imaging apparatus
JP2017143504A5 (en)
US20160316149A1 (en) Lens module array, image sensing device and fusing method for digital zoomed images
JP2014042109A (en) Image processing apparatus, control method, program, and storage medium
JPWO2019176804A1 (en) Image processing device, imaging device, and image processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant