# US 2023/0058754 A1 · Portable electronic device and wound-size measuring method using the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0058754 A1
- Document ID: US20230058754A1
- Status: Published application
- Kind: A1
- Application number: 17/535,622
- Filed: 2021-11-25
- Published: 2023-02-23
- Earliest claimed: 2021-08-18
- Assignees: Wistron Corporation
- Applicants: Wistron Corp.
- Inventors: Wen Hsin HU; Ji-Yi YANG; Zhe-Yu LIN; Hui Chi HSIEH; Yin Chi LIN; Chi Lun HUANG
- Web page: https://patentgrep.com/patent/US20230058754A1

## CPC

- G06T 7/0012: {Biomedical image inspection}
- G06T 7/0016: {involving temporal comparison}
- A61B 5/1072: {measuring distances on the body, e.g. measuring length, height or thickness (A61B5/1076 takes precedence)}
- A61B 5/1075: {for measuring dimensions by non-invasive methods, e.g. for determining thickness of tissue layer (A61B8/0858 takes precedence)}
- A61B 5/1079: {using optical or photographic means}
- A61B 5/445: {Evaluating skin irritation or skin trauma, e.g. rash, eczema, wound, bed sore}
- A61B 5/6898: {Portable consumer electronic devices, e.g. music players, telephones, tablet computers}
- G06F 18/23: Clustering techniques
- G06N 3/08: Learning methods
- G06T 7/11: Region-based segmentation
- G06T 7/60: Analysis of geometric attributes
- G06T 7/62: of area, perimeter, diameter or volume
- G06T 7/74: {involving reference images or patches}
- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06V 10/225: {based on a marking or identifier characterising the area}
- G06V 10/751: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching}
- G06V 10/95: {structured as a network, e.g. client-server architectures}
- G16H 30/40: for processing medical images, e.g. editing
- H04N 17/002: {for television cameras}
- H04N 23/63: by using electronic viewfinders
- H04N 23/80: Camera processing pipelines; Components thereof
- G06T 2207/10024: Color image
- G06T 2207/20076: Probabilistic image processing
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/30004: Biomedical image processing
- G06T 2207/30088: Skin; Dermal
- G06T 2207/30096: Tumor; Lesion
- G06T 2207/30244: Camera pose
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- A61B: DIAGNOSIS; SURGERY; IDENTIFICATION (usefulness limited to only animals A61D)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A wound-size measuring method for use in a portable electronic device is provided. The method includes the following steps: obtaining an input image via a camera device of the portable electronic device; using a CNN (convolutional neural network) model to recognize the input image, and selecting a part of the input image with the highest probability of containing a wound as an output wound image; and calculating an actual height and an actual width of the output wound image according to a lens-focal-length parameter reported by an operating system running on the portable electronic device, a plurality of reference calibration parameters corresponding to a pitch angle of the portable electronic device, and a pixel-height ratio and a pixel-width ratio of the output wound image.

## Claims

### Claim 1

A portable electronic device, comprising:
an inertial-measurement unit, configured to detect a pitch angle of the portable electronic device;
a camera device, configured to obtain an input image;
a storage device, configured to store an operating system, a wound-measuring program, a CNN (convolutional neural network) model, and an RPN (regional proposal network) model; and
a processor, configured to execute the wound-size measuring program to perform the following steps:
using the CNN model to recognize the input image, and to select a part of the input image with the highest probability of containing a wound as an output wound image; and
calculating an actual height and an actual width of the output wound image according to a lens-focal-length parameter reported by the operating system, a plurality of reference calibration parameters corresponding to the pitch angle, and a pixel-height ratio and a pixel-width ratio of the output wound image.

### Claim 2 (depends on 1)

The portable electronic device as claimed in claim 1, wherein the reference calibration parameters comprise a reference-object actual height, a reference-object actual width, a reference-object pixel-height ratio, and a reference-object focal distance.

### Claim 3 (depends on 2)

The portable electronic device as claimed in claim 2, wherein during a horizontal-calibration process of the wound-measuring program, the portable electronic device takes a picture of a reference object at the pitch angle of 0 degrees to obtain a first reference-object image, and obtains a first reference-object focal distance from an API (application programming interface) of the operating system, and the reference object has the reference-object actual height and the reference-object actual width,
wherein during a vertical-calibration process of the wound-measuring program, the portable electronic device takes another picture of the reference object at the pitch angle of 90 degrees to obtain a second reference-object image, and the processor obtains a second reference-object focal distance from the API of the operating system,
wherein the processor divides a first pixel height of the first reference-object image or the second reference-object image displayed on a display panel of the portable electronic device by a second pixel height of the display panel to obtain a first reference-object pixel-height ratio or a second reference-object pixel-height ratio.

### Claim 4 (depends on 3)

The portable electronic device as claimed in claim 3, wherein in response to the pitch angle being between 0 and 45 degrees, the processor uses the first reference-object focal distance as the reference-object focal distance, and uses the first reference-object pixel-height ratio as the reference-object pixel-height ratio;
wherein in response to the pitch angle being between 45 and 90 degrees, the processor uses the second reference-object focal distance as the reference-object focal distance, and uses the second reference-object pixel-height ratio as the reference-object pixel-height ratio.

### Claim 5 (depends on 4)

The portable electronic device as claimed in claim 4, wherein the processor calculates equation (1) and equation (2) to obtain the actual height and the actual width of the output wound image, where equation (1) and equation (2) are expressed as follows:
h
m
=
h
c
×
g
c
×
p
m
g
m
×
p
c
(
1
)
w
m
=
w
c
×
g
c
×
p
m
g
m
×
p
c
(
2
)
where hc denotes the reference-object actual height; gc denotes the reference-object focal distance; pc denotes the reference-object pixel-height ratio; hm denotes the actual height of the output wound image; gm denotes the lens-focal-length parameter; pm denotes the pixel-height ratio; wm denotes the actual width of the output wound image; and we denotes the reference-object actual width.

### Claim 6 (depends on 1)

The portable electronic device as claimed in claim 1, wherein the processor further performs a machine-learning clustering algorithm to divide the output wound image into a wound region and a normal-skin region,
wherein the processor further calculates a first pixel number in the output wound image and a second pixel number in the wound region, and divides the second pixel number by the first pixel number to obtain a wound-region pixel ratio,
wherein the processor further multiplies the actual height of the output wound image by the actual width of the output wound image to obtain an actual area of the output wound image, and multiplies the actual area by the wound-region pixel ratio to obtain an actual area of the wound region.

### Claim 7 (depends on 6)

The portable electronic device as claimed in claim 6, wherein the processor further calculates a first red average, a first green average, and a first blue average of a red sub-pixel, a green sub-pixel, and a blue sub-pixel of each pixel in the wound region, and calculates a second red average, a second green average, and a second blue average of a red sub-pixel, a green sub-pixel, and a blue sub-pixel of each pixel in the normal-skin region,
wherein the processor calculates a Euclidean distance between the wound region and the normal-skin region to represent the severity of the wound region according to the first red average, the first green average, the first blue average, the second red average, the second green average, and the second blue average.

### Claim 8 (depends on 7)

The portable electronic device as claimed in claim 7, wherein in response to the processor determining that the actual area of the output wound image is larger than the actual area of a previous output wound image by a first predetermined ratio, the processor informs a server to add a username of the portable electronic device into a care list for medical staff to conduct related inspections.

### Claim 9 (depends on 7)

The portable electronic device as claimed in claim 7, wherein in response to the processor determining that the severity of the output wound image is greater than the severity of a previous output wound image by a second predetermined ratio, the processor informs a server to add a username of the portable electronic device into a care list for medical staff to conduct related inspections.

### Claim 10 (depends on 1)

The portable electronic device as claimed in claim 1, wherein before the processor uses the CNN model to recognize the input image, the processor uses the RPN model to generate a plurality of first bounding boxes using the input image, and filters out a plurality of second bounding boxes with probabilities of being a wound greater than a predetermined value from the first bounding boxes,
wherein the CNN model selects the second bounding box with the highest probability of being a wound as the output wound image.

### Claim 11

A wound-size measuring method, for use in a portable electronic device, wherein the portable electronic device comprises a display panel and a camera device, the method comprising:
obtaining an input image via the camera device;
using a CNN (convolutional neural network) model to recognize the input image, and selecting a part of the input image with the highest probability of containing a wound as an output wound image; and
calculating an actual height and an actual width of the output wound image according to a lens-focal-length parameter reported by an operating system running on the portable electronic device, a plurality of reference calibration parameters corresponding to a pitch angle of the portable electronic device, and a pixel-height ratio and a pixel-width ratio of the output wound image.

### Claim 12 (depends on 11)

The method as claimed in claim 11, wherein the reference calibration parameters comprise a reference-object actual height, a reference-object actual width, a reference-object pixel-height ratio, and a reference-object focal distance.

### Claim 13 (depends on 12)

The method as claimed in claim 12, wherein during a horizontal-calibration process of the wound-measuring program, the portable electronic device takes a picture of a reference object at the pitch angle of 0 degrees to obtain a first reference-object image, and obtains a first reference-object focal distance from an API (application programming interface) of the operating system, and the reference object has the reference-object actual height and the reference-object actual width,
wherein during a vertical-calibration process of the wound-measuring program, the portable electronic device takes another picture of the reference object at the pitch angle of 90 degrees to obtain a second reference-object image, and obtains a second reference-object focal distance from the API of the operating system,
wherein the method further comprises: dividing a first pixel height of the first reference-object image or the second reference-object image displayed on the display panel by a second pixel height of the display panel to obtain a first reference-object pixel-height ratio or a second reference-object pixel-height ratio.

### Claim 14 (depends on 13)

The method as claimed in claim 13, further comprising:
in response to the pitch angle being between 0 and 45 degrees, using the first reference-object focal distance as the reference-object focal distance, and using the first reference-object pixel-height ratio as the reference-object pixel-height ratio; and
in response to the pitch angle being between 45 and 90 degrees, using the second reference-object focal distance as the reference-object focal distance, and using the second reference-object pixel-height ratio as the reference-object pixel-height ratio.

### Claim 15 (depends on 14)

The method as claimed in claim 14, further comprising:
calculating equation (1) and equation (2) to obtain the actual height and the actual width of the output wound image, where equation (1) and equation (2) are expressed as follows:
h
m
=
h
c
×
g
c
×
p
m
g
m
×
p
c
(
1
)
w
m
=
w
c
×
g
c
×
p
m
g
m
×
p
c
(
2
)
where hc denotes the reference-object actual height; gc denotes the reference-object focal distance; pc denotes the reference-object pixel-height ratio; hm denotes the actual height of the output wound image; gm denotes the lens-focal-length parameter; pm denotes the pixel-height ratio; wm denotes the actual width of the output wound image; and we denotes the reference-object actual width.

### Claim 16 (depends on 11)

The method as claimed in claim 11, further comprising:
performing a machine-learning clustering algorithm to divide the output wound image into a wound region and a normal-skin region;
calculating a first pixel number in the output wound image and a second pixel number in the wound region, and dividing the second pixel number by the first pixel number to obtain a wound-region pixel ratio; and
multiplying the actual height of the output wound image by the actual width of the output wound image to obtain an actual area of the output wound image, and multiplying the actual area by the wound-region pixel ratio to obtain an actual area of the wound region.

### Claim 17 (depends on 16)

The method as claimed in claim 16, further comprising:
calculating a first red average, a first green average, and a first blue average of a red sub-pixel, a green sub-pixel, and a blue sub-pixel of each pixel in the wound region;
calculating a second red average, a second green average, and a second blue average of a red sub-pixel, a green sub-pixel, and a blue sub-pixel of each pixel in the normal-skin region; and
calculating a Euclidean distance between the wound region and the normal-skin region to represent the severity of the wound region according to the first red average, the first green average, the first blue average, the second red average, the second green average, and the second blue average.

### Claim 18 (depends on 17)

The method as claimed in claim 17, further comprising:
in response to a determination that the actual area of the output wound image is larger than the actual area of a previous output wound image by a first predetermined ratio, informing a server to add a username of the portable electronic device into a care list for medical staff to conduct related inspections.

### Claim 19 (depends on 17)

The method as claimed in claim 17, further comprising:
in response to a determination that the severity of the output wound image is greater than the severity of a previous output wound image by a second predetermined ratio, the processor informs a server to add a username of the portable electronic device into a care list for medical staff to conduct related inspections.

### Claim 20 (depends on 11)

The method as claimed in claim 11, wherein before using the CNN model to recognize the input image, the method further comprises:
using the RPN model to generate a plurality of first bounding boxes using the input image, and filtering out a plurality of second bounding boxes with probabilities of being a wound greater than a predetermined value from the first bounding boxes; and
using the CNN model to select the second bounding box with the highest probability of being a wound as the output wound image.
