Method, device, and computer program for detecting boundary of object in image
AssigneeSamsung Electronics Co., Ltd.
InventorMahesh Babu A K
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method of enabling image-based classification in real-time scenarios such as person presence identification, image-based gesture-recognition, real-time object detection, character recognition etc. The present disclosure provides a method and system of contour detection as part of data pre-processing pipeline for training and real-time inferencing of image-based multi-classifier using Machine Learning. A direction-based contour detection method is implemented as part of data pre-processing pipeline for real-time image-based multi-classifier/inferencing using ML algorithms. A parallelized contour detection method is implemented to reduce input feature set, reduce training and prediction time.
Claims15
An electronic device comprising:
- a memory storing instructions;
- and
- at least one processor configured to execute the instructions to:
- process an image to output a secondary image;
- split the secondary image into a plurality of image segments;
- scan the secondary image in a scan direction from a start pixel in each of the plurality of image segments to identify a first boundary pixel found as satisfying a boundary criteria during the scanning of the secondary image;
- identify a second boundary pixel satisfying the boundary criteria by rotating the scan direction and scanning pixels in the secondary image along a circumferential direction centered on the first boundary pixel, wherein the scanning of the pixels starts from a pixel that is adjacent to the first boundary pixel, located in the rotated scan direction and adjacent to a direction opposite to the scan direction;
- identify one or more next boundary pixels until a respective contour of an object is obtained in each of the plurality of image segments;
- and
- obtain a complete contour of the object in the secondary image based on the respective contours obtained in the plurality of image segments,
- wherein scan directions used for at least two different image segments are opposite to each other.
A method comprising:
- processing an image to output a secondary image;
- splitting the secondary image into a plurality of image segments;
- scanning the secondary image in a scan direction from a start pixel in each of the plurality of image segments to identify a first boundary pixel found as satisfying a boundary criteria during the scanning of the secondary image;
- identifying a second boundary pixel satisfying the boundary criteria by rotating the scan direction and scanning pixels in the secondary image along a circumferential direction centered on the first boundary pixel, wherein the scanning of the pixels starts from a pixel that is adjacent to the first boundary pixel, located in the rotated scan direction and adjacent to a direction opposite to the scan direction;
- identifying one or more next boundary pixels until a respective contour of an object is obtained in each of the plurality of image segments;
- and
- obtaining a complete contour of the object in the secondary image based on the respective contours obtained in the plurality of image segments,
- wherein scan directions used for at least two different image segments are opposite to each other.
A computer program product comprising a non-transitory computer-readable recording medium having recorded thereon a program executable by a computer for performing a method comprising:
- processing an image to output a secondary image;
- splitting the secondary image into a plurality of image segments;
- scanning the secondary image in a scan direction from a start pixel in each of the plurality of image segments to identify a first boundary pixel found as satisfying a boundary criteria during the scanning of the secondary image;
- identifying a second boundary pixel satisfying the boundary criteria by rotating the scan direction and scanning pixels in the secondary image along a circumferential direction centered on the first boundary pixel, wherein the scanning of the pixels starts from a pixel that is adjacent to the first boundary pixel, located in the rotated scan direction and adjacent to a direction opposite to the scan direction;
- identifying one or more next boundary pixels until a respective contour of an object is obtained in each of the plurality of image segments;
- and
- obtaining a complete contour of the object in the secondary image based on the respective contours obtained in the plurality of image segments,
- wherein scan directions used for at least two different image segments are opposite to each other.
Dependencies are inferred from the claim text.