CN110933771A - Network connection method and device of camera, storage medium and camera - Google Patents

Network connection method and device of camera, storage medium and camera Download PDF

Info

Publication number
CN110933771A
CN110933771A CN201911240489.9A CN201911240489A CN110933771A CN 110933771 A CN110933771 A CN 110933771A CN 201911240489 A CN201911240489 A CN 201911240489A CN 110933771 A CN110933771 A CN 110933771A
Authority
CN
China
Prior art keywords
image
characteristic
camera
dimensional code
information
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.)
Granted
Application number
CN201911240489.9A
Other languages
Chinese (zh)
Other versions
CN110933771B (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.)
Jiangsu Zimi Electronic Technology Co Ltd
Original Assignee
Jiangsu Zimi Electronic 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 Jiangsu Zimi Electronic Technology Co Ltd filed Critical Jiangsu Zimi Electronic Technology Co Ltd
Priority to CN201911240489.9A priority Critical patent/CN110933771B/en
Publication of CN110933771A publication Critical patent/CN110933771A/en
Application granted granted Critical
Publication of CN110933771B publication Critical patent/CN110933771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Abstract

The embodiment of the invention discloses a network connection method and device of a camera, a storage medium and the camera. The method comprises the following steps: when the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by the mobile terminal to obtain a target image, wherein the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image; identifying whether the target image contains the characteristic image, if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image; judging whether the position of the characteristic two-dimensional code image relative to the camera is adjusted or not according to the position information and the size information, and if not, identifying the target image to judge whether the target image contains wireless network information or not; and when the target image is determined to contain the wireless network information, performing network connection based on the wireless network information. By the scheme, the network connection efficiency and the user experience of the camera are improved.

Description

Network connection method and device of camera, storage medium and camera
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a network connection method and device of a camera, a storage medium and the camera.
Background
With the popularization of the smart camera and the maturity of the two-dimension code technology, the mode of scanning the two-dimension code for network connection becomes a very common network distribution mode of the smart camera. The main process of the camera scanning the two-dimensional code to carry out network connection is as follows: 1. the method comprises the following steps that an intelligent camera is started, image data are collected continuously, and two-dimensional codes are tried to be identified; 2. the mobile phone starts pairing connection, and guides a user to input an SSID (Service Set Identifier) and a password of a WiFi hotspot to be connected and generate a two-dimensional code containing information such as the SSID and the password; 3. a user enables a two-dimensional code of a mobile phone to be close to the front of a lens of an intelligent camera and keeps a certain distance; 4. the intelligent camera recognizes the two-dimensional code, extracts information such as SSID (service set identifier) and password in the two-dimensional code, and then connects to the corresponding WiFi (wireless fidelity) hotspot to complete network connection.
However, the requirement for the distance between the camera and the two-dimensional code is high based on the way of scanning the two-dimensional code to perform network connection, for an intelligent camera without a screen, the distance between the camera and the two-dimensional code is completely dependent on the direct control of the user on the distance, however, the user does not have a very intuitive feeling on the control of the distance, the situation that the connection of the camera to the network fails can be caused frequently, the user is required to move the two-dimensional code repeatedly to adjust the distance between the two-dimensional code and the camera, and the user experience is seriously influenced.
Disclosure of Invention
The embodiment of the invention provides a network connection method and device of a camera, a storage medium and the camera, so that the network connection efficiency of the camera is improved, and the user experience is improved.
In a first aspect, an embodiment of the present invention provides a method for connecting a camera to a network, where the method includes:
when the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by the mobile terminal to obtain a target image; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image;
identifying whether the target image contains the characteristic image, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image;
judging whether the position of the characteristic two-dimensional code image relative to the camera is adjusted or not according to the position information and the size information, and if not, identifying the target image to judge whether the wireless network information is contained in the target image or not;
and when the target image is determined to contain the wireless network information, performing network connection based on the wireless network information.
In a second aspect, an embodiment of the present invention further provides a network connection device for a camera, where the device includes:
the target image acquisition module is used for scanning a characteristic two-dimensional code image provided by the mobile terminal to acquire a target image when the camera is in a scanning mode; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image;
the characteristic image identification module is used for identifying whether the target image contains the characteristic image or not, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image;
the wireless network judging module is used for judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, and if not, identifying the target image to judge whether the target image contains the wireless network information;
and the network connection module is used for performing network connection based on the wireless network information when the wireless network information is determined to be contained in the target image.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a network connection method for a camera according to an embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a camera, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the network connection method of the camera according to the embodiment of the present invention.
The network connection method of the camera provided by the embodiment of the invention scans the characteristic two-dimensional code image provided by the mobile terminal to obtain the target image when the camera is in the scanning mode, wherein, the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, the characteristic image is positioned at the central position of the characteristic two-dimensional code image, then identifying whether the target image contains the characteristic image, if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image, and judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, if not, the target image is identified to judge whether the target image contains wireless network information, and when the target image is determined to contain the wireless network information, network connection is performed based on the wireless network information. By adopting the technical means, the network connection scheme of the existing camera is optimized, the technical problem that the network connection of the camera is difficult due to the fact that the distance between the camera and a two-dimensional code image is insensitive when a user scans the two-dimensional code by the camera is solved, the network connection efficiency of the camera is improved, and meanwhile the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of a network connection method for cameras according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another network connection method for cameras according to an embodiment of the present invention;
fig. 3 is a block diagram of a network connection device of a camera according to an embodiment of the present invention;
fig. 4 is a block diagram of a camera according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart illustrating a network connection method for a camera according to an embodiment of the present invention, where the method may be performed by a network connection device for the camera, where the device may be implemented by software and/or hardware, and may be generally integrated in the camera. As shown in fig. 1, the method includes:
step 101, when a camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by a mobile terminal to obtain a target image; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image.
Illustratively, as wireless network technology matures and popularizes, more and more users prefer to use mobile terminals to perform wireless network connection with cameras so as to remotely control the cameras through the mobile terminals, such as online watching of videos in the cameras and real-time synchronization of files in the cameras to the mobile terminal side. Therefore, a fast wireless connection between the camera and the mobile terminal becomes crucial.
In the embodiment of the invention, when a power-on instruction input by a user is received, a camera is started, wherein the camera comprises a non-screen camera. When the camera needs to be in wireless network connection with the mobile terminal, the camera is switched from a common mode to a scanning mode. Optionally, when a mode switching instruction input by a user is received, the camera is switched from the normal mode to the scanning mode. When the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by the mobile terminal and taking the scanned image as a target image. It can be understood that when a user needs to establish network connection between the camera and the mobile terminal, an application program in the mobile terminal can be started, wireless network information is input into a login page popped up on a desktop of the mobile terminal, a preset feature image is obtained, and then the mobile terminal generates a feature two-dimensional code image according to the wireless network information and the feature image, wherein the feature image is located at the center of the feature two-dimensional code image. Optionally, the wireless network information includes a wireless network name (SSID) and a wireless network password. Optionally, the wireless network information may further include a server website and a server port, a login account and a password, and an operation function selected by the user. Optionally, the characteristic image may include an image with a sharp contrast for quick recognition, for example, the preset characteristic image is a black square with a preset size or a black and white square with a preset size. When a characteristic two-dimensional code image is generated, wireless network information and a preset characteristic image are read firstly, the wireless network information and the characteristic image are converted into character strings, the character strings are analyzed by a two-dimensional code generation algorithm to generate two-dimensional code matrix data, and finally the two-dimensional code matrix data are converted into the characteristic two-dimensional code image.
Optionally, the user places the feature two-dimensional code image presented at the mobile terminal in a position area at a certain distance from the camera for scanning by the camera. The camera scans the characteristic two-dimensional code image in a scanning mode to acquire a target image.
And 102, identifying whether the target image contains the characteristic image, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image.
In the embodiment of the invention, the target image is identified based on an image identification technology to judge whether the characteristic image is contained in the target image. When the target image contains the characteristic image, the position information of the characteristic image in the target image and the size information of the characteristic image are obtained. It is understood that the position information and the size information of the feature image may reflect the position relationship between the mobile terminal (which may also be understood as a feature two-dimensional code image) and the camera. Specifically, the position information of the feature image may reflect whether the feature two-dimensional code image and the camera are in a direct relationship, or how much the two are offset. For example, when the characteristic two-dimensional code image is in a completely opposite relationship with the camera, the characteristic image is located at the center of the target image; when the characteristic two-dimensional code image is positioned at the left side position of the camera, the characteristic image is positioned in a position area which is slightly left in the target image; when the characteristic two-dimensional code image is positioned at the right side of the camera, the characteristic image is positioned in a position area which is slightly right in the target image; when the characteristic two-dimensional code image is positioned above the camera, the characteristic image is positioned in an upper position area in the target image; when the characteristic two-dimensional code image is positioned at the position below the camera, the characteristic image is positioned in a position area which is lower in the target image. The size information of the characteristic image can reflect the size of the distance between the characteristic two-dimensional code image and the camera, wherein the smaller the characteristic image is, the larger the distance between the characteristic two-dimensional code image and the camera is; the larger the characteristic image is, the smaller the distance between the two-dimensional code image representing the characteristic and the camera is.
Optionally, when it is determined that the target image does not include the feature image, the target image is identified to determine whether the target image includes wireless network information.
And 103, judging whether the position of the characteristic two-dimensional code image relative to the camera is adjusted or not according to the position information and the size information, and if not, identifying the target image to judge whether the wireless network information is contained in the target image.
Optionally, determining whether to adjust the position of the feature two-dimensional code image relative to the camera according to the position information and the size information includes: judging whether the characteristic image is located in a preset position range in the target image according to the position information, judging whether the size of the characteristic image is located in a preset size range according to the size information, and if so, keeping the position of the characteristic two-dimensional code image relative to the camera unchanged; otherwise, adjusting the position of the characteristic two-dimensional code image relative to the camera.
Illustratively, in a development test stage, a large amount of test data is acquired, wherein the test data is a test image acquired by scanning a characteristic two-dimensional code image by a camera, and two-dimensional code recognition is performed on the test image to perform wireless network connection. And determining a preset position range according to the position information of the characteristic image in the test image which can effectively complete wireless network connection, and determining a preset size range according to the size information of the characteristic image. It can be understood that, when the position of the feature image in the target image is within the preset position range and the size of the feature image is within the preset size range, the camera can quickly identify the wireless network information in the target image and can successfully perform wireless network connection. And when the position of the characteristic image in the target image exceeds the preset position range or the size of the characteristic image exceeds the preset size range, the camera cannot quickly identify the wireless network information in the target image, namely, the wireless network connection fails. Therefore, when the characteristic image is determined to be located in the preset position range in the target image according to the position information and the size of the characteristic image is determined to be located in the preset size range according to the size information, the position of the characteristic two-dimensional code image relative to the camera can be kept unchanged; otherwise, adjusting the position of the characteristic two-dimensional code image relative to the camera so that the camera can scan the characteristic two-dimensional code image again.
Illustratively, when the position of the characteristic two-dimensional code image relative to the camera does not need to be adjusted according to the position information and the size information, the target image is further identified to judge whether the wireless network information is contained in the target image. Optionally, when the position of the camera is determined to be adjusted according to the position information and the size information, a user is prompted to move the mobile terminal to adjust the position of the feature two-dimensional code image relative to the camera. For example, the user is prompted to move the mobile terminal by a voice prompt, wherein the user may be prompted to move the mobile terminal by a method such as moving left, moving right, moving up, moving down, moving the mobile terminal closer to the camera, moving the mobile terminal away from the camera, and the like according to the size relationship of the position information relative to the preset position range and the size relationship of the size information relative to the preset size range when performing the voice prompt.
And 104, when the target image is determined to contain the wireless network information, performing network connection based on the wireless network information.
In the embodiment of the invention, when the target image is determined to contain the wireless network information, the wireless network information is acquired, and network connection is carried out based on the wireless network information. Optionally, when the target image does not contain the wireless network information, the scanning of the feature two-dimensional code image provided by the mobile terminal is executed in return to obtain the target image.
The network connection method of the camera provided by the embodiment of the invention scans the characteristic two-dimensional code image provided by the mobile terminal to obtain the target image when the camera is in the scanning mode, wherein, the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, the characteristic image is positioned at the central position of the characteristic two-dimensional code image, then identifying whether the target image contains the characteristic image, if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image, and judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, if not, the target image is identified to judge whether the target image contains wireless network information, and when the target image is determined to contain the wireless network information, network connection is performed based on the wireless network information. By adopting the technical means, the network connection scheme of the existing camera is optimized, the technical problem that the network connection of the camera is difficult due to the fact that the distance between the camera and a two-dimensional code image is insensitive when a user scans the two-dimensional code by the camera is solved, the network connection efficiency of the camera is improved, and meanwhile the user experience is improved.
Fig. 2 is a schematic flow chart of another method for connecting a camera to a network according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step 201, when the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by the mobile terminal to obtain a target image; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image.
Optionally, the wireless network information includes a wireless network name and a wireless network password. Optionally, the preset feature image is a black square with a preset size or a black and white square with a preset size.
Step 202, identifying whether the target image includes the characteristic image, if so, executing step 203, otherwise, executing step 205.
Step 203, obtaining the position information of the characteristic image in the target image and the size information of the characteristic image.
And 204, judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, if so, executing a step 207, otherwise, executing a step 205.
Optionally, determining whether to adjust the position of the feature two-dimensional code image relative to the camera according to the position information and the size information includes: judging whether the characteristic image is located in a preset position range in the target image according to the position information, judging whether the size of the characteristic image is located in a preset size range according to the size information, and if so, keeping the position of the characteristic two-dimensional code image relative to the camera unchanged; otherwise, adjusting the position of the characteristic two-dimensional code image relative to the camera.
Step 205, identifying the target image to determine whether the target image includes the wireless network information, if yes, executing step 206, otherwise, returning to execute step 201.
And step 206, performing network connection based on the wireless network information.
Step 207, prompting the user to move the mobile terminal to adjust the position of the characteristic two-dimensional code image relative to the camera, and returning to execute step 201.
The network connection method of the camera provided by the embodiment of the invention optimizes the network connection scheme of the existing camera, not only solves the technical problem that the network connection of the camera is difficult because the distance between the camera and the two-dimensional code image is not sensitive when a user scans the two-dimensional code by the camera, but also improves the network connection efficiency of the camera and simultaneously improves the user experience.
Fig. 3 is a block diagram of a network connection device for a camera according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, and is generally integrated in a camera, and the network connection of the camera may be performed by executing a network connection method for the camera. As shown in fig. 3, the apparatus includes:
a target image obtaining module 301, configured to scan a feature two-dimensional code image provided by a mobile terminal to obtain a target image when the camera is in a scanning mode, where the feature two-dimensional code image includes wireless network information and a preset feature image, and the feature image is located at a center position of the feature two-dimensional code image;
a feature image recognition module 302, configured to recognize whether the target image includes the feature image, and if so, obtain position information of the feature image in the target image and size information of the feature image;
a wireless network judging module 303, configured to judge whether to adjust a position of the feature two-dimensional code image relative to the camera according to the position information and the size information, and if not, identify the target image to judge whether the target image includes the wireless network information;
a network connection module 304, configured to perform network connection based on the wireless network information when it is determined that the wireless network information is included in the target image.
The network connection device of the camera provided by the embodiment of the invention scans the characteristic two-dimensional code image provided by the mobile terminal to obtain the target image when the camera is in the scanning mode, wherein, the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, the characteristic image is positioned at the central position of the characteristic two-dimensional code image, then identifying whether the target image contains the characteristic image, if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image, and judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, if not, the target image is identified to judge whether the target image contains wireless network information, and when the target image is determined to contain the wireless network information, network connection is performed based on the wireless network information. By adopting the technical means, the network connection scheme of the existing camera is optimized, the technical problem that the network connection of the camera is difficult due to the fact that the distance between the camera and a two-dimensional code image is insensitive when a user scans the two-dimensional code by the camera is solved, the network connection efficiency of the camera is improved, and meanwhile the user experience is improved.
Optionally, the apparatus further comprises:
and when the target image does not contain the wireless network information, returning to execute scanning of the characteristic two-dimensional code image provided by the mobile terminal to obtain the target image.
Optionally, the apparatus further comprises:
when the target image is determined not to contain the characteristic image, the target image is identified to judge whether the target image contains wireless network information.
Optionally, the apparatus further comprises:
and the position adjusting module is used for prompting a user to move the mobile terminal to adjust the position of the characteristic two-dimensional code image relative to the camera when the position of the camera is determined to be adjusted according to the position information and the size information.
Optionally, the wireless network determining module is configured to:
judging whether the characteristic image is located in a preset position range in the target image according to the position information, judging whether the size of the characteristic image is located in a preset size range according to the size information, and if so, keeping the position of the characteristic two-dimensional code image relative to the camera unchanged; otherwise, adjusting the position of the characteristic two-dimensional code image relative to the camera.
Optionally, the wireless network information includes a wireless network name and a wireless network password.
Optionally, the preset feature image is a black square with a preset size or a black and white square with a preset size.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for network connectivity of a camera, the method including:
when the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by a mobile terminal to obtain a target image, wherein the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image;
identifying whether the target image contains the characteristic image, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image;
judging whether the position of the characteristic two-dimensional code image relative to the camera is adjusted or not according to the position information and the size information, and if not, identifying the target image to judge whether the wireless network information is contained in the target image or not;
and when the target image is determined to contain the wireless network information, performing network connection based on the wireless network information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the network connection operation of the camera described above, and may also perform related operations in the network connection method of the camera provided by any embodiment of the present invention.
The embodiment of the invention provides a camera, and a network connection device of the camera provided by the embodiment of the invention can be integrated in the camera. Fig. 4 is a block diagram of a camera according to an embodiment of the present invention. The camera 400 may include: a memory 401, a processor 402 and a computer program stored on the memory 401 and executable on the processor, wherein the processor 402 implements the network connection method of the video camera according to the embodiment of the present invention when executing the computer program.
The camera provided by the embodiment of the invention scans a characteristic two-dimensional code image provided by a mobile terminal to obtain a target image when the camera is in a scanning mode, wherein the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, the characteristic image is positioned at the center position of the characteristic two-dimensional code image, then whether the target image comprises the characteristic image is identified, if yes, position information of the characteristic image in the target image and size information of the characteristic image are obtained, whether the position of the characteristic two-dimensional code image relative to the camera is adjusted is judged according to the position information and the size information, if not, the target image is identified to judge whether the target image comprises the wireless network information, and when the target image is determined to comprise the wireless network information, network connection is carried out based on the wireless network information. By adopting the technical means, the network connection scheme of the existing camera is optimized, the technical problem that the network connection of the camera is difficult due to the fact that the distance between the camera and a two-dimensional code image is insensitive when a user scans the two-dimensional code by the camera is solved, the network connection efficiency of the camera is improved, and meanwhile the user experience is improved.
The network connection device, the storage medium and the camera provided in the above embodiments can execute the network connection method of the camera provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a network connection method of a camera provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A network connection method of a camera, comprising:
when the camera is in a scanning mode, scanning a characteristic two-dimensional code image provided by the mobile terminal to obtain a target image; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image;
identifying whether the target image contains the characteristic image, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image;
judging whether the position of the characteristic two-dimensional code image relative to the camera is adjusted or not according to the position information and the size information, and if not, identifying the target image to judge whether the wireless network information is contained in the target image or not;
and when the target image is determined to contain the wireless network information, performing network connection based on the wireless network information.
2. The method of claim 1, further comprising:
and when the target image does not contain the wireless network information, returning to execute scanning of the characteristic two-dimensional code image provided by the mobile terminal to obtain the target image.
3. The method of claim 1, further comprising:
when the target image is determined not to contain the characteristic image, the target image is identified to judge whether the target image contains wireless network information.
4. The method of claim 1, further comprising:
and when the position of the camera is determined to be adjusted according to the position information and the size information, prompting a user to move the mobile terminal so as to adjust the position of the characteristic two-dimensional code image relative to the camera.
5. The method according to any one of claims 1 to 4, wherein determining whether to adjust the position of the feature two-dimensional code image relative to the camera according to the position information and the size information comprises:
judging whether the characteristic image is located in a preset position range in the target image according to the position information, judging whether the size of the characteristic image is located in a preset size range according to the size information, and if so, keeping the position of the characteristic two-dimensional code image relative to the camera unchanged; otherwise, adjusting the position of the characteristic two-dimensional code image relative to the camera.
6. The method of any of claims 1-4, wherein the wireless network information comprises a wireless network name and a wireless network password.
7. The method according to any one of claims 1 to 4, wherein the predetermined characteristic image is a black square of a predetermined size or a black and white square of a predetermined size.
8. A network connection device of a camera, comprising:
the target image acquisition module is used for scanning a characteristic two-dimensional code image provided by the mobile terminal to acquire a target image when the camera is in a scanning mode; the characteristic two-dimensional code image comprises wireless network information and a preset characteristic image, and the characteristic image is located at the center of the characteristic two-dimensional code image;
the characteristic image identification module is used for identifying whether the target image contains the characteristic image or not, and if so, acquiring the position information of the characteristic image in the target image and the size information of the characteristic image;
the wireless network judging module is used for judging whether to adjust the position of the characteristic two-dimensional code image relative to the camera according to the position information and the size information, and if not, identifying the target image to judge whether the target image contains the wireless network information;
and the network connection module is used for performing network connection based on the wireless network information when the wireless network information is determined to be contained in the target image.
9. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing a network connection method of a video camera according to any one of claims 1 to 7.
10. A camera comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the network connection method of the camera according to any one of claims 1 to 7 when executing the computer program.
CN201911240489.9A 2019-12-06 2019-12-06 Network connection method and device of camera, storage medium and camera Active CN110933771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911240489.9A CN110933771B (en) 2019-12-06 2019-12-06 Network connection method and device of camera, storage medium and camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911240489.9A CN110933771B (en) 2019-12-06 2019-12-06 Network connection method and device of camera, storage medium and camera

Publications (2)

Publication Number Publication Date
CN110933771A true CN110933771A (en) 2020-03-27
CN110933771B CN110933771B (en) 2024-03-01

Family

ID=69858127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911240489.9A Active CN110933771B (en) 2019-12-06 2019-12-06 Network connection method and device of camera, storage medium and camera

Country Status (1)

Country Link
CN (1) CN110933771B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
CN107077298A (en) * 2016-09-27 2017-08-18 深圳市大疆创新科技有限公司 Control method, control device, electronic installation and UAS
CN107404721A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment
CN108629220A (en) * 2018-03-23 2018-10-09 阿里巴巴集团控股有限公司 A kind of two dimension code reading method, apparatus and equipment
CN109598162A (en) * 2018-08-20 2019-04-09 天津字节跳动科技有限公司 Identify method, apparatus, terminal device and the storage medium of two dimensional code
CN110287744A (en) * 2019-06-17 2019-09-27 珠海格力电器股份有限公司 A kind of method and device identifying two dimensional code

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138942A (en) * 2015-08-26 2015-12-09 小米科技有限责任公司 Two-dimensional code display method and device
CN107404721A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment
CN107077298A (en) * 2016-09-27 2017-08-18 深圳市大疆创新科技有限公司 Control method, control device, electronic installation and UAS
CN108629220A (en) * 2018-03-23 2018-10-09 阿里巴巴集团控股有限公司 A kind of two dimension code reading method, apparatus and equipment
CN109598162A (en) * 2018-08-20 2019-04-09 天津字节跳动科技有限公司 Identify method, apparatus, terminal device and the storage medium of two dimensional code
CN110287744A (en) * 2019-06-17 2019-09-27 珠海格力电器股份有限公司 A kind of method and device identifying two dimensional code

Also Published As

Publication number Publication date
CN110933771B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
EP3308565B1 (en) Pairing of nearby devices using a synchronized cue signal
KR101777984B1 (en) Method and device for displaying wifi list
RU2669063C2 (en) Method and device for image acquisition
CN108664364B (en) Terminal testing method and device
US9672523B2 (en) Generating barcode and authenticating based on barcode
US10743183B2 (en) Method and device for realizing wireless access point connection authentication
US9984486B2 (en) Method and apparatus for voice information augmentation and displaying, picture categorization and retrieving
US20190108409A1 (en) Face recognition method and related product
CN107656866B (en) Method for testing application fluency, mobile terminal and computing device
US9195896B2 (en) Methods and systems for image recognition
CN105809163A (en) Method and device for connecting to WIFI
CN106658666B (en) Method and equipment for establishing wireless connection
CN109558553B (en) Method and device for determining style
CN108037989B (en) SDK component identification method and device
CN107534860A (en) Wi-Fi hotspot portal authentication method and device
CN107329791A (en) Method, device and the computer-readable recording medium of application are installed in scanning
CN110933771B (en) Network connection method and device of camera, storage medium and camera
WO2018107422A1 (en) Electronic apparatus and information reading control method
WO2020124454A1 (en) Font switching method and related product
CN108040202B (en) Camera and method and device for executing instructions thereof
CN111612682B (en) Watermark processing method and device
CN108647097B (en) Text image processing method and device, storage medium and terminal
CN113835591A (en) Popup window processing method and device
CN112634891A (en) Identification code response method and device, vehicle-mounted terminal and storage medium
CN105975621B (en) Method and device for identifying search engine in browser page

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