CN113573157A - Video recording method, video recording device, electronic equipment and readable storage medium - Google Patents
Video recording method, video recording device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN113573157A CN113573157A CN202110837958.6A CN202110837958A CN113573157A CN 113573157 A CN113573157 A CN 113573157A CN 202110837958 A CN202110837958 A CN 202110837958A CN 113573157 A CN113573157 A CN 113573157A
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Studio Devices (AREA)
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; determining a first display size of the target object in the video recording interface in response to the first input; in the video recording process, the display size of the target object in the video recording interface is maintained to be the first display size, and a first video is output.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a video recording method, a video recording apparatus, an electronic device, and a readable storage medium.
Background
When a video is shot, because the field angle of the camera is almost fixed and does not change, when a shot object (a person or an object) moves, along with the change of the distance between the electronic equipment and the shot object, the object appearing in the video is suddenly small and suddenly far and suddenly close, and the shooting effect on the object is poor.
Disclosure of Invention
An object of the embodiments 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 shot object in the related art.
In a first aspect, an embodiment of the present application provides a video recording method, where the method includes:
receiving a first input of a user to a target object in a video recording interface;
determining a first display size of the target object in the video recording interface in response to the first input;
in the video recording process, the display size of the target object in the video recording interface is maintained to be the first display size, and a first video is output.
In a second aspect, an embodiment of the present application provides a video recording apparatus, including:
the receiving module is used for receiving first input of a user on a target object in the video recording interface;
the first determining module is used for responding to the first input and determining a first display size of the target object in the video recording interface;
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 and outputting a first video in the video recording process.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the 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, embodiments of the present application provide 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 this embodiment, the first input of the user is used 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 mode, 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 target object cannot be ignored or overlooked. The video object can keep the same size in the whole video without using an application program to cut the video after the video recording is finished.
Drawings
Fig. 1 is a schematic flowchart of a video recording method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a corresponding relationship between a zoom magnification and a camera field angle according to an embodiment of the present application;
fig. 3 is a second schematic flowchart of a video recording method according to an embodiment of the present 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 present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly 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, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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 video recording method, the video recording apparatus, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
An embodiment of the present application provides a video recording method, as shown in fig. 1, the video recording method includes:
102, receiving a first input of a user to a target object in a video recording interface;
and 106, 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 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 may be any realizable manner.
In this embodiment, the first input of the user is used 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 mode, 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 target object cannot be ignored or overlooked. The video object can keep the same size in the whole video without using an application program to cut the video after the video recording is finished.
It should be noted that the first input by the user may be performed before the video recording, for example, after the user selects the target object, the user clicks the video recording start identifier to start recording the video, and the first input by the user may also be performed during the video recording process.
Further, in an 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 zooming 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 zooming magnification according to the first zooming magnification, the second display size and the first display size, recording a video according to the second zooming 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 recorded as the first zoom magnification. During the video recording process, a second display size of the target object in the video recording interface is determined (i.e. during the video recording process, the current display size of the target object). And if the second display size is not equal to the first display size, indicating that the size of the target object in the video recording interface is changed, and at the moment, changing the zoom magnification of the camera of the electronic equipment. Specifically, the second zoom magnification is determined according to the first zoom magnification, the second display size and the first display size, and the camera of the electronic device is controlled to record a video according to the second zoom magnification to generate a first video.
And 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 kept, namely the camera of the electronic equipment is controlled to record the video according to the first zoom magnification, so that the first video is generated.
By the mode, the zoom magnification of the camera of the electronic equipment is changed, so that the field angle of the camera is changed, the video object is ensured not to be changed along with the change of the actual distance when being imaged in the video, and the same size can be kept in the video picture.
Further, in an 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 zooming magnification according to a first formula according to the first zooming 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 conversion ratio coefficient of the camera angle and the zoom magnification, and B is the conversion translation coefficient of the camera angle and the zoom magnification.
Before receiving a first input of a user to a target object in the video recording interface, the method further includes: the conversion relation between the zoom magnification and the camera field angle of the camera of the electronic equipment is calibrated to obtain a camera field angle and zoom magnification conversion scaling factor K and a camera field angle and zoom magnification conversion translation factor B.
In particular, the camera of the electronic device is a continuous optical zoom camera. Using the camera to shoot a dot matrix or lattice chart at intervals of a certain zoom magnification from the minimum zoom magnification to the maximum zoom magnification, calculating the size of the camera field angle at each zoom magnification, and obtaining the corresponding relation between the zoom magnification and the camera field angle (as shown in fig. 2). According to the camera field angle and the zoom magnification variation characteristic fitting calculation, the conversion relation between the zoom magnification and the camera field angle, namely formula (2), can be obtained:
Dg=K×Cx+B (2)
wherein Dg is the camera angle of view, K is the conversion ratio coefficient of the camera angle of view and the zoom magnification, B is the conversion translation coefficient of the camera angle of view and the zoom magnification, and Cx is the zoom magnification.
The relation obtained by calibration can be a linear equation of one time or a linear equation of multiple orders, and the higher the order is, the more accurate the order is.
In this embodiment, when the user determines the target object and the imaging size of the target object as required, the ratio 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 currently used first zoom magnification Cx1 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 not changed, and the object imaging size is calculated by the relation (3) and the relation (4):
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 the relation (3) and the relation (4) to obtain a relation (5):
if the image height h2 is p2 and the image height h1 is p1, the relation (6) is obtained:
if the image height h1 is to be kept constant, i.e. the imaging size is to be kept constant, as shown in relation (3), u1/v1 (i.e. the ratio of the image distance to the object distance) needs to be kept constant, the moved object distance v2 becomes (p1/p2) times the initial object distance v1, and the moved target image distance u2 also becomes (p1/p2) times the initial image distance u1, so that the ratio of the image distance to the object distance can be kept constant, and the initial image distance u1 is:
wherein L is a chip imaging size of the electronic device, i.e. a pixel imaging size multiplied by a pixel size, α is a half of a camera viewing angle Dg, and a formula (8) is obtained from a formula (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 circumferential 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 ratio 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 does not change along with the distance, and the same size is 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 responding to the first input, and 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 a video in a mode with a constant video object size, a user can freely select a video object to be tracked, and can also adjust the proportion of the video object in the imaged video as required. Specifically, while the user selects the target object, 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).
By the method, 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 performs a first input to select the target object, and then performs a second input to the target object to adjust the display size thereof.
In an embodiment of the present application, as shown in fig. 3, the video recording method includes:
and step 318, calculating the target zooming magnification by the camera software, adjusting the continuous optical zooming camera to zoom to the target zooming magnification, and performing automatic focusing and recording.
In the embodiment, under the condition that the user selects the recording mode with the constant video object size, when a video is recorded, the continuous optical zooming camera is used, zooming magnification is automatically changed through camera software, image cutting is not needed, the shooting distance is not needed to be tested, the effect that the size of a shot target object is kept unchanged can be achieved through one camera, and user experience is improved.
It should be noted that, in the video recording method provided in the embodiment of the present application, the execution main body may be a video recording apparatus, or a control module in the video recording apparatus for executing the video recording method. In the embodiment of the present application, a video recording apparatus is taken as an example to execute a video recording method, and the video recording apparatus provided in 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 of a target object in a video recording interface from a user;
a first determining module 404, configured to determine, in response to a first input, a first display size of the target object in the video recording interface;
and the recording module 406 is configured to maintain the display size of the target object in the video recording interface as the first display size in the video recording process, and output the first video.
In this embodiment, the first input of the user is used 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 mode, 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 target object cannot be ignored or overlooked. The video object can keep the same size in the whole video without using an application program to cut the video after the video recording is finished.
Further, in an embodiment of the present application, the video recording apparatus 400 further includes: the recording module is used for determining a first zooming magnification according to the first display size; the second determining module is used for acquiring a second display size of the target object in the video recording process; the third determining module is used for determining a second zooming magnification according to the first zooming 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; and the recording module is specifically used for recording a video according to the second zoom magnification and outputting the first video, or recording the video according to the first zoom magnification and outputting the first video under the condition that the second display size is equal to the first display size.
Further, in an embodiment of the present application, the third determining module is specifically configured to calculate, according to the first zoom magnification, the second display size, and the first display size, a second zoom magnification according to a first formula; 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 conversion ratio coefficient of the camera angle and the zoom magnification, and B is the conversion translation coefficient of the camera angle and the zoom magnification.
Further, in an embodiment of the application, 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.
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 can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, an in-vehicle 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 (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The video recording apparatus 400 provided in this embodiment of the application can implement each process implemented in the video recording method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 502, a memory 504, and a program or an instruction stored in the memory 504 and executable on the processor 502, where the program or the instruction is executed by the processor 502 to implement each process of the above-mentioned video recording method embodiment, and can achieve the same technical effect, and no further description is provided 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 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 supplying power to the various components, and the power source may be logically connected to the processor 620 via a power management system, so as to manage charging, discharging, and power consumption management functions 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 those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 614 is configured to receive a first input of a target object in the video recording interface from a user; and the processor 620 is used for responding to the first input, determining a first display size of the target object in the video recording interface, maintaining the display size of the target object in the video recording interface to be the first display size during the video recording process, and outputting a first video.
In this embodiment, the first input of the user is used 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 mode, 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 target object cannot be ignored or overlooked. The video object can keep the same size in the whole video without using an application program to cut the video after the video recording is finished.
Further, in an 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 zooming magnification according to the first zooming magnification, the second display size and the first display size, recording a video according to the second zooming 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 an embodiment of the present application, the processor 620 is specifically configured to calculate 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 conversion ratio coefficient of the camera angle and the zoom magnification, and B is the conversion translation coefficient of the camera angle and the zoom magnification.
Further, in an embodiment of the application, the processor 620 is specifically configured to adjust, in response to the first input, a display size of the target object in the video recording interface from a third display size to the first display size, 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 used for transceiving information or transceiving signals during a call, and in particular, receiving downlink data of a base station or sending 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 assisting the user in emailing, browsing web pages, and accessing 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 related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 606 includes a speaker, a buzzer, a receiver, and the like.
The input unit 608 is used to receive audio or video signals. The input Unit 608 may include a Graphics Processing Unit (GPU) 6082 and a microphone 6084, and the Graphics processor 6082 processes image data of a still picture or video obtained by an image capturing apparatus (such as 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 can process the sound into audio data, and the processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 602 in the case of a phone call mode.
The electronic device 600 also includes at least one sensor 610, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and others.
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 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 is also referred to as a touch screen, and can collect touch operations by a user thereon or nearby. The touch panel 6142 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 620, and receives and executes commands sent by 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, and a joystick, which are not described in detail herein.
Further, the touch panel 6142 can be overlaid on the display panel 6122, and when the touch panel 6142 detects a touch operation on or near the touch panel 6142, the touch panel is transmitted to the processor 620 to determine the type of the touch event, and then the processor 620 provides a corresponding visual output on the display panel 6122 according to the type of the touch event. The touch panel 6142 and the display panel 6122 may be provided as two separate components or may be integrated into one component.
The interface unit 616 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (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 external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 618 may be used to store software programs as well as various data. The memory 618 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the 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 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 video recording 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 in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
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 execute a program or an instruction to implement each process of the video recording method embodiment, and the same technical effect can be achieved.
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 an … …" does not exclude the presence of other like elements 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 computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, 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 invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method for video recording, comprising:
receiving a first input of a user to a target object in a video recording interface;
determining a first display size of the target object in the video recording interface in response to the first input;
and 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.
2. The video recording method according to claim 1, wherein the step of maintaining the display size of the target object in the video recording interface to the first display size and outputting the first video comprises:
determining a first zooming magnification according to the first display size;
acquiring a second display size of the target object in a video recording process;
under the condition that the second display size is not equal to the first display size, determining a second zooming magnification according to the first zooming magnification, the second display size and the first display size, recording a video according to the second zooming 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 a first video.
3. The video recording method according to claim 2, wherein the step of determining a second zoom magnification according to the first zoom magnification, the second display size, and the first display size comprises:
calculating the second zooming magnification according to a first formula according to the first zooming 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 circumferential ratio, K is the conversion scale factor of the camera angle and the zoom magnification, and B is the conversion translation factor of the camera angle and the zoom magnification.
4. The video recording method according to any of claims 1 to 3, 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 responding to the first input, and 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.
5. A video recording apparatus, comprising:
the receiving module is used for receiving first input of a user on a target object in the video recording interface;
a first determining module, configured to determine, in response to the first input, a first display size of the target object in the video recording interface;
and 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.
6. The video recording device of claim 5, further comprising:
the recording module is used for determining a first zooming magnification according to the first display size;
the second determining module is used for acquiring a second display size of the target object in the video recording process;
a third determining module, configured to determine 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 recording module is specifically configured to record a video according to the second zoom magnification and output a first video, or record a video according to the first zoom magnification and output a first video when the second display size is equal to the first display size.
7. The video recording device of claim 6,
the third determining module is specifically configured to calculate the 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 circumferential ratio, K is the conversion scale factor of the camera angle and the zoom magnification, and B is the conversion translation factor of the camera angle and the zoom magnification.
8. The video recording device according to any of claims 5 to 7,
the first determining module is specifically configured to adjust, in response to the first input, a display size of the target object in the video recording interface from a third display size to the first display size, where the first display size is not equal to the third display size.
9. 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 video recording method as claimed in any one of claims 1 to 4.
10. A readable storage medium on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the video recording method according to any one of claims 1 to 4.
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 true CN113573157A (en) | 2021-10-29 |
CN113573157B 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 (7)
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 |
US20160295125A1 (en) * | 2015-03-30 | 2016-10-06 | Canon Kabushiki Kaisha | Zooming control device and method for controlling zooming control 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 |
WO2021115479A1 (en) * | 2019-12-13 | 2021-06-17 | 维沃移动通信有限公司 | Display control method and electronic device |
-
2021
- 2021-07-23 CN CN202110837958.6A patent/CN113573157B/en active Active
Patent Citations (7)
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 |
US20160295125A1 (en) * | 2015-03-30 | 2016-10-06 | Canon Kabushiki Kaisha | Zooming control device and method for controlling zooming control device |
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 |
---|---|
CN113573157B (en) | 2023-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513070B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN109361865B (en) | Shooting method and terminal | |
CN109040643B (en) | Mobile terminal and remote group photo method and device | |
CN110557566B (en) | Video shooting method and electronic equipment | |
CN110365907B (en) | Photographing method and device and electronic equipment | |
CN108989672B (en) | Shooting method and mobile terminal | |
CN110557683B (en) | Video playing control method and electronic equipment | |
CN110198413B (en) | Video shooting method, video shooting device and electronic equipment | |
CN111147752B (en) | Zoom factor adjusting method, electronic device, and medium | |
CN110913139B (en) | Photographing method and electronic equipment | |
CN108322523B (en) | Application recommendation method, server and mobile terminal | |
CN110602389B (en) | Display method and electronic equipment | |
CN110266957B (en) | Image shooting method and mobile terminal | |
CN108108079B (en) | Icon display processing method and mobile terminal | |
CN112261218B (en) | Video control method, video control device, electronic device and readable storage medium | |
CN109819166B (en) | Image processing method and electronic equipment | |
CN111031248A (en) | Shooting method and electronic equipment | |
CN108881782B (en) | Video call method and terminal equipment | |
CN114025242A (en) | Video processing method, video processing device and electronic equipment | |
CN111182211B (en) | Shooting method, image processing method and electronic equipment | |
CN110944114B (en) | Photographing method and electronic equipment | |
CN110086998B (en) | Shooting method and terminal | |
CN109639981B (en) | Image shooting method and mobile terminal | |
CN109104573B (en) | Method for determining focusing point and terminal equipment | |
CN109005337B (en) | Photographing method and terminal |
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 |