CN107454383B - A kind of method and terminal detecting camera state - Google Patents

A kind of method and terminal detecting camera state Download PDF

Info

Publication number
CN107454383B
CN107454383B CN201710469718.9A CN201710469718A CN107454383B CN 107454383 B CN107454383 B CN 107454383B CN 201710469718 A CN201710469718 A CN 201710469718A CN 107454383 B CN107454383 B CN 107454383B
Authority
CN
China
Prior art keywords
camera
newly
file
video file
picture file
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
CN201710469718.9A
Other languages
Chinese (zh)
Other versions
CN107454383A (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.)
Fujian Netdragon Websoft Co Ltd
Original Assignee
Fujian Netdragon Websoft 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 Fujian Netdragon Websoft Co Ltd filed Critical Fujian Netdragon Websoft Co Ltd
Priority to CN201710469718.9A priority Critical patent/CN107454383B/en
Publication of CN107454383A publication Critical patent/CN107454383A/en
Application granted granted Critical
Publication of CN107454383B publication Critical patent/CN107454383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The present invention relates to field of picture communication more particularly to a kind of methods and terminal for detecting camera state.The present invention is by opening camera to during closing camera, if not increasing the picture file that the camera is shot or the video file that the camera is recorded newly, marking camera is non-shooting state;Otherwise label camera is shooting state.It realizes and improves the accuracy whether detection camera is in shooting state.

Description

A kind of method and terminal detecting camera state
Technical field
The present invention relates to field of picture communication more particularly to a kind of methods and terminal for detecting camera state.
Background technique
In public, head mounted image-sensing equipment easily misunderstands wearer by the public and is currently being afraid of there is infringement steathily The behavior of public's privacy.Therefore, corresponding prompt information (such as light is had when most head mounted image-sensing equipment is in shooting state Flashing, auditory tone cues information) it takes on the sly to prevent wearer.Currently, when the camera of head mounted image-sensing equipment is called, just directly Determine that picture pick-up device is in shooting state, outwardly issues information warning.With the development of science and technology, the effect of camera is not It is only to take pictures and make video recording, it may also be used for obtain corresponding image information to execute corresponding operation, such as scan the two-dimensional code and execute branch Operation is paid, during the scanning process, the two-dimensional barcode information got by camera will not be saved, and head mounted image-sensing equipment is not In shooting state.Therefore, whether it is called to determine whether head mounted image-sensing equipment is in shooting state not using camera It is enough accurate.
Summary of the invention
The technical problems to be solved by the present invention are: how to improve whether detection camera is in the accurate of shooting state Property.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows:
The present invention provides a kind of method for detecting camera state, comprising:
During opening camera extremely closing camera,
If the video file that the picture file or the camera that do not increase the camera shooting newly are recorded, marks camera shooting Head is non-shooting state;
Otherwise label camera is shooting state.
The present invention also provides a kind of terminal for detecting camera state, including one or more processors and memory, institutes It states memory and is stored with program, and be configured to execute following steps by one or more of processors:
During opening camera extremely closing camera,
If the video file that the picture file or the camera that do not increase the camera shooting newly are recorded, marks camera shooting Head is non-shooting state;
Otherwise label camera is shooting state.
The beneficial effects of the present invention are: the present invention according to open camera to during closing camera whether it is newly-increased by The camera shooting or the image file recorded judge whether camera is in shooting state, effectively eliminate using camera shooting Head such as scans the two-dimensional code at the non-shooting situation, improves the accuracy whether detection camera is in shooting state.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the specific embodiment of method for detecting camera state provided by the invention;
Fig. 2 is a kind of structural block diagram of the specific embodiment of terminal for detecting camera state provided by the invention;
Label declaration:
1, processor;2, memory.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached Figure is explained.
As shown in Figure 1, the present invention provides a kind of method for detecting camera state, comprising:
During opening camera extremely closing camera,
If the video file that the picture file or the camera that do not increase the camera shooting newly are recorded, marks camera shooting Head is non-shooting state;
Otherwise label camera is shooting state.
Further, further includes:
If calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and call institute It states and does not include picture file or video file in the corresponding network packet of application program of camera, then mark not newly-increased described The video file that the picture file or the camera of camera shooting are recorded.
Seen from the above description, during opening camera and extremely closing camera, if calling the application program pair of camera The catalogue answered increases image file newly, then illustrates that camera is in shooting state;In addition, also detecting net corresponding with the application program Whether network data packet includes image file, in case missing inspection does not save to storage medium and directly passes through network and be sent to other terminals Shoot situation.
Further, further includes:
If closing in the prefixed time interval after camera, the picture file or video file quilt that are increased newly in the catalogue It is automatically deleted, then:
Marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise:
Mark operation corresponding with the newly-increased picture file or video file for uneasy full operation.
Further, further includes:
When the camera is shooting state,
If the not newly-increased picture file of the catalogue or video file, and with the picture file or video that are increased newly in the catalogue The corresponding operation of file is uneasy full operation, then sends prompt information;Otherwise prompt information is not sent;
If including picture file or video file in the network packet, prompt information is sent;Otherwise it does not send and mentions Show information.
Seen from the above description, it is closing in the prefixed time interval after camera, is newly being saved if being automatically deleted in catalogue Image file, then illustrate corresponding shooting operation and be not present invasion of privacy behavior, be safety operation, for safety operation Do not send prompt information.
Further, further includes:
The prompt information is generated according to present system time.
Further, further includes:
Prompt information described in voice broadcast.
Seen from the above description, voice broadcast includes that the prompt information of present system time is conducive to the public affairs around warning Crowd protects individual privacy.
As shown in Fig. 2, the present invention also provides a kind of terminal for detecting camera state, including one or more processors 1 And memory 2, the memory 2 are stored with program, and are configured to execute following step by one or more of processors 1 It is rapid:
During opening camera extremely closing camera,
If the video file that the picture file or the camera that do not increase the camera shooting newly are recorded, marks camera shooting Head is non-shooting state;
Otherwise label camera is shooting state.
Further, further includes:
If calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and call institute It states and does not include picture file or video file in the corresponding network packet of application program of camera, then mark not newly-increased described The video file that the picture file or the camera of camera shooting are recorded.
Further, further includes:
If closing in the prefixed time interval after camera, the picture file or video file quilt that are increased newly in the catalogue It is automatically deleted, then:
Marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise:
Mark operation corresponding with the newly-increased picture file or video file for uneasy full operation;
When the camera is shooting state,
If the not newly-increased picture file of the catalogue or video file, and with the picture file or video that are increased newly in the catalogue The corresponding operation of file is uneasy full operation, then sends prompt information;Otherwise prompt information is not sent;
If including picture file or video file in the network packet, prompt information is sent;Otherwise it does not send and mentions Show information.
Further, further includes:
The prompt information is generated according to present system time;
Prompt information described in voice broadcast.
The embodiment of the present invention one are as follows:
The present embodiment provides a kind of methods for detecting camera state, comprising:
During opening camera extremely closing camera,
If S1, calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and adjust With picture file or video file is not included in the corresponding network packet of the application program of the camera, then marks and do not increase newly The video file that the picture file or the camera of the camera shooting are recorded;
For example, a self-timer software transfer camera carries out shooting operation, then the self-timer software corresponds to catalogue and can save currently Resulting picture file or video file are shot, that is, is opening camera to during closing camera, is calling the camera The corresponding catalogue of application program increases picture file or video file newly;
One payment software calls camera to scan the two-dimensional code, and carries out delivery operation, should during scanning the two-dimensional code Payment software, which corresponds to catalogue, will not save the two-dimension code pattern got by camera, i.e. unlatching camera is to closing camera Period calls the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file;
One shooting software calls camera to carry out shooting operation, but the shooting software can't be by the image taken text Part is stored to local, but the image file taken is directly sent to other terminals by network packet, then intercepting should The corresponding network packet of shooting software detects comprising image file in the network packet, that is, is opening camera extremely During closing camera, the corresponding catalogue of the application program of the camera is called to increase picture file or video file newly;
If the video file that S2, the picture file for not increasing the camera shooting newly or the camera are recorded, marks Camera is non-shooting state;Otherwise label camera is shooting state;
If S3, closing in the prefixed time interval after camera, the picture file or video increased newly in the catalogue is literary Part is automatically left out, then marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise it marks Remember operation corresponding with the newly-increased picture file or video file for uneasy full operation;
For example, needing to parse multiframe picture, at this time due to memory when progress real time picture turns Text region It is limited, it needs first for picture to be stored as file, then be loaded into memory identification one by one, then the picture file after parsing is deleted, The text results identified finally are returned only to, the present invention can effectively avoid such situation and be mistaken for shooting state.
S4, when the camera is shooting state, if the not newly-increased picture file of the catalogue or video file, and with institute The corresponding operation of the picture file or video file increased newly in catalogue is stated as uneasy full operation, then sends prompt information;Otherwise not Send prompt information;
If including picture file or video file in the network packet, prompt information is sent;Otherwise it does not send and mentions Show information;
The prompt information is generated according to present system time;
Prompt information described in S5, voice broadcast.
The embodiment of the present invention two are as follows:
As shown in Fig. 2, the present embodiment provides a kind of terminal for detecting camera state, including one or more processors 1 And memory 2, the memory 2 are stored with program, and are configured to execute following step by one or more of processors It is rapid:
During opening camera extremely closing camera,
If S1, calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and adjust With picture file or video file is not included in the corresponding network packet of the application program of the camera, then marks and do not increase newly The video file that the picture file or the camera of the camera shooting are recorded;
For example, a self-timer software transfer camera carries out shooting operation, then the self-timer software corresponds to catalogue and can save currently Resulting picture file or video file are shot, that is, is opening camera to during closing camera, is calling the camera The corresponding catalogue of application program increases picture file or video file newly;
One payment software calls camera to scan the two-dimensional code, and carries out delivery operation, should during scanning the two-dimensional code Payment software, which corresponds to catalogue, will not save the two-dimension code pattern got by camera, i.e. unlatching camera is to closing camera Period calls the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file;
One shooting software calls camera to carry out shooting operation, but the shooting software can't be by the image taken text Part is stored to local, but the image file taken is directly sent to other terminals by network packet, then intercepting should The corresponding network packet of shooting software detects comprising image file in the network packet, that is, is opening camera extremely During closing camera, the corresponding catalogue of the application program of the camera is called to increase picture file or video file newly;
If the video file that S2, the picture file for not increasing the camera shooting newly or the camera are recorded, marks Camera is non-shooting state;Otherwise label camera is shooting state;
If S3, closing in the prefixed time interval after camera, the picture file or video increased newly in the catalogue is literary Part is automatically left out, then marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise it marks Remember operation corresponding with the newly-increased picture file or video file for uneasy full operation;
S4, when the camera is shooting state, if the not newly-increased picture file of the catalogue or video file, and with institute The corresponding operation of the picture file or video file increased newly in catalogue is stated as uneasy full operation, then sends prompt information;Otherwise not Send prompt information;
If including picture file or video file in the network packet, prompt information is sent;Otherwise it does not send and mentions Show information;
The prompt information is generated according to present system time;
Prompt information described in S5, voice broadcast.
In conclusion a kind of method and terminal for detecting camera state provided by the invention, according in unlatching camera To during closing camera, whether the newly-increased image file for being shot or being recorded by the camera judges whether camera is in bat State is taken the photograph, effectively eliminates and the non-shooting situation such as scans the two-dimensional code using camera, improves whether detection camera is in The accuracy of shooting state.Further, during opening camera and extremely closing camera, if calling the application program of camera Corresponding catalogue increases image file newly, then illustrates that camera is in shooting state;In addition, also detecting corresponding with the application program Whether network packet includes image file, in case missing inspection does not save to storage medium and directly passes through network and be sent to other terminals Shooting situation.Further, it is closing in the prefixed time interval after camera, if being automatically deleted the figure newly saved in catalogue As file, then illustrates corresponding shooting operation and the behavior of invasion of privacy is not present, be safety operation, safety operation is not sent out Send prompt information.Further, voice broadcast includes that the prompt information of present system time is conducive to the public around warning, is protected Individual privacy is protected.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include In scope of patent protection of the invention.

Claims (6)

1. a kind of method for detecting camera state characterized by comprising
During opening camera extremely closing camera,
If not increasing the picture file of camera shooting newly or video file that the camera is recorded, the camera is marked to be Non-shooting state;
Otherwise label camera is shooting state;
Wherein, further includes:
If calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and taken the photograph described in calling As not including picture file or video file in the corresponding network packet of the application program of head, then marks and do not increase the camera shooting newly The video file that the picture file or the camera of head shooting are recorded;
Wherein, further includes:
If the picture file or video file increased newly in the catalogue is automatic closing in the prefixed time interval after camera It deletes, then:
Marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise:
Mark operation corresponding with the newly-increased picture file or video file for uneasy full operation.
2. the method for detection camera state according to claim 1, which is characterized in that further include:
When the camera is shooting state,
If the catalogue increases picture file or video file newly, and with the picture file or video file pair that are increased newly in the catalogue The operation answered is uneasy full operation, then sends prompt information;Otherwise prompt information is not sent;
If including picture file or video file in the network packet, prompt information is sent;Otherwise prompt letter is not sent Breath.
3. the method for detection camera state according to claim 2, which is characterized in that further include:
The prompt information is generated according to present system time.
4. the method for detection camera state according to claim 2, which is characterized in that further include:
Prompt information described in voice broadcast.
5. a kind of terminal for detecting camera state, which is characterized in that described to deposit including one or more processors and memory Reservoir is stored with program, and is configured to execute following steps by one or more of processors:
During opening camera extremely closing camera,
If not increasing the picture file of camera shooting newly or video file that the camera is recorded, the camera is marked to be Non-shooting state;
Otherwise label camera is shooting state;
Wherein, further includes:
If calling the not newly-increased picture file of the corresponding catalogue of the application program of the camera or video file, and taken the photograph described in calling As not including picture file or video file in the corresponding network packet of the application program of head, then marks and do not increase the camera shooting newly The video file that the picture file or the camera of head shooting are recorded;
Wherein, further includes:
If the picture file or video file increased newly in the catalogue is automatic closing in the prefixed time interval after camera It deletes, then:
Marking operation corresponding with the newly-increased picture file or video file is safety operation;Otherwise:
Mark operation corresponding with the newly-increased picture file or video file for uneasy full operation;
When the camera is shooting state,
If the catalogue increases picture file or video file newly, and with the picture file or video file pair that are increased newly in the catalogue The operation answered is uneasy full operation, then sends prompt information;Otherwise prompt information is not sent;
If including picture file or video file in the network packet, prompt information is sent;Otherwise prompt letter is not sent Breath.
6. the terminal of detection camera state according to claim 5, which is characterized in that further include:
The prompt information is generated according to present system time;
Prompt information described in voice broadcast.
CN201710469718.9A 2017-06-20 2017-06-20 A kind of method and terminal detecting camera state Active CN107454383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710469718.9A CN107454383B (en) 2017-06-20 2017-06-20 A kind of method and terminal detecting camera state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710469718.9A CN107454383B (en) 2017-06-20 2017-06-20 A kind of method and terminal detecting camera state

Publications (2)

Publication Number Publication Date
CN107454383A CN107454383A (en) 2017-12-08
CN107454383B true CN107454383B (en) 2019-03-12

Family

ID=60486761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710469718.9A Active CN107454383B (en) 2017-06-20 2017-06-20 A kind of method and terminal detecting camera state

Country Status (1)

Country Link
CN (1) CN107454383B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163278B (en) * 2019-12-30 2023-04-07 视联动力信息技术股份有限公司 Camera control method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2701191Y (en) * 2004-04-10 2005-05-18 鸿富锦精密工业(深圳)有限公司 Digital camera module
JP2007208865A (en) * 2006-02-06 2007-08-16 Clarion Co Ltd System for detecting camera state
JP2014126753A (en) * 2012-12-27 2014-07-07 Seiko Epson Corp Head-mounted display
CN103475887A (en) * 2013-07-12 2013-12-25 黑龙江科技大学 Image synchronization method and device in camera visual system
CN103647903B (en) * 2013-12-31 2016-09-07 广东欧珀移动通信有限公司 A kind of mobile terminal photographic method and system

Also Published As

Publication number Publication date
CN107454383A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
US20040119831A1 (en) Method of management of pictures and method of recording pictures of animals
CN104735272B (en) The hold-up interception method and system of a kind of harassing call
CN110086996A (en) A kind of automatic photographing method based on TV, TV and storage medium
CN108419012A (en) Photographic method, device, storage medium and electronic equipment
US9888176B2 (en) Video apparatus and photography method thereof
CN108062530A (en) A kind of auth method and system
CN108810277B (en) Photographing preview method and device
JP2011082966A (en) Imaging apparatus
CN109215184A (en) Face registration, verification method, face registration system and the application in gate inhibition
CN104820567B (en) It is a kind of to control method, equipment and the system taken pictures using writing pencil
CN104486544B (en) The image pickup method and device of a kind of distant view photograph
KR101104656B1 (en) Pet image detection system and method for controlling operation thereof
CN107454383B (en) A kind of method and terminal detecting camera state
CN109656800B (en) Method and device for testing image recognition application, terminal and storage medium
JP2008134452A (en) Imaging apparatus and photographing control program for imaging apparatus
CN107491718A (en) The method that human hand Face Detection is carried out under different lightness environment
CN111639592A (en) Electronic display screen anti-photographing system and method
CN105718160A (en) Application operation triggering method, apparatus and system
CN114143429B (en) Image shooting method, device, electronic equipment and computer readable storage medium
CN106464814B (en) Flash of light collision detection, compensation and prevention
CN109413414B (en) silent photographing detection method based on android system
CN108924405B (en) Photographing focus correction and image processing method and device based on distance
CN112689089B (en) Shooting information sharing method and device, electronic equipment and storage medium
JP2010161704A (en) Mobile terminal, photographing control method thereof, program, and recording medium
JP2004159219A (en) Image photographing device, image copying machine, image editing device, photographed image managing method, copied image managing method and edited image managing method

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