CN109040648B - Anti-static processing method of wearable device and wearable device - Google Patents

Anti-static processing method of wearable device and wearable device Download PDF

Info

Publication number
CN109040648B
CN109040648B CN201811028359.4A CN201811028359A CN109040648B CN 109040648 B CN109040648 B CN 109040648B CN 201811028359 A CN201811028359 A CN 201811028359A CN 109040648 B CN109040648 B CN 109040648B
Authority
CN
China
Prior art keywords
video image
camera
display screen
wearable device
target video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811028359.4A
Other languages
Chinese (zh)
Other versions
CN109040648A (en
Inventor
万智明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201811028359.4A priority Critical patent/CN109040648B/en
Publication of CN109040648A publication Critical patent/CN109040648A/en
Application granted granted Critical
Publication of CN109040648B publication Critical patent/CN109040648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention relates to the technical field of electronic equipment, and discloses an anti-static processing method of wearable equipment and the wearable equipment, wherein the method comprises the following steps: the wearable device judges whether an interrupt signal sent by a camera mobile industry processor interface when the camera collects a current video image is monitored within a specified time; if the interrupt signal is not monitored within the specified time, the wearable device extracts a target video image from the historical video images collected and stored by the camera, outputs the target video image to the display screen, keeps displaying the target video image on the display screen, and restarts the camera, wherein the target video image is a certain historical video image with the storage time closest to the current time. By implementing the embodiment of the invention, the fluency and stability of the video image display on the display screen can be improved when the camera is interfered by static electricity, thereby reducing the occurrence of the situations of blockage, black screen, image interruption and the like.

Description

Anti-static processing method of wearable device and wearable device
Technical Field
The invention relates to the technical field of electronic equipment, in particular to an anti-static processing method of wearable equipment and the wearable equipment.
Background
Static electricity generated by the action of a human body or the contact, separation, friction or induction with other objects is a hazard in the electronic industry, and often causes unstable operation and even damage of electronic equipment. Wherein, wearable equipment in close contact with the human body is more easily interfered by static electricity.
At present, most wearable devices have a video call function, however, in the video call process, when a camera is interfered by static electricity, the current general method is to directly restart the camera to start protection of the camera after an error occurs in an application layer, but when the camera is restarted, the problems of overlong click time, black screen, image interruption and the like of a display screen of the wearable device are caused, and user experience is greatly reduced.
Disclosure of Invention
The embodiment of the invention discloses an anti-static processing method of wearable equipment and the wearable equipment, which can improve the smoothness and stability of video image display on a display screen when a camera is interfered by static electricity, thereby reducing the occurrence of blockage, black screen, image interruption and the like.
The embodiment of the invention discloses an antistatic processing method of wearable equipment in a first aspect, which comprises the following steps:
judging whether an interrupt signal sent by a camera mobile industry processor interface when a camera collects a current video image is monitored within a specified time;
if the interrupt signal is not monitored within the specified time, extracting a target video image from historical video images collected and stored by the camera, outputting the target video image to the display screen, keeping displaying the target video image on the display screen, and restarting the camera, wherein the target video image is a certain historical video image with the storage time closest to the current time.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
if the interrupt signal is monitored within the specified time, the current video image collected by the camera is stored and used as a historical video image, and the current video image is output to the display screen for display.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the restarting the camera includes:
closing data flow transmitted from the camera to the display screen, closing power to a sensor on the camera and closing power to the camera;
restarting a controller of the camera mobile industry processor interface;
switching on a power supply of the camera, switching on a power supply of the sensor, and writing initialization parameters for starting a video image acquisition function into the sensor through a two-wire serial bus to enable the sensor to restart to acquire the video image;
and opening the data stream.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the opening the data stream, the method further includes:
accumulating the opening times of the data stream, judging whether the opening times of the data stream exceeds a specified threshold value, if so, closing the camera and displaying prompt information indicating that the camera is abnormal on the display screen; and if not, executing the step of judging whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera collects the current video image is monitored in the specified time.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after determining that the interrupt signal is not monitored within the specified time period, the method further includes:
judging whether a historical video image collected and stored by the camera exists or not;
if the historical video image does not exist, displaying prompt information indicating that the image is being acquired on the display screen, and simultaneously restarting the camera;
and if the historical video image exists, executing the steps of extracting a target video image from the historical video image collected and stored by the camera, outputting the target video image to the display screen, keeping displaying the target video image on the display screen, and restarting the camera.
A second aspect of an embodiment of the present invention discloses a wearable device, including:
the first judgment unit is used for judging whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera collects the current video image is monitored within a specified time;
a recovery display unit, configured to, when the first determination unit determines that the interrupt signal is not monitored within the specified duration, extract a target video image from historical video images collected and stored by the camera, output the target video image to the display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to the current time;
and the restarting unit is used for restarting the camera while the target video image is kept displayed on the display screen by the recovery display unit.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
and the normal display unit is used for storing the current video image collected by the camera and taking the current video image as a historical video image when the first judgment unit judges that the interrupt signal is monitored in the specified duration, and outputting the current video image to the display screen for display.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the restart unit includes:
the closing subunit is used for closing data stream transmitted from the camera to the display screen, and closing the power supply of the sensor on the camera and the power supply of the camera;
the restarting subunit is used for restarting a controller of the camera mobile industry processor interface;
and the starting subunit is used for connecting the power supply of the camera, connecting the power supply of the sensor, writing initialization parameters for starting a video image acquisition function into the sensor through the two-wire serial bus, so that the sensor restarts to acquire the video image and starts the data stream.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
a second judging unit, configured to accumulate the opening times of the data stream after the opening subunit opens the data stream, and judge whether the opening times of the data stream exceeds a specified threshold;
the first prompting unit is used for closing the camera and displaying prompting information representing that the camera is abnormal on the display screen when the second judging unit judges that the opening times exceed a specified threshold;
the first judging unit is specifically configured to, when the second judging unit judges that the number of times of turning on does not exceed a specified threshold, judge whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera acquires a current video image is monitored within a specified duration.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the wearable device further includes:
the third judging unit is used for judging whether a historical video image collected and stored by the camera exists or not after the first judging unit judges that the interrupt signal is not monitored in the specified time;
a second prompting unit, configured to display, on the display screen, prompting information indicating that an image is being acquired when the third determining unit determines that the historical video image does not exist;
the recovery display unit is specifically configured to, when the first determination unit determines that the interrupt signal is not monitored within the specified duration and the third determination unit determines that the historical video image exists, extract a target video image from the historical video image collected and stored by the camera, output the target video image to the display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to a current time;
the restarting unit is specifically configured to restart the camera while the restoration display unit keeps displaying the target video image on the display screen; and restarting the camera while the second prompting unit displays prompting information indicating that the image is being acquired on the display screen.
A third aspect of an embodiment of the present invention discloses a wearable device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part of the steps of the antistatic processing method for the wearable device disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program, where the computer program enables a computer to execute all or part of the steps of the antistatic processing method for a wearable device disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the wearable device collects the current video image through the monitoring camera mobile industry processor interface, if the monitoring camera mobile industry processor interface does not send an interrupt signal within a specified time, the fact that the camera of the wearable device is subjected to electrostatic interference is indicated, at this time, a target video image needs to be extracted from a historical video image collected and stored by the camera, namely a normal video image collected last time, the target video image is output to a display screen of the wearable device, then the target video image is kept displayed on the display screen, and meanwhile, the camera needs to be restarted to protect the camera and ensure continuous collection and continuous display of the video image. Therefore, by implementing the embodiment of the invention, when the camera of the wearable device encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, the damage to the camera is avoided, the phenomena of blockage or interruption of video image display and the like of the display screen are avoided, the camera can enter the normal image acquisition again after being restarted, the display screen can receive continuous video images for display, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an antistatic processing method for a wearable device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for antistatic treatment of a wearable device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for antistatic treatment of a wearable device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a wearable device disclosed in the embodiment of the invention;
FIG. 5 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
FIG. 6 is a schematic structural diagram of another wearable device disclosed in the embodiments of the present invention;
fig. 7 is a schematic structural diagram of another wearable device disclosed in the embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first", "second", "third", "fourth", and the like in the description and the claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses an anti-static processing method of wearable equipment and the wearable equipment, which can improve the smoothness and stability of video image display on a display screen when a camera is interfered by static electricity, thereby reducing the occurrence of blockage, black screen, image interruption and the like. The following detailed description is made with reference to the accompanying drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an anti-static processing method of a wearable device according to an embodiment of the present invention. As shown in fig. 1, the antistatic treatment method may include the following steps.
101. The wearable device judges whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera collects the current video image is monitored within a specified time, if so, the process is ended, and if not, step 102 is executed.
In the embodiment of the present invention, the wearable device may include a smart watch, a smart bracelet, smart glasses, and the like, and the embodiment of the present invention is not limited. A Mobile Industry Processor Interface (MIPI) provides a camera Interface standard inside a wearable device, including a timing definition of video images captured by a camera.
In the embodiment of the present invention, the interrupt signal may be an interrupt signal sent when the camera acquires the current video image each time, a rising edge of the interrupt signal may be selected to trigger the interrupt, and a falling edge of the interrupt signal may also be selected to trigger the interrupt.
In the embodiment of the present invention, the specified duration may be set according to a rate at which the camera acquires the video image, which is generally two seconds, and the embodiment of the present invention is not limited.
As an optional implementation manner, the wearable device may monitor the interrupt signal within the specified time period by setting a timer by the underlying driver software, that is, the timer monitors the interrupt signal once every specified time period, and if the interrupt signal is not monitored after the specified time period is exceeded, it is indicated that the time is out due to a timing error when the camera transmits the video image.
102. The wearable device extracts a target video image from historical video images collected and stored by the camera, outputs the target video image to the display screen, keeps displaying the target video image on the display screen, and restarts the camera, wherein the target video image is a certain historical video image with the storage time closest to the current time.
As an alternative embodiment, the wearable device may store the historical video images in a historical cache, wherein the video images stored in the historical cache may be 5 or 6 frames of video images captured and stored by the camera closest to the current time.
Further, as an optional implementation manner, the target video image extracted from the historical video image by the camera may refer to a video image stored in the historical cache when the wearable device determines that an interrupt signal of the interface of the mobile industry processor can be monitored after the camera collects a frame of video image at the time closest to the current time. For example, the history buffer is equivalent to a stack, and only after the wearable device judges that the interrupt signal can be monitored, the video image collected by the camera is stored in one frame, and according to the principle that the stack is input first and output last and input last, the video image stored in the top is the target video image in the history video image collected by the camera.
As an alternative embodiment, the wearable device may keep displaying the target video image on the display screen by a loop operation. The wearable device extracts a target video image from a historical video image collected and stored by a camera, and then sends the target video image to the display screen, and further, the operation of circularly extracting and sending the target video image according to a certain frequency can keep displaying the target video image on the display screen, wherein the frequency of the circular operation can be determined according to the frame rate of the video displayed on the display screen.
As an optional implementation manner, the wearable device extracts a target video image from a historical video image collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen by using one thread, and simultaneously restarts the camera by using another thread, and the two threads are independent of each other.
In the embodiment of the present invention, when the video image transmitted by the camera has an error, the step 102 is implemented, so that the target video image is kept displayed on the display screen and the camera is restarted at the same time, which not only ensures the user experience, but also timely takes measures against the camera subjected to the electrostatic interference.
It can be seen that, by implementing the method described in fig. 1, when the wearable device camera encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, damage to the camera is avoided, and phenomena such as blockage or interruption of video image display on the display screen are avoided at the same time.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another anti-static processing method for a wearable device according to an embodiment of the present invention. As shown in fig. 2, the antistatic treatment method may include the following steps.
201. In the video call process, the wearable device judges whether interrupt information sent by a camera mobile industry processor interface when a camera acquires a current video image is detected within a specified time, and if so, executes step 202; if not, step 203 is performed.
202. The wearable device stores a current video image collected by the camera and takes the current video image as a historical video image, and outputs the current video image to the display screen for display.
203. The wearable device extracts a target video image from historical video images collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen, wherein the target video image is a certain historical video image with the storage time closest to the current time.
204. The wearable device shuts down the data stream that is transmitted from the camera to the display screen, shuts down the power of the sensor on the camera and shuts down the power of the camera.
205. The wearable device restarts the controller of the camera mobile industry processor interface.
206. The wearable device is connected with the power supply of the camera, the power supply of the sensor, and initialization parameters for starting the video image acquisition function are written into the sensor through the two-wire serial bus, so that the sensor starts to acquire video images again, and data stream is started.
The camera can be restarted by performing the above-described steps 204 to 206.
In an embodiment of the present invention, a two-wire serial bus (I2C) is a bidirectional two-wire synchronous serial bus, and devices connected to the bus can transmit data to each other. The wearable device is equivalent to a master device, the sensor on the camera is an addressed slave device, and the wearable device starts the bus and transmits initialization parameters to the sensor and is also responsible for terminating the transmission of data.
As an optional implementation manner, the wearable device extracts a target video image from a historical video image collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen by using one thread, and simultaneously restarts the camera by using another thread, and the two threads are independent of each other. That is, in the embodiment of the present invention, the wearable device may perform step 204 to step 206 while performing step 203, so that the operations of maintaining the display of the target video image on the display screen and restarting the camera may be performed simultaneously.
In addition, in the embodiment of the present invention, by implementing the steps 201 to 206, it can be ensured that the historical video images collected and stored by the camera are all video images with correct data time sequence collected by the camera, and further, when an error occurs in the video image transmitted by the camera, it can also be ensured that the video image displayed on the display screen is kept correct for a short time, so as to improve the accuracy and stability of the video image display on the display screen.
207. The wearable device accumulates the opening times of the opened data stream, and judges whether the opening times of the opened data stream exceed a specified threshold, if yes, step 208 is executed; if not, step 201 is performed.
In the embodiment of the present invention, the specified threshold may be used to limit the number of times that the camera may be restarted, and the specific value may be specified manually. For example, the designated threshold may be set to 3 times, and the embodiment of the present invention is not limited thereto.
As an alternative, the wearable device may accumulate the number of data stream openings by setting a counter. For example, the threshold value of the number of times of opening the data stream is specified to be 3 times, when the timer counts 3, the wearable device monitors the signal output by the timer, and then determines that the number of times of opening the data stream exceeds the specified threshold value, at this time, the wearable device further performs the steps of closing the camera and displaying prompt information indicating that the camera is abnormal on the display screen, and resetting the counter to zero again.
208. The wearable device closes the camera and displays prompt information indicating that the camera is abnormal on the display screen.
In the embodiment of the present invention, by implementing the steps 207 to 208, the number of times of restarting the camera can be limited, so that the wearable device is prevented from falling into a dead loop that the damaged camera is restarted all the time; and after restarting the camera, automatically executing the step of judging whether the wearable device can detect the interrupt information after the camera collects the video image, and aiming at the condition that the video image transmission has no error after the camera is restarted, updating the video image displayed on the display screen, so that the whole mechanism is flexible and quick in response.
In the embodiment of the invention, the anti-static processing method of the wearable device can be applied to the process of video call. Specifically, when a user inputs an opening instruction of a video call, the wearable device opens the camera according to the opening instruction to collect a video image, and displays a shooting object aligned with the camera on the display screen. After the connection with the device end of the video call object is established, the video content shot by the device end of the video call object can also be displayed on the display screen. Implementing the method described in fig. 2, when the camera of the wearable device is subjected to temporary electrostatic interference, the picture seen by the user on the display screen may temporarily stay in a certain frame of video image, and then the wearable device continues to use the video call function normally after the wearable device rapidly resumes displaying the video normally shot by the camera.
It can be seen that, when the wearable device camera encounters electrostatic interference, the method described in fig. 2 is implemented, and when the wearable device camera encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, the damage to the camera is avoided, the phenomena of blockage or interruption of video image display and the like of the display screen are avoided, and after the camera is restarted, the camera can reenter the normal image acquisition and the display screen can receive the continuous video image for display, thereby greatly improving the user experience. In addition, implementing the method described in fig. 2 can prevent the wearable device from trapping in a dead loop that always restarts a damaged camera, making the whole mechanism flexible and fast-reacting.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating another anti-static processing method for a wearable device according to an embodiment of the present invention. As shown in fig. 3, the antistatic treatment method may include the following steps.
301. The wearable device judges whether an interrupt signal sent by a camera mobile industry processor interface when the camera collects a current video image is monitored within a specified time, if so, step 302 is executed; if not, step 303 is performed.
302. The wearable device stores a current video image collected by the camera and takes the current video image as a historical video image, and outputs the current video image to the display screen for display.
303. The wearable device judges whether a historical video image collected and stored by the camera exists or not, and if yes, step 304 is executed; if not, step 305 is performed.
304. The wearable device extracts a target video image from historical video images acquired and stored by the camera, outputs the target video image to the display screen, keeps displaying the target video image on the display screen, and directly executes step 306, wherein the target video image is a certain historical video image with the storage time closest to the current time.
305. The wearable device displays a prompt on the display screen indicating that an image is being acquired and performs step 306.
As an alternative embodiment, the wearable device may cycle through on the display screen by invoking a interesting animation, voice or music as a prompt indicating that an image is being acquired, wherein the played animation, voice or music may be set in the system by itself.
In the embodiment of the present invention, by implementing the steps 301 to 305, it is possible to compensate for a blank of a display screen without a display picture with necessary prompt information in response to a situation that a video image transmission error of a camera occurs just after the camera is turned on and a historical video image collected and stored by the camera does not exist, thereby improving user experience.
306. The wearable device shuts down the data stream that is transmitted from the camera to the display screen, shuts down the power of the sensor on the camera and shuts down the power of the camera.
307. The wearable device restarts the controller of the camera mobile industry processor interface.
308. The wearable device is connected with the power supply of the camera, the power supply of the sensor, and initialization parameters for starting the video image acquisition function are written into the sensor through the two-wire serial bus, so that the sensor starts to acquire video images again, and data stream is started.
The camera can be restarted by performing the above-described steps 306 to 308.
As an alternative embodiment, the wearable device displays the prompt information indicating that the image is being acquired on the display screen by using one thread, and the camera is restarted by using another thread, and the two threads are independent of each other.
As an optional implementation manner, the wearable device extracts a target video image from a historical video image collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen by using one thread, and simultaneously restarts the camera by using another thread, and the two threads are independent of each other.
That is to say, in the embodiment of the present invention, the wearable device may restart the camera while displaying the prompt information indicating that an image is being acquired on the display screen; or restarting the camera while maintaining the display of the target video image on the display screen.
309. The wearable device accumulates the opening times of the data stream, and judges whether the opening times of the data stream exceeds a specified threshold, if so, the step 310 is executed; if the number of times of opening does not exceed the specified threshold, step 301 is performed.
310. The wearable device closes the camera and displays prompt information indicating that the camera is abnormal on the display screen.
It can be seen that, when the wearable device camera encounters electrostatic interference, the method described in fig. 3 is implemented, and when the wearable device camera encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, the damage to the camera is avoided, the phenomena of blockage or interruption of the video image display and the like of the display screen are avoided, and after the camera is restarted, the camera can reenter the normal image acquisition and the display screen can receive the continuous video image for display, thereby greatly improving the user experience. In addition, by implementing the method described in fig. 3, the wearable device can respond to the situation that the transmission of the video image of the camera is wrong just after the camera is turned on and the historical video image collected and stored by the camera does not exist with necessary prompt information, so that the blank that no display picture exists on the display screen is made up, and the user experience is greatly improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of a wearable device according to an embodiment of the present invention. As shown in fig. 4, the wearable device may include:
the first judging unit 401 is configured to judge whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera acquires a current video image is monitored within a specified duration;
a recovery display unit 402, configured to, when the first determining unit 401 determines that the interrupt signal is not monitored within the specified duration, extract a target video image from the historical video images collected and stored by the camera, output the target video image to a display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to the current time;
a restart unit 403 for restarting the camera while the restoration display unit 402 keeps displaying the target video image on the display screen.
As an optional implementation manner, the wearable device may monitor the interrupt signal within the specified time period by setting a timer by the underlying driver software, that is, the timer monitors the interrupt signal once every specified time period, and if the interrupt signal is not monitored after the specified time period is exceeded, it is indicated that the time is out due to a timing error when the camera transmits the video image.
As an alternative embodiment, the wearable device may store the historical video images in a historical cache, wherein the video images stored in the historical cache may be 5 or 6 frames of video images captured and stored by the camera closest to the current time.
Further, the target video image extracted from the historical video image by the camera may refer to a video image stored in the historical cache when the wearable device determines that an interrupt signal of the interface of the mobile industrial processor can be monitored after the camera acquires a frame of video image at the time closest to the current time. For example, the history buffer is equivalent to a stack, and only after the wearable device judges that the interrupt signal can be monitored, the video image collected by the camera is stored in one frame, and according to the principle that the stack is input first and output last and input last, the video image stored in the top is the target video image in the history video image collected by the camera.
As an alternative embodiment, the wearable device may keep displaying the target video image on the display screen by a loop operation. The wearable device extracts a target video image from a historical video image collected and stored by a camera, and then sends the target video image to the display screen, and further, the operation of circularly extracting and sending the target video image according to a certain frequency can keep displaying the target video image on the display screen, wherein the frequency of the circular operation can be determined according to the frame rate of the video displayed on the display screen.
As an optional implementation manner, the wearable device extracts a target video image from a historical video image collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen by using one thread, and simultaneously restarts the camera by using another thread, and the two threads are independent of each other.
It can be seen that, by implementing the method described in fig. 1, when the wearable device camera encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, damage to the camera is avoided, and phenomena such as blockage or interruption of video image display on the display screen are avoided at the same time.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. Wherein, the wearable device shown in fig. 5 is optimized by the wearable device shown in fig. 4. Compared to the wearable device shown in fig. 4, the wearable device shown in fig. 5 may further include:
a normal display unit 404, configured to store a current video image acquired by the camera and serve as a historical video image when the first determining unit 401 determines that the interrupt signal is monitored within the specified duration, and output the current video image to the display screen for display;
a restart unit 403, including:
a shutdown subunit 4031, configured to shut down a data stream transmitted from the camera to the display screen, shut down a power supply of the sensor on the camera, and shut down a power supply of the camera;
a restart subunit 4032, configured to restart the controller of the camera mobile industry processor interface;
the starting subunit 4033 is used for connecting the power supply of the camera, connecting the power supply of the sensor, writing the initialization parameters for starting the video image acquisition function into the sensor through the two-wire serial bus, so that the sensor starts to acquire video images again, and starts data flow;
a second determining unit 405, configured to accumulate the opening times of the data stream after the opening subunit 4033 opens the data stream, and determine whether the opening times of the data stream exceeds a specified threshold;
a first prompting unit 406, configured to close the camera and display a prompting message indicating that the camera is abnormal on the display screen when the second determining unit 405 determines that the number of times of opening exceeds a specified threshold;
accordingly, the first determining unit 401 is specifically configured to determine whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera acquires the current video image is monitored within a specified time period when the second determining unit 405 determines that the turn-on frequency does not exceed the specified threshold.
As an alternative, the second determining unit 405 may accumulate the opening times of the data stream by setting a counter. For example, the number of times of opening the data stream is specified as 3 times, and when the timer counts to 3, the second determining unit 405 detects a signal output by the timer, determines that the number of times of opening the data stream exceeds the specified threshold, further activates the first prompting unit 406, and resets the counter to zero.
It can be seen that, implement the wearable equipment described in fig. 5, when the wearable equipment camera meets electrostatic interference, can be through extracting the target video image (the normal video image of last collection) from the historical video image of camera collection and storage, keep showing the target video image on the display screen, and restart the camera simultaneously, thereby can prevent electrostatic protection through restarting the camera when electrostatic interference appears, avoid causing the damage to the camera, avoid the display screen to appear the phenomenon such as the jam or interrupt video image display simultaneously, and will make the camera get into normal image collection again and the display screen can receive lasting video image and show after restarting the camera, greatly improve user experience. In addition, implementing the method described in fig. 2 can prevent the wearable device from trapping in a dead loop that always restarts a damaged camera, making the whole mechanism flexible and fast-reacting.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. The wearable device shown in fig. 6 is optimized by the wearable device shown in fig. 5. Compared to the wearable device shown in fig. 5, the wearable device shown in fig. 6 may further include:
a third judging unit 407, configured to judge whether there is a historical video image collected and stored by the camera when the first judging unit 401 judges that no interrupt signal is monitored within the specified time period;
a second prompting unit 408 for displaying a prompting message indicating that an image is being acquired on the display screen when the third judging unit 407 judges that no history video image exists;
correspondingly, the recovery display unit 402 is specifically configured to, when the first determining unit 401 determines that the interrupt signal is not monitored within the specified duration and the third determining unit 407 determines that the historical video image exists, extract a target video image from the historical video image collected and stored by the camera, output the target video image to the display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to the current time;
accordingly, the restarting unit 403 is specifically configured to restart the camera while the display unit 402 keeps displaying the target video image on the display screen; and the camera is restarted while the second prompt unit 408 displays prompt information indicating that an image is being acquired on the display screen.
As an alternative embodiment, the second prompting unit 408 displays the prompting information indicating that the image is being acquired on the display screen by using one thread, and the restarting unit 403 restarts the camera by using another thread, and the two threads are independent of each other.
As an optional implementation manner, the wearable device extracts a target video image from a historical video image collected and stored by the camera, outputs the target video image to the display screen, and keeps displaying the target video image on the display screen by using one thread, and simultaneously restarts the camera by using another thread, and the two threads are independent of each other.
As an alternative, the second prompting unit 408 can call a small interesting animation, voice or music to play in a loop on the display screen as the prompting information indicating that the image is being acquired, wherein the played animation, voice or music can be set in the system by itself.
It can be seen that, when the wearable device camera encounters electrostatic interference, the method described in fig. 3 is implemented, and when the wearable device camera encounters electrostatic interference, the target video image (the last acquired normal video image) can be extracted from the historical video image acquired and stored by the camera, the target video image is kept displayed on the display screen, and the camera is restarted at the same time, so that the anti-electrostatic protection can be performed by restarting the camera when the electrostatic interference occurs, the damage to the camera is avoided, the phenomena of blockage or interruption of the video image display and the like of the display screen are avoided, and after the camera is restarted, the camera can reenter the normal image acquisition and the display screen can receive the continuous video image for display, thereby greatly improving the user experience. In addition, by implementing the method described in fig. 3, the wearable device can respond to the situation that the transmission of the video image of the camera is wrong just after the camera is turned on and the historical video image collected and stored by the camera does not exist with necessary prompt information, so that the blank that no display picture exists on the display screen is made up, and the user experience is greatly improved.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of another wearable device disclosed in the embodiment of the present invention. As shown in fig. 7, the wearable device may include:
a memory 701 in which executable program code is stored;
a processor 702 coupled to the memory 701;
the processor 702 calls the executable program code stored in the memory 701 to execute a part of the steps of the antistatic processing method of any one of the wearable devices shown in fig. 1 to 3.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute all or part of the steps of the anti-static processing method of any one wearable device shown in the figures 1-3.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The wearable device and the anti-static processing method for the wearable device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An antistatic treatment method for a wearable device, the method comprising:
judging whether an interrupt signal sent by a camera mobile industry processor interface when a camera collects a current video image is monitored within a specified time; the interrupt signal is an interrupt signal sent when the camera acquires the current video image;
if the interrupt signal is not monitored within the specified time, extracting a target video image from historical video images collected and stored by the camera, outputting the target video image to a display screen, keeping displaying the target video image on the display screen, and restarting the camera, wherein the target video image is a certain historical video image with the storage time closest to the current time.
2. The method of claim 1, further comprising:
if the interrupt signal is monitored within the specified time, the current video image collected by the camera is stored and used as a historical video image, and the current video image is output to the display screen for display.
3. The method of claim 1 or 2, wherein the restarting the camera comprises:
closing data flow transmitted from the camera to the display screen, closing power to a sensor on the camera and closing power to the camera;
restarting a controller of the camera mobile industry processor interface;
switching on a power supply of the camera, switching on a power supply of the sensor, and writing initialization parameters for starting a video image acquisition function into the sensor through a two-wire serial bus to enable the sensor to restart to acquire the video image;
and opening the data stream.
4. The method of claim 3, wherein after said opening said data stream, said method further comprises:
accumulating the opening times of the data stream, judging whether the opening times of the data stream exceeds a specified threshold value, if so, closing the camera and displaying prompt information indicating that the camera is abnormal on the display screen; and if not, executing the step of judging whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera collects the current video image is monitored in the specified time.
5. The method of claim 4, wherein after determining that the interrupt signal is not monitored for the specified duration, the method further comprises:
judging whether a historical video image collected and stored by the camera exists or not;
if the historical video image does not exist, displaying prompt information indicating that the image is being acquired on the display screen, and simultaneously restarting the camera;
and if the historical video image exists, executing the steps of extracting a target video image from the historical video image collected and stored by the camera, outputting the target video image to the display screen, keeping displaying the target video image on the display screen, and restarting the camera.
6. A wearable device, characterized in that the wearable device comprises:
the first judgment unit is used for judging whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera collects the current video image is monitored within a specified time; the interrupt signal is an interrupt signal sent when the camera acquires the current video image;
a recovery display unit, configured to, when the first determination unit determines that the interrupt signal is not monitored within the specified duration, extract a target video image from historical video images collected and stored by the camera, output the target video image to a display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to the current time;
and the restarting unit is used for restarting the camera while the target video image is kept displayed on the display screen by the recovery display unit.
7. The wearable device of claim 6, further comprising:
and the normal display unit is used for storing the current video image collected by the camera and taking the current video image as a historical video image when the first judgment unit judges that the interrupt signal is monitored in the specified duration, and outputting the current video image to the display screen for display.
8. Wearable device according to claim 6 or 7, characterized in that the restart unit comprises:
the closing subunit is used for closing data stream transmitted from the camera to the display screen, and closing the power supply of the sensor on the camera and the power supply of the camera;
the restarting subunit is used for restarting a controller of the camera mobile industry processor interface;
and the starting subunit is used for connecting the power supply of the camera, connecting the power supply of the sensor, writing initialization parameters for starting a video image acquisition function into the sensor through the two-wire serial bus, so that the sensor restarts to acquire the video image and starts the data stream.
9. The wearable device of claim 8, further comprising:
a second judging unit, configured to accumulate the opening times of the data stream after the opening subunit opens the data stream, and judge whether the opening times of the data stream exceeds a specified threshold;
the first prompting unit is used for closing the camera and displaying prompting information representing that the camera is abnormal on the display screen when the second judging unit judges that the opening times exceed a specified threshold;
the first judging unit is specifically configured to, when the second judging unit judges that the number of times of turning on does not exceed a specified threshold, judge whether an interrupt signal sent by the interface of the mobile industrial processor of the camera when the camera acquires a current video image is monitored within a specified duration.
10. The wearable device of claim 9, further comprising:
the third judging unit is used for judging whether a historical video image collected and stored by the camera exists or not after the first judging unit judges that the interrupt signal is not monitored in the specified time;
a second prompting unit, configured to display, on the display screen, prompting information indicating that an image is being acquired when the third determining unit determines that the historical video image does not exist;
the recovery display unit is specifically configured to, when the first determination unit determines that the interrupt signal is not monitored within the specified duration and the third determination unit determines that the historical video image exists, extract a target video image from the historical video image collected and stored by the camera, output the target video image to the display screen, and keep displaying the target video image on the display screen, where the target video image is a certain historical video image whose storage time is closest to a current time;
the restarting unit is specifically configured to restart the camera while the restoration display unit keeps displaying the target video image on the display screen; and restarting the camera while the second prompting unit displays prompting information indicating that the image is being acquired on the display screen.
CN201811028359.4A 2018-09-04 2018-09-04 Anti-static processing method of wearable device and wearable device Active CN109040648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811028359.4A CN109040648B (en) 2018-09-04 2018-09-04 Anti-static processing method of wearable device and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811028359.4A CN109040648B (en) 2018-09-04 2018-09-04 Anti-static processing method of wearable device and wearable device

Publications (2)

Publication Number Publication Date
CN109040648A CN109040648A (en) 2018-12-18
CN109040648B true CN109040648B (en) 2021-01-26

Family

ID=64623983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811028359.4A Active CN109040648B (en) 2018-09-04 2018-09-04 Anti-static processing method of wearable device and wearable device

Country Status (1)

Country Link
CN (1) CN109040648B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505013B (en) * 2021-09-07 2021-11-19 苏州浪潮智能科技有限公司 Electrostatic interference processing method, device, equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929647A (en) * 2005-09-08 2007-03-14 三星电子株式会社 Method for performing video communication service and mobile communication terminal employing the same
CN103745705A (en) * 2013-12-31 2014-04-23 广东明创软件科技有限公司 Mobile terminal display screen electro-static resetting method and mobile terminal
CN103905654A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and system for processing ESD interference in display screen of MIPI
CN104427229A (en) * 2013-08-26 2015-03-18 上海斐讯数据通信技术有限公司 Method for eliminating camera module ESD automatically
CN107396198A (en) * 2017-07-24 2017-11-24 维沃移动通信有限公司 A kind of video call method and mobile terminal
CN207099171U (en) * 2017-07-14 2018-03-13 建荣集成电路科技(珠海)有限公司 A kind of camera anti-clutter circuit and camera

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040150717A1 (en) * 2003-01-21 2004-08-05 Page Warren S. Digital in-car video surveillance system
US9083073B2 (en) * 2012-06-28 2015-07-14 Intel Corporation Thin chassis near field communication (NFC) antenna integration
CN104427383B (en) * 2013-08-19 2018-08-10 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106303227A (en) * 2016-08-01 2017-01-04 乐视控股(北京)有限公司 The photographic method of a kind of intelligent terminal and device
CN107678876B (en) * 2017-09-28 2021-08-10 努比亚技术有限公司 Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929647A (en) * 2005-09-08 2007-03-14 三星电子株式会社 Method for performing video communication service and mobile communication terminal employing the same
CN103905654A (en) * 2012-12-28 2014-07-02 联芯科技有限公司 Method and system for processing ESD interference in display screen of MIPI
CN104427229A (en) * 2013-08-26 2015-03-18 上海斐讯数据通信技术有限公司 Method for eliminating camera module ESD automatically
CN103745705A (en) * 2013-12-31 2014-04-23 广东明创软件科技有限公司 Mobile terminal display screen electro-static resetting method and mobile terminal
CN207099171U (en) * 2017-07-14 2018-03-13 建荣集成电路科技(珠海)有限公司 A kind of camera anti-clutter circuit and camera
CN107396198A (en) * 2017-07-24 2017-11-24 维沃移动通信有限公司 A kind of video call method and mobile terminal

Also Published As

Publication number Publication date
CN109040648A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN107493515B (en) Event reminding method and device based on live broadcast
CN105389258B (en) Program detection method and device
US10075629B2 (en) Electronic device for capturing images while user looks directly at camera
CN111726689B (en) Video playing control method and device
CN104133709B (en) The upgrade method and device of embedded system
EP3319041A1 (en) Image processing apparatus, image processing method, and storage medium
WO2017088360A1 (en) Method and device for powering off terminal
CN106814838B (en) Method and device for terminal automatic dormancy
CN110502324B (en) Processing method, system and storage medium for restart data of cloud mobile phone game
CN109040648B (en) Anti-static processing method of wearable device and wearable device
EP3103526A1 (en) Information processing apparatus, information processing system, information processing method, and information processing program
CN113907695B (en) Denoising method, denoising device, endoscope, surgical robot and readable storage medium
CN106686422A (en) Intelligent-detection and automatic-recovery advertisement playing system and method
CN111447239A (en) Video stream playing control method, device and storage medium
CN110851294B (en) Method and device for remedying program running crash
CN112565888B (en) Monitoring and broadcasting photographing method and device, computer equipment and storage medium
CN106792163B (en) Method and device for detecting video playing state
CN106371552B (en) Control method and device for media display at mobile terminal
JP4941520B2 (en) Failure cause notification device, failure cause notification system, failure cause notification method, and failure cause notification program
CN108391120B (en) Camera starting test method, device, equipment and storage medium
US11704805B2 (en) Image processing apparatus, image processing method, and storage medium
CN114624569A (en) Sensor circuit abnormality detection method, circuit, device, intelligent device, and medium
US20110185161A1 (en) Electronic device and method for detecting operative states of components in the electronic device
CN113038261A (en) Video generation method, device, equipment, system and storage medium
CN107046654B (en) Application state detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant