CN115423683B - Method and device for locally amplifying column data package picture by using drawing board and display - Google Patents

Method and device for locally amplifying column data package picture by using drawing board and display Download PDF

Info

Publication number
CN115423683B
CN115423683B CN202211010267.XA CN202211010267A CN115423683B CN 115423683 B CN115423683 B CN 115423683B CN 202211010267 A CN202211010267 A CN 202211010267A CN 115423683 B CN115423683 B CN 115423683B
Authority
CN
China
Prior art keywords
picture
column
drawing board
image data
amplifying
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
CN202211010267.XA
Other languages
Chinese (zh)
Other versions
CN115423683A (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.)
Chengdu Zhiyuanhui Information Technology Co Ltd
Original Assignee
Chengdu Zhiyuanhui Information 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 Chengdu Zhiyuanhui Information Technology Co Ltd filed Critical Chengdu Zhiyuanhui Information Technology Co Ltd
Priority to CN202211010267.XA priority Critical patent/CN115423683B/en
Publication of CN115423683A publication Critical patent/CN115423683A/en
Application granted granted Critical
Publication of CN115423683B publication Critical patent/CN115423683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4023Decimation- or insertion-based scaling, e.g. pixel or line decimation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Abstract

The invention discloses a method and a device for locally amplifying a column data package picture by using a drawing board, and a display, wherein the method comprises the following steps of: detecting an amplifying request of a user in a screen S, and obtaining coordinates of a request amplifying point A in a column picture; setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius; extracting image data in an image extraction range F from a drawing board g, and marking the image data as image data F1; amplifying the image data f1 according to the amplification factor to obtain amplified image data f2; extracting pixel values of the image data f2, and drawing the pixel values of the image data f2 in the enlarged drawing board g; and rendering the enlarged drawing board for display. The invention solves the problem that the column data display is difficult to enlarge. Cross-column magnification may be achieved and when a dot in an optional 1 column picture is taken as magnification point a, magnification may be performed across the content to the adjacent column.

Description

Method and device for locally amplifying column data package picture by using drawing board and display
Technical Field
The invention relates to the technical field of security inspection and graph judgment, in particular to a method and a device for locally amplifying a column data package picture by using a drawing board and a display.
Background
In the centralized graph judging scene of security check, the whole system comprises: the method comprises the steps of scanning a package to form an X-ray machine of a package X-ray picture, obtaining an intelligent picture recognition box of a contraband identification result in the package X-ray picture, and centralizing a client of a picture judging workstation.
Currently, a client of a centralized graph judging workstation displays a package X-ray image scanned and cut by an X-ray machine on a screen for a graph judging person to further judge and mark contraband in the package X-ray image of the package. The screen obtains picture information each time that is a parcel X-ray picture corresponding to the complete parcel. Such a method creates the following problems: 1. in order to save network bandwidth, URL transmission is adopted in the drawing of the picture, and network loading consumption is caused during drawing, so that delay is caused; 2. the picture display mode is a static tiling mode, so that fatigue is easy to occur when a picture judgment person judges the picture for a long time, and risks such as untimely picture judgment, missed judgment, misjudgment and the like are caused; 3. the original image judging person is a security check value machine, and the image judging person can adapt to a new image judging mode after the post adjustment due to the fact that the scanning imaging video (left-to-right or right-to-left dynamic imaging) of the X-ray machine is observed frequently before, and the training cost is high.
In order to solve the problems, an imaging method based on column data is created, the method is that after a parcel X-ray picture is cut by an intelligent picture identification box and contraband is identified, a continuous video image is cut into a parcel picture, the parcel picture is cut into column data, the column data is sent to a client for picture judgment, the client is imaged, and for the client, all column data corresponding to the parcel picture is imaged on a screen S in sequence, so that the effect of simulating column-by-column scanning imaging is achieved.
If the above-mentioned column data imaging technology is adopted, when a requirement for magnifying viewing, such as a certain prohibited article, needs to be magnified for determining, a magnifying function is generally required to be configured at the client. Generally, for a complete package picture, since the object is 1 picture, the existing technical means of pointing, extracting, amplifying and displaying can be directly used. However, in the column data imaging technology, since a complete package picture is divided into a plurality of column data, and one column data is converted into one column picture for imaging display, when we select an amplifying reference point in any one column picture, then the content of the adjacent column picture cannot be amplified by adopting the technologies of extraction, amplification and display, which results in the loss of an amplifying area, if the adjacent content is to be amplified, a specific algorithm needs to be performed on the adjacent column picture for calculation, and the burden of system calculation overhead is large. Meanwhile, since the column data imaging technology is the simulated scanning mode, all column pictures can move column by column, so that the amplifying datum point is not well locked, the movement is required to be stopped, and the movement is recovered after the amplifying or the cancel of the amplifying.
In view of the above technical drawbacks, the present invention needs to find a magnification method facing the column data imaging technology.
Disclosure of Invention
The invention aims to provide a method and a device for locally magnifying a column data package picture by using a drawing board and a display. In order to solve the problems, the invention adopts a dynamic simulated scanning imaging technology by using column data. The technology is applied to a client of a centralized graph judging workstation, when a dynamic simulated scanning imaging technology is carried out by using column data, pixel values of column pictures of a package picture are recorded synchronously in sequence by using a drawing board technology so as to be called when being amplified, and thus an amplified region crossing multiple columns can be obtained for amplified display.
In one aspect, a method for locally magnifying a column data wrapped picture with a drawing board includes the steps of:
D1. detecting an amplifying request of a user in a screen S, and obtaining coordinates of a request amplifying point A in a column picture;
D2. setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
D3. extracting image data in an image extraction range F from a drawing board g, and marking the image data as image data F1;
D4. amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
D5. extracting pixel values of the image data f2, and drawing the pixel values of the image data f2 in the enlarged drawing board g;
D6. and rendering the enlarged drawing board for display.
Further, the creation mode of the column picture is as follows: and acquiring a column data byte group corresponding to one package picture according to the sequence, converting the column data byte group into column pictures, and rendering and displaying the column pictures at the edge of the screen S according to the sequence.
Further, the creation mode of the drawing board g is as follows: acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; and judging whether the current picture is the first picture of a package picture, if so, creating a drawing board g in a hidden state.
Further, according to the order of obtaining the column data tuples, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data tuple of a wrapped picture.
Further, the R is a system advance configuration parameter, and the magnification factor is a system advance configuration parameter or a user's magnification request.
Further, the drawing board g has the same height as the column pictures.
On the other hand, wrap up the device that the picture was enlarged to the column data with the drawing board, its characterized in that:
a screen S;
a memory;
one or more processors; a kind of electronic device with high-pressure air-conditioning system
One or more modules residing in memory and configured to be executed by the one or more processors, the one or more modules comprising:
a module for detecting the user' S magnification request in the screen S and obtaining the coordinates of the magnification point A in the column picture;
a module for setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
a module for extracting image data in the image extraction range F from the drawing board g and marking the image data as image data F1;
amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
a module for extracting the pixel value of the image data f2 and drawing the pixel value of the image data f2 in the enlarged drawing board g;
and rendering the enlarged drawing board for display.
Further, the one or more modules further comprise:
a module for sequentially acquiring column data byte groups corresponding to one package picture, converting the column data byte groups into column pictures, and rendering and displaying the column pictures at the edge of the screen S in sequence;
acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; and when the front column picture is the first column picture of the package picture, creating a drawing board g in a hidden state.
Further, according to the order of obtaining the column data tuples, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data tuple of a wrapped picture.
On the other hand, the display which is used for locally amplifying the column data package picture by the drawing board at least comprises the following picture states;
first picture state: rendering and displaying column pictures of one package picture at the edge of the screen S in sequence;
second picture state: after the user triggers an enlargement request on the column picture in the screen S, an enlarged drawing board g appears in the screen S.
The design principle of the invention is as follows: when the screen S imports the column data, the column data (binary) is converted into the column pictures and the column pictures are rendered and displayed, in the process, the column pictures of 1 package picture are sequentially drawn into 1 drawing board g, and at the moment, the whole drawing board is in a hidden state and cannot be seen by a user. Only dynamic one-by-one column pictures can be seen in order into the screen S. When the user triggers the zoom-in request, the system captures a zoom-in point A of the user on the screen S, the zoom-in point A is mapped on the column picture, and the coordinate of the zoom-in point in the column picture is obtained, at this time, an image extraction range F is created by taking the coordinate as a reference, and as the pixel of the column picture is 1 to be engraved into the drawing board g. The coordinates of each pixel point are thus mutually corresponding in the drawing board g and the column picture. Therefore, the image extraction range F can be directly mapped to the drawing board g, the image data F1 is extracted from the drawing board g, and the image data F1 is amplified to obtain the image data F2, and at this time, the amplified data F2 needs to be reintroduced into one of the amplified drawing boards g for display by the user. The amplifying drawing board g can move freely and is not limited by the amplifying point A, because the coordinate position is locked by the system when the amplifying point A is marked, the subsequent extraction, amplifying and displaying are not dependent on column pictures, but are dependent on the drawing board g, and the drawing board g can simultaneously contain the entered image data which spans multiple columns (the non-entered column pictures cannot be obtained), so that the invention can realize the cross-column amplifying and the locking amplifying without being additionally provided with a complex operation method due to the movement of the column pictures.
The beneficial effects of the invention are as follows:
1. the problem that the column data display is difficult to enlarge is solved.
2. In the amplifying process, column data normally enter, column pictures still enter in sequence, and the column pictures do not need to stop entering.
3. Cross-column magnification may be achieved and when a dot in an optional 1 column picture is taken as magnification point a, magnification may be performed across the content to the adjacent column.
4. The magnification window, i.e., the magnification drawing board g, is free to move without being constrained by the position of the magnification point a.
Drawings
Fig. 1 is a prior art image of all wrapped pictures, all using column-by-column pictures.
Fig. 2 is a schematic diagram of a processing flow of current wrapping pictures by using column pictures to image column by column, and previous wrapping pictures by using drawing board pictures.
Fig. 3 is an imaging schematic diagram of the present invention when receiving a first picture.
Fig. 4 is an imaging schematic diagram of the present invention when receiving a tail picture.
Fig. 5 is an imaging schematic of the present invention when looking down on a screen.
Fig. 6 is a schematic diagram of a parcel picture.
Fig. 7 is a schematic diagram of a drawing board corresponding to a package picture after the pixel values of the contraband identification frame are superimposed.
Fig. 8 is a flow chart of a method for locally magnifying a column data package picture with a drawing board.
Fig. 9 is an effect drawing of partial enlargement of a column data wrap picture with a drawing board.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but embodiments of the present invention are not limited thereto.
Example 1
As shown in fig. 8 and 9.
The method for locally magnifying the column data package picture by using the drawing board comprises the following steps:
D1. detecting an amplifying request of a user in a screen S, and obtaining coordinates of a request amplifying point A in a column picture;
D2. setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
D3. extracting image data in an image extraction range F from a drawing board g, and marking the image data as image data F1;
D4. amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
D5. extracting pixel values of the image data f2, and drawing the pixel values of the image data f2 in the enlarged drawing board g;
D6. and rendering the enlarged drawing board for display.
Further, the creation mode of the column picture is as follows: and acquiring a column data byte group corresponding to one package picture according to the sequence, converting the column data byte group into column pictures, and rendering and displaying the column pictures at the edge of the screen S according to the sequence.
Further, the creation mode of the drawing board g is as follows: acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; and judging whether the current picture is the first picture of a package picture, if so, creating a drawing board g in a hidden state.
Further, according to the order of obtaining the column data tuples, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data tuple of a wrapped picture.
Further, the R is a system advance configuration parameter, and the magnification factor is a system advance configuration parameter or a user's magnification request.
Further, the drawing board g has the same height as the column pictures.
Example 2
As shown in fig. 8 and 9.
A device for locally magnifying the column data package picture by a drawing board,
a screen S;
a memory;
one or more processors; a kind of electronic device with high-pressure air-conditioning system
One or more modules residing in memory and configured to be executed by the one or more processors, the one or more modules comprising:
a module for detecting the user' S magnification request in the screen S and obtaining the coordinates of the magnification point A in the column picture;
a module for setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
a module for extracting image data in the image extraction range F from the drawing board g and marking the image data as image data F1;
amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
a module for extracting the pixel value of the image data f2 and drawing the pixel value of the image data f2 in the enlarged drawing board g;
and rendering the enlarged drawing board for display.
Further, the one or more modules further comprise:
a module for sequentially acquiring column data byte groups corresponding to one package picture, converting the column data byte groups into column pictures, and rendering and displaying the column pictures at the edge of the screen S in sequence;
acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; and when the front column picture is the first column picture of the package picture, creating a drawing board g in a hidden state.
Further, according to the order of obtaining the column data tuples, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data tuple of a wrapped picture.
Example 3
As shown in fig. 8 and 9.
A display for wrapping the data with the data by using a drawing board and locally amplifying the data, wherein the display at least comprises the following picture states;
first picture state: rendering and displaying column pictures of one package picture at the edge of the screen S in sequence;
second picture state: after the user triggers an enlargement request on the column picture in the screen S, an enlarged drawing board g appears in the screen S.
The design principle of the invention is as follows: when the screen S imports the column data, the column data (binary) is converted into the column pictures and the column pictures are rendered and displayed, in the process, the column pictures of 1 package picture are sequentially drawn into 1 drawing board g, and at the moment, the whole drawing board is in a hidden state and cannot be seen by a user. Only dynamic one-by-one column pictures can be seen in order into the screen S. When the user triggers the zoom-in request, the system captures a zoom-in point A of the user on the screen S, the zoom-in point A is mapped on the column picture, and the coordinate of the zoom-in point in the column picture is obtained, at this time, an image extraction range F is created by taking the coordinate as a reference, and as the pixel of the column picture is 1 to be engraved into the drawing board g. The coordinates of each pixel point are thus mutually corresponding in the drawing board g and the column picture. Therefore, the image extraction range F can be directly mapped to the drawing board g, the image data F1 is extracted from the drawing board g, and the image data F1 is amplified to obtain the image data F2, and at this time, the amplified data F2 needs to be reintroduced into one of the amplified drawing boards g for display by the user. The amplifying drawing board g can move freely and is not limited by the amplifying point A, because the coordinate position is locked by the system when the amplifying point A is marked, the subsequent extraction, amplifying and displaying are not dependent on column pictures, but are dependent on the drawing board g, and the drawing board g can simultaneously contain the entered image data which spans multiple columns (the non-entered column pictures cannot be obtained), so that the invention can realize the cross-column amplifying and the locking amplifying without being additionally provided with a complex operation method due to the movement of the column pictures.
What needs to be specifically stated is:
application scenario 1 of the present invention:
as shown in fig. 1, fig. 1 shows that all the wrapping pictures are divided into a plurality of columns of data, then all the columns of pictures are imaged sequentially on the screen S, and the column of the previous wrapping picture is not disappeared and still imaged on the screen S.
The above-described method of magnification of the present invention can also be adapted to a full-column picture imaging scene as in fig. 1. The method includes the steps that a synchronous drawing board g is needed to be created, pixel values of column pictures are sequentially drawn into the drawing board g, namely, in the scene, the drawing board can be divided into a plurality of parcels instead of being divided into 1 drawing board, the drawing board can be divided into 1 drawing board according to the parcels, and the 1 drawing board corresponds to 1 parcel, so that local amplification operation of the method is not affected in any mode. The invention can extract and amplify data based on the drawing board based on the corresponding relation between the column pictures and the drawing board, and creates an independent amplifying drawing board, and the amplifying drawing board is taken as an amplifying window.
Application scenario 2 of the present invention:
as shown in fig. 2-7, the present invention also provides an imaging method that the current parcel picture is imaged column by using a column picture, and the previous parcel picture is imaged by using a drawing board picture, and because in the method, 1 corresponding drawing board g is created under the condition of 1 parcel, the drawing board g corresponds to only 1 parcel. Therefore, the invention can be suitable for amplifying all the column pictures under the current package, and amplifying operation is carried out based on the drawing board g corresponding to the package.
Specifically, the imaging method that the current package picture adopts column-by-column imaging of the column picture and the previous package picture adopts drawing board picture imaging comprises the following steps:
s1, sequentially acquiring 1 current column data byte group corresponding to a package picture;
s2, converting 1 current column data byte group into 1 current column picture;
s3, judging whether the current picture is the first picture of a package picture, if so, turning to S4, S5 and S6, and if not, turning to S5 and S7;
s4, creating a drawing board g in a hidden state;
s5, drawing the pixel value of the current column of pictures into a drawing board g;
s6, performing rendering display after all drawing board pictures in front of the current column picture wholly transversely move by one column picture width, and performing rendering display on the current column picture along the edge of the screen S;
s7, judging whether the current column picture is a tail column picture of the package picture, if so, turning to S9, and if not, turning to S8;
s8, rendering and displaying all drawing board pictures and all column pictures before the current column picture after the current column picture is integrally transversely moved by one column picture width, wherein the current column picture is rendered and displayed along the edge of the screen S;
s9, converting the drawing board g into a current drawing board picture g, deleting all column pictures, and converting to S10;
s10, rendering and displaying all drawing board pictures before the current column picture after the current column picture wholly transversely moves by one column picture width, and rendering and displaying the current drawing board picture g along the edge of the screen S.
As shown in fig. 6, 1 package picture (line package picture or line package image), one package picture has no contraband identification frame, the package picture is processed and divided by an intelligent picture identification box, only the identification is performed to obtain contraband identification information (including a contraband name and identification frame coordinate information), the intelligent picture identification box cuts the package picture into a plurality of column data tuples, the column data tuples are binary, and the column data tuples are simply referred to as column data, and are generally used for convenient transmission.
As shown in fig. 1, if a plurality of column data corresponding to each package picture is transmitted to the imaging terminal, the imaging terminal performs column-by-column imaging display, and in one picture, besides displaying the column picture corresponding to the current package picture, the column picture corresponding to the previous package picture is rendered for display after being shifted together. When the client receives the column data of the package, the column data is usually converted into the picture to be directly rendered in the package picture display area of the client, and the column data is the number of column data to be rendered. This approach creates the following problems:
1. when there are too many packages in the picture, there are too many pictures displayed, for example: assuming that there are 10 packages, each of which has 20 columns and a look-down angle and a look-up angle, respectively, the total rendered pictures will have 10x20x 2=400, so that the client will render 400 pictures once every step display, and when there are more columns of data to receive, the client will move 400 pictures at the same time, and the performance overhead for the client is very large.
2. When the contraband identification frame coordinates of the intelligent identification map are received, the position of the contraband identification frame coordinates are needed to be calculated according to the pixel points of the picture, if the contraband identification frame coordinates are calculated according to the column data, the process is very complex, and the relative positions of the contraband frame and the column data picture are needed to be recalculated every time the package moves.
Aiming at the problems, the invention provides a canvas synchronization concept, a received column picture is taken to obtain RGB values of each pixel point, the RGB values (pixel values) are drawn on a drawing board according to the same position, and for 1 package, after the complete package is received, the column picture is not displayed any more, and the data of the drawing board is converted into the drawing board picture to be rendered and imaged on a client. Thus saving the performance of rendering a large number of pictures.
As shown in fig. 3, fig. 4, and the above example, in the present invention, the first 9 packages form the corresponding drawing board pictures g1 and g2 …, for the current package, if the current column picture is the first column picture, the current column picture and the first 9 drawing board pictures are rendered and imaged, i.e., (9+1) =20 pictures, if the current column picture is not the first column picture and is not the last column picture, i.e., the middle column picture, the first column picture, the current column picture and the first 9 drawing board pictures are rendered and imaged, i.e., (9+1+ (1 or 2 or …)) 2, and if the current column picture is the last column picture, all the column pictures are deleted, the first 9 drawing board pictures and the current drawing board picture are rendered and imaged, i.e., (9+1) =20 pictures, and only 20 pictures are displayed on the client and moved. And when drawing the frame, calculating the coordinates of the contraband mark according to the width and the height of the drawing board, and directly drawing the frame on the drawing board.
The mode of determining the first-column picture and the last-column picture is a conventional technology, and will not be described in detail here.
As shown in fig. 3, the frame in the screen S moves from right to left, after the column data corresponding to the current package enters, a column picture 1 is formed, and is determined to be the first column picture, at this time, the picture board picture corresponding to the previous package is rendered, and meanwhile, the column picture 1 is rendered and displayed on the rightmost side of the screen S, and meanwhile, the pixel value of the column picture 1 is drawn into a hidden picture board g, and before no column picture is determined to be the last column picture, the picture board g is taken as 1 picture board container corresponding to the current package, and the picture board is initialized on the right side of the screen, and synchronously traverses.
As shown in fig. 4, after the column data corresponding to the current package enters, a column picture 3 is formed, and the pixel value of the column picture 3 is written into the drawing board g because the column picture 3 is determined not to be the first column picture, and after the column data is determined to be the last column, the column pictures 1, 2 and 3 corresponding to the current package are deleted, and at this time, the drawing board g is converted into the drawing board picture g and rendered together with the previous drawing board picture. In the invention, the drawing board has three states, namely, a state of filling first-column picture pixels but being hidden is created, a state of filling a plurality of column picture pixels but being hidden is created, and the pixels of all column pictures filled with current packages form a new picture and are rendered and displayed.
Further, when converting the drawing board g into the current drawing board picture g, reading the widths of the current column picture and all column pictures, summing to obtain a trimming width, obtaining a new drawing board g according to the trimming width, and converting the new drawing board g into the current drawing board picture g. The process further defines the boundaries of the final palette picture g, one palette picture g having the same width as the 1 parcel picture, but determined based on the sum of the widths of all the column pictures to which one parcel corresponds. The combined re-imaging of all columns of a package on the display terminal side is achieved, but the dynamic characteristics of the imaging are preserved.
Further, the method for locally amplifying a column data wrapped picture with a drawing board according to claim 1, wherein the current drawing board picture comprises a first column picture, a column picture between the first column picture and a tail column picture, and pixel values of the tail column picture; each drawing board picture before the current column picture corresponds to a parcel picture, and the parcel picture is a parcel X-ray picture with a complete outline.
Further, before converting the drawing board g into the drawing board picture, the method further comprises the following steps:
s01, acquiring coordinate information of a contraband identification frame corresponding to a package picture;
s02, drawing a corresponding contraband identification frame in the drawing board g according to coordinate information of the contraband identification frame, wherein the drawing of the corresponding contraband identification frame in the drawing board g generally finds out corner points according to a corresponding relation between coordinates and pixel coordinates, generally has 2 corner points at the upper left and lower right, forms a frame line based on the 2 corner points, and converts pixel points through which the frame line passes into line frame pixels.
Further, the current column of pictures is a picture with h fixed in height and the aspect ratio maintained; the drawing board g is a drawing board with a height fixed h and a width of a screen S; the h is the same as the height of the screen S. Because a package picture may come from different X-ray machines, in order to unify the picture size, h is taken with a high degree of fixation, the aspect ratio is kept to form the current column picture, and the proportion relation is reserved and then used for subsequent calculation.
Further, the edge of the screen S refers to the side away from the overall traversing direction, for example, if the overall traversing direction is leftward, the edge of the screen S refers to the rightmost side, and if the overall traversing direction is rightward, the edge of the screen S refers to the leftmost side.
Further, the 1 current column data byte group corresponding to one package picture and the coordinate information of the contraband identification frame corresponding to one package picture are both from the intelligent picture identification box.
As shown in fig. 1-7, the device for imaging the current parcel picture column by using a column picture and imaging the previous parcel picture by using a drawing board picture comprises:
a screen S;
a memory;
one or more processors; a kind of electronic device with high-pressure air-conditioning system
One or more modules residing in memory and configured to be executed by the one or more processors, the one or more modules comprising:
sequentially obtaining 1 current column data byte group module corresponding to a package picture;
the module converts the 1 current column data byte group into 1 current column picture;
a module for judging whether the current picture is the first picture of a package picture;
when the current picture is the first picture, a module of a drawing board g in a hidden state is created;
when the current column of pictures is the first column of pictures, the pixel values of the current column of pictures are drawn into a drawing board g;
when the current column picture is the first column picture, rendering and displaying after all drawing board pictures in front of the current column picture wholly transversely move by one column picture width, wherein the current column picture is rendered and displayed along the edge of the screen S;
a module for drawing the pixel value of the current picture into the drawing board g when the current picture is not the first picture;
judging whether the current column picture is a tail column picture of the package picture or not;
when the front column picture is not the first column picture and is not the tail column picture, rendering and displaying all drawing board pictures and all column pictures before the front column picture after integrally traversing one column picture width, and rendering and displaying the front column picture along the edge of the screen S;
when the front column picture is the tail column picture, converting the drawing board g into the current drawing board picture g, deleting the modules of all column pictures,
when the front picture is the tail picture, rendering and displaying are carried out after all the drawing board pictures in front of the front picture wholly transversely move by one row of picture width, and the current drawing board picture g is rendered and displayed along the edge of the screen S.
Preferably, the one or more modules further comprise:
the method comprises the steps of obtaining coordinate information of a contraband identification frame corresponding to a package picture;
when the front picture is the tail picture, a corresponding module of the contraband identification frame is drawn in the drawing board g according to the coordinate information of the contraband identification frame.
As shown in fig. 1-7, the display for current wrapping pictures is formed by adopting column pictures in a column-by-column manner, and previous wrapping pictures are formed by adopting drawing board pictures, and the display at least comprises the following picture states;
first picture state: all drawing board pictures in front of the current column picture are integrally transversely moved by one column picture width and then rendered and displayed, and the current column picture is rendered and displayed along the edge of the screen S;
second picture state: all drawing board pictures before the current column picture and all column pictures are integrally transversely moved by one column picture width and then rendered and displayed, and the current column picture is rendered and displayed along the edge of the screen S;
third screen state: all drawing board pictures in front of the current column picture are rendered and displayed after being integrally transversely moved by one column picture width, and the current drawing board picture is rendered and displayed along the edge of the screen S;
each drawing board picture in front of the current column of pictures corresponds to a parcel picture, and the parcel picture is a parcel X-ray picture with a complete outline; the current drawing board picture comprises a first column picture, a column picture between the first column picture and a tail column picture, and pixel values of the tail column picture.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention and the invention is not limited thereto. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.

Claims (5)

1. The method for locally amplifying the column data package picture by using the drawing board is characterized by comprising the following steps of:
D1. detecting an amplifying request of a user in a screen S, and obtaining coordinates of a request amplifying point A in a column picture;
D2. setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
D3. extracting image data in an image extraction range F from a drawing board g, and marking the image data as image data F1;
D4. amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
D5. extracting pixel values of the image data f2, and drawing the pixel values of the image data f2 in the enlarged drawing board g;
D6. rendering the enlarged drawing board for display;
the creation mode of the column picture is as follows: acquiring a column data byte group corresponding to a package picture according to the sequence, converting the column data byte group into column pictures, and rendering and displaying the column pictures at the edge of a screen S according to the sequence;
the creation mode of the drawing board g is as follows: acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; judging whether the current picture is the first picture of a parcel picture, if so, creating a drawing board g in a hidden state;
and according to the sequence of acquiring the column data byte groups, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data byte group of a wrapping picture.
2. The method for locally magnifying a data package picture with a drawing board according to claim 1, wherein R is a system advance configuration parameter, and the magnification factor is a system advance configuration parameter or a user's magnification request.
3. The method of claim 1, wherein the drawing board g is the same as the column picture in height.
4. Device for locally amplifying data package pictures by using drawing boards, which is characterized in that:
a screen S;
a memory;
one or more processors; a kind of electronic device with high-pressure air-conditioning system
One or more modules residing in memory and configured to be executed by the one or more processors, the one or more modules comprising:
a module for detecting the user' S magnification request in the screen S and obtaining the coordinates of the magnification point A in the column picture;
a module for setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
a module for extracting image data in the image extraction range F from the drawing board g and marking the image data as image data F1;
amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
a module for extracting the pixel value of the image data f2 and drawing the pixel value of the image data f2 in the enlarged drawing board g;
a module for rendering the enlarged drawing board for display;
the one or more modules further comprise:
a module for sequentially acquiring column data byte groups corresponding to one package picture, converting the column data byte groups into column pictures, and rendering and displaying the column pictures at the edge of the screen S in sequence;
acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; when the front picture is the first picture of a parcel picture, a module of a drawing board g in a hidden state is created;
and according to the sequence of acquiring the column data byte groups, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data byte group of a wrapping picture.
5. Display with drawing board to the partial enlargement of column data parcel picture, its characterized in that: the display at least comprises the following picture states;
first picture state: rendering and displaying column pictures of one package picture at the edge of the screen S in sequence;
second picture state: after triggering an amplifying request on a column picture in a screen S, a user generates an amplifying drawing board g in the screen S;
the creation process of the amplifying drawing board g is as follows:
detecting an amplifying request of a user in a screen S, and obtaining coordinates of a request amplifying point A in a column picture;
setting an image extraction range F by taking the coordinates of the amplifying point A in the column picture as a circle center and taking R as a radius;
extracting image data in an image extraction range F from a drawing board g, and marking the image data as image data F1;
amplifying the image data f1 according to the amplification factor to obtain amplified image data f2;
extracting pixel values of the image data f2, and drawing the pixel values of the image data f2 in the enlarged drawing board g;
the creation mode of the column picture is as follows: acquiring a column data byte group corresponding to a package picture according to the sequence, converting the column data byte group into column pictures, and rendering and displaying the column pictures at the edge of a screen S according to the sequence;
the creation mode of the drawing board g is as follows: acquiring 1 current column data byte group corresponding to a parcel picture according to the sequence; converting 1 current column data byte group into 1 current column picture; judging whether the current picture is the first picture of a parcel picture, if so, creating a drawing board g in a hidden state;
and according to the sequence of acquiring the column data byte groups, the drawing board g dynamically draws the pixel value of the current column picture corresponding to the current column data byte group of a wrapping picture.
CN202211010267.XA 2022-08-23 2022-08-23 Method and device for locally amplifying column data package picture by using drawing board and display Active CN115423683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211010267.XA CN115423683B (en) 2022-08-23 2022-08-23 Method and device for locally amplifying column data package picture by using drawing board and display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211010267.XA CN115423683B (en) 2022-08-23 2022-08-23 Method and device for locally amplifying column data package picture by using drawing board and display

Publications (2)

Publication Number Publication Date
CN115423683A CN115423683A (en) 2022-12-02
CN115423683B true CN115423683B (en) 2023-05-02

Family

ID=84198867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211010267.XA Active CN115423683B (en) 2022-08-23 2022-08-23 Method and device for locally amplifying column data package picture by using drawing board and display

Country Status (1)

Country Link
CN (1) CN115423683B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115567586B (en) * 2022-12-06 2023-05-02 成都智元汇信息技术股份有限公司 Centralized intelligent pushing method and device for separating intelligent image recognition result from original image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162683A (en) * 2020-09-25 2021-01-01 珠海格力电器股份有限公司 Image amplification method and device and storage medium
CN114461327A (en) * 2022-02-09 2022-05-10 厦门纳龙健康科技股份有限公司 Electrocardiogram waveform amplification method, terminal equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076777B2 (en) * 1989-07-06 1995-01-30 大日本スクリーン製造株式会社 Pattern contour detection method and length measuring apparatus using this method
CN103226806B (en) * 2013-04-03 2016-08-10 广东欧珀移动通信有限公司 A kind of method of picture partial enlargement and camera system
CN106020681A (en) * 2016-05-05 2016-10-12 乐视控股(北京)有限公司 Method and system for acquiring and projecting painting through touch screen
CN110059274A (en) * 2019-03-15 2019-07-26 平安普惠企业管理有限公司 Front end picture amplifying method, device, computer equipment and storage medium
CN114697747A (en) * 2022-03-23 2022-07-01 成都智元汇信息技术股份有限公司 Video signal transmission method and system based on column data and graph judging terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162683A (en) * 2020-09-25 2021-01-01 珠海格力电器股份有限公司 Image amplification method and device and storage medium
CN114461327A (en) * 2022-02-09 2022-05-10 厦门纳龙健康科技股份有限公司 Electrocardiogram waveform amplification method, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN115423683A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US8971667B2 (en) Digital image auto-resizing
CN110472539B (en) Text detection method and device and computer storage medium
EP1306810A1 (en) Triangle identification buffer
CN115423683B (en) Method and device for locally amplifying column data package picture by using drawing board and display
CN108830133A (en) Recognition methods, electronic device and the readable storage medium storing program for executing of contract image picture
CN115423684B (en) Method and device for locally amplifying column wrapping picture by RGB array
CN115439609B (en) Three-dimensional model rendering method, system, equipment and medium based on map service
CN105844683A (en) Pixel difference frame-by-frame animation realization method based on Canvas and WebWorker
US6441818B1 (en) Image processing apparatus and method of same
CN114239508A (en) Form restoration method and device, storage medium and electronic equipment
CN115345862B (en) Method and device for simulating X-ray machine scanning imaging based on column data and display
CN111914046B (en) Generation method and device of target seating chart and computer equipment
CN115457178B (en) Method and system for issuing virtual contraband information based on column data
CN114693691A (en) Graph cutting method based on coordinate mapping for double-source double-view angle
KR102299879B1 (en) Method and computer program product for automated placement and harmonization of graph onto a figure
EP1139294B1 (en) Graphical image system and apparatus
CN104639969A (en) Full screen page display method and device
JP4977448B2 (en) Method and system for generating polygon boundary definitions for image objects
CN110996026B (en) OSD display method, device, equipment and storage medium
CN113516609A (en) Split screen video detection method and device, computer equipment and storage medium
JPS598074A (en) Picture processing system
CN112882781A (en) Intelligent frame detection and same-screen method and storage device
CN111191518A (en) Double-spectrum target detection frame coordinate synchronization and mask layer drawing method
US7447349B2 (en) Method and a system for processing digital images
CN116798056B (en) Form image positioning method, apparatus, device and computer readable 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