Image processing method and electronic device supporting same
An electronic device is provided. The electronic device includes a communication circuit configured to transmit and receive data to and from an external device, a memory, and a processor, wherein the processor may store a user pattern in the memory based on first sensing information detected during a first time period by at least one of an external camera device or an external Internet of things (IoT) device, detect occurrence of an irregular event based on second sensing information detected during a second time period by the external camera device or the external IoT device and the stored user pattern, match the irregular event that occurs with a plurality of images photographed by the external camera device, and determine priorities of the plurality of images based on a matching result.
1 . An electronic device comprising:
a communication circuit configured to transmit and receive data to and from an external device;
a display:
memory storing instructions; and
a processor,
wherein the instructions, when executed by the processor, cause the electronic device to:
store a user pattern in the memory based on first sensing information detected during a first time period by at least one of an external camera device or an external Internet of things (IoT) device,
detect occurrence of an irregular event based on the user pattern and second sensing information detected during a second time period by at least one of the external camera device or the external IoT device,
receive a plurality of video clips captured by the external camera device,
match the irregular event with a corresponding video clip among the plurality of video clips,
determine a priority of the plurality of video clips based on a matching result, and
display a plurality of thumbnail images corresponding to respective ones of the plurality of video clips according to the priority on the display,
wherein a thumbnail image corresponding to a video clip in which the irregular event occurred is determined based on an image obtained at a start time of the irregular event.
2 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
receive the user pattern from an external server through the communication circuit.
3 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
receive the first sensing information from an external server through the communication circuit; and
extract the user pattern based on the received first sensing information.
4 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
compare the second sensing information with the user pattern by dividing the user pattern by a time length equal to the second time period.
5 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
receive the plurality of video clips recoded during the second time period by the external camera device.
6 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
increase a priority of a video clip, among the plurality of video clips, in which an occurrence period of the irregular event and a recording period at least partially overlap.
7 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
delete, from among the plurality of video clips, a video clip that does not overlap with an occurrence period of the irregular event.
8 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
change sizes of thumbnail images of the plurality of video clips according to a priority order.
9 . The electronic device of claim 1 , wherein the instructions, when executed by the processor, further cause the electronic device to:
firstly update thumbnail images of some video clips of the plurality of video clips based on the irregular event; and
secondarily update thumbnail images of other video clips of the plurality of video clips based on the irregular event.
10 . The electronic device of claim 1 , wherein the first time period is longer than the second time period.
11 . The electronic device of claim 1 , wherein the second sensing information includes a same type of data as the first sensing information.
12 . A method performed by an electronic device, the method comprising:
storing, by the electronic device, a user pattern in a memory of the electronic device based on first sensing information detected during a first time period by at least one of an external camera device or an external Internet of things (IoT) device;
detecting, by the electronic device, an occurrence of an irregular event based on the user pattern and second sensing information detected during a second time period by at least one of the external camera device or the external IoT device;
receiving a plurality of video clips captured by the external camera device;
matching, by the electronic device, the irregular event with a corresponding video clip among the plurality of video clips;
determining, by the electronic device, a priority of the plurality of video clips based on a matching result; and
displaying, by the electronic device, a plurality of thumbnail images corresponding to respective ones of the plurality of video clips according to the priority,
wherein a thumbnail image corresponding to a video clip in which the irregular event occurred is determined based on an image obtained at a start time of the irregular event.
13 . The method of claim 12 , wherein the storing of the user pattern comprises:
receiving the first sensing information from an external server through a communication circuit of the electronic device; and
extracting the user pattern based on the received first sensing information.
14 . The method of claim 12 , wherein the storing of the user pattern comprises:
receiving the user pattern from an external server through a communication circuit of the electronic device.
15 . The method of claim 12 , wherein the matching with the plurality of video clips comprises:
comparing the second sensing information with the user pattern by dividing the user pattern by a time length equal to the second time period.
16 . The method of claim 12 , wherein the matching with the plurality of video clips comprises:
receiving the plurality of video clips recoded during the second time period by the external camera device.
17 . The method of claim 12 , wherein the determining the priority of the plurality of video clips comprises:
increasing a priority of a video clip, among the plurality of video clips, in which an occurrence period of the irregular event and a recording period at least partially overlap.