CN112925478A - Camera storage space control method, intelligent terminal and computer readable storage medium - Google Patents
Camera storage space control method, intelligent terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN112925478A CN112925478A CN202110130554.3A CN202110130554A CN112925478A CN 112925478 A CN112925478 A CN 112925478A CN 202110130554 A CN202110130554 A CN 202110130554A CN 112925478 A CN112925478 A CN 112925478A
- Authority
- CN
- China
- Prior art keywords
- camera
- storage space
- reference value
- data
- preset reference
- 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
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000008859 change Effects 0.000 claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims abstract description 37
- 238000012544 monitoring process Methods 0.000 claims abstract description 21
- 230000006870 function Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 7
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003796 beauty Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Studio Devices (AREA)
Abstract
The invention provides a camera storage space control method, an intelligent terminal and a computer readable storage medium, wherein the method comprises the following steps: monitoring data changes in a camera storage space; and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value. According to the method and the device, the storage space is adjusted according to the data change of the camera storage space, so that the size of the storage space occupied by the camera is reasonably distributed, the operation of other applications is not influenced, meanwhile, the transmission efficiency of the camera data is improved, and the normal use of the camera preview function is ensured.
Description
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a camera storage space control method, an intelligent terminal and a computer readable storage medium.
Background
With the popularization of intelligent devices such as mobile phones, tablets, computers and the like, the intelligent devices are developed based on daily requirements of people, application programs with various functions are derived, and most of various application programs relate to the starting of cameras when used, for example, a camera needs to be started for video call when WeChat is used, and a preview function of the camera needs to be started when a beauty camera takes a picture.
When the application program on the intelligent equipment is used, the preview function of the camera is more applied, and the preview process of the camera is as follows: opening a camera, and creating a session with the camera; acquiring streaming content, wherein the streaming content comprises videos and pictures; and outputting the streaming content to a screen of the intelligent device for displaying.
In the camera preview process, a processor is required to process the streaming content, so that data needs to be exchanged between the memory and the processor continuously, and two problems exist in the process of exchanging data: on the one hand, allocating more memory space for the camera may affect the operation of other applications, and on the other hand, allocating less memory space for the camera may cause the transmission of streaming content to be blocked.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a camera storage space control method, an intelligent terminal and a computer-readable storage medium, aiming at solving the problem that when a camera in the prior art starts a preview function, other application programs of the intelligent terminal are affected to operate or camera stream content transmission is affected.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a camera storage space control method comprises the following steps:
monitoring data changes in a camera storage space;
and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value.
Further, the monitoring data changes in the camera storage space comprises:
monitoring the rate of change of data in the camera storage space;
and when the change rate is higher than a preset rate threshold value, calculating the data change amount.
Further, calculating the data variance includes:
dividing the storage space of the camera into a plurality of sub-storage spaces by a plurality of storage addresses of the camera;
selecting a set number of sub-storage spaces from all the sub-storage spaces;
and taking the ratio of the changed data in the selected sub storage space as the data change amount.
Further, the adjusting the size of the camera storage space according to the corresponding relationship between the data variation and the preset reference value includes:
when the data variation is larger than the preset reference value, increasing the storage space allocated to the camera by a set adjustment gradient until the data variation is smaller than the preset reference value;
and when the data variation is smaller than the preset reference value, reducing the storage space allocated to the camera by setting an adjusting gradient until the data variation is larger than the preset reference value.
Further, the adjusting the size of the camera storage space according to the corresponding relationship between the data variation and the preset reference value further includes:
when the adjusted data variation is larger than the preset reference value, reducing the storage space of the camera by using one set adjustment gradient;
and when the adjusted data variation is smaller than the preset reference value, expanding the storage space of the camera by using one set adjustment gradient.
Further, the setting adjustment gradient is set according to the proportion of the camera storage space to the system storage space.
Further, calculating the preset reference value includes:
extracting a frame synchronization signal of the camera;
shooting a preview picture of the camera;
and determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture.
Further, the determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture includes:
comparing the transmission rate of the frame synchronization signal with the display rate of the preview picture;
when the transmission rate is greater than the display rate, adjusting the frame synchronization signal based on consistency of the transmission rate and the display rate;
and taking the adjusting value of the frame synchronization signal as the preset reference value.
The present invention also provides an intelligent terminal, wherein the intelligent terminal comprises: a memory, a processor and a camera memory space control program stored on the memory and executable on the processor, the camera memory space control program when executed by the processor implementing the steps of the camera memory space control method as described above.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a camera storage space control program, which when executed by a processor implements the steps of the camera storage space control method as described above.
The invention provides a camera storage space control method, an intelligent terminal and a computer readable storage medium, wherein the method comprises the following steps: monitoring data changes in a camera storage space; and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value. According to the method and the device, the storage space is adjusted according to the data change of the camera storage space, so that the size of the storage space occupied by the camera is reasonably distributed, the operation of other applications is not influenced, meanwhile, the transmission efficiency of the camera data is improved, and the normal use of the camera preview function is ensured.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a camera memory space control method according to the present invention;
FIG. 2 is a flowchart of step S100 in the preferred embodiment of the camera memory space control method according to the present invention;
FIG. 3 is a flow chart of calculating the amount of data change in the preferred embodiment of the camera memory space control method according to the present invention;
FIG. 4 is a flowchart of step S200 according to a preferred embodiment of the camera memory space control method of the present invention;
FIG. 5 is a flowchart illustrating a method for calculating a default reference value according to a preferred embodiment of the camera memory space control method of the present invention;
FIG. 6 is a flowchart of step S30 in the preferred embodiment of the camera memory space control method of the present invention;
fig. 7 is a functional block diagram of a preferred embodiment of the intelligent terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
According to the method and the device, the storage space of the camera is reasonably distributed, so that the operation of other applications of the intelligent terminal is not influenced on the premise of ensuring the normal use of the preview function of the camera. It can be understood that the camera of the present invention may be a camera carried on the smart terminal, or an external camera connected to the smart terminal, as long as the storage space of the camera data can be configured, and the setting manner of the camera is not limited too much, as long as the manner of setting the size of the storage space according to the change of the storage space data of the camera in the present invention can be implemented, which is the protection scope claimed by the present invention.
In the following embodiments, the present invention will be explained by taking a camera mounted on a mobile terminal as an example. Referring to fig. 1, fig. 1 is a flowchart illustrating a method for controlling a memory space of a camera according to the present invention. As shown in fig. 1, a method for controlling a memory space of a camera according to an embodiment of the present invention includes the following steps:
and S100, monitoring data change in a camera storage space.
Specifically, hardware may be provided on the mobile terminal to monitor changes in the camera storage space, or an application program may be provided running on the mobile terminal to monitor changes in the camera storage space. Since the storage paths of different applications on the mobile terminal are different, the storage path based on calling the camera when the application is started is associated with the storage path of the application, so that the storage address of the data in the storage space of the camera is determined by the application associated with the storage path and the storage path of the picture download.
S200, adjusting the size of a camera storage space according to the corresponding relation between the data variation and a preset reference value.
In particular, the size of the storage space allocated to the camera can be reasonably adjusted according to the change situation of data when data are exchanged in the storage space of the camera. The variable quantity of the monitoring data can be monitored when the camera is started, and only the part corresponding to the program of the camera called currently and the associated part in the storage space of the camera can be monitored when the monitoring is carried out, so that the data feedback efficiency of the camera is improved, and the system resources occupied by the monitoring are saved.
In one embodiment, as shown in fig. 2, step S100 includes:
and S110, monitoring the change rate of the data in the storage space of the camera.
And S120, when the change rate is higher than a preset rate threshold, calculating the data change amount.
Specifically, by monitoring the change condition of data in the default storage space of the camera, if the overall change speed of the data is too high, the storage space is small, and the storage space of the camera needs to be expanded to improve the transmission efficiency of the data of the camera; if the overall data change speed is too low, the storage space is larger, and the storage space of the camera needs to be reduced to ensure that the operation of other application programs is not influenced and the system operation speed is improved.
For example, when a wechat calls a camera to capture a video, a preview function of the camera needs to be started, and by determining a relationship between a default data exchange rate in a storage space currently allocated to the wechat for camera preview and a current data exchange rate, it may be determined whether the current data exchange rate is normal, if so, the size of the storage space of the camera does not need to be adjusted, and if not, the size of the storage space of the camera needs to be adjusted to ensure normal use of the preview function of the camera.
It is to be understood that the preset rate threshold may be set according to a habit of using the camera by the user, a history storage capacity, a camera call frequency, and the like, or may be set as a fixed value, and a specific setting manner may be customized by the user or may be factory-set or may be automatically set, and a specific setting manner is not limited herein.
In one embodiment, calculating the data variance includes:
counting the capacity of the camera storage space;
and obtaining the data variation by carrying out rate calculation on the variation of the capacity.
Specifically, the capacity of the camera storage space is counted, the change in the capacity of the camera storage space is detected, and the change rate is calculated according to the change amount. The storage space of the camera comprises a plurality of storage paths, the total capacity value of the storage space corresponding to all paths associated with the camera is calculated, then the change condition of data under each storage path is detected, and the ratio of the changed storage paths to the total storage paths is used as the data change quantity.
In an embodiment, as shown in fig. 3, calculating the data variance further includes:
s131, dividing the storage space of the camera into a plurality of sub-storage spaces by using a plurality of storage addresses of the camera.
S132, selecting a set number of sub-storage spaces from all the sub-storage spaces.
And S133, taking the ratio of the changed data in the selected sub storage space as the data change amount.
Specifically, the memory space of the camera may be divided into several sub-memory spaces, wherein the number of the sub-memory spaces is determined according to the number of applications that need to call the camera in the mobile terminal. After the storage space is divided into a plurality of sub-storage spaces, a plurality of sub-storage spaces are randomly selected from all the sub-storage spaces, then the change condition of data on the plurality of sub-storage spaces is detected, and then the average value of the data change on the plurality of sub-storage spaces is used as the data change quantity.
For example, the mobile terminal defaults to memory addresses allocated to the camera memory space as 0x22000000 to 0x30000000, a random number generation program may be invoked to generate a plurality of random addresses in the memory address range, for example, to generate 20 random addresses, and then, the change of data in the 20 random addresses may be monitored, and the number of addresses where data change is recorded, and the proportion of the number of addresses where data change in 20 is taken as the data change amount.
Or, for another example, the mobile terminal defaults to memory addresses allocated to the camera memory space being 0x22000000 to 0x30000000, and may select one address for detection at intervals of several address ranges, that is, select several addresses in the memory space in sequence at fixed intervals for data monitoring, for example, select 0x22000000,0x22001000,0x22002000,0x22003000, and the like, and then monitor the change of data in the selected addresses, record the number of addresses where the data has changed, and then take the ratio of the number of addresses where the data has changed to the number of selected addresses as the data change amount.
In one embodiment, as shown in fig. 4, step S200 includes:
and S210, when the data variation is larger than the preset reference value, increasing the storage space allocated to the camera by setting an adjusting gradient until the data variation is smaller than the preset reference value.
Specifically, a preset reference value is used as a reference, when the data variation is large, the storage space of the camera needs to be enlarged, and the enlarged capacity is gradually adjusted on the basis of a set adjustment gradient until the data variation is close to the preset reference value. When the data variation is close to the preset reference value, the storage space of the camera is enlarged to a certain degree, so that the normal preview function of the camera can be realized, and the phenomenon that the displayed image is blocked due to the fact that the data stream transmission rate is slow due to the fact that the storage space of the camera is too small is avoided.
And S220, when the data variation is smaller than the preset reference value, reducing the storage space allocated to the camera by setting an adjusting gradient until the data variation is larger than the preset reference value.
Specifically, the preset reference value is used as a reference, when the data variation is small, the storage space of the camera needs to be reduced, and the reduced capacity is gradually adjusted on the basis of the set adjustment gradient until the data variation is close to the preset reference value. When the data variation is close to the preset reference value, it indicates that the memory space of the camera is reduced to a certain extent, which does not affect the operation of the system and the normal use of other application programs, and simultaneously, the preview function of the camera can be normally realized.
The camera storage space is reasonably adjusted by setting the preset adjusting gradient, the adjusting degree can be controlled, and the camera storage space can be conveniently adjusted to the size of the required storage space as soon as possible.
In a further embodiment, step S210 is followed by:
and S211, when the adjusted data variation is smaller than the preset reference value, expanding the storage space of the camera by using one set adjustment gradient.
Specifically, the camera storage space may be adjusted excessively, fine adjustment is required at this time, and if the camera storage space is adjusted to be smaller, the preview function of the camera may be affected, so that an adjustment gradient may be added on the basis of the adjusted camera storage space to appropriately enlarge the camera storage space. For example, the actual memory space required for the current CAMERA preview is 5M, the memory space currently allocated to the CAMERA preview is 10M, and the reference value is 6M, so that the memory space capacity is gradually reduced from 10M by 3M increments until 4M, and at this time, an increment of 7M up to 3M needs to be added to complete the final adjustment.
In a further embodiment, step S220 is followed by:
and S220, when the adjusted data variation is larger than the preset reference value, reducing the storage space of the camera by using one set adjustment gradient.
Specifically, the camera storage space may be adjusted excessively, fine adjustment is required at this time, and if the camera storage space is adjusted to a larger size, the operation of other application programs may be affected, so that an adjustment gradient may be reduced on the basis of the adjusted camera storage space size to appropriately reduce the camera storage space.
For example, the actual memory space required for the current camera preview is 18M, the memory space currently allocated to the camera preview is 10M, and the reference value is 17M, so the memory space is expanded by 3M increments from 10M until the memory size is 19M, and at this time, the increment of 3M needs to be reduced to 16M to complete the final adjustment.
Further, the setting adjustment gradient is set according to the proportion of the camera storage space to the system storage space.
Specifically, the preset adjusting gradient can be set according to actual requirements in a user-defined mode. To fit the actual requirements of the memory adjustment, the adjustment gradient may be set to a percentage determination that the memory allocated to the camera occupies the system memory, or that the memory allocated to the camera by the current program occupies the total memory of the camera.
In one embodiment, as shown in fig. 5, calculating the preset reference value includes:
and S10, extracting the frame synchronization signal of the camera.
And S20, shooting a preview picture of the camera.
And S30, determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture.
Specifically, a camera with a display rate higher than that of the current camera can be used to shoot a preview picture of the current camera, so as to obtain the display rate of the preview picture. The frame synchronization signal of the camera refers to a transmission signal of a data stream in the camera, the transmission rate of each frame of picture can be obtained according to the frame synchronization signal, and when the transmission rate and the display rate of the picture are not equal, how much storage space is occupied by the redundancy of the picture to be transmitted is caused, and the smoothness of camera preview is also influenced.
In a further embodiment, as shown in fig. 6, step S30 includes:
s31, comparing the transmission rate of the frame synchronization signal with the display rate of the preview screen.
And S32, when the transmission rate is larger than the display rate, adjusting the frame synchronization signal based on the consistency of the transmission rate and the display rate.
And S33, taking the adjusting value of the frame synchronization signal as the preset reference value.
Specifically, the operation condition of the current camera can be obtained according to the transmission rate of the frame synchronization signal of the current camera and the display rate of the preview picture, when the transmission rate is greater than the display rate, the display comparison is blocked, and when the storage space of the camera is smaller, the capacity of the storage space of the camera can be relieved by reducing the transmission rate to the display rate of the preview picture. The adjusting value of the frame synchronization signal can reflect the adjusting performance of the memory space of the camera, and the adjusting value is set as a preset reference value so that the memory space of the camera can be conveniently adjusted.
It can be understood that the scheme of the present invention is executed when the preview function of the camera is enabled, and after the storage space of the camera is adjusted, the preview function of the camera can be continuously executed, that is, the data stream is normally acquired from the memory and processed to be presented on the display screen of the intelligent terminal, so that the fluency of the preview image display is ensured.
Further, as shown in fig. 7, based on the above camera storage space control method, the present invention also provides an intelligent terminal, which includes a processor 10, a memory 20, a display 30 and a camera 50. Fig. 7 shows only some of the components of the smart terminal, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may be an internal storage unit of the intelligent terminal in some embodiments, such as a hard disk or a memory of the intelligent terminal. The memory 20 may also be an external storage device of the Smart terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the Smart terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the smart terminal. The memory 20 is used for storing application software installed in the intelligent terminal and various data, such as program codes of the installed intelligent terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a camera 50 storage space control program 40, and the camera 50 storage space control program 40 can be executed by the processor 10, so as to implement the camera 50 storage space control method in the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), a microprocessor or other data Processing chip, which is used to run program codes stored in the memory 20 or process data, such as executing the camera 50 memory space control method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the intelligent terminal and for displaying a visual user interface. The components 10-30 of the intelligent terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the camera 50 storage control program 40 in the memory 20:
monitoring data changes in the camera 50 storage space;
and adjusting the size of the storage space of the camera 50 according to the corresponding relation between the data variation and the preset reference value.
Further, the monitoring of data changes in the storage space of the camera 50 includes:
monitoring the rate of change of data in the camera 50 storage space;
and when the change rate is higher than a preset rate threshold value, calculating the data change amount.
Further, calculating the data variance includes:
dividing the memory space of the camera 50 into a plurality of sub-memory spaces by a plurality of memory addresses of the camera 50;
selecting a set number of sub-storage spaces from all the sub-storage spaces;
and taking the ratio of the changed data in the selected sub storage space as the data change amount.
Further, the adjusting the size of the storage space of the camera 50 according to the corresponding relationship between the data variation and the preset reference value includes:
when the data variation is greater than the preset reference value, increasing the storage space allocated to the camera 50 by a set adjustment gradient until the data variation is less than the preset reference value;
when the data variation is smaller than the preset reference value, the storage space allocated to the camera 50 is reduced by a set adjustment gradient until the data variation is larger than the preset reference value.
Further, the adjusting the size of the storage space of the camera 50 according to the corresponding relationship between the data variation and the preset reference value further includes:
when the adjusted data variation is larger than the preset reference value, reducing the storage space of the camera 50 by one set adjustment gradient;
and when the adjusted data variation is smaller than the preset reference value, expanding the storage space of the camera 50 by using one set adjustment gradient.
Further, the setting adjustment gradient is set according to the ratio of the storage space of the camera 50 to the storage space of the system.
Further, calculating the preset reference value includes:
extracting a frame synchronization signal of the camera 50;
taking a preview screen of the camera 50;
and determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture.
Further, the determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture includes:
comparing the transmission rate of the frame synchronization signal with the display rate of the preview picture;
when the transmission rate is greater than the display rate, adjusting the frame synchronization signal based on consistency of the transmission rate and the display rate;
and taking the adjusting value of the frame synchronization signal as the preset reference value.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a camera storage space control program, which when executed by a processor implements the steps of the camera storage space control method as described above.
The invention also provides a system based on the camera storage space control method, which comprises a camera, a processor and a memory, wherein the camera is independently arranged and is in communication connection with the intelligent equipment provided with the processor and the memory.
The processor is used for executing the camera storage space control program and realizing the camera storage space control method when executing the camera storage space control program.
Specifically, the intelligent device is used for monitoring data change in a camera storage space;
and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value.
Further, the monitoring data changes in the camera storage space comprises:
the intelligent equipment monitors the change rate of data in the storage space of the camera;
and when the change rate is higher than a preset rate threshold value, the intelligent equipment calculates the data change amount.
Further, calculating the data variance includes:
the intelligent device divides the storage space of the camera into a plurality of sub-storage spaces by a plurality of storage addresses of the camera;
selecting a set number of sub-storage spaces from all the sub-storage spaces;
and taking the ratio of the changed data in the selected sub storage space as the data change amount.
Further, the adjusting the size of the camera storage space according to the corresponding relationship between the data variation and the preset reference value includes:
when the data variation is larger than the preset reference value, the intelligent equipment increases the storage space allocated to the camera by a set adjustment gradient until the data variation is smaller than the preset reference value;
and when the data variation is smaller than the preset reference value, the intelligent equipment reduces the storage space allocated to the camera by a set adjustment gradient until the data variation is larger than the preset reference value.
Further, the adjusting the size of the camera storage space according to the corresponding relationship between the data variation and the preset reference value further includes:
when the adjusted data variation is larger than the preset reference value, the intelligent equipment reduces the storage space of the camera by one set adjustment gradient;
and when the adjusted data variation is smaller than the preset reference value, the intelligent equipment enlarges the storage space of the camera by one set adjustment gradient.
Further, the setting adjustment gradient is set according to the proportion of the camera storage space to the system storage space.
Further, calculating the preset reference value includes:
the intelligent equipment extracts a frame synchronization signal of the camera;
shooting a preview picture of the camera by the intelligent equipment;
and determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture.
Further, the determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture includes:
comparing the transmission rate of the frame synchronization signal with the display rate of the preview picture;
when the transmission rate is greater than the display rate, adjusting the frame synchronization signal based on consistency of the transmission rate and the display rate;
and taking the adjusting value of the frame synchronization signal as the preset reference value.
The invention provides a camera storage space control method, an intelligent terminal and a computer readable storage medium, wherein the method comprises the following steps: monitoring data changes in a camera storage space; and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value. According to the method and the device, the change condition of the camera storage space data is monitored, the storage space is adjusted according to the data change of the camera storage space, and the camera storage space is reasonably adjusted according to the change condition of the data, so that the size of the storage space occupied by the camera is reasonably distributed, the operation memory of other programs is not occupied, the operation of other applications is not influenced, meanwhile, the transmission efficiency of the camera data is improved, and the normal use of the camera preview function is ensured.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (10)
1. A camera storage space control method is characterized by comprising the following steps:
monitoring data changes in a camera storage space;
and adjusting the size of the camera storage space according to the corresponding relation between the data variation and the preset reference value.
2. The camera memory control method of claim 1, wherein the monitoring for data changes in the camera memory comprises:
monitoring the rate of change of data in the camera storage space;
and when the change rate is higher than a preset rate threshold value, calculating the data change amount.
3. The camera memory space control method according to claim 2, wherein calculating the data change amount includes:
dividing the storage space of the camera into a plurality of sub-storage spaces by a plurality of storage addresses of the camera;
selecting a set number of sub-storage spaces from all the sub-storage spaces;
and taking the ratio of the changed data in the selected sub storage space as the data change amount.
4. The method according to claim 2, wherein the adjusting the size of the camera storage space according to the correspondence between the data variation and the preset reference value comprises:
when the data variation is larger than the preset reference value, increasing the storage space allocated to the camera by a set adjustment gradient until the data variation is smaller than the preset reference value;
and when the data variation is smaller than the preset reference value, reducing the storage space allocated to the camera by setting an adjusting gradient until the data variation is larger than the preset reference value.
5. The method according to claim 4, wherein the adjusting the size of the camera storage space according to the corresponding relationship between the data variation and the preset reference value further comprises:
when the adjusted data variation is larger than the preset reference value, reducing the storage space of the camera by using one set adjustment gradient;
and when the adjusted data variation is smaller than the preset reference value, expanding the storage space of the camera by using one set adjustment gradient.
6. The camera storage space control method according to claim 4 or 5, wherein the setting adjustment gradient is set according to a ratio of the camera storage space to a system storage space.
7. The camera memory space control method according to claim 4 or 5, wherein calculating the preset reference value comprises:
extracting a frame synchronization signal of the camera;
shooting a preview picture of the camera;
and determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture.
8. The camera memory space control method according to claim 7, wherein the determining the preset reference value according to the transmission rate of the frame synchronization signal and the display rate of the preview picture comprises:
comparing the transmission rate of the frame synchronization signal with the display rate of the preview picture;
when the transmission rate is greater than the display rate, adjusting the frame synchronization signal based on consistency of the transmission rate and the display rate;
and taking the adjusting value of the frame synchronization signal as the preset reference value.
9. An intelligent terminal, characterized in that, intelligent terminal includes: memory, a processor and a camera memory control program stored on the memory and executable on the processor, the camera memory control program when executed by the processor implementing the steps of the camera memory control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a camera storage space control program which, when executed by a processor, implements the steps of the camera storage space control method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110130554.3A CN112925478B (en) | 2021-01-29 | 2021-01-29 | Camera storage space control method, intelligent terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110130554.3A CN112925478B (en) | 2021-01-29 | 2021-01-29 | Camera storage space control method, intelligent terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112925478A true CN112925478A (en) | 2021-06-08 |
CN112925478B CN112925478B (en) | 2022-10-25 |
Family
ID=76168863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110130554.3A Active CN112925478B (en) | 2021-01-29 | 2021-01-29 | Camera storage space control method, intelligent terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112925478B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115914236A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Storage space distribution adjusting method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6885395B1 (en) * | 2000-05-26 | 2005-04-26 | Eastman Kodak Company | Selectively adjusting the resolution levels or the quality levels of digital images stored in a digital camera memory |
CN108280902A (en) * | 2018-01-19 | 2018-07-13 | 京东方科技集团股份有限公司 | The document handling method and device of vehicle-mounted monitoring equipment, vehicle-mounted monitoring equipment |
CN110377527A (en) * | 2018-04-13 | 2019-10-25 | 华为技术有限公司 | A kind of method and relevant device of memory management |
CN111567033A (en) * | 2019-05-15 | 2020-08-21 | 深圳市大疆创新科技有限公司 | Shooting device, unmanned aerial vehicle, control terminal and shooting method |
-
2021
- 2021-01-29 CN CN202110130554.3A patent/CN112925478B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6885395B1 (en) * | 2000-05-26 | 2005-04-26 | Eastman Kodak Company | Selectively adjusting the resolution levels or the quality levels of digital images stored in a digital camera memory |
CN108280902A (en) * | 2018-01-19 | 2018-07-13 | 京东方科技集团股份有限公司 | The document handling method and device of vehicle-mounted monitoring equipment, vehicle-mounted monitoring equipment |
CN110377527A (en) * | 2018-04-13 | 2019-10-25 | 华为技术有限公司 | A kind of method and relevant device of memory management |
CN111567033A (en) * | 2019-05-15 | 2020-08-21 | 深圳市大疆创新科技有限公司 | Shooting device, unmanned aerial vehicle, control terminal and shooting method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115914236A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Storage space distribution adjusting method and device, electronic equipment and storage medium |
CN115914236B (en) * | 2023-01-05 | 2023-07-25 | 中国联合网络通信集团有限公司 | Storage space allocation adjustment method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112925478B (en) | 2022-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10698559B2 (en) | Method and apparatus for displaying content on same screen, and terminal device | |
US11190715B2 (en) | System and method for event camera data processing | |
CN112114975B (en) | Processor frequency adjusting method and device, storage medium and electronic equipment | |
CN108322663B (en) | Photographing method, device, terminal and storage medium | |
CN109254849B (en) | Application program running method and device | |
WO2019024641A1 (en) | Data synchronization method and apparatus, storage medium and electronic device | |
CN112752024B (en) | Method and device for controlling multiple external cameras by intelligent terminal | |
CN112346692A (en) | Screen projection data processing method and device and storage medium | |
CN112083988A (en) | Screen refresh rate control method, mobile terminal and computer readable storage medium | |
CN108600675B (en) | Channel path number expansion method, device, network video recorder and storage medium | |
CN112925478B (en) | Camera storage space control method, intelligent terminal and computer readable storage medium | |
CN111259441B (en) | Device control method, device, storage medium and electronic device | |
CN111918098A (en) | Video processing method and device, electronic equipment, server and storage medium | |
CN115454637A (en) | Image rendering method, device, equipment and medium | |
CN115344121A (en) | Method, device, equipment and storage medium for processing gesture event | |
CN110430318B (en) | Mobile terminal WIFI calling control method, mobile terminal and storage medium | |
CN116700816B (en) | Resource management method and electronic equipment | |
CN105338289A (en) | Static interference processing method and apparatus | |
CN113835789A (en) | Rendering method, rendering device, electronic equipment and computer storage medium | |
CN114489892B (en) | Data processing method, device, computer readable storage medium and computer equipment | |
US20220229620A1 (en) | Information processing method, apparatus, electronic device, and storage medium | |
CN112449243B (en) | Video processing method, device, equipment and storage medium | |
CN110515736B (en) | Method, device, terminal and storage medium for limiting background object | |
CN114546171A (en) | Data distribution method, data distribution device, storage medium and electronic equipment | |
CN114546910A (en) | Access control method, device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231101 Address after: 518126 3rd Floor, Xincheng Square, Hedong Community, Xixiang Street, Bao'an District, Shenzhen City, Guangdong Province Patentee after: Shenzhen Zhengyue Intellectual Property Service Co.,Ltd. Address before: 516003 No.86, hechangqi Road West, Zhongkai high tech Zone, Huizhou City, Guangdong Province Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |
|
TR01 | Transfer of patent right |