CN112449165B - Projection method and device and electronic equipment - Google Patents

Projection method and device and electronic equipment Download PDF

Info

Publication number
CN112449165B
CN112449165B CN202011247809.6A CN202011247809A CN112449165B CN 112449165 B CN112449165 B CN 112449165B CN 202011247809 A CN202011247809 A CN 202011247809A CN 112449165 B CN112449165 B CN 112449165B
Authority
CN
China
Prior art keywords
projector
projection
resolution
target
image
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
CN202011247809.6A
Other languages
Chinese (zh)
Other versions
CN112449165A (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.)
Vivo Software Technology Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011247809.6A priority Critical patent/CN112449165B/en
Publication of CN112449165A publication Critical patent/CN112449165A/en
Application granted granted Critical
Publication of CN112449165B publication Critical patent/CN112449165B/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/3179Video signal processing therefor
    • H04N9/3188Scale or resolution adjustment

Abstract

The application discloses a projection method, a projection device and electronic equipment, belongs to the technical field of communication, and can solve the problems that a video image projected by a projector is always fuzzy or the occupied network bandwidth is too large when the video is transmitted due to the difference between the resolution ratio of the electronic equipment to the projector and the resolution ratio of the video transmitted by the projector. The method comprises the following steps: acquiring projection parameters of a projector; determining a target resolution corresponding to the projection parameters according to the projection parameters; if the resolution of the target video is different from the target resolution, adjusting the resolution of the target video to the target resolution, and sending the target video to the projector; wherein, the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of the projection picture of the projector and the projection distance of the projector. The embodiment of the application is applied to a scene that a user projects videos in electronic equipment through a projector.

Description

Projection method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a projection method, a projection device and electronic equipment.
Background
Since the size of the projection screen of the projector is large, users can enjoy the audio-visual experience like home theater, and therefore, more and more users use the projector as a video playback device at home or at work.
In the related art, a user can transmit a video in an electronic device such as a computer, a mobile phone, a tablet, and the like to a projector, and play the video through the projector.
However, since there is a difference between the resolution of the video transmitted to the projector by the electronic device and the resolution of the projector, the video image projected by the projector is often blurred, and the projection effect is poor.
Disclosure of Invention
The embodiment of the application aims to provide a projection method, a projection device and electronic equipment, which can solve the problems that a video picture projected by a projector is always fuzzy or the occupied network bandwidth is too large when a video is transmitted due to the difference between the resolution of the video transmitted to the projector by the electronic equipment and the resolution of the projector.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a projection method, where the method includes: acquiring projection parameters of a projector; determining a target resolution corresponding to the projection parameters according to the projection parameters; if the resolution of the target video is different from the target resolution, adjusting the resolution of the target video to the target resolution, and sending the target video to the projector; wherein, the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of the projection picture of the projector and the projection distance of the projector.
In a second aspect, an embodiment of the present application further provides a projection apparatus, including: the device comprises an acquisition module, a determination module, an adjustment module and a sending module; the acquisition module is used for acquiring projection parameters of the projector; the determining module is used for determining a target resolution corresponding to the projection parameters according to the projection parameters acquired by the acquiring module; the adjusting module is used for adjusting the resolution of the target video to a target resolution under the condition that the resolution of the target video is different from the target resolution; the sending module is used for sending the target video adjusted by the adjusting module to the projector; wherein the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of a projection picture of the projector and the projection distance of the projector.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the projection method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, before sending a video to be projected to a projector, a projection device first obtains projection parameters of the projector, determines a target resolution with a good projection effect according to the projection parameters, and adjusts the resolution of the target video to the target resolution when the resolution of the target video is different from the target resolution. And then, the target video with the adjusted resolution is sent to the projector for projection, so that the projector always keeps higher definition when projecting the low-resolution video in the electronic equipment, or the projector can reduce the size of a video file when projecting the high-resolution video in the electronic equipment, and the transmission efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a projection method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a target image obtained by a projection method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a triangular distance measurement method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface applied by a projection method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a projection apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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 some, but not all, of the embodiments of the present application. 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.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The projection method provided by the embodiment of the application can be applied to a scene that a user projects a video in electronic equipment through a projector.
For example, for a scene in which a user projects a video in an electronic device through a projector, in the related art, when the user projects and plays a video in a mobile phone, a tablet, or a computer through the projector, if a resolution of a video to be projected, which is transmitted to the projector by the electronic device, is smaller than a resolution of a projection picture of the projector, a video picture projected by the projector may appear blurred and have a poor projection effect, which affects viewing experience of the user; if the resolution of the video to be projected transmitted to the projector by the electronic device is greater than the resolution of the projection picture of the projector, the display effect of the projection picture is determined by the resolution of the projection picture, at this time, the display effect of the video with high resolution is almost the same as that of the video with low resolution, but the file size of the video with high resolution is much larger than that of the video with low resolution, and the transmission of the video to be projected with high resolution occupies a larger network bandwidth, which causes waste of network resources.
In view of this problem, in the technical solution provided in the embodiment of the present application, before the electronic device sends the projection video to the projector, the electronic device may first obtain the projection parameters of the projector, and determine, according to the projection parameters, that the target resolution of the projector under the projection parameters can meet the requirement of high-definition playing. And then, the electronic equipment adjusts the resolution of the video to be projected in the equipment to the target resolution. And before the electronic equipment sends the video with the adjusted resolution to the projector, the electronic equipment can also send a vector reference picture with the resolution as the target resolution to the projector, a user can check the definition of the picture in the projection picture of the projector in real time by finely adjusting the resolution of the picture, and after the definition meets the requirement of the user, the electronic equipment adjusts the definition of the video to be projected according to the definition of the adjusted vector reference picture, so that the electronic equipment can calculate the optimal projection resolution of the projector when the video is projected through the projector, further automatically adjust the resolution of the video to be projected, avoid the fuzzy condition of the projection picture, and improve the viewing experience of the user.
The projection method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, a projection method provided in an embodiment of the present application may include the following steps 201 to 203:
step 201, the projection device acquires projection parameters of the projector.
Wherein the projection parameters include at least one of: the size of the projection picture of the projector and the projection distance of the projector. The projection distance is a distance between the projector and the projection screen, and specifically, the projection distance is a distance between the projector and a wall, a curtain, or the like displaying the projection screen.
Optionally, in an embodiment of the present application, two methods for acquiring projection parameters of a projector are provided:
illustratively, the user may acquire the projection parameters of the projector by acquiring the projection configuration information of the projector, or by acquiring an image being projected by the projector and performing image recognition to identify the projection screen size and the projection distance of the projector.
Mode 1:
in the method 1, a user may determine the projection parameters of the projector according to the projection configuration information by acquiring the projection configuration information of the projector.
Illustratively, the step 201 may include the following steps 201a:
step 201a, the projection device obtains projection configuration information of the projector, and calculates projection parameters of the projector according to the projection configuration information.
Illustratively, the projection configuration information may include at least one of: projection focal length, liquid crystal sheet size, projection distance and projection picture width-height ratio. It should be noted that any parameters that can be calculated to obtain the size and the projection distance of the projection screen of the projector belong to the scope of protection of the present application. If the projector supports the projection device, the projection device can also directly acquire the projection parameters from the projector.
Specifically, the projection apparatus can read the projection focal length (unit: mm), the liquid crystal sheet size (unit: inch), the projection distance (unit: m), and the projection screen width-to-height ratio from the projection parameter profile of the projector software system. And calculating the size of the actual projection picture according to the acquired information. Wherein, the calculation formula is: projection screen size = projection distance x liquid crystal sheet size/projection focal length. For example, the projection apparatus obtains, from the projection parameter configuration file, that the current focal length is 24mm, the size of the liquid crystal display is 0.8 inch, and the projection distance is 4 meters. The projection picture size is 133 inches calculated according to the formula, namely the length of the diagonal line of the projection picture is 337.82 centimeters. Then, according to the pythagorean theorem, the length-width ratio of the projection picture size is calculated to be 16:9, length 294.45cm (cm) and width 165.64cm.
Mode 2:
in the method 2, if the projector apparatus cannot acquire the projection parameters from the projection parameter configuration file of the projector, the projection screen size and the projection distance of the projector can be recognized by acquiring the image being projected by the projector and performing image recognition.
Exemplarily, the step 201 may further include the following step 201b:
step 201b, the projection device acquires a target image, and determines a projection parameter corresponding to the target image according to the target image.
Wherein the target image includes: an image of the projector and an image of a projected picture of the projector.
The target image may be an image captured by a user, and when the projection apparatus fails to acquire the projection configuration information from the projector, the projection apparatus may guide the user to capture an image including the projector and a projection screen, that is, an image being projected by the projector.
For example, the projection device may acquire position information of a photographic subject through a deep-view camera provided on the electronic device; images of a photographic subject photographed from different positions by two cameras provided on the electronic device may also be used, and position information of the photographic subject may be determined from the images. And then, the projection device calculates the projection parameters according to the position information.
Illustratively, the photographic subject includes a projector and a projection screen, and the position information includes: position information of the projector, and position information of each feature point in the projection screen. Taking the projection picture as a rectangle as an example, the feature points may be four vertices of the rectangular projection picture.
For example, as shown in fig. 2, the image (i.e., the target image) projected by the projector includes a projector a and a projection screen b. After acquiring the position information of points a1, b2, b3, and b4 in the graph, the electronic device calculates the distance from the point a1 to the projection screen b (i.e., the above projection distance), and the size of the projection screen (e.g., the distance from the point b1 to the point b2, and the distance from the point b2 to the point b 3).
Therefore, the electronic equipment can acquire the projection parameters of the projector through the two modes, and then can calculate the reference resolution of the to-be-projected video according to the projection parameters, so that the to-be-projected video can have higher definition after being projected by the projector.
Step 202, the projection device determines a target resolution corresponding to the projection parameters according to the projection parameters.
It can be understood that when the projector projects a video with a target resolution, the projection image has high definition and a good projection effect.
For example, after the projection device obtains the projection parameters, the shooting device may calculate the target resolution by using a self-learning neural network (GNN). The specific method comprises the following steps: 1. marking the width and height of a large number of actual projection pictures and the width and height of the optimal resolution corresponding to the projection distance as a data set by a professional; 2. vectorizing the width, height and projection picture distance of an actual projection picture into P, and vectorizing the width and height of the corresponding optimal resolution into N; taking P as input and N as output training graph neural network to obtain a prediction network related to projection parameters and output resolution; 3. predicting the parameters of the currently obtained actual projection picture by using the trained graph neural network, and outputting the corresponding reference resolution; 4. and (3) taking the resolution of the final projection (namely the target resolution) as training data, and finely adjusting the parameters of the graph neural network on the projection device, so that the output of the graph neural network is more in line with the habits of users (namely the habits of self-learning users).
And 203, if the resolution of the target video is different from the target resolution, adjusting the resolution of the target video to the target resolution by the projection device, and sending the target video to the projector.
Wherein, the target video is: a video to be projected in an electronic device.
Exemplarily, when the resolution of the target video is greater than the target resolution, the projection apparatus may reduce the resolution of the target video to the target resolution by compressing the video, so as to reduce the size of the video file, reduce the occupation of network resources in the transmission process, improve the transmission efficiency, and prevent the occurrence of the stuck projection picture due to the network problem; when the resolution of the target video is smaller than the target resolution, the projection device can increase the resolution of the target video to the target resolution through a video super-resolution algorithm.
It should be noted that, unlike screen projection in the related art, in the projection method provided in the embodiment of the present application, the electronic device sends a video to be projected in the electronic device to the projector, and the content displayed in the projection screen of the projector is video content, not the screen content of the electronic device. While the projector is projecting video content, the user may perform other operations on the electronic device.
In this way, before sending the video to be projected to the projector, the projection device first obtains the projection parameters of the projector, determines the target resolution with a good projection effect according to the projection parameters, and adjusts the resolution of the target video to the target resolution when the resolution of the target video is different from the target resolution. And then, the target video after the resolution ratio is adjusted is sent to the projector for projection, so that the projector always keeps higher definition when the projector projects the low-resolution video in the electronic equipment, or the size of a video file can be reduced when the projector projects the high-resolution video in the electronic equipment, and the transmission efficiency is improved.
Further optionally, in this embodiment of the application, the electronic device may obtain the position information of each feature point of the photographic object by analyzing and calculating two images of the same photographic object taken from different angles.
Illustratively, the target image includes: a first image and a second image. The first image and the second image are images taken by the electronic device from different angles. Specifically, the first image and the second image are images taken by two cameras of the electronic device from different angles.
Exemplarily, the step 201b may include the following steps 201b1:
step 201b1, the projection device determines a projection parameter corresponding to the target image by using a binocular ranging algorithm based on the first image and the second image.
It should be noted that, when the electronic device takes an image, only one image is shown on the screen, but actually, the electronic device takes one picture by using the main camera and the auxiliary camera, and calculates the actual distance and angle from the object corresponding to each pixel point of the taken picture to the electronic device by using the triangle principle. And then, calculating the actual distance between the pixel points according to the actual distance and the angle from the object corresponding to each pixel point to the electronic equipment, thereby obtaining the size and the projection distance of the projection picture.
For example, as shown in fig. 3, a schematic diagram of the triangular distance measuring method is shown, where a distance between the camera C1 and the camera C1 is L1, an included angle d1 between the camera C1 and the point P, and an included angle d2 between the camera C2 and the point P. The distance L2 from the available point P to the electronic device and the angle between the point P and the electronic device (the angle between the point P and the perpendicular of the straight line C1C 2) are calculated by using the pythagorean theorem. Then, the electronic device can calculate the relative position information of each point (points a1, b2, b3, and b 4) in fig. 2 according to the above method, and further obtain the projection distance of the projector and the size of the projection screen.
In this way, when the projection configuration information of the projector is not acquired, the electronic device may guide the user to shoot an image including the projector and the projection screen, and analyze and calculate the image, thereby obtaining the projection distance and the projection screen size of the projector.
Optionally, in this embodiment of the present application, before sending the target video to the projector, the electronic device may further test the definition of the video with the target resolution projected by the projector by projecting a vector reference diagram.
For example, in step 203, before the projection apparatus sends the target video to the projector, the projection method provided in the embodiment of the present application may further include the following step 203a:
step 203a: the projector transmits the vector reference map having the resolution of the target resolution to the projector.
The vector reference image is used for testing the definition of a projection picture of the projector.
The vector reference map is composed of a series of points. Unlike normal pictures, vector reference pictures are not distorted when scaled.
For example, after the projection apparatus adjusts the resolution of the vector reference map to the target resolution and sends the adjusted resolution to the projector, the user may observe the definition of the vector reference map in the projection screen of the projector, and if the definition is satisfactory, the projection apparatus outputs the target video to the projector in step 203, which may include the following step 203b:
and 203b, outputting the target video to a projector by the projection device based on the first input of the user.
Illustratively, the first input may be: the input of the user on the screen of the electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, and the embodiment of the present invention is not limited. Illustratively, the first input is used to trigger the electronic device to output the target video to the projector.
Therefore, before sending the target video to the projector, the electronic device can send a vector reference image for testing the definition of the projection image, and then send the target video to the projector under the condition that the user is satisfied with the definition of the projection image.
Further optionally, in this embodiment of the application, after the electronic device sends the vector reference map for testing the definition of the projection picture to the projector, if the definition of the projection picture is not satisfactory enough by the user, the electronic device further provides a fine tuning method, which is convenient for the user to adjust the resolution of the vector reference map until the definition of the projection picture meets the position required by the user.
For example, after the step 203a, the projection method provided in the embodiment of the present application may further include the following steps 203c1 and 203c2:
step 203c1, the projection device displays a resolution adjustment control.
And step 203c2, responding to a second input of the resolution adjusting control by the user, adjusting the resolution of the vector reference map by the projection device, and sending the vector reference map after the resolution is adjusted to the projector.
Illustratively, the projection device transmits the vector reference map with the adjusted resolution to the projector in real time, so that the user can view the projection effect in real time.
For example, as shown in fig. 4, a vector reference map resolution adjustment interface is provided for an electronic device. Including a display area 41 displaying a vector reference map, and a resolution adjustment control 42. The user can increase and decrease the resolution of the vector reference map by dragging the slider 43 on the control 42 until the user is satisfied with the sharpness of the projected picture of the projector.
Therefore, when the definition of the projection picture is tested by the electronic equipment, the user can finely adjust the resolution of the vector reference picture for testing the definition, so that the projector has a relatively clear projection picture when projecting a target video.
Further optionally, in this embodiment of the application, after the user adjusts the resolution of the vector reference image and the definition of the projection picture of the projector meets the requirement of the user, the electronic device adjusts the resolution of the target video to the final resolution of the vector reference image.
For example, after the step 203c2, the projection method provided in the embodiment of the present application may further include the following step 203d:
and step 203d, the projection device adjusts the resolution of the target video to the resolution of the adjusted vector reference map based on the third input of the user.
Illustratively, after the definition of the projection picture of the projector meets the requirement of the user, the projection device records the resolution of the vector reference image at the moment, and adjusts the resolution of the target video to the resolution through a video compression or video super-resolution algorithm. And then, sending the target video with the adjusted resolution to a projector.
Therefore, the user can finely adjust the resolution, so that the projection effect of the projector is better when the target video is projected.
According to the projection method provided by the embodiment of the application, before the projection device sends the video to be projected to the projector, the projection parameters of the projector are firstly obtained, the target resolution with a good projection effect is determined according to the projection parameters, and the resolution of the target video is adjusted to be the target resolution under the condition that the resolution of the target video is different from the target resolution. And finally, the target video with the adjusted resolution ratio is sent to a projector for projection, so that the projector always keeps higher definition when the projector projects videos with different resolution ratios in the electronic equipment.
In the projection method provided in the embodiment of the present application, the execution main body may be a projection apparatus, or a control module for executing the projection method in the projection apparatus. In the embodiment of the present application, a projection method performed by a projection apparatus is taken as an example to describe the projection apparatus provided in the embodiment of the present application.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The projection method is exemplarily described with reference to one of the drawings in the embodiments of the present application. In specific implementation, the projection method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
Fig. 5 is a schematic structural diagram of a projection apparatus for implementing the embodiment of the present application, and as shown in fig. 5, the projection apparatus 600 includes: an obtaining module 601, a determining module 602, an adjusting module 603 and a sending module 604; an obtaining module 601, configured to obtain projection parameters of a projector; a determining module 602, configured to determine, according to the projection parameter obtained by the obtaining module 601, a target resolution corresponding to the projection parameter; an adjusting module 603, configured to adjust the resolution of the target video to the target resolution when the resolution of the target video is different from the target resolution; a sending module 604, configured to send the target video adjusted by the adjusting module 603 to the projector; wherein, the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of the projection picture of the projector and the projection distance of the projector.
Optionally, the obtaining module 601 is further configured to obtain projection configuration information of the projector; the determining module 602 is further configured to calculate to obtain a projection parameter of the projector according to the projection configuration information obtained by the obtaining module 601; or, the obtaining module 601 is further configured to obtain a target image; the determining module 602 is further configured to determine, according to the target image acquired by the acquiring module 601, a projection parameter corresponding to the target image; wherein the target image includes: an image of the projector and an image of a projected picture of the projector.
Optionally, the target image comprises: a first image and a second image; the first image and the second image are images shot by the electronic equipment from different angles; the determining module 602 is specifically configured to determine a projection parameter corresponding to the target image by using a binocular range finding algorithm based on the first image and the second image.
Optionally, the sending module 604 is further configured to send the vector reference map with the target resolution to the projector; the vector reference image is used for testing the definition of a projection picture of the projector; a sending module 604, specifically configured to output a target video to a projector based on a first input of a user; the first input is used to trigger the electronic device to output the target video to the projector.
Optionally, the electronic device 600 further includes: the device still includes: a display module 605; a display module 605 for displaying the resolution adjustment control; an adjusting module 603, configured to adjust the resolution of the vector reference map in response to a second input by the user to the resolution adjustment control displayed by the display module 605; the sending module 604 is further configured to send the vector reference map with the resolution adjusted by the adjusting module 603 to the projector.
Optionally, the adjusting module 603 is further configured to adjust the resolution of the target video to the adjusted resolution of the vector reference map based on a third input of the user.
The projection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. Illustratively, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The projection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The projection apparatus provided in the embodiment of the present application can implement each process implemented by the projection apparatus in the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
According to the projection device provided by the embodiment of the application, before the projection device sends the video to be projected to the projector, the projection parameters of the projector are firstly acquired, the target resolution with a good projection effect is determined according to the projection parameters, and the resolution of the target video is adjusted to be the target resolution under the condition that the resolution of the target video is different from the target resolution. And finally, the target video with the adjusted resolution is sent to the projector for projection, so that the projector can always keep higher definition when the projector projects videos with different resolutions in the electronic equipment.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of being executed on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the foregoing projection method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The network module 102 or the input unit 104 is configured to obtain projection parameters of the projector; a processor 110, configured to determine, according to the projection parameters acquired by the network module 102 or the input unit 104, a target resolution corresponding to the projection parameters; a processor 110, configured to adjust a resolution of the target video to a target resolution if the resolution of the target video is different from the target resolution; a network module 102 for transmitting the target video adjusted by the processor 110 to the projector; wherein, the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of the projection picture of the projector and the projection distance of the projector.
In this way, before sending a video to be projected to the projector, the projection device first obtains the projection parameters of the projector, determines a target resolution with a good projection effect according to the projection parameters, and adjusts the resolution of the target video to the target resolution when the resolution of the target video is different from the target resolution. And then, the target video with the adjusted resolution is sent to the projector for projection, so that the projector always keeps higher definition when projecting the low-resolution video in the electronic equipment, or the projector can reduce the size of a video file when projecting the high-resolution video in the electronic equipment, and the transmission efficiency is improved.
Optionally, the network module 102 is further configured to obtain projection configuration information of the projector; the processor 110 is further configured to calculate projection parameters of the projector according to the projection configuration information acquired by the network module 102; or, the input unit 104 is further used for acquiring a target image; a processor 110, further configured to determine a projection parameter corresponding to the target image according to the target image acquired by the input unit 104; wherein the target image includes: an image of the projector and an image of a projected picture of the projector.
Therefore, the electronic equipment can acquire the projection parameters of the projector in the two modes, and then can calculate the reference resolution of the video to be projected according to the projection parameters, so that the video to be projected can have higher definition after being projected by the projector.
Optionally, the target image comprises: a first image and a second image; the first image and the second image are images shot by the electronic equipment from different angles; the processor 110 is specifically configured to determine a projection parameter corresponding to the target image by using a binocular range finding algorithm based on the first image and the second image.
In this way, when the projection configuration information of the projector is not acquired, the electronic device may guide the user to shoot an image including the projector and the projection screen, and analyze and calculate the image, thereby obtaining the projection distance and the projection screen size of the projector.
Optionally, the network module 102 is further configured to send the vector reference map with the resolution equal to the target resolution to the projector; the vector reference graph is used for testing the definition of a projection picture of the projector; a network module 102, specifically configured to output a target video to a projector based on a first input of a user; the first input is used to trigger the electronic device to output the target video to the projector.
Therefore, before sending the target video to the projector, the electronic device can send a vector reference picture for testing the definition of the projection picture, and then send the target video to the projector under the condition that the user is satisfied with the definition of the projection picture.
Optionally, a display unit 106, configured to display the resolution adjustment control; a processor 110, configured to adjust a resolution of the vector reference map in response to a second input of the resolution adjustment control displayed by the display unit 106 by the user; the network module 102 is further configured to send the resolution-adjusted vector reference map to the projector, where the resolution is adjusted by the processor 110.
Therefore, when the definition of the projection picture is tested by the electronic equipment, the user can finely adjust the resolution of the vector reference picture for testing the definition, so that the projector has a relatively clear projection picture when projecting a target video.
Optionally, the processor 110 is further configured to adjust the resolution of the target video to the adjusted resolution of the vector reference map based on a third input of the user.
Therefore, the user can finely adjust the resolution, so that the projection effect of the projector is better when the target video is projected.
According to the electronic device provided by the embodiment of the application, before the projection device sends the video to be projected to the projector, the projection parameters of the projector are firstly acquired, the target resolution with a good projection effect is determined according to the projection parameters, and the resolution of the target video is adjusted to be the target resolution under the condition that the resolution of the target video is different from the target resolution. And finally, the target video with the adjusted resolution is sent to the projector for projection, so that the projector can always keep higher definition when the projector projects videos with different resolutions in the electronic equipment.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the projection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the projection method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (6)

1. A projection method applied to an electronic device is characterized by comprising the following steps:
acquiring projection parameters of a projector;
determining a target resolution corresponding to the projection parameters according to the projection parameters;
if the resolution of the target video is different from the target resolution, adjusting the resolution of the target video to the target resolution, and sending the target video to the projector;
wherein the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of a projection picture of the projector and the projection distance of the projector;
the acquiring of the projection parameters of the projector includes:
if the projection parameters are not acquired from the projection configuration information of the projector, acquiring a target image, and determining projection parameters corresponding to the target image according to the target image;
wherein the target image comprises: an image of the projector and an image of a projected picture of the projector; the target image is an image shot by a user;
before the sending the target video to the projector, the method further comprises:
sending a vector reference map with the resolution of the target resolution to the projector; the vector reference graph is used for testing the definition of a projection picture of the projector;
displaying a resolution adjustment control on the electronic equipment;
responding to a second input of the resolution adjusting control by the user, adjusting the resolution of the vector reference map, and sending the vector reference map with the adjusted resolution to the projector;
and adjusting the resolution of the target video to the resolution of the adjusted vector reference map based on a third input of the user.
2. The method of claim 1, wherein the target image comprises: a first image and a second image; the first image and the second image are images shot by the electronic equipment from different angles;
the determining, according to the target image, a projection parameter corresponding to the target image includes:
and determining a projection parameter corresponding to the target image by adopting a binocular ranging algorithm based on the first image and the second image.
3. The method of claim 1,
the outputting the target video to the projector includes:
outputting the target video to the projector based on a first input of a user; the first input is used for triggering the electronic equipment to output the target video to the projector.
4. A projection device, the device comprising: the device comprises an acquisition module, a determination module, an adjustment module, a display module and a sending module;
the acquisition module is used for acquiring projection parameters of the projector;
the determining module is used for determining a target resolution corresponding to the projection parameters according to the projection parameters acquired by the acquiring module;
the adjusting module is used for adjusting the resolution of the target video to a target resolution under the condition that the resolution of the target video is different from the target resolution;
the sending module is used for sending the target video adjusted by the adjusting module to the projector;
wherein the target video is: a video to be projected in the electronic device; the projection parameters include at least one of: the size of a projection picture of the projector and the projection distance of the projector;
the acquisition module is specifically configured to acquire a target image if the projection parameters are not acquired from the projection configuration information of the projector;
the determining module is specifically configured to determine, according to the target image acquired by the acquiring module, a projection parameter corresponding to the target image; wherein the target image comprises: an image of the projector and an image of a projected picture of the projector; the target image is an image shot by a user;
the sending module is further configured to send a vector reference map with the resolution being the target resolution to the projector; the vector reference graph is used for testing the definition of a projection picture of the projector;
the display module is used for displaying the resolution adjustment control;
the adjusting module is used for responding to a second input of the resolution adjusting control displayed by the display module by a user and adjusting the resolution of the vector reference map;
the sending module is further configured to send the vector reference map with the resolution adjusted by the adjusting module to the projector;
the adjusting module is further configured to adjust the resolution of the target video to the resolution of the adjusted vector reference map based on a third input of the user.
5. The apparatus of claim 4,
the sending module is specifically configured to output the target video to the projector based on a first input of a user; the first input is used for triggering the electronic equipment to output the target video to the projector.
6. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the projection method of any of claims 1 to 3.
CN202011247809.6A 2020-11-10 2020-11-10 Projection method and device and electronic equipment Active CN112449165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011247809.6A CN112449165B (en) 2020-11-10 2020-11-10 Projection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011247809.6A CN112449165B (en) 2020-11-10 2020-11-10 Projection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112449165A CN112449165A (en) 2021-03-05
CN112449165B true CN112449165B (en) 2023-03-31

Family

ID=74736636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011247809.6A Active CN112449165B (en) 2020-11-10 2020-11-10 Projection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112449165B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612979A (en) * 2021-07-26 2021-11-05 深圳市炬力北方微电子有限公司 Projection method, electronic equipment and computer equipment
CN114710652A (en) * 2022-04-19 2022-07-05 江苏镭创高科光电科技有限公司 Projection picture adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1608229A (en) * 2001-12-26 2005-04-20 富可视股份有限公司 Image-rendering device
CN101150704A (en) * 2006-09-19 2008-03-26 富士施乐株式会社 Image processing system, image processing method, and program product therefor
WO2013178213A2 (en) * 2012-06-01 2013-12-05 Cornelius Heiko Method for automatic imaging correction of a projector
CN104284119A (en) * 2013-07-10 2015-01-14 科视数字系统加拿大股份有限公司 Apparatus, system and method for projecting images onto predefined portions of objects

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7180475B2 (en) * 2001-06-07 2007-02-20 Infocus Corporation Method and apparatus for wireless image transmission to a projector
JP2007066012A (en) * 2005-08-31 2007-03-15 Toshiba Corp Apparatus, method and program for drawing image
JP4849885B2 (en) * 2005-12-20 2012-01-11 株式会社ソニー・コンピュータエンタテインメント Video encoding apparatus, video encoding method, and electronic apparatus using the same
CN101232614A (en) * 2007-09-30 2008-07-30 南靖万利达科技有限公司 Wireless image transmitting instrument and data processing method thereof
CN201152921Y (en) * 2007-11-07 2008-11-19 中兴通讯股份有限公司 External mobile phone projecting system
CN103995416B (en) * 2013-01-18 2015-08-26 光宝科技股份有限公司 Laser projection device and method of operating thereof
CN104038741A (en) * 2014-06-17 2014-09-10 南京物联传感技术有限公司 Projection method for video data
CN105812694B (en) * 2014-12-29 2024-02-06 中强光电股份有限公司 Projection system and projection method thereof
CN106937100B (en) * 2017-01-23 2019-10-18 福建星网锐捷通讯股份有限公司 A kind of video image projecting method and system based on Miracast
CN110827288B (en) * 2019-10-08 2022-08-12 歌尔光学科技有限公司 Method and device for extracting target image in projector definition test
CN111506282A (en) * 2020-04-21 2020-08-07 深圳市鸿合创新信息技术有限责任公司 Display parameter adjusting method and device, connecting equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1608229A (en) * 2001-12-26 2005-04-20 富可视股份有限公司 Image-rendering device
CN101150704A (en) * 2006-09-19 2008-03-26 富士施乐株式会社 Image processing system, image processing method, and program product therefor
WO2013178213A2 (en) * 2012-06-01 2013-12-05 Cornelius Heiko Method for automatic imaging correction of a projector
CN104284119A (en) * 2013-07-10 2015-01-14 科视数字系统加拿大股份有限公司 Apparatus, system and method for projecting images onto predefined portions of objects

Also Published As

Publication number Publication date
CN112449165A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
WO2019104705A1 (en) Image processing method and device
CN110012209B (en) Panoramic image generation method and device, storage medium and electronic equipment
CN107592466B (en) Photographing method and mobile terminal
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN110913131B (en) Moon shooting method and electronic equipment
CN110933303B (en) Photographing method and electronic equipment
CN112449165B (en) Projection method and device and electronic equipment
CN112637500B (en) Image processing method and device
CN111246106A (en) Image processing method, electronic device, and computer-readable storage medium
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN116472715A (en) Display device and camera tracking method
CN110769156A (en) Picture display method and electronic equipment
CN110807769B (en) Image display control method and device
CN113866782A (en) Image processing method and device and electronic equipment
CN113709368A (en) Image display method, device and equipment
CN110913133B (en) Shooting method and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN111432122A (en) Image processing method and electronic equipment
CN110545385A (en) image processing method and terminal equipment
CN112584110B (en) White balance adjusting method and device, electronic equipment and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN115589532A (en) Anti-shake processing method and device, electronic equipment and readable storage medium
CN112153291B (en) Photographing method and electronic equipment
CN111131706B (en) Video picture processing method and electronic equipment
EP3799415A2 (en) Method and device for processing videos, and medium

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
TR01 Transfer of patent right

Effective date of registration: 20230712

Address after: Room 101, Floor 1, Unit 101, Building 303, Yard A10, Jiuxianqiao North Road, Chaoyang District, Beijing, 100020

Patentee after: WEIWO SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: No.168 Jinghai East Road, Chang'an Town, Dongguan City, Guangdong Province

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right