CN110139053A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN110139053A
CN110139053A CN201810128408.5A CN201810128408A CN110139053A CN 110139053 A CN110139053 A CN 110139053A CN 201810128408 A CN201810128408 A CN 201810128408A CN 110139053 A CN110139053 A CN 110139053A
Authority
CN
China
Prior art keywords
video
video data
audio
recording audio
server
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.)
Pending
Application number
CN201810128408.5A
Other languages
Chinese (zh)
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.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing 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 Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN201810128408.5A priority Critical patent/CN110139053A/en
Priority to PCT/CN2019/074071 priority patent/WO2019154242A1/en
Publication of CN110139053A publication Critical patent/CN110139053A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/183Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a single remote source

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention proposes a kind of data processing method and device, is applied to photographic device, which includes camera unit.This method comprises: obtaining the audio and video data streams that camera unit is acquired based on trigger condition;Audio and video data streams are respectively stored into internal storage and buffer storage, while sending data upload requests information to server;If receiving the data uploading instructions of server transmission, the video recording audio, video data stored in buffer storage is uploaded to server;Whether detection video recording audio, video data uploads completion;It is completed if audio, video data of recording a video uploads, deletes video recording audio, video data identical with the video recording audio, video data of server is uploaded in internal storage;Video recording audio, video data in server is checked for user's request.Above-mentioned technical proposal can reduce the number that user checks video recording audio, video data and wakes up opal equipment, opal equipment operating time be reduced, to reduce opal equipment power dissipation.

Description

A kind of data processing method and device
Technical field
The present invention relates to intelligent peephole design field more particularly to a kind of data processing method and devices.
Background technique
Opal product power supply mode is divided into DC adapter power supply and battery is powered two kinds.DC adapter power supply mode Opal product needs to be equipped with socket near door without considering power problems, wiring trouble, and influences beauty.Battery supplies The opal product battery durable of electric mode is short, needs to be replaced frequently battery or charging, user experience is bad.Therefore design reduces cat The power consumption of eye becomes the main path for promoting user experience.
In existing opal product, most of product is all that the audio, video data of video recording is directly stored in opal equipment In memory, when App client needs to check video recording, it is necessary to be connected by modes such as P2P and wake up opal equipment, then opal Equipment reads corresponding audio, video data in memory, and is transferred to App client by modes such as P2P.Obviously, in above-mentioned user The processing mode that opal equipment obtains audio, video data is waken up when needing to check video recording audio, video data, will increase opal equipment Wake-up times are unfavorable for promoting user experience to increase the power consumption of opal equipment.
Summary of the invention
Defect and deficiency based on the above-mentioned prior art, the present invention propose a kind of data processing method and device, can drop The wake-up times of low opal equipment reduce opal equipment operating time, to reduce opal equipment power dissipation.
In order to achieve the above object, the following technical solutions are proposed by the present invention:
A kind of data processing method is applied to photographic device, and the photographic device includes camera unit, the method packet It includes:
Audio and video data streams are obtained, the audio and video data streams are the audio-video number that camera unit is acquired based on trigger condition According to;
The audio and video data streams are respectively stored into internal storage and buffer storage, while being sent to server Data upload requests information;
If receiving the data uploading instructions that the server is sent, the video recording that will be stored in the buffer storage Audio, video data is uploaded to the server;
Whether detection video recording audio, video data uploads completion;
It is completed if audio, video data of recording a video uploads, deletes the backup audio, video data in the internal storage;Its In, the backup audio, video data is video recording audio-video number identical with the video recording audio, video data of the server is uploaded to According to;Video recording audio, video data in the server is checked for user's request.
Preferably, the method also includes:
After the video recording audio, video data stored in the buffer storage uploads, detect in the internal storage With the presence or absence of video recording audio, video data;
If there is video recording audio, video data in the internal storage, the video recording sound in the internal storage is regarded Frequency evidence is uploaded to the server.
Preferably, the method also includes:
After the completion of audio, video data of recording a video uploads, judge whether the opal equipment is in idle condition;
If the opal equipment is in idle condition, the opal opening of device suspend mode is controlled.
Preferably, the method also includes:
When the opal equipment wakes up, detects and whether have video recording audio, video data in the internal storage;
If there being video recording audio, video data in the internal storage, data upload requests are sent to the server Information;
If receiving the data uploading instructions that the server is sent, the video recording that will be stored in the internal storage Audio, video data is uploaded to the server.
Preferably, whether the detection video recording audio, video data uploads completion, comprising:
Identify the end of identification of the video recording audio and video data streams currently uploaded;
If recognizing the end of identification of the video recording audio and video data streams currently uploaded, confirm on video recording audio, video data It passes and completes.
Preferably, the method also includes:
When the video recording audio, video data that will be stored in the buffer storage is uploaded to the server, if received What client was sent checks real-time video solicited message, then stops the video recording audio, video data that will be stored in the buffer storage It is uploaded to the server, and received video recording audio, video data is transmitted to the client.
Preferably, the method also includes:
When real-time video is checked in client stopping, detecting in the buffer storage with the presence or absence of video recording audio-video Data;
If there is video recording audio, video data in the buffer storage, data upload requests are sent to the server Information;
If receive the data uploading instructions that the server is sent, continue to store in the buffer storage Video recording audio, video data is uploaded to the server;
Whether detection video recording audio, video data uploads completion;
It is completed if audio, video data of recording a video uploads, deletes the backup audio, video data in the internal storage;Its In, the backup audio, video data is video recording audio-video number identical with the video recording audio, video data of the server is uploaded to According to.
A kind of data processing equipment is applied to photographic device, and the photographic device includes camera unit, the data processing Device includes:
Data capture unit, for obtaining audio and video data streams, the audio and video data streams are that camera unit is based on triggering The audio, video data of condition acquisition;
Data storage cell, for the audio and video data streams to be respectively stored into internal storage and buffer storage In, while data upload requests information is sent to server;
First uploading unit, for when receiving the data uploading instructions that the server is sent, the buffering to be deposited The video recording audio, video data stored in reservoir is uploaded to the server;
First detection unit, for detecting whether video recording audio, video data uploads completion;
First processing units delete the backup in the internal storage when uploading completion for audio, video data of recording a video Audio, video data;Wherein, the backup audio, video data is identical with the video recording audio, video data of the server is uploaded to Video recording audio, video data;Video recording audio, video data in the server is checked for user's request.
Preferably, described device further include:
Second detection unit, for examining after the video recording audio, video data stored in the buffer storage uploads It surveys in the internal storage with the presence or absence of video recording audio, video data;
Second uploading unit, for when there is video recording audio, video data in the internal storage, the inside to be deposited Video recording audio, video data in reservoir is uploaded to the server.
Preferably, described device further include:
The video recording audio, video data stored in the buffer storage is uploaded to the clothes for working as by the second processing unit Be engaged in device when, if receive client transmission checks real-time video solicited message, stopping will deposit in the buffer storage The video recording audio, video data of storage is uploaded to the server, and received video recording audio, video data is transmitted to the client.
Technical solution of the present invention setting sends data upload to server immediately and asks when receiving video recording audio, video data It asks, and video recording audio, video data is stored simultaneously and arrives internal storage and buffer storage.When the number for receiving server transmission When according to uploading instructions, the video recording audio, video data in buffer storage is uploaded to server, at the same by internal storage The video recording audio, video data for being uploaded to server is deleted.Above scheme realizes while receiving video recording audio, video data, Video recording audio, video data is uploaded to server, user arbitrarily can check video recording audio, video data by accessing server, no Opal equipment must be connected and wake up opal equipment and request video recording audio, video data again.Above-mentioned technical proposal can reduce user and look into It watch video shows audio, video data and wakes up the number of opal equipment, opal equipment operating time is reduced, to reduce opal equipment function Consumption.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of opal device systems structural schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data processing equipment provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another data processing equipment provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the embodiment of the present invention is suitable for controlling the work of opal equipment to reduce the application of opal equipment power dissipation Scene.Using technical solution of the embodiment of the present invention, the power consumption of opal equipment can reduce.
The structural block diagram of opal device systems is as shown in Figure 1.IPC (IPCamera, network are broadly divided into inside opal equipment Video camera) main module, power consumption control module, PIR (Passive Infrared, the virgin outer induction of human body) module and WIFI module Deng.IPC main module is connected with camera, and responsible audio-video collection, local screen shows, encodes, recording a video, recording a video uploads to service Device, transmission real-time audio and video data to app client etc..When insufficient light or night, IPC main module can open the infrared benefit of night vision Light lamp carries out light filling, to obtain clearer picture effect.WIFI module is responsible for wireless network connection, data transmission.PIR module It is responsible for human body mobile monitoring, when someone is mobile, issues trigger signal, triggering power consumption control module starting IPC module and WIFI Module work.Power consumption control module is connected with IPC main module, PIR and WIFI module, controls IPC main module as needed and powers on And lower electricity, and data channel is provided between IPC main module and WIFI module.
Wherein, IPC main module and associated peripheral are main power consuming portions, and default is in eye or off-position is stopped, only There are power consumption control module, PIR and WIFI module working.When someone is by triggering PIR or client and Server remote connection When equipment, the work of IPC main module can be just waken up.Above-mentioned opal equipment can record a video the audio, video data that camera acquires, Audio and video data streams are obtained, and by audio and video data streams storage to opal equipment local memory, such as internal flash is stored or SD Storage card etc..
The embodiment of the present invention proposes a kind of data processing method and device suitable for opal equipment, is applied particularly to opal The photographic device of equipment, the photographic device include camera unit.The data processing method that the embodiment of the present invention proposes is mainly to cat The video recording audio, video data of eye equipment is handled, and is reached and is reduced opal equipment task time and wake-up times, to reduce cat The purpose of eye equipment power dissipation.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of data processing method, this method is applied to photographic device, the photographic device packet Camera unit is included, it is shown in Figure 2, this method comprises:
S201, audio and video data streams are obtained;
Specifically, when opal equipment working state meets camera shooting trigger condition and opens work, the camera shooting list of opal equipment Member starts to acquire audio, video data, while the audio, video data that opal equipment photographic device acquires camera unit is recorded a video, Obtain video recording audio and video data streams.
The photographic device that above-mentioned trigger condition specifically refers to triggering opal equipment opens the condition of work, which can be The forms such as trigger signal, such as when opal equipment PIR module monitors are to human motion, issue trigger signal and trigger IPC main mould Block opens work.
S202, the audio and video data streams are respectively stored into internal storage and buffer storage, while to service Device sends data upload requests information;
Specifically, the embodiment of the present invention is set, when the photographic device of opal equipment wakes up work, the camera shooting list of photographic device When member starts to acquire and generate video recording audio and video data streams, video recording audio and video data streams that photographic device storage receives.This hair Video recording audio and video data streams are stored simultaneously when storing received video recording audio and video data streams and arrive opal by bright embodiment setting In the internal storage and buffer storage of equipment.
When receiving video recording audio and video data streams, and audio and video data streams of recording a video are stored to the inside for arriving opal equipment simultaneously While in memory and buffer storage, the embodiment of the present invention also sends data upload requests information to server immediately, asks It asks and the video recording audio, video data of generation is uploaded onto the server.
If receiving the data uploading instructions that the server is sent, S203 is thened follow the steps, by the buffer-stored The video recording audio, video data stored in device is uploaded to the server;
Specifically, after sending data upload requests information to server, server is determined depending on working condition in step S202 It is fixed whether to allow to upload video recording audio, video data, if server workload is smaller, it can permit upload video recording audio-video number According to then issuing data uploading instructions;If server workload is larger, temporarily will not response data upload request, wait take When business device workload allows to upload video recording audio, video data, then response data upload request.
When opal equipment photographic device receives the data uploading instructions of server transmission, will be stored in buffer storage Video recording audio, video data be uploaded to server.It should be noted that the video recording sound in buffer storage and internal storage Video data is all to be stored as unit of item, i.e., stored item by item.One video recording audio, video data, when referring to one section Long video recording audio, video data, such as the video recording audio, video data of one section of ten minutes duration from 19:00-19:10, so that it may see Doing is a video recording audio, video data.When uploading video recording audio, video data to server, and as unit of item, one by one Ground uploads.
Whether S204, detection video recording audio, video data upload completion;
Specifically, whether above-mentioned detection video recording audio, video data uploads completion, refers to and uploading each video recording audio-video When data, detects whether to upload and complete.
It is completed if audio, video data of recording a video uploads, thens follow the steps S205, deletes the backup in the internal storage Audio, video data.
The audio, video data specifically, above-mentioned backup is recorded a video, refers to and is uploaded to the video recording audio, video data of the server Identical video recording audio, video data.Since technical solution of the embodiment of the present invention is set, when photographic device stores video recording audio-video number It is to store in internal storage and buffer storage simultaneously when according to stream, therefore the meeting in internal storage and buffer storage There are identical video recording audio, video datas, it is believed that the video recording audio, video data stored in internal storage is as buffer-stored The backup video recording audio, video data of video recording audio, video data in device.
The embodiment of the present invention is uploading the same of the video recording audio, video data in buffer storage by executing step S205 When, by what is stored in internal storage, video recording audio-video number identical with the video recording audio, video data of server has been uploaded to According to deletion.
It should be noted that opal equipment photographic device detection video recording audio, video data whether upload completion when, be When uploading each video recording audio, video data, whether detection each video recording audio, video data uploads completion, if a video recording Audio, video data, which uploads, to be completed, then is deleted the backup video recording audio, video data of this video recording audio, video data.According to above-mentioned side Formula uploads video recording audio, video data one by one, and deletes the backup video recording audio, video data in internal storage, until buffering is deposited All video recording audio, video datas upload in reservoir finishes.
It, can be while being stored to video recording audio, video data by above-mentioned processing, it will be on video recording audio, video data Server is reached, and the video recording audio, video data for being uploaded to server is deleted from internal storage, inside can be saved Memory storage space.Video recording audio, video data in server is checked for user by App client request, when user needs When checking opal equipment video recording audio, video data, server request is directly connected by App client, it is not necessary to again directly It is connect with opal equipment.
Data are sent to server immediately when receiving video recording audio, video data using technical solution of the embodiment of the present invention Upload request, and video recording audio, video data is stored simultaneously and arrives internal storage and buffer storage.It is sent out when receiving server When the data uploading instructions sent, the video recording audio, video data in buffer storage is uploaded to server, while by storage inside The video recording audio, video data that server has been uploaded in device is deleted.Above scheme, which realizes, is receiving video recording audio, video data Meanwhile video recording audio, video data is uploaded to server, user arbitrarily can check video recording audio-video number by accessing server According to, it is not necessary to it connects opal equipment and wakes up opal equipment and request video recording audio, video data again.Above-mentioned technical proposal can be reduced User checks video recording audio, video data and wakes up the number of opal equipment, opal equipment operating time is reduced, to reduce opal Equipment power dissipation.
Fig. 3 shows the detailed process of data processing method shown in Fig. 2, shown in Figure 3, the embodiment of the present invention Disclosed data processing method specifically includes:
S301, video recording audio and video data streams are obtained;
Specifically, when opal equipment working state meets camera shooting trigger condition and opens work, the camera shooting list of opal equipment Member starts to acquire audio, video data, while the audio, video data that opal equipment photographic device acquires camera unit is recorded a video, Obtain video recording audio and video data streams.
The photographic device that above-mentioned trigger condition specifically refers to triggering opal equipment opens the condition of work, which can be The forms such as trigger signal, such as when opal equipment PIR module monitors are to human motion, issue trigger signal and trigger IPC main mould Block opens work.
S302, the audio and video data streams are respectively stored into internal storage and buffer storage, while to service Device sends data upload requests information;
Specifically, the embodiment of the present invention is set, when the photographic device of opal equipment wakes up work, the camera shooting list of photographic device When member starts to acquire and generate video recording audio and video data streams, video recording audio and video data streams that photographic device storage receives.This hair Video recording audio and video data streams are stored simultaneously when storing received video recording audio and video data streams and arrive opal by bright embodiment setting In the internal storage and buffer storage of equipment.
When receiving video recording audio and video data streams, and audio and video data streams of recording a video are stored to the inside for arriving opal equipment simultaneously While in memory and buffer storage, the embodiment of the present invention also sends data upload requests information to server immediately, asks It asks and the video recording audio, video data of generation is uploaded onto the server.
Above-mentioned internal storage is opal equipment local storage, can store video recording audio, video data for a long time.It is above-mentioned slow Rush the buffer-stored that memory carries out the short time for that will need to be uploaded to the data of server.It is appreciated that the present invention is implemented Example is by identical video recording audio, video data while storage is into above-mentioned internal storage and buffer storage, works as internal storage With the memory space of buffer storage it is all sufficient in the case where, video recording audio, video data in internal storage and buffer storage It is identical.Setting of the embodiment of the present invention cannot be further continued for when above-mentioned buffer storage is filled with data toward buffer storage Middle storing data cannot cover the data previously having had been written into.Only when the data in buffer storage are read away, buffering When having free memory in memory, can just it continue toward buffer memory stores data.
If receiving the data uploading instructions of server transmission, S303 is thened follow the steps, will be in the buffer storage The video recording audio, video data of storage is uploaded to the server;
Specifically, after sending data upload requests information to server, server is determined depending on working condition in step S301 It is fixed whether to allow to upload video recording audio, video data, if server workload is smaller, it can permit upload video recording audio-video number According to then issuing data uploading instructions;If server workload is larger, temporarily will not response data upload request, wait take When business device workload allows to upload video recording audio, video data, then response data upload request.
When opal equipment photographic device receives the data uploading instructions of server transmission, will be stored in buffer storage Video recording audio, video data be uploaded to server.It should be noted that the video recording sound in buffer storage and internal storage Video data is all to be stored as unit of item, i.e., stored item by item.One video recording audio, video data, when referring to one section Long video recording audio, video data, such as the video recording audio, video data of one section of ten minutes duration from 19:00-19:10, so that it may see Doing is a video recording audio, video data.When uploading video recording audio, video data to server, and as unit of item, one by one Ground uploads.
Whether S304, detection video recording audio, video data upload completion;
Specifically, whether above-mentioned detection video recording audio, video data uploads completion, refers to and uploading each video recording audio-video When data, detects whether to upload and complete.
The embodiment of the present invention passes through the end of identification of identification video recording audio and video data streams, to detect the video recording sound currently uploaded Whether video data uploads completion.
Setting of the embodiment of the present invention, when by video recording audio and video data streams storage into buffer storage and internal storage, Video recording audio, video data is named with the generation time for audio and video data streams of recording a video, i.e. the name of each video recording audio, video data All directly contain the generation time of this video recording audio, video data.Also, the embodiment of the present invention is set, in the adjacent of storage It records a video between audio, video data, stores an adjacent data spacing identification, the mark is for indicating a video recording audio-video number Start according to end and next video recording audio, video data.That is, the spacing identification, while being regarded as a video recording sound The end of identification of frequency evidence and another video recording audio, video data start to identify.
When uploading video recording audio and video data streams, end of identification identifies the embodiment of the present invention simultaneously, i.e., above-mentioned spacing identification, If having recognized the video recording audio and video data streams of current upload during uploading a certain item video recording audio and video data streams End of identification then can be confirmed that the video recording audio and video data streams upload and complete.
By way of the end of identification of above-mentioned detection video recording audio and video data streams, the video recording sound of upload can be confirmed respectively Whether video data uploads completion.
It is completed if audio, video data of recording a video uploads, thens follow the steps S305, deletes the backup in the internal storage Audio, video data.
The audio, video data specifically, above-mentioned backup is recorded a video, refers to and is uploaded to the video recording audio, video data of the server Identical video recording audio, video data.Since technical solution of the embodiment of the present invention is set, when photographic device stores video recording audio-video number It is to store in internal storage and buffer storage simultaneously when according to stream, therefore the meeting in internal storage and buffer storage There are identical video recording audio, video datas, it is believed that the video recording audio, video data stored in internal storage is as buffer-stored The backup video recording audio, video data of video recording audio, video data in device.
The embodiment of the present invention is uploading the same of the video recording audio, video data in buffer storage by executing step S305 When, by what is stored in internal storage, video recording audio-video number identical with the video recording audio, video data of server has been uploaded to According to deletion.
It should be noted that opal equipment photographic device detection video recording audio, video data whether upload completion when, be When uploading each video recording audio, video data, whether detection each video recording audio, video data uploads completion, if a video recording Audio, video data, which uploads, to be completed, then is deleted the backup video recording audio, video data of this video recording audio, video data.According to above-mentioned side Formula uploads video recording audio, video data one by one, and deletes the backup video recording audio, video data in internal storage, until buffering is deposited All video recording audio, video datas upload in reservoir finishes.
It, can be while being stored to video recording audio, video data by above-mentioned processing, it will be on video recording audio, video data Server is reached, and the video recording audio, video data for being uploaded to server is deleted from internal storage, inside can be saved Memory storage space.Video recording audio, video data in server is checked for user by App client request, when user needs When checking opal equipment video recording audio, video data, server request is directly connected by App client, it is not necessary to again directly It is connect with opal equipment.
When the video recording audio, video data upload stored in buffer storage finishes, step S306 is executed, detection inside is deposited With the presence or absence of video recording audio, video data in reservoir;
Specifically, since the memory capacity of buffer storage and the memory capacity of internal storage are different, buffer storage In storable data volume be less than storable data volume in internal storage, therefore, when the record stored in buffer storage When being all uploaded to server as audio, video data, if opal equipment still in wake-up states, at this time the embodiment of the present invention after It is continuous to judge whether there are also video recording audio, video datas not to be uploaded to server in internal storage.
If there is video recording audio, video data in internal storage, S307 is thened follow the steps, by the record in internal storage As audio, video data is uploaded to server;
Specifically, if being deposited when opal equipment is still in wake-up working condition, and by step S306 confirmation in inside There is also the video recording audio, video data for not being uploaded to server in reservoir, setting of the embodiment of the present invention continues internal storage In video recording audio, video data be uploaded to server.
Also, the embodiment of the present invention is set, by the video recording audio, video data in internal storage in above-mentioned steps S307 When being uploaded to server, and the video recording audio, video data in internal storage is uploaded to server item by item, and Whenever having uploaded a video recording audio, video data, then it will upload the video recording audio, video data finished and delete.
It should be noted that in above-mentioned introduction during video recording audio, video data is uploaded to server, if again New video recording audio, video data is had received, then will not interrupt ongoing data upload process, and for new video recording sound Video data according to the processing mode that step S302 is introduced, while being respectively stored into internal storage and buffer storage, with etc. It is to be uploaded to server.
After the completion of audio, video data of recording a video uploads, executes step S308, judges whether opal equipment is in idle condition;
Specifically, working as the video recording audio, video data in buffer storage and the video recording audio-video in internal storage After data are all uploaded to server, whether opal equipment is in idle condition at this time for judgement of the embodiment of the present invention.
Above-mentioned idle state no longer generates new audio and video data streams or opal including opal equipment camera unit and sets It is standby to be carried out without any task.When judging whether opal equipment is in idle condition, the embodiment of the present invention passes through task It manages with power management and judges, that is, judge whether opal equipment has task to be currently running, comprise determining whether also generating newly Video recording audio, video data can be confirmed that opal equipment is in idle condition if be currently running without any task.Or Judge whether opal equipment power management is in lower electric dormant state, if opal equipment power management is in lower electric suspend mode shape State then can be confirmed that opal equipment is in idle condition.
If opal equipment is also generating new video recording audio, video data in wake-up working condition, and also at this time, Then received video recording audio, video data is handled according to the step of above-mentioned steps S301~S307 again.
If opal equipment is in idle condition, S309, control opal opening of device suspend mode are thened follow the steps.
Specifically, if opal has been in idle condition, and new video recording audio, video data is no longer generated, then this hair Bright embodiment controls opal opening of device suspend mode, to reduce opal equipment power dissipation.
It should be noted that user can flexibly set cat according to demand in the normal use process of opal equipment Eye equipment enters the time of dormant state from wake-up states, such as setting does not detect personnel's dynamic when PIR is interior at N minutes When, then it controls opal equipment and enters idle state.Based on above-mentioned setting, when opal equipment photographic device no longer receives video recording sound view When frequency data stream, illustrate that the camera of opal equipment has stopped acquiring audio, video data, at this time according to the actual setting of user, Opal equipment is at any time all possibly into dormant state.But in technical solution of the embodiment of the present invention, work as opal due to setting The video recording audio, video data of storage is uploaded to server after opening of device work, rather than specially for the audio-video number that will record a video Opal equipment is waken up according to server is uploaded to, therefore the embodiment of the present invention is set, when opal equipment state meets user setting Enter dormant state condition when, if opal equipment is uploading video recording audio, video data, control opal equipment and do not enter Dormant state enters back into dormant state after the completion of waiting video recording audio, video data to upload.
Above describe servers to issue data uploading instructions, and video recording audio, video data is uploaded to server by opal equipment Treatment process, but when server due to heavy traffic do not respond to opal equipment transmission data upload requests information when, Received video recording audio, video data, is only respectively stored into buffer storage and internal storage by setting of the embodiment of the present invention.
In this way, for accumulating the video recording audio, video data being stored in internal storage because server does not respond to, Or the video recording sound view of above-mentioned introduction only uploading a part of and remaining a part video recording audio-video and not being uploaded to server Frequency evidence is handled then when waking up opal equipment next time according to following proposal:
When opal equipment wakes up, detect in internal storage whether have video recording audio, video data;
If there being video recording audio, video data in internal storage, data upload requests information is sent to server;
If receiving the data uploading instructions of server transmission, the video recording audio-video number that will be stored in internal storage According to being uploaded to server.
Specifically, in above-mentioned steps, if opal equipment wakes up, judge in opal equipment internal storage at this time whether There is the video recording audio, video data of previous residual to be uploaded to server not yet, is asked if so, server is then sent data upload Information is sought, when receiving the data uploading instructions of server transmission, the video recording audio-video that will be stored in internal storage immediately Data are uploaded to server.
In fact, can judge the inside of opal equipment according to above scheme when any opal equipment wakes up Whether there is video recording audio, video data in memory, if so, then sending data upload requests information to server, works as server The video recording audio, video data that internal storage stores is uploaded to server when response, so as to avoid user from needing to check record It also needs to obtain from the internal storage of opal equipment when as audio, video data.
It should be noted that new video recording audio, video data may greatly be generated by having when opal equipment wakes up, for New video recording audio, video data is still handled according to the step of step S301~S309, is uploaded to server.And for upper The treatment process of step is stated, then will not generate interference to above-mentioned step S301~S309.
Meanwhile it recording a video audio, video data in the reception of above-mentioned introduction, and be respectively stored into buffer storage and inside is deposited Reservoir, and any time during the video recording audio, video data of storage is uploaded to server, if receiving client What end was sent checks real-time video solicited message, then stops uploading the video recording audio, video data stored in the buffer storage The extremely server, and received video recording audio, video data is transmitted to the client;
Specifically, when user checks real-time video by client request, according to technical solution of the embodiment of the present invention, such as Video recording audio, video data is uploaded to server by fruit, then stops uploading video recording audio, video data at this time, only by received record As audio, video data is respectively stored into internal storage and buffer storage, while received video recording audio, video data being transmitted to User client allows user to check real-time audio and video data by client.
When real-time video is checked in client stopping, detecting in buffer storage with the presence or absence of video recording audio, video data;
Specifically, at this time in buffer storage, it is understood that there may be the previous video recording audio, video data for not uploading completion, or User checks newly generated video recording audio, video data when real-time video.
If there is video recording audio, video data in buffer storage, data upload requests information is sent to server;
If receiving the data uploading instructions of server transmission, continue the video recording that will be stored in the buffer storage Audio, video data is uploaded to the server;
Whether detection video recording audio, video data uploads completion;
It is completed if audio, video data of recording a video uploads, deletes the backup audio, video data in the internal storage;Its In, the backup audio, video data is video recording audio-video number identical with the video recording audio, video data of the server is uploaded to According to.
Specifically, when user stops checking real-time video by client, if opal equipment does not enter into suspend mode still State, then the embodiment of the present invention sends data upload requests information to server again and issues if server responds Data uploading instructions then continue to execute video recording audio, video data and upload, specially regard the video recording sound stored in buffer storage Frequency according to being uploaded to server, it is every uploaded a video recording audio, video data after, while delete in internal storage with upload To the identical video recording audio, video data of video recording audio, video data of server, then detect again in internal storage whether there is also Video recording audio, video data, if there is video recording audio, video data, then the video recording audio, video data that will be present is uploaded to server, together When delete in internal storage and uploaded the video recording audio, video data finished, until the video recording sound that will be stored in internal storage Video data upload finishes.
By above-mentioned introduction as it can be seen that using technical solution of the embodiment of the present invention, when receiving video recording audio, video data, immediately Data upload requests are sent to server, and video recording audio, video data is stored simultaneously and arrives internal storage and buffer storage. When receiving the data uploading instructions of server transmission, the video recording audio, video data in buffer storage is uploaded to service Device, while the video recording audio, video data that server has been uploaded in internal storage being deleted.Above scheme, which realizes, to be connect While including as audio, video data, video recording audio, video data is uploaded to server, user can arbitrarily pass through access service Device checks video recording audio, video data, it is not necessary to connect opal equipment and wake up opal equipment and request video recording audio, video data again.On The number that user checks video recording audio, video data and wakes up opal equipment can be reduced by stating technical solution, reduce the work of opal equipment Duration, to reduce opal equipment power dissipation.
The embodiment of the invention also discloses a kind of data processing equipment, which is applied to the photographic device of opal equipment, The photographic device includes camera unit, shown in Figure 4, which includes:
Data capture unit 100, for obtaining audio and video data streams, the audio and video data streams are that camera unit is based on touching The audio, video data of clockwork spring part acquisition;
Data storage cell 110, for the audio and video data streams to be respectively stored into internal storage and buffer-stored In device, while data upload requests information is sent to server;
First uploading unit 120, for when receiving the data uploading instructions that the server is sent, by the buffering The video recording audio, video data stored in memory is uploaded to the server;
First detection unit 130, for detecting whether video recording audio, video data uploads completion;
First processing units 140 are deleted standby in the internal storage when uploading completion for audio, video data of recording a video Part audio, video data;Wherein, the backup audio, video data is identical as the video recording audio, video data of the server is uploaded to Video recording audio, video data;Video recording audio, video data in the server is checked for user's request.
Specifically, the specific works content of each unit in the present embodiment, refers to the content of above method embodiment, Details are not described herein again.
Optionally, in another embodiment of the present invention, shown in Figure 5, described device further include:
Second detection unit 150, after working as the video recording audio, video data stored in the buffer storage upload, It detects in the internal storage with the presence or absence of video recording audio, video data;
Second uploading unit 160 is used for when there is video recording audio, video data in the internal storage, by the inside Video recording audio, video data in memory is uploaded to the server.
Specifically, the specific works content of each unit in the present embodiment, refers to the content of above method embodiment, Details are not described herein again.
Optionally, in another embodiment of the present invention, described device further include:
The video recording audio, video data stored in the buffer storage is uploaded to the clothes for working as by the second processing unit Be engaged in device when, if receive client transmission checks real-time video solicited message, stopping will deposit in the buffer storage The video recording audio, video data of storage is uploaded to the server, and received video recording audio, video data is transmitted to the client.
Specifically, the specific works content of the second processing unit in the present embodiment, refers to above method embodiment Content, details are not described herein again.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of data processing method, which is characterized in that be applied to photographic device, the photographic device includes camera unit, institute The method of stating includes:
Audio and video data streams are obtained, the audio and video data streams are the audio, video data that camera unit is acquired based on trigger condition;
The audio and video data streams are respectively stored into internal storage and buffer storage, while sending data to server Upload request information;
If receiving the data uploading instructions that the server is sent, the video recording sound stored in the buffer storage is regarded Frequency evidence is uploaded to the server;
Whether detection video recording audio, video data uploads completion;
It is completed if audio, video data of recording a video uploads, deletes the backup audio, video data in the internal storage;Wherein, institute Stating backup audio, video data is video recording audio, video data identical with the video recording audio, video data of the server is uploaded to;It is described Video recording audio, video data in server is checked for user's request.
2. the method according to claim 1, wherein the method also includes:
After the video recording audio, video data that stores in the buffer storage uploads, detect in the internal storage whether In the presence of video recording audio, video data;
If there is video recording audio, video data in the internal storage, by the video recording audio-video number in the internal storage According to being uploaded to the server.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
After the completion of audio, video data of recording a video uploads, judge whether the opal equipment is in idle condition;
If the opal equipment is in idle condition, the opal opening of device suspend mode is controlled.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the opal equipment wakes up, detects and whether have video recording audio, video data in the internal storage;
If there being video recording audio, video data in the internal storage, data upload requests letter is sent to the server Breath;
If receiving the data uploading instructions that the server is sent, the video recording sound stored in the internal storage is regarded Frequency evidence is uploaded to the server.
5. the method according to claim 1, wherein the detection is recorded a video, whether audio, video data uploads completion, Include:
Identify the end of identification of the video recording audio and video data streams currently uploaded;
If recognizing the end of identification of the video recording audio and video data streams currently uploaded, confirm that video recording audio, video data has uploaded At.
6. the method according to claim 1, wherein the method also includes:
When the video recording audio, video data that will be stored in the buffer storage is uploaded to the server, if receiving client What end was sent checks real-time video solicited message, then stops uploading the video recording audio, video data stored in the buffer storage The extremely server, and received video recording audio, video data is transmitted to the client.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
When real-time video is checked in client stopping, detecting in the buffer storage with the presence or absence of video recording audio-video number According to;
If there is video recording audio, video data in the buffer storage, data upload requests letter is sent to the server Breath;
If receiving the data uploading instructions that the server is sent, continue the video recording that will be stored in the buffer storage Audio, video data is uploaded to the server;
Whether detection video recording audio, video data uploads completion;
It is completed if audio, video data of recording a video uploads, deletes the backup audio, video data in the internal storage;Wherein, institute Stating backup audio, video data is video recording audio, video data identical with the video recording audio, video data of the server is uploaded to.
8. a kind of data processing equipment, which is characterized in that be applied to photographic device, the photographic device includes camera unit, institute Stating data processing equipment includes:
Data capture unit, for obtaining audio and video data streams, the audio and video data streams are that camera unit is based on trigger condition The audio, video data of acquisition;
Data storage cell, for the audio and video data streams to be respectively stored into internal storage and buffer storage, together When to server send data upload requests information;
First uploading unit, for when receiving the data uploading instructions that the server is sent, by the buffer storage The video recording audio, video data of middle storage is uploaded to the server;
First detection unit, for detecting whether video recording audio, video data uploads completion;
First processing units when uploading completion for audio, video data of recording a video, delete the backup sound view in the internal storage Frequency evidence;Wherein, the backup audio, video data is video recording identical with the video recording audio, video data of the server is uploaded to Audio, video data;Video recording audio, video data in the server is checked for user's request.
9. device according to claim 8, which is characterized in that described device further include:
Second detection unit, for detecting institute after the video recording audio, video data stored in the buffer storage uploads It states in internal storage with the presence or absence of video recording audio, video data;
Second uploading unit is used for when there is video recording audio, video data in the internal storage, by the internal storage In video recording audio, video data be uploaded to the server.
10. device according to claim 8, which is characterized in that described device further include:
The video recording audio, video data stored in the buffer storage is uploaded to the server for working as by the second processing unit When, if receive client transmission checks real-time video solicited message, stop to store in the buffer storage Video recording audio, video data is uploaded to the server, and received video recording audio, video data is transmitted to the client.
CN201810128408.5A 2018-02-08 2018-02-08 A kind of data processing method and device Pending CN110139053A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810128408.5A CN110139053A (en) 2018-02-08 2018-02-08 A kind of data processing method and device
PCT/CN2019/074071 WO2019154242A1 (en) 2018-02-08 2019-01-31 Data processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810128408.5A CN110139053A (en) 2018-02-08 2018-02-08 A kind of data processing method and device

Publications (1)

Publication Number Publication Date
CN110139053A true CN110139053A (en) 2019-08-16

Family

ID=67548205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810128408.5A Pending CN110139053A (en) 2018-02-08 2018-02-08 A kind of data processing method and device

Country Status (2)

Country Link
CN (1) CN110139053A (en)
WO (1) WO2019154242A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584221A (en) * 2020-11-06 2021-03-30 西安万像电子科技有限公司 Image acquisition method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917127A (en) * 2012-10-15 2013-02-06 北京推博信息技术有限公司 Audio transmission method and system
CN103167026A (en) * 2013-02-06 2013-06-19 数码辰星科技发展(北京)有限公司 Processing method, system and device for cloud storage environmental data
CN103546724A (en) * 2013-10-22 2014-01-29 杭州爱浦多数码技术有限公司 Network camera collecting-distributing redundancy storage system and storage method thereof
CN104079633A (en) * 2014-06-10 2014-10-01 长沙裕邦软件开发有限公司 Method and system for synchronously saving data acquired by terminal to cloud server
CN104182182A (en) * 2014-08-18 2014-12-03 四川航天系统工程研究所 Intelligent terminal and data backup method thereof
CN104900036A (en) * 2015-06-04 2015-09-09 深圳市华德安科技有限公司 Vehicle-mounted law enforcement data acquisition workstation and method for acquiring law enforcement data
CN105516686A (en) * 2016-01-14 2016-04-20 深圳市华海技术有限公司 Power-saving image pick-up device, intelligent door viewer and network camera

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9645950B2 (en) * 2013-01-31 2017-05-09 Vmware, Inc. Low-cost backup and edge caching using unused disk blocks
CN205847419U (en) * 2016-07-26 2016-12-28 深圳市天海世界卫星通信科技有限公司 A kind of broadband satellite single-point Video transmission system
CN106484562B (en) * 2016-09-14 2019-08-23 Oppo广东移动通信有限公司 A kind of data transmission processing method and terminal device
CN106685855A (en) * 2017-01-17 2017-05-17 新智数字科技有限公司 Data transmission method and data transmission device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917127A (en) * 2012-10-15 2013-02-06 北京推博信息技术有限公司 Audio transmission method and system
CN103167026A (en) * 2013-02-06 2013-06-19 数码辰星科技发展(北京)有限公司 Processing method, system and device for cloud storage environmental data
CN103546724A (en) * 2013-10-22 2014-01-29 杭州爱浦多数码技术有限公司 Network camera collecting-distributing redundancy storage system and storage method thereof
CN104079633A (en) * 2014-06-10 2014-10-01 长沙裕邦软件开发有限公司 Method and system for synchronously saving data acquired by terminal to cloud server
CN104182182A (en) * 2014-08-18 2014-12-03 四川航天系统工程研究所 Intelligent terminal and data backup method thereof
CN104900036A (en) * 2015-06-04 2015-09-09 深圳市华德安科技有限公司 Vehicle-mounted law enforcement data acquisition workstation and method for acquiring law enforcement data
CN105516686A (en) * 2016-01-14 2016-04-20 深圳市华海技术有限公司 Power-saving image pick-up device, intelligent door viewer and network camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584221A (en) * 2020-11-06 2021-03-30 西安万像电子科技有限公司 Image acquisition method and system

Also Published As

Publication number Publication date
WO2019154242A1 (en) 2019-08-15

Similar Documents

Publication Publication Date Title
CN204463162U (en) A kind of intelligent face recognition system
WO2018028129A1 (en) Security monitoring device, security monitoring system and security monitoring method
CN208369746U (en) Web camera and internet protocol camera system
CN105137771A (en) Intelligent household appliance control system and method based on mobile terminal
CN102811344A (en) Control method and device for improving storage stability in video monitoring system
CN204615930U (en) A kind of web camera of powered battery low-power consumption
CN108024096A (en) A kind of low-power-consumption video monitoring system and its control method
WO2018028133A1 (en) Security and protection monitoring device, security and protection monitoring system and security and protection monitoring method
KR20150091331A (en) A system apparatus and device for facilitating network edge device backup and methods of operation thereof
CN210573837U (en) Intelligent face recognition system
CN103929616A (en) Intelligent Internet-of-things household visual door control monitoring system and monitoring method
KR101444006B1 (en) Cloud image recording system of ip camera
CN109003350A (en) Generation dimension logging instrument and working method
CN107809626A (en) A kind of intelligent monitoring pick-up head
CN110139053A (en) A kind of data processing method and device
CN106331623A (en) Security protection camera, and security protection communication system and method
CN210007792U (en) Image recognition meter reading terminal and system, image recognition engine server and intelligent meter
CN113259588A (en) Low-power-consumption mobile object detection system and method
CN105323555A (en) Wearable recorder for recording construction site conditions
CN111445649A (en) Low-power-consumption wireless doorbell system and control method thereof
CN111158763A (en) Equipment instruction processing system for building intelligent management and control
CN109729248A (en) Intelligent video camera head and intelligent video camera head control system
CN115278174A (en) Vehicle remote video playing method and device for enhancing information security and storage medium
CN114979580A (en) Image recognition device and method for machine room monitoring
CN201957169U (en) Home multifunctional wireless display monitoring system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190816