CN112887599B - Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium - Google Patents

Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium Download PDF

Info

Publication number
CN112887599B
CN112887599B CN202110097646.6A CN202110097646A CN112887599B CN 112887599 B CN112887599 B CN 112887599B CN 202110097646 A CN202110097646 A CN 202110097646A CN 112887599 B CN112887599 B CN 112887599B
Authority
CN
China
Prior art keywords
mobile terminal
power consumption
consumption data
threshold value
photos
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
CN202110097646.6A
Other languages
Chinese (zh)
Other versions
CN112887599A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110097646.6A priority Critical patent/CN112887599B/en
Publication of CN112887599A publication Critical patent/CN112887599A/en
Application granted granted Critical
Publication of CN112887599B publication Critical patent/CN112887599B/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
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Abstract

The invention discloses a method, a device, terminal equipment and a storage medium for reducing redundant photos of a mobile terminal. The invention controls the photographing function according to the change of the photographed image and the power consumption change of the mobile terminal, reduces redundant photos, improves the problem that the excessive space of the mobile terminal memory is inefficiently occupied by the redundant photos, and provides convenience for the use of users.

Description

Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium
Technical Field
The present invention relates to the field of mobile terminal photographing technologies, and in particular, to a method and an apparatus for reducing redundant photos of a mobile terminal, a terminal device, and a storage medium.
Background
Today of science and technology assisted life, people and various mobile terminal devices such as the movie have been surrounded by mobile terminal devices such as cell-phones, flat boards in the life for a long time, and the mobile terminal devices have slowly permeated into all corners of people's life. In the prior art, mobile terminal equipment has a photographing function, the photographing function of the mobile terminal equipment is more and more powerful along with the development of a digital camera technology, and due to the portability, convenience and high-quality image quality, a low-end camera is almost driven out of the market in short years, and photographing by using the mobile terminal becomes the first choice for photographing in daily life and during traveling. With the wide application of the mobile terminal photographing function, a user can photograph at any time, a large number of photos can be easily stored and accumulated in the mobile terminal, the photos occupy a large amount of storage space, the photos often have a large number of redundant photos with poor photographing effect, so that the precious memory space of the mobile terminal is inefficiently occupied by the redundant photos, and the use experience of the mobile terminal equipment is greatly influenced, for example, the mobile terminal system often prompts that the use space is insufficient and the space needs to be cleaned.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a terminal device and a storage medium for reducing redundant photos of a mobile terminal, aiming at solving the problem that when a user takes a picture with a camera of the mobile terminal device in the prior art, the shot photos have many redundant photos, and the space of a memory of the mobile terminal is inefficiently occupied by the redundant photos.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a method for reducing redundant photos of a mobile terminal, wherein the method comprises the following steps:
when the mobile terminal takes a picture, the mobile terminal system detects the change of the shot image;
when the shot image is not changed within the set time, the mobile terminal system acquires power consumption data of the mobile terminal at set time intervals;
when the acquired power consumption data changes slightly in a set time period, acquiring current power consumption data, and setting a first threshold value and a second threshold value according to the acquired current power consumption data;
the mobile terminal system monitors power consumption data of the mobile terminal, and when the power consumption data is larger than the first threshold value or smaller than the second threshold value, photographing is forbidden; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
In a second aspect, an embodiment of the present invention further provides an apparatus for reducing redundant photos of a mobile terminal, where the apparatus includes:
the image detection module is used for detecting the change of an image by the mobile terminal system when the mobile terminal takes a picture;
the power consumption data acquisition module is used for acquiring the power consumption data of the mobile terminal by the mobile terminal system at intervals of set time;
the power consumption data monitoring module is used for setting a first threshold value and a second threshold value according to the acquired power consumption data, comparing and judging the first threshold value and the second threshold value with the acquired current power consumption data, and generating an interrupt signal;
the photographing control module is used for detecting the power consumption data of the mobile terminal detected by the power consumption detection module, and forbidding photographing when the power consumption data is larger than the first threshold value or smaller than the second threshold value; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a program stored in the memory and running on the processor, and when the processor executes the program for reducing redundant photos of a mobile terminal, the step of implementing the method for reducing redundant photos of a mobile terminal according to any one of the above schemes is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a program for reducing redundant photos of a mobile terminal is stored, and when the processor executes the program for reducing redundant photos of a mobile terminal, the processor implements the steps of the method for reducing redundant photos of a mobile terminal in any of the above solutions.
Has the advantages that: compared with the prior art, the invention provides a method for reducing redundant photos of a mobile terminal, which comprises the steps of firstly detecting the change of an image when the mobile terminal takes a photo, acquiring power consumption data at intervals of a set time when the image is not changed within the set time, setting a first threshold value and a second threshold value according to the power consumption data, monitoring the power consumption data of the mobile terminal, comparing the power consumption data with the first threshold value and the second threshold value, and forbidding the photo taking or starting the photo taking according to a comparison result, so that the generation of the redundant photos is reduced, the problem that precious storage space in the mobile terminal is occupied by a large number of redundant photos is avoided, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a detailed implementation of a method for reducing redundant photos of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of an apparatus for reducing redundant photos of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of an internal structure of a mobile terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects 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.
Today, people and various terminal devices such as mobile phones, tablets, computers and televisions are surrounded by people and various terminal devices such as videos and videos in life. Terminal devices have slowly penetrated into the corners of people's lives. Among them, mobile terminal devices such as mobile phones are more essential for life of people. With the advance of technology, mobile terminal devices have no longer been used as mobile portable telephones or short message displays, and have become important tools for people to carry with them, such as communication devices, information centers, memories, navigators, clocks, perpetual calendars, cameras and the like. Particularly, with the rapid development of the digital technology, the camera of the mobile terminal has higher and higher photographing pixels, stronger and stronger photographing function, and better photographed image quality. The portable digital camera is convenient to carry, use, have high image quality and is convenient to show and share, and the middle-low grade digital camera is almost driven out of the market in short years, so that the portable digital camera becomes a preferred choice for photographing and persisting in daily life and during traveling, and provides convenience for people to record and share events nearby at any time. Because the camera function of the mobile terminal is widely used, the speed of saving photos by the mobile terminal is very quick, the photos often occupy a large storage space of the mobile terminal, the storage space of the mobile terminal is limited, and the normal use of the mobile terminal is affected when a large amount of storage space is occupied. It is necessary to control the speed of saving photos and reduce the occupied storage space of the mobile terminal. Among the photos accumulated by the mobile terminal, many photos are redundant photos taken during shooting, and the redundant photos occupy more storage space, so that the mobile terminal memory is excessively occupied inefficiently. How to reduce these redundant photos and further reduce the invalid occupation of the memory space of the mobile terminal becomes a problem to be solved.
In order to solve the problems in the prior art, the embodiment provides a method for reducing redundant photos of a mobile terminal, and by the method of the embodiment, a user does not need to manually search and delete the redundant photos and the like on the mobile terminal, so that convenience is provided for the user. In specific implementation, in this embodiment, first, when the mobile terminal takes a picture, a change of the taken picture is detected, when the taken picture does not change within a set time, power consumption data is acquired at set time intervals, when the power consumption data changes slightly within a set time period, a first threshold and a second threshold are set according to the acquired power consumption data, the power consumption data of the mobile terminal is monitored, when the power consumption data of the mobile terminal changes slightly, that is, the power consumption data is between the first threshold and the second threshold, the picture taking is resumed, and when the power consumption data of the mobile terminal changes greatly, that is, the power consumption data is greater than the first threshold or less than the second threshold, the picture taking is temporarily prohibited, so that redundant pictures are reduced.
Therefore, the method and the device have the advantages that the change of the shot image is detected when the mobile terminal shoots, the power consumption data is obtained at set time intervals, the first threshold value and the second threshold value are set according to the power consumption data, and whether the shooting is temporarily prohibited or resumed is determined according to the monitored power consumption data of the mobile terminal, so that redundant photos are automatically reduced, the redundant photos do not need to be manually searched and deleted, and convenience is brought to the use of a user.
For example, in home life, mobile terminals (smart phones, tablet computers, and the like) purchased by users are often used for shooting interesting or meaningful things in daily life, and when traveling outside, a large number of photos of landscape and people are shot, and in the shooting process, a large number of redundant photos are often shot, and are accumulated in the future, and occupy a large amount of storage space.
Exemplary method
The method for reducing redundant photos of a mobile terminal in this embodiment may be applied to a mobile terminal device, and specifically as shown in fig. 1, the method for reducing redundant photos of a mobile terminal includes the following steps:
and S100, when the mobile terminal takes a picture, the mobile terminal system detects the change of the shot image.
In order to enable redundant photos of the mobile terminal to be automatically reduced without manually searching and deleting the redundant photos in the memory by a user, in the embodiment, when the user uses the mobile terminal to shoot and reduce the redundant photos of the mobile terminal, the mobile terminal system is firstly required to detect the change of the shot images. In the embodiment, the mobile terminal system detects the change of the shot image when the mobile terminal takes a picture. When the mobile terminal takes a picture, the mobile terminal system detects the change of the taken picture and specifically comprises the following steps:
the mobile terminal system sets a data difference threshold value of pixels between the shot images;
the mobile terminal system detects continuous frame images, selects pixels of fixed pixel points from the continuous frame images for comparison, and judges whether the shot images change or not according to the relationship between the data difference values of the pixels and the data difference threshold.
In this embodiment, when the mobile terminal takes a picture, the mobile terminal system detects a change of the taken picture, for example: when the mobile terminal takes a picture, the mobile terminal system detects continuous frame images, selects pixels of fixed pixel points from the continuous frame images for comparison, and if the data difference value of the pixels of the continuous frame images is smaller than a set data difference threshold value, the images are considered to be unchanged.
Specifically, first, in the mobile terminal system, a data difference threshold is set for the pixel difference between images, and when the pixel difference between the captured images is lower than the set data difference threshold, it is considered that the captured images are not changed. Because the image quality of the shot image is fine and the pixel is high, if the pixel difference of the whole image is compared comprehensively, the calculation data amount of the system is large, and the requirement on equipment hardware is high. In the embodiment, there is no method for comparing the pixel difference of the whole image in a sampling manner. In specific implementation, in order to reduce the calculation amount of the system, increase the operation speed, and reduce the requirement on the hardware of the device, only a part of fixed pixel points need to be selected for pixel comparison, for example: one pixel point is selected for pixel comparison every 100 pixels, so that the calculation data amount during pixel comparison can be greatly reduced, the requirement on equipment hardware is reduced, the mobile terminal system can quickly perform pixel comparison, and meanwhile, the correctness of the comparison result is not influenced.
And step S200, when the shot image is not changed within the set time, the mobile terminal system acquires the power consumption data of the mobile terminal at set time intervals.
In this embodiment, a power consumption detection function is first set in the mobile terminal, and is used to monitor power consumption data of the mobile terminal.
It is known that when a mobile terminal system is located at different points on the earth, power consumption data of the mobile terminal are different. Based on such a principle, when the image has not changed within the set time, it means that the mobile terminal is almost in a static state, in which the mobile terminal system monitors and acquires the power consumption data of the mobile terminal at set time intervals, generally, in this embodiment, the set time interval is 2 seconds.
Specifically, in this embodiment, for the power consumption monitoring mode of the mobile terminal, this embodiment provides two different embodiments, and the specific steps of the two modes include:
the first implementation mode is that a resistor is connected in series with the output end of the battery of the mobile terminal, the resistance value of the resistor can adopt a smaller resistor, the voltage difference between the two ends of the resistor is obtained, and the power consumption data of the mobile terminal is obtained after conversion is performed by a mathematical method in the prior art, that is, the power consumption of the mobile terminal monitored by the mobile terminal system is actually obtained by monitoring the voltage difference between the two ends of the smaller resistor connected in series with the output end of the battery of the mobile terminal.
The second implementation mode is that a resistor is connected in series at the baseband power supply position of the mobile terminal, the resistance value of the resistor can adopt a smaller resistor, the voltage difference between two ends of the resistor is obtained, and the power consumption data of the mobile terminal is obtained after conversion is carried out through a mathematical method in the prior art. Different from the first embodiment, power is obtained from the output end of the battery, but the voltage difference between two ends of the resistor is obtained by connecting a smaller resistor in series, and power consumption data of the mobile terminal is obtained after conversion is carried out through a mathematical method. The advantage of this approach is that it can still be implemented in case the user uses a network (e.g., WIFI), etc.
Step S300, when the obtained power consumption data changes slightly in a set time period, obtaining current power consumption data, and setting a first threshold value and a second threshold value according to the obtained current power consumption data.
Considering the change of the power consumption data of the mobile terminal, an index serving as a reference is required, and a threshold value is required to be set, so that the power consumption data of the mobile terminal needs to be acquired when the power consumption change of the mobile terminal is minimum, namely when the mobile terminal is almost still, the power consumption of the mobile terminal is acquired, and the threshold value is set according to the acquired power consumption value. In this embodiment, two threshold values, i.e., a first threshold value and a second threshold value, are set as required.
Specifically, when a shot image is not changed within a set time, the mobile terminal system acquires power consumption data of the mobile terminal at set time intervals, and when the acquired power consumption data changes slightly within a set time period, the mobile terminal system acquires the power consumption data of the current mobile terminal;
setting a first threshold value: setting a first threshold value by 1.1 times of the current power consumption data according to the acquired current power consumption data of the mobile terminal;
setting a second threshold value: setting a second threshold value by 0.9 times of the current power consumption data according to the acquired current power consumption data of the mobile terminal;
the power consumption data is set in a set time period, which is set to 60 seconds in the present embodiment.
Step S400, the mobile terminal system monitors power consumption data of the mobile terminal, and when the power consumption data is larger than the first threshold value or smaller than the second threshold value, photographing is forbidden; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
In this embodiment, the mobile terminal system continuously monitors the power consumption change of the mobile terminal, and acquires the power consumption data of the mobile terminal at regular intervals, in this embodiment, the mobile terminal system samples the power consumption data of the mobile terminal at intervals of 2 seconds, and compares the sampled power consumption data with the set first threshold value and the set second threshold value.
Specifically, the mobile terminal system monitors the power consumption of the mobile terminal, acquires power consumption data of the mobile terminal every 2 seconds, compares the power consumption data with a set first threshold value and a set second threshold value respectively, and generates an interrupt signal when the power consumption data of the mobile terminal is greater than the first threshold value; an interrupt signal is also generated when the power consumption data of the mobile terminal is less than the second threshold value. In this embodiment, the interrupt signal is a level signal that changes from low level to high level for a detection pin, or changes from high level to low level for a detection pin. The central processing unit in the mobile terminal is connected with an interruption pin for power consumption monitoring, the detection pin for the interruption pin for power consumption monitoring is changed from a low level to a high level, or is changed from the high level to a level signal of the low level, and the central processing unit makes a corresponding response according to the level of the detection pin.
The mobile terminal system monitors the power consumption of the mobile terminal, compares the power consumption data of the mobile terminal acquired every 2 seconds with a set first threshold value and a set second threshold value respectively, generates an interrupt signal when the power consumption data of the mobile terminal is larger than the first threshold value or smaller than the second threshold value, and temporarily prohibits the mobile terminal from taking pictures according to the interrupt signal. And when the mobile terminal system monitors the power consumption of the mobile terminal, comparing the power consumption data of the mobile terminal acquired every 2 seconds with a set first threshold value and a set second threshold value respectively, and when the power consumption data is smaller than the first threshold value and larger than the second threshold value, namely the power consumption data is between the first threshold value and the second threshold value, at the moment, the mobile terminal system does not generate an interrupt signal, and the mobile terminal system resumes photographing.
Specifically, it is known that when a camera of a mobile terminal device is used to photograph a picture, power consumption data of the mobile terminal differs for each different point on the earth. When the acquired power consumption data is between the first threshold and the second threshold, that is, the power consumption data is smaller than the first threshold and larger than the second threshold, it indicates that the power consumption data of the mobile terminal at this time changes very slightly, and the mobile terminal device is in a static state, that is, the user does not use the mobile terminal temporarily, and the user can use the mobile terminal to resume taking pictures.
In summary, the present embodiment provides a method for reducing redundant photos of a mobile terminal, where the change of a shot image is detected when the mobile terminal takes a photo, when the shot image does not change within a set time, power consumption data is obtained at set time intervals, a first threshold and a second threshold are set according to the power consumption data, the power consumption data of the mobile terminal is monitored, the power consumption data is compared with the first threshold and the second threshold, and whether the mobile terminal takes a photo or prohibits a photo according to a comparison result, so that redundant photos are reduced, a problem that precious storage space in the mobile terminal is occupied by a large number of redundant photos is avoided, and user experience is greatly improved.
Exemplary device
As shown in fig. 2, an embodiment of the present invention provides an apparatus for reducing redundant photos of a mobile terminal, the apparatus including: the system comprises an image detection module 10, a power consumption data acquisition module 20, a power consumption data monitoring module 30 and a photographing control module 40.
Specifically, the image detection module 10 is configured to detect a change of a shot image by the mobile terminal system when the mobile terminal takes a picture; a power consumption data obtaining module 20, configured to obtain, by the mobile terminal system, power consumption data of the mobile terminal at set time intervals; the power consumption data monitoring module 30 is configured to set a first threshold value and a second threshold value according to the acquired power consumption data, compare the first threshold value and the second threshold value with the acquired current power consumption data, generate an interrupt signal, and send an instruction for prohibiting photographing; the photographing control module 40 is configured to detect power consumption data of the mobile terminal detected by the power consumption detection module, and prohibit photographing when the power consumption data is greater than the first threshold or smaller than the second threshold; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed, and whether the camera action of the mobile terminal is photographing or is temporarily prohibited can be controlled.
In one implementation manner, when the image detection module 10 uses the mobile terminal device to take a picture, the mobile terminal first reads the continuous frame images and detects the continuous frame images;
specifically, pixels of fixed points are selected from the read continuous frame images for comparison, and the change size of the continuous frame images is confirmed; only when the pixel difference of the images of the successive frames is sufficiently small, the mobile terminal proceeds to next acquire power consumption data of the mobile terminal. In this embodiment, the mobile terminal system is provided with a data difference threshold value in advance, and if the pixel difference of the images of consecutive frames is sufficiently small, the data difference threshold value is compared with the pixel difference of the images of consecutive frames, and if the pixel difference of the images of consecutive frames is smaller than the data difference threshold value, the mobile terminal system assumes that the images of consecutive frames have not changed.
In one implementation, the power consumption data acquiring module 20 performs the operation of acquiring the power consumption data of the mobile terminal at set time intervals when it is determined that the consecutive frame images do not change, where the set time interval is 2 seconds.
In this implementation, there are two implementation means for power consumption data acquisition:
the first implementation means is to serially connect a resistor at the output end of the battery of the mobile terminal, the resistance value of the resistor can adopt a smaller resistance value, the voltage difference between the two ends of the resistor is obtained, and the power consumption data of the mobile terminal is obtained after conversion is carried out by a mathematical method in the prior art. That is, the power consumption of the mobile terminal system is actually obtained by monitoring the voltage difference across a small resistor connected in series with the output terminal of the battery of the mobile terminal.
The second implementation mode is that a resistor is connected in series at the baseband power supply position of the mobile terminal, the resistance value of the resistor can adopt a smaller resistor, the voltage difference between two ends of the resistor is obtained, and the power consumption data of the mobile terminal is obtained after conversion is carried out through a mathematical method in the prior art. Different from the first embodiment, power is obtained from the output end of the battery, but the voltage difference between two ends of the resistor is obtained by connecting a smaller resistor in series, and power consumption data of the mobile terminal is obtained after conversion is carried out through a mathematical method. The advantage of this approach is that it can still be implemented in case the user uses a network (e.g., WIFI), etc.
In one implementation, the power consumption data monitoring module 30 includes:
firstly, a first threshold value and a second threshold value are set according to the acquired power consumption data. Only when the shot image is not changed within the set time, the mobile terminal system monitors the power consumption data of the mobile terminal, and when the power consumption data of the mobile terminal is kept stable within a specified time period (set to 60 seconds in the implementation mode) and fluctuates slightly, the power consumption data of the mobile terminal is sampled, and a first threshold value and a second threshold value are set according to the power consumption data.
In the implementation mode, the mobile terminal system continuously monitors the power consumption data of the mobile terminal, acquires the power consumption data of one mobile terminal every 2 seconds, compares the acquired power consumption data with the first threshold value and the second threshold value, and sends out a command of forbidding photographing or not.
In one implementation, the photographing control module 40 includes:
when the acquired power consumption data is compared with the first threshold value and the second threshold value, and the power consumption data is larger than the first threshold value or smaller than the second threshold value, the mobile terminal system generates an interrupt signal, and the mobile terminal temporarily prohibits photographing. When the mobile terminal is ready to take a picture, the mobile terminal system detects the interrupt signal, activates the mobile terminal picture taking function and resumes the picture taking.
And when the acquired power consumption data is compared with the first threshold value and the second threshold value, the power consumption data is smaller than the first threshold value and larger than the second threshold value, the mobile terminal is in a static state, and when the mobile terminal is ready to take a picture, the picture taking is resumed.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 3. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method of reducing redundant photos of a mobile terminal. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal equipment is arranged in the terminal equipment in advance and used for detecting the operating temperature of the internal equipment.
It will be understood by those skilled in the art that the block diagram of fig. 3 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal equipment to which the solution of the present invention is applied, and a specific terminal equipment may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a program stored in the memory and executable on the processor for reducing redundant photos of a mobile terminal, and when the processor executes the program for reducing redundant photos of a mobile terminal, the processor implements the following operation instructions:
when the mobile terminal takes a picture, the mobile terminal system detects the change of the taken image;
when the shot image is not changed within the set time, the mobile terminal system acquires power consumption data of the mobile terminal at set time intervals;
when the acquired power consumption data changes slightly in a set time period, acquiring current power consumption data, and setting a first threshold value and a second threshold value according to the acquired current power consumption data;
the mobile terminal system monitors power consumption data of the mobile terminal, and when the power consumption data is larger than the first threshold value or smaller than the second threshold value, photographing is forbidden; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
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 hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the invention discloses a method, a device, a terminal device and a storage medium for reducing redundant photos of a mobile terminal, wherein when the mobile terminal takes a picture, the change of the taken picture is detected; when the shot image is not changed within the set time, acquiring power consumption data of the mobile terminal at set time intervals; setting a first threshold value and a second threshold value according to the acquired power consumption data; the mobile terminal system monitors power consumption, and when the power consumption is larger than a first threshold value or smaller than a second threshold value, photographing is temporarily prohibited; and when the power consumption is between the first threshold value and the second threshold value, the photographing is resumed. The invention controls the photographing function according to the change of the photographed image and the power consumption change of the mobile terminal, reduces redundant photos, improves the problem that the excessive space of the mobile terminal memory is inefficiently occupied by the redundant photos, and improves the user experience.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for reducing redundant photos of a mobile terminal is characterized by comprising the following steps:
when the mobile terminal takes a picture, a system of the mobile terminal detects the change of the taken picture;
when the shot image is not changed within the set time, the system of the mobile terminal acquires power consumption data of the mobile terminal at set time intervals;
when the acquired power consumption data changes slightly in a set time period, acquiring current power consumption data, and setting two threshold values, namely a first threshold value and a second threshold value, according to the acquired current power consumption data;
the system of the mobile terminal monitors the power consumption data of the mobile terminal, and when the power consumption data is larger than the first threshold value or smaller than the second threshold value, photographing is forbidden; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
2. The method for reducing redundant photos of a mobile terminal according to claim 1, wherein when the mobile terminal takes a picture, the step of detecting the change of the taken picture by the system of the mobile terminal specifically comprises the following steps:
the system of the mobile terminal sets a data difference threshold value of pixels between the shot images;
and the system of the mobile terminal detects continuous frame images, selects pixels of fixed pixel points from the continuous frame images for comparison, and judges whether the shot images change or not according to the relationship between the data difference value of the pixels and the data difference threshold value.
3. The method for reducing redundant photos of a mobile terminal according to claim 1, wherein when the shot image has not changed within a set period of time, the system of the mobile terminal obtains the power consumption data of the mobile terminal every set time interval, and the system of the mobile terminal obtains the power consumption data of the mobile terminal every 2 seconds.
4. The method for reducing redundant photos of a mobile terminal according to claim 3, wherein when the captured image has not changed within a set period of time, the specific step of the system of the mobile terminal acquiring the power consumption data of the mobile terminal at set time intervals comprises:
a resistor is connected in series with the battery output end of the mobile terminal;
acquiring a voltage difference between two ends of the resistor;
and converting the voltage difference to obtain power consumption data of the mobile terminal.
5. The method for reducing redundant photos of a mobile terminal according to claim 3, wherein when the captured image has not changed within a set period of time, the specific step of the system of the mobile terminal acquiring the power consumption data of the mobile terminal at set time intervals comprises:
a resistor is connected in series at a baseband power supply position of the mobile terminal;
acquiring a voltage difference between two ends of the resistor;
and converting the voltage difference to obtain power consumption data of the mobile terminal.
6. The method for reducing the redundant photos of the mobile terminal according to any of the claims 1 to 5, wherein the current power consumption data is obtained when the obtained power consumption data changes slightly within a set time period, two threshold values are set according to the obtained current power consumption data, namely a first threshold value and a second threshold value,
the time period of the power consumption data in the set time period is set to be 60 seconds;
setting a first threshold value, and setting the first threshold value by 1.1 times of the current power consumption data according to the acquired current power consumption data;
and setting a second threshold value, and setting the second threshold value to be 0.9 times of the current power consumption data according to the acquired current power consumption data.
7. The method of claim 6, wherein the system of the mobile terminal monitors power consumption of the mobile terminal, and prohibits photographing when the power consumption data is greater than the first threshold or less than the second threshold; when the power consumption data is between the first threshold value and the second threshold value, the step of resuming photographing specifically includes the following steps:
the system of the mobile terminal monitors the power consumption data of the mobile terminal, when the power consumption of the mobile terminal is larger than the first threshold value, an interrupt signal is generated, the interrupt signal is that a detection pin of the mobile terminal is changed from a low level to a high level or from the high level to the low level, and the mobile terminal is forbidden to take a picture;
the system of the mobile terminal monitors the power consumption data of the mobile terminal, when the power consumption data of the mobile terminal is smaller than the second threshold value, an interrupt signal is generated, the interrupt signal is that the detection pin of the mobile terminal is changed from low level to high level or from high level to low level, and the mobile terminal is forbidden to take pictures;
and the system of the mobile terminal monitors the power consumption data of the mobile terminal, and when the power consumption data of the mobile terminal is smaller than the first threshold value and larger than the second threshold value, the mobile terminal resumes photographing.
8. An apparatus for reducing redundant photos of a mobile terminal, the apparatus comprising:
the image detection module is used for detecting the change of a shot image when the mobile terminal takes a picture;
the power consumption data acquisition module is used for acquiring the power consumption data of the mobile terminal at set time intervals when the shot image is not changed within the set time;
the power consumption data monitoring module is used for setting a high threshold value and a low threshold value, namely a first threshold value and a second threshold value, according to the acquired power consumption data, comparing and judging the two threshold values with the acquired current power consumption data, and generating an interrupt signal;
the photographing control module is used for detecting the power consumption data of the mobile terminal detected by the power consumption detection module, and forbidding photographing when the power consumption data is larger than the first threshold value or smaller than the second threshold value; and when the power consumption data is between the first threshold value and the second threshold value, the photographing is resumed.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a program for reducing redundant photos of a mobile terminal, which is stored in the memory and can be run on the processor, and the processor implements the steps of the method for reducing redundant photos of a mobile terminal according to any one of claims 1 to 7 when executing the program for reducing redundant photos of a mobile terminal.
10. A computer-readable storage medium, on which a program for reducing redundant photos of a mobile terminal is stored, which program, when executed by a processor, carries out the steps of the method for reducing redundant photos of a mobile terminal according to any one of claims 1 to 7.
CN202110097646.6A 2021-01-25 2021-01-25 Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium Active CN112887599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110097646.6A CN112887599B (en) 2021-01-25 2021-01-25 Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110097646.6A CN112887599B (en) 2021-01-25 2021-01-25 Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112887599A CN112887599A (en) 2021-06-01
CN112887599B true CN112887599B (en) 2022-08-05

Family

ID=76051103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110097646.6A Active CN112887599B (en) 2021-01-25 2021-01-25 Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112887599B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001309235A (en) * 2000-04-26 2001-11-02 Kyocera Corp Digital still camera
JP2010220243A (en) * 2010-05-17 2010-09-30 Kyocera Corp Portable terminal
CN102833470A (en) * 2011-06-14 2012-12-19 三星电子株式会社 Digital photographing apparatus
CN102833481A (en) * 2011-06-14 2012-12-19 三星电子株式会社 Digital photographing apparatus and method of controlling the same
CN103581528A (en) * 2012-07-19 2014-02-12 百度在线网络技术(北京)有限公司 Method for preprocessing in photographing process of mobile terminal and mobile terminal
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN107346332A (en) * 2017-06-23 2017-11-14 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN110717452A (en) * 2019-10-09 2020-01-21 Oppo广东移动通信有限公司 Image recognition method, device, terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001309235A (en) * 2000-04-26 2001-11-02 Kyocera Corp Digital still camera
JP2010220243A (en) * 2010-05-17 2010-09-30 Kyocera Corp Portable terminal
CN102833470A (en) * 2011-06-14 2012-12-19 三星电子株式会社 Digital photographing apparatus
CN102833481A (en) * 2011-06-14 2012-12-19 三星电子株式会社 Digital photographing apparatus and method of controlling the same
CN103581528A (en) * 2012-07-19 2014-02-12 百度在线网络技术(北京)有限公司 Method for preprocessing in photographing process of mobile terminal and mobile terminal
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN107346332A (en) * 2017-06-23 2017-11-14 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN110717452A (en) * 2019-10-09 2020-01-21 Oppo广东移动通信有限公司 Image recognition method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN112887599A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
US8553129B2 (en) Handheld electronic device with two lens modules, dual image capturing method applying for the handheld electronic device, and computer program product for load into the handheld electronic device
US7965317B2 (en) System and method for implementation motion-driven multi-shot image stabilization
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
EP2523450A1 (en) Handheld electronic device with dual image capturing method and computer program product
CN108322663B (en) Photographing method, device, terminal and storage medium
CN113347334B (en) Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium
CN113824876B (en) Picture stability processing method and device under digital zooming, mobile terminal and medium
CN101795378B (en) Electronic device and method of controlling the same
JP2000232607A (en) Electronic still camera
CN102984456A (en) Mobile terminal and method for controlling photographing of mobile terminal
US20160150158A1 (en) Photographing apparatus and method for controlling thereof
CN112887599B (en) Method and device for reducing redundant photos of mobile terminal, terminal equipment and storage medium
CN115379105B (en) Video shooting method, device, electronic equipment and storage medium
CN111511002B (en) Method and device for adjusting detection frame rate, terminal and readable storage medium
JP2001238189A (en) Image processing apparatus, and operation control method for the same
CN109120856B (en) Camera shooting method and device
CN114501136B (en) Image acquisition method, device, mobile terminal and storage medium
CN111444143A (en) Picture centralized picture display method and device and mobile terminal
CN112911058B (en) Photographing control method and device, mobile terminal and storage medium
CN112653841B (en) Shooting method and device and electronic equipment
CN114915851A (en) Video recording and playing method and device
CN111611428A (en) Photographing processing method and system based on geographic historical path
US20100053373A1 (en) Portable terminal
CN112399092A (en) Shooting method and device and electronic equipment
CN105681600A (en) Shooting method and device and intelligent terminal

Legal Events

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