Note : Les revendications sont présentées dans la langue officielle dans laquelle elles ont été soumises.
Claims:
1. A system comprising:
a pre-collection synchronizing unit, for starting to perform pre-collection
synchronization
on cameras when any one of the cameras enters a preparation completed status,
wherein
each of the cameras is assigned in advance with an independent thread by a
worker node;
a thread obstructing unit, for obstructing the thread of the camera when the
pre-collection
synchronization of one of the cameras is completed;
a remote synchronization requesting unit, configured to:
initiate a remote synchronization request to a master node after pre-
collection
synchronizations of all the cameras have been completed;
receive remote synchronization completion information broadcast by the
master node;
a thread waking-up unit, for waking up the obstructed thread of each of the
cameras while
invoking a software development kit (SDK) of each of the cameras to obtain
picture
frames, when the remote synchronization completion information broadcast by
the master
node is received, wherein the master node is for receiving a remote
synchronization
request initiated by any one of the worker nodes, and broadcasting the remote
synchronization completion information to all of the worker nodes.
2. The system of claim 1, wherein the pre-collection synchronizing unit
further comprises:
adding 1 to a first global counter when the worker node receives a preparation
completion
signal sent by one of the cameras whose initialization has been completed;
obstructing the thread of the camera;
comparing the counting of the first global counter with the number of all the
cameras;
and
Date recue/Date received 2023-04-21
if the two being equal, determining that the pre-collection synchronization
has been
completed.
3. The system of claim 1, wherein the master node further comprises:
judging whether a remote synchronization condition is reached on receiving the
remote
synchronization request;
if the remote synchronization condition is reached, generating the remote
synchronization
completion information; and
broadcasting the same to all the worker nodes.
4. The system of claim 3, wherein the master node further comprises:
adding 1 to a second global counter when it receives a remote synchronization
request
initiated by one of the worker nodes;
comparing the counting of the second global counter with the number of all the
worker
nodes; and
if the two being equal, generating the remote synchronization completion
information.
5. The system of any one of claims 1 to 4, further comprises:
a post-collection synchronizing unit, configured to:
start to perform post-collection synchronization when the thread of any one of
the cameras obtains a picture frame, and
determine that the post-collection synchronization is completed when the
threads of all the cameras have obtained picture frames.
21
Date recue/Date received 2023-04-21
6. The system of any one of claims 1 to 5, further comprises a picture
frame storing module,
for storing the picture frames obtained by the threads of all of the cameras
connected with
the worker node entirely in a memory of a data processing module, when it is
determined
that the post-collection synchronization is completed.
7. The system of any one of claims 1 to 6, is a distributed system
comprising the master node
and at least one worker node each being connected with a plurality of cameras.
8. The system of any one of claims 1 to 7, wherein the master node and
plurality of worker
nodes connected with different cluster cameras, wherein each cluster camera
includes one or
more cameras, wherein different cluster cameras are arranged in different
local regions
within a single monitor region.
9. The system of any one of claims 1 to 8, wherein the master node
communicates with the
worker nodes via network, wherein worker nodes communicate with cluster
cameras via
network, wherein the network is in a wired mode or in a wireless mode.
10. The system of any one of claims 1 to 9, wherein the master node and the
worker nodes are
configured as electronic equipment each having a processor and a memory,
wherein the
electronic equipment are personal computers and servers.
11. The system of any one of claims 1 to 10, wherein the number of cameras in
each cluster
camera is dynamically increased or decreased, wherein all the cameras in the
cluster camera
are all preconfigured with camera SDK for collecting video image data, and
wherein the
cameras are of same model or of different models.
12. The system of any one of claims 1 to 11, wherein the camera enters the
preparation
completed status indicates that the camera has completed preparation work.
13. The system of any one of claims 1 to 12, wherein the thread of the camera
is to invoke the
camera SDK to obtain picture frames, the thread of the camera is obstructed to
enter an
obstructed status wherein the obstructed thread is woken up to enter an
executable status,
wherein the thread is executed to invoke the camera SDK to obtain picture
frames.
22
Date recue/Date received 2023-04-21
14. The system of any one of claims 1 to 13, wherein any camera connected with
any worker
node enters the preparation completed status, the pre-collection
synchronization is started to
be performed on the camera, wherein the pre-collection synchronization means
to
synchronize the camera before the frame pictures of the camera are read.
15. The system of any one of claims 1 to 14, wherein the worker node receives
the remote
synchronization completion information broadcast by the master node, the
worker node
employs a notifyAll method to perform a waking-up process on the thread of
each camera
obstructed by the worker node, wherein the thread of each camera enters an
executable
status after having been woken up, and wherein the thread of the camera
invokes the SDK to
obtain picture frames after it enters the executable status.
16. The system of any one of claims 1 to 15, further comprises:
the worker nodes initializing all cameras respectively connected; and
assigning the independent thread to each of the cameras respectively
connected.
17. The system of any one of claims 1 to 16, wherein the worker nodes obtains
from master
node configuration files stored in advance on the master node, load the
configuration files,
initialize the cameras through configuration parameters in the configuration
files, set
resolutions of the cameras, and assign the independent thread to each camera.
18. The system of claim 2, wherein the worker node presets the first global
counter, wherein
the first global counter is initialized as zero before the pre-collection
synchronization,
wherein the first global counter counts a total number of cameras that have
completed
preparation work in all the cameras connected with the worker node.
19. The system of any one of claims 1 to 18, wherein the worker node obstnicts
a camera that
sends a preparation completion signal, a wait method obstructs the thread of
the camera,
wherein the thread of the camera enters the obstructed status, wherein the
execution to
invoke the SDK to obtain picture frames is temporarily stopped after the
thread of the
camera has entered the obstructed status.
23
Date recue/Date received 2023-04-21
20. The system of claim 4, wherein the master node presets the second global
counter, wherein
the second global counter is initialized as zero before the remote
synchronization and
cleared to zero after the remote synchronization has been completed.
21. The system of any one of claims 1 to 20, wherein the master node to
remotely synchronize
all the worker nodes, to enable the worker nodes to subsequently locally
synchronize cluster
cameras respectively connected.
22. The system of claim 4, wherein after the master node has broadcast the
remote
synchronization completion information to all the worker nodes, the second
global counter
is cleared to zero.
23. The system of any one of claims 1 to 22, wherein the master node and the
at least one
worker node reside in the same and single local area network.
24. The system of any one of claims 1 to 23, wherein the thread of the camera
has obtained the
picture frame, 1 is added to a third global counter, wherein the counting of
the third global
counter is compared with the number of all the cameras, indicates that the
post-collection
synchronization is completed.
25. The system of any one of claims 1 to 24, wherein the worker node presets a
third global
counter, and the third global counter is initialized as zero before post-
collection
synchronization and cleared to zero after post-collection synchronizations of
all cameras
have been completed.
26. The system of claim 6, wherein the data processing module is configured to
splice and
combine entire set of picture frames, wherein the data processing module is
disposed in the
worker node or on a preset server.
27. A device comprising:
24
Date recue/Date received 2023-04-21
a pre-collection synchronizing unit, for starting to perform pre-collection
synchronization
on cameras when any one of the cameras enters a preparation completed status,
wherein
each of the cameras is assigned in advance with an independent thread by a
worker node;
a thread obstructing unit, for obstructing the thread of the camera when the
pre-collection
synchronization of one of the cameras is completed;
a remote synchronization requesting unit, configured to:
initiate a remote synchronization request to a master node after pre-
collection
synchronizations of all the cameras have been completed;
receive remote synchronization completion information broadcast by the
master node;
a thread waking-up unit, for waking up the obstructed thread of each of the
cameras while
invoking a software development kit (SDK) of each of the cameras to obtain
picture
frames, when the remote synchronization completion information broadcast by
the master
node is received, wherein the master node is for receiving a remote
synchronization
request initiated by any one of the worker nodes, and broadcasting the remote
synchronization completion information to all of the worker nodes.
28. The device of claim 27, wherein the pre-collection synchronizing unit
further comprises:
adding 1 to a first global counter when the worker node receives a preparation
completion
signal sent by one of the cameras whose initialization has been completed;
obstructing the thread of the camera;
comparing the counting of the first global counter with the number of all the
cameras;
and
if the two being equal, determining that the pre-collection synchronization
has been
completed.
Date recue/Date received 2023-04-21
29. The device of claim 27, wherein the master node further comprises:
judging whether a remote synchronization condition is reached on receiving the
remote
synchronization request;
if the remote synchronization condition is reached, generating the remote
synchronization
completion information; and
broadcasting the same to all the worker nodes.
30. The device of claim 29, wherein the master node further comprises:
adding 1 to a second global counter when it receives a remote synchronization
request
initiated by one of the worker nodes;
comparing the counting of the second global counter with the number of all the
worker
nodes; and
if the two being equal, generating the remote synchronization completion
information.
31. The device of any one of claims 27 to 30, further comprises:
a post-collection synchronizing unit, configured to:
start to perform post-collection synchronization when the thread of any one of
the cameras obtains a picture frame, and
determine that the post-collection synchronization is completed when the
threads of all the cameras have obtained picture frames.
32. The device of any one of claims 27 to 31, further comprises a picture
frame storing module,
for storing the picture frames obtained by the threads of all of the cameras
connected with
the worker node entirely in a memory of a data processing module, when it is
determined
that the post-collection synchronization is completed.
26
Date recue/Date received 2023-04-21
33. The device of any one of claims 27 to 32, is a distributed system
comprising the master node
and at least one worker node each being connected with a plurality of cameras.
34. The device of any one of claims 27 to 33, wherein the master node and
plurality of worker
nodes connected with different cluster cameras, wherein each cluster camera
includes one or
more cameras, wherein different cluster cameras are arranged in different
local regions
within a single monitor region.
35. The device of any one of claims 27 to 34, wherein the master node
communicates with the
worker nodes via network, wherein worker nodes communicate with cluster
cameras via
network, wherein the network is in a wired mode or in a wireless mode.
36. The device of any one of claims 27 to 35, wherein the master node and the
worker nodes are
configured as electronic equipment each having a processor and a memory,
wherein the
electronic equipment are personal computers and servers.
37. The device of any one of claims 27 to 36, wherein the number of cameras in
each cluster
camera is dynamically increased or decreased, wherein all the cameras in the
cluster camera
are all preconfigured with camera SDK for collecting video image data, and
wherein the
cameras are of same model or of different models.
38. The device of any one of claims 27 to 37, wherein the camera enters the
preparation
completed status indicates that the camera has completed preparation work.
39. The device of any one of claims 27 to 38, wherein the thread of the camera
is to invoke the
camera SDK to obtain picture frames, the thread of the camera is obstructed to
enter an
obstructed status wherein the obstructed thread is woken up to enter an
executable status,
wherein the thread is executed to invoke the camera SDK to obtain picture
frames.
40. The device of any one of claims 27 to 39, wherein any camera connected
with any worker
node enters the preparation completed status, the pre-collection
synchronization is started to
be performed on the camera, wherein the pre-collection synchronization means
to
synchronize the camera before the frame pictures of the camera are read.
27
Date recue/Date received 2023-04-21
41. The device of any one of claims 27 to 40, wherein the worker node receives
the remote
synchronization completion information broadcast by the master node, the
worker node
employs a notifyAll method to perform a waking-up process on the thread of
each camera
obstructed by the worker node, wherein the thread of each camera enters an
executable
status after having been woken up, and wherein the thread of the camera
invokes the SDK to
obtain picture frames after it enters the executable status.
42. The device of any one of claims 27 to 41, further comprises:
the worker nodes initializing all cameras respectively connected; and
assigning the independent thread to each of the cameras respectively
connected.
43. The device of any one of claims 27 to 42, wherein the worker nodes obtains
from master
node configuration files stored in advance on the master node, load the
configuration files,
initialize the cameras through configuration parameters in the configuration
files, set
resolutions of the cameras, and assign the independent thread to each camera.
44. The device of claim 28, wherein the worker node presets the first global
counter, wherein
the first global counter is initialized as zero before the pre-collection
synchronization,
wherein the first global counter counts a total number of cameras that have
completed
preparation work in all the cameras connected with the worker node.
45. The device of any one of claims 27 to 44, wherein the worker node
obstructs a camera that
sends a preparation completion signal, a wait method obstructs the thread of
the camera,
wherein the thread of the camera enters the obstructed status, wherein the
execution to
invoke the SDK to obtain picture frames is temporarily stopped after the
thread of the
camera has entered the obstructed status.
46. The device of claim 30, wherein the master node presets the second global
counter, wherein
the second global counter is initialized as zero before the remote
synchronization and
cleared to zero after the remote synchronization has been completed.
28
Date recue/Date received 2023-04-21
47. The device of any one of claims 27 to 46, wherein the master node to
remotely synchronize
all the worker nodes, to enable the worker nodes to subsequently locally
synchronize cluster
cameras respectively connected.
48. The device of claim 30, wherein after the master node has broadcast the
remote
synchronization completion information to all the worker nodes, the second
global counter
is cleared to zero.
49. The device of any one of claims 27 to 48, wherein the master node and the
at least one
worker node reside in the same and single local area network.
50. The device of any one of claims 27 to 49, wherein the thread of the camera
has obtained the
picture frame, 1 is added to a third global counter, wherein the counting of
the third global
counter is compared with the number of all the cameras, indicates that the
post-collection
synchronization is completed.
51. The device of any one of claims 27 to 50, wherein the worker node presets
a third global
counter, and the third global counter is initialized as zero before post-
collection
synchronization and cleared to zero after post-collection synchronizations of
all cameras
have been completed.
52. The device of claim 32, wherein the data processing module is configured
to splice and
combine entire set of picture frames, wherein the data processing module is
disposed in the
worker node or on a preset server.
53. A method comprising:
starting to perform pre-collection synchronization on all cameras when any one
of the
cameras enters a preparation completed status, wherein each of the cameras is
assigned in
advance with an independent thread by a worker node;
29
Date recue/Date received 2023-04-21
obstructing the thread of the camera when the pre-collection synchronization
of one of
the cameras is completed, until the pre-collection synchronizations of all the
cameras
have been completed;
initiating a remote synchronization request to a master node; and
waking up an obstructed thread of each of the cameras while invoking a
software
development kit (SDK) of each of the cameras to obtain picture frames when
remote
synchronization completion information broadcast by the master node is
received.
54. The method of claim 53, wherein obstructing the thread of the camera when
the pre-
collection synchronization of one of the cameras is completed, until the pre-
collection
synchronizations of all the cameras have been completed comprises:
adding 1 to a first global counter when the worker node receives a preparation
completion
signal sent by one of the cameras whose initialization has been completed;
obstructing the thread of the camera;
comparing the counting of the first global counter with a number of all the
cameras; and
wherein if two being equal, determining that the pre-collection
synchronizations of all the
cameras have been completed.
55. The method of claim 53, further comprising:
the master node judging whether a remote synchronization condition is reached
on
receiving the remote synchronization request;
wherein if the remote synchronization condition is reached, generating the
remote
synchronization completion information; and
broadcasting the same to all the worker nodes.
Date recue/Date received 2023-04-21
56. The method of claim 55, wherein the master node judging whether the remote
synchronization condition is reached on receiving the remote synchronization
request
comprises:
adding 1 to a second global counter when the master node receives a remote
synchronization request initiated by one of the worker nodes;
comparing the counting of the second global counter with the number of all the
worker
nodes; and
if the two being equal, generating the remote synchronization completion
information.
57. The method of any one of claims 53 to 56, further comprising:
starting to perform post-collection synchronization when the thread of any one
of the
cameras obtains a picture frame; and
determining that the post-collection synchronization is completed when the
threads of all
the cameras have obtained picture frames.
58. The method of any one of claims 53 to 57, wherein the post-collection
synchronization is
completed, any one of the worker nodes storing the picture frames obtained by
the threads
of all the connected cameras entirely in a memory of a data processing module.
59. The method of any one of claims 53 to 58, is a distributed system
comprising the master
node and at least one worker node each being connected with a plurality of
cameras.
60. The method of any one of claims 53 to 59, wherein the master node and
plurality of worker
nodes connected with different cluster cameras, wherein each cluster camera
includes one or
more cameras, wherein different cluster cameras are arranged in different
local regions
within a single monitor region.
61. The method of any one of claims 53 to 60, wherein the master node
communicates with the
worker nodes via network, wherein worker nodes communicate with cluster
cameras via
network, wherein the network is in a wired mode or in a wireless mode.
31
Date recue/Date received 2023-04-21
62. The method of any one of claims 53 to 61, wherein the master node and the
worker nodes
are configured as electronic equipment each having a processor and a memory,
wherein the
electronic equipment are personal computers and servers.
63. The method of any one of claims 53 to 62, wherein the number of cameras in
each cluster
camera is dynamically increased or decreased, wherein all the cameras in the
cluster camera
are all preconfigured with camera SDK for collecting video image data, and
wherein the
cameras are of same model or of different models.
64. The method of any one of claims 53 to 63, wherein the camera enters the
preparation
completed status indicates that the camera has completed preparation work.
65. The method of any one of claims 53 to 64, wherein the thread of the camera
is to invoke the
camera SDK to obtain picture frames, the thread of the camera is obstructed to
enter an
obstructed status wherein the obstructed thread is woken up to enter an
executable status,
wherein the thread is executed to invoke the camera SDK to obtain picture
frames.
66. The method of any one of claims 53 to 65, wherein any camera connected
with any worker
node enters the preparation completed status, the pre-collection
synchronization is started to
be performed on the camera, wherein the pre-collection synchronization means
to
synchronize the camera before the frame pictures of the camera are read.
67. The method of any one of claims 53 to 66, wherein the worker node receives
the remote
synchronization completion information broadcast by the master node, the
worker node
employs a notifyAll method to perform a waking-up process on the thread of
each camera
obstructed by the worker node, wherein the thread of each camera enters an
executable
status after having been woken up, and wherein the thread of the camera
invokes the SDK to
obtain picture frames after it enters the executable status.
68. The method of any one of claims 53 to 67, further comprises:
the worker nodes initializing all cameras respectively connected; and
assigning the independent thread to each of the cameras respectively
connected.
32
Date recue/Date received 2023-04-21
69. The method of any one of claims 53 to 68, wherein the worker nodes obtains
from master
node configuration files stored in advance on the master node, load the
configuration files,
initialize the cameras through configuration parameters in the configuration
files, set
resolutions of the cameras, and assign the independent thread to each camera.
70. The method of any one of claims 53 to 69, wherein the worker node presets
the first global
counter, wherein the first global counter is initialized as zero before the
pre-collection
synchronization, wherein the first global counter counts the total number of
cameras that
have completed preparation work in all the cameras connected with the worker
node.
71. The method of any one of claims 53 to 70, wherein the worker node
obstructs a camera that
sends a preparation completion signal, a wait method obstructs the thread of
the camera,
wherein the thread of the camera enters the obstructed status, wherein the
execution to
invoke the SDK to obtain picture frames is temporarily stopped after the
thread of the
camera has entered the obstructed status.
72. The method of any one of claims 53 to 71, wherein the master node presets
the second
global counter, wherein the second global counter is initialized as zero
before the remote
synchronization and cleared to zero after the remote synchronization has been
completed.
73. The method of any one of claims 53 to 72, wherein the master node to
remotely synchronize
all the worker nodes, to enable the worker nodes to subsequently locally
synchronize cluster
cameras respectively connected.
74. The method of any one of claims 53 to 73, wherein after the master node
has broadcast the
remote synchronization completion information to all the worker nodes, the
second global
counter is cleared to zero.
75. The method of any one of claims 53 to 74, wherein the master node and the
at least one
worker node reside in the same and single local area network.
33
Date recue/Date received 2023-04-21
76. The method of any one of claims 53 to 75, wherein the thread of the camera
has obtained
the picture frame, 1 is added to a third global counter, wherein the counting
of the third
global counter is compared with the number of all the cameras, indicates that
the post-
collection synchronization is completed.
77. The method of any one of claims 53 to 76, wherein the worker node presets
a third global
counter, and the third global counter is initialized as zero before post-
collection
synchronization and cleared to zero after post-collection synchronizations of
all cameras
have been completed.
78. The method of claim 58, wherein the data processing module is configured
to splice and
combine entire set of picture frames, wherein the data processing module is
disposed in the
worker node or on a preset server.
79. A computer equipment comprising:
a storage medium;
a processor;
a computer program stored on the storage medium and executed on the processor,
configured to:
starting to perform pre-collection synchronization on all cameras when any one
of the cameras enters a preparation completed status, wherein each of the
cameras is assigned in advance with an independent thread by a worker node;
obstructing the thread of the camera when the pre-collection synchronization
of
one of the cameras is completed, until the pre-collection synchronizations of
all
the cameras have been completed;
initiating a remote synchronization request to a master node; and
34
Date recue/Date received 2023-04-21
waking up an obstructed thread of each of the cameras while invoking a
software development kit (SDK) of each of the cameras to obtain picture
frames when remote synchronization completion infoimation broadcast by the
master node is received.
80. The computer equipment of claim 79, wherein obstructing the thread of the
camera when
the pre-collection synchronization of one of the cameras is completed, until
the pre-
collection synchronizations of all the cameras have been completed comprises:
adding 1 to a first global counter when the worker node receives a preparation
completion
signal sent by one of the cameras whose initialization has been completed;
obstructing the thread of the camera;
comparing the counting of the first global counter with a number of all the
cameras; and
wherein if two being equal, determining that the pre-collection
synchronizations of all the
cameras have been completed.
81. The computer equipment of claim 79, further comprising:
the master node judging whether a remote synchronization condition is reached
on
receiving the remote synchronization request;
wherein if the remote synchronization condition is reached, generating the
remote
synchronization completion information; and
broadcasting the same to all the worker nodes.
82. The computer equipment of claim 81, wherein the master node judging
whether the remote
synchronization condition is reached on receiving the remote synchronization
request
comprises:
adding 1 to a second global counter when the master node receives a remote
synchronization request initiated by one of the worker nodes;
Date recue/Date received 2023-04-21
comparing the counting of the second global counter with the number of all the
worker
nodes; and
if the two being equal, generating the remote synchronization completion
information.
83. The computer equipment of any one of claims 79 to 82, further comprising:
starting to perform post-collection synchronization when the thread of any one
of the
cameras obtains a picture frame; and
determining that the post-collection synchronization is completed when the
threads of all
the cameras have obtained picture frames.
84. The computer equipment of any one of claims 79 to 83, wherein the post-
collection
synchronization is completed, any one of the worker nodes storing the picture
frames
obtained by the threads of all the connected cameras entirely in a memory of a
data
processing module.
85. The computer equipment of any one of claims 79 to 84, is a distributed
system comprising
the master node and at least one worker node each being connected with a
plurality of
cameras.
86. The computer equipment of any one of claims 79 to 85, wherein the master
node and
plurality of worker nodes connected with different cluster cameras, wherein
each cluster
camera includes one or more cameras, wherein different cluster cameras are
arranged in
different local regions within a single monitor region.
87. The computer equipment of any one of claims 79 to 86, wherein the master
node
communicates with the worker nodes via network, wherein worker nodes
communicate with
cluster cameras via network, wherein the network is in a wired mode or in a
wireless mode.
88. The computer equipment of any one of claims 79 to 87, wherein the master
node and the
worker nodes are configured as electronic equipment each having a processor
and a
memory, wherein the electronic equipment are personal computers and servers.
36
Date recue/Date received 2023-04-21
89. The computer equipment of any one of claims 79 to 88, wherein the number
of cameras in
each cluster camera is dynamically increased or decreased, wherein all the
cameras in the
cluster camera are all preconfigured with camera SDK for collecting video
image data, and
wherein the cameras are of same model or of different models.
90. The computer equipment of any one of claims 79 to 89, wherein the camera
enters the
preparation completed status indicates that the camera has completed
preparation work.
91. The computer equipment of any one of claims 79 to 90, wherein the thread
of the camera is
to invoke the camera SDK to obtain picture frames, the thread of the camera is
obstructed to
enter an obstructed status wherein the obstructed thread is woken up to enter
an executable
status, wherein the thread is executed to invoke the camera SDK to obtain
picture frames.
92. The computer equipment of any one of claims 79 to 91, wherein any camera
connected with
any worker node enters the preparation completed status, the pre-collection
synchronization
is started to be performed on the camera, wherein the pre-collection
synchronization means
to synchronize the camera before the frame pictures of the camera are read.
93. The computer equipment of any one of claims 79 to 92, wherein the worker
node receives
the remote synchronization completion information broadcast by the master
node, the
worker node employs a notifyAll method to perform a waking-up process on the
thread of
each camera obstructed by the worker node, wherein the thread of each camera
enters an
executable status after having been woken up, and wherein the thread of the
camera invokes
the SDK to obtain picture frames after it enters the executable status.
94. The computer equipment of any one of claims 79 to 93, further comprises:
the worker nodes initializing all cameras respectively connected; and
assigning the independent thread to each of the cameras respectively
connected.
37
Date recue/Date received 2023-04-21
95. The computer equipment of any one of claims 79 to 94, wherein the worker
nodes obtains
from master node configuration files stored in advance on the master node,
load the
configuration files, initialize the cameras through configuration parameters
in the
configuration files, set resolutions of the cameras, and assign the
independent thread to each
camera.
96. The computer equipment of any one of claims 79 to 95, wherein the worker
node presets the
first global counter, wherein the first global counter is initialized as zero
before the pre-
collection synchronization, wherein the first global counter counts the total
number of
cameras that have completed preparation work in all the cameras connected with
the worker
node.
97. The computer equipment of any one of claims 79 to 96, wherein the worker
node obstructs a
camera that sends a preparation completion signal, a wait method obstructs the
thread of the
camera, wherein the thread of the camera enters the obstructed status, wherein
the execution
to invoke the SDK to obtain picture frames is temporarily stopped after the
thread of the
camera has entered the obstructed status.
98. The computer equipment of any one of claims 79 to 97, wherein the master
node presets the
second global counter, wherein the second global counter is initialized as
zero before the
remote synchronization and cleared to zero after the remote synchronization
has been
completed.
99. The computer equipment of any one of claims 79 to 98, wherein the master
node to
remotely synchronize all the worker nodes, to enable the worker nodes to
subsequently
locally synchronize cluster cameras respectively connected.
100. The computer equipment of any one of claims 79 to 99, wherein after the
master node has
broadcast the remote synchronization completion information to all the worker
nodes, the
second global counter is cleared to zero.
101. The computer equipment of any one of claims 79 to 100, wherein the master
node and the at
least one worker node reside in the same and single local area network.
38
Date recue/Date received 2023-04-21
102. The computer equipment of any one of claims 79 to 101, wherein the thread
of the camera
has obtained the picture frame, 1 is added to a third global counter, wherein
the counting of
the third global counter is compared with the number of all the cameras,
indicates that the
post-collection synchronization is completed.
103. The computer equipment of any one of claims 79 to 102, wherein the worker
node presets a
third global counter, and the third global counter is initialized as zero
before post-collection
synchronization and cleared to zero after post-collection synchronizations of
all cameras
have been completed.
104. The computer equipment of claim 84, wherein the data processing module is
configured to
splice and combine entire set of picture frames, wherein the data processing
module is
disposed in the worker node or on a preset server.
105. A computer readable physical memory having stored thereon a computer
program executed
by a computer configured to:
starting to perform pre-collection synchronization on all cameras when any one
of the
cameras enters a preparation completed status, wherein each of the cameras is
assigned in
advance with an independent thread by a worker node;
obstructing the thread of the camera when the pre-collection synchronization
of one of
the cameras is completed, until the pre-collection synchronizations of all the
cameras
have been completed;
initiating a remote synchronization request to a master node; and
waking up an obstructed thread of each of the cameras while invoking a
software
development kit (SDK) of each of the cameras to obtain picture frames when
remote
synchronization completion information broadcast by the master node is
received.
39
Date recue/Date received 2023-04-21
106. The memory of claim 105, wherein obstructing the thread of the camera
when the pre-
collection synchronization of one of the cameras is completed, until the pre-
collection
synchronizations of all the cameras have been completed comprises:
adding 1 to a first global counter when the worker node receives a preparation
completion
signal sent by one of the cameras whose initialization has been completed;
obstructing the thread of the camera;
comparing the counting of the first global counter with a number of all the
cameras; and
wherein if two being equal, determining that the pre-collection
synchronizations of all the
cameras have been completed.
107. The memory of claim 105, further comprising:
the master node judging whether a remote synchronization condition is reached
on
receiving the remote synchronization request;
wherein if the remote synchronization condition is reached, generating the
remote
synchronization completion information; and
broadcasting the same to all the worker nodes.
108. The memory of claim 107, wherein the master node judging whether the
remote
synchronization condition is reached on receiving the remote synchronization
request
comprises:
adding 1 to a second global counter when the master node receives a remote
synchronization request initiated by one of the worker nodes;
comparing the counting of the second global counter with the number of all the
worker
nodes; and
if the two being equal, generating the remote synchronization completion
information.
Date recue/Date received 2023-04-21
109. The memory of any one of claims 105 to 108, further comprising:
starting to perfomi post-collection synchronization when the thread of any one
of the
cameras obtains a picture frame; and
determining that the post-collection synchronization is completed when the
threads of all
the cameras have obtained picture frames.
110. The memory of any one of claims 105 to 109, wherein the post-collection
synchronization is
completed, any one of the worker nodes storing the picture frames obtained by
the threads
of all the connected cameras entirely in a memory of a data processing module.
111. The memory of any one of claims 105 to 110, is a distributed system
comprising the master
node and at least one worker node each being connected with a plurality of
cameras.
112. The memory of any one of claims 105 to 111, wherein the master node and
plurality of
worker nodes connected with different cluster cameras, wherein each cluster
camera
includes one or more cameras, wherein different cluster cameras are arranged
in different
local regions within a single monitor region.
113. The memory of any one of claims 105 to 112, wherein the master node
communicates with
the worker nodes via network, wherein worker nodes communicate with cluster
cameras via
network, wherein the network is in a wired mode or in a wireless mode.
114. The memory of any one of claims 105 to 113, wherein the master node and
the worker
nodes are configured as electronic equipment each having a processor and a
memory,
wherein the electronic equipment are personal computers and servers.
115. The memory of any one of claims 105 to 114, wherein the number of cameras
in each
cluster camera is dynamically increased or decreased, wherein all the cameras
in the cluster
camera are all preconfigured with camera SDK for collecting video image data,
and wherein
the cameras are of same model or of different models.
41
Date recue/Date received 2023-04-21
116. The memory of any one of claims 105 to 115, wherein the camera enters the
preparation
completed status indicates that the camera has completed preparation work.
117. The memory of any one of claims 105 to 116, wherein the thread of the
camera is to invoke
the camera SDK to obtain picture frames, the thread of the camera is
obstructed to enter an
obstructed status wherein the obstructed thread is woken up to enter an
executable status,
wherein the thread is executed to invoke the camera SDK to obtain picture
frames.
118. The memory of any one of claims 105 to 117, wherein any camera connected
with any
worker node enters the preparation completed status, the pre-collection
synchronization is
started to be performed on the camera, wherein the pre-collection
synchronization means to
synchronize the camera before the frame pictures of the camera are read.
119. The memory of any one of claims 105 to 118, wherein the worker node
receives the remote
synchronization completion information broadcast by the master node, the
worker node
employs a notifyAll method to perform a waking-up process on the thread of
each camera
obstructed by the worker node, wherein the thread of each camera enters an
executable
status after having been woken up, and wherein the thread of the camera
invokes the SDK to
obtain picture frames after it enters the executable status.
120. The memory of any one of claims 105 to 119, further comprises:
the worker nodes initializing all cameras respectively connected; and
assigning the independent thread to each of the cameras respectively
connected.
121. The memory of any one of claims 105 to 120, wherein the worker nodes
obtains from
master node configuration files stored in advance on the master node, load the
configuration
files, initialize the cameras through configuration parameters in the
configuration files, set
resolutions of the cameras, and assign the independent thread to each camera.
42
Date recue/Date received 2023-04-21
122. The memory of any one of claims 105 to 121, wherein the worker node
presets the first
global counter, wherein the first global counter is initialized as zero before
the pre-collection
synchronization, wherein the first global counter counts the total number of
cameras that
have completed preparation work in all the cameras connected with the worker
node.
123. The memory of any one of claims 105 to 122, wherein the worker node
obstructs a camera
that sends a preparation completion signal, a wait method obstructs the thread
of the camera,
wherein the thread of the camera enters the obstructed status, wherein the
execution to
invoke the SDK to obtain picture frames is temporarily stopped after the
thread of the
camera has entered the obstructed status.
124. The memory of any one of claims 105 to 123, wherein the master node
presets the second
global counter, wherein the second global counter is initialized as zero
before the remote
synchronization and cleared to zero after the remote synchronization has been
completed.
125. The memory of any one of claims 105 to 124, wherein the master node to
remotely
synchronize all the worker nodes, to enable the worker nodes to subsequently
locally
synchronize cluster cameras respectively connected.
126. The memory of any one of claims 105 to 125, wherein after the master node
has broadcast
the remote synchronization completion information to all the worker nodes, the
second
global counter is cleared to zero.
127. The memory of any one of claims 105 to 126, wherein the master node and
the at least one
worker node reside in the same and single local area network.
128. The memory of any one of claims 105 to 127, wherein the thread of the
camera has obtained
the picture frame, 1 is added to a third global counter, wherein the counting
of the third
global counter is compared with the number of all the cameras, indicates that
the post-
collection synchronization is completed.
43
Date recue/Date received 2023-04-21
129. The memory of any one of claims 105 to 128, wherein the worker node
presets a third
global counter, and the third global counter is initialized as zero before
post-collection
synchronization and cleared to zero after post-collection synchronizations of
all cameras
have been completed.
130. The memory of claim 110, wherein the data processing module is configured
to splice and
combine entire set of picture frames, wherein the data processing module is
disposed in the
worker node or on a preset server.
44
Date recue/Date received 2023-04-21