TW201501532A - Photo shooting method and apparatus thereof - Google Patents

Photo shooting method and apparatus thereof Download PDF

Info

Publication number
TW201501532A
TW201501532A TW102143719A TW102143719A TW201501532A TW 201501532 A TW201501532 A TW 201501532A TW 102143719 A TW102143719 A TW 102143719A TW 102143719 A TW102143719 A TW 102143719A TW 201501532 A TW201501532 A TW 201501532A
Authority
TW
Taiwan
Prior art keywords
image data
encrypted
shooting
unit
file folder
Prior art date
Application number
TW102143719A
Other languages
Chinese (zh)
Other versions
TWI545948B (en
Inventor
Ru-Lan Lin
Ye Zou
Dan-Hua Li
Lang Yang
Original Assignee
Tencent Tech Shenzhen 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 Tencent Tech Shenzhen Co Ltd filed Critical Tencent Tech Shenzhen Co Ltd
Publication of TW201501532A publication Critical patent/TW201501532A/en
Application granted granted Critical
Publication of TWI545948B publication Critical patent/TWI545948B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/44Secrecy systems
    • H04N1/448Rendering the image unintelligible, e.g. scrambling
    • H04N1/4486Rendering the image unintelligible, e.g. scrambling using digital data encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Abstract

A photo shooting method and apparatus thereof is disclosed in the present invention and is related to a field of electronic device application to solve the problem that the operation procedure for encrypting the pictures is too complicated. The method in the present invention comprises: receiving an encrypted shooting command triggered by a user after activating a photo shooting application program; switching a normal photo shooting mode to an encrypted shooting mode according to the encrypted shooting command; acquiring photo data shot by a camera lens in the encrypted shooting mode; encrypting the photo data and saving the encrypted photo data. The present invention is to encrypt and save the photo or video shot by the camera lens.

Description

拍照方法及裝置 Photographing method and device

本發明係有關於電子裝置應用領域,特別是有關於一種拍照方法及裝置。 The invention relates to the field of electronic device application, and in particular to a photographing method and device.

目前,諸如手機、平板電腦等電子裝置都廣泛配備有用於拍攝照片或視頻的攝影鏡頭,使用者可以通過攝影鏡頭將生活中的點滴瞬間記錄下來,保存在電子裝置中便於日後查看。一些時候,使用者拍攝的照片或視頻(後續統稱為圖像)隱私級別較高,使用者需要對這些圖像進行加密保存,以防止他人竊用自己的電子裝置查看隱私圖像。 At present, electronic devices such as mobile phones and tablet computers are widely equipped with photographing lenses for taking photos or videos. The user can record the moments in the life through the photographic lens and store them in the electronic device for later viewing. In some cases, the photos or videos (hereinafter collectively referred to as images) taken by the user have a higher level of privacy, and the user needs to encrypt and save the images to prevent others from stealing their own electronic devices to view the privacy images.

現有的圖像加密過程通常為:用戶在完成拍攝後退出拍攝應用程式並進入加密保護應用程式,在加密保護應用程式中對圖像進行加密保存。 The existing image encryption process is usually: the user exits the shooting application after entering the shooting and enters the encryption protection application, and the image is encrypted and saved in the encryption protection application.

在上述圖像加密保存的過程中,發明人發現現有技術中至少存在如下問題:使用者需要在拍攝應用程式和加密保護應用程式之間進行手動切換,並且在進入加密保護應用程式時需要輸入加密密碼,使用者操作過於複雜。特別是當加密保存多個圖像時,使用者需要反覆執行相同的 操作步驟,使用起來相當繁瑣。 In the above process of image encryption and storage, the inventors have found that at least the following problems exist in the prior art: the user needs to manually switch between the shooting application and the encryption protection application, and needs to input encryption when entering the encryption protection application. Password, user operation is too complicated. Especially when encrypting multiple images, the user needs to repeatedly perform the same The operation steps are quite cumbersome to use.

本發明實施例提供一種拍照方法及裝置,能夠解決圖像加密保存過程操作過於繁瑣的問題。 The embodiment of the invention provides a photographing method and device, which can solve the problem that the image encryption and storage process is too cumbersome.

一方面,本發明實施例提供了一種拍照方法,包括:在啟動拍攝應用程式後,接收使用者觸發的加密拍攝指令;根據所述加密拍攝指令將普通拍攝模式切換為加密拍攝模式;在加密拍攝模式下,獲取攝影鏡頭拍攝的圖像資料,並將該圖像資料儲存於系統檔案資料夾;對所述圖像資料進行加密處理;對加密處理後的圖像資料進行保存。 In one aspect, the embodiment of the present invention provides a photographing method, comprising: receiving an encrypted photographing instruction triggered by a user after starting the photographing application; switching the normal photographing mode to the encrypted photographing mode according to the encrypted photographing instruction; In the mode, the image data captured by the photographic lens is acquired, and the image data is stored in the system file folder; the image data is encrypted; and the encrypted image data is saved.

另一方面,本發明實施例還提供了一種拍照裝置,包括:接收單元,用於在啟動拍攝應用程式後,接收使用者觸發的加密拍攝指令;切換單元,用於根據所述接收單元接收的所述加密拍攝指令將普通拍攝模式切換為加密拍攝模式;獲取單元,用於在加密拍攝模式下獲取攝影鏡頭拍攝的圖像資料,並將該圖像資料儲存於系統檔案資料夾;加解密單元,用於對所述獲取單元獲取的所述圖像資料進行加密處理; 儲存單元,用於對所述加解密單元加密處理後的圖像資料進行保存。 In another aspect, the embodiment of the present invention further provides a photographing apparatus, comprising: a receiving unit, configured to receive an encrypted photographing instruction triggered by a user after starting the photographing application; and a switching unit, configured to receive according to the receiving unit The encrypted shooting instruction switches the normal shooting mode to the encrypted shooting mode; the acquiring unit is configured to acquire the image data captured by the shooting lens in the encrypted shooting mode, and store the image data in the system file folder; the encryption and decryption unit And performing encryption processing on the image data acquired by the acquiring unit; And a storage unit, configured to save the image data after the encryption and decryption unit is encrypted.

本發明實施例提供的拍照方法及裝置,能夠在拍攝過程中根據接收到的加密拍攝指令將普通拍攝模式切換為加密拍攝模式,在加密拍攝模式下獲取攝影鏡頭拍攝的圖像資料,然後對獲取的圖像資料進行加密處理,最後將加密處理後的圖像資料進行保存,以便後續使用者根據使用者密碼進行查看。與現有技術中需要使用者退出拍攝應用程式對圖像資料進行加密相比,能夠在拍攝應用中提供加密拍攝模式,在加密拍攝模式下自動對攝影鏡頭拍攝的圖像進行加密保存,可以節省由於在拍攝應用程式與加密保護應用程式之間反覆切換產生的操作步驟,從而簡化圖像加密保存過程中的使用者操作。 The photographing method and device provided by the embodiment of the invention can switch the normal shooting mode to the encrypted shooting mode according to the received encrypted shooting instruction during the shooting process, acquire the image data captured by the shooting lens in the encrypted shooting mode, and then acquire the image data captured by the shooting lens. The image data is encrypted, and finally the encrypted image data is saved, so that subsequent users can view according to the user password. Compared with the prior art, when the user needs to exit the shooting application to encrypt the image data, the encrypted shooting mode can be provided in the shooting application, and the image captured by the shooting lens can be automatically saved in the encrypted shooting mode, which can save Simplify the operation of the image encryption process by repeatedly switching between the application and the encryption protection application.

101~105‧‧‧步驟 101~105‧‧‧Steps

201~206‧‧‧步驟 201~206‧‧‧Steps

71‧‧‧裝置 71‧‧‧ device

711‧‧‧接收單元 711‧‧‧ receiving unit

712‧‧‧切換單元 712‧‧‧Switch unit

713‧‧‧獲取單元 713‧‧‧Acquisition unit

714‧‧‧加解密單元 714‧‧‧Addition and decryption unit

715‧‧‧儲存單元 715‧‧‧ storage unit

716‧‧‧顯示單元 716‧‧‧Display unit

717‧‧‧監視單元 717‧‧‧Monitoring unit

811‧‧‧監視子單元 811‧‧‧Monitoring subunit

812‧‧‧提取子單元 812‧‧‧Extract subunit

911‧‧‧第一加解密子單元 911‧‧‧First encryption and decryption subunit

912‧‧‧第二加解密子單元 912‧‧‧Second encryption and decryption subunit

為了更清楚地說明本發明實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據這些附圖獲得其他的附圖。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Some embodiments of the invention may also be used to obtain other figures from these figures without departing from the art.

第1圖為本發明實施例中拍照方法的流程圖;第2圖為本發明實施例中另一個拍照方法的流程圖;第3圖為本發明實施例中拍攝介面的示意圖;第4圖為本發明實施例中系統檔案資料夾的示意圖; 第5圖為本發明實施例中另一個拍攝介面的示意圖;第6圖為本發明實施例中再一個拍攝介面的示意圖;第7圖為本發明實施例中拍照裝置的結構示意圖;第8圖為本發明實施例中另一個拍照裝置的結構示意圖;以及第9圖為本發明實施例中再一個拍照裝置的結構示意圖。 1 is a flowchart of a photographing method in an embodiment of the present invention; FIG. 2 is a flowchart of another photographing method in an embodiment of the present invention; FIG. 3 is a schematic diagram of a photographing interface in an embodiment of the present invention; A schematic diagram of a system file folder in the embodiment of the present invention; 5 is a schematic diagram of another photographing interface in the embodiment of the present invention; FIG. 6 is a schematic diagram of another photographing interface in the embodiment of the present invention; FIG. 7 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention; FIG. 9 is a schematic structural diagram of another camera device according to an embodiment of the present invention; and FIG. 9 is a schematic structural diagram of another camera device according to an embodiment of the present invention.

下面將結合本實施例中的附圖,對本實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 The technical solutions in the present embodiment will be clearly and completely described in the following with reference to the drawings in the embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

為簡化加密拍照的操作步驟,本實施例提供了一種拍照方法,所述方法可以應用於如手機、平板電腦等配備攝影鏡頭的電子裝置中。如第1圖所示,所述方法包括: In order to simplify the operation steps of the encrypted photographing, the embodiment provides a photographing method, which can be applied to an electronic device equipped with a photographic lens such as a mobile phone or a tablet computer. As shown in Figure 1, the method includes:

101、在啟動拍攝應用程式後,電子裝置接收使用者觸發的加密拍攝指令。 101. After starting the shooting application, the electronic device receives an encrypted shooting instruction triggered by the user.

在使用者啟動拍攝應用程式後,電子裝置接收加密拍攝指令,該加密拍攝指令用於指示切換到加密拍照模式。 After the user launches the shooting application, the electronic device receives an encrypted shooting instruction for indicating switching to the encrypted photographing mode.

102、電子裝置根據加密拍攝指令將普通拍攝模式切換為加密拍攝模式。 102. The electronic device switches the normal shooting mode to the encrypted shooting mode according to the encrypted shooting instruction.

當接收到加密拍攝指令後,電子裝置將當前的普通拍攝模式 切換為加密拍攝模式。在解密拍攝模式下,電子裝置可以自動對攝影鏡頭拍攝的圖像進行加密保存。 After receiving the encrypted shooting instruction, the electronic device will use the current normal shooting mode. Switch to the encrypted shooting mode. In the decryption shooting mode, the electronic device can automatically encrypt and save the image taken by the photographic lens.

103、在加密拍攝模式下電子裝置獲取攝影鏡頭拍攝的圖像資料。 103. The electronic device acquires image data captured by the photographic lens in the encrypted shooting mode.

本實施例中所述的圖像資料可以為靜態圖像資料例如照片,也可以為動態圖像資料例如視頻,本實施例後續以照片為例進行說明。 The image data described in this embodiment may be a still image data such as a photo, or may be a moving image data such as a video.

當用戶觸發拍攝功能鍵時,攝影鏡頭對拍攝物件進行拍攝。通常,攝影鏡頭拍攝的照片會保存在系統檔案資料夾中,該系統檔案資料夾按照拍攝的時間順序對攝影鏡頭拍攝的照片進行保存。當攝影鏡頭對拍攝物件進行拍攝後,電子裝置從系統檔案資料夾中提取攝影鏡頭拍攝的照片。 When the user triggers the shooting function button, the photographic lens captures the subject. Usually, the photos taken by the photographic lens are saved in the system file folder, and the system file folder saves the photos taken by the photographic lens in the order in which they were taken. After the photographic lens captures the photographic subject, the electronic device extracts the photo taken by the photographic lens from the system archive folder.

104、電子裝置對圖像資料進行加密處理。 104. The electronic device encrypts the image data.

電子裝置對從系統檔案資料夾中提取的照片進行加密,本實施例中電子裝置可以對照片內容本身進行加密,也可以對照片的屬性資訊進行加密,從而實現對照片內容進行加密,本實施例對此不做限制。 The electronic device encrypts the photo extracted from the system file folder. In this embodiment, the electronic device may encrypt the photo content itself, and may also encrypt the attribute information of the photo to implement encryption of the photo content. There is no limit to this.

105、電子裝置對加密處理後的圖像資料進行保存。 105. The electronic device saves the encrypted image data.

電子裝置將從系統檔案資料夾中提取並進行加密的照片保存在加密檔案資料夾中,以便後續使用者根據使用者密碼進行查看,當使用者需要查看保存的加密照片時,開啟加密保護應用程式並輸入使用者密碼,就可以對加密照片進行查看了。在加密檔案資料夾中,電子裝置可以按照拍攝的時間順序對照片進行保存,也可以按照照片的屬性資訊對照片進行分類保存。本實施例中,電子裝置可以將現有加密保護應用程式的檔 案資料夾作為加密檔案資料夾,也可以在儲存區域中獨立開闢一個子區域用來保存加密檔案資料夾,本實施例對此不做限制。 The electronic device saves the encrypted photo from the system file folder in the encrypted file folder, so that the subsequent user can view the user password according to the user password, and when the user needs to view the saved encrypted photo, the encryption protection application is turned on. And enter the user password, you can view the encrypted photo. In the encrypted file folder, the electronic device can save the photos according to the time sequence of the shooting, or can save the photos according to the attribute information of the photos. In this embodiment, the electronic device can copy the file of the existing encryption protection application. The file folder is used as an encrypted file folder, and a sub-area can be independently opened in the storage area for storing the encrypted file folder. This embodiment does not limit this.

現有技術中,用戶通過攝影鏡頭拍攝的照片保存在系統檔案資料夾中,例如預設的相簿資料夾中。當對照片進行加密時,使用者需要退出拍攝應用程式,然後開啟加密保護應用程式並輸入使用者密碼,在加密保護應用程式中將待加密照片從系統檔案資料夾遷移到加密檔案資料夾中。在拍攝應用程式和加密保護應用程式之間的切換會增加使用者的操作步驟,同時對系統的處理資源造成消耗。特別是加密保存多張照片時,使用者需要反覆執行相同的操作步驟,使用起來相當繁瑣。此外,由於需要在不同的應用程式之間進行切換,照片拍攝和照片加密保存的過程在時序上被分隔開來,因此用戶容易遺忘對拍攝的圖片進行加密,存在洩密風險。例如,用戶在退出拍攝應用程式後未及時進入加密保護應用程式對圖片進行加密,一段時間後就忘記了照片加密,後續如果他人竊取了使用者的電子裝置,則可以直接打開系統檔案資料夾查看使用者的隱私照片。 In the prior art, photos taken by a user through a photographic lens are saved in a system file folder, such as a preset album folder. When encrypting a photo, the user needs to exit the capture application, then open the encryption protection application and enter the user password, and migrate the image to be encrypted from the system archive folder to the encrypted file folder in the encryption protection application. Switching between the capture application and the encryption-protected application increases the user's operational steps while consuming the processing resources of the system. In particular, when encrypting and storing multiple photos, the user needs to perform the same operation steps repeatedly, which is quite cumbersome to use. In addition, since it is necessary to switch between different applications, the process of photo shooting and photo encryption is separated in time series, so the user can easily forget to encrypt the captured picture, which is a risk of leakage. For example, after exiting the shooting application, the user does not enter the encryption protection application to encrypt the image in time, and forgets the photo encryption after a period of time. If someone else steals the user's electronic device, the system file folder can be directly opened. User's privacy photo.

目前,現有技術中還存在一種供應商加密保護應用程式,該供應商應用程式能夠對電子裝置的攝影鏡頭進行驅動,允許用戶在供應商應用程式中啟動攝影鏡頭進行拍攝,拍攝的照片直接保存在加密檔案資料夾中。這種圖像加密的方式雖然可以規避上述加密方式中切換應用程式及輸入使用者密碼產生的操作步驟,但是其拍攝功能與拍攝介面與系統的拍攝應用程式相比均差別較大,用戶的使用習慣無法得到保證。 At present, there is also a vendor encryption protection application in the prior art, which is capable of driving the photographic lens of the electronic device, allowing the user to start the photographic lens in the supplier application for shooting, and the captured photos are directly saved in the Encrypted file folder. Although the image encryption method can avoid the operation steps of switching the application and inputting the user password in the above encryption method, the shooting function is different from the shooting interface and the system shooting application, and the user uses Habits cannot be guaranteed.

本實施例提供的拍照方法,能夠在拍攝過程中根據接收到的加密拍攝指令將普通拍攝模式切換為加密拍攝模式,在加密拍攝模式下獲 取攝影鏡頭拍攝的圖像資料,然後對獲取的圖像資料進行加密處理,最後將加密處理後的圖像資料進行保存,以便後續使用者根據使用者密碼進行查看。與現有技術中需要使用者退出拍攝應用程式對圖像資料進行加密相比,能夠在拍攝應用程式中提供加密拍攝模式,在加密拍攝模式下自動對攝影鏡頭拍攝的圖像進行加密保存,由此節省在拍攝應用程式與加密保護應用程式之間反覆切換產生的操作步驟,進而簡化圖像加密保存過程中的使用者操作。同時,由於電子裝置可以在攝影鏡頭拍攝圖像後自動對圖像進行加密,無需使用者對加密過程進行關注,因此可以避免用戶因遺忘而導致的加密遺漏的問題。最後,本實施例提供的拍照方法,是基於使用者最常使用的系統拍攝應用程式進行的改進,與供應商應用程式相比,可以在使用者熟悉的拍攝介面及拍攝功能下完成圖像的自動加密,更為貼合用戶的使用習慣。 The photographing method provided in this embodiment can switch the normal shooting mode to the encrypted shooting mode according to the received encrypted shooting instruction during the shooting process, and obtain the encrypted shooting mode in the encrypted shooting mode. The image data taken by the photographic lens is taken, and then the acquired image data is encrypted, and finally the encrypted image data is saved, so that subsequent users can view according to the user password. Compared with the prior art, when the user needs to exit the shooting application to encrypt the image data, the encrypted shooting mode can be provided in the shooting application, and the image captured by the shooting lens is automatically encrypted in the encrypted shooting mode. It saves the operation steps of repeatedly switching between the shooting application and the encryption protection application, thereby simplifying the user operation during the image encryption and saving process. At the same time, since the electronic device can automatically encrypt the image after the image is taken by the photographic lens, the user does not need to pay attention to the encryption process, so that the problem of encryption omission caused by the user forgetting can be avoided. Finally, the photographing method provided by the embodiment is based on the improvement of the system shooting application most commonly used by the user, and the image can be completed under the familiar shooting interface and shooting function of the user application. Automatic encryption, more in line with the user's usage habits.

作為對第1圖所示方法的詳細說明及進一步擴展,本實施例還提供了一種拍照方法,如第2圖所示,所述方法包括: As a detailed description and further extension of the method shown in FIG. 1, the embodiment further provides a photographing method. As shown in FIG. 2, the method includes:

201、電子裝置對模式切換功能鍵進行監視。 201. The electronic device monitors the mode switching function key.

在啟動拍攝應用程式後,電子裝置可以在拍攝介面中以懸浮的形式顯示如圖3中所示的模式切換功能鍵,並對模式切換功能鍵進行監視。該模式切換功能鍵用於在普通拍攝模式和加密拍攝模式之間進行切換,其中ON表示開啟加密拍攝模式,OFF表示關閉加密拍攝模式,亦即開啟普通拍攝模式。電子裝置接收使用者對模式切換功能鍵的觸發指令,當使用者將該功能鍵切換到普通拍攝模式時,電子裝置執行步驟202,當使用者將該功能鍵切換到加密拍攝模式時,電子裝置執行步驟203。 After the shooting application is started, the electronic device can display the mode switching function key as shown in FIG. 3 in a suspended form in the shooting interface, and monitor the mode switching function key. The mode switching function key is used to switch between the normal shooting mode and the encrypted shooting mode, wherein ON means that the encrypted shooting mode is turned on, and OFF means that the encrypted shooting mode is turned off, that is, the normal shooting mode is turned on. The electronic device receives a trigger command of the user to switch the mode switch function key. When the user switches the function key to the normal shooting mode, the electronic device performs step 202, and when the user switches the function key to the encrypted shooting mode, the electronic device Go to step 203.

通常,用戶在開啟拍攝應用程式後,會連續拍攝多張照片,其中部分照片需要加密保存,而部分照片按照普通方式保存即可。顯示模式切換功能鍵可以使用戶在拍攝的過程中方便快捷的對照片保存的檔案資料夾進行選擇。此外通過懸浮形式顯示模式切換功能鍵可以減少功能鍵的功能表深度,節省使用者切換模式的操作及時間,更加適應抓拍搶拍等拍攝場景。 Usually, when the user starts the shooting application, multiple photos will be taken continuously, some of which need to be saved in encrypted form, and some photos can be saved in the normal way. The display mode switching function key allows the user to conveniently and quickly select a file folder to be saved in the photo during the shooting process. In addition, the floating mode display mode switching function key can reduce the function table depth of the function key, save the operation and time of the user switching mode, and is more suitable for shooting scenes such as snap shots.

進一步的,當使用者切換拍攝模式時,電子裝置還可以通過對話方塊提示使用者當前選擇的拍攝模式,例如在第3圖中,當使用者切換到加密拍攝模式時,電子裝置顯示對話方塊“拍攝的照片和視頻將存入隱私空間”。 Further, when the user switches the shooting mode, the electronic device may also prompt the user to select the currently selected shooting mode through the dialog box. For example, in FIG. 3, when the user switches to the encrypted shooting mode, the electronic device displays the dialog box. The photos and videos taken will be stored in a privacy space."

較佳的,為避免用戶因遺忘切換加密拍攝模式而導致加密遺漏,在開啟拍攝應用程式時,電子裝置可以預設當前模式為加密拍攝模式,開啟拍攝應用程式時的模式切換功能鍵如第3圖中所示。如需切換到普通拍攝模式,則由使用者手動觸發模式切換功能鍵即可。 Preferably, in order to prevent the user from forgetting to switch the encrypted shooting mode, the electronic device can preset the current mode to the encrypted shooting mode when the shooting application is started, and the mode switching function key when the application is started is the third. Shown in the figure. If you want to switch to the normal shooting mode, the user can manually trigger the mode switching function button.

202、電子裝置按照普通拍照模式對攝影鏡頭拍攝的圖像資料進行保存。 202. The electronic device saves the image data captured by the photographic lens according to the normal photographing mode.

攝影鏡頭拍攝照片後,電子裝置將照片保存在如第4圖所示的系統檔案資料夾中,其中,系統檔案資料夾左側為照片資料內容,系統檔案資料夾右側為照片的儲存序號,按照佇列“先進先出”的規則,最近拍攝的照片保存在系統檔案資料夾的第一條表項中,即第4圖中序號N所在的表項。 After the photographic lens takes a photo, the electronic device saves the photo in the system file folder as shown in FIG. 4, wherein the left side of the system file folder is the photo data content, and the right side of the system file folder is the storage number of the photo, according to 伫The "first in, first out" rule, the most recently taken photo is stored in the first entry in the system archive folder, that is, the entry in the fourth figure where the serial number N is located.

203、電子裝置對系統檔案資料夾進行監視。 203. The electronic device monitors the system file folder.

在加密拍攝模式下,攝影鏡頭拍攝的照片仍保存在系統檔案資料夾中。電子裝置對系統檔案資料夾進行即時監視,監視系統檔案資料夾中是否增加新的照片。 In the Encrypted Shooting mode, photos taken with the photographic lens are still saved in the system file folder. The electronic device instantly monitors the system file folder and monitors whether new photos are added to the system file folder.

204、電子裝置從系統檔案資料夾中提取新增照片。 204. The electronic device extracts new photos from the system file folder.

當監視到系統檔案資料夾中增加新的照片時,電子裝置從系統檔案資料夾中提取該照片。由於系統檔案資料夾中保存的照片為可直接查看的照片,因此電子裝置需要將需要加密的照片從系統檔案資料夾中提取出來,照片提取後系統檔案資料夾不存在該照片。 When a new photo is added to the system profile folder, the electronic device extracts the photo from the system file folder. Since the photos saved in the system file folder are directly viewable photos, the electronic device needs to extract the photos that need to be encrypted from the system file folder, and the photo file folder does not exist in the system file folder after the photo is extracted.

可選的,在步驟201中,電子裝置還可以對供應商拍照應用軟體中的資料庫檔案資料夾進行監視,當使用者通過供應商拍照應用軟體進行拍攝時,電子裝置從資料庫檔案資料夾中提取新增的照片,然後執行步驟205;或者電子裝置還可以對本地的系統媒體資料庫檔案資料夾進行監視,例如對本地相簿進行監視,當監視到新增圖片時,例如使用者下載了一幅壁紙,電子裝置從系統媒體資料庫檔案資料夾中提取新增的壁紙,然後執行步驟205。 Optionally, in step 201, the electronic device may further monitor the database archive folder in the provider photo application software, and when the user shoots through the vendor photo application software, the electronic device reads from the database archive folder. Extracting the newly added photos, and then performing step 205; or the electronic device can also monitor the local system media database archive folder, for example, monitoring the local album, and when monitoring the newly added image, for example, the user downloads A wallpaper, the electronic device extracts the newly added wallpaper from the system media database archive folder, and then performs step 205.

205、電子裝置對提取的圖像資料進行加密處理。 205. The electronic device performs encryption processing on the extracted image data.

在將從系統檔案資料夾中提取的照片保存到加密檔案資料夾中前,電子裝置對該照片進行加密,本實施例可以採用的資料加密方式有很多,這裡只對其中兩種加密方式進行說明: Before the photo extracted from the system file folder is saved in the encrypted file folder, the electronic device encrypts the photo. There are many data encryption methods that can be used in this embodiment. Only two encryption methods are described here. :

1)替換照片檔頭 1) Replace the photo header

通常電子裝置獲取的照片都攜帶有包含照片屬性資訊的檔頭,該檔頭中包含至少1位元的屬性資訊。電子裝置從照片中提取檔頭,然 後將該檔頭中特定位置及特定數量的位元替換為使用者密碼,所述使用者密碼為使用者預先設置的密碼,亦即使用者登錄加密保護應用程式時輸入的使用者密碼。 Usually, the photos acquired by the electronic device carry a file header containing photo attribute information, and the file header contains at least one bit of attribute information. The electronic device extracts the file from the photo, The specific location and a specific number of bits in the header are replaced with a user password, which is a password preset by the user, that is, a user password input when the user logs in to the encryption protection application.

以使用者密碼為123456為例,電子裝置從照片中提取出包含100位元的檔頭,然後將該檔頭中的前20個位元替換為使用者密碼,替換後的前20個密碼位元為:12345612345612345612。 Taking the user password 123456 as an example, the electronic device extracts a 100-bit header from the photo, and then replaces the first 20 bits in the header with the user password, and replaces the first 20 password bits. The yuan is: 12345612345612345612.

2)對照片資料進行重排列 2) Rearrange photo data

通常任何類型的資料都可以轉化為包含至少1個位元的二進位資料儲存序列。電子裝置提取照片的二進位資料儲存序列,然後根據使用者密碼確定二進位資料儲存序列中位元的排序規則,最後根據該排序規則對二進位資料儲存序列中所有的位元進行重排列。 Usually any type of material can be converted into a binary data storage sequence containing at least 1 bit. The electronic device extracts the binary data storage sequence of the photo, and then determines the ordering rule of the bit in the binary data storage sequence according to the user password, and finally rearranges all the bits in the binary data storage sequence according to the sorting rule.

以使用者密碼為54321為例,在電子裝置提取的二進位資料儲存序列中,第1個位元至第5個位元依次為a、b、c、d和e。電子裝置根據使用者密碼54321將5個位元資料的位置調整為e、d、c、b和a,即第1個位元調整後的位置為使用者密碼的第1位元“5”,第2個位元調整後的位置為使用者密碼的第2位元“4”,以此類推。 Taking the user password 54321 as an example, in the binary data storage sequence extracted by the electronic device, the first bit to the fifth bit are sequentially a, b, c, d, and e. The electronic device adjusts the positions of the five bit data to e, d, c, b, and a according to the user password 54321, that is, the adjusted position of the first bit is the first bit "5" of the user password, The second bit adjusted position is the second bit "4" of the user password, and so on.

本實施例中的位元個數僅為範例說明,不作為對實際應用的限定。實際應用中,一幅照片的二進位資料儲存序列中的位元數量通常在百萬級別。此外,位元資料a、b、c、d和e僅為便於對加密方式進行描述而用,實際應用中位元資料為二進位數字字0或1。 The number of bits in this embodiment is merely an example and is not intended to limit the actual application. In practical applications, the number of bits in the binary data storage sequence of a photo is usually in the order of one million. In addition, the bit data a, b, c, d, and e are only used to facilitate the description of the encryption mode. In practical applications, the bit data is a binary digital word of 0 or 1.

通常加密方式1)存在小機率破解的風險,不法分子可以通過強制破解檔頭的方式讀取資料內容。而加密方式2)是對資料內容本身進 行重新排列,不法分子在不知道使用者密碼(即排序規則)的情況下,即使對檔頭進行破解也無法讀取資料內容。因此,作為本實施例的一個較佳方案,電子裝置採用加密方式2)對照片進行加密。 Usually the encryption method 1) there is a risk of small chance to crack, and the criminals can read the data content by forcibly cracking the file header. And the encryption method 2) is to the data content itself The rows are rearranged, and the criminals cannot read the data content even if they crack the header without knowing the user password (ie, the sorting rule). Therefore, as a preferred embodiment of the embodiment, the electronic device encrypts the photo by using the encryption method 2).

206、電子裝置將加密處理後的圖像資料保存到加密檔案資料夾中。 206. The electronic device saves the encrypted image data into an encrypted file folder.

與系統檔案資料夾類似,加密檔案資料夾也用於按照拍攝的時間順序或者其他屬性資訊對照片進行保存,但與系統檔案資料夾不同的是,加密檔案資料夾用於保存加密後的照片,使用者只有通過使用者密碼登錄加密保護應用程式後才能查看加密檔案資料夾中的照片。 Similar to the system file folder, the encrypted file folder is also used to save the photo according to the time sequence of shooting or other attribute information, but unlike the system file folder, the encrypted file folder is used to save the encrypted photo. Users can view the photos in the encrypted file folder only after logging in to the encryption protection application with the user password.

本實施例中,電子裝置將從系統檔案資料夾、供應商拍照應用軟體中的資料庫檔案資料夾或者系統媒體資料庫檔案資料夾中提取的照片進行加密後,將加密的照片保存在加密檔案資料夾中。 In this embodiment, the electronic device encrypts the photos extracted from the system file folder, the database file folder in the supplier photo application software, or the system media database file folder, and then saves the encrypted photo in the encrypted file. In the folder.

作為對第2圖所示方法的進一步擴展,電子裝置還可以從照片的儲存格式中獲取照片的概略圖,然後在拍攝介面中顯示該照片概略圖以及該照片在加密檔案資料夾中的序號。例如在第5圖中,電子裝置在模式切換功能鍵右側顯示當前加密保存的照片概略圖,並且在概略圖右下角顯示序號3,該序號表示,當前照片為加密檔案資料夾中保存的第三張照片。 As a further extension of the method shown in FIG. 2, the electronic device can also obtain an overview of the photo from the storage format of the photo, and then display the schematic image of the photo and the serial number of the photo in the encrypted file folder in the shooting interface. For example, in FIG. 5, the electronic device displays a current image of the currently encrypted photo on the right side of the mode switching function key, and displays the serial number 3 in the lower right corner of the schematic image, the serial number indicating that the current photo is the third saved in the encrypted file folder. a photograph.

進一步的,電子裝置還可以在拍攝介面中顯示加密保護應用程式的快速鍵,例如第6圖中拍攝介面右上角的“隱私空間”快速鍵,用戶觸發該快速鍵後,電子裝置將當前介面切換到使用者登錄介面,待使用者輸入使用者密碼後,顯示隱私空間中的加密相簿。 Further, the electronic device can also display a shortcut key of the encryption protection application in the shooting interface, for example, the “privacy space” shortcut button in the upper right corner of the shooting interface in FIG. 6 , after the user triggers the quick key, the electronic device switches the current interface. Go to the user login interface and display the encrypted album in the privacy space after the user enters the user password.

進一步的,為便於使用者在加密拍攝模式下對拍攝的照片進 行普通保存,電子裝置還可以接收使用者觸發的解密指令,該解密指令用於指示對當前顯示概略圖對應的照片進行解密。在接收到解密指令後,電子裝置從加密檔案資料夾中提取該概略圖對應的照片,並對該照片進行解密,然後將解密後的照片保存到系統檔案資料夾中,照片保存後,加密檔案資料夾中不再保存有該照片。 Further, in order to facilitate the user to take photos taken in the encrypted shooting mode The line is normally saved, and the electronic device can also receive a decryption instruction triggered by the user, and the decryption instruction is used to instruct to decrypt the photo corresponding to the currently displayed overview image. After receiving the decryption instruction, the electronic device extracts the photo corresponding to the overview image from the encrypted file folder, decrypts the photo, and saves the decrypted photo to the system file folder. After the photo is saved, the file is encrypted. The photo is no longer saved in the folder.

電子裝置在顯示當前照片的概略圖時,該照片已經保存在加密檔案資料夾中,當使用者後悔對當前照片進行加密保存,或者希望在不切換拍攝模式的情況下對當前照片進行普通保存時,可以觸發解密指令。電子裝置根據解密指令將已加密保存的照片恢復為普通保存。所述解密指令可以為長按指令或者按兩下指令,當使用者在概略圖上長按較預設時間長的臨界值或者進行按兩下操作時,電子裝置從加密檔案資料夾中提取該概略圖對應的照片,然後按照與步驟204相反的方式對加密的照片進行解密,最後將解密後的照片保存到系統檔案資料夾中。 When the electronic device displays the outline image of the current photo, the photo has been saved in the encrypted file folder, when the user regrets to encrypt the current photo, or wants to save the current photo normally without switching the shooting mode. , can trigger the decryption instruction. The electronic device restores the encrypted saved photo to a normal save according to the decryption instruction. The decryption command may be a long press command or a double press command. When the user long presses a threshold value longer than a preset time or performs a double press operation on the schematic image, the electronic device extracts the encrypted file folder from the encrypted file folder. The photo corresponding to the overview image is then decrypted in the opposite manner to step 204, and finally the decrypted photo is saved to the system archive folder.

與此類似的,在普通拍攝模式下,電子裝置也可以將當前照片的概略圖顯示在拍攝介面中,當使用者希望將已保存在系統檔案資料夾中的照片加密保存時,觸發加密指令,電子裝置循序執行步驟204至步驟206,將已保存在系統檔案資料夾中的當前照片提取出來進行加密,然後保存加密檔案資料夾中。 Similarly, in the normal shooting mode, the electronic device can also display a schematic image of the current photo in the shooting interface, and when the user wants to save the photo saved in the system file folder, the encryption command is triggered. The electronic device sequentially performs steps 204 to 206 to extract the current photo that has been saved in the system file folder for encryption, and then save the encrypted file folder.

本實施例提供的拍照方法,能夠使使用者在拍攝介面中通過一個模式切換功能鍵輕鬆選擇拍攝模式,在加密拍攝模式下,無需使用者手動操作即可對攝影鏡頭拍攝的圖像自動進行加密保存。此外,本方法還可以顯示當前圖像的概略圖,以便使用者在不切換拍攝模式的情況下,對 已加密保存(或普通保存)的照片二次選擇保存方式,進一步簡化使用者操作。 The photographing method provided in the embodiment can enable the user to easily select a shooting mode through a mode switching function key in the shooting interface, and in the encrypted shooting mode, the image captured by the photographing lens can be automatically encrypted without the user's manual operation. save. In addition, the method can also display a schematic image of the current image, so that the user does not switch the shooting mode, The stored and saved (or normal saved) photo secondary selection save mode further simplifies user operations.

在本實施例的一個應用場景中,用戶啟動拍攝應用程式進行拍照,電子裝置預設拍攝模式為加密拍攝模式。用戶先後拍攝了2張加密保存的照片,然後一鍵切換到普通拍攝模式,繼續進行拍攝。 In an application scenario of the embodiment, the user starts the shooting application to take a photo, and the preset shooting mode of the electronic device is the encrypted shooting mode. The user has taken two encrypted photos and then switched to the normal shooting mode with one button to continue shooting.

在本實施例的另一個應用場景中,使用者在加密拍攝模式下拍攝了一張照片,然後查看該照片的概略圖,發現該照片無需加密保存。用戶按兩下該概略圖,將該照片從加密保存的相簿中遷移至普通保存的相簿中。 In another application scenario of this embodiment, the user takes a photo in the encrypted shooting mode, and then views an overview of the photo, and finds that the photo is not stored encrypted. The user double-clicks on the overview to migrate the photo from the encrypted saved album to the normally saved album.

在本實施例的再一個應用場景中,使用者在普通拍攝模式下拍攝了一張照片,然後查看該照片的概略圖,發現該照片需要加密保存。用戶按兩下該概略圖,將該照片從普通保存的相簿中遷移至加密保存的相簿中。 In still another application scenario of the embodiment, the user takes a photo in the normal shooting mode, and then views an overview of the photo, and finds that the photo needs to be stored in an encrypted manner. The user double-clicks on the overview to migrate the photo from the normally saved album to the encrypted saved album.

本實施例以攝影鏡頭拍攝的圖像作為加密保存物件進行了說明,實際應用加密保存的物件還可以但不僅限於是短信、聊天記錄以及視頻通話記錄等。以聊天記錄為例,在“私聊”模式下,電子裝置將產生的聊天記錄打包成資料夾,然後進行加密,最後保存在加密檔案資料夾中。 In this embodiment, the image captured by the photographic lens is described as an encrypted storage object, and the object to be encrypted and saved by the actual application may be, but is not limited to, a short message, a chat record, and a video call record. Taking the chat record as an example, in the "private chat" mode, the electronic device packs the generated chat record into a folder, encrypts it, and finally saves it in the encrypted file folder.

參考第1圖或第2圖所示的方法,本實施例還提供了一種拍照裝置,用以實現第1圖或第2圖所示的方法。所述裝置可以位於手機、平板電腦等電子裝置中,如第7圖所示,所述裝置71包括:接收單元711、切換單元712、獲取單元713、加解密單元714、儲存單元715、顯示單元716以及監視單元717,其中, 所述接收單元711,用於在啟動拍攝應用程式後,接收使用者觸發的加密拍攝指令;所述切換單元712,用於根據所述接收單元711接收的所述加密拍攝指令將普通拍攝模式切換為加密拍攝模式;所述獲取單元713,用於在加密拍攝模式下獲取攝影鏡頭拍攝的圖像資料;所述加解密單元714,用於對所述獲取單元713獲取的所述圖像資料進行加密處理;所述儲存單元715,用於對所述加解密單元714加密處理後的圖像資料進行保存。 Referring to the method shown in FIG. 1 or FIG. 2, the embodiment further provides a photographing apparatus for implementing the method shown in FIG. 1 or FIG. The device may be located in an electronic device such as a mobile phone or a tablet computer. As shown in FIG. 7, the device 71 includes: a receiving unit 711, a switching unit 712, an obtaining unit 713, an encryption and decryption unit 714, a storage unit 715, and a display unit. 716 and a monitoring unit 717, wherein The receiving unit 711 is configured to receive an encrypted shooting instruction triggered by the user after the shooting application is started, and the switching unit 712 is configured to switch the normal shooting mode according to the encrypted shooting instruction received by the receiving unit 711. The acquisition unit 713 is configured to acquire the image data captured by the photographic lens in the encrypted shooting mode; the encryption and decryption unit 714 is configured to perform the image data acquired by the acquiring unit 713 Encryption processing; the storage unit 715 is configured to save the image data encrypted by the encryption and decryption unit 714.

進一步的,如第8圖所示,所述獲取單元713包括:監視子單元811,用於對系統檔案資料夾進行監視;提取子單元812,用於當所述監視子單元811監視到所述系統檔案資料夾中增加新的圖像資料時,從所述系統檔案資料夾中提取所述新的圖像資料。 Further, as shown in FIG. 8, the obtaining unit 713 includes: a monitoring subunit 811 for monitoring a system archive folder; and an extracting subunit 812 for monitoring the monitoring subunit 811 When new image data is added to the system file folder, the new image data is extracted from the system file folder.

進一步的,如第9圖所示,所述加解密單元714包括:第一加解密子單元911,用於提取所述圖像資料的檔頭,將所述檔頭中特定位置及特定數量的位元替換為所述使用者密碼。 Further, as shown in FIG. 9, the encryption and decryption unit 714 includes: a first encryption and decryption subunit 911, configured to extract a header of the image data, and a specific location and a specific number of the headers The bit is replaced with the user password.

進一步的,如第9圖所示,所述加解密單元714包括:第二加解密子單元912,用於提取所述圖像資料的二進位資料儲存序列,根據所述使用者密碼確定位元的排序規則,根據所述排序規則對所述二進位資料儲存序列中所有的位元進行重排列。 Further, as shown in FIG. 9, the encryption and decryption unit 714 includes: a second encryption and decryption subunit 912, configured to extract a binary data storage sequence of the image data, and determine a bit according to the user password. a sorting rule for rearranging all the bits in the binary data storage sequence according to the sorting rule.

進一步的,所述儲存單元715用於將所述加解密單元714加密處理後的圖像資料保存到加密檔案資料夾中。 Further, the storage unit 715 is configured to save the image data encrypted by the encryption and decryption unit 714 into an encrypted file folder.

進一步的,所述獲取單元713還用於從所述圖像資料的儲存格式中獲取所述圖像資料的概略圖;進一步的,所述顯示單元716,用於在拍攝介面中顯示所述獲取單元713獲取的所述圖像資料的概略圖以及所述圖像資料在所述加密檔案資料夾中的序號。 Further, the obtaining unit 713 is further configured to acquire an overview of the image data from a storage format of the image data. Further, the display unit 716 is configured to display the acquiring in a shooting interface. An overview of the image data acquired by unit 713 and a serial number of the image data in the encrypted archive folder.

進一步的,所述接收單元711還用於接收解密指令,所述解密指令用於指示對當前顯示概略圖對應的圖像資料進行解密;所述提取子單元812還用於根據所述接收單元711接收的解密指令從所述加密檔案資料夾中提取所述概略圖對應的圖像資料;所述加解密單元714還用於對所述提取子單元812提取的所述圖像資料進行解密;所述儲存單元715還用於將所述加解密單元714解密後的圖像資料保存到系統檔案資料夾中。 Further, the receiving unit 711 is further configured to receive a decryption instruction, where the decryption instruction is used to indicate that the image data corresponding to the currently displayed overview image is decrypted; and the extraction subunit 812 is further configured to be used according to the receiving unit 711. The received decryption instruction extracts the image data corresponding to the overview image from the encrypted archive folder; the encryption and decryption unit 714 is further configured to decrypt the image data extracted by the extraction subunit 812; The storage unit 715 is further configured to save the image data decrypted by the encryption and decryption unit 714 into a system file folder.

進一步的,所述顯示單元716還用於在拍攝介面中顯示模式切換功能鍵;所述監視單元717,用於對所述模式切換功能鍵進行監視;所述接收單元711還用於接收使用者對所述模式切換功能鍵的觸發指令。 Further, the display unit 716 is further configured to display a mode switching function key in the shooting interface; the monitoring unit 717 is configured to monitor the mode switching function key; and the receiving unit 711 is further configured to receive the user. A trigger instruction for switching the function key to the mode.

本實施例提供的拍照裝置,能夠在拍攝過程中根據接收到的加密拍攝指令將普通拍攝模式切換為加密拍攝模式,在加密拍攝模式下獲 取攝影鏡頭拍攝的圖像資料,然後對獲取的圖像資料進行加密處理,最後將加密處理後的圖像資料進行保存,以便後續使用者根據使用者密碼進行查看。與現有技術中需要使用者退出拍攝應用程式對圖像資料進行加密相比,能夠在拍攝應用程式中提供加密拍攝模式,在加密拍攝模式下自動對攝影鏡頭拍攝的圖像進行加密保存,由此節省在拍攝應用程式與加密保護應用程式之間反覆切換產生的操作步驟,進而簡化圖像加密保存過程中的使用者操作。同時,由於電子裝置可以在攝影鏡頭拍攝圖像後自動對圖像進行加密,無需使用者對加密過程進行關注,因此可以避免用戶因遺忘而導致的加密遺漏的問題。最後,本實施例提供的拍照裝置,是基於使用者最常使用的系統拍攝應用程式進行的改進,與供應商應用程式相比,可以在使用者熟悉的拍攝介面及拍攝功能下完成圖像的自動加密,更為貼合用戶的使用習慣。 The photographing apparatus provided in this embodiment can switch the normal shooting mode to the encrypted shooting mode according to the received encrypted shooting instruction during the shooting process, and obtain the encrypted shooting mode in the encrypted shooting mode. The image data taken by the photographic lens is taken, and then the acquired image data is encrypted, and finally the encrypted image data is saved, so that subsequent users can view according to the user password. Compared with the prior art, when the user needs to exit the shooting application to encrypt the image data, the encrypted shooting mode can be provided in the shooting application, and the image captured by the shooting lens is automatically encrypted in the encrypted shooting mode. It saves the operation steps of repeatedly switching between the shooting application and the encryption protection application, thereby simplifying the user operation during the image encryption and saving process. At the same time, since the electronic device can automatically encrypt the image after the image is taken by the photographic lens, the user does not need to pay attention to the encryption process, so that the problem of encryption omission caused by the user forgetting can be avoided. Finally, the camera device provided by the embodiment is based on an improvement of the system shooting application most commonly used by the user, and can complete the image under the familiar shooting interface and shooting function of the user application. Automatic encryption, more in line with the user's usage habits.

此外,本實施例提供的拍照裝置,還可以顯示當前圖像的概略圖,以便使用者在不切換拍攝模式的情況下,對已加密保存(或普通保存)的照片二次選擇保存方式,進一步簡化使用者操作。 In addition, the photographing apparatus provided in this embodiment can also display a schematic diagram of the current image, so that the user can select the saved mode of the encrypted saved (or ordinary saved) photo twice without switching the shooting mode. Simplify user operations.

通過以上的實施方式的描述,所屬領域的技術人員可以清楚地瞭解到本發明可借助軟體加必需的通用硬體的方式來實現,當然也可以通過硬體,但很多情況下前者是更佳的實施方式。基於這樣的理解,本發明的技術方案本質上或者說對現有技術做出貢獻的部分可以以軟體產品的形式體現出來,該電腦軟體產品儲存在可讀取的儲存媒體中,如電腦的軟碟,硬碟或光碟等,包括若干指令用以使得一台電腦設備(可以是個人電腦,伺服器,或者網路設備等)執行本發明各個實施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a computer floppy disk. , hard disk or optical disk, etc., including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

以上所述,僅為本發明的具體實施方式,但本發明的保護範圍並不局限於此,任何熟悉本技術領域的技術人員在本發明揭露的技術範圍內,可輕易想到變化或替換,都應涵蓋在本發明的保護範圍之內。因此,本發明的保護範圍應所述以申請專利範圍第的保護範圍為准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of protection of the scope of the patent application.

101~105‧‧‧步驟 101~105‧‧‧Steps

Claims (16)

一種拍照方法,其包括:在啟動拍攝應用程式後,接收使用者觸發的加密拍攝指令;根據該加密拍攝指令將普通拍攝模式切換為加密拍攝模式;在該加密拍攝模式下,獲取攝影鏡頭拍攝的圖像資料,並將該圖像資料儲存於系統檔案資料夾;對該圖像資料進行加密處理;以及對加密處理後的該圖像資料進行保存。 A photographing method, comprising: receiving an encrypted shooting instruction triggered by a user after starting the shooting application; switching the normal shooting mode to the encrypted shooting mode according to the encrypted shooting instruction; and acquiring the shooting lens in the encrypted shooting mode Image data, and the image data is stored in a system file folder; the image data is encrypted; and the image data after the encryption process is saved. 根據申請專利範圍第1項所述的方法,其中該獲取攝影鏡頭拍攝的圖像資料,並將該圖像資料儲存於系統檔案資料夾的步驟,包括:對該系統檔案資料夾進行監視;當監視到該系統檔案資料夾中增加新的該圖像資料時,從該系統檔案資料夾中提取新的該圖像資料。 The method of claim 1, wherein the step of acquiring the image data captured by the photographic lens and storing the image data in the system file folder comprises: monitoring the system file folder; When the new image data is added to the system file folder, the new image data is extracted from the system file folder. 根據申請專利範圍第2項所述的方法,其中該對該圖像資料進行加密處理的步驟,包括:提取該圖像資料的檔頭;將該檔頭中特定位置及特定數量的位元替換為使用者密碼。 The method of claim 2, wherein the step of encrypting the image data comprises: extracting a header of the image data; replacing a specific location and a specific number of bits in the header User password. 根據申請專利範圍第2項所述的方法,其中該對該圖像資料進行加密處理的步驟,包括:提取該圖像資料的二進位資料儲存序列;根據該使用者密碼確定該些位元的排序規則;以及根據該排序規則對該二進位資料儲存序列中所有的該些位元進行重排列。 The method of claim 2, wherein the step of encrypting the image data comprises: extracting a binary data storage sequence of the image data; determining the bits according to the user password a sorting rule; and rearranging all of the bins in the binary data storage sequence according to the sorting rule. 根據申請專利範圍第3或4項所述的方法,其中該對加密處理後的圖像資料進行保存的步驟,包括:將加密處理後的該圖像資料保存到加密檔案資料夾中。 The method of claim 3, wherein the step of saving the encrypted image data comprises: saving the encrypted image data to an encrypted file folder. 根據申請專利範圍第5項所述的方法,其中該方法進一步包括:從該圖像資料的儲存格式中獲取該圖像資料的概略圖;以及在拍攝介面中顯示該圖像資料的該概略圖以及該圖像資料在該加密檔案資料夾中的序號。 The method of claim 5, wherein the method further comprises: obtaining an overview of the image data from a storage format of the image data; and displaying the schematic image of the image data in a capture interface And the serial number of the image data in the encrypted file folder. 根據申請專利範圍第6項所述的方法,其中該方法進一步包括:接收解密指令,該解密指令用於指示對當前顯示該概略圖對應的該圖像資料進行解密;從該加密檔案資料夾中提取該概略圖對應的該圖像資料;以及對該圖像資料進行解密,並且將解密後的該圖像資料保存到該系統檔案資料夾中。 The method of claim 6, wherein the method further comprises: receiving a decryption instruction for instructing decryption of the image data corresponding to the current display of the overview; from the encrypted archive folder Extracting the image data corresponding to the overview image; and decrypting the image data, and saving the decrypted image data into the system file folder. 根據申請專利範圍第7項所述的方法,其中該接收使用者觸發的加密拍攝指令的步驟,包括:在該拍攝介面中顯示模式切換功能鍵;對該模式切換功能鍵進行監視;以及接收該使用者對該模式切換功能鍵的觸發指令。 The method of claim 7, wherein the step of receiving a user-triggered encrypted photographing instruction comprises: displaying a mode switching function key in the photographing interface; monitoring the mode switching function key; and receiving the The user triggers a trigger command for the mode switch function key. 一種拍照裝置,其包括:接收單元,用於在啟動拍攝應用程式後,接收使用者觸發的加密拍攝指令;切換單元,用於根據該接收單元接收的該加密拍攝指令將普通拍攝模式切換為加密拍攝模式;獲取單元,用於在該加密拍攝模式下獲取攝影鏡頭拍攝的圖像資料,並將該圖像資料儲存於系統檔案資料夾;加解密單元,用於對該獲取單元獲取的該圖像資料進行加密處理;以及儲存單元,用於對該加解密單元加密處理後的該圖像資料進行保存。 A photographing device, comprising: a receiving unit, configured to receive an encrypted shooting instruction triggered by a user after starting the shooting application; and a switching unit configured to switch the normal shooting mode to the encryption according to the encrypted shooting instruction received by the receiving unit a shooting mode; an acquiring unit, configured to acquire image data captured by the photographic lens in the encrypted shooting mode, and store the image data in a system file folder; and an encryption and decryption unit, configured to acquire the image obtained by the acquiring unit The image data is encrypted; and the storage unit is configured to save the image data after the encryption and decryption unit is encrypted. 根據申請專利範圍第9項所述的裝置,其中該獲取單元包括: 監視子單元,用於對該系統檔案資料夾進行監視;以及提取子單元,用於當該監視子單元監視到該系統檔案資料夾中增加新的該圖像資料時,從該系統檔案資料夾中提取新的該圖像資料。 The device of claim 9, wherein the obtaining unit comprises: a monitoring subunit for monitoring the system file folder; and an extracting subunit for extracting new image data from the system file folder when the monitoring subunit monitors the system file folder Extract the new image data. 根據申請專利範圍第10項所述的裝置,其中該加解密單元包括:第一加解密子單元,用於提取該圖像資料的檔頭,將該檔頭中特定位置及特定數量的位元替換為該使用者密碼。 The device according to claim 10, wherein the encryption and decryption unit comprises: a first encryption and decryption subunit, configured to extract a header of the image data, a specific position and a specific number of bits in the header Replace with this user password. 根據申請專利範圍第10項所述的裝置,其中該加解密單元包括:第二加解密子單元,用於提取該圖像資料的二進位資料儲存序列,根據該使用者密碼確定該些位元的排序規則,根據該排序規則對該二進位資料儲存序列中所有的該些位元進行重排列。 The device of claim 10, wherein the encryption and decryption unit comprises: a second encryption and decryption subunit, configured to extract a binary data storage sequence of the image data, and determine the bits according to the user password a sorting rule according to which the all the bits in the binary data storage sequence are rearranged. 根據申請專利範圍第11或12項所述的裝置,其中該儲存單元用於將該加解密單元加密處理後的該圖像資料保存到加密檔案資料夾中。 The device of claim 11 or 12, wherein the storage unit is configured to save the image data encrypted by the encryption and decryption unit to an encrypted file folder. 根據申請專利範圍第13項所述的裝置,其中該獲取單元還用於從該圖像資料的儲存格式中獲取該圖像資料的概略圖;該裝置還包括顯示單元,用於在拍攝介面中顯示該獲取單元獲取的該圖像資料的概略圖以及該圖像資料在該加密檔案資料夾中的序號。 The device of claim 13, wherein the acquiring unit is further configured to obtain a schematic image of the image data from a storage format of the image data; the device further includes a display unit for being used in the shooting interface. An overview of the image data acquired by the acquisition unit and a serial number of the image data in the encrypted archive folder are displayed. 根據申請專利範圍第14項所述的裝置,其中該接收單元還用於接收解密指令,該解密指令用於指示對當前顯示的該概略圖對應的該圖像資料進行解密;該提取子單元還用於根據該接收單元接收的該解密指令從該加密檔案資料夾中提取該概略圖對應的該圖像資料;該加解密單元還用於對該提取子單元提取的該圖像資料進行解密;以及該儲存單元還用於將該加解密單元解密後的該圖像資料保存到該系統檔案資料夾中。 The device of claim 14, wherein the receiving unit is further configured to receive a decryption instruction, where the decryption instruction is used to indicate that the image data corresponding to the currently displayed schematic image is decrypted; the extracting subunit further And the image data corresponding to the schematic image is extracted from the encrypted file folder according to the decryption instruction received by the receiving unit; the encryption and decryption unit is further configured to decrypt the image data extracted by the extraction subunit; And the storage unit is further configured to save the image data decrypted by the encryption and decryption unit into the system file folder. 根據申請專利範圍第15項所述的裝置,其中該裝置還包括監視單元; 該顯示單元還用於在該拍攝介面中顯示模式切換功能鍵;該監視單元,用於對該模式切換功能鍵進行監視;以及該接收單元還用於接收該使用者對該模式切換功能鍵的觸發指令。 The device of claim 15, wherein the device further comprises a monitoring unit; The display unit is further configured to display a mode switching function key in the shooting interface; the monitoring unit is configured to monitor the mode switching function key; and the receiving unit is further configured to receive the user switching the function key to the mode Trigger instruction.
TW102143719A 2013-06-21 2013-11-29 Photo shooting method and apparatus thereof TWI545948B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310250632.9A CN104135605B (en) 2013-06-21 2013-06-21 Photographic method and device

Publications (2)

Publication Number Publication Date
TW201501532A true TW201501532A (en) 2015-01-01
TWI545948B TWI545948B (en) 2016-08-11

Family

ID=51808120

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102143719A TWI545948B (en) 2013-06-21 2013-11-29 Photo shooting method and apparatus thereof

Country Status (3)

Country Link
CN (1) CN104135605B (en)
TW (1) TWI545948B (en)
WO (1) WO2014201940A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227827A (en) * 2015-07-09 2016-01-06 北京君正集成电路股份有限公司 A kind of photographic method of intelligent glasses and intelligent glasses

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253933A (en) * 2013-06-26 2014-12-31 华为技术有限公司 Shooting method and device
CN104680078B (en) * 2015-01-20 2021-09-03 中兴通讯股份有限公司 Method for shooting picture, method, system and terminal for viewing picture
CN104767938A (en) * 2015-03-27 2015-07-08 广东欧珀移动通信有限公司 Photo shooting method and device
CN104751074B (en) * 2015-03-31 2018-01-19 努比亚技术有限公司 Image display processing method and device
CN104732158A (en) * 2015-04-09 2015-06-24 上海斐讯数据通信技术有限公司 Encryption photographing method, system and device
CN106295389B (en) * 2015-06-04 2021-02-09 宏达国际电子股份有限公司 Screen content encryption method and electronic device using same
CN104866783A (en) * 2015-06-15 2015-08-26 联想(北京)有限公司 File storage method and device
US10212168B2 (en) 2015-08-24 2019-02-19 Beijing Lenovo Software Ltd. Electronic device and control method thereof
CN105138252B (en) * 2015-08-24 2020-08-25 联想(北京)有限公司 Control method and electronic equipment
CN105046167B (en) * 2015-08-31 2018-09-07 宇龙计算机通信科技(深圳)有限公司 Encrypt generation method, device and the electronic equipment of photo
CN105530261B (en) * 2015-12-23 2019-02-12 北京奇虎科技有限公司 The guard method of privacy information and device
WO2017128216A1 (en) * 2016-01-28 2017-08-03 常平 Method for acquiring image-encryption technical usage data, and mobile terminal
CN105701655A (en) * 2016-03-02 2016-06-22 上海皇和信息科技有限公司 Code-scanning payment system and method based on USB encryption camera
CN106326762A (en) * 2016-10-17 2017-01-11 广东七洲科技股份有限公司 Data protection method realizing encryption while shooting for mobile terminal
CN106791542B (en) * 2017-01-20 2019-11-29 维沃移动通信有限公司 A kind of panoramic picture image pickup method and mobile terminal
CN106874918A (en) * 2017-02-23 2017-06-20 上海与德信息技术有限公司 A kind of photo store method and device
CN107105156B (en) * 2017-03-22 2019-12-17 北京珠穆朗玛移动通信有限公司 picture management method and mobile terminal
CN107172344A (en) * 2017-04-07 2017-09-15 北京安云世纪科技有限公司 Shooting file memory method, device and the mobile terminal of a kind of mobile terminal
CN107181910A (en) * 2017-04-07 2017-09-19 北京安云世纪科技有限公司 A kind of image pickup method of mobile terminal, device and mobile terminal
CN107181911A (en) * 2017-04-07 2017-09-19 北京安云世纪科技有限公司 A kind of image pickup method, device and mobile terminal
WO2019023955A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image storage and viewing method and system of intelligent terminal
CN107613207A (en) * 2017-09-29 2018-01-19 努比亚技术有限公司 A kind of camera control method, equipment and computer-readable recording medium
CN108111757A (en) * 2017-12-21 2018-06-01 广东欧珀移动通信有限公司 Photographic method, device, storage medium and terminal
CN110381356B (en) * 2019-07-19 2022-06-07 北京字节跳动网络技术有限公司 Audio and video generation method and device, electronic equipment and readable medium
CN114267096A (en) * 2021-12-03 2022-04-01 联通智网科技股份有限公司 Driving record data processing method and device and storage medium
CN115348405A (en) * 2022-08-24 2022-11-15 维沃移动通信有限公司 Video recording method, video recording device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003333519A (en) * 2002-05-15 2003-11-21 Fuji Photo Film Co Ltd Imaging apparatus and image data delivery method
CN101415099A (en) * 2007-10-18 2009-04-22 鸿富锦精密工业(深圳)有限公司 System and method for ciphering image viewfinding device
CN101640779B (en) * 2008-07-31 2011-01-05 鸿富锦精密工业(深圳)有限公司 Encryption system and encryption method of image intake device
CN101345866A (en) * 2008-08-15 2009-01-14 四川长虹电器股份有限公司 Encryption and decryption method for static audio/video document
CN102495983B (en) * 2011-12-08 2014-08-27 孙紫阳 Method for encrypting and decrypting data of intelligent mobile terminal in real time
KR20130067530A (en) * 2011-12-14 2013-06-25 한국전자통신연구원 Apparatus and method for transmitting video surveillance, apparatus and method for receiving surveillance video thereof
CN103164441B (en) * 2011-12-14 2017-09-19 富泰华工业(深圳)有限公司 Based on electronic installation and method of the face feature value to picture classification
CN102891749A (en) * 2012-09-25 2013-01-23 东莞宇龙通信科技有限公司 Method and communication terminal for data encryption

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227827A (en) * 2015-07-09 2016-01-06 北京君正集成电路股份有限公司 A kind of photographic method of intelligent glasses and intelligent glasses

Also Published As

Publication number Publication date
WO2014201940A1 (en) 2014-12-24
TWI545948B (en) 2016-08-11
CN104135605A (en) 2014-11-05
CN104135605B (en) 2015-08-05

Similar Documents

Publication Publication Date Title
TWI545948B (en) Photo shooting method and apparatus thereof
KR101820781B1 (en) Methods and apparatus for album display
JP4931924B2 (en) Media data processing apparatus and media data processing method
JP6074725B2 (en) Electronics
RU2628108C2 (en) Method of providing selection of video material episode and device for this
US20160073049A1 (en) Method and apparatus for backing up video
EP2985979B1 (en) Method and terminal for backing up data
WO2017080084A1 (en) Font addition method and apparatus
KR102180474B1 (en) Apparatus and Method For Managing Image Files By Displaying Backup Information
WO2022143060A1 (en) Screen capture method, and terminal and storage medium
CN105095787A (en) Information processing method and device
KR20120087785A (en) Apparatus and method for managing a plurality of albums
JP2014154891A (en) Information processor, control method for the same, program, and storage medium
CN104951710A (en) Rapid access method and device
US20140152868A1 (en) Imaging device, image storing method, and recording medium for processing image capturing location information
KR101180584B1 (en) Apparatus and method for storing image in mobile terminal equiped with digital camera
KR101334881B1 (en) User selective high definition composite video generation system
CN106528197B (en) Shooting method and device
KR20080101576A (en) Timeline photoalbum, apparatus and method for displaying timeline photoalbum using time line
US20140313388A1 (en) Method for processing information and electronic device
WO2019023955A1 (en) Image storage and viewing method and system of intelligent terminal
US9497426B2 (en) Method for quick photographing based on mobile apparatus, device for quick photographing based on mobile apparatus and mobile apparatus
JP5804284B2 (en) Imaging apparatus, imaging method, and program
JP2009244827A (en) Image recording apparatus, image display apparatus, and image encryption system
CN106919852B (en) Object processing method and device