CN113596325A - Picture capturing method and device, electronic equipment and storage medium - Google Patents

Picture capturing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113596325A
CN113596325A CN202110801836.1A CN202110801836A CN113596325A CN 113596325 A CN113596325 A CN 113596325A CN 202110801836 A CN202110801836 A CN 202110801836A CN 113596325 A CN113596325 A CN 113596325A
Authority
CN
China
Prior art keywords
target
target object
client
storage system
image
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
CN202110801836.1A
Other languages
Chinese (zh)
Other versions
CN113596325B (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.)
Shengjing Intelligent Technology Jiaxing Co ltd
Original Assignee
Shengjing Intelligent Technology Jiaxing 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 Shengjing Intelligent Technology Jiaxing Co ltd filed Critical Shengjing Intelligent Technology Jiaxing Co ltd
Priority to CN202110801836.1A priority Critical patent/CN113596325B/en
Publication of CN113596325A publication Critical patent/CN113596325A/en
Application granted granted Critical
Publication of CN113596325B publication Critical patent/CN113596325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a method and a device for capturing pictures, electronic equipment and a storage medium, wherein when a target object is stored in a storage system, the target storage position of the target object in the storage system is directly fed back to a target client, so that the target client can access the target storage position and acquire the target object, different clients do not need to directly access a target camera when accessing the target camera for capturing pictures, the limitation of the maximum number of links simultaneously supported by the camera on the capturing pictures of different clients is reduced, and various different requirements of the clients on capturing pictures can be met. Moreover, repeated image capture of the same camera device can be avoided.

Description

Picture capturing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computer software, in particular to a method and a device for capturing pictures, electronic equipment and a storage medium.
Background
In the field of camera-based video processing, in order to train a video processing model, large-scale capture of a camera is often required. Therefore, how to efficiently grab the camera and not influence the normal work of the camera is a problem which needs to be solved urgently at present.
Currently, the main methods of capturing images include two types: one is a single-machine type picture-capturing method, a program directly operates a camera to complete video picture capturing through a concurrent processing technology; the other method is a distributed image capture method, wherein a program runs on a plurality of different machines, and the plurality of machines run simultaneously through a certain scheduling algorithm to operate a camera so as to complete video image capture.
Both of the above two methods have an unavoidable disadvantage: that is, the program directly accesses the camera, the program performance is limited by the limitation of the maximum number of links simultaneously supported by the camera, and the requirements of the user side for various different image capturing cannot be met.
Disclosure of Invention
The invention provides a method and a device for capturing pictures, electronic equipment and a storage medium, which are used for overcoming the defects in the prior art.
The invention provides a method for capturing a picture, which comprises the following steps:
receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device;
if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
According to the method for capturing the image, provided by the invention, the method further comprises the following steps:
if the target object is judged and known not to be stored in the storage system, determining a target access subject of the target camera device based on the type of the target object;
and accessing the target camera device to capture the image based on the target access subject to obtain the target object, and storing the target object in the storage system.
According to the method for capturing the image, the target access subject of the target camera device is determined based on the category of the target object, and the method specifically comprises the following steps:
if the type of the target object is judged and known to be a target image and only the target client sends the image capturing request at the current moment, taking the target client as the target access subject;
and if the type of the target object is judged and known to be a target image and other clients except the target client send the image capturing request at the current moment, taking any one of all the clients as the target access subject.
According to the method for capturing the image, the determining of the target access subject of the target camera device based on the category of the target object further includes:
and if the type of the target object is judged and known to be the target video with the target attribute, taking the streaming media proxy server as the target access subject.
According to the method for capturing the image provided by the invention, the taking of the streaming media proxy server as the target access subject specifically comprises the following steps:
and if the fact that the target client sends the image capture request is judged and known at the current moment, controlling the target client to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
According to the method for capturing the graph provided by the present invention, the taking the streaming media proxy server as the target access subject further specifically includes:
and if judging that other clients except the target client send the image capture request at the current moment, controlling all the clients to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
According to the image capture method provided by the invention, the storage system comprises a distributed file system.
The present invention also provides a drawing capture apparatus, comprising:
the receiving module is used for receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device;
the image capturing module is used for acquiring a target storage position of the target object in the storage system if the target object is judged and stored in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the image capture method.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the snap method as described in any of the above.
According to the image capture method, the image capture device, the electronic equipment and the storage medium, when the target object is stored in the storage system, the target storage position of the target object in the storage system is directly fed back to the target client, so that the target client can access the target storage position and acquire the target object, different clients do not need to directly access the target camera when accessing the target camera to capture images, the limitation of the maximum link number simultaneously supported by the camera to the image capture of different clients is reduced, and various different image capture requirements of the clients can be met. Moreover, repeated image capture of the same camera device can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for capturing images provided by the present invention;
FIG. 2 is a second schematic flow chart of the method for capturing images according to the present invention;
FIG. 3 is a schematic structural diagram of a grapple attachment provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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.
Fig. 1 is a schematic flow chart of a method for capturing a picture provided in an embodiment of the present invention, as shown in fig. 1, the method includes:
s1, receiving a grab request sent by a target client, wherein the grab request comprises a target object obtained by shooting by a target camera device;
s2, if the target object is judged to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client, so that the target client accesses the target storage position and acquires the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
Specifically, an execution subject of the method for capturing a picture provided in the embodiment of the present invention is a capturing device, the capturing device may be configured in a server, the server may be a local server or a cloud server, the local server may include a computer, and the like, which is not specifically limited in the embodiment of the present invention. The image capture device can be used for carrying out image capture control on each camera device contained in the image capture system, and the camera device can be a camera and other equipment.
Step S1 is executed first, and a grab request sent by the target client is received, where the grab request includes a target object captured by the target imaging device. The target client may be any client that has a need for a target object captured by the target imaging device. The target camera may be any camera included in the grapple system. The target object may include a target image captured by the target imaging device and a target video. When the target object is a target image, the image capture method can be represented as real-time image capture; when the target object is a target video, the capture method can be represented by video capture with different attributes. The grab request may be used to represent the grab requirement of the target client, that is, the grab request may include related information such as the target camera and the target object, for example, identification information of the target camera and identification information of the target object.
Then, step S2 is executed to determine whether the storage system stores the target object included in the snapshot request, if yes, the target storage location of the target object in the storage system may be directly obtained from the storage system, and then the target storage location is fed back to the target client, so that the target client accesses the target storage location, and downloads the target object at the target storage location, thereby obtaining the target object. The storage system is used for storing objects obtained by shooting by each camera in the grapple system, and the objects obtained by shooting by each camera can comprise images and videos. The object obtained by shooting by each camera may be determined and stored by a snapshot request sent by the target client at another time, or may be determined and stored by a snapshot request sent by another client, which is not specifically limited in the embodiment of the present invention. The storage system may be a distributed file system (fastDFS) or other object storage systems, which is not specifically limited in the embodiment of the present invention. Through the storage system, centralized management and backup of the objects can be realized.
The method for capturing the image comprises the steps of firstly receiving a capture request sent by a target client, wherein the capture request comprises a target object obtained by shooting through a target camera device; and then if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client, so that the target client accesses the target storage position and acquires the target object. When the target object is stored in the storage system, the target storage position of the target object in the storage system is directly fed back to the target client, so that the target client can access the target storage position and obtain the target object, the target camera does not need to be directly accessed when different clients access the target camera to capture images, the limitation of the maximum link number simultaneously supported by the camera on the capture images of different clients is reduced, and various different capture requirements of the clients can be met. Moreover, repeated image capture of the same camera device can be avoided.
On the basis of the above embodiment, the method for capturing a picture provided in the embodiment of the present invention further includes:
if the target object is judged and known not to be stored in the storage system, determining a target access subject of the target camera device based on the type of the target object;
and accessing the target camera device to capture the image based on the target access subject to obtain the target object, and storing the target object in the storage system.
Specifically, in the embodiment of the present invention, when the target object is not stored in the storage system during the implementation of the snapshot, the target access subject of the target camera device may be determined according to the type of the target object. The category of the target object may be an image, a video, and the like, which is not specifically limited in the embodiment of the present invention. The target access agent is an agent for accessing the target camera device, and may be a target client, another client that sends a snapshot request to the snapshot device, a proxy server, or the like.
After the target access subject is determined, the target camera device can be accessed through the target access subject to capture the image, so that the target object is obtained, and then the target object is stored in the storage system. Thereafter, the grapple device may obtain a target storage location of the target object in the storage system, and feed back the target storage location to the target client, so that the target client accesses the target storage location and obtains the target object. If the image capture device also receives the same image capture requests of other clients, the target storage position of the target object in the storage system can be directly obtained, and the target storage position is fed back to the target client, so that the target client accesses the target storage position and obtains the target object.
In the embodiment of the invention, when the target object is not stored in the storage system, the target access main body of the target camera device is determined, the target camera device is accessed and the image is captured, and the target object is obtained. The method and the device can not only increase the number of objects in the storage system, but also simplify the subsequent image capture process so as to ensure that each client sending the image capture request can smoothly acquire the target object contained in the image capture request.
On the basis of the foregoing embodiment, the method for capturing a picture provided in an embodiment of the present invention, where determining a target access subject of the target imaging apparatus based on the category of the target object specifically includes:
if the type of the target object is judged and known to be a target image and only the target client sends the image capturing request at the current moment, taking the target client as the target access subject;
and if the type of the target object is judged and known to be a target image and other clients except the target client send the image capturing request at the current moment, taking any one of all the clients as the target access subject.
Specifically, in the embodiment of the present invention, when determining the target access subject of the target camera, the category of the target object may be determined first, and if the category of the target object is the target image, and only the target client sends the snapshot request at the current time, that is, only one client, which is the target client, sends the snapshot request to the snapshot device at the current time, so as to request to acquire the target image captured by the target camera. At this time, the target client can be directly used as a target access subject for accessing the target camera device, the target camera device can receive the access of the target client, capture the target image obtained by shooting at the current moment, and then store the captured target image in the storage system. In the embodiment of the invention, the target camera device can register the capture callback function through a Software Development Kit (SDK) carried by the target camera device, directly capture a target image through the target camera device, and decode the screenshot at the target camera device. Then, an Application Programming Interface (API) for storing files provided by the storage system is called to store the captured target image.
And then, the image capturing device acquires a target storage position of the target image in the storage system, feeds the target storage position back to the target client, so that the target client accesses the target storage position, downloads the target image at the target storage position and acquires the target image. The client only needs to download the grabbed target image without decoding.
In the embodiment of the invention, when only one client requests to access the target camera device, the client can be controlled to directly access the target camera device, so that the client can smoothly acquire the target image.
If the type of the target object is a target image, and the target client sends a snapshot request to acquire the target image acquired by the target camera device at the current moment, other clients also send snapshot requests to request to acquire the target image acquired by the target camera device, namely at least two clients including the target client send the snapshot requests to the snapshot device at the current moment, at this moment, any client in all the clients can be used as a target access subject, the target camera device can be directly accessed through the target access subject, and other clients cannot directly access the target camera device. Any client may be a target client, or may be another client, which is not specifically limited in the embodiment of the present invention.
And after receiving the access of the target access subject, the target camera device captures a target image obtained by self shooting at the current moment, and then stores the captured target image into the storage system. And then, the image capturing device acquires a target storage position of the target object in the storage system, and feeds the target storage position back to the target client and other clients so that the target client and other clients can access the target storage position and download the target object in the target storage position to acquire the target object.
In the embodiment of the invention, when at least two clients simultaneously request to access the target camera device, one client in all the clients can be controlled to directly access, and other clients cannot directly access, so that the target camera device can only be directly accessed by one client at the same time, namely, a plurality of clients of the same type can only carry out one-time picture capturing operation on the same camera device at the same time, thereby reducing the workload of the camera device and improving the picture capturing efficiency.
On the basis of the foregoing embodiment, the method for capturing a picture provided in an embodiment of the present invention is a method for determining a target access subject of the target imaging apparatus based on the category of the target object, and further includes:
and if the type of the target object is judged and known to be the target video with the target attribute, taking the streaming media proxy server as the target access subject.
Specifically, in the embodiment of the present invention, when determining the target access subject of the target imaging apparatus, if the category of the target object is the target video having the target attribute, the streaming proxy server is used as the target access subject. The target attribute may be parameter information for characterizing the target video, and may include, for example, information such as a duration of the target video and a sampling frequency of the target video. The capture device can determine the capture strategy through the target attribute, and access the target camera device through the streaming media proxy server as a target access subject, the target camera device can accept the access of the streaming media proxy server, capture the image according to the capture strategy corresponding to the target attribute to obtain the target video, and store the target video in the storage system. In the embodiment of the invention, the stream pushing function can be developed through the ffmpeg API, and the RTSP data stream shot by the target camera device is pushed to the streaming media proxy server. And after the streaming media proxy server acquires the RTSP data stream, capturing the image by using ffmpeg according to a capture strategy, and storing the captured target video in a storage system.
In the embodiment of the invention, a plurality of image capturing strategies can be supported, image capturing can be carried out according to the image capturing strategies, and the streaming media proxy server is used for acting the camera shooting device at the moment, so that each client can complete capturing of videos with different attributes by accessing the streaming media proxy server. The streaming media proxy server is used for proxy camera shooting devices to capture pictures, so that the pressure of the camera shooting devices can be reduced, a large number of clients can be prevented from directly accessing the camera shooting devices to capture the pictures at the same time, the efficiency of capturing the pictures can be effectively improved, the performance is not limited by the influence of the maximum link number of the camera shooting devices, and the requirement that different clients simultaneously capture the pictures at any time can be met. Meanwhile, the target video with the target attribute is stored in the storage system, when a picture grabbing request which is sent by any client and contains the target video obtained by shooting through the target shooting device is received, the target storage position of the target video can be directly fed back to any client, so that any client can access the target storage position and obtain the target video, and the target video with the target attribute can be grabbed only once.
On the basis of the foregoing embodiment, the method for capturing a picture provided in the embodiment of the present invention, in which the streaming media proxy server is used as the target access subject, specifically includes:
and if the fact that the target client sends the image capture request is judged and known at the current moment, controlling the target client to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
Specifically, in the embodiment of the present invention, when the streaming media proxy server is applied, it needs to be determined whether only one client, which is a target client, sends a snapshot request to acquire a target image captured by a target camera device at the current time, if so, the target client is controlled to access the streaming media proxy server, and then the target client accesses the target camera device by using the streaming media proxy server as a target access agent, and the target camera device can accept access of the streaming media proxy server, perform snapshot according to a target attribute, and obtain a target video. Therefore, the acquisition efficiency of the target video can be effectively improved.
On the basis of the foregoing embodiment, the method for capturing a picture provided in the embodiment of the present invention, where the streaming media proxy server is used as the target access subject, further includes:
and if judging that other clients except the target client send the image capture request at the current moment, controlling all the clients to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
Specifically, in the embodiment of the present invention, when the streaming media proxy server is applied, it needs to be determined whether only one client, which is a target client, sends a snapshot request to acquire a target image captured by a target camera device at the current time, if not, that is, other clients except the target client send snapshot requests to request to acquire a target image captured by the target camera device at the current time, all clients are controlled to access the streaming media proxy server, and then the streaming media proxy server serves as a target access agent to access the target camera device by each client, and the target camera device can accept access the streaming media proxy server, and perform snapshot on the target camera device according to a target attribute to acquire a target video. That is, only one video stream exists between the streaming media proxy server and the target camera device, so that the concurrence number of large-scale different image capturing strategies of the target camera device is greatly increased.
On the basis of the above embodiment, in the method for capturing a picture provided in the embodiment of the present invention, the storage system includes a distributed file system, and centralized management and disaster recovery backup of images and videos are implemented.
Fig. 2 is a schematic diagram of a complete flow of a method for capturing a picture provided in an embodiment of the present invention, as shown in fig. 2, the method includes:
when a picture-grabbing request is received, a picture-grabbing task is generated, at the moment, the picture-grabbing device can directly access the camera through the client, and can also access the camera through the streaming media proxy server proxy client, so that a target object corresponding to the picture-grabbing request is obtained. The target object is stored in a storage system through a network.
The image capturing device and the storage system are connected with the distributed image capturing platform gateway, and the client can acquire a target storage position of the target object in the storage system through the distributed image capturing platform gateway and obtain the target object by accessing the target storage position for downloading.
As shown in fig. 3, on the basis of the above embodiment, an embodiment of the present invention provides a grapple device, including: a receiving module 31 and a grapple module 32.
The receiving module 31 is configured to receive a snapshot request sent by a target client, where the snapshot request includes a target object obtained by shooting by a target camera device;
the image capture module 32 is configured to, if it is determined that the target object is stored in the storage system, obtain a target storage location of the target object in the storage system, and feed back the target storage location to the target client, so that the target client accesses the target storage location and obtains the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
On the basis of the above embodiment, the apparatus for capturing a picture provided in the embodiment of the present invention further includes:
a target access subject determination module, configured to determine a target access subject of the target imaging apparatus based on a category of the target object if it is determined that the target object is not stored in the storage system;
and the storage module is used for accessing the target camera device to capture the image based on the target access main body to obtain the target object and storing the target object into the storage system.
On the basis of the foregoing embodiment, in the grapple device provided in the embodiment of the present invention, the target access subject determination module is specifically configured to:
if the type of the target object is judged and known to be a target image and only the target client sends the image capturing request at the current moment, taking the target client as the target access subject;
and if the type of the target object is judged and known to be a target image and other clients except the target client send the image capturing request at the current moment, taking any one of all the clients as the target access subject.
On the basis of the foregoing embodiment, in the grapple device provided in the embodiment of the present invention, the target access subject determination module is further specifically configured to:
and if the type of the target object is judged and known to be the target video with the target attribute, taking the streaming media proxy server as the target access subject.
On the basis of the foregoing embodiment, in the grapple device provided in the embodiment of the present invention, the target access subject determination module is further specifically configured to:
and if the fact that the target client sends the image capture request is judged and known at the current moment, controlling the target client to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
On the basis of the foregoing embodiment, in the grapple device provided in the embodiment of the present invention, the target access subject determination module is further specifically configured to:
and if judging that other clients except the target client send the image capture request at the current moment, controlling all the clients to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
On the basis of the foregoing embodiment, in the snapshot apparatus provided in the embodiment of the present invention, the storage system includes a distributed file system.
Specifically, the functions of the modules in the image capturing apparatus provided in the embodiment of the present invention correspond to the operation flows of the steps in the above method embodiments one to one, and the implementation effects are also consistent.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform the method of snap-shot provided in the embodiments described above, the method comprising: receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device; if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object; the storage system is used for storing objects obtained by shooting of the camera devices.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of executing the method for snap-shot provided in the above embodiments, the method comprising: receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device; if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object; the storage system is used for storing objects obtained by shooting of the camera devices.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the method for capturing images provided in the above embodiments, the method including: receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device; if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object; the storage system is used for storing objects obtained by shooting of the camera devices.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of snapping, comprising:
receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device;
if the target object is judged and known to be stored in the storage system, acquiring a target storage position of the target object in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
2. The method of claim 1, further comprising:
if the target object is judged and known not to be stored in the storage system, determining a target access subject of the target camera device based on the type of the target object;
and accessing the target camera device to capture the image based on the target access subject to obtain the target object, and storing the target object in the storage system.
3. The method according to claim 2, wherein the determining a target access subject of the target camera based on the category of the target object specifically comprises:
if the type of the target object is judged and known to be a target image and only the target client sends the image capturing request at the current moment, taking the target client as the target access subject;
and if the type of the target object is judged and known to be a target image and other clients except the target client send the image capturing request at the current moment, taking any one of all the clients as the target access subject.
4. The method according to claim 2, wherein the determining a target access subject of the target camera based on the category of the target object further specifically comprises:
and if the type of the target object is judged and known to be the target video with the target attribute, taking the streaming media proxy server as the target access subject.
5. The method according to claim 4, wherein the taking of the streaming media proxy server as the target access subject specifically comprises:
and if the fact that the target client sends the image capture request is judged and known at the current moment, controlling the target client to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
6. The method according to claim 4, wherein the taking of the streaming media proxy server as the target access subject further includes:
and if judging that other clients except the target client send the image capture request at the current moment, controlling all the clients to access the streaming media proxy server so that the streaming media proxy server serves as the target access subject.
7. The method according to any of claims 1-6, wherein the storage system comprises a distributed file system.
8. A picture-taking apparatus, comprising:
the receiving module is used for receiving a picture-grabbing request sent by a target client, wherein the picture-grabbing request comprises a target object obtained by shooting by a target camera device;
the image capturing module is used for acquiring a target storage position of the target object in the storage system if the target object is judged and stored in the storage system, and feeding the target storage position back to the target client so that the target client accesses the target storage position and acquires the target object;
the storage system is used for storing objects obtained by shooting of the camera devices.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the snap method according to any of claims 1 to 7 are implemented when the program is executed by the processor.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the snap method according to any one of claims 1 to 7.
CN202110801836.1A 2021-07-15 2021-07-15 Method and device for capturing images, electronic equipment and storage medium Active CN113596325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110801836.1A CN113596325B (en) 2021-07-15 2021-07-15 Method and device for capturing images, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110801836.1A CN113596325B (en) 2021-07-15 2021-07-15 Method and device for capturing images, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113596325A true CN113596325A (en) 2021-11-02
CN113596325B CN113596325B (en) 2023-05-05

Family

ID=78247757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110801836.1A Active CN113596325B (en) 2021-07-15 2021-07-15 Method and device for capturing images, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113596325B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827542A (en) * 2022-04-25 2022-07-29 重庆紫光华山智安科技有限公司 Method, system, equipment and medium for capturing images of multiple paths of video code streams

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005020582A (en) * 2003-06-27 2005-01-20 Ricoh Co Ltd Image data storage service providing system, method, image processor, program, and recording medium
WO2007015631A1 (en) * 2005-08-04 2007-02-08 Isenteck Enc Co., Ltd. Smart video monitoring system and method communicating with auto-tracking radar system
CN101009775A (en) * 2006-01-23 2007-08-01 株式会社理光 Imaging apparatus, position information recording method and computer programme product
JP2010050685A (en) * 2008-08-21 2010-03-04 Kyocera Mita Corp Image forming apparatus, image formation system, and image formation method
CN103646314A (en) * 2013-12-13 2014-03-19 国家电网公司 Team safety activity management system control method based on web site
CN103647831A (en) * 2013-12-13 2014-03-19 国家电网公司 Team safety activity server supervision method based on web site
CN105138578A (en) * 2015-07-30 2015-12-09 北京奇虎科技有限公司 Sorted storage method for target picture and terminal employing sorted storage method
CN108174093A (en) * 2017-12-28 2018-06-15 努比亚技术有限公司 Method, equipment and the computer of moment image can storage mediums
CN109583317A (en) * 2018-11-06 2019-04-05 宁波大榭招商国际码头有限公司 A kind of container tallying system based on ground identification
CN109698850A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Processing method and system
CN110519616A (en) * 2019-10-10 2019-11-29 腾讯科技(深圳)有限公司 Distribution method, distribution node, control centre and the storage medium of video
CN110570536A (en) * 2019-08-26 2019-12-13 北京许继电气有限公司 intelligent line patrol system for extra-high voltage transmission line
CN110677684A (en) * 2019-09-30 2020-01-10 北京奇艺世纪科技有限公司 Video processing method, video access method, distributed storage method and distributed video access system
CN110809187A (en) * 2019-10-31 2020-02-18 Oppo广东移动通信有限公司 Video selection method, video selection device, storage medium and electronic equipment
CN111914781A (en) * 2020-08-10 2020-11-10 杭州海康威视数字技术股份有限公司 Method and device for processing face image
CN112069368A (en) * 2020-09-07 2020-12-11 北京航迹科技有限公司 Data storage and calling method and system
CN112437274A (en) * 2020-11-17 2021-03-02 浙江大华技术股份有限公司 Transmission method of snapshot picture and snapshot machine
CN112446395A (en) * 2019-08-29 2021-03-05 杭州海康威视数字技术股份有限公司 Network camera, video monitoring system and method

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005020582A (en) * 2003-06-27 2005-01-20 Ricoh Co Ltd Image data storage service providing system, method, image processor, program, and recording medium
WO2007015631A1 (en) * 2005-08-04 2007-02-08 Isenteck Enc Co., Ltd. Smart video monitoring system and method communicating with auto-tracking radar system
CN101009775A (en) * 2006-01-23 2007-08-01 株式会社理光 Imaging apparatus, position information recording method and computer programme product
JP2010050685A (en) * 2008-08-21 2010-03-04 Kyocera Mita Corp Image forming apparatus, image formation system, and image formation method
CN103646314A (en) * 2013-12-13 2014-03-19 国家电网公司 Team safety activity management system control method based on web site
CN103647831A (en) * 2013-12-13 2014-03-19 国家电网公司 Team safety activity server supervision method based on web site
CN105138578A (en) * 2015-07-30 2015-12-09 北京奇虎科技有限公司 Sorted storage method for target picture and terminal employing sorted storage method
CN109698850A (en) * 2017-10-23 2019-04-30 北京京东尚科信息技术有限公司 Processing method and system
CN108174093A (en) * 2017-12-28 2018-06-15 努比亚技术有限公司 Method, equipment and the computer of moment image can storage mediums
CN109583317A (en) * 2018-11-06 2019-04-05 宁波大榭招商国际码头有限公司 A kind of container tallying system based on ground identification
CN110570536A (en) * 2019-08-26 2019-12-13 北京许继电气有限公司 intelligent line patrol system for extra-high voltage transmission line
CN112446395A (en) * 2019-08-29 2021-03-05 杭州海康威视数字技术股份有限公司 Network camera, video monitoring system and method
CN110677684A (en) * 2019-09-30 2020-01-10 北京奇艺世纪科技有限公司 Video processing method, video access method, distributed storage method and distributed video access system
CN110519616A (en) * 2019-10-10 2019-11-29 腾讯科技(深圳)有限公司 Distribution method, distribution node, control centre and the storage medium of video
CN110809187A (en) * 2019-10-31 2020-02-18 Oppo广东移动通信有限公司 Video selection method, video selection device, storage medium and electronic equipment
CN111914781A (en) * 2020-08-10 2020-11-10 杭州海康威视数字技术股份有限公司 Method and device for processing face image
CN112069368A (en) * 2020-09-07 2020-12-11 北京航迹科技有限公司 Data storage and calling method and system
CN112437274A (en) * 2020-11-17 2021-03-02 浙江大华技术股份有限公司 Transmission method of snapshot picture and snapshot machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827542A (en) * 2022-04-25 2022-07-29 重庆紫光华山智安科技有限公司 Method, system, equipment and medium for capturing images of multiple paths of video code streams
CN114827542B (en) * 2022-04-25 2024-03-26 重庆紫光华山智安科技有限公司 Multi-channel video code stream capture method, system, equipment and medium

Also Published As

Publication number Publication date
CN113596325B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN110719332B (en) Data transmission method, device, system, computer equipment and storage medium
CN111212264B (en) Image processing method and device based on edge calculation and storage medium
CN111479095B (en) Service processing control system, method and device
CN107493486B (en) Method, system and terminal equipment for video playing termination
CN113596325B (en) Method and device for capturing images, electronic equipment and storage medium
CN114884840A (en) Application health state checking method and electronic equipment
WO2020248801A1 (en) Model file issuing method, platform, system, terminal, and readable storage medium
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
WO2015000417A1 (en) Method, apparatus, application interactive platform, terminal, and system for uploading an image
WO2023125777A1 (en) Video recording data replenishment method, cloud storage server, system and storage medium
CN112039936B (en) Data transmission method, first data processing equipment and monitoring system
WO2013127559A1 (en) Management of data upload speed
CN116028246A (en) Scheduling method, system, computer equipment and storage medium for data processing
CN108076253B (en) Intelligent electronic equipment and image processing unit, device and method
EP3474530A1 (en) Image compressing method, image reconstructing method, image compressing device, image reconstructing device, image compressing program product, and image reconstructing program product
CN114157626A (en) Method, system, storage medium and computer equipment for transmitting photos by photographing
CN109874036B (en) Video analysis method and device, equipment and storage medium
CN112015551A (en) Coroutine pool management method and coroutine pool management device
CN114077409A (en) Screen projection method and device, electronic equipment and computer readable medium
EP2824918A1 (en) Apparatus and method to reduce PTZ latency
CN116938895B (en) Media data packet acquisition method and device, electronic equipment and storage medium
CN106330548B (en) Flow statistical method, device and system
CN113938475B (en) Data transmission method
CN113259668B (en) Dynamic encoding method, device and equipment for cloud conference shared desktop and storage medium

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