A codec method and device
A technology of encoding method and decoding method, applied in image enhancement, image analysis, instrument and other directions, can solve the problem of unable to hide area recovery and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] figure 1 A schematic diagram of an encoding process provided by an embodiment of the present invention, the process includes the following steps:
[0079] S101: Obtain position information of a region to be hidden in an image.
[0080] The encoding method provided by the embodiment of the present invention is applied to an electronic device, and the electronic device may be a PC, a personal computer, or an image acquisition device, as long as the electronic device includes an encoding terminal.
[0081] For the image to be coded, the electronic device can acquire the area to be hidden in the image, and the area to be hidden can be a face area, a motor vehicle area, a license plate area, and the like. The number of regions to be hidden may be one or multiple, and in this embodiment of the present invention, the number of regions to be hidden is not limited. According to needs, the area to be hidden can also be customized. For example, a certain face area in the image c...
Embodiment 2
[0100] In order to facilitate decoding of the code stream by the decoding end, on the basis of the above-mentioned embodiments, in the embodiment of the present invention, after each first code stream is obtained, the method further includes:
[0101] According to the encoding sequence of each encoding block, each first code stream is sorted.
[0102] When an electronic device encodes each coding block in an image, there is a sequence. For example, the first coding block in the first line of the image is encoded first, and finally the last coding block in the last line of the image is encoded. coding. In the embodiment of the present invention, after each first code stream is obtained, each first code stream is sorted according to the encoding sequence of each coding block. In this way, during subsequent decoding, only the sorted streams need to be decoded in sequence.
Embodiment 3
[0104] On the basis of the above embodiments, in the embodiment of the present invention, the location information of the area to be hidden includes:
[0105] Vertex coordinate information of the smallest circumscribed rectangular area of the area to be hidden; or
[0106] The mask map of the area to be hidden.
[0107] In the embodiment of the present invention, the position information of the region to be hidden includes the coordinate information of the vertices of the smallest circumscribed rectangular region of the region to be hidden, for example, the vertices of the smallest circumscribed rectangular region of the region to be hidden are A, B, C, D respectively. The coordinate information of the four vertices are A(x1, y1), B(x2, y2), C(x3, y3), D(x4, y4).
[0108] Or the location information of the region to be hidden includes a mask image of the region to be hidden. The mask map of the area to be hidden can represent any irregular area, no matter what the shape of...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


