CN110719449B - Focusing method of intelligent projector and related product - Google Patents

Focusing method of intelligent projector and related product Download PDF

Info

Publication number
CN110719449B
CN110719449B CN201910931799.9A CN201910931799A CN110719449B CN 110719449 B CN110719449 B CN 110719449B CN 201910931799 A CN201910931799 A CN 201910931799A CN 110719449 B CN110719449 B CN 110719449B
Authority
CN
China
Prior art keywords
image
focal length
camera
contrast
determining
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
CN201910931799.9A
Other languages
Chinese (zh)
Other versions
CN110719449A (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 Huole Science and Technology Development Co Ltd
Original Assignee
Shenzhen Huole Science and Technology Development 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 Huole Science and Technology Development Co Ltd filed Critical Shenzhen Huole Science and Technology Development Co Ltd
Priority to CN201910931799.9A priority Critical patent/CN110719449B/en
Publication of CN110719449A publication Critical patent/CN110719449A/en
Application granted granted Critical
Publication of CN110719449B publication Critical patent/CN110719449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3141Constructional details thereof
    • H04N9/317Convergence or focusing systems

Landscapes

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

Abstract

The embodiment of the application discloses a focusing method of an intelligent projector and a related product, which are applied to the intelligent projector, wherein the intelligent projector comprises a first camera and a second camera, and the method comprises the following steps: receiving a focusing control instruction; starting the first camera and the second camera according to the focusing control instruction; ranging according to the first camera and the second camera to obtain a target distance; determining a first focal length according to the target distance; photographing based on the first focal length to obtain a first image; determining a second focal length according to the first image; and projecting according to the second focal length. So as to control the lens to focus. By adopting the embodiment of the application, the accurate automatic focusing function can be realized, and the user experience is improved.

Description

Focusing method of intelligent projector and related product
Technical Field
The application relates to the technical field of camera processing, in particular to a focusing method of an intelligent projector and a related product.
Background
Projection technology is commonly used in people's daily life. The projection system is used everywhere in meetings, teaching or entertainment venues.
In the life, generally be single camera among the middle-size and small-size projecting apparatus of family, education usefulness, current single camera has only one to focus the value promptly, can not carry out further fine setting to the picture definition, and then influences the picture definition, leads to the automatic focusing not clear, influences user's use.
Disclosure of Invention
The embodiment of the application provides a focusing method of an intelligent projector and a related product, which can realize an accurate automatic focusing function and improve user experience.
In a first aspect, an embodiment of the present application provides a focusing method for an intelligent projector, which is applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, and the method includes:
receiving a focusing control instruction;
starting the first camera and the second camera according to the focusing control instruction;
adjusting the first camera to a first shooting parameter and adjusting the second camera to the second shooting parameter;
controlling the first camera and the second camera to take pictures according to the rotating steps of the motor to obtain multiple groups of images corresponding to multiple steps, wherein each group of images in the multiple groups of images comprises a first image taken by the first camera and a second image taken by the second camera, and the multiple steps correspond to the multiple groups of images one to one;
generating a plurality of target tolerance images according to the plurality of groups of images, wherein each group of images in the plurality of groups of images corresponds to one target tolerance image;
determining target steps according to the target tolerance images;
and rotating the motor according to the target step number to control the lens to focus.
In a second aspect, an embodiment of the present application provides a focusing device of an intelligent projector, which is applied to an intelligent projector, and is applied to an intelligent projector, the intelligent projector includes a first camera and a second camera, and the device includes:
the receiving unit is used for receiving a focusing control instruction;
the starting unit is used for starting the first camera and the second camera according to the focusing control instruction;
the processing unit is used for ranging according to the first camera and the second camera to obtain a target distance;
the determining unit is used for determining a first focal length according to the target distance;
the processing unit is used for photographing based on the first focal length to obtain a first image;
a determining unit, configured to determine a second focal length according to the first image;
and the projection unit is used for carrying out projection according to the second focal length.
In a third aspect, an embodiment of the present application provides an intelligent projector, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an intelligent projector according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a focusing method of an intelligent projector according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another focusing method for an intelligent projector according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another focusing method for an intelligent projector according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an intelligent projector disclosed in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a focusing device of an intelligent projector according to an embodiment of the present disclosure.
Detailed Description
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an intelligent projector according to an embodiment of the present application. The smart projector may include a processor, a Memory, a signal processor, a transceiver, a speaker, a microphone, a Random Access Memory (RAM), a first camera, a second camera, a projection device, a sensor, a network module, and so forth. The projection device comprises a lens and a motor. The storage, the DSP, the projection device, the loudspeaker, the microphone, the RAM, the first camera, the second camera, the sensor and the network module are connected with the processor, and the transceiver is connected with the signal processor.
The intelligent projector further comprises a motor and a lens, wherein the motor is connected with the lens, and the motor rotates to control the lens.
The Processor is a control center of the intelligent projector, various interfaces and lines are used for connecting all parts of the whole intelligent projector, various functions and Processing data of the intelligent projector are executed by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, so that the intelligent projector is monitored integrally, and the Processor can be a Central Processing Unit (CPU), a Graphic Processing Unit (GPU) or a Network Processor (NPU).
Further, the processor may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The storage is used for storing software programs and/or modules, and the processor executes various functional applications and data processing of the intelligent projector by running the software programs and/or modules stored in the storage. The memory mainly comprises a program storage area and a data storage area, wherein the program storage area can store an operating system, a software program required by at least one function and the like; the storage data area may store data created according to the use of the smart projector, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Wherein the sensor comprises at least one of: light-sensitive sensors, gyroscopes, infrared proximity sensors, vibration detection sensors, pressure sensors, etc. Among them, the light sensor, also called an ambient light sensor, is used to detect the ambient light brightness. The light sensor may include a light sensitive element and an analog to digital converter. The photosensitive element is used for converting collected optical signals into electric signals, and the analog-to-digital converter is used for converting the electric signals into digital signals. Optionally, the light sensor may further include a signal amplifier, and the signal amplifier may amplify the electrical signal converted by the photosensitive element and output the amplified electrical signal to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.
The first camera and the second camera may be a visible light camera (a general view angle camera, a wide angle camera), an infrared camera, or a camera with a distance measurement function, which is not limited herein.
The network module may be at least one of: a bluetooth module, a wireless fidelity (Wi-Fi), etc., which are not limited herein, and the projection apparatus can implement a projection function.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flowchart of a focusing method of an intelligent projector, which is applied to the intelligent projector, where the intelligent projector includes a first camera and a second camera, and the focusing method of the intelligent projector includes:
s201, a focusing control instruction is received.
S202, starting the first camera and the second camera according to the focusing control instruction.
S203, ranging is carried out according to the first camera and the second camera to obtain a target distance.
Optionally, the first camera and the second camera may perform distance measurement according to a binocular stereo vision distance measurement algorithm, where the binocular stereo vision algorithm is a method for recovering three-dimensional geometric information of a measured object from a plurality of images acquired from a binocular camera based on a parallax principle, and if P is simultaneously observed from the left and right 2 cameras at any point on the surface of the spatial object, and it can be determined that a point Pl on the image of the left camera and a point Pr on the image of the right camera are image points (called Pl and Pr as conjugate corresponding points) of the same point P in space, a three-dimensional coordinate (including distance information) of the point P in space can be calculated. The distance measuring system based on binocular stereo vision comprises the steps of camera calibration, stereo correction, stereo matching, three-dimensional reconstruction and the like.
And S204, determining a first focal length according to the target distance.
S205, photographing is carried out based on the first focal length, and a first image is obtained.
S206, determining a second focal length according to the first image.
And S207, projecting according to the second focal length.
It can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
In one possible example, the determining a first focal distance from the target distance includes: and inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database, wherein the first preset database comprises a mapping relation between the distance and the focal length.
The mapping relationship may be one-to-one, one-to-many, or many-to-many, and is not limited herein.
Optionally, the determining a first focal length according to the target distance includes: whether obstacles exist in a first shooting range of a first camera and a second shooting range of a second camera at present is checked; if the first shooting range and/or the second shooting range are/is detected to have obstacles, the infrared sensor is started; detecting according to the infrared sensor to obtain the target area of the barrier; and if the target area is too large, giving out a prompt tone to enable the user to move away the obstacle.
Therefore, in this example, the intelligent projector analyzes anxiety corresponding to the target distance according to the target distance, performs the first focusing in the scheme, shortens the focusing range for subsequent accurate focusing, and is beneficial to the high efficiency of the intelligent projector in focusing the two cameras.
In one possible example, the obtaining a target distance by performing ranging according to the first camera and the second camera includes: detecting a first photographing parameter of the first camera and a second photographing parameter of the second camera; adjusting the first photographing parameter and the second photographing parameter to a preset photographing parameter range at the same time to obtain a first preset photographing parameter and a second preset photographing parameter; and ranging according to the first preset shooting parameter and the second preset shooting parameter to obtain the target distance.
The first shooting parameter and the second shooting parameter may be the same parameter or a parameter with a very small difference in a preset shooting parameter range, which is not limited herein.
The preset photographing parameter range may be set by a manufacturer at the time of factory shipment or by a system of the projector, and is not limited herein.
Therefore, in the example, the intelligent projector ensures the accuracy when the binocular stereoscopic vision ranging algorithm is carried out by setting the shooting parameters of the first camera and the second camera, reduces the probability of false detection, and is favorable for the accuracy when the intelligent projector carries out focusing of the two cameras.
In one possible example, the determining a second focal length from the first image comprises: analyzing the first image to obtain a first image contrast of the first image; adjusting the first contrast to a second contrast and the first contrast to a third contrast, the second contrast being greater than the third contrast; photographing according to the second contrast and the third contrast respectively to obtain a second image and a third image; acquiring a first definition of the second image and a second definition of the third image; screening out images with definition exceeding the preset definition as target images; and determining the corresponding focal length of the target image as a second focal length.
Optionally, after the second image and the third image are obtained by photographing according to the second contrast and the third contrast, the method further includes: if the definition of the second image and/or the third image is larger than that of the first image, taking the image with the definition larger than that of the first image as a first target image, and acquiring a fourth contrast of the target image; adjusting the fourth contrast to a fifth contrast and the fourth contrast to a sixth contrast, the fifth contrast being greater than the sixth contrast; photographing according to the fifth contrast and the sixth contrast respectively to obtain a fifth image and a sixth image, and so on; taking the fourth contrast as an example, if the definition of the fifth image and the definition of the sixth image are smaller than the definition of the fourth image, the focal length is determined as the focal length when the fourth image is captured.
It is thus clear that, in this example, the intelligent projection appearance carries out subsequent shooing according to the focus that the range finding obtained to based on the image of shooing, focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, realized the accurate auto focus function under two cameras, promoted user experience, be favorable to intelligent projection appearance high efficiency and intelligent when carrying out the focusing of two cameras.
In one possible example, the determining a second focal length from the first image comprises: analyzing the first image to obtain a first image contrast of the first image; acquiring a current first environment light parameter; querying a second preset database, and determining the contrast of the reference image matched with the first ambient light parameter in the second preset database, wherein the preset database comprises a mapping relation between the ambient light parameter and the contrast of the image; adjusting the first image contrast to the reference image contrast; photographing according to the contrast of the reference image to obtain a fourth image; and if the image definition of the fourth image is determined to exceed the preset definition, setting the corresponding focal length of the fourth image as a second focal length.
The mapping relationship between the ambient light parameter and the image contrast can be obtained through big data statistics or is self-determined by a factory manufacturer when the factory leaves a factory, and the mapping relationship is not taken as a unique limitation.
The preset definition may be set by a manufacturer at the time of factory shipment or a system setting of the projector, and is not limited herein.
Optionally, at least one historical focal length is obtained; querying a second preset database, and determining at least one contrast matched with the at least one historical focal length in the second preset database, wherein the preset database comprises a mapping relation between the contrast and the focal length; determining a contrast range from the at least one contrast; analyzing the first image to obtain a first image contrast of the first image; within the contrast range, the first image contrast is subjected to equal proportion adjustment to obtain a plurality of reference contrasts; photographing according to the contrast of the reference images to obtain a plurality of images; and screening out the image with the highest definition from the plurality of images as a target image, and setting the corresponding focal length of the target image as a second focal length.
The mapping relationship may be one-to-one, one-to-many, or many-to-many, and is not limited herein.
Therefore, in the example, the intelligent projector flexibly performs secondary focusing according to the change of the ambient light, so that focusing with accurate definition is realized, the situation of projection blurring caused by the change of the ambient light is avoided, and the intelligence of the intelligent projector during focusing of the two cameras is facilitated.
Referring to fig. 3, fig. 3 is a schematic flowchart of another focusing method of an intelligent projector according to an embodiment of the present application, and the intelligent projector is applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera. As shown in the figure, the focusing method of the intelligent projector comprises the following steps:
and S301, receiving a focusing control instruction.
S302, starting the first camera and the second camera according to the focusing control instruction.
And S303, ranging according to the first camera and the second camera to obtain a target distance.
S304, a first preset database is inquired, and a first focal length matched with the target distance in the first preset database is determined.
S305, photographing is carried out based on the first focal length, and a first image is obtained.
S306, analyzing the first image to obtain the first image contrast of the first image.
S307, adjusting the first contrast to a second contrast and adjusting the first contrast to a third contrast.
And S308, photographing according to the second contrast and the third contrast respectively to obtain a second image and a third image.
S309, acquiring a first definition of the second image and a second definition of the third image.
S310, screening out the image with the definition exceeding the preset definition as a target image.
S311, determining the corresponding focal length of the target image as a second focal length.
And S312, projecting according to the second focal length.
It can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
In addition, the intelligent projector analyzes anxiety corresponding to the distance according to the target distance, performs the first focusing of the scheme, shortens the focusing range for subsequent accurate focusing, and is favorable for the high efficiency of the intelligent projector in focusing of the double cameras.
In addition, the intelligent projector carries out subsequent shooting according to the focal length that the range finding obtained to based on the image of shooing, focus for the second time, finely tune the focal length many times promptly, and then reach more ideal focusing effect, realized the accurate auto focus function under two cameras, promoted user experience, be favorable to intelligent projector high efficiency and intelligent when carrying out the focusing of two cameras.
Referring to fig. 4, fig. 4 is a schematic flowchart of another focusing method of an intelligent projector according to an embodiment of the present application, and the intelligent projector is applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera. As shown in the figure, the focusing method of the intelligent projector comprises the following steps:
s401, a focusing control instruction is received.
S402, starting the first camera and the second camera according to the focusing control instruction.
And S403, ranging according to the first camera and the second camera to obtain a target distance.
S404, inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database.
S405, photographing is carried out based on the first focal length, and a first image is obtained.
S406, analyzing the first image to obtain a first image contrast of the first image.
S407, acquiring a current first ambient light parameter.
S408, a second preset database is inquired, and the contrast of the reference image matched with the first ambient light parameter in the second preset database is determined.
S409, adjusting the first image contrast to the reference image contrast.
And S410, photographing according to the contrast of the reference image to obtain a fourth image.
S411, if the image definition of the fourth image exceeds the preset definition, the corresponding focal length of the fourth image is set as a second focal length.
And S412, projecting according to the second focal length.
It can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
In addition, the intelligent projector analyzes anxiety corresponding to the distance according to the target distance, performs the first focusing of the scheme, shortens the focusing range for subsequent accurate focusing, and is favorable for the high efficiency of the intelligent projector in focusing of the double cameras.
In addition, the intelligent projector flexibly carries out secondary focusing according to the change of the ambient light, realizes the focusing of accurate definition, avoids the situation of fuzzy projection caused by the change of the ambient light, and is favorable for the intelligence of the intelligent projector when carrying out focusing of two cameras.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, fig. 5 is a schematic structural diagram of an intelligent projector according to an embodiment of the present application, and as shown in the drawing, the intelligent projector includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the program includes instructions for performing the following steps:
receiving a focusing control instruction;
starting the first camera and the second camera according to the focusing control instruction;
ranging according to the first camera and the second camera to obtain a target distance;
determining a first focal length according to the target distance;
photographing based on the first focal length to obtain a first image;
determining a second focal length according to the first image;
and projecting according to the second focal length.
It can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
In one possible example, in the determining a first focal distance from the target distance, the instructions in the program are specifically configured to: and inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database, wherein the first preset database comprises a mapping relation between the distance and the focal length.
In a possible example, in terms of obtaining a target distance by performing ranging according to the first camera and the second camera, the instructions in the program are specifically configured to perform the following operations: detecting a first photographing parameter of the first camera and a second photographing parameter of the second camera; adjusting the first photographing parameter and the second photographing parameter to a preset photographing parameter range at the same time to obtain a first preset photographing parameter and a second preset photographing parameter; and ranging according to the first preset shooting parameter and the second preset shooting parameter to obtain the target distance.
In one possible example, in said determining a second focal distance from said first image, the instructions in said program are specifically configured to perform the following operations: analyzing the first image to obtain a first image contrast of the first image; adjusting the first contrast to a second contrast and the first contrast to a third contrast, the second contrast being greater than the third contrast; photographing according to the second contrast and the third contrast respectively to obtain a second image and a third image; acquiring a first definition of the second image and a second definition of the third image; screening out images with definition exceeding the preset definition as target images; and determining the corresponding focal length of the target image as a second focal length.
In one possible example, in said determining a second focal distance from said first image, the instructions in said program are specifically configured to perform the following operations: analyzing the first image to obtain a first image contrast of the first image; acquiring a current first environment light parameter; querying a second preset database, and determining the contrast of the reference image matched with the first ambient light parameter in the second preset database, wherein the preset database comprises a mapping relation between the ambient light parameter and the contrast of the image; adjusting the first image contrast to the reference image contrast; photographing according to the contrast of the reference image to obtain a fourth image; and if the image definition of the fourth image is determined to exceed the preset definition, setting the corresponding focal length of the fourth image as a second focal length.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. The focusing apparatus 600 of the intelligent projector shown in fig. 6 is applied to an intelligent projector, the intelligent projector includes a first camera and a second camera, and the apparatus includes:
a receiving unit 601, configured to receive a focusing control instruction;
a starting unit 602, configured to start the first camera and the second camera according to the focusing control instruction;
the processing unit 603 is configured to perform ranging according to the first camera and the second camera to obtain a target distance;
a determining unit 604, configured to determine a first focal length according to the target distance;
the processing unit 603 is further configured to take a picture based on the first focal length to obtain a first image;
the determining unit 604 is further configured to determine a second focal length according to the first image;
and a projection unit 605 configured to perform projection according to the second focal length.
It can be seen that the focusing method of the intelligent projector and the related product described in the embodiment of the present application are applied to an intelligent projector, where the intelligent projector includes a first camera and a second camera, the intelligent projector firstly receives a focusing control instruction, secondly starts the first camera and the second camera according to the focusing control instruction, and performs ranging according to the first camera and the second camera to obtain a target distance, and determines a first focal length according to the target distance, then performs photographing based on the first focal length to obtain a first image, and determines a second focal length according to the first image, and finally performs projection according to the second focal length. It is thus clear that the intelligence projecting apparatus is surveyed range according to two cameras, and carry out focusing for the first time according to the range finding result, the image of focusing for the first time of further shooting, further analysis to the picture definition of image again, and focus for the second time, finely tune the focus many times promptly, and then reach more ideal focusing effect, accurate auto-focus function under the two cameras has been realized, user experience has been promoted, be favorable to high efficiency and the intelligence of intelligence projecting apparatus when carrying out focusing of two cameras.
In one possible example, in the aspect of determining the first focal distance according to the target distance, the determining unit 604 is specifically configured to: and inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database, wherein the first preset database comprises a mapping relation between the distance and the focal length.
In a possible example, in terms of obtaining a target distance by performing ranging according to the first camera and the second camera, the processing unit 603 is specifically configured to: detecting a first photographing parameter of the first camera and a second photographing parameter of the second camera; adjusting the first photographing parameter and the second photographing parameter to a preset photographing parameter range at the same time to obtain a first preset photographing parameter and a second preset photographing parameter; and ranging according to the first preset shooting parameter and the second preset shooting parameter to obtain the target distance.
In one possible example, in said determining the second focal distance from the first image, the determining unit 604 is specifically configured to: analyzing the first image to obtain a first image contrast of the first image; adjusting the first contrast to a second contrast and the first contrast to a third contrast, the second contrast being greater than the third contrast; photographing according to the second contrast and the third contrast respectively to obtain a second image and a third image; acquiring a first definition of the second image and a second definition of the third image; screening out images with definition exceeding the preset definition as target images; and determining the corresponding focal length of the target image as a second focal length.
In one possible example, in said determining the second focal distance from the first image, the determining unit 604 is specifically configured to: analyzing the first image to obtain a first image contrast of the first image; acquiring a current first environment light parameter; querying a second preset database, and determining the contrast of the reference image matched with the first ambient light parameter in the second preset database, wherein the preset database comprises a mapping relation between the ambient light parameter and the contrast of the image; adjusting the first image contrast to the reference image contrast; photographing according to the contrast of the reference image to obtain a fourth image; and if the image definition of the fourth image is determined to exceed the preset definition, setting the corresponding focal length of the fourth image as a second focal length.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A focusing method of an intelligent projector is applied to the intelligent projector, the intelligent projector comprises a first camera and a second camera, and the method comprises the following steps:
receiving a focusing control instruction;
starting the first camera and the second camera according to the focusing control instruction;
ranging according to the first camera and the second camera to obtain a target distance;
determining a first focal length according to the target distance;
photographing based on the first focal length to obtain a first image;
determining a second focal length according to the first image;
projecting according to the second focal length;
wherein determining a second focal length from the first image comprises: acquiring at least one historical focal length; querying a second preset database, and determining at least one contrast matched with the at least one historical focal length in the second preset database, wherein the second preset database comprises a mapping relation between the contrast and the focal length; determining a contrast range from the at least one contrast; analyzing the first image to obtain a first image contrast of the first image; within the contrast range, the first image contrast is subjected to equal proportion adjustment to obtain a plurality of reference contrasts; photographing according to the reference contrasts to obtain a plurality of images; and screening out the image with the highest definition from the plurality of images as a target image, and setting the corresponding focal length of the target image as a second focal length.
2. The method of claim 1, wherein determining a first focal length based on the target distance comprises:
and inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database, wherein the first preset database comprises a mapping relation between the distance and the focal length.
3. The method of claim 2, wherein the obtaining a target distance by ranging according to the first camera and the second camera comprises:
detecting a first photographing parameter of the first camera and a second photographing parameter of the second camera;
adjusting the first photographing parameter and the second photographing parameter to a preset photographing parameter range at the same time to obtain a first preset photographing parameter and a second preset photographing parameter;
and ranging according to the first preset shooting parameter and the second preset shooting parameter to obtain the target distance.
4. The method of any of claims 1-3, wherein determining a second focal length from the first image comprises:
analyzing the first image to obtain a first image contrast of the first image;
adjusting the first contrast to a second contrast and the first contrast to a third contrast, the second contrast being greater than the third contrast;
photographing according to the second contrast and the third contrast respectively to obtain a second image and a third image;
acquiring a first definition of the second image and a second definition of the third image;
screening out images with definition exceeding the preset definition as target images;
and determining the corresponding focal length of the target image as a second focal length.
5. The method of any of claims 1-3, wherein determining a second focal length from the first image comprises:
analyzing the first image to obtain a first image contrast of the first image;
acquiring a current first environment light parameter;
querying a second preset database, and determining the contrast of the reference image matched with the first ambient light parameter in the second preset database, wherein the preset database comprises a mapping relation between the ambient light parameter and the contrast of the image;
adjusting the first image contrast to the reference image contrast;
photographing according to the contrast of the reference image to obtain a fourth image;
and if the image definition of the fourth image is determined to exceed the preset definition, setting the corresponding focal length of the fourth image as a second focal length.
6. The utility model provides a focusing device of intelligent projecting apparatus which characterized in that is applied to intelligent projecting apparatus, intelligent projecting apparatus includes first camera and second camera, the device includes:
the receiving unit is used for receiving a focusing control instruction;
the starting unit is used for starting the first camera and the second camera according to the focusing control instruction;
the processing unit is used for ranging according to the first camera and the second camera to obtain a target distance;
the determining unit is used for determining a first focal length according to the target distance;
the processing unit is further used for taking a picture based on the first focal length to obtain a first image;
the determining unit is further configured to determine a second focal length according to the first image;
the projection unit is used for projecting according to the second focal length;
wherein, in determining a second focal length from the first image, the determining unit is specifically configured to: acquiring at least one historical focal length; querying a second preset database, and determining at least one contrast matched with the at least one historical focal length in the second preset database, wherein the second preset database comprises a mapping relation between the contrast and the focal length; determining a contrast range from the at least one contrast; analyzing the first image to obtain a first image contrast of the first image; within the contrast range, the first image contrast is subjected to equal proportion adjustment to obtain a plurality of reference contrasts; photographing according to the reference contrasts to obtain a plurality of images; and screening out the image with the highest definition from the plurality of images as a target image, and setting the corresponding focal length of the target image as a second focal length.
7. The apparatus according to claim 6, wherein, in said determining a first focal distance according to the target distance, the determining unit is specifically configured to:
and inquiring a first preset database, and determining a first focal length matched with the target distance in the first preset database, wherein the first preset database comprises a mapping relation between the distance and the focal length.
8. The apparatus according to claim 6 or 7, wherein in the aspect of obtaining the target distance by performing the distance measurement according to the first camera and the second camera, the processing unit is specifically configured to:
detecting a first photographing parameter of the first camera and a second photographing parameter of the second camera;
adjusting the first photographing parameter and the second photographing parameter to a preset photographing parameter range at the same time to obtain a first preset photographing parameter and a second preset photographing parameter;
and ranging according to the first preset shooting parameter and the second preset shooting parameter to obtain the target distance.
9. An intelligent projector comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201910931799.9A 2019-09-29 2019-09-29 Focusing method of intelligent projector and related product Active CN110719449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910931799.9A CN110719449B (en) 2019-09-29 2019-09-29 Focusing method of intelligent projector and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910931799.9A CN110719449B (en) 2019-09-29 2019-09-29 Focusing method of intelligent projector and related product

Publications (2)

Publication Number Publication Date
CN110719449A CN110719449A (en) 2020-01-21
CN110719449B true CN110719449B (en) 2021-12-21

Family

ID=69211129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910931799.9A Active CN110719449B (en) 2019-09-29 2019-09-29 Focusing method of intelligent projector and related product

Country Status (1)

Country Link
CN (1) CN110719449B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540660A (en) * 2010-12-29 2012-07-04 鸿富锦精密工业(深圳)有限公司 Projector
CN102830583A (en) * 2012-09-28 2012-12-19 苏州鼎雅电子有限公司 Eye shield projection method
CN202771144U (en) * 2012-06-28 2013-03-06 李黄雨 Automatic focusing projector
CN104754262A (en) * 2013-12-30 2015-07-01 光宝科技股份有限公司 Projection display device and related display method thereof
CN107490927A (en) * 2016-06-12 2017-12-19 中兴通讯股份有限公司 Projected focus method and projecting apparatus based on camera
CN108307139A (en) * 2017-01-11 2018-07-20 华为技术有限公司 A kind of method of image adjustment, video conference terminal and video conferencing system
CN108710251A (en) * 2018-04-20 2018-10-26 广景视睿科技(深圳)有限公司 A kind of Atomatic focusing method, device and projecting apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE1272583B (en) * 1965-04-09 1968-07-11 Philips Patentverwaltung Process for photo-optical recording or storage of information consisting of individual symbols
EP0097380A3 (en) * 1979-04-02 1984-08-29 Eaton-Optimetrix Inc. A system for positioning a utilization device
SE518836C2 (en) * 1999-05-25 2002-11-26 Flir Systems Ab Device and method for an infrared image analyzing autofocus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540660A (en) * 2010-12-29 2012-07-04 鸿富锦精密工业(深圳)有限公司 Projector
CN202771144U (en) * 2012-06-28 2013-03-06 李黄雨 Automatic focusing projector
CN102830583A (en) * 2012-09-28 2012-12-19 苏州鼎雅电子有限公司 Eye shield projection method
CN104754262A (en) * 2013-12-30 2015-07-01 光宝科技股份有限公司 Projection display device and related display method thereof
CN107490927A (en) * 2016-06-12 2017-12-19 中兴通讯股份有限公司 Projected focus method and projecting apparatus based on camera
CN108307139A (en) * 2017-01-11 2018-07-20 华为技术有限公司 A kind of method of image adjustment, video conference terminal and video conferencing system
CN108710251A (en) * 2018-04-20 2018-10-26 广景视睿科技(深圳)有限公司 A kind of Atomatic focusing method, device and projecting apparatus

Also Published As

Publication number Publication date
CN110719449A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN102263899B (en) Photographing device and control method therefor
KR102143456B1 (en) Depth information acquisition method and apparatus, and image collection device
CN103888645A (en) Image Capturing Apparatus And Method For Controlling The Same
JP2011134221A (en) Image pickup device, 3d modeling data generating method, and program
JP6739064B1 (en) Imaging device
KR20140140855A (en) Method and Apparatus for controlling Auto Focus of an photographing device
CN113647094A (en) Electronic device, method, and computer-readable medium for providing out-of-focus imaging effects in video
CN107079106A (en) Focusing method and device, image capturing method and device and camera system
KR102552923B1 (en) Electronic device for acquiring depth information using at least one of cameras or depth sensor
WO2011016322A1 (en) Imaging device, editing device, and imaging system
CN111251307B (en) Voice acquisition method and device applied to robot and robot
KR20200043818A (en) Electronic device and method for obtaining images
JP2014222825A (en) Video processing apparatus and video processing method
JP2001249265A (en) Range finder
CN110719449B (en) Focusing method of intelligent projector and related product
KR102385333B1 (en) Electronic device and method for controlling a plurality of image sensors
US11297237B2 (en) Electronic device for auto focusing function and operating method thereof
KR20190098583A (en) Electronic device and method for controlling an image display
KR102156998B1 (en) A method for detecting motion in a video sequence
US20230043122A1 (en) Electronic device comprising multi-camera, and photographing method
CN103546680A (en) Deformation-free omni-directional fisheye photographic device and method for implementing same
KR20210073639A (en) Device for analyzing of image and method thereof
KR102664754B1 (en) Method for Applying Image Effect and the Electronic Device supporting the same
KR102668212B1 (en) Method and electronic device for auto focusing
KR20210058363A (en) Electronic device for using depth information and operating method thereof

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