[ Invention ]
The invention aims to solve the technical problem that the battery capacity, the storage capacity and the network flow in the photographic device in the prior art cannot be considered, and provides a photographic device with a network transmission function and a method for uploading media data by the photographic device, which can still record or upload films when the photographic device is insufficient in electric quantity, lacks storage capacity or is poor in network transmission speed.
The technical scheme adopted for solving the technical problems is as follows: the photographic device with the network transmission function is constructed and comprises a photographic module, a control module, a storage module and a power supply module;
The camera module obtains media data under the control of the control module and transmits the media data to the storage module;
The storage module stores the received media data and uploads the stored media data to the server through a network under the set condition;
the control module maintains the current state of the photographic device or starts the device to enter a static uploading mode according to the current state of the photographic device, the state of the power supply module and the residual memory capacity of the memory module;
the static uploading mode comprises the operation that the photographing device is awakened from dormancy at a set starting time and uploads the stored media data.
Further, in the static upload mode, when the control module detects that the remaining power of the power supply module is smaller than the second power set value, the control module makes the photographing device enter the sleep state within a set time.
Still further, the first memory location set point comprises 60-70% of the total memory location.
Further, the first power setting value is 12-20% of the total power.
Further, when the control module detects that the residual electric quantity of the power supply module is smaller than the second electric quantity set value, the control module selects a starting time and enables the photographic device to enter a dormant state again; when the control module detects that the residual electric quantity of the power supply module is smaller than a third electric quantity set value, the control module enables the photographic device to enter a dormant state again; wherein the first electric quantity set value is larger than the second electric quantity set value and larger than the third electric quantity set value.
Still further, the second charge setting comprises 10% of the total charge.
Still further, the control module further includes a network monitoring module for periodically detecting a network transmission speed between the photographing apparatus and the server at regular intervals, selecting a time period having the network maximum transmission speed as a transmission time period, and setting a start time in the transmission time period.
Still further, maintaining the current state of the camera device includes continuing to retrieve media data and uploading to the server over a network.
Still further, the network comprises a 5G wireless communication network.
The invention also relates to a method for uploading media data by the photographic device, which is characterized in that the photographic device comprises a camera module, a control module, a storage module and a power supply module; the method comprises the following steps:
the control module judges whether the current sleep state exists or not, if so, the next step is executed; if not, keeping the current state to continue operation;
the control module judges whether the use part of the storage capacity of the current storage module exceeds a first set capacity or not by collecting the number of the stored media data units of the storage module, if not, the control module returns to the sleep state or returns to the sleep state after a set time interval; if yes, executing the next step;
collecting the state of the power supply module, judging whether the power supply module is powered by an external power supply or not, or if the power supply module is powered by a battery but the battery power is larger than a first power set value, if not, returning to the sleep state or returning to the sleep state after a set time interval; if yes, executing the next step;
And obtaining the determined starting time after the device is dormant, and entering a static uploading mode.
Still further, the static upload mode further comprises the steps of:
When the starting time comes, the shooting device is awakened, the used storage unit of the storage component is judged to be larger than a first storage unit set value, the residual electric quantity of the power supply module is judged to be larger than the first electric quantity set value, or after the power supply module is powered by an external power supply, the control module enables the storage module to upload the stored media data content to the server.
Still further, the first memory location set point comprises 60-70% of the total memory location.
Further, the first power setting value is 12-20% of the total power.
Further, in the static upload mode, when the control module detects that the remaining power of the power supply module is smaller than the second power set value, the control module makes the photographing device enter the sleep state within a set time.
Further, the start-up time is obtained by: the network transmission speed between the photographing apparatus and the server is periodically and periodically detected by a network monitoring module, a time period having the network maximum transmission speed is selected as a transmission time period, and a start time is set in the transmission time period.
Still further, maintaining the current state of the camera device includes continuing to retrieve media data and uploading to the server over a network.
Still further, the network comprises a 5G wireless communication network.
The photographic device with the network transmission function and the method for uploading media data thereof have the following beneficial effects: due to the fact that the static uploading mode is set, under the conditions that the network transmission speed is good and the power supply module can guarantee supply, media data in the device are stored because of no uploading before automatic uploading, the usage amount of the storage module in the device is guaranteed to be kept at a lower level, the device can deal with various subsequent conditions through enough storage space, balance consideration among the storage space, the power supply and the network environment of the photographic device is achieved, and the interrelationship among the three is considered.
[ Detailed description ] of the invention
Embodiments of the present invention will be further described with reference to the accompanying drawings.
As shown in fig. 1, in the embodiment of the photographing apparatus with a network transmission function and the method for uploading media data thereof, the photographing apparatus with the network transmission function is constructed, and the photographing apparatus may be a security camera which is placed at a fixed position to obtain images in a set area, may be a portable handheld camera or a small camera, may be a sports camera which is worn at a certain part of a person, and the like, and the cameras or the photographing apparatus all have a common characteristic, that is, besides the storage module of the photographing apparatus itself can store the obtained media data, the stored media data can be uploaded to a server through a network for storage, so that on one hand, the problem of insufficient capacity of the storage module during long-time photographing is solved, and on the other hand, the problem of data security is also solved.
Specifically, as shown in fig. 1, in the present embodiment, the photographing apparatus with the network transmission function includes a camera module, a control module, a storage module, and a power supply module; the camera module obtains media data under the control of the control module and transmits the media data to the storage module; the camera module comprises a camera and a signal processing module for converting an image signal obtained by the camera into a digital signal, and in addition, the camera module can also comprise an artificial intelligent module, wherein the artificial intelligent module is used for starting shooting when detecting a target with a set shape or a moving object in a set area, so that the quantity of media data can be reduced or the monitoring can be more efficient when being used for security protection or monitoring; the storage module stores the received media data and uploads the stored media data to the server through a network under the set condition; the control module maintains the current state of the photographic device or starts the device to enter a static uploading mode according to the current state of the photographic device, the state of the power supply module and the residual memory capacity of the memory module; the static uploading mode comprises the operation that the photographing device is awakened from dormancy at a set starting time and uploads the stored media data. The power supply module supplies power to each module of the camera device. In addition, in this embodiment, the setting of the uploading media data includes the uploading of media data in a working state and the uploading of data performed after the condition of the static uploading mode is satisfied, and both cases will be described in detail later. Of course, in both cases, the uploading of the media data is implemented under the control of the control module.
It should be noted that, in the present embodiment, the above-mentioned photographing device with network transmission function may be a monitoring photographing device, a motion photographing device or a handheld photographing device, and may be disposed at a fixed location indoors or outdoors, worn to move with a user or to be held by a user to move, etc., so that the power supply may be a voltage converted by ac mains or a battery power supply built in a power supply module of the device. The control module detects various states of the device and enables each module of the device to execute corresponding actions according to the states.
Specifically, for the above-mentioned photographing apparatus with network transmission function, no matter what state it is (for example, shooting upload or sleep), the control module will determine the state of the photographing apparatus at a set, periodic time point, if it is currently in a working state, and never enters sleep or although entering sleep state, but the current network transmission speed is higher or the network state is better, then the working state is maintained and the collected data is uploaded to the server; if it is currently in sleep state (is shutting down), it is necessary to determine whether to enter a static upload mode or to continue sleep by determining the states of the storage module and the power supply module.
In the static uploading mode, when the starting time comes, the photographing device is awakened, the used storage unit of the storage component is judged to be larger than a first storage unit set value, the residual electric quantity of the power supply module is judged to be larger than a first electric quantity set value, or after the power supply module is powered by an external power supply, the control module enables the storage module to upload the stored media data content to the server. Wherein the first memory cell set point comprises 60-70% of the total memory cells. The first electric quantity set value is 12-20% of the total electric quantity of the built-in battery in the power supply module.
In this embodiment, in the static upload mode, when the control module detects that the remaining power of the power supply module is smaller than the second power set value, the control module makes the photographing device enter the sleep state within a set time. The second charge set point comprises 10% of the total charge.
In other words, in the static upload mode, whether to upload is determined according to the specific conditions of the storage module, the power supply module and the network is also determined, and if the storage unit used by the storage module does not reach the set value of the first storage unit or the power supply module is not powered by an external power source or the residual battery power in the storage module is insufficient, the upload operation is not performed, and if the set start time is not reached or the network condition is found to be not ideal, the photographing device is not awakened in the sleep state or the upload operation is not performed after the wake-up, and the sleep state is not performed again. In summary, the static uploading state in this embodiment organically combines the usage amount of the storage unit of the storage module, the state of the power supply module and the network state to consider, and takes different actions according to different conditions, so as to realize comprehensive balance among the storage module, the power supply module and the network transmission state, so that the photographic device has more balanced data processing capability, longer working time and better adaptability than the existing photographic device.
In this embodiment, the photographing apparatus with a network transmission function further includes a network monitoring module for periodically and periodically detecting a network transmission speed between the photographing apparatus and the server, selecting a time period with the network maximum transmission speed as a transmission time period, and setting a start time in the transmission time period. In addition, in the present embodiment, when the image capturing apparatus itself is in an operating state (i.e., in a non-static upload mode), maintaining the current state of the image capturing apparatus includes continuing to acquire media data and uploading the media data to the server via a network.
In this embodiment, the network comprises a 5G wireless communication network. Although the transmission speed of the 5G network is fast, it is greatly affected by the environment so that its transmission efficiency may be different at different times. In the case of a low network transmission efficiency, it may be necessary to transmit data or back-off multiple times in order to realize data transmission, which may cause a large energy consumption. Therefore, in order to avoid wasting precious battery residual power under the condition of bad network environment, the judgment on the network transmission speed or state in the above steps is very necessary, and the judgment can avoid starting up the media data upload under the condition of bad network, and save a large amount of energy of invalid transmission, so that the use efficiency of battery energy is greatly improved.
In general, the greatest problem solved by the present invention is to achieve a balance effect among the storage capacity, the electric quantity or the network traffic. Under the condition of long-term use, all portable photographic devices with network transmission functions always suffer from the conditions of lack of storage capacity and insufficient electric quantity. The invention starts the video uploading by taking the preset storage capacity limit as the first precondition, then decides the time for starting the uploading according to the preset time stamp (Timestamp), and finally decides whether to upload according to the electric quantity condition. If the electric quantity does not reach the preset value, the sleep mode is entered until the next appropriate time stamp is reached to complete uploading, so that the balance among the storage capacity, the electric quantity or the network transmission speed is realized.
In this embodiment, the storage capacity limit is 30%, that is, when the storage capacity limit of the network camera device is lower than 30%, and the above other conditions are satisfied, the control module will start the video uploading operation.
It is worth mentioning that, unlike other network cameras, the camera can use 5G network transmission, is internally provided with a battery and can be charged by alternating current through conversion, and meanwhile, can be powered by the converted alternating current; in the case of mobile or inconvenient connection with external alternating current, the built-in battery is enough to allow the network camera of the invention to be externally used until the electricity consumption is exhausted. For the situation that instant rebroadcasting (LIVE STREAMING) is not needed, a scene with a shooting mode matched with flow can be provided. For a mobile shooting environment, the network transmission state can be automatically detected, and the shot media data is uploaded to a server at the highest speed. And for the case of network transmission non-ideal, the proper transmission time can be customized.
The invention also relates to a method for uploading media data by the photographic device, wherein the photographic device is the photographic device with the network transmission function, and the stored media data is uploaded to a server through a network to ensure that a storage module on the photographic device can have enough storage space to store the acquired media data. As shown in fig. 2, the method for uploading media data by the photographing apparatus includes the following steps:
Step S11, judging whether the image pickup device is currently in dormancy or not, if so, executing step S12; otherwise, executing the step S13; it should be noted that this step is periodically performed by the control module of the image capturing device, and the following steps are also performed by the control module or performed by other modules in the participation of the control module. The control module periodically executes this step and the following steps during the powering up, working or hibernation of the image capturing device.
Step S12 maintains the current state: in this step, since the image pickup apparatus is not in the sleep state but in the operation state, the current operation state is maintained in this step. In this step, there may be two situations, one is that the device does not enter the dormant state, and the other is that the device does not enter the dormant state, but is not currently in the dormant state, and the network state is better (the transmission rate of the network is higher or is currently in the preferred time period of network transmission), and in these situations, in addition to maintaining the acquisition of the media data, the uploading of the media data is performed, that is, the media data is transmitted to the server through the network.
Step S13, judging whether the used storage capacity of the storage module exceeds a first set capacity, if so, executing the next step; if not, go to step S16. Since the photographing apparatus is currently in the sleep state or the front cover apparatus performs step S11 to be in the sleep state, in this step, it is necessary to determine the used amount or the remaining amount of the storage unit in the current storage module, if the used amount exceeds the first set capacity, for example, exceeds 70%, which means that the remaining amount of the storage module is small, which may affect the storage of the acquired media data later, for this reason, if the condition allows, it is necessary to upload some or all of the media data and release the storage unit in the storage module, so that the number of free storage units of the storage module is increased, and the influence on the storage of the subsequent media data due to insufficient number of storage units is reduced as much as possible.
Step S14, judging whether the power supply module is powered by an external power supply or whether the battery allowance is larger than a first set electric quantity, if so, executing the next step; otherwise, the process goes to step S16.
Step S15 enters a static upload mode: in this step, a wake-up time is obtained, and after the wake-up time is reached, the photographing device is woken up, and the media data is uploaded.
Step S16, ending the judgment and returning to dormancy;
It should be noted that the above steps are implemented by the control module and repeated continuously at set time intervals, so that the image capturing device is in a time with good network flow and reliable power supply module when uploading media data, thereby better realizing balance among the network flow, the power supply module state and the storage allowance of the storage unit and ensuring the working reliability thereof.
When the photographing apparatus enters the static upload mode, as shown in fig. 3, the steps specifically executed include:
Step S21, judging whether the power control condition (Power Control Chip, PCC) is met currently and the power is supplied by a battery in the power supply module, if not, jumping to step S23; if yes, executing the next step; the power control condition is that the wake-up time is in a set network transmission time period, the residual electric quantity of the battery is not less than 15% of the total electric quantity, and the device is waken up when the condition is met; and when this condition is not met, the device will continue to sleep.
Step S22, judging whether the battery allowance of the power supply module is smaller than the second set electric quantity, if not, returning to step S21; if so, the next step is performed. In this embodiment, the second set power is 10% of the total power of the battery, and once the remaining power of the battery is found to be smaller than the second set power, it indicates that the power cannot support media data uploading of the device.
Step S23, entering a sleep mode after setting time: in this step, the battery is low enough to support the subsequent media data transmission, and therefore, the device enters the sleep state again after a set time, for example, after 5 minutes.
Step S24 performs media data uploading: in this step, the media data is uploaded, and it is worth mentioning that the uploaded media data is deleted from the storage module, so that enough storage units can be left.
In this embodiment, the determination of the current network transmission speed is implemented by the network monitoring module. The specific steps are shown in fig. 4, including:
step S31, dividing the media data into a plurality of files; in this step, the media data to be uploaded is processed so as to exist in the form of a plurality of files, wherein one file is a 10-second piece of media data. Essentially, the acquired media data to be uploaded is divided into a plurality of data segments according to a set time.
Step S32 calculates the total data amount of the file uploaded in the set time: in the step, a time period is taken, and the data volume in the file uploaded in the time period is calculated; for example, two files are uploaded within 30 seconds, and the data amount in each file is 30M, so that the data amount of the file is 60M.
Step S33 obtains the transmission speed of the current network: in this step, the two are divided to obtain the data transmission speed of the network in unit time.
In this embodiment, after the network transmission speed is obtained, the network transmission speed is compared with the set transmission speed, and if the network transmission speed is greater than the set transmission speed, it is determined that the current network transmission speed is higher. And if the network transmission speed is high for a period of time, the period of time is set as a transmission period of time. The number of transmission time periods within a unit time (e.g., a day) may be multiple, and may be distributed throughout various portions of the day, such as early morning or late night, with each transmission time period being the same or different in length, as the case may be.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.