CN112530040B - Card punching method, device, equipment and computer storage medium - Google Patents

Card punching method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN112530040B
CN112530040B CN202011380010.4A CN202011380010A CN112530040B CN 112530040 B CN112530040 B CN 112530040B CN 202011380010 A CN202011380010 A CN 202011380010A CN 112530040 B CN112530040 B CN 112530040B
Authority
CN
China
Prior art keywords
card punching
reference position
points
point
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011380010.4A
Other languages
Chinese (zh)
Other versions
CN112530040A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Inner Mongolia Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Inner Mongolia 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 China Mobile Communications Group Co Ltd, China Mobile Group Inner Mongolia Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011380010.4A priority Critical patent/CN112530040B/en
Publication of CN112530040A publication Critical patent/CN112530040A/en
Application granted granted Critical
Publication of CN112530040B publication Critical patent/CN112530040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Credit Cards Or The Like (AREA)

Abstract

The invention discloses a card punching method, a card punching device, card punching equipment and a computer storage medium. The method comprises the following steps: acquiring position coordinates of the card punching equipment; acquiring a reference position point of a card punching cell and reference position points of N adjacent cells of the card punching cell; determining N target areas of a card cell based on the reference position points and the N reference position points; and when the position coordinates of the card punching equipment are located in a first target area, determining that the card punching of the card punching equipment is successful, wherein the first target area is any one of the N target areas. The embodiment of the invention provides a card punching method, a device, equipment and a computer storage medium, which can solve the problem that the coverage of a card punching range in software card punching is too large or incomplete.

Description

Card punching method, device, equipment and computer storage medium
Technical Field
The invention belongs to the technical field of location services, and particularly relates to a card punching method, a card punching device, card punching equipment and a computer storage medium.
Background
Positioning and punching the card become important bases for examining attendance of employees in a plurality of enterprises, the position of the employee when punching the card is compared with a preset punching area, and if the position of the employee when punching the card falls into the preset punching area, the punching is considered to be successful. The key factors for positioning the card punching comprise a user, a mobile terminal and a card punching area.
At present, a punching area is generally set as a circular area with a center point of a punching point as a circle center and a preset length as a radius. However, each area is irregular in practice, and the circular area formed by the fixed radius has the problem of overlarge coverage or incomplete coverage. For example, when the card punching place is a cell, the problem that an employee can punch a card outside the cell or cannot punch a card inside the cell occurs.
Disclosure of Invention
The embodiment of the invention provides a card punching method, a device, equipment and a computer storage medium, which can solve the problem of overlarge coverage or incomplete coverage of a card punching area in positioning card punching and are more accurate in card punching.
In a first aspect, a card punching method is provided, including: acquiring position coordinates of the card punching equipment; acquiring a reference position point of a card punching cell and reference position points of N adjacent cells of the card punching cell; determining N target areas of the card punching cell based on the reference position points and the N reference position points; and when the position coordinates of the card punching equipment are located in a first target area, determining that the card punching equipment punches the card successfully, wherein the first target area is any one of the N target areas.
In an optional implementation manner, the first target area is a target area closest to the position coordinates of the card punching device among the N target areas.
In an optional implementation manner, when the position coordinates of the card punching device are located in the first target area, before determining that the card punching of the card punching device is successful, the method further includes:
acquiring a target curve segment, wherein the target curve segment is a boundary line of a first target area;
and determining a first target area according to the target curve segment and the reference position point.
In an alternative embodiment, before the target curve segment is obtained, the method further comprises:
acquiring coordinate information of at least three edge points, wherein the edge points are positioned on a boundary line of a first target area;
and generating a target curve segment by adopting a preset track function according to the coordinate information of the at least three edge points.
In an alternative embodiment, obtaining coordinate information of at least three edge points includes:
acquiring two reference position points of an area where a card punching device is located;
determining two edge points according to the two reference position points and the reference position point; the two edge points are the midpoints of the connecting lines of the two reference position points and the reference position points;
acquiring longitude and latitude coordinates of any edge point and a preset change value;
obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; the third edge point and the reference position point are arranged on two sides of a connecting line of the first edge point and the second edge point.
In an alternative embodiment, the predetermined trajectory function is as follows:
f(x)=a*(sin(x-pi))+b*((x-10)^2)+c
wherein x represents the longitude coordinate of the edge point, and f (x) represents the latitude coordinate of the edge point; a. b and c are parameter values of the boundary line.
In an alternative embodiment, the number N of neighboring cells is equal to or greater than 4.
In an optional implementation manner, when the position coordinates of the card punching device are located in a first target area, determining that the card punching device successfully punches the card, where the first target area is any one of N target areas, includes:
acquiring a target curve segment, wherein the target curve segment is a boundary line of a first target area;
acquiring a first line segment, wherein the first line segment is a connection line between a reference position point and a position point of the card punching equipment;
and when the target curve segment does not intersect with the first line segment, determining that the card punching device successfully punches the card.
In an optional implementation manner, after the position coordinates of the card punching device are obtained, the method further includes:
and determining a card punching cell according to the position coordinates, wherein the card punching cell is a cell which is closest to the card punching equipment in the system and has the card punching authority.
In an optional embodiment, after determining N target areas of a card punching cell based on a reference position point and N reference position points, the method further includes determining a polygon according to the N reference position points;
determining a first ray according to the reference position point and the position coordinate of the card punching equipment, wherein the first ray is a ray extending from the reference position point to the position coordinate direction of the card punching equipment;
determining two reference position points located on the intersection side of the polygon when the first ray intersects the polygon;
based on the reference location point, two reference location points, a first target area in the punch-in cell is determined.
In a second aspect, a card punching device is provided, including:
the first information acquisition module is used for acquiring the position coordinates of the card punching equipment;
the second information acquisition module is used for acquiring the reference position points of the punch-in cell and the reference position points of N adjacent cells of the punch-in cell;
the first judgment module is used for determining N target areas of the card punching cell based on the reference position point and the N reference position points;
and the second judgment module is used for determining that the card punching of the card punching equipment is successful when the position coordinate of the card punching equipment is located in a first target area, and the first target area is any one of the N target areas.
In a third aspect, a card punching device is provided, including: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the card punching method provided by the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, a computer storage medium is provided, where computer program instructions are stored on the computer storage medium, and when executed by a processor, the computer program instructions implement the card punching method provided by the first aspect or any optional implementation manner of the first aspect.
The card punching method, the device, the equipment and the computer storage medium provided by the embodiment of the invention can subdivide the card punching cell into N target areas according to the reference position point of the card punching cell and the reference position points of N adjacent cells, and can judge whether the card punching is successful only by determining whether the card punching equipment is in the subdivided target areas. According to the method, the card punching area is thinned to the target area, compared with the traditional round card punching area formed by a fixed length and a radius, the target area range is smaller and more accurate, and the problem that the card punching area is overlarge in coverage or incomplete in coverage is optimized; in addition, the method can also automatically determine the closest card punching cell to the equipment according to the position coordinates of the card punching equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a card punching method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of the locations of a card punching cell and an adjacent cell according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a location of a card punching device and a reference location point of a card punching cell according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an edge point of a card-punching cell according to an embodiment of the present invention;
fig. 5 is a schematic diagram of boundary lines of three types of card punching cells according to an embodiment of the present invention;
fig. 6 is a schematic diagram of boundary lines of two types of card punching cells according to an embodiment of the present invention;
FIG. 7 is a schematic view of a card punching device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a card punching device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising 8230; \8230;" comprises 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the invention provides a card punching method, a device, equipment and a computer storage medium, which can be applied to a scene of software positioning card punching. For example, a company employee performs attendance checking and card punching through a card punching device; attendance checking of teachers and students in schools; exhibition, meeting record of the meeting, card punch, etc. At present, when a punch card is positioned through software, a circular area is often defined by taking a central point of a punch card place as a circle center when the punch card area is defined, but in an actual situation, each area is irregular, and the problem of overlarge coverage or incomplete coverage exists in the circular area formed by a fixed length and a radius.
In order to solve the technical problem, embodiments of the present invention provide a card punching method, apparatus, device and computer storage medium, which mainly relate to a card punching user and a card punching device; specifically, a user punches a card through the card punching device in a positioning mode, the method can determine the card punching cell where the user is located according to the position information of the card punching device, the card punching cell is divided into N target areas, and whether the card punching is successful or not can be judged only by determining whether the card punching device is in the divided target areas or not. The card punching equipment is an intelligent terminal, and specifically can be a smart phone, a smart tablet computer, intelligent wearable equipment and the like. The selection can be performed according to a specific card punching scene and the actual requirements of the card punching user, and is not limited herein. In addition, the card punching cell may be a specific building such as a school, a building, and the like, but the invention is not limited thereto, and the card punching cell is described as an example below.
The following first introduces a card punching method provided by an embodiment of the present invention.
Referring to fig. 1, a flow chart of a card punching method according to an embodiment of the present invention is shown. As shown in fig. 1, the method may include steps S101-S104.
S101, obtaining position coordinates of the card punching equipment.
The card punching device can be a smart terminal, including but not limited to a smart phone, a tablet computer, a notebook computer, and a smart wearable device. The card punching device is internally provided with a positioning module, and the positioning module is used for determining the position of the card punching device, wherein the position can be latitude and longitude coordinates.
The card punching system can acquire the position coordinates of the card punching equipment through the positioning module.
S102, acquiring a reference position point of the punch-in cell and reference position points of N adjacent cells of the punch-in cell.
The card punching cell is a card punching area where a card can be punched. The reference location point of the card punching cell may be a center point of the card punching cell.
The adjacent cell is a cell adjacent to the card cell. The reference location point of the neighboring cell may be a center point of the neighboring cell.
The card punching system can acquire the reference position point of the card punching cell and the reference position point of the adjacent cell from the map. In practical application, specifically, the card punching system can acquire the position information based on a map, and the map generally only records the longitude and latitude information of the central point of each cell and does not record the longitude and latitude information of the frame of the whole cell. And capturing and recording the central point position information of each cell from the map. And the reference position point of the card punching cell and the respective reference position points of the N adjacent cells correspond to the cell center point position information in the map information.
In one example, as shown in fig. 2, the cell in which the center point a is located is a card punching cell, the center points of the neighboring cells are B, C, D, and E, i.e., reference location points, respectively, and the center point a is a reference location point.
And S103, determining N target areas of the card cell based on the reference position points and the N reference position points.
And the card punching system divides the card punching cell into N target areas according to the reference position point and the reference position point. Specifically, the reference position point and the reference position point may be connected respectively, and the wiring divides the card punching cell into N target regions.
In one example, as shown in fig. 2, the cell where the center point a is located is a card punching cell, and the target areas are four, namely, an area AB 'C', an area AC 'D', an area AD 'E', and an area AE 'B'. S104, when the position coordinates of the card punching equipment are located in a first target area, determining that the card punching of the card punching equipment is successful, wherein the first target area is any one of the N target areas.
And the card punching system is used for judging whether the position coordinate of the card punching equipment is in the first target area or not, and if the position coordinate is in the first target, the card punching is successful. The first target region may be any one of the N target regions.
The card punching method provided by the embodiment can subdivide the card punching cells into a plurality of target areas, so that the range of the card punching area needing to be judged is reduced, compared with the traditional method, the card punching area is more accurate, and the problem that the coverage of the card punching area is too large or incomplete is optimized
In one embodiment, the first target area may be a target area closest to the location coordinates of the card punching device among the N target areas.
In one embodiment, after determining N target areas of the punch-in cell based on the reference location point and the N reference location points, the method further comprises determining a polygon from the N reference location points;
determining a first ray according to the reference position point and the position coordinate of the card punching equipment, wherein the first ray is a ray extending from the reference position point to the position coordinate direction of the card punching equipment;
when the first ray intersects with the polygon, determining two reference position points on the intersected edge of the polygon;
based on the base position point, two reference position points, a first target area in the card punching cell is determined.
In one example, referring to fig. 3, a reference position point a may be connected to reference position points B, C, D, and E, and then midpoints B ', C', D ', and E' of respective connecting lines are taken to be connected to form a rectangle B 'C' D 'E'; t is the position of the card punching equipment; and connecting the AT, then judging which side of the rectangle B 'C' D 'E' the ray AT intersects, and determining which target area the T point is in. The target area is the target area closest to the position coordinates of the card punching equipment.
In the card punching method provided by the embodiment, the target area closest to the card punching device needs to be determined, and then, only whether the position coordinates of the card punching device are in the closest target area needs to be judged, all the target areas do not need to be judged, so that the card punching efficiency is improved.
The present application further provides another embodiment of the card punching method, which has many similarities with the above embodiments, and is not repeated herein, except that steps S105 to S106 are added before step S104 of the method shown in fig. 1.
S105, obtaining a target curve segment, wherein the target curve segment is a boundary line of the first target area;
and S106, determining a first target area according to the target curve segment and the reference position point.
In this embodiment, the card punching system can acquire the target curve segment and construct a first target area according to the target area segment and the reference position point, where the first target area is a target area closest to the position coordinates of the card punching device in the N target areas.
In another embodiment of the card punching method, the generation step of the target curve segment in step S105 in the previous embodiment is given as follows:
acquiring coordinate information of at least three edge points, wherein the edge points are positioned on a boundary line of a first target area;
and generating a target curve segment by adopting a preset track function according to the coordinate information of at least three edge points.
According to the card punching method in the embodiment, the boundary of the first target area can be obtained through the limited coordinate information of the three edge points, and whether the card punching is successful can be judged only by judging whether the coordinate of the card punching equipment is located in the boundary.
In one example, the determination of the coordinate information of the three edge points in the previous embodiment is as follows:
acquiring two reference position points of an area where a card punching device is located;
determining two edge points according to the two reference position points and the reference position point; the two edge points are the middle points of the connecting lines of the two reference position points and the reference position points;
acquiring longitude and latitude coordinates of any edge point and a preset variation value;
obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; the third edge point and the reference position point are divided into two sides of a connecting line of the first edge point and the second edge point.
In one example, the preset trajectory function in the previous embodiment may be the following function:
f(x)=a*(sin(x-pi))+b*((x-10)^2)+c
wherein x represents the longitude coordinate of the edge point, and f (x) represents the latitude coordinate of the edge point; a. b and c are the parameter values of the boundary line, pi is the value of pi.
The preset track function sets a normal equation set through the coordinate information of the known three edge points, and parameter values of a, b and c can be obtained through solution. Different cells correspond to different edge point coordinates, so the solved parameter values are different, and the corresponding target curve segments are different.
And the target curve segment obtained through the preset track function corresponds to the boundary line of the target area closest to the position coordinate of the card punching equipment. Compared with the traditional circular area range, the method has the advantages that the fitting range is smaller, the data information is more comprehensive, the obtained boundary line is better in fitting degree with the cell compared with the traditional circular area, and the coverage is more accurate.
In one example, as shown in fig. 4, the midpoint B 'of the AB line and the midpoint E' of the AE line are first determined as two points; then moving the edge point B' to form a third edge point; after many times of practice, the optimal preset values of the movement are as follows:
longitude: ± 0.00053, latitude: + -0.000054.
As shown in FIG. 4, point B' needs to be shifted forward by a fixed distance value (longitude: +0.00053, latitude: + 0.000054), wherein the increase or decrease of the longitude and the latitude depends on the direction of movement.
In an example, as shown in fig. 5, a comparison graph of boundary lines of the card punching cells determined by different trajectory functions is shown, where the boundary line 501 is a boundary line obtained by using a preset trajectory function of the present application, and has the highest fitting degree, and can completely cover three edge points of a cell area, and the covered area is closest to an actual range of the cell. However, the boundary 502 obtained by the second trajectory function does not completely include the cell edge point, and the coverage of the third boundary 503 may be partially omitted.
In an example, peripheral margin fitting is performed on other target areas of the punch-down cell by using the preset trajectory function, and fig. 6 shows two boundary line graphs, where the inner border line of the punch-down cell fitted by the preset trajectory function of the present application is shown, and the outer circle is a punch-down area defined by a conventional method. Through comparison, the boundary line graph formed by the method is higher in fitting degree with the actual range of the cell, and the circular range has the problem of overlarge coverage.
In one example, the number N of neighboring cells in the previous embodiment is equal to or greater than 4.
In an embodiment, the embodiment has many similarities with the embodiment shown in fig. 1, and is not described herein again, but the difference is that step S104 of the method shown in fig. 1 in this embodiment can be subdivided into steps S1041-S1043.
S1041, acquiring a target curve segment, wherein the target curve segment is a boundary line of a first target area;
s1042, acquiring a first line segment, wherein the first line segment is a connection line between the reference position point and a position point of the card punching equipment;
s1043, when the target curve segment does not intersect with the first line segment, determining that the card punching of the card punching equipment is successful.
According to the punching method in the embodiment, whether the position of the punching equipment is within the boundary line or not can be judged according to the connecting line of the reference position point and the position point of the punching equipment, and whether the punching is successful or not can be judged.
In an embodiment, the embodiment has many similarities with the embodiment shown in fig. 1, and is not repeated herein, but a step S107 is further included after the step S101 of the method shown in fig. 1 in this embodiment.
And S107, determining a card punching cell according to the position coordinates, wherein the card punching cell is a cell which is in the system and is closest to the card punching equipment and has the card punching authority.
In the card punching method in this embodiment, in a system having a plurality of card punching cells, the card punching system can match the card punching cell closest to the card punching device according to the position coordinates of the card punching device.
An embodiment of the present invention provides a card punching device, as shown in fig. 7, the card punching device may include:
a first information acquisition module 701 configured to acquire position coordinates of a card punching apparatus;
a second information obtaining module 702 configured to obtain a reference location point of the punch-in cell and reference location points of N neighboring cells of the punch-in cell;
a first determining module 703 configured to determine N target areas of the punch-in cell based on the reference location point and the N reference location points;
the second judging module 704 is configured to determine that the card punching device successfully punches the card when the position coordinate of the card punching device is located in a first target area, and the first target area is any one of the N target areas.
In one embodiment, the first target area in the second determination module 704 configuration may be the closest target area to the location coordinates of the card punching device among the N target areas.
In one embodiment, the card punching device further comprises:
the third information acquisition module is configured to acquire a target curve segment, and the target curve segment is a boundary line of the first target area;
and the third judging module is configured to determine a first target area according to the target curve segment and the reference position point.
In one embodiment, the card punching device further comprises:
the fourth information acquisition module is configured to acquire coordinate information of at least three edge points, and the edge points are located on a boundary line of the first target area;
and the boundary line generation module is configured to generate a target curve segment by adopting a preset track function according to the coordinate information of the at least three edge points.
In one embodiment, the fourth information obtaining module includes:
the first obtaining sub-module is configured to obtain two reference position points of an area where the card punching equipment is located;
the first judgment sub-module is configured to determine two edge points according to the two reference position points and the reference position point; the two edge points are the midpoints of the connecting lines of the two reference position points and the reference position point;
the second obtaining submodule is configured to obtain longitude and latitude coordinates of any edge point in the judging submodule and a preset change value;
the second judgment submodule is configured to obtain a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; the distance from the third edge point to the reference position point is greater than the distance from the edge point to the reference position point before the change.
In one embodiment, the preset trajectory function in the boundary line generation module is as follows:
f(x)=a*(sin(x-pi))+b*((x-10)^2)+c
wherein x represents the longitude coordinate of the edge point, f (x) represents the latitude coordinate of the edge point; a. b and c are parameter values of the boundary line.
In one embodiment, the number N of neighboring cells in the second information obtaining module 702 is greater than or equal to 3.
In one embodiment, the second determining module 704 includes:
the third obtaining submodule is configured to obtain a target curve segment, and the target curve segment is a boundary line of the first target area;
the fourth acquisition sub-module is configured to acquire a first line segment, wherein the first line segment is a connecting line between the reference position point and the position point of the card punching equipment;
and the third judgment sub-module is configured to determine that the card punching of the card punching equipment is successful when the target curve segment does not intersect with the first line segment.
In one embodiment, the card punching device further comprises:
and the fourth judging module is configured to determine a card punching cell according to the position coordinates, wherein the card punching cell is a cell which is in the system and has the card punching authority for a user closest to the card punching equipment.
Fig. 8 shows a schematic diagram of a hardware structure of a card punching device according to an embodiment of the present invention.
The card punching device may include a processor 801 and a memory 802 storing computer program instructions.
Specifically, the processor 801 may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present invention.
Memory 802 may include mass storage for data or instructions. By way of example, and not limitation, memory 802 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, a tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. In one example, memory 802 can include removable or non-removable (or fixed) media, or memory 802 is non-volatile solid-state memory. The memory 802 may be internal or external to the integrated gateway disaster recovery device.
In one example, the Memory 802 may be a Read Only Memory (ROM). In one example, the ROM can be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
Memory 802 may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform operations described with reference to the method according to an aspect of the disclosure.
The processor 801 reads and executes the computer program instructions stored in the memory 802 to implement the methods/steps S101 to S104 in the embodiment shown in fig. 1, and achieve the corresponding technical effects achieved by the embodiment shown in fig. 1 executing the methods/steps thereof, which are not described herein again for brevity.
In one example, the card punching device may also include a communication interface 803 and a bus 810. As shown in fig. 8, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 to complete communication therebetween.
The communication interface 803 is mainly used for implementing communication between various modules, apparatuses, units and/or devices in the embodiment of the present invention.
Bus 810 includes hardware, software, or both to couple the components of the online data traffic billing device to each other. By way of example, and not limitation, a Bus may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (Front Side Bus, FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) Bus, an InfiniBand interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Micro Channel Architecture (MCA) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards Association local (VLB) Bus, or other suitable Bus or a combination of two or more of these. Bus 810 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the card punching method in the foregoing embodiments, the embodiments of the present invention may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the above described methods of card punching.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an Erasable ROM (EROM), a floppy disk, a CD-ROM, an optical disk, a hard disk, an optical fiber medium, a Radio Frequency (RF) link, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments noted in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed at the same time.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based computer instructions which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method of punching a card, comprising:
acquiring a position coordinate of the card punching equipment;
acquiring a reference position point of a card punching cell and reference position points of N adjacent cells of the card punching cell;
determining N target areas of a card cell based on the reference position point and the N reference position points;
when the position coordinates of the card punching equipment are located in a first target area, determining that the card punching of the card punching equipment is successful, wherein the first target area is any one of the N target areas;
the determining N target areas of a punch-in cell based on the reference location point and the N reference location points includes:
respectively connecting the reference position points with the N reference position points to form a plurality of connecting lines;
dividing the card punching cell into N target areas according to the connecting lines;
the first target area is a target area which is closest to the position coordinate of the card punching equipment in the N target areas;
when the position coordinates of the card punching device are located in the first target area, before the card punching device is determined to be successful in punching the card, the method further comprises the following steps:
acquiring a target curve segment, wherein the target curve segment is a boundary line of the first target area;
determining the first target area according to the target curve segment and the reference position point;
prior to the obtaining the target curve segment, the method further comprises:
acquiring coordinate information of at least three edge points, wherein the edge points are positioned on a boundary line of the first target area;
generating a target curve segment by adopting a preset track function according to the coordinate information of the at least three edge points;
the obtaining of the coordinate information of the at least three edge points includes:
acquiring two reference position points of an area where a card punching device is located;
determining two edge points according to the two reference position points and the reference position point; the two edge points are the middle points of the connecting lines of the two reference position points and the reference position points;
acquiring longitude and latitude coordinates of any edge point and a preset change value;
obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; and the third edge point and the reference position point are arranged on two sides of a connecting line of the first edge point and the second edge point.
2. The card punching method according to claim 1, wherein the preset track function is as follows:
f(x)= a*(sin(x-pi))+b*((x-10)^2)+c
wherein x represents a longitude coordinate of the edge point, and f (x) represents a latitude coordinate of the edge point; a. b and c are parameter values of the boundary line.
3. The method according to claim 2, wherein the number N of the neighboring cells is greater than or equal to 4.
4. The card punching method according to claim 1, wherein the determining that the card punching device successfully punches the card when the position coordinates of the card punching device are located in a first target area, the first target area being any one of the N target areas, comprises:
acquiring a target curve segment, wherein the target curve segment is a boundary line of a first target area;
acquiring a first line segment, wherein the first line segment is a connection line between the reference position point and a position point of the card punching equipment;
and when the target curve segment does not intersect with the first line segment, determining that the card punching of the card punching equipment is successful.
5. The card punching method according to claim 1, wherein after the obtaining of the position coordinates of the card punching device, the method further comprises:
and determining a card punching cell according to the position coordinates, wherein the card punching cell is a cell in a system, which is closest to a card punching device and has a card punching authority.
6. The method according to claim 1, wherein after determining N target areas of a card punching cell based on the reference location point and N of the reference location points, the method further comprises:
determining a polygon according to the N reference position points;
determining a first ray according to the reference position point and the position coordinate of the card punching equipment, wherein the first ray is a ray extending from the reference position point to the position coordinate direction of the card punching equipment;
determining two reference location points located on the polygon intersecting edge when the first ray intersects the polygon;
and determining a first target area in the card punching cell based on the reference position point and the two reference position points.
7. A card punch device, comprising:
the first information acquisition module is used for acquiring the position coordinates of the card punching equipment;
the second information acquisition module is used for acquiring a reference position point of a card punching cell and reference position points of N adjacent cells of the card punching cell;
the first judgment module is used for determining N target areas of the card punching cell based on the reference position point and the N reference position points;
the second judging module is used for determining that the card punching of the card punching equipment is successful when the position coordinates of the card punching equipment are located in a first target area, and the first target area is any one of the N target areas;
the first judging module is specifically configured to:
respectively connecting the reference position points with the N reference position points to form a plurality of connecting lines;
dividing the card punching cell into N target areas according to the connecting lines;
the first target area is a target area which is closest to the position coordinate of the card punching equipment in the N target areas;
the third information acquisition module is used for acquiring a target curve segment, wherein the target curve segment is a boundary line of the first target area;
the third judging module is used for determining the first target area according to the target curve segment and the reference position point;
a fourth information obtaining module, configured to obtain coordinate information of at least three edge points, where the edge points are located on a boundary line of the first target area;
the boundary line generating module is used for generating a target curve segment by adopting a preset track function according to the coordinate information of the at least three edge points;
the fourth information acquisition module includes:
the first obtaining submodule is used for obtaining two reference position points of an area where the card punching equipment is located;
the first judgment submodule is used for determining two edge points according to the two reference position points and the reference position point; the two edge points are the midpoints of the connecting lines of the two reference position points and the reference position point;
the second acquisition submodule is used for acquiring the longitude and latitude coordinates of any edge point and a preset change value;
the second judgment submodule is used for obtaining a third edge point according to the longitude and latitude coordinates of the edge point and a preset change value; and the third edge point and the reference position point are arranged on two sides of a connecting line of the first edge point and the second edge point.
8. A card punching apparatus, characterized in that the apparatus comprises: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to realize the card punching method according to any one of claims 1-6.
9. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement a method of card punching as claimed in any one of claims 1 to 6.
CN202011380010.4A 2020-11-30 2020-11-30 Card punching method, device, equipment and computer storage medium Active CN112530040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011380010.4A CN112530040B (en) 2020-11-30 2020-11-30 Card punching method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011380010.4A CN112530040B (en) 2020-11-30 2020-11-30 Card punching method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112530040A CN112530040A (en) 2021-03-19
CN112530040B true CN112530040B (en) 2022-12-06

Family

ID=74995548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011380010.4A Active CN112530040B (en) 2020-11-30 2020-11-30 Card punching method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112530040B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438597A (en) * 2021-06-21 2021-09-24 深圳市口袋网络科技有限公司 Attendance positioning method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100113021A1 (en) * 2008-10-31 2010-05-06 Nokia Corporation Association of Network Cells with Location Information
KR101506172B1 (en) * 2008-11-19 2015-03-26 삼성전자주식회사 Access control for femtocell
CN107517439B (en) * 2016-06-15 2020-07-07 钉钉控股(开曼)有限公司 Mobile attendance processing method, device, equipment and system
CN108053181A (en) * 2017-12-26 2018-05-18 苏州达家迎信息技术有限公司 Weekly wage batch delivery system and method
CN111757464B (en) * 2019-06-26 2022-03-01 广东小天才科技有限公司 Region contour extraction method and device

Also Published As

Publication number Publication date
CN112530040A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN110166943B (en) Method for processing terminal position information
CN110166991B (en) Method, device, apparatus and storage medium for locating electronic device
CN110602741A (en) Network weak coverage identification method, device, equipment and storage medium
US9985965B2 (en) Security verification method, apparatus, and system
CN111131783A (en) Monitoring method and device based on electronic fence, terminal equipment and storage medium
CN103039115A (en) Location filtering using mobile country code
CN108133001B (en) MR indoor and outdoor separation method, device and medium
CN112530040B (en) Card punching method, device, equipment and computer storage medium
US11238563B2 (en) Noise processing method and apparatus
CN109005514B (en) Backfill method and device of user position information, terminal equipment and storage medium
CN113542692A (en) Face recognition system and method based on monitoring video
CN110557722B (en) Target group partner identification method and related device
CN113645625B (en) Pseudo base station positioning method, pseudo base station positioning device, electronic equipment and readable medium
CN114928843A (en) Pseudo base station defense method and device, communication equipment and readable storage medium
CN115798174B (en) Fusion processing method, device and equipment for multi-disaster early warning information and storage medium
CN109151827B (en) WiFi positioning spoofing detection method and device based on radio frequency fingerprint
CN112235723B (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
CN114386011A (en) Verification code picture generation method and device, electronic equipment and storage medium
CN110933601B (en) Target area determination method, device, equipment and medium
CN114022844A (en) Antenna weight value configuration method and device, electronic equipment and storage medium
CN114205820A (en) Method, device and computer equipment for detecting suspicious user carrying pseudo base station
CN113316246A (en) Method and device based on radio frequency fingerprint positioning, electronic equipment and storage medium
CN113055239A (en) Data display method, device, equipment and medium
CN106971037B (en) Circle center calculation method and device
CN110784821A (en) Mobile terminal positioning method and device 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