CN111212227B - Method, device and equipment for configuring video resolution of camera and storage medium - Google Patents

Method, device and equipment for configuring video resolution of camera and storage medium Download PDF

Info

Publication number
CN111212227B
CN111212227B CN202010029947.0A CN202010029947A CN111212227B CN 111212227 B CN111212227 B CN 111212227B CN 202010029947 A CN202010029947 A CN 202010029947A CN 111212227 B CN111212227 B CN 111212227B
Authority
CN
China
Prior art keywords
configuration
resolution
video
camera
updating
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
CN202010029947.0A
Other languages
Chinese (zh)
Other versions
CN111212227A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010029947.0A priority Critical patent/CN111212227B/en
Publication of CN111212227A publication Critical patent/CN111212227A/en
Application granted granted Critical
Publication of CN111212227B publication Critical patent/CN111212227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

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

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for configuring video resolution of a camera. The method comprises the following steps: confirming that a camera opening instruction is received, and reading a video resolution list of the camera; generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration; when a video instance is acquired, reading the configuration updating identification; and when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file. The video resolution list can be updated in real time before the video instance is executed based on the resolution reading and configuration of the configuration updating identification, the acquired resolution can be supported by the current camera, and plug-and-play and comprehensive compatibility of the external camera are realized.

Description

Method, device and equipment for configuring video resolution of camera and storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronic peripherals, in particular to a method, a device, equipment and a storage medium for configuring video resolution of a camera.
Background
At present, android devices increasingly use a USB (Universal Serial Bus) camera, a bright spot of the USB device is plug and play, and the configuration of an android video instance on video resolution is realized by reading a configuration file, the configuration file is generated according to a currently accessed camera when the android device is started for the first time or when the android device is connected with the USB camera for the first time, if the camera is replaced, a new camera in the system can multiplex an ID (Identity Document) of an old camera at this time, so that a video resolution list acquired when the android video instance is executed is still the configuration of the old camera, at this time, the new camera in resolution in the list is not necessarily supported, and an error occurs if the resolution which is not supported by the new camera is selected for video recording.
In order to avoid errors occurring when a new camera records, two methods are generally used, the first method is to restore factory settings after the new camera is replaced, and a configuration file can be updated to the configuration of the new camera, but original user data or settings can be emptied. The second method is to bypass the android and operate the camera through Linux, but this violates the unified principle of android, and during development, APP (Application software) designed to use native frame interface for video recording cannot be compatible, i.e. compatibility is poor. The above schemes all bring inconvenience to users.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for configuring video resolution of a camera, and aims to solve the technical problem that in the prior art, an external camera is inconvenient for a user to use after being inserted.
In a first aspect, an embodiment of the present invention provides a method for configuring video resolution of a camera, including:
confirming that a camera opening instruction is received, and reading a video resolution list of the camera;
generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration;
when a video instance is acquired, reading the configuration updating identification;
and when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file.
The generating a video configuration file according to the video resolution list specifically includes:
and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file.
Wherein, confirm that the camera opening instruction is received, before reading the video recording resolution ratio list of camera, still include:
reading an original resolution configuration file prestored in a system into a memory;
when the configuration update identifier is configured to update the resolution configuration, updating the resolution configuration according to the video configuration file, specifically:
and when the configuration updating mark is the updated resolution configuration, replacing the video configuration file with the original resolution configuration file in the memory.
Wherein, when the configuration update identifier is configured to update resolution configuration, after the resolution configuration is updated according to the video configuration file, the method further includes:
resetting the configuration update identification from an updated resolution configuration to a retained resolution configuration.
When the video instance is obtained, after the configuration update identifier is read, the method further includes:
and when the configuration updating mark is that the resolution configuration is kept, executing the video recording example according to the current resolution configuration.
In a second aspect, an embodiment of the present invention further provides a device for configuring video resolution of a camera, where the device includes:
the camera reading unit is used for confirming that a camera opening instruction is received and reading a video resolution list of the camera;
the identifier setting unit is used for generating a video configuration file according to the video resolution list and setting a configuration updating identifier as an updating resolution configuration;
the identification reading unit is used for reading the configuration updating identification when a video example is obtained;
and the resolution updating unit is used for updating the resolution configuration according to the video configuration file when the configuration updating mark is the resolution configuration updating.
The generating a video configuration file according to the video resolution list specifically includes:
and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file.
Wherein, the configuration device further comprises:
the system comprises a configuration presetting unit, a memory and a control unit, wherein the configuration presetting unit is used for reading an original resolution configuration file prestored in the system into the memory;
the resolution updating unit is specifically configured to replace the video configuration file with the original resolution configuration file in the memory when the configuration update identifier is an updated resolution configuration.
Wherein, the configuration device further comprises:
an update flag resetting unit for resetting the configuration update flag from an update resolution configuration to a retention resolution configuration.
Wherein, the configuration device further comprises:
and the example execution unit is used for executing the video recording example according to the current resolution configuration when the configuration updating mark is the maintained resolution configuration.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for configuring the video resolution of the camera according to any one of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for configuring video resolution of a camera according to any one of the first aspect.
According to the configuration method of the video resolution of the camera, the video resolution list of the camera is read by confirming that the camera opening instruction is received; generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration; when a video instance is acquired, reading the configuration updating identification; and when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file. The video resolution list can be updated in real time before the video instance is executed based on the resolution reading and configuration of the configuration updating identification, the acquired resolution can be supported by the current camera, and plug-and-play and comprehensive compatibility of the external camera are realized.
Drawings
Fig. 1 is a flowchart of a method for configuring video resolution of a camera according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for configuring video resolution of a camera according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for configuring video resolution of a camera according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for configuring video resolution of a camera according to an embodiment of the present invention. The configuration method of the camera video resolution provided in the embodiment may be executed by a configuration device of the camera video resolution, the configuration device of the camera video resolution may be implemented in a software and/or hardware manner, and the configuration device of the camera video resolution may be formed by two or more physical entities or may be formed by one physical entity. For example, the configuration device of the camera recording resolution can be a mobile phone, an industrial control computer and the like.
In order to facilitate understanding, in the embodiment, the intelligent interactive tablet is taken as an actual carrier, and a detailed process of resolution configuration when the configuration method of the video resolution of the camera is implemented is exemplarily described. The intelligent interactive panel can be an integrated device which controls the content displayed on the display panel and realizes man-machine interaction operation through a touch technology, and integrates one or more functions of a projector, an electronic whiteboard, a curtain, a sound box, a television, a video conference terminal and the like.
In the existing intelligent interactive flat panel, in order to meet various requirements of field interaction and remote interaction, one or more cameras are generally configured for each intelligent interactive flat panel in an integrated manner, in the function implementation process of the intelligent interactive flat panel, the resolution corresponding to the integrated cameras is generally saved in a default configuration file manner, and when the original integrated cameras are used for video acquisition, the video acquisition task can be completed directly through the resolution recorded in the default configuration file. But when the integrated camera of original dress broke down, perhaps when carrying out interactive activity design based on intelligent interaction flat board the integrated camera of original dress can not realize established design demand, then need external camera to realize various video acquisition tasks. Generally speaking, the external camera is a USB camera, but when the resolution supported by the external camera is not matched with the original default resolution of the intelligent interactive tablet, the situation that the external camera cannot be used when plugged can occur. Aiming at the condition that the camera cannot be normally used, the technical scheme is provided to realize plug and play of any external camera.
Specifically, referring to fig. 1, the method for configuring video resolution of a camera specifically includes:
and S101, confirming that a camera opening instruction is received, and reading a video resolution list of the camera.
The camera opening instruction is used for instructing the camera to open and carry out video acquisition, and in the specific implementation process, the camera opening instruction is sent out through the APP that user operation carried out video acquisition. For example, a user clicks a camera icon of the terminal device to enter a camera operation interface, confirms that video recording starts, detects that the operation of starting video recording confirms that a camera opening instruction is received, that is, enters a camera APP of the terminal device to start video acquisition and can confirm that the camera opening instruction is received. For another example, some social APPs, short video APPs, and communication APPs may record videos for release or transmission, and the camera start instruction may also be determined as received when the video recording start operation is detected in the various video-recordable APPs, that is, the camera start instruction may also be determined as received when the user starts any video acquisition by himself entering the APP installed by the user. In addition, for the remote video conference, a camera is also required to be called to realize the collection and transmission of video data (namely, a video recording process exists), and when the operation of starting the remote video conference is detected, the camera opening instruction can be confirmed to be received.
The recording resolution list is stored in the storage module in the USB camera, and at least one recording resolution (for example, 1280 × 720, 1920 × 1080) supported by the camera is recorded in the recording resolution list, and the recording resolution list is stored in the storage module in the USB camera by a common name, a common format, and/or a common storage path. When the USB camera is in a connection state with the terminal equipment through the USB interface, as long as the terminal equipment confirms that the camera opening instruction is received, the storage module in the USB camera is accessed, and the video resolution list is obtained.
And S102, generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration.
After the video resolution list is read, a new video configuration file can be generated by combining the video resolution supported by the USB camera and the video resolution supported by the image processing of the terminal device, in which the recorded video resolution can be supported by both the USB camera and the image processing of the terminal device, but the video resolution recorded in the video configuration file is not directly saved in the memory, but is used when a specific video instance is executed.
In the scheme, after a camera opening instruction is received, the following video recording process needs to complete the video recording process through the video recording resolution recorded in the video recording configuration file.
And step S103, reading the configuration updating identification when the video example is obtained.
In the video processing process of the terminal equipment, the video of the android equipment mainly provides four high-power energy through libMedia, wherein the four high-power energy comprises video component searching, video capturing, video compressing and video playing, and the interface classes corresponding to the four high-power energy are CLASS XVI DEO _ CLASS CxSystemDeviceFind, CLASS XVIDEO _ CLASS CxDSVideoCapture, CLASS XVIDEO _ CLASS CxDSVideoCompressor and CLASS XVIDEO _ CLASS CxDSVideoPlayer in sequence. The four functions can be realized, and then the recording of a video segment is completed. The configuration of the correct video resolution is based on the implementation of the above four functions, namely the completion of video recording. In the example of video recording, the configuration update flag may be read first by calling any of the above interface classes, so as to confirm the video recording resolution that should be adopted.
And step S104, when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file.
When the video recording example is executed specifically, it is first determined whether the resolution configuration needs to be updated in the current state according to the read configuration update identifier, if it is determined that the resolution configuration needs to be updated currently according to the configuration update identifier, the video recording configuration file in step S103 is obtained, the resolution recorded in the video recording configuration file is configured to be the currently usable resolution, the resolution recorded in the video recording configuration file is firstly the usable resolution of the camera and is also the resolution supported by the system in the terminal device, and when the video recording example is executed based on the resolution in the video recording configuration file, normal video recording (i.e., video data acquisition) can be realized.
In terms of equipment operation, a user only needs to insert the USB camera into the USB interface of the terminal equipment, and then does not need to perform any manual operation related to configuration, and only needs to confirm that the camera is used for recording. Through the design of setting and reading time of the configuration updating identification and corresponding response, the plug-and-play effect of the USB camera is integrally presented to a user, especially for the user who has no concept of abnormity after the USB camera is inserted, the operation trouble of using the USB camera can be effectively reduced, and the use friendliness of the terminal equipment is improved.
Reading a video resolution list of the camera by confirming that a camera opening instruction is received; generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration; when a video instance is acquired, reading the configuration updating identification; and when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file. The video resolution list can be updated in real time before the video instance is executed based on the resolution reading and configuration of the configuration updating identification, the acquired resolution can be supported by the current camera, and plug-and-play and comprehensive compatibility of the external camera are realized.
Example two
Fig. 2 is a flowchart of a method for configuring video resolution of a camera according to a second embodiment of the present invention. The present embodiment is embodied on the basis of the above-described embodiments.
Specifically, referring to fig. 2, the method for configuring video resolution of a camera provided in this embodiment specifically includes:
step S201, reading a configuration file of an original resolution pre-stored in the system into a memory.
The terminal equipment aimed at by the scheme is mainly an android system, and in the existing camera video recording scheme, a video resolution list recorded in a default configuration file is directly read from the android system after a camera is opened, and one video resolution is selected from the video resolution list for video recording. Even after a new camera is accessed, the android system can still use the equipment identifier of the original camera to obtain a video resolution list, which is equivalent to the video resolution list supported by the old camera, and if the new camera does not support a certain video resolution in the video resolution list, an error is reported when the new camera selects the video resolution for recording, so that normal recording cannot be performed.
The configuration of the video resolution is realized based on the original resolution configuration file, and as a whole, the original resolution configuration file is prestored in the android system, and all video resolution configurations supported by the android system are listed in the original resolution configuration file.
And S202, confirming that a camera opening instruction is received, and reading a video resolution list of the camera.
After confirming that the camera opening instruction is received, a video resolution list stored in the new camera device is read through driving, wherein the video resolution list is not directly applied to a video example after being read, but a data processing process of resolution related parameters in a subsequent step is required to be carried out based on the video resolution list.
Step S203, generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration.
In a specific implementation process, the video configuration file may be generated in the following manner: and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file. That is to say, in the process of generating the video configuration file, it is necessary to traverse the resolution parameters recorded in the original resolution configuration file, that is, to read the resolution parameters recorded in the original resolution list in sequence, compare them with the video resolution list stored in the USB camera one by one, determine whether they exist in the video resolution list, delete the resolution parameters that are not recorded in the video resolution list, and after the traversal comparison ends, additionally store the original resolution configuration file to obtain the video configuration file.
The configuration update flag is a flag bit for indicating whether to update the resolution configuration, and may be identified by a custom system attribute, for example, by "sys _ graphic.
And step S204, reading the configuration updating identification when the video example is acquired.
The method comprises the steps that a video recording example confirms that a video recording task exists after a camera opening instruction is confirmed to be received, the video recording task is completed through the video recording example, before the video recording example is executed, the specific resolution ratio of video recording needs to be confirmed, the resolution ratio of video recording needs to be judged in advance whether the resolution ratio information in a memory needs to be updated or not instead of directly reading the existing resolution ratio information in the memory, and the specific judgment process is completed through reading a configuration updating mark. For example, based on the custom system attribute in step S203, each time the MediaProfiles instance in libMedia is acquired, the value of the pre-agreed custom system attribute "sys _ graphic.cam _ profile _ modify" is read. The native libmedia _ jni records the MediaProfiles instances by using the global variable, so that the updating instantaneity of the MediaProfiles instances cannot be realized, and the MediaProfiles instances are acquired in real time when being used.
Step S205, when the configuration update flag is the update resolution configuration, replacing the video configuration file with the original resolution configuration file in the memory.
If the value of the custom system attribute "sys _ graphic, cam _ profile _ modify" is true, it indicates that the original resolution configuration file existing in the memory needs to be updated to complete the update of the resolution configuration, and the update process is implemented by re-reading the video configuration file generated in step S203. When the configuration file needs to be read again, the creationinstance of the configuration file is read again by using creationstandranslacefromxllfile of MediaProfiles, and then the new instance is returned to libmedia _ jni for use.
Furthermore, after the first video recording task is completed after the power is turned on, the video recording instance may end the task, and at this time, the power is turned on and the resolution information in the memory is read and changed when the first video recording instance is executed, and the execution is still started from step S202 when a new video recording task is executed subsequently, that is, after the camera turn-on instruction is confirmed to be received, the video recording resolution list of the camera is read again, and the resetting process of the subsequent video recording resolution is completed.
Step S206, resetting the configuration updating mark from the updating resolution configuration to the maintaining resolution configuration.
In the execution process of the current video recording task, after the video recording resolution is reset based on the currently accessed USB camera, the same resolution configuration may be used in each function implementation process subsequently, and after the configuration update identifier is reset to the resolution retention configuration (i.e., reset from "true" to "false"), the resolution configuration is not changed any more, i.e., the second resolution configuration is not performed in the execution process of a single video recording task.
And step S207, when the configuration updating mark is that the resolution configuration is kept, executing the video recording example according to the current resolution configuration.
When the configuration updating mark is used for keeping the resolution configuration, or after the resolution configuration is updated, reading a currently stored video resolution list from the memory and returning the video resolution list to an upper layer for use, and selecting a proper resolution from the video resolution list for video recording.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for configuring video resolution of a camera according to a third embodiment of the present invention. Referring to fig. 3, the apparatus for configuring video resolution of a camera includes: a camera reading unit 301, an identification setting unit 302, an identification reading unit 303, and a resolution updating unit 304.
The camera reading unit 301 is configured to confirm that a camera opening instruction is received, and read a video resolution list of the camera;
an identifier setting list 302, configured to generate a video configuration file according to the video resolution list, and set a configuration update identifier as an update resolution configuration;
an identifier reading unit 303, configured to read the configuration update identifier when the video instance is obtained;
a resolution updating unit 304, configured to update the resolution configuration according to the video record configuration file when the configuration update flag indicates that the resolution configuration is updated.
On the basis of the above embodiment, the generating a video configuration file according to the video resolution list specifically includes:
and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file.
On the basis of the above embodiment, the configuration apparatus further includes:
the system comprises a configuration presetting unit, a memory and a control unit, wherein the configuration presetting unit is used for reading an original resolution configuration file prestored in the system into the memory;
the resolution updating unit is specifically configured to replace the video configuration file with the original resolution configuration file in the memory when the configuration update identifier is an updated resolution configuration.
On the basis of the above embodiment, the configuration apparatus further includes:
an update flag resetting unit for resetting the configuration update flag from an update resolution configuration to a retention resolution configuration.
On the basis of the above embodiment, the configuration apparatus further includes:
and the example execution unit is used for executing the video recording example according to the current resolution configuration when the configuration updating mark is the maintained resolution configuration.
The device for configuring the video resolution of the camera provided by the embodiment of the invention is included in the device for configuring the video resolution of the camera, can be used for executing the method for configuring the video resolution of the camera provided by the first embodiment and the second embodiment, and has corresponding functions and beneficial effects.
Example four
Fig. 4 is a schematic structural diagram of a device according to a fourth embodiment of the present invention, where the device is a specific hardware presentation scheme of the device for configuring the video resolution of the camera. As shown in fig. 4, the apparatus includes a processor 410, a memory 420, an input device 430, an output device 440, and a communication device 450; the number of the processors 410 in the device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430, the output device 440, and the communication device 450 of the apparatus may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The memory 420 serves as a computer-readable storage medium, and may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the configuration method of the camera recording resolution in the embodiment of the present invention (for example, the camera reading unit 301, the identifier setting unit 302, the identifier reading unit 303, and the resolution updating unit 304 in the configuration apparatus of the camera recording resolution). The processor 410 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 420, that is, the configuration method of the video resolution of the camera is realized.
The memory 420 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 for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 420 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 non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output device 440 may include a display device such as a display screen. The communication device 450 is used for data communication with the image capturing module.
The equipment comprises a configuration device of the video resolution of the camera, can be used for executing a configuration method of any video resolution of the camera, and has corresponding functions and beneficial effects.
EXAMPLE five
The embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used for executing relevant operations in the method for configuring video resolution of a camera provided in any embodiment of the present application when executed by a computer processor, and the method has corresponding functions and advantages.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product.
Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 identical elements in the process, method, article, or apparatus that comprises the element.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The method for configuring the video resolution of the camera is characterized by comprising the following steps:
confirming that a camera opening instruction is received, and reading a video resolution list of the camera;
generating a video configuration file according to the video resolution list, and setting a configuration updating identifier as an updating resolution configuration;
when a video instance is acquired, reading the configuration updating identification;
and when the configuration updating mark is the resolution updating configuration, updating the resolution configuration according to the video configuration file.
2. The configuration method according to claim 1, wherein the generating a video configuration file according to the video resolution list specifically includes:
and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file.
3. The method according to claim 2, wherein before confirming that the camera turn-on command is received and reading the video resolution list of the camera, the method further comprises:
reading an original resolution configuration file prestored in a system into a memory;
when the configuration update identifier is configured to update the resolution configuration, updating the resolution configuration according to the video configuration file, specifically:
and when the configuration updating mark is the updated resolution configuration, replacing the video configuration file with the original resolution configuration file in the memory.
4. The method according to claim 1, wherein when the configuration update flag indicates an update resolution configuration, after updating the resolution configuration according to the video recording configuration file, the method further comprises:
resetting the configuration update identification from an updated resolution configuration to a retained resolution configuration.
5. The configuration method according to claim 4, wherein after reading the configuration update identifier when the video instance is obtained, further comprising:
and when the configuration updating mark is that the resolution configuration is kept, executing the video recording example according to the current resolution configuration.
6. Configuration device of camera video resolution ratio, its characterized in that includes:
the camera reading unit is used for confirming that a camera opening instruction is received and reading a video resolution list of the camera;
the identifier setting unit is used for generating a video configuration file according to the video resolution list and setting a configuration updating identifier as an updating resolution configuration;
the identification reading unit is used for reading the configuration updating identification when a video example is obtained;
and the resolution updating unit is used for updating the resolution configuration according to the video configuration file when the configuration updating mark is the resolution configuration updating.
7. The configuration apparatus according to claim 6, wherein the generating a video recording configuration file according to the video recording resolution list specifically includes:
and comparing the video resolution list with an original resolution configuration file prestored in the system, and deleting the resolutions which do not appear in the video resolution list in the original resolution configuration file to be used as a video configuration file.
8. The configuration device according to claim 7, further comprising:
the system comprises a configuration presetting unit, a memory and a control unit, wherein the configuration presetting unit is used for reading an original resolution configuration file prestored in the system into the memory;
the resolution updating unit is specifically configured to replace the video configuration file with the original resolution configuration file in the memory when the configuration update identifier is an updated resolution configuration.
9. A camera video resolution configuration device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of configuring resolution of camera recordings of any one of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of configuring video recording resolution of a camera according to any one of claims 1 to 5.
CN202010029947.0A 2020-01-13 2020-01-13 Method, device and equipment for configuring video resolution of camera and storage medium Active CN111212227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010029947.0A CN111212227B (en) 2020-01-13 2020-01-13 Method, device and equipment for configuring video resolution of camera and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010029947.0A CN111212227B (en) 2020-01-13 2020-01-13 Method, device and equipment for configuring video resolution of camera and storage medium

Publications (2)

Publication Number Publication Date
CN111212227A CN111212227A (en) 2020-05-29
CN111212227B true CN111212227B (en) 2021-07-23

Family

ID=70787473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010029947.0A Active CN111212227B (en) 2020-01-13 2020-01-13 Method, device and equipment for configuring video resolution of camera and storage medium

Country Status (1)

Country Link
CN (1) CN111212227B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689083B (en) * 2020-11-27 2022-11-25 深兰科技(上海)有限公司 Vehicle-mounted camera configuration method and device, electronic equipment and storage medium
CN114697512B (en) * 2020-12-25 2023-03-24 华为技术有限公司 Configuration method and device
CN116528063B (en) * 2023-07-04 2023-11-03 荣耀终端有限公司 Shooting method, readable storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546689A (en) * 2013-10-11 2014-01-29 Tcl集团股份有限公司 Resolution ratio acquiring method and device of external camera of android system
CN105955894A (en) * 2016-04-29 2016-09-21 青岛海尔智能家电科技有限公司 Camera external connection method for intelligent terminal, and intelligent terminal
CN106027884A (en) * 2016-05-17 2016-10-12 福建星网锐捷通讯股份有限公司 USB camera using method and system of android device
CN106850964A (en) * 2016-12-27 2017-06-13 宇龙计算机通信科技(深圳)有限公司 A kind of multi-cam filming apparatus and its method
CN107465870A (en) * 2017-07-31 2017-12-12 广东天波信息技术股份有限公司 The replacement method and system of external camera

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101620537B1 (en) * 2009-05-13 2016-05-12 삼성전자주식회사 Digital image processing apparatus which is capable of multi-display using external display apparatus, multi-display method for the same, and recording medium which records the program for carrying the same method
CN106254806B (en) * 2016-07-28 2019-05-21 福州瑞芯微电子股份有限公司 A kind of Video data guard method and device
CN106980436A (en) * 2017-02-28 2017-07-25 宇龙计算机通信科技(深圳)有限公司 Record screen method and record screen terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546689A (en) * 2013-10-11 2014-01-29 Tcl集团股份有限公司 Resolution ratio acquiring method and device of external camera of android system
CN105955894A (en) * 2016-04-29 2016-09-21 青岛海尔智能家电科技有限公司 Camera external connection method for intelligent terminal, and intelligent terminal
CN106027884A (en) * 2016-05-17 2016-10-12 福建星网锐捷通讯股份有限公司 USB camera using method and system of android device
CN106850964A (en) * 2016-12-27 2017-06-13 宇龙计算机通信科技(深圳)有限公司 A kind of multi-cam filming apparatus and its method
CN107465870A (en) * 2017-07-31 2017-12-12 广东天波信息技术股份有限公司 The replacement method and system of external camera

Also Published As

Publication number Publication date
CN111212227A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN111212227B (en) Method, device and equipment for configuring video resolution of camera and storage medium
CN110865837B (en) Method and terminal for system upgrade
CN112181554B (en) Interactive interface display method, device, electronic device and storage medium
CN107066377B (en) Page element obtaining method based on Android system and terminal equipment
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN104169913A (en) A picture display method and device and a terminal device
CN110837474A (en) Script recording method, device, terminal and storage medium
CN104423961A (en) Method and system for generating testing script
CN103617209A (en) File management method and file management device for mobile terminal
CN111580712B (en) Desktop customization method, device, equipment, system and storage medium
CN110390641B (en) Image desensitizing method, electronic device and storage medium
CN113626626A (en) Multi-person shared photo storage method, device and equipment
CN110798521B (en) File sharing method and device, electronic equipment and storage medium
CN109522177A (en) A kind of task daily record processing system, method and device
JP7331132B2 (en) Application program installation method, operation method, electronic device, computer readable medium
CN111290882B (en) Data file backup method, data file backup device and electronic equipment
CN110602416B (en) Video processing method, terminal and computer readable storage medium
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN116778975B (en) Method and device for additionally recording optical disc, electronic equipment and readable storage medium
CN116774927B (en) Optical disk data management method, optical disk data management device, electronic equipment and readable storage medium
CN117519912B (en) Mirror image warehouse deployment method, device, storage medium and equipment
CN110347453B (en) Page display method and device
CN112558975B (en) Method and device for switching codes of components, electronic equipment and readable storage medium
CN113132773B (en) Method for entering television application and related equipment
CN110286886B (en) Integrated development environment configuration method, device, electronic equipment and storage medium

Legal Events

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