WO2019128504A1 - Method and apparatus for image processing in billiards game, and terminal device - Google Patents
Method and apparatus for image processing in billiards game, and terminal device Download PDFInfo
- Publication number
- WO2019128504A1 WO2019128504A1 PCT/CN2018/115386 CN2018115386W WO2019128504A1 WO 2019128504 A1 WO2019128504 A1 WO 2019128504A1 CN 2018115386 W CN2018115386 W CN 2018115386W WO 2019128504 A1 WO2019128504 A1 WO 2019128504A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- billiard
- information
- elliptical
- area
- position information
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/24—Aligning, centring, orientation detection or correction of the image
- G06V10/245—Aligning, centring, orientation detection or correction of the image by locating a pattern; Special marks for positioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/07—Target detection
Definitions
- the invention relates to the field of machine vision recognition technology, in particular to an image processing method, device and terminal device in a billiard game.
- the billiards are regarded as a circle, and then the billiards are positioned to obtain the position information of the billiards.
- the ball is seen as a visual source, and the shape of the ball (unless located at the center of the center) is not circular, so the billiard is regarded as a circle. Inevitably, there is a large error or even an error in the obtained billiard position information.
- an embodiment of the present invention provides an image processing method and apparatus in a billiard game to solve the problem of the image processing method in the billiard game in the prior art.
- a first aspect of the embodiments of the present invention provides an image processing method in a billiard game, which is applied to a system including a photographing apparatus, and the image processing method includes:
- the video information is analyzed based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- the video information includes distribution information of an elliptical area corresponding to each billiard on a table surface;
- the video information is analyzed based on the constructed projection model including the shooting device and the billiard position, and the position information of the billiard is obtained:
- An elliptical region conforming to the projection model is detected from the distribution information
- analyzing, according to the constructed projection model including the shooting device and the billiard position, the position information of the billiards from the video information includes:
- the location information of the connected area is obtained, and the location information of each of the plurality of connected areas is used as the location information of the billiard corresponding to each of the elliptical areas.
- the location information of the connected area is obtained, and the location information of each of the plurality of connected areas is used as the location information of the billiard corresponding to each of the elliptical areas.
- a second aspect of the present invention provides an image processing apparatus in a billiard game, including:
- An acquisition module configured to collect video information of a billboard including a billiard table and a billiard on the counter by a photographing device;
- the analysis module is configured to analyze the video information based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- the video information includes distribution information of an elliptical area corresponding to each billiard on a table surface;
- the analysis module includes:
- a detecting unit configured to detect, from the distribution information, an elliptical region that conforms to the projection model
- a calculating unit configured to calculate, according to the spatial geometric position relationship of the elliptical region corresponding to the billiard in the shooting device, the billiard, and the distribution information in the projection model, based on the position information of the elliptical region that conforms to the projection model The location information of the billiard to which the ellipse area belongs is obtained.
- the analyzing module includes:
- a first dividing unit configured to divide the video information into multiple frames
- a segmentation unit configured to segment an elliptical region and a mesa region corresponding to billiards in each of the plurality of frames based on the projection model
- a second dividing unit configured to divide the set of the elliptical regions into a plurality of connected regions
- an acquiring unit configured to acquire location information of the connected area, and use location information of each of the plurality of connected areas as position information of billiards corresponding to the respective elliptical areas.
- the obtaining unit includes:
- the sub-unit is configured to divide the connected area into independent areas, obtain location information of each of the independent areas, and use location information of the independent area as location information of billiards corresponding to the independent area.
- the obtaining unit includes:
- a matching subunit configured to match the area size with a preset threshold to obtain a matching result
- Extracting a subunit configured to extract, from the connected region, a plurality of circles that do not overlap each other based on the matching result, each circle corresponding to a circumscribed ellipse that conforms to the projection model and is circumscribed to the circle, the outer
- the merged area of the cut ellipse occupying area is the connected area; the position information of the plurality of circles not overlapping each other is converted into position information of the billiard.
- a third aspect of an embodiment of the present invention provides a terminal device including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the The steps of the method of the first aspect are implemented when the computer program is described.
- a fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method of the first aspect step.
- the video information of the billiard table and the billiard on the countertop is collected by the photographing device; the video information is analyzed based on the constructed projection model including the photographing device and the billiard position, and the billiard is obtained.
- Position information wherein the video information includes an image in which the billiard shape is an ellipse.
- the billiard shape is an ellipse, and the position information of the billiard in the image of the video information is obtained based on the projection model, thereby improving the accuracy of the position information.
- the implementation process of the embodiment of the present invention is simple, and has strong practicability and ease of use.
- FIG. 1 is a schematic flow chart showing an implementation of an image processing method in a billiard game in an embodiment
- FIG. 2 is a schematic diagram of a projection model of an image processing method in a billiard game in an embodiment
- FIG. 3 is a schematic diagram of a specific implementation process of step S102 in an embodiment
- step S102 is a schematic diagram of another specific implementation process of step S102 in an embodiment
- Figure 5-A is a schematic view of a connected region formed by overlapping three elliptical regions in one embodiment
- Figure 5-B is a schematic view of a connected region formed by an elliptical region in an embodiment
- FIG. 5-C is a schematic diagram showing an extraction result of a connected region formed by overlapping three elliptical regions in one embodiment
- Figure 5-D is a schematic diagram showing an intermediate process of extracting a connected region formed by overlapping three elliptical regions in one embodiment
- step S304 is a schematic diagram of a specific implementation process of step S304 in an embodiment
- FIG. 7 is a structural block diagram of a terminal device in an embodiment
- Figure 8 is a schematic illustration of an image processing apparatus in a billiard game in one embodiment.
- the term “if” can be interpreted as “when” or “on” or “in response to determining” or “in response to detecting” depending on the context.
- the phrase “if determined” or “if detected [condition or event described]” may be interpreted in context to mean “once determined” or “in response to determining” or “once detected [condition or event described] ] or “in response to detecting [conditions or events described]”.
- FIG. 1 is a schematic flow chart showing an implementation of an image processing method in a billiard game provided by Embodiment 1 of the present invention. As shown in FIG. 1 , the image processing method in the billiard game may specifically include the following steps:
- Step S101 Collecting video information of the billiard table including the billiard table and the billiard on the countertop by the photographing device.
- the camera device may be a camera, and the camera refers to a device that can collect video or image sequences, and may be an industrial camera, a web camera, a surveillance camera, a camera equipped with the computer itself, and the like.
- Step S102 analyzing the video information based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- the projection model is shown in Fig. 2.
- the cone with the camera's optical center as the apex and tangent to the ball is constructed.
- the section cut by the plane of the table (the projection of the billiard on the plane) is an ellipse, which is the image of the ball.
- the shape presented in is that the physical size of the billiards is fixed, and since the ball is always tangent to the plane of the table, the position of the billiards and the vertical projection point of the center of the sphere are mutually determined.
- the elliptical position ie, the elliptical center position
- the elliptical shape including the long axis length, the short axis length, and the long axis direction
- the position information and ellipse shape of the billiards can be derived.
- the above position and length may be based on the physical coordinates of the table, or may be based on image coordinates, or normalized coordinates, and the like. It should be noted that the ideal situation in which the main optical axis of the camera is perpendicular to the mesa is shown in FIG. 2. In fact, even if the main optical axis is not perpendicular to the mesa, the ball is still elliptical in the image, and the above parameters can still be derived from each other.
- the elliptical position i.e., the position of the elliptical center point
- the billiard position and the elliptical shape can be derived.
- One implementation is:
- the long side of the mesa is the X-axis direction
- the wide side of the mesa is the Y-axis. If the optical center of the camera is located directly above the center of the table and the distance from the table h, the coordinates are (0, 0, h).
- the forward process of billiard projection is: know h, x, y, r, find x', y', a, b, ⁇ .
- This is easily done by establishing a cone equation and solving the joint equation of the cone and the plane.
- the actual need is to know h, x', y', r, find x, y, a, b, ⁇ .
- This requires x, y as the quantity to be quantified, and also establishes the cone equation and solves the joint equation of the cone and the plane, which can be used to find x, y.
- the above is an implementation of comparative specifications, there are actually many alternatives, not enumerated.
- the video information includes distribution information of an elliptical area corresponding to each billiard on a table surface
- analyzing the video information based on the constructed projection model including the shooting device and the billiard position, and obtaining the position information of the billiard includes the following steps:
- Step S201 detecting an elliptical region that conforms to the projection model from the distribution information.
- the distribution information may be a distribution of elliptical regions on the mesa, and may be: there is no overlapping region between all elliptical regions, that is, all elliptical regions are independent; or: at least one elliptical region is independent There are overlaps between two or more elliptical regions; it may also be that all elliptical regions are not independent, that is, for any ellipse, at least overlap with its adjacent elliptical region.
- the overlapping regions generally refer to partial overlap.
- Detecting an elliptical region conforming to the projection model from the distribution information, and also detecting an elliptical contour conforming to the projection model for example, directly applying a Hough transform (Hough) Transform) or the random sample consensus (RANSAC) method, which directly detects all ellipse that conforms to the (x', y', a, b, ⁇ ) constraint from the distribution information.
- Hough transform Hough transform
- RBSAC random sample consensus
- the elliptical region is solid (the region surrounded by the curve), the elliptical contour is hollow (closed curve), and if the "ellipse" is mentioned, the elliptical region or the elliptical contour is included, which can be understood according to the context. . It can be understood that the elliptical region includes an elliptical contour of the elliptical region. Therefore, the detection may be performed by first detecting an elliptical region and further detecting an elliptical contour conforming to the projection model; or, first detecting an ellipse of the elliptical region.
- the contour which further detects the elliptical region that conforms to the projection model, does not limit the scope of protection of the embodiments of the present invention.
- Step S202 Calculate the spatial geometric position relationship of the elliptical region corresponding to the billiard in the shooting model according to the shooting device, the billiards, and the position information of the ellipse region that matches the projection model.
- analyzing the video information based on the constructed projection model including the photographing device and the billiard position, and obtaining the position information of the billiard includes the following steps:
- Step S301 dividing the video information into a plurality of frames.
- a frame is a single image frame of the smallest unit of video information.
- One frame is a still picture, and successive frames form an animation.
- the video information is divided into a plurality of frames, that is, divided into a plurality of pictures, each of which constitutes one picture.
- Step S302 Segment the elliptical area and the mesa area corresponding to the billiard in each of the plurality of frames based on the projection model.
- the elliptical area corresponding to the billiard is projected on the plane where the table top is located, wherein since the mesa is substantially unchanged, the frame may be used in each of the plurality of frames based on the projection model.
- the ellipse area and the mesa area corresponding to the billiards are divided to obtain all the elliptical areas.
- Step S303 Divide the set of the elliptical regions into a plurality of connected regions.
- the area shown in FIG. 5-A is a connected area formed by overlapping three elliptical areas. It can be understood that the area shown in FIG. 5-B is a connected area formed by an elliptical area.
- Step S304 Acquire location information of the connected area, and use position information of each of the plurality of connected areas as position information of billiards corresponding to the respective elliptical areas.
- Step S304 includes two situations:
- the first case can be implemented as follows.
- Obtaining the location information of the connected area, and the location information of each of the plurality of connected areas as the location information of the billiard corresponding to each of the elliptical areas respectively includes:
- the elliptical area is divided into non-overlapping areas.
- the result of extracting the connected area shown in FIG. 5-A is as shown in FIG. 5-C.
- the following implementation manner converting the image in the video information into a grayscale image to fix a threshold (such as 200) or an adaptive threshold (such as using the previous tracking result to know that there are n balls on the mesa, then the gray level of all pixels is high
- the image is binarized to the lower 20th nth gray value as a threshold value, and is divided into an elliptical region and a mesa region, and each connected region of the elliptical region corresponds to one billiard.
- the billiards of whatever color are used have the characteristics of a highlight area at the center position, and the highlight areas of adjacent billiards do not overlap.
- each connected area is either an elliptical area of a single billiard or an adjoining number of elliptical areas.
- the shape parameter of the elliptical region is related to the elliptical position, but is approximately unchanged in a connected region.
- the projection model is established by taking the central position of the connected region as the elliptical position, and the elliptical shape thus obtained is pixelated, and the morphological corrosion is performed on the connected region by using it as a template. After etching, several small connected regions are obtained, and each small connected region corresponds to one. Billiards, the position information of each small connected area is used as the position information of the corresponding billiards. It should be noted that, therefore, the present embodiment can implement the blurring processing on the connected area, that is, it is not necessary to divide and connect the connected areas in which the elliptical areas overlap, and the processing efficiency is high.
- acquiring location information of the connected area, and using location information of each of the plurality of connected areas as The location information of the billiard corresponding to each ellipse area may include:
- Step S401 Acquire an area size of the connected area.
- Step S402 Matching the area size with a preset threshold to obtain a matching result.
- the elliptical model is established as the elliptical position of the connected region, that is, the shape parameter is determined.
- the number of ellipse in the connected region is calculated, and then m elliptical center positions are calculated for the connected region, thereby determining m ellipse of the shape parameter, the union of the m elliptical coverage areas is required to be the entire connected area, and the inscribed circles of the m ellipse do not overlap each other. If the number m and m center positions above cannot be calculated, all the possibilities can be exhausted, and then the matching result that meets the requirements can be selected.
- Step S403 extracting, from the connected region, a plurality of circles that do not overlap each other based on the matching result, and each circle corresponds to a circumscribed ellipse that conforms to the projection model and is circumscribed to the circle, and the circumscribed ellipse occupies The union of the regions is the connected region; the position information of the plurality of circles that do not overlap each other is converted into position information of the billiards.
- FIG. 5-D the result of extracting the connected regions shown in FIG. 5-A is as shown in FIG. 5-D.
- the positional information of each of the independent regions is obtained by dividing the connected region in which the overlapping region exists into a plurality of circles that do not overlap each other, that is, the coordinates obtained by performing coordinate transformation on the center of the inscribed circle The coordinates of the vertical projection point of the billiard.
- the relative position before the billiards is not the absolute position of each billiard, so the approximation process does not affect the accuracy of the billiard position information, but improves the processing efficiency. The algorithm was optimized.
- the video information of the billiard table and the billiard on the countertop is collected by the photographing device; the video information is analyzed based on the constructed projection model including the photographing device and the billiard position, and the billiard is obtained.
- Position information wherein the video information includes an image in which the billiard shape is an ellipse.
- the billiard shape is an ellipse, and the position information of the billiard in the image of the video information is obtained based on the projection model, thereby improving the accuracy of the position information.
- the implementation process of the embodiment of the present invention is simple, and has strong practicability and ease of use.
- FIG. 7 is a structural block diagram of an image processing apparatus in a billiard game provided by Embodiment 2 of the present invention.
- the image processing device 70 in the billiard game includes an acquisition module 71 and an analysis module 72. Among them, the specific functions of each module are as follows:
- the collecting module 71 is configured to collect video information of a billboard including a billiard table and a billiard on the counter by the photographing device;
- the analysis module 72 is configured to analyze the video information based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- the video information includes distribution information of an elliptical area corresponding to each billiard on a table surface;
- the analysis module 72 includes:
- a detecting unit configured to detect, from the distribution information, an elliptical region that conforms to the projection model
- a calculating unit configured to calculate, according to the spatial geometric position relationship of the elliptical region corresponding to the billiard in the shooting device, the billiard, and the distribution information in the projection model, based on the position information of the elliptical region that conforms to the projection model The location information of the billiard to which the ellipse area belongs is obtained.
- the analyzing module 72 includes:
- a first dividing unit configured to divide the video information into multiple frames
- a segmentation unit configured to segment an elliptical region and a mesa region corresponding to billiards in each of the plurality of frames based on the projection model
- a second dividing unit configured to divide the set of the elliptical regions into a plurality of connected regions
- an acquiring unit configured to acquire location information of the connected area, and use location information of each of the plurality of connected areas as position information of billiards corresponding to the respective elliptical areas.
- the obtaining unit includes:
- the sub-unit is configured to divide the connected area into independent areas, obtain location information of each of the independent areas, and use location information of the independent area as location information of billiards corresponding to the independent area.
- the dividing subunit includes:
- a matching subunit configured to match the area size with a preset threshold to obtain a matching result
- Extracting a subunit configured to extract, from the connected region, a plurality of circles that do not overlap each other based on the matching result, each circle corresponding to a circumscribed ellipse that conforms to the projection model and is circumscribed to the circle, the outer
- the merged area of the cut ellipse occupying area is the connected area; the position information of the plurality of circles not overlapping each other is converted into position information of the billiard.
- the video information of the billiard table and the billiard on the countertop is collected by the photographing device; the video information is analyzed based on the constructed projection model including the photographing device and the billiard position, and the billiard is obtained.
- Position information wherein the video information includes an image in which the billiard shape is an ellipse.
- the billiard shape is an ellipse, and the position information of the billiard in the image of the video information is obtained based on the projection model, thereby improving the accuracy of the position information.
- the implementation process of the embodiment of the present invention is simple, and has strong practicability and ease of use.
- FIG. 8 is a schematic diagram of a terminal device according to Embodiment 3 of the present invention.
- the terminal device 8 of this embodiment includes a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and operable on the processor 80, such as an image in a billiard game. Processing method.
- the processor 80 executes the computer program 82, the steps in the embodiment of the image processing method in each of the above billiard games are implemented, for example, steps S101 to S102 shown in FIG.
- the processor 80 executes the computer program 82, the functions of the modules in the above various device embodiments are implemented, such as the functions of the modules 81 to 82 shown in FIG.
- the computer program 82 can be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to complete this invention.
- the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program 82 in the terminal device 8.
- the computer program 82 can be divided into an acquisition module and an analysis module, and the specific functions of each module are as follows:
- An acquisition module configured to collect video information of a billboard including a billiard table and a billiard on the counter by a photographing device;
- the analysis module is configured to analyze the video information based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- the terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, or a cloud server.
- the terminal device may include, but is not limited to, a processor 80 and a memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of a terminal device, and does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or combine some components, or different components, such as
- the terminal device may further include an input/output device, a network access device, a bus, and the like.
- the so-called processor 80 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8.
- the memory 81 may also be an external storage device of the terminal device 8, for example, a plug-in hard disk provided on the terminal device 8, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on.
- the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device.
- the memory 81 is used to store the computer program and other programs and data required by the terminal device.
- the memory 81 can also be used to temporarily store data that has been output or is about to be output.
- each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed.
- the module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above.
- Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be hardware.
- Formal implementation can also be implemented in the form of software functional units.
- the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application.
- For the specific working process of the unit and the module in the foregoing system reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
- the disclosed apparatus/terminal device and method may be implemented in other manners.
- the device/terminal device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division.
- there may be another division manner for example, multiple units.
- components may be combined or integrated into another system, or some features may be omitted or not performed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
- the units described as being separated into separate components may or may not be physically separated, and the components converted to the unit display may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. on. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated modules/units if implemented in the form of software functional units and converted to separate products for sale or use, may be stored in a computer readable storage medium.
- the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
- the computer program may be stored in a computer readable storage medium.
- the steps of the various method embodiments described above may be implemented when the program is executed by the processor.
- the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
- the computer readable medium can include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM, Random) Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
- ROM Read Only memory
- RAM Random Access Memory
Abstract
Description
Claims (10)
- 一种台球比赛中的图像处理方法,其特征在于,应用于包含拍摄装置的系统,所述图像处理方法包括:An image processing method in a billiard game, which is characterized in that it is applied to a system including a photographing device, and the image processing method includes:通过所述拍摄装置采集包含台球桌的台面及台面上的台球的视频信息;Collecting, by the photographing device, video information of a billboard including a billiard table and a billiard on the countertop;基于构建的包括所述拍摄装置、台球位置的投射模型对所述视频信息进行分析,得到台球的位置信息;所述视频信息包含的图像中台球形状为椭圆。The video information is analyzed based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- 根据权利要求1所述的台球比赛中的图像处理方法,其特征在于,所述视频信息包括各个台球对应的椭圆区域在台面上的分布信息;The image processing method of the billiard game according to claim 1, wherein the video information comprises distribution information of an elliptical area corresponding to each billiard on the table surface;基于构建的包括所述拍摄装置、台球位置的投射模型对所述视频信息进行分析,得到台球的位置信息包括:The video information is analyzed based on the constructed projection model including the shooting device and the billiard position, and the position information of the billiard is obtained:从所述分布信息中检测出符合所述投射模型的椭圆区域;An elliptical region conforming to the projection model is detected from the distribution information;根据所述投射模型中所述拍摄装置、台球以及所述分布信息中台球对应的椭圆区域的空间几何位置关系,基于所述符合所述投射模型的椭圆区域的位置信息,计算得到该椭圆区域所属的台球的位置信息。Determining, according to the spatial geometric position relationship of the elliptical region corresponding to the billiard in the shooting model, the positional information of the elliptical region conforming to the projection model, and calculating the elliptical region The location information of the billiards.
- 根据权利要求1所述的台球比赛中的图像处理方法,其特征在于,基于构建的包括所述拍摄装置、台球位置的投射模型对从所述视频信息进行分析,得到台球的位置信息包括:The image processing method in a billiard game according to claim 1, wherein the position information of the billiards is obtained based on the constructed projection model including the shooting device and the billiard position, and the position information of the billiards is:将所述视频信息划分为多个帧;Dividing the video information into a plurality of frames;基于所述投射模型,将所述多个帧中每个帧中的台球对应的椭圆区域和台面区域进行分割;And dividing, according to the projection model, an elliptical area and a mesa area corresponding to billiards in each of the plurality of frames;将所述椭圆区域的集合划分为多个连通区域;Dividing the set of elliptical regions into a plurality of connected regions;获取所述连通区域的位置信息,并将所述多个连通区域中的各个椭圆区域的位置信息分别作为与所述各个椭圆区域对应的台球的位置信息。Obtaining location information of the connected area, and using position information of each of the plurality of connected areas as position information of billiards corresponding to the respective elliptical areas.
- 根据权利要求3所述的台球比赛中的图像处理方法,其特征在于,获取所述连通区域的位置信息,并将所述多个连通区域中的各个椭圆区域的位置信息分别作为与所述各个椭圆区域对应的台球的位置信息包括:The image processing method in a billiard game according to claim 3, wherein position information of the connected area is acquired, and position information of each of the plurality of connected areas is respectively used as the The position information of the billiard corresponding to the ellipse area includes:将所述连通区域划分为独立区域,获取所述每个独立区域的位置信息,并将所述独立区域的位置信息分别作为与所述独立区域对应的台球的位置信息。Dividing the connected area into independent areas, acquiring location information of each of the independent areas, and using the location information of the independent area as location information of billiards corresponding to the independent area.
- 如权利要求3所述的台球比赛中的图像处理方法,其特征在于,获取所述连通区域的位置信息,并将所述多个连通区域中的各个椭圆区域的位置信息分别作为与所述各个椭圆区域对应的台球的位置信息包括:The image processing method in a billiard game according to claim 3, wherein position information of the connected area is acquired, and position information of each of the plurality of connected areas is respectively used as the The position information of the billiard corresponding to the ellipse area includes:获取连通区域的面积大小;Obtain the area size of the connected area;将所述面积大小与预设的阈值进行匹配获得匹配结果;Matching the area size with a preset threshold to obtain a matching result;基于所述匹配结果从连通区域中提取出多个彼此不重叠的圆,每个圆都对应一个符合所述投射模型且外切于该圆的外切椭圆,所述外切椭圆占据区域的并集为所述连通区域;将所述多个彼此不重叠的圆的位置信息转化为台球的位置信息。Extracting, from the connected region, a plurality of circles that do not overlap each other based on the matching result, each circle corresponding to a circumscribed ellipse conforming to the projection model and circumscribed to the circle, the circumscribed ellipse occupying the region The set is the connected area; the position information of the plurality of circles that do not overlap each other is converted into position information of the billiard.
- 一种台球比赛中的图像处理装置,其特征在于,包括:An image processing device in a billiard game, comprising:采集模块,用于通过拍摄装置采集包含台球桌的台面及台面上的台球的视频信息;An acquisition module, configured to collect video information of a billboard including a billiard table and a billiard on the counter by a photographing device;分析模块,用于基于构建的包括所述拍摄装置、台球位置的投射模型对所述视频信息进行分析,得到台球的位置信息;所述视频信息包含的图像中台球形状为椭圆。The analysis module is configured to analyze the video information based on the constructed projection model including the photographing device and the billiard position to obtain position information of the billiard; the video information includes an image in which the billiard shape is an ellipse.
- 根据权利要求6所述的台球比赛中的图像处理装置,其特征在于,所述视频信息包括各个台球对应的椭圆区域在台面上的分布信息;The image processing device of the billiard game according to claim 6, wherein the video information comprises distribution information of an elliptical area corresponding to each billiard on the table surface;所述分析模块包括:The analysis module includes:检测单元,用于从所述分布信息中检测出符合所述投射模型的椭圆区域;a detecting unit, configured to detect, from the distribution information, an elliptical region that conforms to the projection model;计算单元,用于根据所述投射模型中所述拍摄装置、台球以及所述分布信息中台球对应的椭圆区域的空间几何位置关系,基于所述符合所述投射模型的椭圆区域的位置信息,计算得到该椭圆区域所属的台球的位置信息。a calculating unit, configured to calculate, according to the spatial geometric position relationship of the elliptical region corresponding to the billiard in the shooting device, the billiard, and the distribution information in the projection model, based on the position information of the elliptical region that conforms to the projection model The location information of the billiard to which the ellipse area belongs is obtained.
- 根据权利要求6所述的台球比赛中的图像处理装置,其特征在于,所述分析模块包括:The image processing apparatus of the billiard game according to claim 6, wherein the analysis module comprises:第一划分单元,用于将所述视频信息划分为多个帧;a first dividing unit, configured to divide the video information into multiple frames;分割单元,用于基于所述投射模型,将所述多个帧中每个帧中的台球对应的椭圆区域和台面区域进行分割;a segmentation unit, configured to segment an elliptical region and a mesa region corresponding to billiards in each of the plurality of frames based on the projection model;第二划分单元,用于将所述椭圆区域的集合划分为多个连通区域;a second dividing unit, configured to divide the set of the elliptical regions into a plurality of connected regions;获取单元,用于获取所述连通区域的位置信息,并将所述多个连通区域中的各个椭圆区域的位置信息分别作为与所述各个椭圆区域对应的台球的位置信息。And an acquiring unit, configured to acquire location information of the connected area, and use location information of each of the plurality of connected areas as position information of billiards corresponding to the respective elliptical areas.
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述方法的步骤。A terminal device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program as claimed in claim 1 5 The steps of any of the methods described.
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述方法的步骤。A computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464888.4 | 2017-12-28 | ||
CN201711464888.4A CN108090486B (en) | 2017-12-28 | 2017-12-28 | Image processing method and device in billiard game |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019128504A1 true WO2019128504A1 (en) | 2019-07-04 |
Family
ID=62180422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/115386 WO2019128504A1 (en) | 2017-12-28 | 2018-11-14 | Method and apparatus for image processing in billiards game, and terminal device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108090486B (en) |
WO (1) | WO2019128504A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108090486B (en) * | 2017-12-28 | 2020-06-09 | 深圳市超级视觉科技有限公司 | Image processing method and device in billiard game |
CN108960098B (en) * | 2018-06-22 | 2022-04-01 | 梁栋 | Billiard collision relation recognition method and billiard game scoring system |
CN109011534B (en) * | 2018-08-08 | 2020-08-04 | Oppo广东移动通信有限公司 | Billiard ball hitting assisting method and device, storage medium and electronic equipment |
WO2020105973A1 (en) * | 2018-11-23 | 2020-05-28 | 김현철 | Billiard hall auxiliary system and server thereof |
CN110334617B (en) * | 2019-06-20 | 2021-04-27 | 梁栋 | Method for judging collision of billiards with pool edges and billiard game scoring system |
CN110443859B (en) * | 2019-07-30 | 2023-05-30 | 佛山科学技术学院 | Computer vision-based billiard foul judging method and system |
CN112891909A (en) * | 2019-11-19 | 2021-06-04 | 杨清平 | Snooker scoring device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955693A (en) * | 2013-05-06 | 2014-07-30 | 北京瑞盖科技有限公司 | Nine-ball computer-assisted detection identification method |
CN104740866A (en) * | 2013-12-27 | 2015-07-01 | 唐方旭 | Precise positioning device for resetting balls in snooker |
CN105261048A (en) * | 2015-09-11 | 2016-01-20 | 中国人民解放军信息工程大学 | Accurate positioning method for central cone-beam projection position of small sphere |
CN107270812A (en) * | 2017-06-26 | 2017-10-20 | 江苏密斯欧智能科技有限公司 | Target ball recognition methods in a kind of automatic assembling |
CN108090486A (en) * | 2017-12-28 | 2018-05-29 | 深圳市超级视觉科技有限公司 | Image processing method and device in a kind of game of billiards |
CN108079565A (en) * | 2017-12-28 | 2018-05-29 | 深圳市超级视觉科技有限公司 | A kind of game of billiards scoring system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8992315B2 (en) * | 2009-07-27 | 2015-03-31 | Obscura Digital, Inc. | Automated enhancements for billiards and the like |
CN102252661B (en) * | 2011-04-02 | 2013-04-10 | 华南理工大学 | Globoid three-dimensional positioning method for machine vision |
CN104954750A (en) * | 2015-06-18 | 2015-09-30 | 北京共创普惠科技有限公司 | Data processing method and device for billiard system |
CN105107190A (en) * | 2015-09-15 | 2015-12-02 | 清华大学 | Image collecting and processing system applied to Chinese billiards and image processing method |
KR101757788B1 (en) * | 2015-12-17 | 2017-07-14 | 연세대학교 산학협력단 | Method and Apparatus of Scoring Pool |
CN106952307B (en) * | 2017-03-22 | 2020-01-07 | 广东工业大学 | Method and system for positioning sphere in image |
-
2017
- 2017-12-28 CN CN201711464888.4A patent/CN108090486B/en active Active
-
2018
- 2018-11-14 WO PCT/CN2018/115386 patent/WO2019128504A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103955693A (en) * | 2013-05-06 | 2014-07-30 | 北京瑞盖科技有限公司 | Nine-ball computer-assisted detection identification method |
CN104740866A (en) * | 2013-12-27 | 2015-07-01 | 唐方旭 | Precise positioning device for resetting balls in snooker |
CN105261048A (en) * | 2015-09-11 | 2016-01-20 | 中国人民解放军信息工程大学 | Accurate positioning method for central cone-beam projection position of small sphere |
CN107270812A (en) * | 2017-06-26 | 2017-10-20 | 江苏密斯欧智能科技有限公司 | Target ball recognition methods in a kind of automatic assembling |
CN108090486A (en) * | 2017-12-28 | 2018-05-29 | 深圳市超级视觉科技有限公司 | Image processing method and device in a kind of game of billiards |
CN108079565A (en) * | 2017-12-28 | 2018-05-29 | 深圳市超级视觉科技有限公司 | A kind of game of billiards scoring system |
Also Published As
Publication number | Publication date |
---|---|
CN108090486A (en) | 2018-05-29 |
CN108090486B (en) | 2020-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019128504A1 (en) | Method and apparatus for image processing in billiards game, and terminal device | |
WO2020207191A1 (en) | Method and apparatus for determining occluded area of virtual object, and terminal device | |
US10373380B2 (en) | 3-dimensional scene analysis for augmented reality operations | |
WO2018120038A1 (en) | Method and device for target detection | |
JP5822322B2 (en) | Network capture and 3D display of localized and segmented images | |
CN110363817B (en) | Target pose estimation method, electronic device, and medium | |
CN112528831B (en) | Multi-target attitude estimation method, multi-target attitude estimation device and terminal equipment | |
US20180018499A1 (en) | Method for calculating area of fingerprint overlapping region and electronic device thereof | |
US20150098645A1 (en) | Method, apparatus and system for selecting a frame | |
US20170154204A1 (en) | Method and system of curved object recognition using image matching for image processing | |
CN112581629A (en) | Augmented reality display method and device, electronic equipment and storage medium | |
CN109784250B (en) | Positioning method and device of automatic guide trolley | |
CN107610151B (en) | Pedestrian trajectory processing method/system, computer-readable storage medium and device | |
CN111079772A (en) | Image edge extraction processing method, device and storage medium | |
CN106709500B (en) | Image feature matching method | |
CN110930411B (en) | Human body segmentation method and system based on depth camera | |
CN111325798B (en) | Camera model correction method, device, AR implementation equipment and readable storage medium | |
US11354883B2 (en) | Image processing method and apparatus, and electronic device | |
CN112149583A (en) | Smoke detection method, terminal device and storage medium | |
CN108492284B (en) | Method and apparatus for determining perspective shape of image | |
CN107480673B (en) | Method and device for determining interest region in medical image and image editing system | |
CN113902932A (en) | Feature extraction method, visual positioning method and device, medium and electronic equipment | |
JP7121132B2 (en) | Image processing method, apparatus and electronic equipment | |
CN114897999B (en) | Object pose recognition method, electronic device, storage medium, and program product | |
WO2023109086A1 (en) | Character recognition method, apparatus and device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18894741 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18894741 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/11/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18894741 Country of ref document: EP Kind code of ref document: A1 |