CN115496889B - Method, equipment and medium for extracting package picture in X-ray picture based on RGB image - Google Patents

Method, equipment and medium for extracting package picture in X-ray picture based on RGB image Download PDF

Info

Publication number
CN115496889B
CN115496889B CN202210991187.0A CN202210991187A CN115496889B CN 115496889 B CN115496889 B CN 115496889B CN 202210991187 A CN202210991187 A CN 202210991187A CN 115496889 B CN115496889 B CN 115496889B
Authority
CN
China
Prior art keywords
package
picture
ray
camera
length
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
CN202210991187.0A
Other languages
Chinese (zh)
Other versions
CN115496889A (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 CN202210991187.0A priority Critical patent/CN115496889B/en
Publication of CN115496889A publication Critical patent/CN115496889A/en
Application granted granted Critical
Publication of CN115496889B publication Critical patent/CN115496889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/255Detecting or recognising potential candidate objects based on visual cues, e.g. shapes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/52Surveillance or monitoring of activities, e.g. for recognising suspicious objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/05Recognition of patterns representing particular kinds of hidden objects, e.g. weapons, explosives, drugs

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Analysing Materials By The Use Of Radiation (AREA)

Abstract

The invention discloses a method for extracting a parcel picture from an X-ray picture based on an RGB image, which comprises the following steps: s1: acquiring a current camera picture and extracting package data information; s2: calculating the physical length of the package by using a spatial displacement algorithm according to the package data information; s3: according to the package data information, calculating the moment when the package completely enters the X-ray imaging area by using a time displacement algorithm; s4: extracting a package X-ray picture when the package completely enters a moment point of an X-ray imaging area; s5: calculating the length of the package in the X-ray picture to obtain coordinates of the left side and the right side of the package in the X-ray picture; s6: and cutting out partial X-ray pictures containing the package images in the package X-ray pictures when the packages completely enter the X-ray imaging area along the direction perpendicular to the conveying belt according to the coordinates of the left side and the right side of the package in the X-ray pictures, and extracting the package pictures only containing the package images by using a package contour detection method.

Description

Method, equipment and medium for extracting package picture in X-ray picture based on RGB image
Technical Field
The invention relates to the technical field of picture data processing, in particular to a method, equipment and medium for extracting a wrapped picture from an X-ray picture based on RGB (red, green and blue) images.
Background
In the prior art, when a subway, an airport or other security inspection scenes are subjected to package security inspection, a security inspection image is obtained by continuously shooting packages to be detected through an X-ray machine, then each frame of security inspection image is processed to obtain a package image containing the packages to be detected, and then a cutting image is carried out to obtain a package picture for security inspection personnel to judge whether the packages contain contraband.
Disclosure of Invention
The invention provides a method, equipment and medium for extracting a wrapped picture from an X-ray picture based on RGB (red, green and blue) images, which are used for accurately determining a visible light picture containing the wrapped picture by utilizing rich image information contained in the wrapped RGB images to obtain a frame of wrapped picture at a certain moment, and obtaining the X-ray picture containing the wrapped picture through time mapping, wherein only one frame of X-ray picture is processed, so that the purpose of accurately and rapidly extracting the wrapped picture is achieved.
The technical aim of the invention is realized by the following technical scheme:
the method for extracting the parcel pictures in the X-ray pictures based on the RGB images is applied to a security inspection machine system, an X-ray imaging area is arranged in the security inspection machine, a camera is arranged above a conveyor belt in front of an entrance of the security inspection machine, the shooting direction of the camera is vertical to the conveyor belt, and the shooting range of the camera completely covers the conveyor belt, and the method comprises the following steps:
s1: acquiring a current camera picture and extracting package data information;
s2: calculating the physical length of the package by using a spatial displacement algorithm according to the package data information;
s3: according to the package data information, calculating the moment when the package completely enters the X-ray imaging area by using a time displacement algorithm;
s4: extracting a package X-ray picture when the package completely enters a moment point of an X-ray imaging area;
s5: calculating the length of the package in the X-ray picture to obtain coordinates of the left side and the right side of the package in the X-ray picture;
s6: and cutting out partial X-ray pictures containing the package images in the package X-ray pictures when the packages completely enter the X-ray imaging area along the direction perpendicular to the conveying belt according to the coordinates of the left side and the right side of the package in the X-ray pictures, and extracting the package pictures only containing the package images by using a package contour detection method.
Further, when executing S1, the method includes the following steps:
s11: acquiring RGB values of current camera picture composition pixels;
s12: determining the external outline of the package according to the graphic information of the package of the RGB values to obtain a visible light picture of the package;
s13: and obtaining the leftmost and rightmost coordinates of the package in the current camera picture and the length of the package in the current camera picture according to the package visible light picture.
Further, when S2 is performed: calculating the physical length of the package L, l=l 1 * L0/L0', wherein L0 is the length of the conveyor belt before the entrance of the security inspection machine, L0' is the length of the camera, L 1 For the length wrapped in the camera picture.
Further, when S3 is executed: when the package enters the security inspection machine from left to right, firstly, calculating the actual coordinate x, x=of the leftmost package on the conveyor belt according to the ratio of the length of the picture of the camera to the length of the conveyor belt
x 0 * L0/L0', wherein x 0 The leftmost coordinates wrapped in the current camera picture;
and then calculating a time point T when the package completely enters the X-ray imaging area, wherein T= (L0-x+S)/v+T ', L0 is the length of the conveyor belt before the entrance of the security inspection machine, T' is the time of acquiring the current camera picture, v is the running speed of the conveyor belt, and S is the distance from the starting point C of the X-ray imaging area to the entrance of the security inspection machine.
Further, when S5 is executed: calculating the length L of the package in the package X-ray picture at the moment T X ,,L X L/r, wherein the dimension conversion ratio of the physical length of the r package to the imaging length of the package on the X-ray picture, the coordinates of the left and right sides of the package in the X-ray picture are X C And x C +L X
Further, the method also comprises the following steps:
s1a: acquiring package data information B at an initial moment;
s1b: and tracking the package from the camera picture and updating package data information to obtain package data information B' for calculating the moment point T.
Further, setting the initial time as T0, where the package data information B of the initial time includes:
B={id,img0,x L0 ,x R0 ,L B t0, wherein ID is the package ID, img0 is the package visible light picture extracted from the camera picture at time T0, x L0 To wrap the leftmost coordinates in the camera picture at time T0, x R0 To wrap the rightmost coordinates in the camera picture at time T0, L B L is the length wrapped in the camera picture at the time of T0 B =x R0 -x L0
Tracking packages from the camera picture, and obtaining package data information B ', B' = { id, img1, x at the moment T1 L1 ,x R1 ,L B1 T1, wherein ID is package ID, img1 is package visible light picture extracted from camera picture at time T1, x L1 To wrap the leftmost coordinates in the camera picture at time T1, x R1 To wrap the rightmost coordinates in the camera picture at time T1, L B1 L is the length wrapped in the camera picture at the time of T1 B1 =x R1 -x L1
When L B1 >L B At this time, the package data information is updated, and the package data information used for calculating the time point T is package data information B'.
Further, the updated package data information B' is used to calculate the physical length of the package and the point in time when the package completely enters the X-ray imaging area.
The invention also provides an electronic device for extracting the wrapping picture in the X-ray picture based on the RGB image, which comprises:
one or more processors;
a storage unit configured to store one or more programs, which when executed by the one or more processors, enable the one or more processors to implement the method for extracting a parcel picture in an X-ray picture based on an RGB image according to any one of claims 1 to 8.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, is capable of implementing a method of extracting a wrapped picture in an X-ray picture based on an RGB image according to any one of claims 1 to 8.
The invention has the beneficial effects that: the invention utilizes rich image information contained in the RGB of the package to accurately determine the visible light picture containing the package image to obtain a frame of package picture at a certain moment, and obtains the X-ray picture containing the package image through time mapping, and the purpose of accurately and rapidly extracting the package picture can be achieved by only processing the frame of X-ray picture.
Drawings
FIG. 1 is a schematic flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of a current camera picture taken;
FIG. 3 is a current camera picture taken;
FIG. 4 is a wrapped X-ray image taken at time T;
FIG. 5 is a partial X-ray image containing a wrapped image in a wrapped X-ray image taken at time T;
FIG. 6 is a schematic diagram of a current camera picture taken at time T0;
FIG. 7 is a current camera picture taken at time T0;
FIG. 8 is a schematic diagram of a current camera picture taken at time T1;
fig. 9 is a current camera picture taken at time T1.
Detailed Description
In order to make the technical scheme, the technical problems to be solved and the technical effects of the invention more clear, the technical scheme of the invention is checked and fully described below with reference to the specific embodiments, and obviously, the described embodiments are only some embodiments of the invention, but not all embodiments. All embodiments obtained by a person skilled in the art without making any inventive effort are within the scope of the present invention based on the embodiments of the present invention.
The invention is described in detail below with reference to the drawings and attached specific embodiments,
example 1
As shown in fig. 1 to 5, an X-ray imaging area is provided in the security inspection machine, a camera is mounted above the conveyor belt, the imaging direction of the camera is perpendicular to the conveyor belt, and the imaging range of the camera just covers the conveyor belt. Therefore, the package on the conveyor belt can be shot, the shooting direction of the camera is vertical to the package, and the visible light picture of the package in the obtained camera picture is a top view of the package.
The method for extracting the package picture in the X-ray picture based on the RGB image comprises the following steps:
s1: acquiring a current camera picture and extracting package data information;
specifically, the package visible light picture extracted from the current camera picture is obtained by obtaining RGB values of pixels formed by the current camera picture, and the external outline of the package is determined according to the graphic information of the package according to the RGB values, so that the package visible light picture, the leftmost and rightmost coordinates of the package in the camera picture and the length of the package in the camera picture are obtained.
S2: calculating the physical length of the package by using a spatial displacement algorithm according to the package data information;
specifically, the package physical length L is calculated, l=l 1 * L0/L0', wherein L0 is the length of the conveyor belt before the entrance of the security inspection machine, L0' is the length of the camera, L 1 For the length wrapped in the camera picture.
S3: according to the package data information, calculating the moment when the package completely enters the X-ray imaging area by using a time displacement algorithm;
specifically, when a package enters the security inspection machine from left to right, the package is firstly inspected according to the length of the picture of the cameraCalculating the leftmost actual coordinates x, x=x of the package on the conveyor belt in proportion to the length of the conveyor belt 0 * L0/L0', wherein x 0 The leftmost coordinates wrapped in the current camera picture; and then calculating a time point T when the package completely enters the X-ray imaging area, wherein T= (L0-x+S)/v+T ', L0 is the length of the conveyor belt before the entrance of the security inspection machine, T' is the time of acquiring the current camera picture, v is the running speed of the conveyor belt, and S is the distance from the starting point C of the X-ray imaging area to the entrance of the security inspection machine.
S4: extracting a package X-ray picture when the package completely enters a moment point of an X-ray imaging area;
specifically, in the technical scheme, only the wrapped X-ray picture of the frame at the moment is needed to be obtained for subsequent cut-picture extraction processing, and each frame of X-ray picture is not needed to be processed, so that the requirement on hardware and the time consumption of an algorithm are reduced.
S5: calculating the length of the package in the X-ray picture to obtain coordinates of the left side and the right side of the package in the X-ray picture;
specifically, the length L of the package in the package X-ray picture at the moment T is calculated X ,,L X L/r, wherein the dimension conversion ratio of the physical length of the r package to the imaging length of the package on the X-ray picture, the coordinates of the left and right sides of the package in the X-ray picture are X C And x C +L X
S6: and cutting out partial X-ray pictures containing the package images in the package X-ray pictures when the packages completely enter the X-ray imaging area along the direction perpendicular to the conveying belt according to the coordinates of the left side and the right side of the package in the X-ray pictures, and extracting the package pictures only containing the package images by using a package contour detection method.
Example two
The technical solution in this embodiment is not repeated in the repeated places in the first embodiment, and the main difference is that when extracting package data information, in order to obtain accurate package data information, as shown in fig. 6 and 7, because the package is affected by the actual size, when the package just enters the conveyor belt, the obtained camera image does not completely capture the package, so that the package visible light image extracted in the camera image does not include all the package, or the obtained camera image has the package not directly below the camera, so that the obtained package data information is in error, and in order to avoid this situation, the technical idea of tracking the package in the camera image is adopted, as shown in fig. 6 to 9, and the technical solution is as follows:
s1a: acquiring package data information B at an initial moment;
specifically, as shown in fig. 6 and 7, the initial time is set to T0, and the package data information B at the initial time includes: b= { id, img0, x L0 ,x R0 ,L B T0, wherein ID is the package ID, img0 is the package visible light picture extracted from the camera picture at time T0, x L0 To wrap the leftmost coordinates in the camera picture at time T0, x R0 To wrap the rightmost coordinates in the camera picture at time T0, L B L is the length wrapped in the camera picture at the time of T0 B =x R0 -x L0
S1b: and tracking the package from the camera picture and updating package data information to obtain package data information B' for calculating the moment point T.
Specifically, as shown in fig. 8 and 9, the package is tracked in real time from the camera picture, and package data information B ', B' = { id, img1, x is obtained at time T1 L1 ,x R1 ,L B1 T1, wherein ID is package ID, img1 is package visible light picture extracted from camera picture at time T1, x L1 To wrap the leftmost coordinates in the camera picture at time T1, x R1 To wrap the rightmost coordinates in the camera picture at time T1, L B L is the length wrapped in the camera picture at the time of T0 B1 =x R1 -x L1
When L B1 >L B At this time, the package data information is updated, and the package data information used for calculating the time point T is package data information B'.
And repeating the steps, acquiring package data information at the moments T2 and T3 … … TN, and acquiring package data information B' at the initial moment T1 for subsequent calculation when the length of the package at the subsequent moment in the camera picture is found to be unchanged.
Knowing the camera picture length L0', the conveyor length L0, the conveyor running speed v and the distance S of the position C to the conveyor,
when the package enters the security inspection machine from left to right and the package data information used for calculating the time point T is package data information B', obtaining that the leftmost coordinate of the package in the current camera picture is x L1 Calculating the actual coordinate x of the leftmost parcel on the conveyor belt according to the ratio of the length of the image of the camera to the length of the conveyor belt L ,x L =x L1 * L0/L0' to calculate the time point T, T= (L0-x) when the parcel completely passes the position C L +S)/v+T1。
According to the length L ' of the package in the camera picture in the package data information B ' and the ratio of the camera picture length L0' to the conveyor belt length L0, the actual package physical length L, L=L '. Times.L0/L0 ' is calculated.
As shown in fig. 3 and 4, according to the dimension conversion ratio r of the physical length of the package to the imaging length of the package on the X-ray image, the length L of the package in the X-ray image of the package at the time point T is calculated X Wherein L is X =l/r, according to L X And intercepting part of the X-ray pictures containing the package images in the package X-ray pictures at the time point T, and finally extracting the package pictures containing only the package images by using a package contour detection method.
The invention also provides an electronic device for extracting the wrapping picture in the X-ray picture based on the RGB image, which comprises: one or more processors; a storage unit configured to store one or more programs, which when executed by the one or more processors, enable the one or more processors to implement the method for extracting a parcel picture in an X-ray picture based on an RGB image according to any one of claims 1 to 8.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, is capable of implementing a method of extracting a wrapped picture in an X-ray picture based on an RGB image according to any one of claims 1 to 8.
The computer-readable storage medium described above may be implemented in any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flowchart and/or block of the flowchart and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors, input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing describes the principles and embodiments of the present invention in detail using specific examples, which are only for aiding in understanding the core technical content of the present invention, and are not intended to limit the scope of the present invention, but the technical solutions of the present invention are not limited to the foregoing specific embodiments. Based on the above-mentioned embodiments of the present invention, any improvements and modifications made by those skilled in the art without departing from the principles of the present invention should fall within the scope of the present invention.

Claims (4)

1. The method for extracting the package picture in the X-ray picture based on the RGB image is applied to a security inspection machine system, an X-ray imaging area is arranged in the security inspection machine, a camera is arranged above a conveyor belt in front of an entrance of the security inspection machine, the shooting direction of the camera is vertical to the conveyor belt, and the shooting range of the camera completely covers the conveyor belt, and the method is characterized by comprising the following steps:
s1: acquiring a current camera picture and extracting package data information;
s2: calculating the physical length of the package by using a spatial displacement algorithm according to the package data information;
s3: according to the package data information, calculating the moment when the package completely enters the X-ray imaging area by using a time displacement algorithm;
s4: extracting a package X-ray picture when the package completely enters a moment point of an X-ray imaging area;
s5: calculating the length of the package in the X-ray picture to obtain coordinates of the left side and the right side of the package in the X-ray picture;
s6: according to the coordinates of the left side and the right side of the package in the X-ray picture, cutting out partial X-ray pictures containing package images in the package X-ray picture when the package completely enters the X-ray imaging area along the direction vertical to the conveyor belt, and extracting the package pictures only containing the package images by using a package contour detection method;
the method also comprises the following steps:
s1a: acquiring package data information B at an initial moment;
s1b: tracking packages from the camera picture and updating package data information to obtain package data information B' for calculating a moment point T;
wherein, set the initial time as T0, the package data information B of the initial time includes:
B={id, img0, x L0 , x R0 , L B t0, wherein ID is the package ID, img0 is the package visible light picture extracted from the camera picture at time T0, x L0 To wrap the leftmost coordinates in the camera picture at time T0, x R0 To wrap the rightmost coordinates in the camera picture at time T0, L B L is the length wrapped in the camera picture at the time of T0 B = x R0 - x L0
Tracking packages from the camera picture, and obtaining package data information B ', B' = { id, img1, x at the moment T1 L1 , x R1 , L B1 T1, wherein ID is package ID, img1 is package visible light picture extracted from camera picture at time T1, x L1 To wrap the leftmost coordinates in the camera picture at time T1, x R1 To wrap the rightmost coordinates in the camera picture at time T1, L B1 L is the length wrapped in the camera picture at the time of T1 B1 = x R1 - x L1
When L B1 >L B When the package data information is updated, the package data information used for calculating the time point T is package data information B';
the updated package data information B' is used for calculating the physical length of the package and the time point when the package completely enters the X-ray imaging area;
when executing S1, the method comprises the following steps:
s11: acquiring RGB values of current camera picture composition pixels;
s12: determining the external outline of the package according to the graphic information of the package of the RGB values to obtain a visible light picture of the package;
s13: obtaining the leftmost and rightmost coordinates wrapped in the current camera picture and the length wrapped in the current camera picture according to the wrapped visible light picture;
when S2 is executed: calculating the physical length of the package L, l=l 1 * L0/L0', wherein L0 is the length of a conveyor belt before the entrance of the security inspection machine, L0' is the length of a picture of a camera, L 1 Length wrapped in the camera picture;
executing S3: when the package enters the security inspection machine from left to right, firstly, calculating the actual coordinate x at the leftmost side of the package on the conveyor belt according to the ratio of the length L0' of the picture of the camera to the length L0 of the conveyor belt before the entrance of the security inspection machine, wherein x=x 0 * L0/L0', wherein x 0 The leftmost coordinates wrapped in the current camera picture;
and then calculating a time point T when the package completely enters the X-ray imaging area, wherein T= (L0-x+S)/v+T ', T' is the time when the current camera picture is acquired, v is the running speed of the conveyor belt, and S is the distance from the starting point C of the X-ray imaging area to the entrance of the security inspection machine.
2. The method for extracting a package picture from an X-ray picture based on an RGB image according to claim 1, wherein when S5 is performed: calculating the length L of the package in the package X-ray picture at the moment T X ,L X L/r, wherein r is the dimension conversion ratio of the package physical length L to the package imaging length on the X-ray picture, and the coordinates of the left and right sides of the package in the X-ray picture are X C And x C +L X
3. The electronic equipment for extracting the wrapping picture in the X-ray picture based on the RGB image is characterized by comprising the following components:
one or more processors;
a storage unit configured to store one or more programs, which when executed by the one or more processors, enable the one or more processors to implement the method for extracting a parcel picture in an X-ray picture based on an RGB image according to any one of claims 1 to 2.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that,
the computer program, when executed by a processor, is capable of implementing a method for extracting a wrapped picture in an X-ray picture based on RGB images according to any one of claims 1 to 2.
CN202210991187.0A 2022-08-18 2022-08-18 Method, equipment and medium for extracting package picture in X-ray picture based on RGB image Active CN115496889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210991187.0A CN115496889B (en) 2022-08-18 2022-08-18 Method, equipment and medium for extracting package picture in X-ray picture based on RGB image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210991187.0A CN115496889B (en) 2022-08-18 2022-08-18 Method, equipment and medium for extracting package picture in X-ray picture based on RGB image

Publications (2)

Publication Number Publication Date
CN115496889A CN115496889A (en) 2022-12-20
CN115496889B true CN115496889B (en) 2023-09-22

Family

ID=84465642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210991187.0A Active CN115496889B (en) 2022-08-18 2022-08-18 Method, equipment and medium for extracting package picture in X-ray picture based on RGB image

Country Status (1)

Country Link
CN (1) CN115496889B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929066A (en) * 2019-11-18 2020-03-27 浙江大华技术股份有限公司 Method and device for displaying personnel and package information in association manner and security check machine
CN113435543A (en) * 2021-07-22 2021-09-24 北京博睿视科技有限责任公司 Visible light and X-ray image matching method and device based on conveyor belt identification
CN113759431A (en) * 2021-06-09 2021-12-07 同方威视技术股份有限公司 Security check data association method and device and X-ray security check system
CN114372991A (en) * 2021-06-01 2022-04-19 实源科技(广州)有限公司 Method and device for collecting and matching X-ray images of articles in security inspection process
CN114694064A (en) * 2022-03-23 2022-07-01 成都智元汇信息技术股份有限公司 Graph cutting method and system based on target identification

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929066A (en) * 2019-11-18 2020-03-27 浙江大华技术股份有限公司 Method and device for displaying personnel and package information in association manner and security check machine
CN114372991A (en) * 2021-06-01 2022-04-19 实源科技(广州)有限公司 Method and device for collecting and matching X-ray images of articles in security inspection process
CN113759431A (en) * 2021-06-09 2021-12-07 同方威视技术股份有限公司 Security check data association method and device and X-ray security check system
CN113435543A (en) * 2021-07-22 2021-09-24 北京博睿视科技有限责任公司 Visible light and X-ray image matching method and device based on conveyor belt identification
CN114694064A (en) * 2022-03-23 2022-07-01 成都智元汇信息技术股份有限公司 Graph cutting method and system based on target identification

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高宏伟.《电子封装工艺与装备技术基础教程》.西安电子科技大学出版社,2017,第266页. *

Also Published As

Publication number Publication date
CN115496889A (en) 2022-12-20

Similar Documents

Publication Publication Date Title
CN108205797B (en) Panoramic video fusion method and device
US10275857B2 (en) Depth image enhancement method
EP2194725B1 (en) Method and apparatus for correcting a depth image
US11748894B2 (en) Video stabilization method and apparatus and non-transitory computer-readable medium
US20110254923A1 (en) Image processing apparatus, method and computer-readable medium
CN107451976B (en) A kind of image processing method and device
US10176557B2 (en) Apparatus, system, and method for enhancing image video data
CN112836634B (en) Multi-sensor information fusion gate anti-trailing method, device, equipment and medium
CN109447902B (en) Image stitching method, device, storage medium and equipment
KR101582153B1 (en) Exposure measuring method and apparatus based on the composition for automatic image correction
CN109934873B (en) Method, device and equipment for acquiring marked image
CN109118533B (en) Depth information processing method, device and equipment
CN112771843A (en) Information processing method, device and imaging system
CN107504917A (en) A kind of three-dimensional dimension measuring method and device
CN111798374A (en) Image splicing method, device, equipment and medium
CN115496889B (en) Method, equipment and medium for extracting package picture in X-ray picture based on RGB image
CN110223320B (en) Object detection tracking method and detection tracking device
CN115494556B (en) Packet association method based on paragraph fuzzy matching
CN115423996B (en) Method, electronic equipment and medium for extracting parcel pictures based on parcel movement
CN117237835A (en) Automatic shelf safety detection method and device based on yolov7
CN106445223B (en) A kind of anti-interference method of optical touch screen automatic positioning
US9798932B2 (en) Video extraction method and device
CN112107301B (en) Human body temperature detection model implementation method and device and human body temperature detection method
US20220130057A1 (en) Image processing device, image processing method, and image processing program
CN112581365A (en) Cross-scale self-adaptive information mapping imaging method and device and 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