CN113573157B - Video recording method, video recording device, electronic apparatus, and readable storage medium - Google Patents

Video recording method, video recording device, electronic apparatus, and readable storage medium Download PDF

Info

Publication number
CN113573157B
CN113573157B CN202110837958.6A CN202110837958A CN113573157B CN 113573157 B CN113573157 B CN 113573157B CN 202110837958 A CN202110837958 A CN 202110837958A CN 113573157 B CN113573157 B CN 113573157B
Authority
CN
China
Prior art keywords
display size
video recording
video
target object
zoom magnification
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
CN202110837958.6A
Other languages
Chinese (zh)
Other versions
CN113573157A (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 Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110837958.6A priority Critical patent/CN113573157B/en
Publication of CN113573157A publication Critical patent/CN113573157A/en
Application granted granted Critical
Publication of CN113573157B publication Critical patent/CN113573157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Abstract

The application discloses a video recording method, a video recording device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The video recording method comprises the following steps: receiving a first input of a user to a target object in a video recording interface; responsive to the first input, determining a first display size of the target object in the video recording interface; and in the video recording process, maintaining the display size of the target object in the video recording interface to be a first display size, and outputting a first video.

Description

Video recording method, video recording device, electronic apparatus, and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a video recording method, a video recording device, electronic equipment and a readable storage medium.
Background
When a video is shot, since the angle of view of the camera is almost unchanged, when a shot object (a person or an object) moves, as the distance between the electronic device and the shot object changes, the object displayed in the video is negligibly small, negligibly far and negligibly near, and the shooting effect on the object is poor.
Disclosure of Invention
An object of an embodiment of the present application is to provide a video recording method, a video recording apparatus, an electronic device, and a readable storage medium, which can solve the problem of poor shooting effect on a shooting object in the related art.
In a first aspect, an embodiment of the present application provides a video recording method, including:
receiving a first input of a user to a target object in a video recording interface;
responsive to the first input, determining a first display size of the target object in the video recording interface;
and in the video recording process, maintaining the display size of the target object in the video recording interface to be a first display size, and outputting a first video.
In a second aspect, an embodiment of the present application provides a video recording apparatus, including:
the receiving module is used for receiving a first input of a user to a target object in the video recording interface;
a first determining module for determining a first display size of the target object in the video recording interface in response to the first input;
and the recording module is used for maintaining the display size of the target object in the video recording interface to be a first display size in the video recording process and outputting a first video.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions to implement a method as in the first aspect.
In the embodiment of the present application, the first input of the user is used for selecting a video object (i.e. a target object) on the video recording interface, and when the user selects the target object on the video recording interface, the display size (i.e. the first display size) of the target object in the video recording interface is recorded. And in the process of recording the video of the target object by the electronic equipment, keeping the display size of the target object in the video recording interface unchanged. By the method, even if the distance between the actual position of the target object and the position of the electronic equipment is changed in the video recording process, the size of the target object in the video recording interface is kept unchanged, and the condition of negligence or negligence is avoided. The effect that the video object keeps the same size in the whole video can be achieved without utilizing an application program to cut the video after the video is recorded.
Drawings
Fig. 1 is a schematic flow chart of a video recording method according to an embodiment of the application;
fig. 2 is a schematic diagram of a correspondence relationship between zoom magnification and camera angle of view according to an embodiment of the present application;
FIG. 3 is a second flowchart of a video recording method according to an embodiment of the application;
fig. 4 is a schematic block diagram of a video recording apparatus according to an embodiment of the present application;
FIG. 5 is one of the schematic block diagrams of an electronic device of an embodiment of the present application;
fig. 6 is a second schematic block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application may be practiced otherwise than as specifically illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The video recording method, the video recording device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
An embodiment of the present application provides a video recording method, as shown in fig. 1, including:
step 102, receiving a first input of a user to a target object in a video recording interface;
step 104, responding to the first input, and determining a first display size of the target object in the video recording interface;
and 106, maintaining the display size of the target object in the video recording interface to be a first display size in the video recording process, and outputting a first video.
Wherein the first input includes, but is not limited to, a single click input, a double click input, a long press input, a slide input, and the like. Specifically, the embodiment of the present application does not specifically limit the manner of the first input, and any manner may be implemented.
In this embodiment, the first input of the user is to select a video object (i.e., a target object) on the video recording interface, and when the user selects the target object on the video recording interface, the display size (i.e., the first display size) of the target object in the video recording interface is recorded. And in the process of recording the video of the target object by the electronic equipment, keeping the display size of the target object in the video recording interface unchanged.
By the method, even if the distance between the actual position of the target object and the position of the electronic equipment is changed in the video recording process, the size of the target object in the video recording interface is kept unchanged, and the condition of negligence or negligence is avoided. The effect that the video object keeps the same size in the whole video can be achieved without utilizing an application program to cut the video after the video is recorded.
It should be noted that, the first input of the user may be performed before the video recording, for example, after the user selects the target object, click on the video recording start identifier to start recording the video, and the first input of the user may also be performed during the video recording process.
Further, in one embodiment of the present application, the step of maintaining the display size of the target object in the video recording interface to be the first display size and outputting the first video includes: determining a first zoom magnification according to the first display size; acquiring a second display size of the target object in the video recording process; under the condition that the second display size is not equal to the first display size, determining a second zoom magnification according to the first zoom magnification, the second display size and the first display size, recording video according to the second zoom magnification, and outputting a first video; and under the condition that the second display size is equal to the first display size, recording the video according to the first zoom magnification, and outputting the first video.
In this embodiment, when the display size of the target object in the video recording interface is the first display size, the zoom magnification of the camera of the electronic device is recorded and is noted as the first zoom magnification. During video recording, a second display size of the target object in the video recording interface (i.e., a current display size of the target object during video recording) is determined. If the second display size is not equal to the first display size, the size of the target object in the video recording interface is changed, and at the moment, the zoom magnification of the camera of the electronic equipment is changed. Specifically, according to the first zoom magnification, the second display size and the first display size, determining the second zoom magnification, and controlling a camera of the electronic device to record video according to the second zoom magnification so as to generate a first video.
If the second display size is equal to the first display size, the size of the target object in the video recording interface is not changed, and at the moment, the zoom magnification of the camera of the electronic equipment is maintained, namely the camera of the electronic equipment is controlled to record the video according to the first zoom magnification, so that a first video is generated.
By means of the method, the zoom magnification of the camera of the electronic equipment is changed, so that the size of the angle of view of the camera is changed, the fact that the imaging of a video object in a video is not changed along with the change of the actual distance is guaranteed, and the same size can be kept in a video picture.
Further, in one embodiment of the present application, the step of determining the second zoom magnification according to the first zoom magnification, the second display size, and the first display size includes: calculating a second zoom magnification according to a first formula according to the first zoom magnification, the second display size and the first display size; the first formula is:
wherein Cx2 is the second zoom magnification, cx1 is the first zoom magnification, p1 is the ratio of the first display size to the size of the video recording interface, p2 is the ratio of the second display size to the size of the video recording interface, pi is the circumference ratio, K is the camera angle of view and zoom magnification conversion scaling factor, and B is the camera angle of view and zoom magnification conversion translation factor.
It should be noted that, before receiving the first input of the user to the target object in the video recording interface, the method further includes: and calibrating the conversion relation between the zoom magnification and the camera view angle of the camera of the electronic equipment to obtain a conversion proportional coefficient K of the camera view angle and the zoom magnification and a conversion translational coefficient B of the camera view angle and the zoom magnification.
Specifically, the camera of the electronic device is a continuous optical zoom camera. And shooting a lattice or lattice chart at intervals from the minimum zoom magnification to the highest zoom magnification by using the camera, and calculating the size of the camera view angle under each zoom magnification to obtain the corresponding relation between the zoom magnification and the camera view angle (as shown in fig. 2). According to the fitting calculation of the camera view angle and the zoom magnification change characteristic, the conversion relation between the zoom magnification and the camera view angle can be obtained, namely, the formula (2):
Dg=K×Cx+B (2)
wherein Dg is the camera angle, K is the conversion proportionality coefficient of the camera angle and the zoom magnification, B is the conversion translational coefficient of the camera angle and the zoom magnification, and Cx is the zoom magnification.
The relation obtained by calibration can be a linear equation or a multi-order linear equation, and the higher the order is, the more accurate the relation is.
In this embodiment, when the user determines the target object and the imaging size of the target object according to the requirement, the proportion p1 of the video object to the whole screen (i.e., the video recording interface) is calculated according to the selected video object, and the first zoom magnification Cx1 currently used is recorded. When the video object moves and generates displacement change and the proportion of the imaging size of the video object in the whole picture is detected to be p2, zooming is not started at the moment, the image distance is unchanged, and the relation (3) and the relation (4) are calculated according to the imaging size of the object:
wherein h1 is the initial image height of the target object, h is the height of the target object, u1 is the initial image distance, v1 is the initial object distance, h2 is the image height of the target object after movement, and v2 is the object distance of the target object after movement.
Dividing relation (3) and relation (4) to obtain relation (5):
the image height h2 is p2 and the image height h1 is p1, then the relation (6) is obtained:
if the image height is to be kept unchanged, that is, the imaging size is to be kept unchanged, the relation (3) can obtain that the image height h1 is to be kept unchanged, then u1/v1 (that is, the ratio of the image distance to the object distance) needs to be kept constant, the moved object distance v2 is changed to be (p 1/p 2) times the initial object distance v1, then the moved target image distance u2 is also changed to be (p 1/p 2) times the initial image distance u1, then the ratio of the image distance to the object distance can be kept constant, and the initial image distance u1 is:
wherein L is the chip imaging size of the electronic device, that is, the pixel imaging size multiplied by the pixel size, α is half of the camera field angle Dg, and equation (8) can be obtained from equation (2):
the target image distance u2 is:
to make the target image distance u2, the target field angle D2 should be:
where pi is the circumference ratio.
The second zoom magnification Cx2 is:
in summary, when the target object moves, the second zoom magnification can be calculated according to the imaging size proportion of the target object on the image by the formula (1), and the camera is pushed to zoom to the second zoom magnification, so that the imaging of the target object in the video recording interface in the video recording process is not changed along with the distance, and the same size can be maintained.
Further, in one embodiment of the present application, the step of determining a first display size of the target object in the video recording interface in response to the first input comprises: and in response to the first input, adjusting the display size of the target object in the video recording interface from the third display size to the first display size, wherein the first display size is not equal to the third display size.
In this embodiment, when recording video using a mode with a constant video object size, the user can freely select the video object to be tracked for recording, and can also adjust the proportion of the video object in the imaged video as required. Specifically, the current display size of the target object in the video recording interface may be adjusted (i.e., from the third display size to the first display size) while the user selects the target object.
By the mode, the user can set the size of the video object in the video according to the requirement, the setting flexibility is improved, and the user can record the video conveniently.
Of course, the adjustment of the current display size of the target object may also be performed after the user selects the target object, for example, the user makes a first input to select the target object, and the user makes a second input to the target object to adjust the display size thereof.
In one embodiment of the present application, as shown in fig. 3, the video recording method includes:
step 302, a user starts a video recording function of the electronic equipment;
step 304, the user selects a regular recording mode;
step 306, performing conventional video recording;
step 308, the user selects a recording mode of constant video object size;
step 310, prompting a user to select a target object and a view angle size;
step 312, after the user finishes selecting, the camera software calculates the imaging size of the target object at the current position and records the current zoom magnification;
step 314, the camera software monitors the imaging size of the target object in real time;
step 316, judging whether the current imaging size is changed, if so, entering step 318, otherwise, returning to step 314;
in step 318, the camera software calculates the target zoom magnification, adjusts the zoom of the continuous optical zoom camera to the target zoom magnification, and performs auto-focus recording.
In this embodiment, when a user selects a recording mode with a constant video object size, a continuous optical zoom camera is used to automatically change zoom magnification through camera software, image cropping is not required, a shooting distance is not required to be tested, an effect that a shot target object keeps unchanged in size can be achieved by using one camera, and user experience is improved.
It should be noted that, in the video recording method provided by the embodiment of the present application, the execution body may be a video recording device, or a control module in the video recording device for executing the video recording method. In the embodiment of the present application, a video recording method performed by a video recording device is taken as an example, and the video recording device provided by the embodiment of the present application is described.
An embodiment of the present application provides a video recording apparatus, as shown in fig. 4, the video recording apparatus 400 includes:
a receiving module 402, configured to receive a first input from a user to a target object in a video recording interface;
a first determining module 404, configured to determine a first display size of the target object in the video recording interface in response to the first input;
the recording module 406 is configured to maintain a display size of the target object in the video recording interface to be a first display size during the video recording process, and output a first video.
In this embodiment, the first input of the user is to select a video object (i.e., a target object) on the video recording interface, and when the user selects the target object on the video recording interface, the display size (i.e., the first display size) of the target object in the video recording interface is recorded. And in the process of recording the video of the target object by the electronic equipment, keeping the display size of the target object in the video recording interface unchanged. By the method, even if the distance between the actual position of the target object and the position of the electronic equipment is changed in the video recording process, the size of the target object in the video recording interface is kept unchanged, and the condition of negligence or negligence is avoided. The effect that the video object keeps the same size in the whole video can be achieved without utilizing an application program to cut the video after the video is recorded.
Further, in one embodiment of the present application, the video recording apparatus 400 further includes: the recording module is used for determining a first zoom multiplying power according to the first display size; the second determining module is used for obtaining a second display size of the target object in the video recording process; the third determining module is used for determining the second zoom magnification according to the first zoom magnification, the second display size and the first display size under the condition that the second display size is not equal to the first display size; the recording module is specifically configured to record a video according to the second zoom magnification, output a first video, or record a video according to the first zoom magnification when the second display size is equal to the first display size, and output the first video.
Further, in one embodiment of the present application, the third determining module is specifically configured to calculate the second zoom magnification according to the first formula according to the first zoom magnification, the second display size, and the first display size; the first formula is:
wherein Cx2 is the second zoom magnification, cx1 is the first zoom magnification, p1 is the ratio of the first display size to the size of the video recording interface, p2 is the ratio of the second display size to the size of the video recording interface, pi is the circumference ratio, K is the camera angle of view and zoom magnification conversion scaling factor, and B is the camera angle of view and zoom magnification conversion translation factor.
Further, in one embodiment of the present application, the first determining module is specifically configured to adjust a display size of the target object in the video recording interface from the third display size to the first display size in response to the first input, where the first display size is not equal to the third display size.
The video recording apparatus 400 in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The video recording apparatus 400 in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The video recording apparatus 400 provided in the embodiment of the present application can implement each process implemented in the embodiments of the video recording methods of fig. 1 to 3, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 5, an embodiment of the present application further provides an electronic device 500, including a processor 502, a memory 504, and a program or an instruction stored in the memory 504 and capable of running on the processor 502, where the program or the instruction implements each process of the embodiment of the video recording method when executed by the processor 502, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 602, network module 604, audio output unit 606, input unit 608, sensor 610, display unit 612, user input unit 614, interface unit 616, memory 618, and processor 620.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 620 via a power management system so as to perform functions such as managing charging, discharging, and power consumption via 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein, the user input unit 614 is configured to receive a first input of a target object in the video recording interface from a user; the processor 620 is configured to determine a first display size of the target object in the video recording interface in response to the first input, and maintain the display size of the target object in the video recording interface at the first display size during the video recording process, and output the first video.
In this embodiment, the first input of the user is to select a video object (i.e., a target object) on the video recording interface, and when the user selects the target object on the video recording interface, the display size (i.e., the first display size) of the target object in the video recording interface is recorded. And in the process of recording the video of the target object by the electronic equipment, keeping the display size of the target object in the video recording interface unchanged. By the method, even if the distance between the actual position of the target object and the position of the electronic equipment is changed in the video recording process, the size of the target object in the video recording interface is kept unchanged, and the condition of negligence or negligence is avoided. The effect that the video object keeps the same size in the whole video can be achieved without utilizing an application program to cut the video after the video is recorded.
Further, in one embodiment of the present application, the processor 620 is further configured to determine a first zoom magnification according to the first display size; acquiring a second display size of the target object in the video recording process; under the condition that the second display size is not equal to the first display size, determining a second zoom magnification according to the first zoom magnification, the second display size and the first display size, recording video according to the second zoom magnification, and outputting a first video; and under the condition that the second display size is equal to the first display size, recording the video according to the first zoom magnification, and outputting the first video.
Further, in one embodiment of the present application, the processor 620 is specifically configured to calculate the second zoom magnification according to the first formula according to the first zoom magnification, the second display size, and the first display size; the first formula is:
wherein Cx2 is the second zoom magnification, cx1 is the first zoom magnification, p1 is the ratio of the first display size to the size of the video recording interface, p2 is the ratio of the second display size to the size of the video recording interface, pi is the circumference ratio, K is the camera angle of view and zoom magnification conversion scaling factor, and B is the camera angle of view and zoom magnification conversion translation factor.
Further, in one embodiment of the present application, the processor 620 is specifically configured to adjust the display size of the target object in the video recording interface from the third display size to the first display size in response to the first input, where the first display size is not equal to the third display size.
It should be understood that, in the embodiment of the present application, the radio frequency unit 602 may be configured to receive and transmit information or signals during a call, and specifically, receive downlink data of a base station or send uplink data to the base station. The radio frequency unit 602 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The network module 604 provides wireless broadband internet access to the user, such as helping the user send and receive e-mail, browse web pages, and access streaming media.
The audio output unit 606 may convert audio data received by the radio frequency unit 602 or the network module 604 or stored in the memory 618 into an audio signal and output as sound. Also, the audio output unit 606 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a particular function performed by the electronic device 600. The audio output unit 606 includes a speaker, a buzzer, a receiver, and the like.
The input unit 608 is used for receiving an audio or video signal. The input unit 608 may include a graphics processor (Graphics Processing Unit, GPU) 6082 and a microphone 6084, the graphics processor 6082 processing image data of still pictures or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 612, or stored in the memory 618 (or other storage medium), or transmitted via the radio frequency unit 602 or the network module 604. The microphone 6084 may receive sound and may be capable of processing the sound into audio data, and the processed audio data may be converted into a format output that may be transmitted to the mobile communication base station via the radio frequency unit 602 in case of a phone call mode.
The electronic device 600 also includes at least one sensor 610, such as a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and other sensors.
The display unit 612 is used to display information input by a user or information provided to the user. The display unit 612 may include a display panel 6122, and the display panel 6122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
The user input unit 614 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 614 includes a touch panel 6142 and other input devices 6144. The touch panel 6142, also referred to as a touch screen, may collect touch operations on or near by a user. The touch panel 6142 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 620, and receives and executes commands sent from the processor 620. Other input devices 6144 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 6142 may be overlaid on the display panel 6122, and when the touch panel 6142 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 620 to determine a type of touch event, and then the processor 620 provides a corresponding visual output on the display panel 6122 according to the type of touch event. The touch panel 6142 and the display panel 6122 may be two separate components or may be integrated into one component.
The interface unit 616 is an interface to which an external device is connected to the electronic apparatus 600. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 616 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 600 or may be used to transmit data between the electronic apparatus 600 and an external device.
Memory 618 may be used to store software programs and various data. The memory 618 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for at least one function (e.g., a sound playing function, an image playing function, etc.), etc.; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the mobile terminal, etc. In addition, memory 618 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.
The processor 620 performs various functions of the electronic device 600 and processes data by running or executing software programs and/or modules stored in the memory 618, and invoking data stored in the memory 618, thereby performing overall monitoring of the electronic device 600. Processor 620 may include one or more processing units; preferably, the processor 620 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the video recording method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is provided herein.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the video recording method embodiment can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. A video recording method, comprising:
receiving a first input of a user to a target object in a video recording interface;
responsive to the first input, determining a first display size of the target object in the video recording interface;
in the video recording process, maintaining the display size of the target object in the video recording interface to be the first display size, and outputting a first video;
the step of maintaining the display size of the target object in the video recording interface to be the first display size and outputting a first video includes:
determining a first zoom magnification according to the first display size;
acquiring a second display size of the target object in the video recording process;
calculating a second zoom magnification according to a first formula according to the first zoom magnification, the second display size and the first display size when the second display size is not equal to the first display size, recording video according to the second zoom magnification, and outputting a first video;
the first formula is:
cx2 is the second zoom magnification, cx1 is the first zoom magnification, p1 is the ratio of the first display size to the size of the video recording interface, p2 is the ratio of the second display size to the size of the video recording interface, pi is the circumference ratio, K is the conversion scaling factor of the camera angle and the zoom magnification, and B is the conversion scaling factor of the camera angle and the zoom magnification.
2. The video recording method according to claim 1, wherein the step of maintaining a display size of the target object in the video recording interface to the first display size, outputting a first video, further comprises:
and under the condition that the second display size is equal to the first display size, recording the video according to the first zoom multiplying power, and outputting a first video.
3. The video recording method according to claim 1 or 2, wherein the step of determining a first display size of the target object in the video recording interface in response to the first input comprises:
and in response to the first input, adjusting the display size of the target object in the video recording interface from a third display size to the first display size, wherein the first display size is not equal to the third display size.
4. A video recording apparatus, comprising:
the receiving module is used for receiving a first input of a user to a target object in the video recording interface;
a first determining module, configured to determine a first display size of the target object in the video recording interface in response to the first input;
the recording module is used for maintaining the display size of the target object in the video recording interface to be the first display size in the video recording process and outputting a first video;
the recording module is used for determining a first zoom multiplying power according to the first display size;
the second determining module is used for obtaining a second display size of the target object in the video recording process;
a third determining module, configured to calculate, according to a first formula, a second zoom magnification according to the first zoom magnification, the second display size, and the first display size, when the second display size is not equal to the first display size;
the first formula is:
wherein Cx2 is the second zoom magnification, cx1 is the first zoom magnification, p1 is the ratio of the first display size to the size of the video recording interface, p2 is the ratio of the second display size to the size of the video recording interface, pi is the circumference ratio, K is the camera angle of view and zoom magnification conversion scaling factor, and B is the camera angle of view and zoom magnification conversion scaling factor;
the recording module is specifically configured to record video according to the second zoom magnification, and output a first video.
5. The video recording apparatus according to claim 4, wherein the recording module is further specifically configured to record video according to the first zoom magnification and output a first video when the second display size is equal to the first display size.
6. The video recording apparatus of claim 4 or 5, wherein,
the first determining module is specifically configured to adjust a display size of the target object in the video recording interface from a third display size to the first display size in response to the first input, where the first display size is not equal to the third display size.
7. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the video recording method of any one of claims 1 to 3.
8. A readable storage medium having stored thereon a program or instructions which when executed by a processor performs the steps of the video recording method according to any one of claims 1 to 3.
CN202110837958.6A 2021-07-23 2021-07-23 Video recording method, video recording device, electronic apparatus, and readable storage medium Active CN113573157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110837958.6A CN113573157B (en) 2021-07-23 2021-07-23 Video recording method, video recording device, electronic apparatus, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110837958.6A CN113573157B (en) 2021-07-23 2021-07-23 Video recording method, video recording device, electronic apparatus, and readable storage medium

Publications (2)

Publication Number Publication Date
CN113573157A CN113573157A (en) 2021-10-29
CN113573157B true CN113573157B (en) 2023-09-12

Family

ID=78166795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110837958.6A Active CN113573157B (en) 2021-07-23 2021-07-23 Video recording method, video recording device, electronic apparatus, and readable storage medium

Country Status (1)

Country Link
CN (1) CN113573157B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7193645B1 (en) * 2000-07-27 2007-03-20 Pvi Virtual Media Services, Llc Video system and method of operating a video system
JP2008017090A (en) * 2006-07-05 2008-01-24 Casio Comput Co Ltd Imaging apparatus and electronic zoom method
JP2012053313A (en) * 2010-09-02 2012-03-15 Canon Inc Imaging apparatus, automatic zooming method, and program
CN112714253A (en) * 2020-12-28 2021-04-27 维沃移动通信有限公司 Video recording method and device, electronic equipment and readable storage medium
CN112738397A (en) * 2020-12-29 2021-04-30 维沃移动通信(杭州)有限公司 Shooting method, shooting device, electronic equipment and readable storage medium
WO2021115479A1 (en) * 2019-12-13 2021-06-17 维沃移动通信有限公司 Display control method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6512897B2 (en) * 2015-03-30 2019-05-15 キヤノン株式会社 Zoom control device, control method of zoom control device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7193645B1 (en) * 2000-07-27 2007-03-20 Pvi Virtual Media Services, Llc Video system and method of operating a video system
JP2008017090A (en) * 2006-07-05 2008-01-24 Casio Comput Co Ltd Imaging apparatus and electronic zoom method
JP2012053313A (en) * 2010-09-02 2012-03-15 Canon Inc Imaging apparatus, automatic zooming method, and program
WO2021115479A1 (en) * 2019-12-13 2021-06-17 维沃移动通信有限公司 Display control method and electronic device
CN112714253A (en) * 2020-12-28 2021-04-27 维沃移动通信有限公司 Video recording method and device, electronic equipment and readable storage medium
CN112738397A (en) * 2020-12-29 2021-04-30 维沃移动通信(杭州)有限公司 Shooting method, shooting device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113573157A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN109361865B (en) Shooting method and terminal
CN108668083B (en) Photographing method and terminal
CN109361869B (en) Shooting method and terminal
CN110557566B (en) Video shooting method and electronic equipment
CN110198413B (en) Video shooting method, video shooting device and electronic equipment
CN108989672B (en) Shooting method and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN108600668B (en) Screen recording frame rate adjusting method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN110602389B (en) Display method and electronic equipment
CN110213485B (en) Image processing method and terminal
CN110769174B (en) Video viewing method and electronic equipment
CN109922294B (en) Video processing method and mobile terminal
CN111031248A (en) Shooting method and electronic equipment
CN111145093A (en) Image display method, image display device, electronic device, and storage medium
CN110769156A (en) Picture display method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN109005337B (en) Photographing method and terminal
CN109104564B (en) Shooting prompting method and terminal equipment
CN111770275B (en) Shooting method and device, electronic equipment and readable storage medium
CN111182206B (en) Image processing method and device
CN110913133B (en) Shooting method and electronic equipment
CN109819188B (en) Video processing method and terminal equipment

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