선정목록으로
Evaluation of Color Performance of Video Cameras for Poultry House Monitoring Applications
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.1590/1806-9061-2024-2043
- 저널
- Brazilian Journal of Poultry Science
- 발행년도
- 2025
- 발행기관
- Fundação Apinco de Ciência e Tecnologia Avícolas
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1590/1806-9061-2024-2043
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4410256588
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
ABSTRACT This study examined the critical role of image color accuracy in surveillance systems, particularly in poultry houses, using affordable video cameras. Variations in commercial camera color processing can lead to inconsistent metrics. Therefore, common cameras were evaluated on the Raspberry Pi platform, aiming to minimize color differences through a three-stage correction process. The analysis without correction revealed significant color discrepancies, particularly in the PI cameras using an automatic white balance, with differences of approximately 50. Gamma correction was applied to improve accuracy, thereby reducing the color differences to within 20 for most cameras. Polynomial regression further decreased the differences to less than 10 across various temperatures, demonstrating superior performance, especially for large initial discrepancies. Field experiments with and without color charts confirmed the effectiveness of color restoration using correction matrices. The study concluded that polynomial regression significantly enhances color accuracy on the Raspberry Pi platform, offering valuable applications across different temperatures and scenarios, thereby contributing to advancements in related fields.
본문 41,578자
본문 펼치기
Brazilian Journal of Poultry Science
Revista Brasileira de Ciência Avícola
<u>e-ISSN: 1806-9061 2025 / v.27 / n.1 / 001-013</u>
[http://dx.doi.org/10.1590/1806-9061-2024-2043](http://dx.doi.org/10.1590/1806-9061-2024-2043)
Original Article
<u></u> <u>Author(s)</u>
Chou CY <sup>I</sup> [https://orcid.org/0009-0004-4373-0668](https://orcid.org/0009-0004-4373-0668)
Lin TH <sup>I</sup> [https://orcid.org/0000-0001-7149-4368](https://orcid.org/0000-0001-7149-4368)
I National Taiwan University of Science and
Technology, Graduate Institute of Color and
Illumination Technology, NatTaiwan, Taipei,
Taiwan.
<u></u> <u>Mail Address</u>
Corresponding author e-mail address
Tzung-Han Lin
National Taiwan University of Science and
Technology, Graduate Institute of Color
and Illumination Technology, Taiwan; No.
43, Sec. 4, Keelung Rd., Da’an Dist., Taipei,
10607, Taiwan.
Phone: +886 2 2730 3717
Email: thl@mail.ntust.edu.tw
<u></u> <u>Keywords</u>
Video camera, poultry house, color
correction, color difference, polynomial
regression, Internet of things.
Section Editor: Irenilza de Alencar Nääs
Submitted: 10/December/2024
Approved: 09/March/2025
# _Evaluation of Color Performance of Video_ _Cameras for Poultry House Monitoring_ _Applications_ ABSTRACT
This study examined the critical role of image color accuracy in
surveillance systems, particularly in poultry houses, using affordable
video cameras. Variations in commercial camera color processing
can lead to inconsistent metrics. Therefore, common cameras were
evaluated on the Raspberry Pi platform, aiming to minimize color
differences through a three-stage correction process. The analysis
without correction revealed significant color discrepancies, particularly
in the PI cameras using an automatic white balance, with differences of
approximately 50. Gamma correction was applied to improve accuracy,
thereby reducing the color differences to within 20 for most cameras.
Polynomial regression further decreased the differences to less than
10 across various temperatures, demonstrating superior performance,
especially for large initial discrepancies. Field experiments with and
without color charts confirmed the effectiveness of color restoration
using correction matrices. The study concluded that polynomial
regression significantly enhances color accuracy on the Raspberry Pi
platform, offering valuable applications across different temperatures
and scenarios, thereby contributing to advancements in related fields.
# INTRODUCTION
Video cameras are widely used imaging tools that play an
indispensable role in modern technological applications. These devices
are extensively utilized for capturing images and color information
across multiple domains, including agriculture, healthcare, industrial
inspection, and security surveillance. Rapid advancements in imaging
technology have enabled the precise recording and analysis of visual
information.
In these application scenarios, the Raspberry Pi has emerged as an
ideal tool for monitoring, data collection, automation, and remote
control because of its accessibility and high customizability. Raspberry
Pi has gained widespread adoption across various fields, making
significant contributions to agriculture, which requires stable, costeffective, and efficient solutions. It has been extensively employed in
product monitoring, smart irrigation systems (Hassine _et al_ ., 2023), and
environmental data collection (Morchid _et al_ ., 2024); thereby enhancing
the quality and efficiency of agricultural production (Al Mamun _et al_ .,
2025).
However, the color accuracy of video cameras significantly
affects their effectiveness in practical applications. For instance, in
industrial inspections, color inaccuracies may affect product quality
and consequently reduce production efficiency (Goñi _et al_ ., 2017).
In medical imaging, color deviations can influence diagnostic results
and treatment plans, potentially impeding patient recovery (Desale _et_
<u>1</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
_al_ ., 2024). Maintaining color accuracy under varying
lighting and illumination conditions is crucial in imaging
technology. With the widespread adoption of the
Raspberry Pi in agricultural applications, its potential
as a platform for data collection and image processing
has garnered increasing attention.
This study aims to minimize the color discrepancy
among different cameras for a comprehensive
understanding of the color performance of video
cameras on Raspberry Pi. Three common types of
video cameras, with different parameter settings,
were evaluated under seven distinct color-temperature
conditions. Color samples were captured and
analyzed against reference values to calculate the
color differences. Subsequently, color correction was
performed using surveillance cameras in poultry houses
to enhance accuracy.
# RELATED WORKS
_Applications based on Raspberry Pi_
Raspberry Pi, a compact and cost-effective singleboard computer, has found widespread application
in diverse fields. With the integration of Internet of
Things (IoT) technology, wireless sensors have become
increasingly prevalent in agricultural applications.
Kamath _et al_ . (2019) developed a wireless visual
sensor network utilizing Raspberry Pi for precision
agriculture, specifically to monitor weeds in rice fields.
Using Raspberry Pi, Chen _et al_ . (2021) developed a
real-time monitoring system capable of identifying
six distinct cat behaviors: sleeping, eating, sitting,
walking, using the litterbox, and tipping over garbage
bins. Their system captured images in real time and
sent immediate warning messages when cats spent
excessive time in the litterbox or disturbed garbage
bins, thereby enabling instantaneous preventive
measures. In healthcare applications, Raspberry Pi has
demonstrated significant potential in digital diagnostics
through color analysis, providing improved detection
accuracy via color-tracking technology (Reddy _et al_ .,
2019; Yusoff _et al_ ., 2021).
_Color difference_
The Commission on Illumination (CIE) introduced
the CIELAB color space in 1976, which is an extension
of the CIE XYZ color space. CIELAB provides a more
intuitive and practical method for perception, including
lightness _L_ - and chromaticity coordinates ( _a_ - and
_b_ *). The color-difference formula plays an important
role in evaluating color accuracy and is widely used in
fields such as textile, printing, clinical dentistry, and
agricultural applications (Perez _et al_ ., 2011; Pecho _et_
_al_ .,2016; Wei _et al_ ., 2024). In the CIELAB color space,
the Euclidean distance between two color samples
( _L_ 1*, _a_ 1*, _b_ 1*) and ( _L_ 2*, _a_ 2*, _b_ 2*) is recognized as color
difference Δ _E_ *ab Δ _E_ *ab. Over decades, the color difference
was modified to Δ _E_ *94 Δ _E_ *94 and Δ _E_ *00 Δ _E_ *oo, displaying
better uniformity (Luo _et al_ ., 2001; Melgosa, 2023), as
announced by CIE in 1994 and 2000, respectively.
_Color correction technology_
Color correction is a crucial image-processing
technique designed to adjust color representation in
images to ensure consistency in display and output
across different devices. This technology has applications
in various fields, including display calibration, printer
color characterization, color encoding, and color
management. Because of the differences in spectral
sensitivity between camera sensors and the human
vision system, the colorimetric characterization of
digital cameras usually requires mapping RGB values to
the CIEXYZ color space to ensure device independence
(Westland _et al_ ., 2012).
Applications of color correction technology include
printing, digital image processing, digital archives,
product quality control, and agricultural sciences
(Cheung _et al_ ., 2004; You _et al_ ., 2020; Zhang _et al_ .,
2022; Baek _et al_ ., 2023; Kucuk _et al_ ., 2023 Meng _et al_ .,
2024). In these domains, color accuracy and consistency
are vital for the final product quality and performance.
Color correction helps rectify color deviations caused by
lighting conditions, camera characteristics, or display
device variations, thus achieving a more authentic and
accurate visual representation.
_Gamma correction_
The external stimuli for human perception follow
an exponential relationship. In low-brightness
environments, the human eye exhibits a heightened
sensitivity to changes in physical brightness, and
subtle variations significantly affect visual perception.
However, this sensitivity diminishes as ambient
brightness increases. In camera systems, image
signal processors incorporate gamma encoding to
enhance color saturation. Images undergo gamma
encoding when saved as JPG-compressed files and
displayed on monitors with inherent gamma encoding.
Consequently, brightness values typically undergo
<u>2</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
three gamma encoding adjustments prior to human
perception (Poynton, 1998).
Typically, digital camera sensors demonstrate a
linear conversion relationship when transforming
the input light intensity into digital values. However,
most commercial digital cameras perform internal
image preprocessing to ensure image quality. Typically,
cameras adjust the gamma value to 1/2.2 for images
intended for display in the standard RGB (sRGB) color
space, corresponding to the sRGB color space gamma
value of 2.2 (Anderson 1996).
_Polynomial regression_
Polynomial regression is a popular method for fitting
nonlinear data. Hong _et al_ . (2001) introduced a color
correction method utilizing polynomial transformation,
mapping colors from input to target color space using
polynomial formulas. By incorporating nonlinear
terms, polynomial regression effectively improves the
correction accuracy for nonlinear color distributions. This
method accommodates multiple polynomial degrees,
such as quadratic and cubic terms to achieve optimal
correction effects in different application scenarios.
Finlayson _et al_ . (2015) implemented polynomial matrix
expansion using quadratic, cubic, and quartic terms,
enhancing color mapping accuracy by expanding the
matrix dimensions used in least-squares regression.
Compared with the linear regression 3×3 matrix,
they employed larger 3×9, 3×19, and 3×34 matrices,
providing greater flexibility and adjustment range to
achieve higher color accuracy.
# MATERIALS AND METHODS
_Cameras and reference color_
Three models were used to evaluate the color
performance of the most common cameras in
Raspberry Pi, namely “Pi-cam,” “webcam,” and “PTZcam” (pan-tilt-zoom).
_• Pi-cam_ : The Pi camera is the official module of
Raspberry Pi. The version of Pi camera used in this
study was 1.3, equipped with an OV5647 sensor
from OmniVision, Inc.
_• Webcam_ : The Brio 4 K camera (Logitech Inc.) was
used for the evaluation of common video devices in
computers.
_• PTZ-cam_ : A 5-mega pixel IP camera with PTZ
features, manufactured by Saqicam Inc., was used
to evaluate images transmitted via the Internet. In
the experiment, (real-time streaming protocol) was
used to access the images.
The reference color chart used in this study was the
Macbeth Color Checker of McCamy _et al_ . (1976). The
Macbeth ColorChecker consists of 24 square-colored
patches, among which, 12 represent the primary colors
of color film processing and grayscale brightness from
white to black. The remaining colors are designed to
represent common natural colors, such as human skin,
foliage, and sky. The three cameras and ColorChecker
are shown in Figure 1.
Figure 1 – Three typical camera models were selected for color performance evaluation.
Figure 1 – Three typical camera models were selected for color performance evaluation.
The ground truths of the colors were measured
using the Topcon SR-UL1R instrument, which is a
spectroradiometer used to measure the luminance
and chromaticity of the color patches in this study.
The measurement followed the 0o/45o configuration
which is recommended by CIE and ISO 7724. All
measurement data are listed in Table 1. To simulate
the illumination scenario in poultry houses, the color
temperatures were measured at different hours of
the day. However, different latitudes and seasons may
produce divergent results. For example, the measured
correlated color temperature (CCT) of daylight in
Taiwan usually ranges from 5000 - 7000 K. To extend
feasibility, a well-controlled light chamber capable of
accurately simulating uniformly distributed illumination
at different color temperatures was used. In the
experiments, the camera performance was evaluated
at color temperatures ranging from 4000 - 7000 K.
<u>3</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
Table 1 – Measurement data of 24 ColorChecker color
patches under 6500 K.
Name of color patch
CIE L*a*b* XYZ
L* a* b* X Y Z
Dark skin 41.4 13.0 13.0 14.14 12.12 7.95
Light skin 67.4 17.5 15.8 42.81 37.10 26.17
Blue sky 52.5 -1.8 -23.0 20.17 20.55 35.04
Foliage 45.5 -15.3 22.0 12.45 14.88 7.40
Blue flower 57.9 11.8 -25.7 28.81 25.82 44.82
Bluish green 73.6 -32.6 -0.4 35.38 46.09 46.41
Orange 64.3 33.7 54.8 43.80 33.14 7.29
Purplish blue 44.0 15.5 -45.6 16.51 13.87 41.46
Moderate red 53.5 47.9 14.2 33.51 21.46 14.69
Purple 33.2 23.0 -21.8 10.38 7.62 15.15
Yellow green 75.5 -27.3 56.3 39.51 49.00 13.01
Orange yellow 74.3 15.1 66.7 52.83 47.14 8.80
Red 33.1 18.1 -47.3 9.72 7.60 28.73
Green 59.0 -43.3 32.2 17.58 27.06 11.47
Blue 44.5 49.7 26.3 23.91 14.16 5.92
Magenta 83.8 -1.5 79.6 63.03 63.71 9.90
Cyan 53.8 52.2 -17.2 35.21 21.78 32.55
Yellow 54.5 -24.3 -27.6 17.46 22.42 41.43
White 98.2 -0.4 1.3 95.28 95.54 93.59
Neutral 8 83.4 -0.5 -1.3 62.74 62.96 64.46
Neutral 6.5 69.0 -0.7 -1.5 39.05 39.29 40.51
Neutral 5 53.3 0.1 -1.1 21.33 21.31 21.90
Neutral 3.5 38.1 -0.4 -1.8 10.08 10.13 10.71
Black 24.0 0.2 -1.8 4.11 4.10 4.42
To understand the controllable features of cameras
in typical IoT environments, the open-source library
OpenCV was used to access the controllable functions
of the cameras. Different operation systems use
different drivers to control cameras. For example, the
Windows system utilizes the Microsoft DirectX driver;
in contrast, V4L (Video4Linux) is a common driver on
the Raspberry Pi platform.
All controllable features that may affect the color
difference of the three cameras were tested on Raspberry
Pi. The controllable conditions are listed in Tables 2
and 3. Table 2 lists the features based on image postprocessing. Table 3 lists the features used to control the
cameras prior to forming images. However, the white
balance in the PI-cam and webcam was categorized
into different stages to make them comparable. We
intentionally selected “white_balance_automatic”
and “white_balance_temperature” of webcam and
“white_balance_auto_preset” red_balance and blue_
balance of Pi-cam as the testing parameters.
Table 2 – Controllable features of image processing in
Raspberry Pi.
User and image control features
Parameters PI-cam webcam PTZ-cam
brightness available available NA
contrast available available NA
saturation available available NA
power_line_frequency available available NA
sharpness available available NA
white_balance_automatic NA available NA
gain NA available NA
white_balance_temperature NA available NA
backlight_compensation NA available NA
red_balance available NA NA
blue_balance available NA NA
horizontal_flip available NA NA
vertical_flip available NA NA
color_effects available NA NA
rotate available NA NA
color_effects_cbcr available NA NA
keep_format NA NA available
sustain_framerate NA NA available
timeout NA NA available
timeout_image_io NA NA available
Table 3 – Controllable features of cameras in Raspberry Pi.
User and image control features
Parameters PI-cam webcam PTZ-cam
auto_exposure available available NA
exposure_time_absolute available available NA
exposure_dynamic_framerate available available NA
pan_absolute NA available NA
tilt_absolute NA available NA
focus_absolute NA available NA
focus_automatic_continuous NA available NA
zoom_absolute NA available NA
auto_exposure_bias available NA NA
white_balance_auto_preset available NA NA
image_stabilization available NA NA
iso_sensitivity available NA NA
iso_sensitivity_auto available NA NA
exposure_metering_mode available NA NA
scene_mode available NA NA
During the experiments, each camera was configured
with at least two sets of parameter combinations:
automatic and manual white balances. The automatic
white balance setting automatically adjusts the color
temperature according to changes in ambient lighting
<u>4</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
to adapt to different lighting conditions. The autowhite balance function may differ depending on the
image signal processor (ISP) of the manufacturer. In
the manual white balance settings, the red and blue
gain levels were fixed at the same ratio to maintain
consistent white balance parameters. Each parameter
set was used to capture ColorChecker images
under different lighting conditions to evaluate color
performance under varying conditions. The detailed
settings for each parameter are listed in Table 4.
<u>Table 4 –</u> <u>Experimental conditions of white balance.</u>
<u>Camera model</u> <u>Condition notation</u> <u>White balance</u> <u>Note</u>
Pi-Cam MWB-RB Manual Equalized gain in red / blue
Pi-Cam MWB-D65 Manual Use pre-set “daylight”
<mark>Pi-Cam</mark> <mark>AWB</mark> <mark>Auto</mark> <mark>by ISP</mark>
webcam MWB-D65 Manual Use preset CCT 6500K
<mark>webcam</mark> <mark>AWB</mark> <mark>Auto</mark> <mark>by ISP</mark>
PTZ-cam MWB-RB Manual Equalized gain in red / blue
<u><mark>PTZ-cam</mark></u> <u><mark>AWB</mark></u> <u><mark>Auto</mark></u> <u><mark>by ISP</mark></u>
Figure 2 – Gamma curves of three selected cameras.
Figure 2 – Gamma curves of three selected cameras.
In Equation (1), _C_ represents the luminance of the
_L_ is the physical luminance from spectroradiometer.
All gamma values were determined by the regression image captured by the camera; γ is the gamma; and
process of Equation (2) once the luminances of six
grayscale color patches were obtained from the
spectroradiometer. The estimated gamma values of
PI-cam, webcam, and PTZ-cam were 0.9, 1.28, and
0.82, respectively. During color space conversion, the
gamma value of the image was adjusted back to 1 to
ensure that the image luminance matched the actual
luminance. Therefore, in Equation (1), the reciprocal of
gamma is used for gamma correction.
All other settings were kept consistent to minimize
the influence of other variables on color performance.
These consistent settings include resolution, aspect
ratio, and compression format. All three cameras
had a resolution of 1920×1080 (FHD) and used the
uncompressed PNG image format.
_Gamma correction of each camera_
Six grayscale color patches from ColorChecker
were used to determine the gamma properties of each
camera. These samples served as reference ground
truths from light to dark. Their luminances were
normalized and calculated against the reference values
measured using a spectroradiometer. The gamma
curve was plotted by fitting the squares in Figure 2. The
regressed gamma value was derived using Equations
(1) and (2).
_Polynomial regression_
Polynomial regression was used to correct the
RGB values of the captured images, verifying color
performance after correction. Following the definition
in Wei _et al_ . (2024), the raw RGB values of the
reference color on ColorChecker (A in Equation (3))
were obtained by the spectroradiometer, as shown in
the rightmost part of Figure 1, under different color
temperatures. M is a matrix with 3×10 elements used
to convert the RGB values of the images into the
reference ground truth (b in Equations (3) and (4)); M
can be obtained using Equation (5). In practice, the
values of A and b are normalized to achieve better
numerical stability during many matrix operations.
A color calibration card with 24 color patches was
selected. To avoid overfitting due to insufficient color
samples, a 3×10 linear transformation matrix of M was
used for color correction. This matrix was applied to
images captured under different camera parameters
gamma is used for gamma correction.
_C_ = _L_ <sup>γ</sup> (1)
_C_ = _L_ <sup>γ</sup> (1)
(2)
## γ = Σi log( L i) log( C i)
# Σ i log( L i) 2
log( _L_ <u>i) log(</u>
# Σ i log( L i) 2
<u>5</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
and lighting conditions, which had already undergone
gamma correction to achieve more accurate color
correction results.
A = Mb <sup>T</sup> (3)
(4)
## b = [ r 2 g 2 b 2 rg rb gb r g b 1]
(5)
M= Ab(b <sup>T</sup> b) <sup>-1</sup>
Figure 3 – Schematic of color difference experiment for all conditions.
# RESULTS AND DISCUSSION
Image without correction
The color differences of the images without
correction were determined, as shown in Figure 4. The
setting of type of camera can be seen in Table 4 and
Figure 3. The error bars indicate the upper and lower
bounds of the color differences of the 24 patches
within each dataset. The RGB values are the average
values of the cropped regions at the center of each
patch. Each chart in the figure shows the average color
difference between the 24 patches. The maximum
color difference is observed in the images captured by
Pi-cam at a color temperature of 6500 K. Although Picam has more controllable parameters, it exhibits poor
color accuracy. Among the seven camera conditions,
the webcam (Logitech Brio 4 K) exhibited the lowest
average color difference with its built-in auto-white
balance function. For the PTZ-cam, the maximum color
difference values were approximately 35, and their
averages were relatively consistent. However, among
the three PI-cam conditions, the auto-white balance
function did not improve significantly.
Considering the effect of color temperature
on environmental illumination, a change in color
temperature may have an impact on color performance.
_Evaluation metrics of color difference_
To comprehensively evaluate the color performance
of the cameras at various color temperatures, seven
color temperatures and seven conditions of the
three cameras were selected. Figure 3 shows all the
combinations. After capturing the photos, the three
groups were subjected to different correction types. The
CIEDE2000 color differences between the images from
the cameras and ground truth were used to evaluate
performance under different scenarios. The evaluation
results convey the accuracy of the camera colors.
The experimental results show that the color difference
exhibits a relatively consistent trend. No significant
differences were observed for the color temperatures.
Figure 4 – Schematic of color difference experiment for all conditions.
Image with gamma correction
After analyzing the images without correction,
gamma correction was performed on the images
captured by each camera to adjust the tone curve,
allowing images to better reproduce colors. Figure
5 shows the average color differences in the images
captured using different camera parameters and color
temperatures after gamma correction. Compared
with those without correction, the color-difference
values after gamma correction showed significant
<u>6</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
improvement, with the overall average color-difference
range of 10-30 reduced to below 20 and a maximum
color difference of less than 32. The highest color
difference appeared in the PI-cam under a manual
white balance, with the color difference decreasing
from approximately 30 to 20.
Figure 5 – Color difference in the case of images with gamma correction.
Cameras with a manual white balance at lower
color temperatures showed a larger color difference
than cameras with higher color temperatures.
However, after gamma correction, the color difference
values for each camera generally decreased, especially
for automatic white balance, whereby the color
difference values were significantly reduced to below
12. Compared with Figure 4, the color-difference
values for most cameras significantly decreased after
gamma correction, particularly for camera parameters
with larger initial color differences, with substantially
reduced corrected color differences.
Image with gamma and polynomial
correction
To achieve a more accurate color correction, we
used a 3 ×10 polynomial regression matrix, which
included both linear and quadratic terms of the RGB
values, as in Equation (4). Figure 6 shows the average
color differences of the images captured under
different camera parameters and color temperatures
after polynomial correction. The color-difference
values for each camera decreased significantly, with
all parameters showing a color difference of less than
10. Compared to gamma correction, polynomial
regression was more effective in reducing color
differences, particularly for Pi-cam and PTZ-cam, where
the correction effect was even more pronounced. After
correction, the differences in color-difference between
color temperatures decreased, and this trend was
relatively consistent.
For most cameras, the color difference values
decreased significantly after correction. Additionally,
the color-difference values between the different
camera parameters were reduced to a similar range,
further demonstrating the role of the correction process
in standardizing the color performance of different
cameras. The results in Figure 7 indicate that an
appropriate correction can reduce the color differences
between cameras, improve image consistency and
accuracy, and better meet the color accuracy demands
of various application scenarios.
Figure 6 – Color difference in images with gamma and polynomial correction.
Figure 7 – Comparison of before and after correction for all cameras.
Applications in poultry houses
In this section, the previous section results were
applied to real-world scenarios to demonstrate their
practical effects. Two poultry houses were selected
for verification: one was an environment that already
had a reference color chart, and the other was an
environment without it. Both poultry houses were
located at the center of Taiwan; their buildings were
oriented north-south and had a semi-open structure.
Therefore, sunlight affected the color of the camera
from morning to evening.
<u>7</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
_Poultry house with reference color chart_
A PTZ camera of model AXIS Q6128-E was used
in this poultry house. The conditions of white balance
could be set automatically or manually through the
manufacturer’s preset “outdoor.” All images were
collected between 08:00 AM and 04:00 PM on sunny
days in May, 2024.
Figures 8 and 9 show the results of photos captured
under different white-balance conditions and their
corrected outcomes. The first column of Figures 8 and
9 indicates the most common surveillance cameras
in poultry houses. In Figure 10, the automatic white
balance (AWB) mode performs slightly better than
manual white balance (MWB). However, gamma
correction has not improved, possibly because the
color chart was small, and illumination was nonuniform. After additional polynomial correction, the
color difference was reduced from approximately 20
to less than 5. The AWB mode continuously adjusted
the ratio between R, G, and B channels, which resulted
in a lower deviation.
Figure 8 – Comparison of images under the manual white balance of outdoor mode (with reference color chart).
<u>8</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
Figure 9 – Comparison of images under auto-white balance mode (with reference color chart).
_Poultry house without reference color chart_
Figure 10 – Color performance evaluation in an environment with reference color chart.
In the scenario of a poultry house without a color
chart, the building was oriented north-south, and a 2
K PTZ camera was installed near the east window. The
AWB and MWB modes used in this field were the same
as those used for the PTZ-cam (AWB) and PTZ-cam
(MWB-RB) in Section 3. Because there was no ground
truth to verify the corrected images, only corrected
images were evaluated qualitatively. This experiment
attempted to simulate the setting of many surveillance
cameras in a poultry house, which is the most common
<u>9</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
scenario, since calibrating all cameras individually is
unlikely during a massive deployment.
In this experiment, the same model of the PTZ camera
shown in Table 4 was used. The corrected gamma and
polynomial correction factors were duplicated and
deployed on the PTZ camera in the poultry house,
which had a dusty environment, whereby large
amounts of dust accumulated on the lenses. Figures 11
and 12 demonstrate the correction effect for different
time periods. The images captured in the MWB mode
have successfully shifted from an abnormal yellowgreen tone to a warm tone commonly found in poultry
houses. The colors of the feeding tubes appear to be
correct. Meanwhile, images taken with AWB have
restored more detailed tones, such as the gray-blue
canvas used for summer shading at the top right of
the image, which reverted to aqua-blue in the field.
Figure 11 – Images under manual white balance mode (without reference color chart).
Based on the experimental results, this study
compared several commonly used camera models
on the Raspberry Pi platform, particularly focusing
on their differing control parameters and conditional
limitations. Additionally, this study concluded that
polynomial regression can significantly improve color
accuracy in experimental environments. For practical
applications, we used PTZ cameras, which have fewer
controllable parameters, as examples, and verified
that their color accuracy could still be improved.
This further provides useful strategies for setting up
surveillance systems in the poultry house. Regarding
limitations, since we only selected the three most
common types of cameras on the Raspberry Pi system
for color performance evaluation, the characteristics of
cameras (e.g. gamma response) from different brands
may vary due to their unique pipelines.
<u>10</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
Figure 12 – Images in auto-white balance mode (without a reference color chart).
# CONCLUSION
This study investigated the color performance
of video cameras on a Raspberry Pi platform under
diverse lighting conditions, focusing on the color
performance and efficacy of various correction
methods. The assessments revealed pronounced color
discrepancies among the cameras, with the Pi-cam
exhibiting approximately a maximum error of 50 by
Δ _E_ *00 Δ _E_ *oo metric. The subsequent gamma correction
was significantly reduced to within 20. Further
refinement through polynomial regression, employing
a 3×10 matrix, decreased the deviations across various
temperatures to below 10, demonstrating superior
effectiveness, particularly in scenarios with substantial
initial deviations.
Experiments pertaining to practical applications were
conducted with and without the use of color charts.
In the scenarios utilizing color charts, the average
color deviation was reduced from an initial range of
10-30 to less than 10. In the absence of color cards,
the application of a correction matrix derived from
experimental data successfully normalized the image
tones, demonstrating efficacy even without direct
reference tools. When color difference is significantly
reduced, it can effectively assist pet owners or
veterinarians in practical applications. They can remotely
and instantly assess the health condition of animals in
the poultry house, especially by identifying symptoms
based on the change of color. This study highlights
the potential of polynomial regression in significantly
enhancing color accuracy across various settings.
<u>11</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
# ACKNOWLEDGEMENTS
This work was supported in part by the Ministry of
Agriculture, Taiwan. The authors also thank the lab
held by professor Y. C. Tasi for their assistance in the
setup of devices and poultry house data collection.
# AUTHOR CONTRIBUTIONS
Chia-Yi Chou contributed to the methodology,
software development, validation, formal analysis,
investigation, data curation, implementation,
visualization of the findings, and the original draft
of the manuscript. Tzung-Han Lin contributed to
conceptualization, methodology, validation, formal
analysis, resources, data curation, supervision,
review and editing of the final manuscript, project
administration and funding acquisition.
# FUNDING
Ministry of Agriculture, Taiwan (113FI-17.1.2AD-02).
# DATA AVAILABILITY STATEMENT
The data underlying the results presented in this
paper are not publicly available at this time, but may be
obtained from the authors upon reasonable request.
# CONFLICT OF INTEREST
The authors declare no conflicts of interest.
# REFERENCES
Al Mamun MdR, Ahmed AK, Upoma SM, _et al_ . IoT-enabled solar-powered
smart irrigation for precision agriculture. Smart Agricultural Technology
[2025;10:100773. https://doi.org/10.1016/j.atech.2025.100773](https://doi.org/10.1016/j.atech.2025.100773)
Anderson M, Motta R, Chandrasekar S, _et al_ . Proposal for a standard
default color space for the internet-sRGB. Proceedings of 4th Color
and Imaging Conference; 1996 Nov 19-22; Scottsdale, Arizona: Society
for Imaging Science and Technology; 1996. p238–245.
Baek SH, Jeon JS, Kwak TY. Color calibration of moist soil images
captured under irregular lighting conditions. Computers and
[Electronics in Agriculture 2023;214:108299 https://doi.org/10.1016/j.](https://doi.org/10.1016/j.compag.2023.108299)
[compag.2023.108299](https://doi.org/10.1016/j.compag.2023.108299)
Chen RC, Saravanarajan VS, Hung HT. Monitoring the behaviours of pet
cat based on YOLO model and raspberry Pi. International Journal
[of Applied Science and Engineering 2021;18(5):1–12. https://doi.](https://doi.org/10.6703/IJASE.202109_18%0x285%0x29.016)
[org/10.6703/IJASE.202109_18(5).016](https://doi.org/10.6703/IJASE.202109_18%0x285%0x29.016)
Cheung V, Westland S, Connah D, _et al_ . A comparative study of the
characterisation of colour cameras by means of neural networks and
polynomial transforms. Coloration Technology 2004;120(1):19–25.
[https://doi.org/10.1111/j.1478-4408.2004.tb00201.x](https://doi.org/10.1111/j.1478-4408.2004.tb00201.x)
Desale RP, Patil PS. An efficient multi-class classification of skin cancer using
optimized vision transformer. Medical and Biological Engineering and
[Computing 2024;62(3):773-89. https://doi.org/10.1007/s11517-023-](https://doi.org/10.1007/s11517-023-02969-x)
[02969-x](https://doi.org/10.1007/s11517-023-02969-x)
Finlayson GD, Mackiewicz M, Hurlbert A. Color Correction Using Root
Polynomial Regression. IEEE Transactions on Image Processing
[2015;24(5):1460–70. https://doi.org/10.1109/TIP.2015.2405336](https://doi.org/10.1109/TIP.2015.2405336)
Goñi SM, Salvadori VO. Color measurement: comparison of colorimeter vs.
[computer vision system. Food Measure 2017;11(2):538-47. https://doi.](https://doi.org/10.1007/s11694-016-9421-1)
[org/10.1007/s11694-016-9421-1](https://doi.org/10.1007/s11694-016-9421-1)
Hassine IB, Mezghani D, Belkadi A, _et al_ . Design of smart vertical hydroponic
[system. Engenharia Agrícola 2023;43(5):e20220205. https://doi.](https://doi.org/10.1590/1809-4430-eng.agric.v43n5e20220205/2023)
[org/10.1590/1809-4430-eng.agric.v43n5e20220205/2023](https://doi.org/10.1590/1809-4430-eng.agric.v43n5e20220205/2023)
Hong G, Luo MR, Rhodes PA. A study of digital camera colorimetric
characterization based on polynomial modeling. Color Research
& Application 2001;26(1):76–84. [https://doi.org/10.1002/1520-](https://doi.org/10.1002/1520-6378%0x28200102%0x2926:1<76::AID-COL8>3.0.CO;2-3)
[6378(200102)26:1<76::AID-COL8>3.0.CO;2-3](https://doi.org/10.1002/1520-6378%0x28200102%0x2926:1<76::AID-COL8>3.0.CO;2-3)
Kamath R, Balachandra M, Prabhu S. Raspberry Pi as visual sensor nodes
[in precision agriculture: a study. IEEE Access 2019;7:45110–22. https://](https://doi.org/10.1109/ACCESS.2019.2908846)
[doi.org/10.1109/ACCESS.2019.2908846](https://doi.org/10.1109/ACCESS.2019.2908846)
Kucuk A, Finlayson GD, Mantiuk R, _et al_ . Performance comparison of
classical methods and neural networks for colour correction. Journal
[of Imaging 2023;9(10):214. https://doi.org/10.3390/jimaging9100214](https://doi.org/10.3390/jimaging9100214)
Luo MR, Cui G, Rigg B. The development of the CIE 2000 colour-difference
formula: CIEDE2000. Color Research & Application 2001;26(5):340–
[50. https://doi.org/10.1002/col.1049](https://doi.org/10.1002/col.1049)
McCamy, SC, Marcus H, Davidson J. A color-rendition chart. Journal of
Applied Photographic Engineering 1976;2(3):95–99.
Melgosa M. CIE94, History, Use, and performance. In: Shamey R, editor.
Encyclopedia of color science and technology. Cham: Springer
[International Publishing; 2023:236–9. https://doi.org/10.1007/978-3-](https://doi.org/10.1007/978-3-030-89862-5_13)
[030-89862-5_13](https://doi.org/10.1007/978-3-030-89862-5_13)
Meng R, Yu Z, Fu Q, _et al_ . Smartphone-based colorimetric detection platform
using color correction algorithms to reduce external interference.
Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy
[2024;316:124350. https://doi.org/10.1016/j.saa.2024.124350](https://doi.org/10.1016/j.saa.2024.124350)
Morchid A, Oughannou Z, Alami RE, _et al_ . Integrated internet of
things (IoT) solutions for early fire detection in smart agriculture.
[Results in Engineering 2024;24:103392. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.rineng.2024.103392)
[rineng.2024.103392](https://doi.org/10.1016/j.rineng.2024.103392)
Pecho OE, Ghinea R, Alessandretti R, _et al_ . Visual and instrumental shade
matching using CIELAB and CIEDE2000 color difference formulas.
Dental Materials 2016;32(1):82–92. [https://doi.org/10.1016/j.](https://doi.org/10.1016/j.dental.2015.10.015)
[dental.2015.10.015](https://doi.org/10.1016/j.dental.2015.10.015)
Perez M del M, Ghinea R, Herrera LJ, _et al_ . Dental ceramics: A CIEDE2000
acceptability thresholds for lightness, chroma and hue differences.
[Journal of Dentistry 2011;39:e37–e44. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.jdent.2011.09.007)
[jdent.2011.09.007](https://doi.org/10.1016/j.jdent.2011.09.007)
Poynton CA. Rehabilitation of gamma. Proceedings of the SPIE 3299, 3rd
Human Vision and Electronic Imaging; 1998 Jul 17; 1998. San Jose.
[CA: Photonics West ‘98 Electronic Imaging; 1998. p.232–49. https://](https://doi.org/10.1117/12.320126)
[doi.org/10.1117/12.320126](https://doi.org/10.1117/12.320126)
Reddy APC, Sandilya BVH, Annis Fathima A. Detection of eye strain through
blink rate and sclera area using raspberry-pi. The Imaging Science
<u>12</u>
Chou CY, Lin TH _Evaluation of Color Performance of Video Cameras for_
_Poultry House Monitoring Applications_
[Journal 2019;67(2):90–9. https://doi.org/10.1080/13682199.2018.15](https://doi.org/10.1080/13682199.2018.1553343)
[53343](https://doi.org/10.1080/13682199.2018.1553343)
Wei TY, Lin TH, Tasi YC. Comb color analysis of broilers through the video
surveillance system in a poultry house. Brazilian Journal of Poultry
[Science 2024;26(1):1–8. https://doi.org/10.1590/1806-9061-2023-](https://doi.org/10.1590/1806-9061-2023-1891)
[1891](https://doi.org/10.1590/1806-9061-2023-1891)
Westland S, Ripamonti C, Cheung V. Computational colour science
[using MATLAB. Haboken: John Wiley & Sons; 2012. https://doi.](https://doi.org/10.1002/9780470710890)
[org/10.1002/9780470710890](https://doi.org/10.1002/9780470710890)
You M, Liu J, Zhang J, _et al_ . A novel chicken meat quality evaluation method
based on color card localization and color correction. IEEE Access
[2020;8:170093–100. https://doi.org/10.1109/ACCESS.2020.2989439](https://doi.org/10.1109/ACCESS.2020.2989439)
Yusoff ISM, Tamrin SBM, Ismail MH. Ergonomic perspective: Mismatch
between seat drivers and anthropometric measures of elderly taxi
drivers in Malaysia. International Journal of Integrated Engineering
2021;13(5):156–62.
Zhang TH, Yang T. Research on colour correction algorithm of art works
based on mapping rules. International Journal of Arts and Technology
[2022;14(1):24–39. https://doi.org/10.1504/IJART.2022.122449](https://doi.org/10.1504/IJART.2022.122449)
# DISCLAIMER/PUBLISHER’S NOTE
The published papers’ statements, opinions,
and data are those of the individual author(s) and
contributor(s). The editor(s) disclaim responsibility for
any injury to people or property resulting from any
ideas, methods, instructions, or products referred to
in the content.
<u>13</u>
섹션 본문
섹션 본문이 없습니다.
참고문헌 21건
- Computational Colour Science Using MATLAB Color Research & Application · Wiley · 2005 10.1002/col.20098
- A study of digital camera colorimetric characterization based on polynomial modeling Color Research & Application · Wiley · 2000 10.1002/1520-6378(200102)26:1<76::aid-col8>3.0.co;2-3
- Dental ceramics: A CIEDE2000 acceptability thresholds for lightness, chroma and hue differences Journal of Dentistry · Elsevier BV · 2011 10.1016/j.jdent.2011.09.007
- A comparative study of the characterisation of colour cameras by means of neural networks and polynomial transforms Coloration Technology · Wiley · 2004 10.1111/j.1478-4408.2004.tb00201.x
- Color Correction Using Root-Polynomial Regression IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2405336
- The development of the CIE 2000 colour‐difference formula: CIEDE2000 Color Research & Application · Wiley · 2001 10.1002/col.1049
- Visual and instrumental shade matching using CIELAB and CIEDE2000 color difference formulas Dental Materials · Elsevier BV · 2015 10.1016/j.dental.2015.10.015
- Color measurement: comparison of colorimeter vs. computer vision system Journal of Food Measurement & Characterization · Springer Science+Business Media · 2016 10.1007/s11694-016-9421-1
- Detection of eye strain through blink rate and sclera area using raspberry-pi The Imaging Science Journal · Taylor & Francis · 2018 10.1080/13682199.2018.1553343
- Raspberry Pi as Visual Sensor Nodes in Precision Agriculture: A Study IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2908846
- A Novel Chicken Meat Quality Evaluation Method Based on Color Card Localization and Color Correction IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2989439
- Monitoring the behaviours of pet cat based on YOLO model and raspberry Pi International Journal of Applied Science and Engineering · Chaoyang University of Technology (IJASE) · 2021 10.6703/ijase.202109_18(5).016
- Ergonomic Perspective: Mismatch between Seat Drivers and Anthropometric Measures of Elderly Taxi Drivers in Malaysia International Journal of Integrated Engineering · Penerbit UTHM · 2021 10.30880/ijie.2021.13.05.017
- Research on colour correction algorithm of art works based on mapping rules International Journal of Arts and Technology · Inderscience Publishers · 2022 10.1504/ijart.2022.122449
- Performance Comparison of Classical Methods and Neural Networks for Colour Correction Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2023 10.3390/jimaging9100214
- Color calibration of moist soil images captured under irregular lighting conditions Computers and Electronics in Agriculture · Elsevier BV · 2023 10.1016/j.compag.2023.108299
- An efficient multi-class classification of skin cancer using optimized vision transformer Medical & Biological Engineering & Computing · Springer Science+Business Media · 2023 10.1007/s11517-023-02969-x
- DESIGN OF SMART VERTICAL HYDROPONIC SYSTEM Engenharia Agrícola · Sociedade Brasileira de Engenharia Agrícola · 2023 10.1590/1809-4430-eng.agric.v43n5e20220205/2023
- Smartphone-based colorimetric detection platform using color correction algorithms to reduce external interference Spectrochimica Acta Part A Molecular and Biomolecular Spectroscopy · Elsevier BV · 2024 10.1016/j.saa.2024.124350
- Integrated Internet of Things (IoT) Solutions for Early Fire Detection in Smart Agriculture Results in Engineering · Elsevier BV · 2024 10.1016/j.rineng.2024.103392
- IoT-enabled solar-powered smart irrigation for precision agriculture Smart Agricultural Technology · Elsevier BV · 2025 10.1016/j.atech.2025.100773