CN111161135B - Picture conversion method and related product - Google Patents

Picture conversion method and related product Download PDF

Info

Publication number
CN111161135B
CN111161135B CN201911395310.7A CN201911395310A CN111161135B CN 111161135 B CN111161135 B CN 111161135B CN 201911395310 A CN201911395310 A CN 201911395310A CN 111161135 B CN111161135 B CN 111161135B
Authority
CN
China
Prior art keywords
data
coordinate
module
memory
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911395310.7A
Other languages
Chinese (zh)
Other versions
CN111161135A (en
Inventor
王和国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies 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 Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201911395310.7A priority Critical patent/CN111161135B/en
Publication of CN111161135A publication Critical patent/CN111161135A/en
Application granted granted Critical
Publication of CN111161135B publication Critical patent/CN111161135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T3/04
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a picture conversion method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module, a data filling module, a first data first-in first-out memory and a second data first-out memory; the method comprises the following steps: storing a first coordinate information set in the initial picture in a first data first-in first-out memory and a second data first-in first-out memory, reading the first coordinate information in the first data first-in first-out memory by a data reading module, acquiring first coordinate data in the first memory, determining second coordinate data by a data calculating module according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and processing the second coordinate data by a data converting module and a data filling module to acquire a target picture; the method is beneficial to improving the efficiency and convenience of picture conversion.

Description

Picture conversion method and related product
Technical Field
The application relates to the technical field of electronic equipment, in particular to a picture conversion method and related products.
Background
For a deep learning artificial intelligence system, pictures of different sizes need to be converted to pictures of a certain fixed size to be processed by using an algorithm model, but different algorithm models may need different input sizes. The current picture conversion processing either uses a central processing unit or digital signal software programming processing, or needs to process the pictures of the cache lines, and needs larger on-chip cache space and higher bus bandwidth overhead, and the artificial intelligent system is a computationally intensive and data in-out intensive system, so that the current processing method cannot meet the picture conversion processing requirements of the artificial intelligent system, such as high throughput, low delay, high energy efficiency ratio and low bandwidth.
Disclosure of Invention
The embodiment of the application provides a picture conversion method and related products so as to improve the efficiency and convenience of picture conversion.
In a first aspect, an embodiment of the present application provides a picture conversion method, which is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps:
The first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
In a second aspect, an embodiment of the present application provides a picture conversion apparatus, which is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the picture conversion apparatus includes a processing unit, a communication unit, and a storage unit, wherein,
The processing unit is used for respectively extracting a first coordinate information set in an initial picture by the first coordinate mapping module and the second coordinate mapping module and storing the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and obtaining first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set; and processing the second coordinate data from the data calculation module by the data conversion module and the data filling module to acquire a target picture.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to perform some or all of the steps as described in any of the methods of the second aspect of embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any of the methods of the second aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a picture conversion architecture according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a picture conversion method according to an embodiment of the present application;
fig. 3 is a flowchart of another picture conversion method according to an embodiment of the present application;
fig. 4 is a flowchart of another picture conversion method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a functional unit composition block diagram of a picture conversion apparatus provided in an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying 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 based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal devices (terminal devices), and so on.
The embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a picture conversion architecture, which is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, the second coordinate mapping module includes a second data first-out memory, and the electronic device further includes a second memory and a space converting calculating module, where the picture conversion architecture is provided with the first data first-in first-out memory and the second data first-in first-out memory respectively store coordinate data, so as to implement a coordinate data first-in first-out access method, thereby being beneficial to reducing memory space occupied by data storage, and being beneficial to implementing high throughput, low latency, high energy efficiency ratio and low bandwidth in the picture conversion process, and being beneficial to optimizing the existing picture conversion method.
Referring to fig. 2, fig. 2 is a schematic flow chart of a picture conversion method applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps:
S201, the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory;
wherein the first set of coordinate information includes a plurality of first coordinate information.
S202, the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory;
the first coordinate information set is a coordinate information set of a part of pixel points in the initial picture.
Wherein the first memory comprises a double rate synchronous dynamic random access memory.
Wherein the first coordinate data includes coordinate data of a part of rows in the initial picture.
The first coordinate information in the first data FIFO memory follows the first-in first-out principle and is covered while being read.
S203, the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
Wherein the electronic device further comprises a second memory, the second memory comprising a random access memory.
The first coordinate information is further used for being subjected to grouping processing by the second memory, and first data grouping information is determined.
Wherein the second coordinate data includes coordinate data of a partial column in the first coordinate data.
S204, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
In one possible example, the data reading module reads the first coordinate information in the first data fifo, and obtains first coordinate data corresponding to the first coordinate information in the first memory, including: the data reading module reads the first coordinate information in the first data first-in first-out memory to generate a first request; the data reading module sends the first coordinate information and the first request to the first memory; the first memory acquires initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
Wherein the first request includes a request to acquire first coordinate data in the first memory.
Wherein the first coordinate data includes data corresponding to the first coordinate information.
In a specific implementation, a data reading module reads the first coordinate information in the first data first-in first-out memory to generate a first request, then the first coordinate information and the first request are sent to a first memory, the first memory acquires initial coordinate data of the initial picture, determines that part of initial coordinate data corresponding to the first coordinate information in the initial coordinate data is first coordinate data, sends the first coordinate data to the data reading module, and the data reading module acquires the first coordinate data from the first memory.
It can be seen that, in this example, the data reading module reads the first coordinate information in the first data fifo, generates a first request, and sends the first coordinate information and the first request to the first memory, where the first memory obtains initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory; and determining first coordinate data in the initial picture required by picture conversion, and caching the first coordinate data is beneficial to improving the high efficiency of picture conversion.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and comprises: the data reading module sends the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
Wherein the first state information includes information indicating that the second memory is in an active state.
The second memory stores the first coordinate data in groups, and the first data grouping information is determined to include the first coordinate data stored in the second memory segment, wherein each segment of the first coordinate data is a first data grouping.
In a specific implementation, the second memory groups the first coordinate data S1 into a second memory 0, a second memory 1, a second memory 2 and a second memory 3 for storage, the data calculation module obtains the first coordinate information S1 and the first data grouping information, the second memory 0, the second memory 1, the second memory 2 and the second memory 3, determines that the initial picture P1 is reduced to obtain the target picture P2 to be generated, substitutes a preset algorithm, determines that the first column, the second column and the third column of the S1 calculate to obtain first column and second coordinate data, calculates the third column, the fourth column and the fifth column of the S1 to obtain second column and second coordinate data, and so on, determines all the second coordinate data.
As can be seen, in this example, the data reading module sends the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm; the data are stored in the second memory group, so that the required storage space is reduced, and the conventional picture conversion method and device are optimized.
In one possible example, the first coordinate mapping module and the second coordinate mapping module extract a first set of coordinate information in an initial picture, respectively, and before storing in the first data fifo and the second data fifo, the method further comprises: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
The first coordinate information includes coordinate information of valid pixel points in the initial picture.
The preset mapping algorithm comprises a preset algorithm for mapping coordinate data in an initial picture and coordinate data of a target picture to be generated to obtain first coordinate information.
In specific implementation, a first coordinate mapping module and a second coordinate mapping module acquire initial coordinate information of an initial picture, meanwhile, the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated, then the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information, and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In this example, the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture, acquire target coordinate information of a target picture to be generated, call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, determine first coordinate information, and then the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information; by the method, accuracy and high efficiency of coordinate data acquisition are improved, and further high efficiency of picture conversion is improved.
In one possible example, the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, comprising: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
The color space conversion strategy comprises the steps of converting the data format of the second coordinate data into RBG format and determining third coordinate data.
The data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence relationship, wherein the number of the third coordinate data is the same as the number of the target data.
The data filling module sequentially arranges the picture coordinate data to obtain a target picture.
In specific implementation, the data conversion module acquires the second coordinate data from the data calculation module, determines third coordinate data according to a preset color space conversion strategy, determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, determines that the third coordinate data are picture coordinate data, and then sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
In this example, the data conversion module obtains the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion policy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; the data filling module processes the picture coordinate data to obtain a target picture; the method is beneficial to improving the efficiency and convenience of picture conversion.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, comprising: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relationship, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
Wherein the interpolation filtering process comprises a nearest neighbor interpolation method, a bilinear interpolation method and/or a cubic polynomial interpolation method.
In a specific implementation, the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relationship, that is, the number of the third coordinate data is greater than that of the target coordinate data, then sends the third coordinate data to the space conversion calculation module, the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to obtain picture coordinate data, the space conversion calculation module sends the picture coordinate data to the data filling module, and then the data filling module processes the picture coordinate data to obtain a target picture.
In this example, the data conversion module determines that there is a multiple correspondence between the third coordinate data and the target coordinate data, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; the data filling module processes the picture coordinate data to obtain a target picture; the method is beneficial to improving the accuracy and the efficiency of image scaling in image conversion.
In one possible example, after the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, the method further comprises: the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object.
The second request includes a request for the preset object to acquire the target picture.
In a specific implementation, after the data filling module obtains a target picture, a second request from the electronic device is received, and if the first memory requests to obtain the target image, the data filling module sends the target picture to the first memory
In this example, the data filling module obtains a target picture, receives a second request from the electronic device, and sends the target picture to a preset object; the method is beneficial to improving the utilization rate of the target picture after the image conversion is finished, and is beneficial to improving the practicability of the picture conversion.
Referring to fig. 3, fig. 3 is a schematic flow chart of another picture conversion method according to the embodiment of the present application, which is consistent with the embodiment shown in fig. 2, and is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; as shown in the figure, the present picture conversion method includes:
s301, the data reading module reads the first coordinate information in the first data first-in first-out memory to generate a first request;
s302, the data reading module sends the first coordinate information and the first request to the first memory;
S303, the first memory acquires initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data;
s304, the data reading module acquires the first coordinate data from the first memory;
s305, the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory;
s306, the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
s307, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
In addition, the data reading module reads the first coordinate information in the first data first-in first-out memory to generate a first request, the data reading module sends the first coordinate information and the first request to the first memory, the first memory acquires initial coordinate data of the initial picture, and the first coordinate data is determined according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory; and determining first coordinate data in the initial picture required by picture conversion, and caching the first coordinate data is beneficial to improving the high efficiency of picture conversion.
Referring to fig. 4, fig. 4 is a schematic flow chart of another picture conversion method according to the embodiment of the present application, which is consistent with the embodiment shown in fig. 2, and is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module, and a data filling module, where the first coordinate mapping module includes a first data fifo, and the second coordinate mapping module includes a second data fifo; as shown in the figure, the present picture conversion method includes:
S401, the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory;
s402, the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory;
s403, the data reading module sends the first coordinate data to the second memory;
s404, the second memory stores the first coordinate data in groups and determines first data grouping information;
s405, the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in a valid state, and generates first state information;
s406, the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory;
S407, the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm;
s408, the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
In addition, the data reading module sends the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm; the data are stored in the second memory group, so that the required storage space is reduced, and the conventional picture conversion method and device are optimized.
Referring to fig. 5, in accordance with the embodiments shown in fig. 2, 3, and 4, fig. 5 is a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application, as shown in the fig. 500, where the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for performing the following steps;
The first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set;
the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
In one possible example, the data reading module reads the first coordinate information in the first data fifo, obtains first coordinate data corresponding to the first coordinate information in the first memory, and the instructions in the program are specifically configured to perform the following operations: the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring the first coordinate data in the first memory; the data reading module sends the first coordinate information and the first request to the first memory; the first memory acquires initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the instructions in the program are specifically configured to perform the following operations: the data reading module sends the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information, wherein the first state information comprises information representing that the second memory is in the effective state; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
In one possible example, the first coordinate mapping module and the second coordinate mapping module extract a first set of coordinate information in an initial picture, respectively, and the instructions in the program are specifically further configured to perform the following operations before storing in the first data fifo and the second data fifo: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In one possible example, the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, and the instructions in the program are specifically configured to: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the instructions in the program are specifically configured to perform the following operations: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relationship, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
In one possible example, after the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, the instructions in the program are specifically further configured to: the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional units of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 6 is a functional unit block diagram of a picture conversion apparatus 600 according to an embodiment of the present application. The picture conversion apparatus 600 is applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data conversion module, and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the picture conversion apparatus 600 includes a processing unit 601, a communication unit 602, and a storage unit 603, wherein,
the processing unit 601 is configured to extract a first set of coordinate information in an initial picture by using the first coordinate mapping module and the second coordinate mapping module, and store the first set of coordinate information in the first data fifo and the second data fifo; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and obtaining first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set; and processing the second coordinate data from the data calculation module by the data conversion module and the data filling module to acquire a target picture.
It can be seen that in the embodiment of the present application, a picture conversion method and a related product are provided, which are applied to an electronic device, where the electronic device includes a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculating module, a data converting module and a data filling module, where the first coordinate mapping module includes a first data first-in first-out memory, and the second coordinate mapping module includes a second data first-out memory; the method comprises the following steps: the first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory, then the data reading module reads the first coordinate information in the first data first-in first-out memory to obtain first coordinate data corresponding to the first coordinate information in the first memory, then the data calculating module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and finally the data converting module and the data filling module process the second coordinate data from the data calculating module to obtain a target picture; therefore, the method is used for respectively carrying out the coordinate data processing twice when converting the picture, only partial row or column coordinate data is needed to be acquired in each processing, the complete row data of the picture is not needed to be cached, the requirement of on-chip caching is saved, the requirement of bus bandwidth is saved, the data redundancy is reduced, and the high efficiency and the convenience of picture conversion are improved.
It can be understood that, since the method embodiment and the apparatus embodiment are in different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be adapted to the apparatus embodiment portion synchronously, which is not described herein.
In one possible example, the data reading module reads the first coordinate information in the first data fifo, and obtains first coordinate data corresponding to the first coordinate information in the first memory, and the processing unit 601 is specifically configured to: the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring the first coordinate data in the first memory; the data reading module sends the first coordinate information and the first request to the first memory; the first memory acquires initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data; the data reading module acquires the first coordinate data from the first memory.
In one possible example, the electronic device further comprises a second memory; the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data fifo, and the processing unit 601 is specifically configured to: the data reading module sends the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information, wherein the first state information comprises information representing that the second memory is in the effective state; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; and the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm.
In one possible example, the first coordinate mapping module and the second coordinate mapping module extract a first set of coordinate information in an initial picture, and the processing unit 601 is specifically further configured to: the first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture; the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated; the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information; and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
In one possible example, the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, and the processing unit 601 is specifically configured to: the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy; the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, and determines that the third coordinate data is picture coordinate data; the data conversion module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
In one possible example, the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture, and the processing unit 601 is specifically configured to: the data conversion module determines that the third coordinate data and the target coordinate data have a multiple corresponding relationship, and sends the third coordinate data to the space conversion calculation module; the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to determine picture coordinate data; the space conversion calculation module sends the picture coordinate data to the data filling module; and the data filling module processes the picture coordinate data and acquires a target picture.
In one possible example, after the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, the processing unit 601 is specifically further configured to: the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
The embodiment of the application also provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, where the computer program causes a computer to execute part or all of the steps of any one of the methods described in the embodiments of the method, where the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (second Memory Random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, second Memory), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the present application, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, the above examples being provided solely to assist in the understanding of the methods of the present application and the core ideas thereof; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. The picture conversion method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module and a data filling module, wherein the first coordinate mapping module comprises a first data first-in first-out memory, and the second coordinate mapping module comprises a second data first-out memory; the method comprises the following steps:
The first coordinate mapping module and the second coordinate mapping module respectively extract a first coordinate information set in an initial picture and store the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory;
the data reading module reads the first coordinate information in the first data first-in first-out memory and acquires first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture;
the data calculation module determines second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, wherein the second coordinate information set corresponding to the second coordinate data is a coordinate information set of partial coordinates in the first coordinate information set, and the determining of the second coordinate data comprises the data reading module sending the first coordinate data to a second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information, wherein the first state information comprises information representing that the second memory is in the effective state; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm;
The data conversion module and the data filling module process the second coordinate data from the data calculation module to obtain a target picture.
2. The method of claim 1, wherein the data reading module reads the first coordinate information in the first data fifo, and obtains first coordinate data corresponding to the first coordinate information in the first memory, comprising:
the data reading module reads the first coordinate information in the first data first-in first-out memory and generates a first request, wherein the first request comprises a request for acquiring the first coordinate data in the first memory;
the data reading module sends the first coordinate information and the first request to the first memory;
the first memory acquires initial coordinate data of the initial picture, and determines first coordinate data according to the first coordinate information and the initial coordinate data;
the data reading module acquires the first coordinate data from the first memory.
3. The method of claim 2, wherein the first and second coordinate mapping modules extract a first set of coordinate information in an initial picture, respectively, and before storing in the first and second data fifos, the method further comprises:
The first coordinate mapping module and the second coordinate mapping module acquire initial coordinate information of an initial picture;
the first coordinate mapping module and the second coordinate mapping module acquire target coordinate information of a target picture to be generated;
the first coordinate mapping module and the second coordinate mapping module call a preset mapping algorithm to calculate according to the initial coordinate information and the target coordinate information, and determine first coordinate information;
and the first coordinate mapping module and the second coordinate mapping module extract a first coordinate information set in the initial picture according to the first coordinate information.
4. A method according to claim 3, wherein the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, comprising:
the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy;
the data conversion module determines that the third coordinate data and the target coordinate data have a one-to-one correspondence, and determines that the third coordinate data is picture coordinate data;
The data conversion module sends the picture coordinate data to the data filling module;
and the data filling module processes the picture coordinate data and acquires a target picture.
5. The method of claim 3, wherein the electronic device further comprises a spatial transformation calculation module; the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, comprising:
the data conversion module acquires the second coordinate data from the data calculation module, and determines third coordinate data according to a preset color space conversion strategy;
the data conversion module determines that the third coordinate data and the target coordinate data have multiple corresponding relations, and sends the third coordinate data to the space conversion calculation module;
the space conversion calculation module carries out interpolation filtering processing on the third coordinate data to determine picture coordinate data;
the space conversion calculation module sends the picture coordinate data to the data filling module;
and the data filling module processes the picture coordinate data and acquires a target picture.
6. The method of claim 1, wherein after the data conversion module and the data population module process the second coordinate data from the data calculation module to obtain a target picture, the method further comprises:
the data filling module acquires the target picture, receives a second request from the electronic equipment, and sends the target picture to a preset object, wherein the second request comprises a request for acquiring the target picture by the preset object.
7. The picture conversion device is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first coordinate mapping module, a second coordinate mapping module, a data reading module, a first memory, a data calculation module, a data conversion module and a data filling module, wherein the first coordinate mapping module comprises a first data first-in first-out memory, and the second coordinate mapping module comprises a second data first-out memory; the picture conversion apparatus includes a processing unit, a communication unit, and a storage unit, wherein,
the processing unit is used for respectively extracting a first coordinate information set in an initial picture by the first coordinate mapping module and the second coordinate mapping module and storing the first coordinate information set in the first data first-in first-out memory and the second data first-in first-out memory; the data reading module is used for reading the first coordinate information in the first data first-in first-out memory and obtaining first coordinate data corresponding to the first coordinate information in the first memory, wherein the first coordinate information set is a coordinate information set of partial pixel points in the initial picture; the data calculation module is used for determining second coordinate data according to the first coordinate data and the first coordinate information set stored in the second data first-in first-out memory, and the second coordinate information set corresponding to the second coordinate data is the coordinate information set of partial coordinates in the first coordinate information set, wherein the determining of the second coordinate data comprises the data reading module sending the first coordinate data to the second memory; the second memory is used for storing the first coordinate data in a grouping way and determining first data grouping information; the data reading module detects that the first data packet information exists in the second memory, determines that the second memory is in an effective state, and generates first state information, wherein the first state information comprises information representing that the second memory is in the effective state; the data reading module sends the first state information to the data calculating module; the data calculation module obtains the first coordinate information in the second data first-in first-out memory and the first data packet information in the second memory; the data calculation module determines second coordinate data according to the first coordinate information, the first data grouping information and a preset algorithm; and processing the second coordinate data from the data calculation module by the data conversion module and the data filling module to acquire a target picture.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201911395310.7A 2019-12-30 2019-12-30 Picture conversion method and related product Active CN111161135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911395310.7A CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911395310.7A CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Publications (2)

Publication Number Publication Date
CN111161135A CN111161135A (en) 2020-05-15
CN111161135B true CN111161135B (en) 2023-06-09

Family

ID=70559200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911395310.7A Active CN111161135B (en) 2019-12-30 2019-12-30 Picture conversion method and related product

Country Status (1)

Country Link
CN (1) CN111161135B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986034A (en) * 2018-07-02 2018-12-11 武汉珞珈德毅科技股份有限公司 A kind of raster data coordinate transformation method, system, terminal device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10140703B2 (en) * 2014-03-10 2018-11-27 Smith & Nephew, Inc. Systems and methods for evaluating accuracy in a patient model
CN107391023B (en) * 2016-05-16 2021-01-22 深圳市中兴微电子技术有限公司 Multi-channel data memory and access method and device thereof
CN107977923B (en) * 2017-12-13 2020-02-04 深圳云天励飞技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108986034A (en) * 2018-07-02 2018-12-11 武汉珞珈德毅科技股份有限公司 A kind of raster data coordinate transformation method, system, terminal device and storage medium

Also Published As

Publication number Publication date
CN111161135A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN109871510B (en) Two-dimensional convolution operation processing method, system, equipment and computer storage medium
CN106294234B (en) A kind of data transmission method and device
CN110189246B (en) Image stylization generation method and device and electronic equipment
CN110933497A (en) Video image data frame insertion processing method and related equipment
CN106910162A (en) Image zoom processing method and device based on FPGA
CN107333062A (en) A kind of method, system and device of Computer Vision
CN108055578A (en) A kind of image processing method, device and vision signal splicing device
CN110290398A (en) Video delivery method, device, storage medium and electronic equipment
CN111161135B (en) Picture conversion method and related product
CN112614042B (en) Data driving method and device for delayed rendering of map
CN105988941B (en) Cache data processing method and device
CN112383497B (en) OFDM conversion method in 5G system and related product
CN107977923B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
WO2013155974A1 (en) Relevant method and device for compression, decompression and progressive transmission of spatial data
CN111145128B (en) Color enhancement method and related device
CN112511480B (en) Secondary FFT or IFFT transformation method and related product
CN115205099A (en) Image data transmission method and device and electronic equipment
CN112765085A (en) Data transmission method and related device
CN115880416A (en) Three-dimensional model display method and device, server and storage medium
CN114153408A (en) Image display control method and related equipment
CN109784226B (en) Face snapshot method and related device
CN113658049A (en) Image transposition method, equipment and computer readable storage medium
CN109376856B (en) Data processing method and processing device
CN117011146B (en) Image scaling method and device, electronic equipment and storage medium
CN111417007A (en) Image transmission method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant