Electronic device for providing additional image and operating method thereof
To provide an additional image to a user, an electronic device receives data on a smoking event from an external device, generates image data including at least one graphic object corresponding to the smoking event based on data on the received smoking event, and provides an additional image to a user by outputting the image data on a display, wherein the additional image and a real scene corresponding to a field of view of the user are simultaneously observed by the user through the display.
1 . An electronic device comprising:
a communication module configured to perform communication with an external device;
a display; and
a processor electrically connected to the communication module and the display, wherein the processor is configured to receive data on a smoking event from the external device through the communication module, generate image data comprising at least one graphic object corresponding to the smoking event based on the data on the smoking event, and output the image data through the display, and
wherein the processor is further configured to:
determine a first timepoint corresponding to a start of an inhalation and at which a user of the electronic device performs a first motion,
determine a second timepoint corresponding to an end of the inhalation and at which the user performs a second motion after the first timepoint,
determine an output timepoint of the image data based on an interval between the first timepoint and the second timepoint, and
control the display to display an additional image by outputting the image data at the output timepoint.
2 . The electronic device of claim 1 , wherein an optical path of the additional image displayed by outputting the image data corresponds to an optical path of a real scene passing through the display.
3 . The electronic device of claim 1 , wherein the data on the smoking event comprises data on an acceleration change or a pressure change sensed by a sensor of the external device.
4 . The electronic device of claim 1 , further comprising:
a microphone module configured to obtain external audio data,
wherein the processor is further configured to:
when the data on the smoking event is received from the external device, activate the microphone module,
receive the external audio data obtained through the activated microphone module, and
generate the image data comprising the at least one graphic object corresponding to the smoking event based on the received data on the smoking event and the received external audio data.
5 . The electronic device of claim 1 , further comprising:
a sensing module comprising at least one sensor,
wherein the processor is further configured to:
obtain sensing data on at least one of whether the external device approaches, a change in a lip shape of a user of the electronic device, and movement of the electronic device through the sensing module, and
generate the image data comprising the at least one graphic object corresponding to the smoking event based on the data on the received smoking event and the obtained sensing data.
6 . The electronic device of claim 1 , wherein the processor is further configured to:
predict an inhalation duration based on the interval between the first timepoint and the second timepoint,
predict a start timepoint of exhalation based on the inhalation duration and the interval between the first timepoint and the second timepoint, and
determine the start timepoint of exhalation to be the output timepoint of the image data.
7 . The electronic device of claim 1 , wherein the display comprises:
a beam output device; and
a half mirror.
8 . The electronic device of claim 1 , wherein the display comprises:
an exit pupil expander (EPE) device.
9 . The electronic device of claim 1 , wherein the external device comprises an electronic cigarette.
10 . A method of outputting an additional image, performed by an electronic device, the method comprising:
receiving data on a smoking event from an external device;
generating image data comprising at least one graphic object corresponding to the smoking event based on data on the received smoking event; and
displaying the additional image by outputting the image data on a display,
wherein the method further comprises:
determining a first timepoint corresponding to a start of an inhalation and at which a user of the electronic device performs a first motion,
determining a second timepoint corresponding to an end of the inhalation and at which the user performs a second motion after the first timepoint,
determining an output timepoint of the image data based on an interval between the first timepoint and the second timepoint, and
displaying the additional image by outputting the image data at the output timepoint.