CN110049299A - Trapezoidal distortion correction method, device, computer equipment and storage medium - Google Patents

Trapezoidal distortion correction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110049299A
CN110049299A CN201910317590.3A CN201910317590A CN110049299A CN 110049299 A CN110049299 A CN 110049299A CN 201910317590 A CN201910317590 A CN 201910317590A CN 110049299 A CN110049299 A CN 110049299A
Authority
CN
China
Prior art keywords
keystone
correction
gpu
projected image
display engine
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.)
Granted
Application number
CN201910317590.3A
Other languages
Chinese (zh)
Other versions
CN110049299B (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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201910317590.3A priority Critical patent/CN110049299B/en
Publication of CN110049299A publication Critical patent/CN110049299A/en
Application granted granted Critical
Publication of CN110049299B publication Critical patent/CN110049299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Projection Apparatus (AREA)

Abstract

This application involves a kind of trapezoidal distortion correction method, device, computer equipment and storage mediums, the described method includes: obtaining the operational order of user, according to operational order, determine dispatch command corresponding with operational order, it calls target corresponding with the dispatch command to execute hardware, keystone is carried out to the projected image;It include at least one of display engine, graphics processor GPU since target executes hardware, reasonably combined scheduling GPU and display engine are removed by software strategy, give full play to the advantage of GPU and display engine respectively in keystone ability, and then it can be according to different execution hardware, realize trapezoidal correction, even if being also able to achieve keystone when resolution ratio is excessive and keystone working well.

Description

Trapezoidal distortion correction method, device, computer equipment and storage medium
Technical field
This application involves technical field of image processing, more particularly to a kind of trapezoidal distortion correction method, device, computer equipment And storage medium.
Background technique
With the fast development of multimedia technology, the application development of projector is also improved day by day, especially large screen projection The human oriented design of machine and featured function etc. are liked by people.In routine use, the position of projector as far as possible will be with throwing Shadow screen just can guarantee drop shadow effect at right angle, if not can guarantee the vertical of the two, picture will generate trapezoidal.
It is adjusted by using trapezoid correction function, guarantees picture into the rectangle of standard, keystone is generally divided into level Keystone and vertical keystone correction.Traditional trapezoidal correction is usually to use graphics processor (Graphics Processing Unit, GPU) realize calibration function.
However, over-burden by GPU when resolution ratio is excessive, GPU can be made to realize the performance of trapezoid correction function with not On, and then lead to keystone less effective or cannot achieve keystone.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of trapezoidal distortion correction method, device, computer equipment and Storage medium.
In a first aspect, the embodiment of the present application provides a kind of trapezoidal distortion correction method, this method comprises:
Obtain the operational order of user;Operational order, which is used to indicate, carries out keystone to projected image;
It is instructed according to aforesaid operations, determines dispatch command corresponding with operational order;The dispatch command includes vertical school At least one of positive order, level correction instruction;
It calls target corresponding with dispatch command to execute hardware, keystone is carried out to projected image;Target executes hardware Including at least one of display engine, graphics processor GPU.
Corresponding with the dispatch command target of above-mentioned calling executes hardware in one of the embodiments, to projected image into Row keystone, comprising: if dispatch command includes vertical correction instruction, call display engine, projected image is carried out vertical Keystone;If dispatch command includes level correction instruction, GPU is called, horizontal keystone correction is carried out to projected image;If adjusting Degree instruction includes that level correction instruction and vertical correction instruct, then calls GPU and display engine, carry out trapezoidal school to projected image Just.
Above-mentioned calling GPU and display engine in one of the embodiments, carry out keystone to projected image, comprising: Display engine is called, vertical keystone correction is carried out to projected image, obtains the first correcting orthographic projection image;GPU is called, to the first school Orthographic view carries out horizontal keystone correction.
Above-mentioned calling GPU in one of the embodiments, carries out horizontal keystone correction, packet to the first correcting orthographic projection image It includes: obtaining the status information of display environment;Status information includes bandwidth and current resolution;If status information meets default item Part then calls GPU, carries out horizontal keystone correction to the first correcting orthographic projection image.
Preset condition includes the following conditions in one of the embodiments: band is wider than pre-set bandwidths threshold value;Current resolution Rate is less than default resolution threshold.
The display engine is called in one of the embodiments, and vertical keystone correction is carried out to projected image, obtains the One correcting orthographic projection image, comprising: call display engine, vertical keystone correction is carried out to projected image, obtains write-back;Creation It shows picture, and grabs write-back;According to write-back, filling display picture obtains the first correcting orthographic projection image.
The above method in one of the embodiments, further include: the perspective view after showing keystone on a projection plane Picture.
Second aspect, the embodiment of the present application provide a kind of keystone device, which includes:
Module is obtained, for obtaining the operational order of user;The operational order, which is used to indicate, carries out ladder to projected image Shape correction;
Determining module, for determining dispatch command corresponding with the operational order according to the operational order;The tune Degree instruction includes at least one of vertical correction instruction, level correction instruction;
Correction module carries out the projected image for calling target corresponding with the dispatch command to execute hardware Keystone;It includes at least one of display engine, graphics processor GPU that the target, which executes hardware,.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory and processor, the memory It is stored with computer program, the processor realizes side described in any embodiment in first aspect when executing the computer program The step of method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer program, The step of method described in any embodiment in first aspect is realized when the computer program is executed by processor.
Trapezoidal distortion correction method, device, computer equipment and the storage medium provided in the embodiment of the present application, obtains user's Operational order determines dispatch command corresponding with operational order according to operational order;Dispatch command include vertical correction instruction, At least one of level correction instruction, then calls target corresponding with dispatch command to execute hardware, carries out to projected image Keystone includes at least one of display engine, graphics processor GPU since target executes hardware, passes through software strategy Reasonably combined scheduling GPU and display engine are removed, the advantage of GPU and display engine respectively in keystone ability is given full play to, into And trapezoidal correction can be realized according to different execution hardware, even if when resolution ratio is excessive, be also able to achieve keystone and Keystone works well.
Detailed description of the invention
Fig. 1 is the applied environment figure of trapezoidal distortion correction method in one embodiment;
Fig. 2 is the flow diagram of trapezoidal distortion correction method in one embodiment;
Fig. 3 is the flow diagram of the implementation of S203 in Fig. 2 embodiment;
Fig. 4 is the flow diagram of the implementation of S303 in Fig. 3 embodiment;
Fig. 5 is the flow diagram of the implementation of S401 in Fig. 4 embodiment;
Fig. 6 is the flow diagram of the implementation of S402 in Fig. 4 embodiment;
Fig. 7 is the structural block diagram of keystone device in one embodiment;
Fig. 8 is the structural block diagram of keystone device in another embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Trapezoidal distortion correction method provided by the embodiments of the present application can be applied in application environment as shown in Figure 1.Wherein, Embedded system module 101 can control projection device 102 by modes such as bluetooth, infrared or keys, projection device 102 from Embedded system module 101 obtains data.Wherein, embedded system module 101 is that on piece soc is integrated in projection device 102 Face is the core of projection device 102;Projection device 102 can be projector etc..
It is described in detail below with technical solution of the specifically embodiment to the application.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in certain embodiments.
Fig. 2 is the flow chart of trapezoidal distortion correction method in one embodiment, and the executing subject of this method is that the projection in Fig. 1 is set Standby 102, what is involved is the processes of keystone for this method.As shown in Fig. 2, this method specifically includes the following steps:
S201 obtains the operational order of user;The operational order, which is used to indicate, carries out keystone to projected image.
Wherein, operational order refers to the correction initiation command that user initiates computer equipment, it, which can be, passes through user Correcting button, or the instruction issued by user speech operational order are clicked at the business operation interface of projector.Specifically, User can select different keystone types, and then computer equipment is in the operation for receiving user by operational order After instruction, keystone type corresponding with operational order is determined, and then keystone is carried out to projected image.Illustratively, It is that level is trapezoidal for projected image, user can select level correction, and then computer in the correction mode of computer equipment The level correction operational order of equipment acquisition user.
S202 is instructed according to aforesaid operations, determines dispatch command corresponding with operational order;Dispatch command includes vertical school At least one of positive order, level correction instruction.
Wherein, dispatch command refers to according to the corresponding different coordination strategies of different operation instruction, for coordinating multiple hardware Work.Illustratively, if the operational order of user is selected as vertical keystone correction, corresponding dispatch command refers to for vertical correction It enables;If the operational order of user is selected as horizontal keystone correction, corresponding dispatch command is level correction instruction;If user's Operational order is selected as the equal keystone of horizontal vertical, then corresponding dispatch command includes that level correction instruction and vertical correction refer to It enables.
S203 calls target corresponding with above-mentioned dispatch command to execute hardware, carries out keystone to projected image;Target Executing hardware includes at least one of display engine, graphics processor GPU.
Wherein, display engine may include one or more, and display engine can be on piece SOC, it should be noted that by The complexity and higher cost of level correction algorithm are realized in display engine, are difficult to realize horizontal trapezoidal correction, it temporarily can only be real Existing vertical correction function;GPU is the microprocessor for specially doing image procossing, and horizontal trapezoidal correction may be implemented and vertical trapezium is rectified Just, when but excessively high for image resolution requirement, while trapezoidal correction and high-resolution being realized, will lead to GPU performance and does not catch up with.
Specifically, target executes hardware and is used for through built-in correcting algorithm, for example, difference arithmetic, to projected image into Row keystone.Illustratively, if dispatch command includes vertical correction instruction, it includes that display is drawn that corresponding target, which executes hardware, It holds up;If dispatch command includes level correction instruction, it includes GPU that corresponding target, which executes hardware,.
In above-described embodiment, the operational order of user is obtained, according to operational order, determines scheduling corresponding with operational order Instruction calls target corresponding with the dispatch command to execute hardware, carries out keystone to the projected image;Due to target Executing hardware includes at least one of display engine, graphics processor GPU, removes reasonably combined scheduling GPU by software strategy And display engine, the advantage of GPU and display engine respectively in keystone ability is given full play to, and then can hold according to different Row hardware realizes trapezoidal correction, even if being also able to achieve keystone when resolution ratio is excessive and keystone working well.
In one of the embodiments, as shown in figure 3, S203 " calls target corresponding with the dispatch command to execute hard Part carries out keystone to the projected image ", comprising:
S301 calls display engine if dispatch command includes vertical correction instruction, carries out vertical trapezium to projected image Correction.
Wherein, if dispatch command includes vertical correction instruction, a display engine need to be only called, specifically, if Dispatch command includes vertical correction instruction, then calls display engine hardware, is corrected and is calculated by the preset vertical built in display engine Method carries out vertical keystone correction to projected image, and the image after vertical keystone correction is sent to display screen and is shown.
S302 calls GPU if dispatch command includes level correction instruction, carries out horizontal keystone correction to projected image.
Wherein, if dispatch command includes vertical correction instruction, GPU need to be only called, specifically, if dispatch command packet Level correction instruction is included, then calls GPU, by the preset level correcting algorithm built in GPU, projected image is carried out horizontal trapezoidal Correction.
S303 calls GPU and display engine if dispatch command includes level correction instruction and vertical correction instruction, right Projected image carries out keystone.
Wherein, it if dispatch command includes level correction instruction and vertical correction instruction, needs that GPU and display is called to draw It holds up, wherein display engine includes at least two, such as the first display engine and the second display engine.Illustratively, for should Vertically the client of horizontal keystone correction demand is written back in memory after being corrected by the first display engine vertical trapezium again, then Horizontal keystone correction is carried out by GPU, the second display engine is finally given and shows.
In above-described embodiment, if dispatch command includes vertical correction instruction, display engine is called, to the projected image Carry out vertical keystone correction;If dispatch command includes level correction instruction, GPU is called, projected image is carried out horizontal trapezoidal Correction;If dispatch command includes level correction instruction and vertical correction instruction, GPU and display engine are called, to projected image Keystone is carried out, the advantage of GPU and display engine respectively in keystone ability is given full play to, to different keystone classes Type demand can be achieved keystone and keystone work well.
As an optional implementation manner, as shown in figure 4, S303 " calls the GPU and the display engine, to institute State projected image and carry out keystone ", comprising:
S401 calls the display engine, carries out vertical keystone correction to the projected image, obtains the first correction projection Image.
Specifically, the first display engine can be called, it is right by the vertical keystone correction algorithm built in the first display engine The projected image carries out vertical keystone correction, obtains the first correcting orthographic projection image.As an optional implementation manner, as schemed Shown in 5, S401 " calls the display engine, carries out vertical keystone correction to the projected image, obtain the first correction perspective view Picture " includes:
S501 calls the display engine, carries out vertical keystone correction to the projected image, obtains write-back.
Specifically, when surfaceflinger send lower figure layer to HWC, the first display engine is used to synthesize figure layer, in figure layer After synthesis, projected image is carried out by the preset vertical correction algorithm built in the first display engine using the first display engine Vertical keystone correction, the write-back after obtaining vertical correction, and write-back is stored in buffer area.
S502, creation display picture, and grab the write-back.
Wherein, HWC is responsible for creating a display picture, and passes through the write-back module in HWC for write-back from buffer area Crawl is returned.
S503 fills the display picture according to the write-back, obtains first correcting orthographic projection image.
Specifically, write-back is filled on display picture, forms the first correcting orthographic projection image, and then obtain the first school Orthographic view.In above-described embodiment, by calling display engine, vertical keystone correction is carried out to projected image, obtains write-back Data, then creation shows picture, and grabs write-back, and then according to write-back, filling display picture obtains the first school Orthographic view, realizes the vertical correction of projected image, and then alleviates the correction work of subsequent GPU.
S402 calls the GPU, carries out horizontal keystone correction to first correcting orthographic projection image.
Specifically, include horizontal keystone correction and vertical keystone correction for dispatch command, then draw in the display of calling first It holds up after carrying out vertical keystone correction to projected image, by calling GPU, horizontal trapezoidal school is carried out to the first correcting orthographic projection image Just, and then by the second display engine, the projected image after horizontal keystone correction is sent to display screen and is shown.
In above-described embodiment, by calling display engine, vertical keystone correction is carried out to projected image, obtains the first correction Then projected image calls GPU, carry out horizontal keystone correction to the first correcting orthographic projection image, and then by calling display engine And GPU, it realizes horizontal and vertical keystone, overcomes GPU and realize the problem of performance of trapezoid correction function is not caught up with.
In one of the embodiments, as an optional implementation manner, S402 " calls the GPU, to described first Correcting orthographic projection image carries out horizontal keystone correction ", comprising:
S601 obtains the status information of display environment;The status information includes bandwidth and current resolution.
Wherein it is possible to analyze projection device data, the information such as bandwidth and current resolution are obtained, and then according to shape State information judges what state present display environment is in, if is suitble to that GPU is allowed to go to handle, if appropriate just by the first correction Projected image by surfaceflinger be issued to GPU complete level correction, be eventually transferred to the second display engine show it is defeated Out.
S602 calls the GPU if the status information meets preset condition, to first correcting orthographic projection image Carry out horizontal keystone correction.
Optionally, the preset condition includes the following conditions: the band is wider than pre-set bandwidths threshold value;The current resolution Rate is less than default resolution threshold.Wherein, default resolution threshold can be 720P, and pre-set bandwidths threshold value is 5M, presets and differentiates Rate threshold value and pre-set bandwidths threshold value can be adjusted according to actual needs.Illustratively, if default resolution threshold can be When 720P and pre-set bandwidths threshold value are 5M, when resolution ratio is less than or equal to 720P, show that the horizontal trapezoidal school of GPU progress can be called Orthofunction;When resolution ratio is 1080p, show that GPU performance is not caught up with, it at this time cannot the horizontal trapezoidal school of that calling GPU progress Just.
It should be noted that if status information is unsatisfactory for preset condition, it is that will not call the horizontal trapezoidal correction function of GPU realization Can, illustratively, includes that level correction instruction and vertical correction instruct for dispatch command, then calls GPU and display engine, During carrying out keystone to projected image, after display engine vertical keystone correction obtains the first correcting orthographic projection image, if Status information is unsatisfactory for preset condition, and GPU will not carry out horizontal keystone correction to the first correcting orthographic projection image, pass through vertical trapezium The first correcting orthographic projection image that correction obtains is the image after correction of a final proof.
In above-described embodiment, by obtaining the status information of display environment, status information includes bandwidth and current resolution, If status information meets preset condition, GPU is called, horizontal keystone correction is carried out to the first correcting orthographic projection image, and then avoid The problem of GPU performance also carries out keystone by force, resolution ratio is caused not catch up with when not reaching requirement.
It is provided in one of the embodiments, in the video for playing a 1080p60,1 video figure layer and 2 UI Figure layer realizes the correlation data of broadcasting and keystone by display engine, GPU and display engine+GPU mode, specifically,
Pass through display engine mode:
Bandwidth consumption: 1920*1080* (4*2+1.5) * 60/1024/1024=1127MB/s;
Pixel filling 435Mpixel/s;
Pass through display engine+GPU mode:
Bandwidth consumption: (4*2+1.5*1*0.7+1.5*2+1.5*2) 1920*1080*60/1024/1024=1785MB/s;
Pixel filling: 435Mpixel/s
GPU mode:
Bandwidth consumption: (4*2+1.5+1.5*4) * 1920*1080*60/1024/1024=1839MB/s
Pixel filling: 746Mpixel/s
Correlation data through the foregoing embodiment is as it can be seen that through the invention under the premise of being able to achieve function, in addition to saving Cost meets under GPU performance, and power consumption and bandwidth are also saved very much, will especially save in 4K or more specification more.
It should be understood that although each step in Fig. 2-6 flow chart is successively shown according to the instruction of arrow, this A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least one in Fig. 2-6 It step by step may include that perhaps these sub-steps of multiple stages or stage are held in synchronization to multiple sub-steps Row is completed, but can be executed at different times, the execution sequence in these sub-steps or stage be also not necessarily successively into Row, but can be held in turn or alternately at least part of the sub-step or stage of other steps or other steps Row.
In one embodiment, as shown in fig. 7, providing a kind of keystone device, comprising: obtain module 11, determine Module 12 and correction module 13, in which:
Module 11 is obtained, for obtaining the operational order of user;The operational order, which is used to indicate, carries out projected image Keystone;
Determining module 12, for determining dispatch command corresponding with the operational order according to the operational order;It is described Dispatch command includes at least one of vertical correction instruction, level correction instruction;
Correction module 13, for calling corresponding with dispatch command target execution hardware, to the projected image into Row keystone;It includes at least one of display engine, graphics processor GPU that the target, which executes hardware,.
In one of the embodiments, as shown in figure 8, on the basis of shown in Fig. 7, correction module 13 includes:
First correction unit 130 calls the display to draw if including vertical correction instruction for the dispatch command It holds up, vertical keystone correction is carried out to the projected image;
Second correction unit 131 calls the GPU, to institute if including level correction instruction for the dispatch command It states projected image and carries out horizontal keystone correction;
Third corrects unit 132, if including level correction instruction and vertical correction instruction for the dispatch command, adjusts With the GPU and the display engine, keystone is carried out to the projected image.
Third correction unit 132 is specifically used for calling the display engine in one of the embodiments, to the projection Image carries out vertical keystone correction, obtains the first correcting orthographic projection image;The GPU is called, to first correcting orthographic projection image Carry out horizontal keystone correction.
Third correction unit 132 is specifically used for obtaining the status information of display environment in one of the embodiments,;It is described Status information includes at least one of bandwidth and current resolution;If the status information meets preset condition, institute is called GPU is stated, horizontal keystone correction is carried out to first correcting orthographic projection image.
The preset condition includes at least one of the following conditions in one of the embodiments: the band is wider than Pre-set bandwidths threshold value;The current resolution is less than default resolution threshold.
Third correction unit 132 is specifically used for calling the display engine in one of the embodiments, to the projection Image carries out vertical keystone correction, obtains write-back;Creation display picture, and grab the write-back;According to described time Data are write, the display picture is filled, obtain first correcting orthographic projection image.
Described device further includes display module in one of the embodiments, for showing trapezoidal school on a projection plane Projected image after just.
Specific about keystone device limits the restriction that may refer to above for trapezoidal distortion correction method, herein not It repeats again.Modules in above-mentioned keystone device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 9.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of trapezoidal distortion correction method.The display screen of the computer equipment can be LCD display, the input dress of the computer equipment Setting can key, trace ball etc. to be arranged on computer equipment shell.
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Obtain the operational order of user;The operational order, which is used to indicate, carries out keystone to projected image;
According to the operational order, dispatch command corresponding with the operational order is determined;The dispatch command includes hanging down At least one of straight correction instruction, level correction instruction;
It calls target corresponding with the dispatch command to execute hardware, keystone is carried out to the projected image;It is described It includes at least one of display engine, graphics processor GPU that target, which executes hardware,.
In one embodiment, if processor also performs the steps of the dispatch command packet when executing computer program Vertical correction instruction is included, then calls the display engine, vertical keystone correction is carried out to the projected image;If the scheduling refers to Enabling includes that level correction instructs, then calls the GPU, carry out horizontal keystone correction to the projected image;If the scheduling refers to Enabling includes that level correction instruction and vertical correction instruct, then calls the GPU and the display engine, to the projected image into Row keystone.
In one embodiment, it is also performed the steps of when processor executes computer program and calls the display engine, Vertical keystone correction is carried out to the projected image, obtains the first correcting orthographic projection image;The GPU is called, to first school Orthographic view carries out horizontal keystone correction.
In one embodiment, the shape for obtaining display environment is also performed the steps of when processor executes computer program State information;The status information includes bandwidth and current resolution;If the status information meets preset condition, call described in GPU carries out horizontal keystone correction to first correcting orthographic projection image.
In one embodiment, also realize when processor executes computer program: the preset condition includes the following conditions: The band is wider than pre-set bandwidths threshold value;The current resolution is less than default resolution threshold.
In one embodiment, it is also performed the steps of when processor executes computer program and calls the display engine, Vertical keystone correction is carried out to the projected image, obtains write-back;Creation display picture, and grab the write-back; According to the write-back, the display picture is filled, obtains first correcting orthographic projection image.
In one embodiment, it also performs the steps of when processor executes computer program and shows on a projection plane Projected image after keystone.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain the operational order of user;The operational order, which is used to indicate, carries out keystone to projected image;
According to the operational order, dispatch command corresponding with the operational order is determined;The dispatch command includes hanging down At least one of straight correction instruction, level correction instruction;
It calls target corresponding with the dispatch command to execute hardware, keystone is carried out to the projected image;It is described It includes at least one of display engine, graphics processor GPU that target, which executes hardware,.
In one embodiment, if also performing the steps of the dispatch command when computer program is executed by processor It is instructed including vertical correction, then calls the display engine, vertical keystone correction is carried out to the projected image;If the scheduling Instruction includes that level correction instructs, then calls the GPU, carries out horizontal keystone correction to the projected image;If the scheduling Instruction includes that level correction instruction and vertical correction instruct, then the GPU and the display engine is called, to the projected image Carry out keystone.
In one embodiment, also performing the steps of when computer program is executed by processor calls the display to draw It holds up, vertical keystone correction is carried out to the projected image, obtains the first correcting orthographic projection image;The GPU is called, to described first Correcting orthographic projection image carries out horizontal keystone correction.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains display environment Status information;The status information includes bandwidth and current resolution;If the status information meets preset condition, institute is called GPU is stated, horizontal keystone correction is carried out to first correcting orthographic projection image.
In one embodiment, also realize when computer program is executed by processor: the preset condition includes following item Part: the band is wider than pre-set bandwidths threshold value;The current resolution is less than default resolution threshold.
In one embodiment, also performing the steps of when computer program is executed by processor calls the display to draw It holds up, vertical keystone correction is carried out to the projected image, obtains write-back;Creation display picture, and grab the write-back number According to;According to the write-back, the display picture is filled, obtains first correcting orthographic projection image.
In one embodiment, it also performs the steps of when computer program is executed by processor and shows on a projection plane Projected image after showing keystone.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of trapezoidal distortion correction method, which is characterized in that the described method includes:
Obtain the operational order of user;The operational order, which is used to indicate, carries out keystone to projected image;
According to the operational order, dispatch command corresponding with the operational order is determined;The dispatch command includes vertical school At least one of positive order, level correction instruction;
It calls target corresponding with the dispatch command to execute hardware, keystone is carried out to the projected image;The target Executing hardware includes at least one of display engine, graphics processor GPU.
2. the method according to claim 1, wherein described call target corresponding with the dispatch command to execute Hardware carries out keystone to the projected image, comprising:
If the dispatch command includes vertical correction instruction, the display engine is called, the projected image is carried out vertical Keystone;
If the dispatch command includes level correction instruction, the GPU is called, horizontal trapezoidal school is carried out to the projected image Just;
If the dispatch command includes level correction instruction and vertical correction instruction, the GPU and the display engine are called, Keystone is carried out to the projected image.
3. according to the method described in claim 2, it is characterized in that, the calling GPU and the display engine, to described Projected image carries out keystone, comprising:
The display engine is called, vertical keystone correction is carried out to the projected image, obtains the first correcting orthographic projection image;
The GPU is called, horizontal keystone correction is carried out to first correcting orthographic projection image.
4. according to the method described in claim 3, it is characterized in that, described call the GPU, to the first correction perspective view As carrying out horizontal keystone correction, comprising:
Obtain the status information of display environment;The status information includes bandwidth and current resolution;
If the status information meets preset condition, the GPU is called, horizontal ladder is carried out to first correcting orthographic projection image Shape correction.
5. according to the method described in claim 4, it is characterized in that, the preset condition includes the following conditions:
The band is wider than pre-set bandwidths threshold value;
The current resolution is less than default resolution threshold.
6. according to the described in any item methods of claim 3-5, which is characterized in that it is described to call the display engine, to described Projected image carries out vertical keystone correction, obtains the first correcting orthographic projection image, comprising:
The display engine is called, vertical keystone correction is carried out to the projected image, obtains write-back;
Creation display picture, and grab the write-back;
According to the write-back, the display picture is filled, obtains first correcting orthographic projection image.
7. method according to claim 1-5, which is characterized in that the method also includes:
Projected image after showing keystone on a projection plane.
8. a kind of keystone device, which is characterized in that described device includes:
Module is obtained, for obtaining the operational order of user;The operational order, which is used to indicate, carries out trapezoidal school to projected image Just;
Determining module, for determining dispatch command corresponding with the operational order according to the operational order;The scheduling refers to Enable includes at least one of vertical correction instruction, level correction instruction;
Correction module carries out the projected image trapezoidal for calling target corresponding with the dispatch command to execute hardware Correction;It includes at least one of display engine, graphics processor GPU that the target, which executes hardware,.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910317590.3A 2019-04-19 2019-04-19 Trapezoidal correction method and device, computer equipment and storage medium Active CN110049299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910317590.3A CN110049299B (en) 2019-04-19 2019-04-19 Trapezoidal correction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910317590.3A CN110049299B (en) 2019-04-19 2019-04-19 Trapezoidal correction method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110049299A true CN110049299A (en) 2019-07-23
CN110049299B CN110049299B (en) 2021-04-09

Family

ID=67278032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910317590.3A Active CN110049299B (en) 2019-04-19 2019-04-19 Trapezoidal correction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110049299B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845091A (en) * 2021-02-01 2022-08-02 扬智科技股份有限公司 Projection device and trapezoidal correction method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090091615A1 (en) * 2007-10-05 2009-04-09 Kar-Han Tan Optimization Strategies for GPU View Projection Matrix Implementation
CN105915830A (en) * 2015-11-02 2016-08-31 乐视致新电子科技(天津)有限公司 Adjusting method for projector light engine display parameters and adjusting device thereof
CN107454372A (en) * 2016-06-01 2017-12-08 中兴通讯股份有限公司 Method for correcting image, device and projecting apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090091615A1 (en) * 2007-10-05 2009-04-09 Kar-Han Tan Optimization Strategies for GPU View Projection Matrix Implementation
CN105915830A (en) * 2015-11-02 2016-08-31 乐视致新电子科技(天津)有限公司 Adjusting method for projector light engine display parameters and adjusting device thereof
CN107454372A (en) * 2016-06-01 2017-12-08 中兴通讯股份有限公司 Method for correcting image, device and projecting apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845091A (en) * 2021-02-01 2022-08-02 扬智科技股份有限公司 Projection device and trapezoidal correction method thereof
CN114845091B (en) * 2021-02-01 2023-11-10 扬智科技股份有限公司 Projection device and trapezoid correction method thereof

Also Published As

Publication number Publication date
CN110049299B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US10021302B2 (en) Video recording method and device
US10136054B2 (en) Image processing device for compositing panoramic images, image processing program and recording medium
US10978027B2 (en) Electronic display partial image frame update systems and methods
EP4006827A1 (en) Anti-shake method and apparatus for video image, electronic device, and storage medium
US20120169900A1 (en) Image processing device and image processing method
CN108509272A (en) GPU video memory textures are copied to the method, apparatus and electronic equipment of Installed System Memory
US9064349B2 (en) Computer-implemented image composition method and apparatus using the same
CN113691737B (en) Video shooting method and device and storage medium
CN109525896A (en) Comment on answering method, device, equipment and storage medium
CN110049299A (en) Trapezoidal distortion correction method, device, computer equipment and storage medium
CN109525880A (en) Synthetic method, device, equipment and the storage medium of video data
CN109413352B (en) Video data processing method, device, equipment and storage medium
WO2020037754A1 (en) Method and device for enhancing image quality of video
JP4818854B2 (en) Image display device, electronic device, display control device, and display control method
CN108184054B (en) Preprocessing method and preprocessing device for images shot by intelligent terminal
CN109743635A (en) Comment on answering method, device, equipment and storage medium
CN115361502A (en) Shooting method, shooting device, electronic equipment and storage medium
CN108320315A (en) View switching method, device, computer equipment and storage medium
JP2006145758A (en) On-screen display device
US9270900B2 (en) Movie processing apparatus and control method therefor
CN112329384A (en) Method, device and equipment for realizing character shadow effect and storage medium
US10306140B2 (en) Motion adaptive image slice selection
CN109788338A (en) Monitoring method, device, computer equipment and the storage medium of video playing
JP5687370B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
CN110536076A (en) A kind of method and terminal that Unity panoramic video is recorded

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