CN116168094A - Image acquisition method and device, image processing method and system, and storage medium - Google Patents

Image acquisition method and device, image processing method and system, and storage medium Download PDF

Info

Publication number
CN116168094A
CN116168094A CN202310183676.8A CN202310183676A CN116168094A CN 116168094 A CN116168094 A CN 116168094A CN 202310183676 A CN202310183676 A CN 202310183676A CN 116168094 A CN116168094 A CN 116168094A
Authority
CN
China
Prior art keywords
data
image data
image
processed
predetermined
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
CN202310183676.8A
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.)
Kunshan Govisionox Optoelectronics Co Ltd
Hefei Visionox Technology Co Ltd
Original Assignee
Kunshan Govisionox Optoelectronics Co Ltd
Hefei Visionox Technology 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 Kunshan Govisionox Optoelectronics Co Ltd, Hefei Visionox Technology Co Ltd filed Critical Kunshan Govisionox Optoelectronics Co Ltd
Priority to CN202310183676.8A priority Critical patent/CN116168094A/en
Publication of CN116168094A publication Critical patent/CN116168094A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

An image acquisition method and device, an image processing method and system and a storage medium solve the problems of limited application and easy cracking caused by more constraint conditions when the image acquisition device and the image processing method are bonded in the prior art. The image acquisition method comprises the following steps: collecting original image data; determining image data to be processed based on the raw image data, the image data to be processed comprising at least part of the raw image data; embedding predetermined data into the image data to be processed to obtain composite image data; and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire predetermined data, and the predetermined data is used for the receiver to process the image data to be processed.

Description

Image acquisition method and device, image processing method and system, and storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image acquisition method and apparatus, an image processing method and system, and a storage medium.
Background
Image acquisition devices typically have matching image processing algorithms. The image processing algorithm is based on the image data acquired by the image acquisition equipment, and the image quality is optimized by processing the image data, or preset information is identified from the image data, so that a preset function is realized according to the preset information. For example, the image processing algorithm matched with the camera comprises a face beautifying algorithm, and the image processing algorithm matched with the fingerprint acquisition module comprises a fingerprint identification algorithm. The development process of the image processing algorithm needs to take a great deal of manpower and material resources. To ensure that the image processing algorithm can only be used with a given image acquisition device, the given image acquisition device and image processing algorithm need to be bonded.
In the related art, image capturing devices and image processing algorithms are typically bonded using identification information of the image capturing device, such as a mobile equipment identification code (International Mobile Equipment Identity, IMEI), a local area network (MAC) address, and the like. Fig. 1 is a schematic diagram illustrating an execution process of an image processing method in the related art. As shown in fig. 1, in this case, the image processing method includes a preprocessing process S110, where the preprocessing process S110 is used for performing identity verification on the image acquisition device based on the identification information ID, and after the verification is successful, the image processing algorithm S120 is used to process the image. The binding mode has more constraint conditions, so that the application is limited and the binding mode is easy to crack.
Disclosure of Invention
In view of this, the embodiments of the present application provide an image acquisition method and apparatus, an image processing method and system, and a storage medium, so as to solve the problems of limited application and easy cracking caused by more constraint conditions when bonding between an image acquisition apparatus and an image processing algorithm in the prior art.
The first aspect of the present application provides an image acquisition method, including: collecting original image data; determining image data to be processed based on the raw image data, the image data to be processed comprising at least part of the raw image data; embedding predetermined data into the image data to be processed to obtain composite image data; and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire predetermined data, and the predetermined data is used for the receiver to process the image data to be processed.
A second aspect of the present application provides an image processing method. The image processing method comprises the following steps: splitting the obtained synthesized image data into image data to be processed and preset data, wherein the synthesized image data is obtained by executing the image acquisition method provided by the embodiment of the application; combining the predetermined data and the code portions into an image processing algorithm; and performing image processing on the image data to be processed based on an image processing algorithm.
A third aspect of the present application provides an image capturing apparatus comprising: the photosensitive chip is used for collecting original image data; the main control chip is used for determining image data to be processed based on the original image data, wherein the image data to be processed comprises at least part of the original image data; embedding predetermined data into the image data to be processed to obtain composite image data; and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire predetermined data, and the predetermined data is used for the receiver to process the image data to be processed.
A fourth aspect of the present application provides an image processing system, comprising: the image acquisition device is used for storing preset data and executing the image acquisition method provided by any embodiment of the application; and an image processing device storing a code section for executing the image processing method provided by any of the embodiments of the present application.
A fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. The computer program, when executed by a processor, implements the steps of the image acquisition method provided by any of the embodiments of the present application and/or the steps of the image processing method provided by any of the embodiments of the present application.
According to the image acquisition method and device, the image processing method and system, and the storage medium provided by the embodiment of the application, an image processing algorithm is split into predetermined data and a code part, the predetermined data is stored in the image acquisition device, and the code part is stored in the image processing device. The composite image data is obtained by embedding predetermined data in the image data to be processed, and then transmitted to the image processing apparatus. Subsequently, the image processing apparatus may split the synthesized image data into the image data to be processed and the predetermined data, combine the image processing algorithm based on the predetermined data and the code portion, and further image-process the image data to be processed using the image processing algorithm. It can be seen that, for the image processing apparatus, the image processing function can be executed only when the obtained composite image data contains predetermined data, thereby realizing the bonding of the image acquisition device and the image processing algorithm. Compared with the conventional bonding mode by using the identification data of the image acquisition equipment, the bonding method has the following advantages: (1) The image processing device does not need to communicate with the image acquisition equipment to carry out identity authentication, for example, the image acquisition equipment does not need to have a unique ID, and the image processing device is not limited by right acquisition; (2) The image processing algorithm is divided into a code part and predetermined data, and in this case, even if the code part is acquired, the image processing algorithm cannot be used, so that the difficulty of cracking is increased, and the safety is improved.
Drawings
Fig. 1 is a schematic diagram illustrating an execution process of an image processing method in the related art.
Fig. 2 is a block diagram of an image processing system according to an embodiment of the present application.
Fig. 3 is a flowchart of an image acquisition method according to a first embodiment of the present application.
Fig. 4 is a flowchart of an image acquisition method according to a second embodiment of the present application.
Fig. 5 is a schematic diagram of a process of changing original image data in a process of executing an image capturing method according to an embodiment of the present application.
Fig. 6 is a flowchart of an image capturing method according to a third embodiment of the present application.
Fig. 7 is a flowchart of an image processing method according to an embodiment of the present application.
Fig. 8 is a block diagram of an image capturing device according to the first embodiment of the present application.
Fig. 9 is a block diagram of an image capturing device according to a second embodiment of the present application.
Fig. 10 is a block diagram of an image processing apparatus according to an embodiment of the present application.
Detailed Description
Two concepts, namely, an image processing algorithm and an image processing method, are distinguished first.
The image processing algorithm provided by the embodiment of the application refers to a method for realizing a predetermined function according to predetermined information by processing image data based on the image data acquired by the image acquisition device to optimize the image quality or identifying the predetermined information from the image data.
The image processing method comprises an image processing algorithm and a preprocessing process which is executed before the image processing algorithm and is used for carrying out identity recognition on the image to be processed so as to verify whether the image to be processed is from legal image acquisition equipment.
As described in the background art, in the related art, the binding manner constraint condition between the image acquisition device and the image processing algorithm is more by using the identification information of the image acquisition device, so that the application is limited and easy to crack. Specifically, (1) the image processing method needs to obtain system rights to read identification information of the image acquisition device, and the system rights are not generally obtained. (2) For image acquisition devices without unique identification information, the binding of the image acquisition device to the image processing algorithm cannot be achieved. (3) The image processing method needs to be capable of directly communicating with the image acquisition equipment, namely an image processing device where the image processing method is located needs to be in communication connection with the image acquisition equipment. (4) The identification information can be forged or intercepted and is easy to crack.
In order to solve at least one of the above problems, the present application provides an image acquisition method and apparatus, an image processing method and system, and a computer-readable storage medium. The image processing algorithm is split into predetermined data, which is stored in the image acquisition device, and code portions, which are stored in the image processing means. The composite image data is obtained by embedding predetermined data into the image data to be processed, and then the composite image data is transmitted to the image processing apparatus. Subsequently, the image processing apparatus may split the synthesized image data into the image data to be processed and the predetermined data, combine the image processing algorithm based on the predetermined data and the code portion, and further image-process the image data to be processed using the image processing algorithm. It can be seen that, for the image processing apparatus, the image processing function can be executed only when the obtained composite image data contains predetermined data, thereby realizing the bonding of the image acquisition device and the image processing algorithm. Compared with the conventional bonding mode by using the identification data of the image acquisition equipment, the bonding method has the following advantages: (1) The image processing device does not need to communicate with the image acquisition equipment to carry out identity authentication, for example, the image acquisition equipment does not need to have a unique ID, and is not limited by the acquisition of the right; (2) The image processing algorithm is divided into a code part and predetermined data, so that the separation of the image processing algorithm is realized. Under such a situation, even if the code portion is obtained, the image processing algorithm cannot be used, and therefore the image processing algorithm cannot be performed or cannot achieve the expected image processing effect, cracking difficulty is increased, and safety is improved.
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 2 is a block diagram of an image processing system according to an embodiment of the present application. The image processing system may be, for example, a display device. As shown in fig. 2, the image processing system 20 includes an image acquisition apparatus 21 and an image processing device 22. The image processing apparatus 22 may perform an image processing method including a preprocessing process for performing identification, and a process of performing image processing on an image to be processed using an image processing algorithm. In the present embodiment, the image processing algorithm is divided into a code portion stored in the image processing apparatus 22 and predetermined data stored in the image capturing device 21. Wherein the predetermined data is a key parameter extracted from the image processing algorithm. The key parameters may include fixed parameters that do not change with changes in the image data, which are inherent to the image processing algorithm. The key parameters may be some formulas, coefficients in formulas, etc. involved in the image processing algorithm. For example, the image processing algorithm includes a step of traversing the image, and the predetermined data may include a traversing direction, a step size, and the like. The key parameters may also include a variance value taken from the raw image data of each acquisition. The absence of predetermined data by the image processing algorithm will result in the image processing algorithm being unusable without the predetermined data being acquired. Further, the key parameter may be a fixed parameter, or the key parameter may be a variable value.
The image capturing device 21 may be, for example, a camera, a fingerprint recognition sensor, or the like. The image capturing apparatus 21 is used for performing the steps of the image capturing method provided in the embodiment of the present application. To embed predetermined data in the image data to be processed to obtain composite image data, and to transmit the composite image data for receipt by the image processing device 22. The image data to be processed is obtained based on the original image data acquired by the image acquisition device 21, and the image data to be processed can substantially represent the original image data, and the difference between the image data to be processed and the original image data is not substantially resolved by human eyes. The degree of distinction between the image data to be processed and the original image data depends on how much original image data the image data to be processed contains, the more original image data the image data to be processed contains, the less visible the distinction is to the human eye. By reasonably setting the amount of the original image data contained in the image data to be processed, it can be confirmed that the difference is not seen by the human eyes.
The image processing device 22 is a receiving side of the composite image data, and may be an image processor, for example. After the image processing apparatus 22 acquires the composite image data, the steps of the image processing method provided in the embodiment of the present application are performed to split the acquired composite image data into image data to be processed and predetermined data; combining the predetermined data and the code portions into an image processing algorithm; and performing image processing on the image data to be processed based on an image processing algorithm.
It can be seen that, according to the image acquisition method provided in the embodiment of the present application, the predetermined data is embedded into the image data to be processed to obtain the composite image data, and then the composite image data is sent to be received by the image processing device 22, so that the composite image data obtained by the image processing device 22 includes the predetermined data, and thus the predetermined data can be combined with the code portion pre-stored by the image processing device 22 to obtain the image processing algorithm, thereby implementing the image processing function. It can be seen that only the image capturing apparatus 21 storing predetermined data can use the image processing algorithm provided by the embodiment of the present application, thereby realizing the bonding of the image capturing apparatus 21 and the image processing algorithm.
Fig. 3 is a flowchart of an image acquisition method according to a first embodiment of the present application. As shown in fig. 3, the image acquisition method 300 is applicable to the image acquisition apparatus 21. The image acquisition method 300 includes:
step S310, collecting original image data.
The image acquisition device 21 acquires original image data. The image acquisition device 21 is, for example, a camera.
The original image data may be bitmap image data. For example, the original image data may be 8-bit bitmap image data, 16-bit bitmap image data, 24-bit bitmap image data, 32-bit bitmap image data, or the like.
The number of bits of bitmap image data determines the number of bytes occupied by each pixel. For example, in 24-bit bitmap image data, each pixel occupies 3 bytes; in 32-bit bitmap image data, each pixel occupies 4 bytes. Typically, each byte includes 8 bits, and the value of each bit may be 0 or 1.
The original image data may also be image format data, such as JPG format image data, PNG format image data, or the like.
It should be understood that the original image data may also be video data composed of a plurality of frame images.
Step S320 determines image data to be processed based on the original image data, the image data to be processed including at least part of the original image data.
The image data to be processed contains at least part of the original image data. In the case where the image data to be processed contains partial data of the original image data, the image data to be processed and the original image data are comparable, and the original image data can be characterized so as to be used for a subsequent image processing process.
In the case where the original image data is bitmap image data, the image data to be processed includes a part of the original image data. In this case, step S320 is specifically performed as: extracting a plurality of first predetermined bits of original data for each byte in the original image data; and generating image data to be processed based on the extracted original data. The value of the plurality of first predetermined bits of each byte in the image data to be processed is original data, and the value of at least one second predetermined bit other than the plurality of first predetermined bits is 0. I.e. the original data of the plurality of first predetermined bits remains unchanged, the value on at least one second predetermined bit is set to a value of 0. The first plurality of predetermined bits may be adjacent first plurality of predetermined bits, may be spaced first plurality of predetermined bits, or a combination of both. For example, of the 8 bits per byte, the upper m bits may be taken as a first predetermined bit and the lower n bits may be selected as a second predetermined bit, where m+n=8, where m and n are positive integers.
In the case where the original image data is image format data, the image data to be processed includes the complete original image data.
Step S330, embedding the predetermined data into the image data to be processed, to obtain the composite image data.
In the case where the original image data is bitmap image data, the process of embedding predetermined data into the image data to be processed may employ any one of a least significant bit (Least Significant Bit, LSB) method, a Discrete Cosine Transform (DCT) method, or a Discrete Wavelet Transform (DWT) method.
In the case where the original image data is image format data, a predetermined field may be added according to the image format, and the predetermined data may be embedded in the predetermined field. It should be appreciated that in this case, the size of the composite image data will be larger than the original image data.
The predetermined data may also be encrypted before performing step S330. After that, according to step S330, the encrypted predetermined data is embedded in the image data to be processed.
Step S340, the composite image data is transmitted.
The composite image data is used for the receiving side to acquire predetermined data, and the predetermined data is used for the receiving side to process the image data to be processed.
According to the image acquisition method provided by the embodiment, original image data is acquired; determining image data to be processed based on the raw image data, the image data to be processed comprising at least part of the raw image data; embedding predetermined data into the image data to be processed to obtain composite image data; and transmitting the composite image data. Subsequently, the receiver can acquire the composite image data and process the image data to be processed using predetermined data in the composite image data. It can be seen that, for the receiving side, the image processing function can be executed only when the obtained composite image data contains predetermined data, thereby realizing the bonding of the image acquisition device and the image processing algorithm. Compared with the conventional bonding mode by using the identification data of the image acquisition equipment, the bonding method has the following advantages: (1) The image processing device does not need to communicate with the image acquisition equipment to carry out identity authentication, for example, the image acquisition equipment does not need to have a unique ID, and the image processing device is not limited by right acquisition; (2) The image processing algorithm is divided into a code part and predetermined data, so that the separation of the image processing algorithm is realized. In this case, even if the code portion is acquired, the image processing algorithm cannot be used, so that the difficulty of cracking is increased, and the safety is improved.
Fig. 4 is a flowchart of an image acquisition method according to a second embodiment of the present application. As shown in fig. 4, in the image acquisition method provided in the present embodiment, step S320 includes:
in step S410, a plurality of first predetermined bits of original data for each byte in the original image data are extracted.
Fig. 5 is a schematic diagram of a process of changing original image data in a process of executing an image capturing method according to an embodiment of the present application. Referring to fig. 5, taking the example that the first predetermined bits are seven higher bits, the second predetermined bits except the first predetermined bits are one lower bit in each byte. For example, one byte of original data 51 in the original image data is 11101111. The upper seven bits of the original data 52 of the byte are extracted, yielding 1110111.
Step S420, generating image data to be processed based on the extracted raw data. The value of the plurality of first predetermined bits of each byte in the image data to be processed is original data, and the value of at least one second predetermined bit other than the plurality of first predetermined bits is 0. I.e. the original data of the plurality of first predetermined bits remains unchanged, the value on at least one second predetermined bit is set to a value of 0.
Still taking the byte shown in fig. 5 as an example, the image data 53 to be processed generated based on the upper seven-bit original data 52 is 11101110. In this case, the original image data 51 indicates a value of 1×2 7 +1×2 6 +1×2 5 +0×2 4 +1×2 3 +1×2 2 +1×2 1 +1×2 0 =239. The image data 53 to be processed represents a value of 1×2 7 +1×2 6 +1×2 5 +0×2 4 +1×2 3 +1×2 2 +1×2 1 +0×2 0 =238. It can be seen that the values of the image data 53 to be processed and the original image data 51 differ by 1. When the pixel value is 1 or 2, the pixel value is difficult to find by human eyes, so that image distortion is avoided, and the effect of subsequent image processing is ensured.
It should be understood that fig. 5 illustrates only one byte of data change, and the same process is performed for all bytes in the original image. The embodiment shown in fig. 5 selects the upper seven bits of each byte as a plurality of first predetermined bits, so that the obtained image data to be processed can approximately represent the original image, and image distortion is avoided.
According to the image acquisition method provided by the embodiment, the plurality of first preset original data of each byte are respectively extracted to generate the image data to be processed, so that uniform extraction is realized, the image data to be processed is ensured to be as close to the original image data as possible, and image distortion is avoided.
Fig. 6 is a flowchart of an image capturing method according to a third embodiment of the present application. As shown in fig. 6, the image acquisition method 600 differs from the image acquisition method shown in fig. 4 in that the image acquisition method 600 further includes, before step S330:
step S610, encrypting the predetermined data to obtain encrypted data.
In this step, the predetermined data may be encrypted by any conventional encryption method, and the encryption key may be stored in the image capturing device 21.
In an example, before step S610, further includes: a key is generated based on the image data to be processed. For example, the information summarization method is used to process the image data to be processed, so as to obtain summary data of the image data to be processed, which is used as a secret key. Step S610 is specifically executed to encrypt predetermined data based on a key, resulting in encrypted data. In this case, the key that encrypts the predetermined data depends on the image data to be processed, which is part of the original image data, that is, the key depends on the original image data. When the original image data are different, the secret keys are different, so that the cracking difficulty of an image processing algorithm is improved.
In this case, step S330 is specifically performed as:
step S620, the encrypted data and the image data to be processed are combined into composite image data.
Specifically, the values of a plurality of third predetermined bits of the image data to be processed are replaced with the encrypted data, the plurality of third predetermined bits being selected from at least one second predetermined bit of each of the plurality of bytes. For example, the image data to be processed includes 100 bytes, each including one second predetermined bit, i.e., one lower bit. The image data to be processed includes 100 second predetermined bits in total. When the encrypted data is 8 bytes, that is, 64 bits, it is necessary to sequentially select 64 bits from 100 second predetermined bits, the 64 bits being a third predetermined bit to fill the encrypted data. For another example, the image data to be processed includes 100 bytes, each including two second predetermined bits, i.e., the lower two bits. The image data to be processed includes 200 second predetermined bits in total. When the encrypted data is 8 bytes, that is, 64 bits, it is necessary to sequentially select 64 bits from 200 second predetermined bits, the 64 bits being a third predetermined bit to fill the encrypted data. The number of the second preset bits in the image data to be processed is greater than or equal to the number of bits of the encrypted data, and at least part of the second preset bits of the data are replaced by the encrypted data so as to hide the encrypted data in the image data to be processed, thereby obtaining the composite image data.
For example, the encrypted data includes 8 bytes, that is, 8×8=64 bits of data. The 64 bits of data are replaced with 64 second predetermined bits of the image data 33 to be processed, the 64 second predetermined bits being selected from all the second predetermined bits in the image data 33 to be processed, denoted as third predetermined bits. The plurality of third predetermined bits may be a continuous plurality of second predetermined bits, a spaced plurality of second predetermined bits, or a combination of both.
With continued reference to fig. 5, one byte of data in the encrypted data 54 is 10111011, for example. Then 8 bytes are selected from the image data 53 to be processed and the lower one of the 8 bytes is replaced in turn with 10111011 to obtain the composite image data 55. The composite image data 55 is used for transmission to the image processing apparatus 22 which stores the code portions.
According to the image acquisition method provided by the embodiment, the preset data is encrypted before being embedded into the image data to be processed, so that the difficulty of reverse cracking of an image processing algorithm is increased, and the safety is improved.
The application also provides an image processing method. The image processing method is performed by the image processing apparatus 22. Fig. 7 is a flowchart of an image processing method according to an embodiment of the present application. As shown in fig. 7, the image processing method 700 includes:
step S710, splitting the acquired composite image data into image data to be processed and predetermined data.
Step S710 is actually to split the composite image data into two parts, and the specific splitting strategy depends on the implementation of the image acquisition method provided in any of the above embodiments.
For example, referring to fig. 5, first, a plurality of first predetermined bits of first synthesized data and at least one second predetermined bit of second synthesized data for each byte in synthesized image data 55 are extracted. The first predetermined bits are, for example, seven upper bits, and the at least one second predetermined bit is, for example, one lower bit.
Next, referring next to fig. 5, to-be-processed image data 53 is generated based on the first synthesized data, a plurality of first predetermined bits of each byte in the to-be-processed image data 53 are set to the first synthesized data, and at least one second predetermined bit is set to 0.
Next, the second synthesized data is determined as predetermined data.
Step S720, the predetermined data and the code portion are combined into an image processing algorithm.
Step S730, performing image processing on the image data to be processed based on the image processing algorithm.
For example, the code portion is loaded with predetermined data to add the predetermined data to predetermined locations of the code portion resulting in a complete image processing algorithm.
The image processing process may be any image processing algorithm in the related art.
In one embodiment, the encrypted data, i.e., the data obtained by encrypting the predetermined data, is obtained according to step S710. In this case, before step S720, further including: and decrypting the encrypted data to obtain the predetermined data.
The decryption method and the encryption method used in step S610 may be symmetric encryption methods or asymmetric encryption methods. The decryption key may be stored in the image processing apparatus 22 or may be determined based on the image data to be processed. For example, before decrypting the encrypted data, further comprising: a key is generated based on the image data to be processed. For example, the information summarization method is used to process the image data to be processed, so as to obtain summary data of the image data to be processed, which is used as a secret key. In this case, the encrypted data may be decrypted based on the key to obtain predetermined data.
According to the image processing method provided by the embodiment of the application, validity judgment is not carried out on the obtained preset data. Even if the obtained preset data is wrong, the image processing method still continues to be executed, and finally, a wrong image processing result is obtained, so that the confusion and the cracking difficulty are increased.
The application also provides an image acquisition device. The application also provides image acquisition equipment. The image acquisition device may be, for example, a camera. Fig. 8 is a block diagram of an image capturing apparatus according to an embodiment of the present application. As shown in fig. 8 and 2, the image pickup apparatus 21 includes a photosensitive chip 810 and a main control chip 820. Wherein the photosensitive chip 810 is used for collecting original image data. The main control chip 820 is used for determining image data to be processed based on the original image data, wherein the image data to be processed comprises at least part of the original image data; embedding predetermined data into the image data to be processed to obtain composite image data; and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire predetermined data, and the predetermined data is used for the receiver to process the image data to be processed.
Specifically, the main control chip 820 includes: a determination module 821, an embedding module 822, and a transmission module 823. The determining module 821 is configured to determine, based on the original image data, image data to be processed, where the image data to be processed includes at least a portion of the original image data. The embedding module 822 is configured to embed predetermined data into image data to be processed, so as to obtain composite image data. The transmitting module 823 is used for transmitting composite image data, the composite image data is used for a receiving party to acquire predetermined data, and the predetermined data is used for the receiving party to process the image data to be processed.
According to the image acquisition device provided in any of the embodiments of the present application, the image processing algorithm is split into predetermined data and a code portion, the predetermined data may be stored in the image acquisition apparatus, and the code portion may be stored in the image processing device. The composite image data is obtained by embedding predetermined data in the image data to be processed, and then transmitted to the image processing apparatus. Subsequently, the image processing apparatus may split the synthesized image data into the image data to be processed and the predetermined data, combine the image processing algorithm based on the predetermined data and the code portion, and further image-process the image data to be processed using the image processing algorithm. It can be seen that, with the image processing apparatus, the image processing function can be performed only when predetermined data is included in the synthesized image data that it obtains. It can be seen that only the image capturing apparatus 21 storing predetermined data can use the image processing algorithm provided by the embodiment of the present application, thereby realizing the bonding of the image capturing apparatus 21 and the image processing algorithm. Compared with the conventional bonding mode by using the identification data of the image acquisition equipment, the bonding method has the following advantages: (1) The image processing device does not need to communicate with the image acquisition equipment to carry out identity authentication, for example, the image acquisition equipment does not need to have a unique ID, and the image processing device is not limited by right acquisition; (2) The image processing algorithm is divided into a code part and predetermined data, so that the separation of the image processing algorithm is realized. In this case, even if the code portion is acquired, the image processing algorithm cannot be used, so that the difficulty of cracking is increased, and the safety is improved.
Fig. 9 is a block diagram of an image capturing apparatus according to a second embodiment of the present application. As shown in fig. 9, in the image capturing apparatus 900, the determining module 821 includes: an extraction module 910 and a generation module 920. Wherein the extracting module 910 is configured to extract a plurality of first predetermined bits of original data of each byte in the original image data. The generating module 920 is configured to generate, based on the extracted raw data, image data to be processed, where values of a plurality of first predetermined bits of each byte in the image data to be processed are raw data, and values of at least one second predetermined bit other than the plurality of first predetermined bits are 0. The first predetermined bits are, for example, seven upper bits, and the at least one second predetermined bit is, for example, one lower bit.
According to the image acquisition device provided by the embodiment, the image data to be processed is generated by utilizing the plurality of first preset original data of each byte, so that the image data to be processed can be ensured to be as close to the original image data as possible, image distortion is avoided, and guarantee is provided for the subsequent image processing effect.
In one embodiment, as shown in fig. 9, the image acquisition apparatus 900 further includes: and an encryption module 930, configured to encrypt the predetermined data to obtain encrypted data. In this case, the embedding module 822 is specifically configured to combine the encrypted data and the image data to be processed into composite image data. After the preset data is encrypted, the preset data is hidden in the synthesized image data, so that the reverse cracking difficulty of an image processing algorithm is increased, and the safety is improved.
For example, the embedding module 822 is specifically configured to replace values of a plurality of third predetermined bits of the image data to be processed with the encrypted data, where the plurality of third predetermined bits is selected from the plurality of second predetermined bits. Since the value of the second predetermined bit of each byte in the image data to be processed is 0, the encrypted data is used for replacing the 0 value, and the image data to be processed is not damaged.
In one embodiment, the generation module 920 is further configured to generate a key based on the image data to be processed. In this case, the encryption module 930 is specifically configured to encrypt the predetermined data based on the key, to obtain encrypted data. In this case, the key that encrypts the predetermined data depends on the image data to be processed, which is part of the original image data, that is, the key depends on the original image data. When the original image data are different, the secret keys are different, so that the cracking difficulty of an image processing algorithm is further improved.
The image acquisition device provided by the embodiment of the application belongs to the same invention conception as the image acquisition method provided by the embodiment of the application, and can execute the image acquisition method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the image acquisition method. Technical details not described in detail in the embodiment of the image capturing apparatus may be referred to the image capturing method provided in the embodiment of the present application, and will not be described herein.
The application also provides an image processing device. Fig. 10 is a block diagram of an image processing apparatus according to an embodiment of the present application. The image processing device is used for executing the steps of the image processing method provided by any embodiment of the application. As shown in fig. 10, the image processing apparatus 1000 includes: a splitting module 1010, a combining module 1020, and a processing module 1030.
The splitting module 1010 is configured to split the acquired composite image data into image data to be processed and predetermined data. The combining module 1020 is used to combine the predetermined data and the code portions into an image processing method. The processing module 1030 is configured to perform image processing on image data to be processed based on an image processing method.
In one embodiment, the splitting module 1010 is specifically configured to extract a plurality of first predetermined bits of first synthesized data and at least one second predetermined bit of second synthesized data for each byte in the synthesized image data; generating image data to be processed based on the first synthesized data, wherein the values of a plurality of first preset bits of each byte in the image data to be processed are the first synthesized data, and the values of at least one second preset bit are 0 values; the second composite data is determined to be encrypted data.
The image processing device provided by the embodiment of the application belongs to the same invention conception as the image processing method provided by the embodiment of the application, can execute the image processing method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the image processing method. Technical details not described in detail in the embodiments of the image processing apparatus may be referred to the image processing method provided in the embodiments of the present application, and will not be described herein.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the image acquisition method provided by any of the above embodiments and/or the steps of the image processing method provided by any of the above embodiments.
A computer readable storage medium may employ any combination of one or more readable media. The readable storage medium may be in the form of any one of electronic, magnetic, optical, electromagnetic, infrared, semiconductor, or a combination of the foregoing. For example, the readable storage medium includes: hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, and the like.
The basic principles of the present application have been described above in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present application are merely examples and not limiting, and these advantages, benefits, effects, etc. are not to be considered as necessarily possessed by the various embodiments of the present application. Furthermore, the specific details disclosed herein are for purposes of illustration and understanding only, and are not intended to be limiting, as the application is not intended to be limited to the details disclosed herein as such.
The block diagrams of the devices, apparatuses, devices, systems referred to in this application are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
It is also noted that in the apparatus, devices and methods of the present application, the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent to the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It should be understood that the qualifiers "first", "second", etc. used in the description of the embodiments of the present application are only used for more clearly illustrating the technical solutions, and are not used to limit the protection scope of the present application.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. An image acquisition method, comprising:
collecting original image data;
determining image data to be processed based on the original image data, the image data to be processed including at least part of the original image data;
embedding predetermined data into the image data to be processed to obtain composite image data;
and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire the preset data, and the preset data is used for the receiver to process the image data to be processed.
2. The image acquisition method according to claim 1, wherein the determining image data to be processed based on the original image data includes:
extracting a plurality of first predetermined bits of original data for each byte in the original image data;
generating the image data to be processed based on the extracted original data, wherein the values of the first predetermined bits of each byte in the image data to be processed are the original data, and the value of at least one second predetermined bit other than the first predetermined bits is 0.
3. The image capturing method of claim 2, wherein the extracting the plurality of first predetermined bits of raw data for each byte in the raw image data comprises:
extracting the seven upper bits of original data of each byte in the original image data.
4. A method of image acquisition according to claim 2 or 3, characterized in that before said embedding predetermined data into said image data to be processed, resulting in composite image data, it further comprises:
encrypting the preset data to obtain encrypted data;
correspondingly, the embedding the predetermined data into the image data to be processed to obtain the composite image data includes:
and combining the encrypted data and the image data to be processed into the composite image data.
5. The image capturing method according to claim 4, wherein the combining the encrypted data and the image data to be processed into the composite image data includes:
replacing values of a plurality of third predetermined bits of the image data to be processed, the plurality of third predetermined bits being selected from the at least one second predetermined bit of each of a plurality of bytes of the image data to be processed, with the encrypted data.
6. The image capturing method according to claim 4, further comprising, before said encrypting the predetermined data to obtain encrypted data:
generating a secret key based on the image data to be processed;
correspondingly, encrypting the predetermined data to obtain encrypted data includes:
encrypting the preset data based on the secret key to obtain encrypted data;
preferably, the generating a key based on the image data to be processed includes:
and processing the image data to be processed by using a message digest algorithm to obtain digest data of the image data to be processed, wherein the digest data is used as the secret key.
7. An image processing method, comprising:
splitting the acquired synthetic image data into image data to be processed and predetermined data, the synthetic image data being obtained by performing the image acquisition method according to any one of claims 1 to 7;
combining the predetermined data and the pre-stored code portions into an image processing algorithm;
and carrying out image processing on the image data to be processed based on the image processing algorithm.
8. An image capturing apparatus, comprising:
the photosensitive chip is used for collecting original image data; and
the main control chip is used for determining image data to be processed based on the original image data, wherein the image data to be processed comprises at least part of the original image data; embedding predetermined data into the image data to be processed to obtain composite image data; and sending the synthesized image data, wherein the synthesized image data is used for a receiver to acquire the preset data, and the preset data is used for the receiver to process the image data to be processed.
9. An image processing system, comprising:
an image acquisition device storing predetermined data for performing the image acquisition method of any one of claims 1 to 6; and
an image processing apparatus storing a code section for executing the image processing method according to claim 7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the image acquisition method according to any one of claims 1 to 6 and/or the steps of the image processing method according to claim 7.
CN202310183676.8A 2023-02-24 2023-02-24 Image acquisition method and device, image processing method and system, and storage medium Pending CN116168094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310183676.8A CN116168094A (en) 2023-02-24 2023-02-24 Image acquisition method and device, image processing method and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310183676.8A CN116168094A (en) 2023-02-24 2023-02-24 Image acquisition method and device, image processing method and system, and storage medium

Publications (1)

Publication Number Publication Date
CN116168094A true CN116168094A (en) 2023-05-26

Family

ID=86419896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310183676.8A Pending CN116168094A (en) 2023-02-24 2023-02-24 Image acquisition method and device, image processing method and system, and storage medium

Country Status (1)

Country Link
CN (1) CN116168094A (en)

Similar Documents

Publication Publication Date Title
US5907619A (en) Secure compressed imaging
US6005936A (en) System for embedding authentication information into an image and an image alteration detecting system
US7216232B1 (en) Method and device for inserting and authenticating a digital signature in digital data
US12002127B2 (en) Robust selective image, video, and audio content authentication
Pramanik et al. Signature image hiding in color image using steganography and cryptography based on digital signature concepts
US20150220717A1 (en) Method for electronically signing electronic document using biometric information and method for verifying the electronic document
CN114208110B (en) Information processing device, information processing method, and program
US7840817B2 (en) Data processing apparatus and method
JP4261724B2 (en) Signature data generation apparatus and image verification apparatus
JP2003223101A (en) Secure multimedia data transmission method
CN102014266A (en) Digital watermarking-based high-definition video encrypted transmitting method and system
CN104734852A (en) Identity authentication method and device
KR20060061219A (en) E n c r y p t i o n p r o c e s s o r
CN114357418A (en) Encryption authentication method, system, terminal device, server and storage medium
CN113095993A (en) Image verification method and system for chaotic encryption and digital watermarking
DK2425620T3 (en) Procedure for secure access to audio / video content in a decoding device
CN112307875A (en) Face verification method and face verification system
CN116168094A (en) Image acquisition method and device, image processing method and system, and storage medium
US20230066458A1 (en) Steganography method
CN115225771B (en) Method and device for hiding reversible information of encrypted image and computer equipment
CN111611567B (en) Authentication method and device, electronic whiteboard and computer readable storage medium
JP2005318068A (en) Electronic watermark embedding system of contents authentication data, and authentication system
WO1999031844A1 (en) Device for authenticating digital images
CN1992794A (en) Digital camera with the function of digital watermark
JP3527082B2 (en) Electronic authentication method and 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