[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111798434A - Martial arts competition area detection method based on Ranpac model - Google Patents

Martial arts competition area detection method based on Ranpac model Download PDF

Info

Publication number
CN111798434A
CN111798434A CN202010652936.8A CN202010652936A CN111798434A CN 111798434 A CN111798434 A CN 111798434A CN 202010652936 A CN202010652936 A CN 202010652936A CN 111798434 A CN111798434 A CN 111798434A
Authority
CN
China
Prior art keywords
pixel
point
pixels
boundary
competition area
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.)
Pending
Application number
CN202010652936.8A
Other languages
Chinese (zh)
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.)
Harbin Institute of Physical Education
Original Assignee
Harbin Institute of Physical Education
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 Harbin Institute of Physical Education filed Critical Harbin Institute of Physical Education
Priority to CN202010652936.8A priority Critical patent/CN111798434A/en
Publication of CN111798434A publication Critical patent/CN111798434A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/20Movements or behaviour, e.g. gesture recognition
    • G06V40/23Recognition of whole body movements, e.g. for sport training
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20192Edge enhancement; Edge preservation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30221Sports video; Sports image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Psychiatry (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

A martial arts competition area detection method based on a Ranpac model belongs to the technical field of competition area detection. The method solves the problem that the detected competition area is easy to include the non-competition area pixel points due to the poor fault tolerance of the conventional competition area detection method based on hough transformation on the non-boundary pixels. The method comprises the steps of firstly converting a color image in an RGB format into an image in an HSB format, then screening white dot pixels which possibly form the boundary of a competition area by carrying out threshold value screening and neighborhood searching on H channel data, further designing a boundary detection algorithm based on a Ranpac model to fit the boundary of the competition area, and finally processing non-boundary pixels by a ray method, thereby accurately detecting the position of the martial arts competition area.

Description

Martial arts competition area detection method based on Ranpac model
Technical Field
The invention belongs to the technical field of competition area detection, and particularly relates to a martial arts competition area detection method based on a Ranpac model.
Background
Since the region detection plays important roles in target detection and tracking, athlete motion recognition and automatic scoring in the process of sports competition, the technology becomes a hot point technology of image processing research and is applied to some popular sports competitions. For example, a football field marker line detection method (football field marker line detection [ J ] based on Hough transform, computer and digital engineering), a line detection method for detecting a tennis field (rapid tennis court ground detection [ J ] based on Hough transform, technical spread), and a general automatic sports field detection method (automatic field detection method in sports video [ J ]. computer system application). However, no detection method specially aiming at the martial arts competition area exists up to now. In addition, the three methods adopt hough transformation to detect the boundary of the sports field so as to detect the competition area, the hough transformation has poor fault tolerance to non-boundary pixels, and the detected competition area easily comprises non-competition area pixels.
Disclosure of Invention
The invention aims to solve the problem that a detected competition area is easy to include pixel points of a non-competition area due to the poor fault tolerance of the conventional competition area detection method based on hough transformation on non-boundary pixels, and provides a martial arts competition area detection method based on a Ranpac model.
The technical scheme adopted by the invention for solving the technical problems is as follows: a martial arts competition area detection method based on a Ranpac model comprises the following steps:
step one, acquiring an image containing an martial arts competition area;
step two, after the image obtained in the step one is converted into an HSB format image, white point pixel screening is carried out according to H channel data in the HSB format image;
step three, determining a whole pixel point set forming the boundary of the martial arts competition area from the white point pixels screened out in the step two according to a Ranpac model;
and step four, determining the Wushu competition area by adopting a ray method based on the whole pixel point set forming the boundary of the Wushu competition area determined in the step three.
The invention has the beneficial effects that: the invention provides a method for detecting a martial arts competition area based on a Ranpac model, which aims at the characteristics of a martial arts competition field.
Drawings
FIG. 1 is a flow chart of a method for detecting the Wushu competition area based on a Ranpac model;
FIG. 2 is a flow chart of a white point pixel screening method of the present invention;
FIG. 3 is a flow chart for determining an area for a martial arts competition using ray method;
FIG. 4a) is an image of a martial arts competition area for scene 1;
FIG. 4b) is an image of the martial arts competition area of scene 2;
FIG. 5a) is a graph of white point pixel detection results for scene 1;
FIG. 5b) is a graph of white point pixel detection results for scene 2;
fig. 6a) is a diagram of the boundary pixel detection result of scene 1;
fig. 6b) is a diagram of the boundary pixel detection result of scene 2;
FIG. 7a) is a diagram of race area detection results for scenario 1;
fig. 7b) is a competition area detection result diagram of scene 2.
Detailed Description
The first embodiment is as follows: this embodiment will be described with reference to fig. 1. The martial arts competition area detection method based on the Randac model is specifically realized by the following steps:
step one, acquiring an image containing an martial arts competition area;
step two, after the image obtained in the step one is converted into an HSB format image, white point pixel screening is carried out according to H channel data in the HSB format image;
step three, determining a whole pixel point set forming the boundary of the martial arts competition area from the white point pixels screened out in the step two according to a Ranpac model;
and step four, determining the Wushu competition area by adopting a ray method based on the whole pixel point set forming the boundary of the Wushu competition area determined in the step three.
The second embodiment is as follows: the first difference between the present embodiment and the specific embodiment is: in the first step, the format of the acquired image is an RGB format.
The invention designs a white dot pixel screening method, and white dot pixels which possibly form the boundary of a competition area are initially screened out. Since the martial arts competition area boundary is formed of a white line having a certain width, the boundary peripheral area is formed of a blue carpet. According to the condition, the invention designs a pixel screening method based on a color threshold value and a neighborhood searching method as a white point screening condition, and performs primary screening on H channel data. Where the color threshold corresponds to the color characteristic of the white point pixel and the neighborhood search method corresponds to the color characteristic of the pixels surrounding the boundary.
The third concrete implementation mode: the first difference between the present embodiment and the specific embodiment is: the specific process of the second step is as follows:
suppose P represents the set of all pixel points in the HSB format image;
P={px,y|0≤x≤M-1,0≤y≤N-1} (1)
wherein p isx,yRepresenting pixel points in the set P, x and y respectively represent horizontal and vertical coordinates of the pixel points, and M, N respectively represent width and height of the HSB format image;
the x direction refers to the width direction of the image, and the y direction refers to the height direction of the image.
A flow chart of the white point pixel screening method is shown in fig. 2.
Let Hx,yRepresenting a pixel point px,ySet the threshold range of pixel screening to be [320,360%]If the pixel point px,yH channel gray value ofx,yIn the threshold range 320,360]In, then determine pixel point px,yIs a candidate point, otherwise, the pixel point px,yIs an invalid point;
adopting a neighborhood search method to search the pixel point px,ySearching in the neighborhood of (1), judging by pixel point px,yWhether there is an H-channel gray value in the 9 × 9 neighborhood centered is [230,250 ]]Pixels within the range, if any, pixel px,yIs a white dot pixel, otherwise a pixel point px,yFor the invalid point, the formula is:
Figure BDA0002575649540000031
in the formula, Lx,y1 stands for pixel px,yIs a white dot pixel, L x,y0 stands for pixel px,yAs a null point, Hx,y∈[320,360]Representative pixel point px,yH channel gray value ofx,yIs taken to be [320,360 ]]Q ofx,yRepresenting by a pixel px,ySet of pixel points in 9 × 9 neighborhood centered, Hx+m,y+nRepresentative pixel point px+m,y+nH channel gray scale value of (1); m ═ 4, -3, -2, -1,0,1,2,3, 4; n ═ 4, -3, -2, -1,0,1,2,3, 4;
and after traversing each pixel point in the HSB format image, screening out all white point pixels in the HSB format image.
Some white point pixels have been screened out according to equation (2). Some of the white dot pixels belong to the martial arts competition area boundary, and the other part belongs to the background pixels. In order to further screen out area boundary pixels, the invention designs a Randac model special for detecting the boundary of the martial arts competition area, and the Randac model is used for performing straight line fitting on white point pixels. The iterative process of the Randac model is as follows:
the fourth concrete implementation mode: the first difference between the present embodiment and the specific embodiment is: the specific process of the third step is as follows:
step three, selecting any four white point pixels from the white point pixels screened in the step two to form a pixel point set I for the nth iteration(n)
Respectively by pixel point set I(n)Each white dot pixel in the four-dimensional image is a vertex, and the vertexes are sequentially connected end to form a quadrangle;
step three and two, traversing the rest white point pixels (except the pixel point set I)(n)All white point pixels except for the white point pixels), respectively judging whether the rest white point pixels are on the quadrilateral boundary of the step three, and recording the number C of all white point pixels on the quadrilateral boundarynThe set of all white point pixels on the quadrilateral boundary is B(n)
Step three, repeating the step three to the step three, wherein when the iteration is performed for the (n + 1) th time, a pixel point set consisting of four selected white point pixels is I(n+1)
At the n +1 th iteration, the number of all white point pixels on the quadrilateral boundary is recorded as C(n+1)The set of all white point pixels on the quadrilateral boundary is B(n+1)
Step three, step four, if C(n+1)>C(n)Then, I is retained(n+1)、C(n+1)And B(n+1)Otherwise, C(n+1)≤C(n)Retention of I(n),C(n)And B(n)
Until all cases of a pixel point set consisting of four white point pixels are traversed, a set B containing the most white point pixels is reserved(m),B(m)The set of all white point pixels on the quadrilateral boundary recorded in the mth iteration is obtained;
B(m)and I(m)All white point pixels contained in (A) constitute the whole pixel point set of the boundary of the martial arts competition area, I(m)And the pixel point set consists of four white point pixels selected in the mth iteration.
In this embodiment, the entire white point pixels are traversed, and whether the white point pixels are on the quadrilateral boundary is determined according to whether the coordinates of the white point are consistent with the coordinates of the boundary pixel points.
Selecting four white point pixels from the white point pixels screened in the step two, and selecting the set B containing the most white point pixels after traversing all possible situations(m)Corresponding to I(m)
The fifth concrete implementation mode: this embodiment will be described with reference to fig. 3. The first difference between the present embodiment and the specific embodiment is: the specific process of the step four is as follows:
and traversing pixel points on the non-regional boundary in the HSB format image one by one, and for a pixel point on a certain non-regional boundary, if the number of the regional boundary pixel points on the horizontal scanning line of the pixel point is K and K% 2 is 0, the pixel point is a pixel point outside the martial arts competition region, otherwise, the pixel point is a pixel point inside the martial arts competition region.
Wherein, K% 2 ═ 0 represents K divided by 2 and 0. And traversing pixel points on the non-region boundary in the HSB format image one by one to obtain all pixel points in the martial arts competition region.
Analysis of Experimental results
The software platform adopted in the experimental part is a 64-bit Windows 7 operating system, and the simulation environment is Matlab 2016 a. The processor model of the hardware platform is Intel i 59400F, the memory capacity is 16GB DDR4, and the video card model is GTX 1660 ti. The simulation process performs area detection on two images containing the martial arts competition area, and the input and output of the program are both digital images with jpg suffix. Images of the martial arts competition area are shown in fig. 4a) and 4 b). The preliminarily screened white dot pixels are shown in fig. 5a) and 5b) by the white dot pixel screening method. The region boundaries fitted by the Randac model are shown in FIG. 6a) and FIG. 6 b). The martial arts competition area resulting from processing non-boundary pixels by ray method is shown in fig. 7a) and 7 b).
As can be seen from fig. 5a) and 5b), the white-point pixel screening method screens the competition area boundary pixels and some non-boundary pixels, which all satisfy the screening condition shown in formula (2). As can be seen from fig. 6a) and 6b), the rannac model can discard non-boundary pixels and leave only the boundary pixels that constitute the race area. As can be seen from fig. 7a) and 7b), the ray method can identify the entire pixels within the boundary from the boundary pixels. From the above experimental results, it can be seen that: the Wushu competition area detection method based on the Ranpac model can effectively eliminate the interference of pixels in a non-competition area, and can accurately detect the Wushu competition area.
The above-described calculation examples of the present invention are merely to explain the calculation model and the calculation flow of the present invention in detail, and are not intended to limit the embodiments of the present invention. It will be apparent to those skilled in the art that other variations and modifications of the present invention can be made based on the above description, and it is not intended to be exhaustive or to limit the invention to the precise form disclosed, and all such modifications and variations are possible and contemplated as falling within the scope of the invention.

Claims (5)

1. A martial arts competition area detection method based on a Ranpac model is characterized by comprising the following steps:
step one, acquiring an image containing an martial arts competition area;
step two, after the image obtained in the step one is converted into an HSB format image, white point pixel screening is carried out according to H channel data in the HSB format image;
step three, determining a whole pixel point set forming the boundary of the martial arts competition area from the white point pixels screened out in the step two according to a Ranpac model;
and step four, determining the Wushu competition area by adopting a ray method based on the whole pixel point set forming the boundary of the Wushu competition area determined in the step three.
2. The method for detecting martial arts competition area based on the Randac model as claimed in claim 1, wherein in the first step, the acquired image is in RGB format.
3. The method for detecting martial arts competition area based on the Randac model as claimed in claim 1, wherein the specific process of the second step is as follows:
suppose P represents the set of all pixel points in the HSB format image;
P={px,y|0≤x≤M-1,0≤y≤N-1} (1)
wherein p isx,yRepresenting pixel points in the set P, x and y respectively represent horizontal and vertical coordinates of the pixel points, and M, N respectively represent width and height of the HSB format image;
let Hx,yRepresenting a pixel point px,ySet the threshold range of pixel screening to be [320,360%]If the pixel point px,yH channel gray value ofx,yIn the threshold range 320,360]In, then determine pixel point px,yIs a candidate point, otherwise, the pixel point px,yIs an invalid point;
adopting a neighborhood search method to search the pixel point px,ySearching in the neighborhood of (1), judging by pixel point px,yWhether there is an H-channel gray value in the 9 × 9 neighborhood centered is [230,250 ]]Pixels within the range, if any, pixel px,yIs a white dot pixel, otherwise a pixel point px,yFor the invalid point, the formula is:
Figure FDA0002575649530000011
in the formula, Lx,y1 stands for pixel px,yIs a white dot pixel, Lx,y0 stands for pixel px,yAs a null point, Hx,y∈[320,360]Representative pixel point px,yH channel gray value ofx,yIs taken to be [320,360 ]]Q ofx,yRepresenting by a pixel px,ySet of pixel points in 9 × 9 neighborhood centered, Hx+m,y+nRepresentative pixel point px+m,y+nH channel gray scale value of (1);
and after traversing each pixel point in the HSB format image, screening out all white point pixels in the HSB format image.
4. The method for detecting martial arts competition area based on the Randac model as claimed in claim 1, wherein the concrete process of the third step is as follows:
step three, selecting any four white point pixels from the white point pixels screened in the step two to form a pixel point set I for the nth iteration(n)
Respectively by pixel point set I(n)Each white dot pixel in the four-dimensional image is a vertex, and the vertexes are sequentially connected end to form a quadrangle;
step two, traversing the rest white point pixels, respectively judging whether the rest white point pixels are on the quadrilateral boundary of the step three, and recording the number C of all white point pixels on the quadrilateral boundarynThe set of all white point pixels on the quadrilateral boundary is B(n)
Step three, repeating the step three to the step three, wherein when the iteration is performed for the (n + 1) th time, a pixel point set consisting of four selected white point pixels is I(n+1)
At the n +1 th iteration, the number of all white point pixels on the quadrilateral boundary is recorded as C(n+1)The set of all white point pixels on the quadrilateral boundary is B(n+1)
Step three, step four, if C(n+1)>C(n)Then, I is retained(n+1)、C(n+1)And B(n+1)Otherwise, C(n+1)≤C(n)Retention of I(n),C(n)And B(n)
Until all cases of a pixel point set consisting of four white point pixels are traversed, a set B containing the most white point pixels is reserved(m),B(m)The set of all white point pixels on the quadrilateral boundary recorded in the mth iteration is obtained;
B(m)and I(m)All white point pixels contained in (A) constitute the whole pixel point set of the boundary of the martial arts competition area, I(m)And the pixel point set consists of four white point pixels selected in the mth iteration.
5. The method for detecting martial arts competition area based on the Randac model as claimed in claim 1, wherein the concrete process of the fourth step is as follows:
and traversing pixel points on the non-regional boundary in the HSB format image one by one, and for a pixel point on a certain non-regional boundary, if the number of the regional boundary pixel points on the horizontal scanning line of the pixel point is K and K% 2 is 0, the pixel point is a pixel point outside the martial arts competition region, otherwise, the pixel point is a pixel point inside the martial arts competition region.
CN202010652936.8A 2020-07-08 2020-07-08 Martial arts competition area detection method based on Ranpac model Pending CN111798434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010652936.8A CN111798434A (en) 2020-07-08 2020-07-08 Martial arts competition area detection method based on Ranpac model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010652936.8A CN111798434A (en) 2020-07-08 2020-07-08 Martial arts competition area detection method based on Ranpac model

Publications (1)

Publication Number Publication Date
CN111798434A true CN111798434A (en) 2020-10-20

Family

ID=72810476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010652936.8A Pending CN111798434A (en) 2020-07-08 2020-07-08 Martial arts competition area detection method based on Ranpac model

Country Status (1)

Country Link
CN (1) CN111798434A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261020A (en) * 2015-10-16 2016-01-20 桂林电子科技大学 Method for detecting fast lane line
US20160277673A1 (en) * 2015-03-17 2016-09-22 Disney Enterprises, Inc. Method and system for mimicking human camera operation
CN106981073A (en) * 2017-03-31 2017-07-25 中南大学 A kind of ground moving object method for real time tracking and system based on unmanned plane

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160277673A1 (en) * 2015-03-17 2016-09-22 Disney Enterprises, Inc. Method and system for mimicking human camera operation
CN105261020A (en) * 2015-10-16 2016-01-20 桂林电子科技大学 Method for detecting fast lane line
CN106981073A (en) * 2017-03-31 2017-07-25 中南大学 A kind of ground moving object method for real time tracking and system based on unmanned plane

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
D.FARIN 等: "Fast Camera Calibration for The Analysis of Sport Sequences", 《2005 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO》 *
D.FARIN: ""Fast Camera Calibration for The Analysis of Sport Sequences"", 《2005 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO》 *
IRONFROMICE: "最终ransac拟合矩形", 《HTTP://BLOG.CSDN.NET/FNB362767625/ARTICLE/DETAILS/91453157》 *

Similar Documents

Publication Publication Date Title
US9092868B2 (en) Apparatus for detecting object from image and method therefor
KR101104144B1 (en) System for analysis of motion
CN102110293B (en) Model-based play field registration
US9218537B2 (en) Image processing device and image processing method
CN109271937B (en) Sports ground marker identification method and system based on image processing
US20110311100A1 (en) Method, Apparatus and Computer Program Product for Providing Object Tracking Using Template Switching and Feature Adaptation
KR20190039384A (en) Method for tracking and segmenting a target object in an image using markov chain, and device using the same
CN109409356B (en) Multi-direction Chinese print font character detection method based on SWT
KR101753360B1 (en) A feature matching method which is robust to the viewpoint change
US20100208140A1 (en) Image processing apparatus, image processing method and storage medium storing image processing program
US20030169340A1 (en) Method and apparatus for tracking moving objects in pictures
CN107609571A (en) A kind of adaptive target tracking method based on LARK features
CN115205114A (en) High-resolution image splicing improved algorithm based on ORB (object-oriented bounding box) features
CN110751635A (en) Oral cavity detection method based on interframe difference and HSV color space
US8311269B2 (en) Blocker image identification apparatus and method
JP4906588B2 (en) Specific operation determination device, reference data generation device, specific operation determination program, and reference data generation program
CN111798434A (en) Martial arts competition area detection method based on Ranpac model
CN102148919A (en) Method and system for detecting balls
JP4181313B2 (en) Scene content information adding device and scene content information adding program
JP4758272B2 (en) Moving object tracking device and program
JP2003317033A (en) Affine transformation coefficient calculating method for image processing and image processor
CN110728237B (en) Commodity detection method without using pre-calibration frame
Liu et al. Cross-Scene crowd counting via FCN and Gaussian model
CN114463664A (en) Novel ice hockey tracking method for ice hockey sports
CN113313707A (en) Original image processing method, device, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201020