KR103020249B1 - A system of food safety management inspection and operating method of the system - Google Patents
A system of food safety management inspection and operating method of the systemInfo
- Publication number
- KR103020249B1 KR103020249B1 KR1020230151246A KR20230151246A KR103020249B1 KR 103020249 B1 KR103020249 B1 KR 103020249B1 KR 1020230151246 A KR1020230151246 A KR 1020230151246A KR 20230151246 A KR20230151246 A KR 20230151246A KR 103020249 B1 KR103020249 B1 KR 103020249B1
- Authority
- KR
- South Korea
- Prior art keywords
- color
- information
- test paper
- result
- specific test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/25—Determination of region of interest [ROI] or a volume of interest [VOI]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20092—Interactive image processing based on input by user
- G06T2207/20096—Interactive definition of curve of interest
Abstract
본 발명은 식품 안전 관리 검사 시스템 및 그 시스템의 동작 방법을 제공한다. 일 예로, 본 발명에 따른 식품 안전 관리 검사 시스템에 포함된 데이터 처리 서버의 동작 방법은, 모바일 단말기로부터, 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보를 획득하는, 레퍼런스 이미지 정보 획득 단계; 상기 레퍼런스 이미지 정보 중 제1 관심 영역을 검출하고, 상기 검출된 제1 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 추출하는, 기준 색상 정보 추출 단계; 상기 모바일 단말기로부터, 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 획득하는, 결과 이미지 정보 획득 단계; 상기 결과 이미지 정보 중 제2 관심 영역을 검출하고, 상기 검출된 제2 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 결과 색상 정보를 추출하는, 결과 색상 정보 추출 단계; 상기 기준 색상 정보, 상기 결과 색상 정보 중 적어도 하나 이상을 이용하여, 복수의 색상 모델들 중 색상 비교에 활용하는 비교 색상 모델을 선택하는 단계; 상기 선택된 비교 색상 모델의 3가지 채널별로 미리 결정된 가중치에 기초하여, 상기 특정 테스트 페이퍼에 대한 복수의 레벨들 중 상기 결과 색상 정보와 유사도가 가장 높다고 판단된 특정 레벨 정보를 추출하는 단계; 및 상기 추출된 특정 레벨 정보를 이용하여, 상기 특정 테스트 페이퍼에 대한 결과 데이터를 생성하여 상기 모바일 단말기로 전송하는 단계를 포함한다.The present invention provides a food safety management inspection system and a method of operation of the system. For example, a method of operation of a data processing server included in a food safety management inspection system according to the present invention comprises: a reference image information acquisition step of acquiring reference image information for a specific test paper from a mobile terminal; a reference color information extraction step of detecting a first region of interest among the reference image information and extracting a plurality of level-specific reference color information for the specific test paper from the detected first region of interest; a result image information acquisition step of acquiring result image information for the specific test paper from the mobile terminal; a result color information extraction step of detecting a second region of interest among the result image information and extracting result color information for the specific test paper from the detected second region of interest; a step of selecting a comparison color model to be used for color comparison among a plurality of color models using at least one of the reference color information and the result color information; and a step of extracting specific level information determined to have the highest similarity to the result color information among a plurality of levels for the specific test paper based on a predetermined weight for each of the three channels of the selected comparison color model. and using the extracted specific level information, it includes the step of generating result data for the specific test paper and transmitting it to the mobile terminal.
Description
본 발명은 식품 안전 관리 검사 시스템 및 그 시스템의 동작 방법에 관한 것이다. 보다 상세하게는, 식품 가공 및 조리의 전과정에서 사용되는 각종 테스트 페이퍼들의 검사 결과를 모바일 단말기를 이용하여 손쉽게 측정하고 이를 데이터베이스로 구축할 수 있는 식품 안전 관리 검사 시스템 및 그 시스템의 동작 방법에 관한 것이다.The present invention relates to a food safety management inspection system and a method of operation of the system. More specifically, the invention relates to a food safety management inspection system and a method of operation of the system that can easily measure the inspection results of various test papers used throughout the entire process of food processing and cooking using a mobile terminal and build a database thereof.
식품 안전 관리 시스템이란 식품의 유통, 가공, 조리 등의 전 과정에서 식품 유해 요소를 검출 또는 제거하거나 이를 추적 관리하는 전반적인 기술을 포함한다. 이러한 식품 안전 관리 또는 검사와 관련된 시장은 국내뿐만 아니라 전세계적으로도 연평균 약 7 내지 10 % 수준으로 성장하고 있는 것으로 추산되고 있으며, 특히 코로나-19 확산 이후 식품 안전에 대한 관심이 크게 증가하고 있는 것으로 분석되고 있다.A food safety management system encompasses overall technologies for detecting or eliminating harmful food elements or tracking and managing them throughout the entire process of food distribution, processing, and cooking. The market for such food safety management or inspection is estimated to be growing at an average annual rate of approximately 7 to 10% not only domestically but also globally, and it is analyzed that interest in food safety has increased significantly, particularly following the spread of COVID-19.
이러한 관심의 변화에 따라, 고객, 손님 뿐만 아니라 사업자 또는 관리자들은 식당, 음식점 등의 위생 상태를 모니터링 또는 관리하는 시스템들에 대한 니즈가 커지고 있다.With this shift in interest, there is a growing need among not only customers and guests but also business owners and managers for systems to monitor or manage the hygiene conditions of restaurants and food establishments.
본 발명의 목적은 상술한 종래의 문제점을 해결하기 위한 것으로서, 식품 가공 및 조리의 전과정에 대한 위생 상태 정보를 비교 분석하고 그 결과를 데이터로 변환하여 저장하는 식품 안전 관리 검사 시스템 및 그 시스템의 동작 방법을 제공하는 것이다.The objective of the present invention is to solve the aforementioned conventional problems by providing a food safety management inspection system that compares and analyzes hygiene status information regarding the entire process of food processing and cooking, converts the results into data, and stores the results, and a method of operation of the system.
본 발명은 식품 안전 관리 검사 시스템에 포함된 데이터 처리 서버의 동작 방법에 관한 것으로, 상기 서버의 동작 방법은 모바일 단말기로부터, 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보를 획득하는, 레퍼런스 이미지 정보 획득 단계; 상기 레퍼런스 이미지 정보 중 제1 관심 영역을 검출하고, 상기 검출된 제1 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 추출하는, 기준 색상 정보 추출 단계; 상기 모바일 단말기로부터, 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 획득하는, 결과 이미지 정보 획득 단계; 상기 결과 이미지 정보 중 제2 관심 영역을 검출하고, 상기 검출된 제2 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 결과 색상 정보를 추출하는, 결과 색상 정보 추출 단계; 상기 기준 색상 정보, 상기 결과 색상 정보 중 적어도 하나 이상을 이용하여, 복수의 색상 모델들 중 색상 비교에 활용하는 비교 색상 모델을 선택하는 단계; 제1수학식을 이용하여 상기 선택된 비교 색상 모델의 3가지 채널별로 미리 결정된 가중치에 기초하여, 상기 특정 테스트 페이퍼에 대한 복수의 레벨들 중 상기 결과 색상 정보와 유사도가 가장 높다고 판단된 특정 레벨 정보를 추출하는 단계; 및상기 추출된 특정 레벨 정보를 이용하여, 상기 특정 테스트 페이퍼에 대한 결과 데이터를 생성하여 상기 모바일 단말기로 전송하는 단계를 포함할 수 있다.
상기 데이터 처리 서버는 상기 제1 관심 영역은 상기 모바일 단말기로부터 획득된 레퍼런스 이미지를 정규화하고, 상기 정규화된 이미지를 흑백 이미지로 변환하고, 상기 흑백 이미지를 이진 이미지로 변환한 뒤, 상기 이진 이미지 정보에 대해 외곽선을 추출하고, 상기 추출된 외곽선으로부터 직선을 추출한 뒤, 추출된 직선들이 교차되는 접점 4개를 사각형의 각 점으로 판단하고, 상기 사각형의 좌표를 벡터에 저장하고, 이에 기초하여 가장 넓은 사각 영역을 추출하고, 상기 가장 넓은 사각 영역에 대해 왜곡 보정을 수행하여 검출될 수 있다.
상기 비교 색상 모델을 선택하는 단계는 상기 기준 색상 정보, 상기 결과 색상 정보 중 적어도 하나 이상에 대한 각 색상 모델에서의 채널별 표준 편차를 산출하는 단계; 및 상기 복수의 색상 모델들 중 채널별 표준 편차의 합이 가장 큰 색상 모델을 상기 비교 색상 모델로 선택하는 단계를 포함할 수 있다.
상기 복수의 색상 모델들은 빨간색 (Red) 채널, 초록색 (Green) 채널 및 파란색 (Blue) 채널로 구성되는 RGB (Red Green Blue) 색상 모델; 색상 (Hue) 채널, 채도 (Saturation) 채널 및 명도 (Intensity) 채널로 구성되는 HSI 색상 모델; 및
밝기 (Lightness) 채널, 초록색 (Green) - 자홍색 (Magenta)에 기초하여 정의되는 a 채널 및 파란색 (Blue) - 노란색 (Yellow)에 기초하여 정의되는 b 채널로 구성되는 Lab 색상 모델을 포함할 수 있다.
상기 제1수학식은 이되, 상기 w1, w2, w3는 각 색상 모델에 대해 미리 설정된 가중치 값이이며, RGB 색상모델에 대해서는 w1 = w2 = w3 으로 설정되고, HIS 색상 모델, Lab 색상 모델에 대해서는 w1 > w2 = w3 으로 설정되고, stick CH1/CH2/CH3는 결과 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 값이며, target CH1/CH2/CH3는 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 일 수 있다.
상기 모바일 단말기로부터 상기 특정 테스트 페이퍼를 식별하는 정보를 획득하는 식별 정보 획득 단계를 더 포함할 수 있다.
상기 식별 정보 획득 단계는 상기 레퍼런스 이미지 정보 획득 단계 이전에 수행되거나 상기 레퍼런스 이미지 정보 획득 단계와 동시에 수행될 수 있다.
상기 특정 테스트 페이퍼는, 상기 특정 테스트 페이퍼에 접촉되는 물체 표면의 잔류 염소 수치에 대응하는 색상을 표시하는 잔류 염소 테스트 페이퍼를 포함할 수 있다.
상기 특정 테스트 페이퍼에 대한 결과 데이터를 이용하여 데이터 베이스를 업데이트하는 단계를 더 포함할 수 있다.The present invention relates to a method of operation of a data processing server included in a food safety management inspection system, wherein the method of operation of the server comprises: a reference image information acquisition step of acquiring reference image information for a specific test paper from a mobile terminal; a reference color information extraction step of detecting a first region of interest among the reference image information and extracting a plurality of level-specific reference color information for the specific test paper from the detected first region of interest; a result image information acquisition step of acquiring result image information for the specific test paper from the mobile terminal; a result color information extraction step of detecting a second region of interest among the result image information and extracting result color information for the specific test paper from the detected second region of interest; a step of selecting a comparison color model to be used for color comparison among a plurality of color models using at least one of the reference color information and the result color information; and a step of extracting specific level information determined to have the highest similarity to the result color information among a plurality of levels for the specific test paper based on weights predetermined for each of the three channels of the selected comparison color model using a first mathematical formula. and may include the step of generating result data for the specific test paper using the extracted specific level information and transmitting it to the mobile terminal.
The data processing server can detect the first region of interest by normalizing a reference image obtained from the mobile terminal, converting the normalized image into a grayscale image, converting the grayscale image into a binary image, extracting an outline from the binary image information, extracting straight lines from the extracted outline, determining four points where the extracted straight lines intersect as points of a rectangle, storing the coordinates of the rectangle in a vector, extracting the widest rectangular area based on this, and performing distortion correction on the widest rectangular area.
The step of selecting the comparison color model may include: a step of calculating the channel-specific standard deviation in each color model for at least one of the reference color information and the result color information; and a step of selecting the color model with the largest sum of channel-specific standard deviations among the plurality of color models as the comparison color model.
The above plurality of color models include an RGB (Red Green Blue) color model composed of a Red channel, a Green channel, and a Blue channel; an HSI color model composed of a Hue channel, a Saturation channel, and an Intensity channel; and
It may include a Lab color model consisting of a Lightness channel, a channel defined based on Green and Magenta, and a channel defined based on Blue and Yellow.
The above first mathematical formula is However, the above w1, w2, and w3 are pre-set weight values for each color model, and for the RGB color model, w1 = w2 = w3 is set, and for the HIS color model and Lab color model, w1 > w2 = w3 is set, and stick CH1/CH2/CH3 is a color value separated by each channel by converting the result color information into a selected comparison color model, and target CH1/CH2/CH3 may be a color separated by each channel by converting multiple level-specific reference color information for a specific test paper into a selected comparison color model.
It may further include a step of obtaining identification information to obtain information identifying the specific test paper from the mobile terminal.
The above identification information acquisition step may be performed prior to the reference image information acquisition step or simultaneously with the reference image information acquisition step.
The above specific test paper may include a residual chlorine test paper that displays a color corresponding to the residual chlorine level of the surface of an object in contact with the above specific test paper.
It may further include a step of updating the database using result data for the specific test paper mentioned above.
본 발명에 따르면, 사용자는 모바일 단말기를 이용하여 식품 가공 및 조리의 전 과정에서 사용되는 테스트 페이퍼의 결과를 용이하게 확인할 수 있고, 이를 데이터베이스화할 수 있다.According to the present invention, a user can easily check the results of test papers used throughout the entire process of food processing and cooking using a mobile terminal, and can store them in a database.
도 1은 본 발명의 일 실시예에 따른 식품 안전 관리 검사 시스템의 구성도를 도시한 도면이다.
도 2는 본 발명의 일 실시예에 따른 식품 안전 관리 검사 시스템의 동작 방법을 나타낸 도면이다.
도 3은 본 발명에 적용 가능한 특정 테스트 페이퍼에 대한 레벨들의 일 예를 나타낸 도면이다.
도 4는 본 발명의 일 예에 따른 관심 영역 검출 방법을 나타낸 흐름도이다.
도 5는 본 발명에 따라 관심 영역으로 검출된 결과 값을 나타낸 도면이다.
도 6은 본 발명의 일 예에 따른 색상 비교 방법을 간단히 나타낸 흐름도이다.FIG. 1 is a diagram illustrating the configuration of a food safety management inspection system according to one embodiment of the present invention.
FIG. 2 is a diagram showing the operation method of a food safety management inspection system according to one embodiment of the present invention.
FIG. 3 is a diagram showing an example of levels for a specific test paper applicable to the present invention.
FIG. 4 is a flowchart illustrating a method for detecting a region of interest according to an example of the present invention.
Figure 5 is a diagram showing the result value detected as a region of interest according to the present invention.
FIG. 6 is a flowchart briefly illustrating a color comparison method according to an example of the present invention.
이하, 첨부된 도면들을 참조하여 본 발명에 따른 식품 안전 관리 검사 시스템 및 그 시스템의 동작 방법의 일 실시예를 설명한다. 이때, 본 발명은 실시예에 의해 제한되거나 한정되는 것은 아니다. 또한, 본 발명을 설명함에 있어서, 공지된 기능 혹은 구성에 대해 구체적인 설명은 본 발명의 요지를 명확하게 하기 위해 생략될 수 있다.Hereinafter, an embodiment of a food safety management inspection system and a method of operation of the system according to the present invention will be described with reference to the attached drawings. At this time, the present invention is not limited or restricted by the embodiments. Furthermore, in describing the present invention, specific descriptions of known functions or configurations may be omitted to clarify the gist of the present invention.
도 1은 본 발명의 일 실시예에 따른 식품 안전 관리 검사 시스템의 구성도를 도시한 도면이다.FIG. 1 is a diagram illustrating the configuration of a food safety management inspection system according to one embodiment of the present invention.
도 1에 도시된 바와 같이, 본 발명에 따른 식품 안전 관리 검사 시스템은, 모바일 단말기 (10), 데이터 처리 서버 (20), DB (database, 30)을 포함할 수 있다.As illustrated in FIG. 1, the food safety management inspection system according to the present invention may include a mobile terminal (10), a data processing server (20), and a DB (database, 30).
본 발명에 있어, 모바일 단말기 (10)는 네트워크를 통해 서버나 다른 단말에 접속 가능한 컴퓨터, 스마트폰, 태블릿 PC (Personal Computer) 등의 휴대용 단말기로 구현될 수 있다. 이때, 컴퓨터는 웹 브라우저 또는 관련 응용 프로그램 (예: 어플리케이션 등)이 설치된 데스크톱, 노트북 등을 포함할 수 있고, 휴대용 단말기는 4G LTE (Long Term Evolution), 5G, Wi-Fi 등의 통신 시스템을 통해 무선 접속이 가능한 무선 통신 장치를 포함할 수 있다. 또한, 본 발명에 있어, 네트워크란 근거리 통신망 (Local Area Network; LAN), 광역 통신 망 (Wide Area Network; WAN) 등의 유선 네트워크, 이동 통신망 또는 위성 통신망 등의 무선 네트워크로 구현될 수 있다. 이에, 상기 모바일 단말기 (10)는 네트워크에서 지원하는 통신 시스템을 통해 데이터 처리 서버 (20)와 신호를 송수신할 수 있다.In the present invention, the mobile terminal (10) may be implemented as a portable terminal such as a computer, smartphone, or tablet PC (Personal Computer) capable of connecting to a server or other terminal via a network. At this time, the computer may include a desktop, laptop, etc., on which a web browser or related application (e.g., application, etc.) is installed, and the portable terminal may include a wireless communication device capable of wireless connection via a communication system such as 4G LTE (Long Term Evolution), 5G, or Wi-Fi. Additionally, in the present invention, the network may be implemented as a wired network such as a Local Area Network (LAN) or a Wide Area Network (WAN), or a wireless network such as a mobile communication network or a satellite communication network. Accordingly, the mobile terminal (10) can transmit and receive signals to and from a data processing server (20) via a communication system supported by the network.
본 발명에 있어, 데이터 처리 서버 (20)는 모바일 단말기 (10)와 상호 연동되는 웹 페이지 또는 어플리케이션 서비스를 구축 및 운영할 수 있다. 보다 구체적으로, 상기 데이터 처리 서버 (20)는 운영하는 웹 페이지 또는 어플리케이션을 통해, 식품 가공 및 조리의 전과정에서 사용된 각종 테스트 페이퍼를 이용한 결과 데이터를 일자별 또는 시간대별로 데이터 베이스화하고, 해당 정보를 사용자에게 제공하는 기능 등을 다양하게 제공할 수 있다.In the present invention, the data processing server (20) can build and operate a web page or application service that interacts with a mobile terminal (10). More specifically, the data processing server (20) can provide various functions, such as database data using various test papers used in the entire process of food processing and cooking by date or time period through the web page or application it operates, and provide the information to the user.
도 2는 본 발명의 일 실시예에 따른 식품 안전 관리 검사 시스템의 동작 방법을 나타낸 간단히 도면이다.FIG. 2 is a simplified diagram showing the operation method of a food safety management inspection system according to one embodiment of the present invention.
이하 상세한 설명에 앞서, 본 발명에서 설명하는 기술적 표현들의 정의에 대해 상세히 설명한다.Prior to the detailed description below, the definitions of the technical expressions described in the present invention will be explained in detail.
본 발명에 있어, '이미지 정보'라 함은 영상, 동영상, 프레임 이미지, 그림 정보, 사진 정보 등을 포함할 수 있다.In the present invention, the term 'image information' may include images, video, frame images, picture information, photographic information, etc.
본 발명에 있어, '테스트 페이퍼'라 함은 하기 표와 같이 PH (potential of hydrogen 또는 power of hydrogen, 수소 이온 농도 지수), 잔류 염소 (Chlorine), 온도 등을 측정할 수 있는 시험지 등을 포함할 수 있다.In the present invention, the term 'test paper' may include test papers capable of measuring pH (potential of hydrogen or power of hydrogen, hydrogen ion concentration index), residual chlorine, temperature, etc., as shown in the table below.
[표 1][Table 1]
본 발명에 있어, 특정 테스트 페이퍼에 대한 '레퍼런스 이미지 정보'라 함은 상기 특정 테스트 페이퍼에 대해 별도로 인쇄된 기준 비색표 (比色表, Reference color chart)에 대한 이미지 정보를 의미할 수 있다. 다시 말해, 상기 '레퍼런스 이미지 정보'는 상기 특정 테스트 페이퍼에 대한 색상별 결과 값을 나타낸 이미지 정보를 의미할 수 있다. 일반적으로, 상기 '레퍼런스 이미지 정보'는 상기 특정 테스트 페이퍼의 설명서, 포장지, 포장 박스 등에 표시되어 있을 수 있다. 이에, 본 발명에 따른 모바일 단말기 (10)는 상기 표시된 이미지를 사진기 어플리케이션 등 다양한 수단을 통해 촬영하여 데이터 처리 서버 (20)로 제공할 수 있다.In the present invention, the term 'reference image information' for a specific test paper may refer to image information regarding a reference color chart separately printed for the specific test paper. In other words, the 'reference image information' may refer to image information representing result values by color for the specific test paper. Generally, the 'reference image information' may be displayed on the instruction manual, packaging, packaging box, etc., of the specific test paper. Accordingly, a mobile terminal (10) according to the present invention may capture the displayed image through various means, such as a camera application, and provide it to a data processing server (20).
본 발명에 있어, 특정 테스트 페이퍼에 대한 '복수의 레벨들'이라 함은 상기 특정 테스트 페이퍼의 결과 값들을 복수의 단위들로 구분한 기준 값들 (또는 식별자들)을 의미할 수 있다. In the present invention, the term 'multiple levels' for a specific test paper may refer to reference values (or identifiers) that divide the result values of the specific test paper into multiple units.
도 3은 본 발명에 적용 가능한 특정 테스트 페이퍼에 대한 레벨들의 일 예를 나타낸 도면이다.FIG. 3 is a diagram showing an example of levels for a specific test paper applicable to the present invention.
상술한 특정 테스트 페이퍼가 잔류 염소 농도 (또는 pH 농도)를 측정하는 시험지인 경우, 상기 특정 테스트 페이퍼는 도 3과 같이 pH 1 ~ 14 까지 구분된 복수의 레벨들을 가질 수 있다. 이때, 도3과 같이 각각의 레벨 (또는 pH 값)에 대응하는 기준 색상 정보는 도 3과 같이 설정될 수 있다.If the specific test paper described above is a test paper for measuring residual chlorine concentration (or pH concentration), the specific test paper may have multiple levels classified from pH 1 to 14 as shown in FIG. 3. At this time, reference color information corresponding to each level (or pH value) may be set as shown in FIG. 3.
본 발명에 있어, '실시간으로 수신'은 데이터의 발생과 동일하게 수신하는 것을 지칭할 수 있다. 일 실시예에서, 이미지를 실시간으로 수신하는 것은 이미지가 이미지 센서를 통해 촬영되자 마자 해당 이미지를 수신하는 것을 지칭할 수 있다. 마찬가지로, '실시간으로 제공'은 데이터의 발생과 동일하게 제공하는 것을 지칭할 수 있다. In the present invention, "receiving in real time" may refer to receiving data at the same time as it occurs. In one embodiment, receiving an image in real time may refer to receiving the image as soon as it is captured through an image sensor. Likewise, "providing in real time" may refer to providing data at the same time as it occurs.
도 2로 돌아와 본 발명의 일 실시예에 따른 식품 안전 관리 검사 시스템의 동작 방법에 대해 설명하면, 본 발명에 따른 모바일 단말기 (10)는 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보 및 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 데이터 처리 서버 (20)로 전송할 수 있다. 이에 대응하여, 상기 데이터 처리 서버 (20)는 상기 모바일 단말기 (10)로부터 상기 레퍼런스 이미지 정보를 획득하고 (S210), 상기 결과 이미지 정보를 획득할 수 있다 (S220). Returning to FIG. 2, the operation method of a food safety management inspection system according to one embodiment of the present invention is described. A mobile terminal (10) according to the present invention can transmit reference image information for a specific test paper and result image information for the specific test paper to a data processing server (20). In response, the data processing server (20) can obtain the reference image information from the mobile terminal (10) (S210) and obtain the result image information (S220).
본 발명에 있어, 상술한 S210 단계 및/또는 S220 단계 각각은 실시간으로 수행될 수 있다. 보다 구체적으로, 데이터 처리 서버 (20)는 전용의 웹페이지 또는 어플리케이션을 통해 모바일 단말기 (10)로부터 상술한 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보 및/또는 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 실시간으로 제공받을 수 있다. 다시 말해, 상기 데이터 처리 서버 (20)는 상기 모바일 단말기 (10)가 미리 촬영된 이미지 정보가 아닌 실시간으로 촬영된 이미지 정보만을 상기 데이터 처리 서버 (20)로 제공하도록 제어 (또는 제한, 강제)할 수 있고, 이에 따라 상기 모바일 단말기 (10)는 상기 레퍼런스 이미지 정보 및/또는 상기 결과 이미지 정보를 상기 데이터 처리 서버 (20)로 실시간으로 전송할 수 있다.In the present invention, each of the above-described steps S210 and/or S220 may be performed in real time. More specifically, the data processing server (20) may receive reference image information for the above-described specific test paper and/or result image information for the above-described specific test paper from the mobile terminal (10) in real time through a dedicated webpage or application. In other words, the data processing server (20) may control (or restrict, force) the mobile terminal (10) to provide only image information captured in real time to the data processing server (20), rather than image information captured in advance, and accordingly, the mobile terminal (10) may transmit the reference image information and/or result image information to the data processing server (20) in real time.
본 발명에 적용 가능한 다른 실시예로, 도 2에서는 S210 단계 및 S220 단계를 구분하여 도시하였으나, 상기 단계들은 동시에 수행될 수도 있다. 일 예로, 모바일 단말기 (10)는 상술한 레퍼런스 이미지 정보 및 결과 이미지 정보를 미리 촬영한 이후, 상기 레퍼런스 이미지 정보 및 상기 결과 이미지 정보를 동시에 데이터 처리 서버 (20)로 전송할 수 있다. 이때, 상기 데이터 처리 서버 (20)는 상기 레퍼런스 이미지 정보 및 상기 결과 이미지 정보 각각의 촬영 시간 정보를 이용하여 시간 간격이 일정 이하 (예: 5분 이하)인 경우에만 해당 이미지 정보들이 유효하다고 판단할 수 있다. 상술한 판단 결과에 따라, 상기 데이터 처리 서버 (20)는 유효한 이미지 정보들을 이용하여 식품 안전 관리 검사 시스템에 따른 동작을 수행하거나, 또는 상기 모바일 장치 (10)로 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보 및 결과 이미지 정보의 전송을 재요청할 수 있다.In another embodiment applicable to the present invention, steps S210 and S220 are illustrated separately in FIG. 2, but the steps may be performed simultaneously. For example, a mobile terminal (10) may transmit the reference image information and the result image information described above to a data processing server (20) simultaneously after capturing the reference image information and the result image information in advance. At this time, the data processing server (20) may determine that the image information is valid only when the time interval is less than a certain amount (e.g., 5 minutes or less) using the shooting time information of each of the reference image information and the result image information. Based on the above determination result, the data processing server (20) may perform operations according to the food safety management inspection system using the valid image information, or request the mobile device (10) to re-transmit the reference image information and the result image information for a specific test paper.
본 발명에 적용 가능한 또 다른 실시예로, 상술한 S210 단계 및 S220 단계는 모바일 단말기 (10) 및 데이터 처리 서버 (20) 간 하나의 이미지 파일의 송수신을 통해 수행될 수 있다. 일 예로, 상기 모바일 단말기 (10)는 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보 및 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 하나의 사진 이미지로 촬영하고, 상기 사진 이미지를 상기 데이터 처리 서버 (20)로 전송할 수 있다.In another embodiment applicable to the present invention, the steps S210 and S220 described above may be performed through the transmission and reception of a single image file between a mobile terminal (10) and a data processing server (20). For example, the mobile terminal (10) may capture reference image information for a specific test paper and result image information for the specific test paper as a single photographic image and transmit the photographic image to the data processing server (20).
데이터 처리 서버 (20)는 S210 단계 및/또는 S220 단계를 통해 획득된 이미지 정보에 대해 관심 영역 검출 및 색상 비교에 따른 결과를 도출할 수 있다 (S230).The data processing server (20) can derive results based on region of interest detection and color comparison for the image information obtained through step S210 and/or step S220 (S230).
보다 구체적으로, 본 발명에 따른 데이터 처리 서버 (20)는 S210 단계를 통해 획득한 레퍼런스 이미지 정보 중 제1 관심 영역을 검출하고, 상기 검출된 제1 관심 영역으로부터 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 추출할 수 있다. 일 예로, 본 발명에 따른 데이터 처리 서버 (20)는 도 3과 같은 각 레벨별 (또는 단계별, 수치별) 기준 색상 정보를 추출할 수 있다.More specifically, the data processing server (20) according to the present invention detects a first region of interest among the reference image information obtained through step S210, and can extract a plurality of level-specific standard color information for a specific test paper from the detected first region of interest. For example, the data processing server (20) according to the present invention can extract standard color information for each level (or step, numerical value) as shown in FIG. 3.
이와 유사하게, 본 발명에 따른 데이터 처리 서버 (20)는 S220 단계를 통해 획득한 결과 이미지 정보 중 제2 관심 영역을 검출하고, 상기 검출된 제2 관심 영역으로부터 특정 테스트 페이퍼에 대한 결과 색상 정보를 추출할 수 있다.Similarly, the data processing server (20) according to the present invention can detect a second region of interest among the result image information obtained through step S220, and extract result color information for a specific test paper from the detected second region of interest.
상술한 동작에 있어, 데이터 처리 서버 (20)는 다양한 관심 영역 검출 방법을 활용할 수 있다. 일 예로, 본 발명에 따른 데이터 처리 서버 (20)는 도 4와 같은 관심 영역 검출 절차를 통해 해당 이미지 정보로부터 관심 영역을 검출할 수 있다.In the above-described operation, the data processing server (20) may utilize various methods for detecting regions of interest. For example, the data processing server (20) according to the present invention may detect a region of interest from the corresponding image information through a region of interest detection procedure such as FIG. 4.
도 4는 본 발명의 일 예에 따른 관심 영역 검출 방법을 나타낸 흐름도이고, 도 5는 본 발명에 따라 관심 영역으로 검출된 결과 값을 나타낸 도면이다.FIG. 4 is a flowchart illustrating a method for detecting a region of interest according to an example of the present invention, and FIG. 5 is a diagram illustrating a result value detected as a region of interest according to the present invention.
도 4에 도시된 바와 같이, 데이터 처리 서버 (20)는 모바일 단말기 (10)로부터 카메라 이미지 (예: 레퍼런스 이미지 정보, 결과 이미지 정보 등)를 획득할 수 있다. 이어, 상기 데이터 처리 서버 (20)는 상기 이미지를 정규화하고 (예: 512 * 512로 정규화), 상기 정규화된 이미지를 흑백 이미지 (GrayScale)로 변환할 수 있다. 이어, 상기 데이터 처리 서버 (20)는 상기 흑백 이미지를 이진 이미지 (binary image)로 변환할 수 있다. 이어, 실시예에 따라, 상기 이진 이미지에 대해 노이즈 제거 (예: Morphology)가 적용되거나 적용되지 않을 수 있다.As illustrated in FIG. 4, a data processing server (20) can obtain a camera image (e.g., reference image information, result image information, etc.) from a mobile terminal (10). Then, the data processing server (20) can normalize the image (e.g., normalize to 512 * 512) and convert the normalized image into a grayscale image. Then, the data processing server (20) can convert the grayscale image into a binary image. Then, depending on the embodiment, noise removal (e.g., morphology) may or may not be applied to the binary image.
이어, 도 5(a)와 같이, 데이터 처리 서버 (20)는 상술한 방법으로 획득한 이미지 정보에 대해 외곽선 (contours)을 추출하고, 이로부터 교차되는 직선을 추출할 수 있다. 이를 위한 방법으로 허프 변환 (Hough Transform) 방식이 적용될 수 있다. 이어, 상기 데이터 처리 서버 (20)는 추출된 직선들이 교차되는 접점 4개를 사각형의 각 점으로 판단할 수 있다. Next, as shown in FIG. 5(a), the data processing server (20) can extract contours from the image information obtained by the method described above and extract intersecting straight lines therefrom. A Hough Transform method may be applied for this purpose. Next, the data processing server (20) can determine four points where the extracted straight lines intersect as each point of a rectangle.
데이터 처리 서버 (20)는 상술한 방법을 통해 획득된 사각형의 좌표를 벡터에 저장하고, 이에 기초하여 가장 넓은 사각 영역을 추출하고, 실시예에 따라 상기 사각형에 대해 왜곡 보정을 수행할 수 있다. 이를 통해, 상기 데이터 처리 서버 (20)는 도 5(b)와 같이 전체 이미지 정보 중 관심 영역 (region of interest)을 검출할 수 있다.The data processing server (20) can store the coordinates of the rectangle obtained through the method described above in a vector, extract the widest rectangular area based thereon, and perform distortion correction on the rectangle according to the embodiment. Through this, the data processing server (20) can detect a region of interest among the entire image information as shown in FIG. 5(b).
상술한 다양한 방법을 통해, 데이터 처리 서버 (20)는 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 추출할 수 있고 (예: 도 5()), 이와 별개로 특정 테스트 페이퍼에 대한 결과 색상 정보를 추출할 수 있다. 이어, 상기 데이터 처리 서버 (20)는 상기 기준 색상 정보 및 상기 결과 색상 정보를 비교하여 특정 테스트 페이퍼에 대한 결과를 도출할 수 있다.Through the various methods described above, the data processing server (20) can extract multiple level-specific standard color information for a specific test paper (e.g., FIG. 5), and separately extract result color information for the specific test paper. Subsequently, the data processing server (20) can derive a result for the specific test paper by comparing the standard color information and the result color information.
본 발명에 적용 가능한 일 예로, 데이터 처리 서버 (20)는 상술한 기준 색상 정보, 결과 색상 정보 중 적어도 하나 이상을 이용하여, 미리 설정된 복수의 색상 모델들 중 색상 비교에 활용하는 비교 색상 모델을 선택할 수 있다.As an example applicable to the present invention, a data processing server (20) may select a comparison color model to be used for color comparison among a plurality of preset color models by using at least one of the above-described reference color information and result color information.
본 발명에 적용 가능한 바람직한 실시예에 따르면, 상술한 복수의 색상 모델들은 다음의 색상 모델들로 미리 설정될 수 있다:According to a preferred embodiment applicable to the present invention, the above-described plurality of color models may be pre-set as the following color models:
(1) RGB (Red Green Blue) 색상 모델(1) RGB (Red Green Blue) color model
빨간색 (Red) 채널, 초록색 (Green) 채널 및 파란색 (Blue) 채널로 구성되는 색상 모델로, 빛의 삼원색을 이용하여 색을 표현하는 모델임It is a color model consisting of a red, green, and blue channel, which expresses color using the three primary colors of light.
(2) HSI 색상 모델(2) HSI color model
색상 (Hue) 채널, 채도 (Saturation) 채널 및 명도 (Intensity) 채널로 구성되는 색상 모델로, 빛의 세가지 속성을 이용하여 색을 표현하는 모델임It is a color model composed of a Hue, Saturation, and Intensity channel, which represents color using the three properties of light.
(3) Lab 색상 모델(3) Lab color model
밝기 (Lightness) 채널, 초록색 (Green) - 자홍색 (Magenta)에 기초하여 정의되는 a 채널 및 파란색 (Blue) - 노란색 (Yellow)에 기초하여 정의되는 b 채널로 구성되는 색상 모델로, 인간 시각의 길항 이론에 의거한 모델임It is a color model composed of a Lightness channel, an a channel defined based on Green and Magenta, and a b channel defined based on Blue and Yellow, based on the antagonism theory of human vision.
본 발명에 있어, 상술한 비교 색상 모델을 선택하는 방법은 다음의 두 단계를 포함할 수 있다:In the present invention, the method for selecting the above-described comparison color model may include the following two steps:
1) 기준 색상 정보, 결과 색상 정보 중 적어도 하나 이상에 대한 각 색상 모델에서의 채널별 표준 편차를 산출하는 단계1) A step of calculating the channel-specific standard deviation in each color model for at least one of the reference color information and the result color information.
2) 복수의 색상 모델들 중 채널별 표준 편차의 합이 가장 큰 색상 모델을 비교 색상 모델로 선택하는 단계2) A step of selecting the color model with the largest sum of channel standard deviations among multiple color models as the comparison color model.
도 6은 본 발명의 일 예에 따른 색상 비교 방법을 간단히 나타낸 흐름도이다.FIG. 6 is a flowchart briefly illustrating a color comparison method according to an example of the present invention.
도 6에 도시된 바와 같이, 본 발명에 따른 데이터 처리 서버 (20)는 레퍼런스 이미지 정보로부터 기준 색상 정보를 추출할 수 있다. 또한, 상기 데이터 처리 서버 (20)는 결과 이미지 정보로부터 결과 색상 정보를 추출할 수 있다. As illustrated in FIG. 6, the data processing server (20) according to the present invention can extract reference color information from reference image information. In addition, the data processing server (20) can extract result color information from result image information.
이어, 데이터 처리 서버 (20)는 상술한 방법을 통해 추출된 기준 색상 정보 및 결과 색상 정보에 대해 노이즈 제거 및/또는 그림자 영역 보정을 수행하고, 각각의 이미지 정보를 상술한 세가지 색상 모델로 변환할 수 있다. 상기 데이터 처리 서버 (20)는 각 색상 모델에서 각각의 채널 성분을 분리하고, 각 채널의 색상값을 추출할 수 있다. 이어, 상기 데이터 처리 서버 (20)는 각 색상 모델에서 채널별 표준 편차를 계산하고, 표준 편차가 가장 큰 색상 모델을 비교 색상 모델로 선택할 수 있다. 보다 구체적으로, 상술한 바와 같이, 본 발명에 따른 데이터 처리 서버 (20)는 기준 색상 정보, 결과 색상 정보 중 적어도 하나 이상에 대한 각 색상 모델에서의 채널별 표준 편차를 산출하고, 복수의 색상 모델들 중 채널별 표준 편차의 합이 가장 큰 색상 모델을 비교 색상 모델로 선택할 수 있다.Next, the data processing server (20) can perform noise removal and/or shadow area correction on the reference color information and result color information extracted through the method described above, and convert each image information into the three color models described above. The data processing server (20) can separate each channel component in each color model and extract the color value of each channel. Next, the data processing server (20) can calculate the standard deviation per channel in each color model and select the color model with the largest standard deviation as the comparison color model. More specifically, as described above, the data processing server (20) according to the present invention can calculate the standard deviation per channel in each color model for at least one of the reference color information and result color information, and select the color model with the largest sum of standard deviations per channel among a plurality of color models as the comparison color model.
이어, 데이터 처리 서버 (20)는 비교 색상 모델에 기초하여 기준 색상 정보 및 결과 색상 정보를 비교하여, 특정 테스트 페이퍼에 대한 복수의 레벨들 중 상기 결과 색상 정보와 유사도가 가장 높다고 판단된 특정 레벨 정보를 추출할 수 있다.Next, the data processing server (20) can compare reference color information and result color information based on a comparison color model and extract specific level information that is determined to have the highest similarity to the result color information among multiple levels for a specific test paper.
구체적인 예로, 데이터 처리 서버 (20)는 하기 수학식을 이용하여, 선택된 비교 색상 모델의 3가지 채널별로 미리 결정된 가중치에 기초하여, 특정 테스트 페이퍼에 대한 복수의 레벨들 중 상기 결과 색상 정보와 유사도가 가장 높다고 판단된 특정 레벨 정보를 추출할 수 있다. 하기 수학식에서, w1, w2, w3는 각 색상 모델에 대해 미리 설정된 가중치 값을 의미한다. 일 예로, RGB 색상모델에 대해서는 w1 = w2 = w3 으로 설정되고, HIS 색상 모델, Lab 색상 모델에 대해서는 w1 > w2 = w3 으로 설정될 수 있다. 또한, stick CH1/CH2/CH3는 결과 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 값을 의미하고, target CH1/CH2/CH3는 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 값을 의미한다.As a specific example, the data processing server (20) can use the following mathematical formula to extract specific level information that is determined to have the highest similarity to the result color information among multiple levels for a specific test paper, based on predetermined weights for each of the three channels of the selected comparison color model. In the following mathematical formula, w1, w2, and w3 represent pre-set weight values for each color model. For example, for the RGB color model, w1 = w2 = w3 may be set, and for the HIS color model and Lab color model, w1 > w2 = w3 may be set. Additionally, stick CH1/CH2/CH3 represents color values separated by each channel by converting the result color information into the selected comparison color model, and target CH1/CH2/CH3 represents color values separated by each channel by converting the multiple level-specific standard color information for a specific test paper into the selected comparison color model.
[수학식][Mathematical Formula]
도 7은 본 발명에 따른 색상 데이터 분석 및 유사도 계산 결과의 일 예를 나타낸 도면이다.FIG. 7 is a diagram showing an example of the results of color data analysis and similarity calculation according to the present invention.
도 7에 도시된 바와 같이, 데이터 처리 서버 (20)는 획득된 결과 색상 정보를 최소 3개의 타겟 (또는 최소 3개 레벨들)에 대한 기준 색상 정보와 비교하고, 이중 유사도가 가장 높은 색상에 대응하는 레벨 정보를 결과 값으로 추출할 수 있다. As illustrated in FIG. 7, the data processing server (20) can compare the acquired result color information with reference color information for at least three targets (or at least three levels) and extract level information corresponding to the color with the highest similarity as a result value.
상술한 방법을 통해 결과 데이터가 획득되게 되면, 데이터 처리 서버 (20)는 상기 결과 데이터를 모바일 단말기 (10)로 전송할 수 있다 (S240). 추가로, S240 단계와는 별개로 또는 상기 S240 단계와 동시에, 상기 데이터 처리 서버 (20)는 상기 결과 데이터를 별도의 DB (30)로 전송할 수 있다 (S250).When result data is obtained through the method described above, the data processing server (20) can transmit the result data to a mobile terminal (10) (S240). Additionally, separately from or simultaneously with step S240, the data processing server (20) can transmit the result data to a separate DB (30) (S250).
구체적으로, S240 단계에서 데이터 처리 서버 (20)가 전송하는 결과 데이터는, (1) 검출된 결과 색상 정보에 대한 이미지 정보, (2) 유사도가 가장 높다고 판단된 특정 레벨 정보, (3) 상기 특정 레벨 정보에 대응하는 색상 정보에 대한 이미지 정보, (4) 상기 특정 레벨 정보에 따른 추가 정보 (예: pH 8 이상인 경우 잔류 세제가 남아 있어 추가 세척이 필요함, pH 7 인 경우 깨끗하게 세척이 잘 되었음 등) 중 적어도 하나 이상을 포함할 수 있다. Specifically, the result data transmitted by the data processing server (20) in step S240 may include at least one of (1) image information regarding the detected result color information, (2) specific level information determined to have the highest similarity, (3) image information regarding the color information corresponding to the specific level information, and (4) additional information according to the specific level information (e.g., if the pH is 8 or higher, residual detergent remains and additional washing is required; if the pH is 7, the washing was done well, etc.).
반면, S250 단계에서 데이터 처리 서버 (20)가 전송하는 결과 데이터는 S240 단계의 결과 데이터와 컨텐츠가 상이할 수 있다. 구체적으로, 상기 S250 단계에서 상기 데이터 처리 서버 (20)가 전송하는 결과 데이터는, (1) 검출된 결과 색상 정보에 대한 이미지 정보, (2) 유사도가 가장 높다고 판단된 특정 레벨 정보, (3) 상기 특정 레벨 정보에 대응하는 색상 정보에 대한 이미지 정보, (4) 레퍼런스 이미지 정보 및/또는 결과 이미지 정보가 획득된 시간 정보 중 적어도 하나 이상을 포함할 수 있다. 상기 결과 데이터를 통해, 상기 데이터 처리 서버 (20)는 데이터 베이스를 업데이트할 수 있다.On the other hand, the result data transmitted by the data processing server (20) in step S250 may differ in content from the result data of step S240. Specifically, the result data transmitted by the data processing server (20) in step S250 may include at least one of (1) image information regarding the detected result color information, (2) specific level information determined to have the highest similarity, (3) image information regarding the color information corresponding to the specific level information, (4) reference image information and/or time information in which the result image information was acquired. Through the result data, the data processing server (20) can update the database.
추가적인 실시예로, 모바일 단말기 (10)는 데이터 처리 서버 (20)로 상술한 특정 테스트 페이퍼를 식별하는 정보 (일명, 식별 정보)를 전송할 수 있다. 이에 대응하여, 데이터 처리 서버 (20)는 상기 모바일 단말기 (10)로부터 상기 특정 테스트 페이퍼를 식별하는 정보를 획득할 수 있다. 일 예로, 상기 식별 정보는 상술한 표에 기술된 테스트 페이퍼들 중 하나를 식별하는 정보일 수 있다.In an additional embodiment, the mobile terminal (10) may transmit information (also known as identification information) identifying the specific test paper described above to the data processing server (20). In response, the data processing server (20) may obtain information identifying the specific test paper from the mobile terminal (10). For example, the identification information may be information identifying one of the test papers described in the table described above.
본 발명에 적용 가능한 실시예로, 데이터 처리 서버 (20)는 S210 단계 이전에 모바일 단말기 (10)로부터 특정 테스트 페이퍼를 식별하는 정보를 획득할 수 있다. 이때, 상기 데이터 처리 서버 (20)는 상기 모바일 단말기 (10)로부터 제공된 이미지 정보 (예: 특정 테스트 페이퍼를 식별할 수 있는 QR 코드 등), 별도의 입력 수단을 통해 입력된 텍스트 정보, 별도의 입력 수단을 통해 복수의 선택지들 중 어느 하나에 대한 선택 정보 등을 획득할 수 있고, 이를 통해 대응하는 특정 테스트 페이퍼를 식별할 수 있다.In an embodiment applicable to the present invention, the data processing server (20) may obtain information identifying a specific test paper from the mobile terminal (10) prior to step S210. At this time, the data processing server (20) may obtain image information provided by the mobile terminal (10) (e.g., a QR code capable of identifying a specific test paper), text information entered through a separate input means, selection information regarding one of a plurality of options through a separate input means, etc., and thereby identify the corresponding specific test paper.
또는 본 발명에 적용 가능한 다른 실시예로, 데이터 처리 서버 (20)는 S210 단계와 동시에 상기 모바일 단말기로부터 특정 테스트 페이퍼를 식별하는 정보를 획득할 수 있다. 일 예로, 모바일 단말기 (10)는 레퍼런스 이미지 정보 내 상기 특정 테스트 페이퍼를 식별할 수 있는 이미지 정보 (예: QR 코드 등)을 포함하여 상기 데이터 처리 서버 (20)로 전송할 수 있다. 또는, 상기 모바일 단말기 (10)는 상기 레퍼런스 이미지 정보를 상기 데이터 처리 서버 (20)로 전송하면서 별도의 입력 정보 (예: 별도의 입력 수단을 통해 복수의 선택지들 중 어느 하나에 대한 선택 정보 등)를 상기 데이터 처리 서버 (20)로 함께 제공할 수 있다. 이에 대응하여, 상기 데이터 처리 서버 (20)는 대응하는 특정 테스트 페이퍼를 식별할 수 있다.Alternatively, in another embodiment applicable to the present invention, the data processing server (20) may obtain information identifying a specific test paper from the mobile terminal simultaneously with step S210. For example, the mobile terminal (10) may transmit to the data processing server (20) image information (e.g., QR code, etc.) that can identify the specific test paper within the reference image information. Alternatively, while transmitting the reference image information to the data processing server (20), the mobile terminal (10) may also provide separate input information (e.g., selection information for one of a plurality of options through a separate input means, etc.) to the data processing server (20). Accordingly, the data processing server (20) may identify the corresponding specific test paper.
상술한 바와 같이, 본 발명에 적용 가능한 특정 테스트 페이퍼로는, 상기 특정 테스트 페이퍼에 접촉되는 물체 표면의 잔류 염소 수치에 대응하는 색상을 표시하는 잔류 염소 테스트 페이퍼를 포함할 수 있다.As described above, a specific test paper applicable to the present invention may include a residual chlorine test paper that displays a color corresponding to the residual chlorine level of the surface of an object in contact with the specific test paper.
추가적인 실시예로, 본 발명에 따른 특정 테스트 페이퍼는, 상기 특정 테스트 페이퍼에 접촉되는 물체 표면의 온도가 일정 온도 이상으로 변화하였는지 여부를 기존 색상과는 다른 색상으로 표시하는 온도 테스트 페이퍼를 포함할 수 있다. 실시예에 따라, 상기 일정 온도 값은 65℃, 71℃, 77℃, 82℃, 110℃, 121℃ 등의 값을 가질 수 있다. 이때, 온도 테스트 페이퍼에 대한 레퍼런스 이미지 정보 및 색상 비교 방법은 상술한 방법과 다른 방법이 적용될 수 있다. 일 예로, 상기 온도 테스트 페이퍼에 대한 레퍼런스 이미지 정보는 기본 (default) 온도 테스트 색상 정보에 대응할 수 있고, 이에 따라 색상 비교 방법은 결과 색상 정보가 상기 기본 온도 테스트 색상 정보와 일정 문턱값 이상 상이한지 비교하는 방법이 적용될 수 있다. 이때, 상기 결과 색상 정보가 상기 기본 온도테스트 색상 정보와 상이하다고 판단되는 경우, 상기 온도 테스트 페이퍼가 접촉된 물체 표면이 일정 이상 온도까지 변화하였음을 의미하고, 이는 상기 물체가 제대로 세척되었음을 의미할 수 있다.In an additional embodiment, a specific test paper according to the present invention may include a temperature test paper that indicates whether the temperature of the surface of an object in contact with the specific test paper has changed above a certain temperature using a color different from the existing color. According to an embodiment, the certain temperature value may have values such as 65°C, 71°C, 77°C, 82°C, 110°C, 121°C, etc. At this time, a method different from the reference image information and color comparison method for the temperature test paper may be applied. For example, the reference image information for the temperature test paper may correspond to default temperature test color information, and accordingly, a color comparison method may be applied to compare whether the result color information differs from the default temperature test color information by more than a certain threshold value. At this time, if it is determined that the result color information differs from the default temperature test color information, it means that the surface of the object in contact with the temperature test paper has changed to a temperature above a certain level, which may mean that the object has been properly cleaned.
상술한 실시예에 따르면, 데이터 처리 서버 (20)는 모바일 단말기 (10)로부터 제공받은 식별 정보를 이용하여, 특정 테스트 페이퍼가 잔류 염소 테스트 페이퍼이면 도 2 등 상술한 실시예에 따라 색상 비교를 통해 가장 유사도가 높다고 판단되는 특정 레벨 정보를 추출하는 반면, 상기 특정 테스트 페이퍼가 온도 테스트 페이퍼이면 상술한 실시예와 달리 결과 색상 정보가 상기 기본 온도 테스트 색상 정보와 일정 문턱값 이상 상이한지 여부를 근거로 세척이 제대로 되었는지 여부를 추출할 수 있다. 상기 데이터 처리 서버 (20)는 이렇게 추출된 정보를 결과 데이터로 생성하여 모바일 단말기 (10) 및/또는 DB (30)로 제공할 수 있다.According to the above-described embodiment, the data processing server (20) uses identification information received from the mobile terminal (10) to extract specific level information that is judged to have the highest similarity through color comparison according to the above-described embodiment, such as FIG. 2, if the specific test paper is a residual chlorine test paper, unlike the above-described embodiment, it can extract whether the cleaning was done properly based on whether the result color information differs from the basic temperature test color information by more than a certain threshold value. The data processing server (20) can generate the extracted information as result data and provide it to the mobile terminal (10) and/or DB (30).
상술한 바와 같이 도면을 참조하여 본 발명의 바람직한 실시예를 설명하였지만, 해당 기술분야의 숙련된 당업자라면, 하기의 청구범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 또는 변경시킬 수 있다.As described above, preferred embodiments of the present invention have been explained with reference to the drawings; however, a person skilled in the art may make various modifications or changes to the present invention without departing from the spirit and scope of the invention as described in the following claims.
10: 모바일 단말기
20: 데이터 처리 서버
30: DB10: Mobile device
20: Data processing server
30: DB
Claims (8)
모바일 단말기로부터, 특정 테스트 페이퍼에 대한 레퍼런스 이미지 정보를 획득하는, 레퍼런스 이미지 정보 획득 단계;
상기 레퍼런스 이미지 정보 중 제1 관심 영역을 검출하고, 상기 검출된 제1 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 추출하는, 기준 색상 정보 추출 단계;
상기 모바일 단말기로부터, 상기 특정 테스트 페이퍼에 대한 결과 이미지 정보를 획득하는, 결과 이미지 정보 획득 단계;
상기 결과 이미지 정보 중 제2 관심 영역을 검출하고, 상기 검출된 제2 관심 영역으로부터 상기 특정 테스트 페이퍼에 대한 결과 색상 정보를 추출하는, 결과 색상 정보 추출 단계;
상기 기준 색상 정보, 상기 결과 색상 정보 중 적어도 하나 이상을 이용하여, 복수의 색상 모델들 중 색상 비교에 활용하는 비교 색상 모델을 선택하는 단계;
제1수학식을 이용하여 상기 선택된 비교 색상 모델의 3가지 채널별로 미리 결정된 가중치에 기초하여, 상기 특정 테스트 페이퍼에 대한 복수의 레벨들 중 상기 결과 색상 정보와 유사도가 가장 높다고 판단된 특정 레벨 정보를 추출하는 단계; 및
상기 추출된 특정 레벨 정보를 이용하여, 상기 특정 테스트 페이퍼에 대한 결과 데이터를 생성하여 상기 모바일 단말기로 전송하는 단계를 포함하되,
상기 데이터 처리 서버는 상기 제1 관심 영역은 상기 모바일 단말기로부터 획득된 레퍼런스 이미지를 정규화하고, 상기 정규화된 이미지를 흑백 이미지로 변환하고, 상기 흑백 이미지를 이진 이미지로 변환한 뒤, 상기 이진 이미지 정보에 대해 외곽선을 추출하고, 상기 추출된 외곽선으로부터 직선을 추출한 뒤, 추출된 직선들이 교차되는 접점 4개를 사각형의 각 점으로 판단하고, 상기 사각형의 좌표를 벡터에 저장하고, 이에 기초하여 가장 넓은 사각 영역을 추출하고, 상기 가장 넓은 사각 영역에 대해 왜곡 보정을 수행하여 검출되며,
상기 비교 색상 모델을 선택하는 단계는,
상기 기준 색상 정보, 상기 결과 색상 정보 중 적어도 하나 이상에 대한 각 색상 모델에서의 채널별 표준 편차를 산출하는 단계; 및
상기 복수의 색상 모델들 중 채널별 표준 편차의 합이 가장 큰 색상 모델을 상기 비교 색상 모델로 선택하는 단계를 포함하고,
상기 복수의 색상 모델들은,
빨간색 (Red) 채널, 초록색 (Green) 채널 및 파란색 (Blue) 채널로 구성되는 RGB (Red Green Blue) 색상 모델;
색상 (Hue) 채널, 채도 (Saturation) 채널 및 명도 (Intensity) 채널로 구성되는 HSI 색상 모델; 및
밝기 (Lightness) 채널, 초록색 (Green) - 자홍색 (Magenta)에 기초하여 정의되는 a 채널 및 파란색 (Blue) - 노란색 (Yellow)에 기초하여 정의되는 b 채널로 구성되는 Lab 색상 모델을 포함하고
상기 제1수학식은 이되,
상기 w1, w2, w3는 각 색상 모델에 대해 미리 설정된 가중치 값이이며,
RGB 색상모델에 대해서는 w1 = w2 = w3 으로 설정되고, HIS 색상 모델, Lab 색상 모델에 대해서는 w1 > w2 = w3 으로 설정되고,
stick CH1/CH2/CH3는 결과 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 값이며,
target CH1/CH2/CH3는 특정 테스트 페이퍼에 대한 복수의 레벨별 기준 색상 정보를 선택된 비교 색상 모델로 변환하여 각 채널별로 분리한 색상 값인 것을 특징으로 하는, 데이터 처리 서버의 동작 방법.
In a method of operation of a data processing server included in a food safety management inspection system,
A reference image information acquisition step of acquiring reference image information for a specific test paper from a mobile terminal;
A reference color information extraction step of detecting a first region of interest among the reference image information and extracting a plurality of level-specific reference color information for the specific test paper from the detected first region of interest;
A result image information acquisition step of acquiring result image information for the specific test paper from the mobile terminal;
A result color information extraction step, which detects a second region of interest among the result image information and extracts result color information for the specific test paper from the detected second region of interest;
A step of selecting a comparison color model to be used for color comparison among a plurality of color models by using at least one of the above reference color information and the above result color information;
A step of extracting specific level information determined to have the highest similarity to the result color information among a plurality of levels for the specific test paper, based on predetermined weights for each of the three channels of the selected comparison color model using a first mathematical formula; and
The method includes the step of generating result data for the specific test paper using the extracted specific level information and transmitting it to the mobile terminal,
The data processing server normalizes the reference image obtained from the mobile terminal, converts the normalized image into a grayscale image, converts the grayscale image into a binary image, extracts an outline from the binary image information, extracts straight lines from the extracted outline, determines four points where the extracted straight lines intersect as the points of a rectangle, stores the coordinates of the rectangle in a vector, extracts the widest rectangular area based on this, and performs distortion correction on the widest rectangular area to detect it.
The step of selecting the above comparison color model is,
A step of calculating the channel-specific standard deviation in each color model for at least one of the reference color information and the result color information; and
The method includes the step of selecting the color model with the largest sum of standard deviations per channel among the plurality of color models as the comparison color model.
The above plurality of color models are,
RGB (Red Green Blue) color model consisting of a red channel, a green channel, and a blue channel;
An HSI color model consisting of a Hue channel, a Saturation channel, and an Intensity channel; and
It includes a Lab color model consisting of a Lightness channel, an a channel defined based on Green and Magenta, and a b channel defined based on Blue and Yellow.
The above first mathematical formula is However,
The above w1, w2, and w3 are preset weight values for each color model, and
For the RGB color model, w1 = w2 = w3 is set, and for the HIS color model and Lab color model, w1 > w2 = w3 is set, and
stick CH1/CH2/CH3 are color values separated by channel by converting the resulting color information into a selected comparison color model, and
A method of operation of a data processing server, characterized in that target CH1/CH2/CH3 is a color value separated by each channel by converting multiple level-specific standard color information for a specific test paper into a selected comparison color model.
상기 모바일 단말기로부터, 상기 특정 테스트 페이퍼를 식별하는 정보를 획득하는, 식별 정보 획득 단계를 더 포함하는 것을 특징으로 하는, 데이터 처리 서버의 동작 방법.In Article 1,
A method of operation of a data processing server, characterized by further including a step of obtaining identification information, wherein information identifying the specific test paper is obtained from the mobile terminal.
상기 식별 정보 획득 단계는 상기 레퍼런스 이미지 정보 획득 단계 이전에 수행되거나 상기 레퍼런스 이미지 정보 획득 단계와 동시에 수행되는 것을 특징으로 하는, 데이터 처리 서버의 동작 방법.In Paragraph 2,
A method of operation of a data processing server, characterized in that the identification information acquisition step is performed prior to the reference image information acquisition step or simultaneously with the reference image information acquisition step.
상기 특정 테스트 페이퍼는,
상기 특정 테스트 페이퍼에 접촉되는 물체 표면의 잔류 염소 수치에 대응하는 색상을 표시하는 잔류 염소 테스트 페이퍼를 포함하는 것을 특징으로 하는, 데이터 처리 서버의 동작 방법.In Article 1,
The aforementioned specific test paper is,
A method of operation of a data processing server, characterized by including a residual chlorine test paper that displays a color corresponding to the residual chlorine level of the surface of an object in contact with the specific test paper.
상기 특정 테스트 페이퍼에 대한 결과 데이터를 이용하여 데이터 베이스를 업데이트하는 단계를 더 포함하는 것을 특징으로 하는, 데이터 처리 서버의 동작 방법.In Article 1,
A method of operation of a data processing server, characterized by further including the step of updating a database using result data for the specific test paper above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020230151246A KR103020249B1 (en) | 2023-11-03 | A system of food safety management inspection and operating method of the system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020230151246A KR103020249B1 (en) | 2023-11-03 | A system of food safety management inspection and operating method of the system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| KR20250065157A KR20250065157A (en) | 2025-05-12 |
| KR103020249B1 true KR103020249B1 (en) | 2026-09-16 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8885934B2 (en) | Method and system for determining colour from an image | |
| WO2020078229A1 (en) | Target object identification method and apparatus, storage medium and electronic apparatus | |
| CN103984964B (en) | A kind of test strips image-recognizing method and system | |
| CN110443800B (en) | Video image quality evaluation method | |
| CN106570855A (en) | Method and system for quickly judging pork freshness | |
| JPWO2019182108A1 (en) | Color correspondence information generation system, program and color correspondence information generation method | |
| US20170278257A1 (en) | Data processing apparatus, color identification method, non-transitory computer readable medium, and color chart | |
| CN115512136B (en) | Test strip color difference identification method and device, electronic equipment and storage medium | |
| CN113537248A (en) | Image recognition method and device, electronic device and storage medium | |
| CN110675400A (en) | Rapid and intelligent mutton quality index detection method based on mobile phone APP | |
| US20160203605A1 (en) | Recording medium, colony image inspection method, and colony image inspection device | |
| CN111291778A (en) | Training method of depth classification model, exposure anomaly detection method and device | |
| Vazquez et al. | Color constancy algorithms: Psychophysical evaluation on a new dataset | |
| CN115046936B (en) | Edible oil detection method and device | |
| CN115294050B (en) | A method, apparatus, electronic device and medium for processing Wagyu beef. | |
| CN119131866B (en) | Methods, devices, and equipment for assisting in selecting the shade of foundation products | |
| KR20250065157A (en) | A system of food safety management inspection and operating method of the system | |
| KR101992403B1 (en) | Skin moisture estimating method using image | |
| KR20250127671A (en) | AI-based food safety management inspection system | |
| CN107145734B (en) | Automatic medical data acquisition and entry method and system | |
| CN105761282B (en) | The detection method and device of image color cast | |
| KR103008550B1 (en) | Method and apparatus for correcting brightness of image | |
| KR20180061629A (en) | Evaluation method for skin condition using image and evaluation apparatus for skin condition using image | |
| CN115424039A (en) | Theme color determining method of picture, model training method and device | |
| CN115439661A (en) | Theme color determination method, picture display method, model training method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PA0109 | Patent application |
St.27 status event code: A-0-1-A10-A12-nap-PA0109 |
|
| PA0201 | Request for examination |
St.27 status event code: A-1-2-D10-D11-exm-PA0201 |
|
| PN2301 | Change of applicant |
St.27 status event code: A-3-3-R10-R13-asn-PN2301 St.27 status event code: A-3-3-R10-R11-asn-PN2301 |
|
| P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
| P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
| P13-X000 | Application amended |
St.27 status event code: A-2-2-P10-P13-nap-X000 |
|
| PE0801 | Dismissal of amendment |
St.27 status event code: A-2-2-P10-P12-nap-PE0801 |
|
| P12-X000 | Request for amendment of application rejected |
St.27 status event code: A-2-2-P10-P12-nap-X000 |
|
| D13-X000 | Search requested |
St.27 status event code: A-1-2-D10-D13-srh-X000 |
|
| PG1501 | Laying open of application |
St.27 status event code: A-1-1-Q10-Q12-nap-PG1501 |
|
| PE0902 | Notice of grounds for rejection |
St.27 status event code: A-1-2-D10-D21-exm-PE0902 |
|
| T11-X000 | Administrative time limit extension requested |
St.27 status event code: U-3-3-T10-T11-oth-X000 |
|
| T11-X000 | Administrative time limit extension requested |
St.27 status event code: U-3-3-T10-T11-oth-X000 |
|
| E13-X000 | Pre-grant limitation requested |
St.27 status event code: A-2-3-E10-E13-lim-X000 |
|
| P11-X000 | Amendment of application requested |
St.27 status event code: A-2-2-P10-P11-nap-X000 |
|
| P13-X000 | Application amended |
St.27 status event code: A-2-2-P10-P13-nap-X000 |
|
| PE0701 | Decision of registration |
St.27 status event code: A-1-2-D10-D22-exm-PE0701 |
|
| PG1601 | Publication of registration |
St.27 status event code: A-4-4-Q10-Q13-nap-PG1601 |